:root {
  --cream: #f5efe4;
  --paper: #fffaf2;
  --paper2: #fff;
  --ink: #16130f;
  --muted: #70675b;
  --line: #eadfce;
  --green: #102f29;
  --green2: #18493f;
  --gold: #c6923b;
  --gold2: #f5c76c;
  --brown: #7b4d25;
  --blue: #203e5f;
  --rent: #1f5e70;
  --sale: #7b3f22;
  --danger: #a8472d;
  --shadow: 0 26px 80px rgba(22, 19, 15, .13);
  --radius: 30px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  background: var(--cream);
  color: var(--ink);
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
  width: min(1240px, calc(100% - 42px));
  margin: auto;
}

.hide-mobile { display: inline-flex; }

/* ── Topbar ── */
.topbar {
  background: #0d251f;
  color: #f8ead1;
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  flex-wrap: wrap;
}
.topbar b { color: var(--gold2); }
.topbar-support,
.zalo-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.zalo-link {
  color: #0aa7ff;
  font-weight: 950;
  line-height: 1;
}
.zalo-link:hover { color: #38c2ff; }
.zalo-icon {
  width: 1em;
  height: 1em;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #0aa7ff;
  color: #fff;
  font-size: 1em;
  font-weight: 950;
  line-height: 1;
}

/* ── Header ── */
header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 250, 242, .88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(198, 146, 59, .18);
}
.nav {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 950;
  font-size: 22px;
  letter-spacing: -.045em;
  color: var(--green);
}
.logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 17px;
  background: linear-gradient(135deg, #102f29, #071713);
  display: grid;
  place-items: center;
  color: var(--gold2);
  box-shadow: 0 15px 34px rgba(16, 47, 41, .25);
  font-size: 24px;
}
.logo small {
  display: block;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 900;
  margin-top: 1px;
}
.menu {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 950;
  color: var(--green);
}
.menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--green);
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.menu a:hover {
  background: #fff4df;
  color: var(--brown);
  box-shadow: inset 0 0 0 1px rgba(198, 146, 59, .28), 0 12px 26px rgba(78, 53, 23, .08);
  transform: translateY(-1px);
}
.menu a:focus-visible {
  outline: 3px solid rgba(198, 146, 59, .36);
  outline-offset: 2px;
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.mobile-nav { display: block; position: relative; }
.mobile-nav-toggle {
  list-style: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 11px 14px 11px 16px;
  background: linear-gradient(135deg, #eaf6f4, #dff1ee);
  color: var(--green);
  font-weight: 950;
  border: 1px solid rgba(16,47,41,.12);
  box-shadow: 0 12px 30px rgba(16,47,41,.12);
  align-items: center;
  gap: 9px;
}
.mobile-nav.is-open .mobile-nav-toggle { background: #dff1ee; color: #0b473c; }
.mobile-nav-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(16,47,41,.08);
}
.mobile-nav-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: min(310px, calc(100vw - 26px));
  z-index: 80;
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 24px;
  border: 1px solid rgba(198,146,59,.22);
  background: rgba(255,250,242,.98);
  box-shadow: 0 28px 70px rgba(22,19,15,.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.mobile-nav.is-open .mobile-nav-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-nav-panel a,
.mobile-nav-panel button {
  width: 100%;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: var(--green);
  padding: 13px 14px;
  text-align: left;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line);
}
.mobile-nav-panel a:hover,
.mobile-nav-panel button:hover { background: #fff4df; color: var(--brown); }
.mobile-nav-panel .mobile-nav-cta {
  text-align: center;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #201508;
  box-shadow: 0 14px 30px rgba(198,146,59,.28);
}
@media (min-width: 1041px) {
  .mobile-nav { display: none; }
}
.kgn-mobile-menu {
  display: none;
  position: absolute;
  right: 21px;
  top: 15px;
  transform: none;
  z-index: 120;
}
.kgn-mobile-quick-toggle {
  display: none;
}
.kgn-mobile-toggle {
  width: 50px;
  height: 50px;
  border: 1px solid rgba(16,47,41,.12);
  border-radius: 17px;
  background: linear-gradient(135deg,#eaf6f4,#dff1ee);
  color: var(--green);
  box-shadow: 0 12px 30px rgba(16,47,41,.12);
  font-size: 23px;
  font-weight: 950;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.kgn-mobile-panel {
  position: absolute;
  right: 0;
  top: 62px;
  width: min(320px, calc(100vw - 26px));
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(198,146,59,.22);
  border-radius: 24px;
  background: rgba(255,250,242,.98);
  box-shadow: 0 28px 70px rgba(22,19,15,.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.kgn-mobile-menu.is-open .kgn-mobile-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.kgn-mobile-panel a,
.kgn-mobile-panel button {
  width: 100%;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: var(--green);
  padding: 13px 14px;
  text-align: left;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line);
}
.kgn-mobile-panel .kgn-mobile-cta {
  text-align: center;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #201508;
}
@media (min-width: 1041px) and (pointer: fine) {
  header .kgn-mobile-menu { display: none !important; }
}
@media (max-width: 1040px) {
  .menu,
  .nav-actions { display: none !important; }
  .nav {
    height: 72px;
    min-height: 72px;
    padding-right: 66px;
    position: relative;
  }
  .logo {
    max-width: calc(100% - 66px);
    min-width: 0;
  }
  .logo small { display: none; }
  .kgn-mobile-menu {
    display: block !important;
    position: absolute;
    right: 21px;
    top: 11px;
    z-index: 999;
  }
  .kgn-mobile-toggle {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(16,47,41,.12);
    border-radius: 17px;
    background: linear-gradient(135deg,#eaf6f4,#dff1ee);
    color: var(--green);
    box-shadow: 0 12px 30px rgba(16,47,41,.12);
    font-size: 23px;
    font-weight: 950;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
  }
}

@media screen and (max-width: 1040px) {
  body header .container.nav {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding-right: 0 !important;
  }
  body header .container.nav > .kgn-mobile-menu {
    display: block !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    margin-left: auto !important;
    width: 50px !important;
    height: 50px !important;
    flex: 0 0 50px !important;
    z-index: 9999 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  body header .container.nav > .kgn-mobile-menu .kgn-mobile-panel {
    position: absolute !important;
    right: 0 !important;
    left: auto !important;
    top: 62px !important;
  }
  body header .container.nav > .kgn-mobile-menu .kgn-mobile-toggle {
    display: none !important;
    width: 50px !important;
    height: 50px !important;
    place-items: center !important;
  }
  body header .container.nav > .kgn-mobile-quick-toggle {
    display: grid !important;
    width: 50px !important;
    height: 50px !important;
    flex: 0 0 50px !important;
    margin-left: auto !important;
    place-items: center !important;
    border: 1px solid rgba(16,47,41,.12) !important;
    border-radius: 17px !important;
    background: linear-gradient(135deg,#eaf6f4,#dff1ee) !important;
    color: var(--green) !important;
    box-shadow: 0 12px 30px rgba(16,47,41,.12) !important;
    font-size: 23px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    cursor: pointer !important;
  }
}

@media screen and (max-width: 520px) {
  body header .container.nav > .kgn-mobile-menu {
    right: max(13px, calc(100vw - 377px)) !important;
  }
}

@media screen and (min-width: 1041px) {
  body header .container.nav > .kgn-mobile-quick-toggle {
    display: none !important;
  }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 999px;
  border: 0;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #201508;
  box-shadow: 0 15px 34px rgba(198, 146, 59, .3);
}
.btn-dark { background: var(--green); color: #fff; }
.btn-white { background: #fff; color: var(--green); border: 1px solid var(--line); }
.btn-sale { background: var(--sale); color: #fff; }
.btn-rent { background: var(--rent); color: #fff; }

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 36px;
  background: radial-gradient(circle at 14% 10%, rgba(245, 199, 108, .38), transparent 32%),
              radial-gradient(circle at 80% 20%, rgba(31, 94, 112, .16), transparent 34%),
              linear-gradient(135deg, #fff9ee 0%, #f0dfc7 100%);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 47, 41, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 47, 41, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 86%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 42px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--brown);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(123, 77, 37, .08);
}
h1 {
  font-size: clamp(42px, 6vw, 74px);
  line-height: .96;
  letter-spacing: -.076em;
  margin: 18px 0;
  color: #15110d;
}
.lead {
  font-size: 18px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 690px;
  margin: 0 0 26px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 740px;
}
.trust-box {
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 15px;
  box-shadow: 0 14px 34px rgba(22, 19, 15, .06);
}
.trust-box b { font-size: 23px; color: var(--green); display: block; letter-spacing: -.04em; }
.trust-box span { font-size: 12px; color: var(--muted); font-weight: 800; line-height: 1.4; }

.hero-visual {
  position: relative;
  background: #102f29;
  border-radius: 38px;
  padding: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(245, 199, 108, .27), transparent 42%);
  transform: translate(20%, -12%);
}
.house-photo {
  position: relative;
  min-height: 560px;
  border-radius: 30px;
  background: linear-gradient(to bottom, rgba(0,0,0,.05), rgba(0,0,0,.53)),
              url('../images/import/nha-o-1.jpg') center / cover;
  background-position: center;
  background-size: cover;
  overflow: hidden;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.photo-top { display: flex; gap: 10px; flex-wrap: wrap; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  background: rgba(255, 250, 242, .92);
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 900;
  color: #2f261d;
}
.photo-card {
  background: rgba(255, 250, 242, .95);
  border: 1px solid rgba(255, 255, 255, .6);
  backdrop-filter: blur(16px);
  border-radius: 26px;
  padding: 20px;
  color: var(--ink);
}
.photo-card h3 { margin: 0 0 12px; font-size: 22px; letter-spacing: -.045em; color: var(--green); }
.photo-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.photo-stats div { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.photo-stats b { display: block; color: var(--brown); font-size: 15px; }
.photo-stats span { font-size: 12px; color: var(--muted); font-weight: 700; }

/* ── Sections ── */
.section { padding: 78px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: end;
  margin-bottom: 30px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.05;
  letter-spacing: -.066em;
  color: #15110d;
}
.section-head p { max-width: 560px; margin: 0; color: var(--muted); line-height: 1.72; font-weight: 500; }
.center { text-align: center; }
.center p { margin: 14px auto 0; }

/* ── CPT Split ── */
.split-cpt { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.cpt-card {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 22px 60px rgba(22, 19, 15, .1);
  padding: 30px;
}
.cpt-card::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(198, 146, 59, .12);
}
.cpt-sale { border-top: 7px solid var(--sale); }
.cpt-rent { border-top: 7px solid var(--rent); }
.cpt-icon {
  width: 62px;
  height: 62px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 28px;
  margin-bottom: 18px;
}
.cpt-sale .cpt-icon { background: linear-gradient(135deg, var(--sale), #b86638); }
.cpt-rent .cpt-icon { background: linear-gradient(135deg, var(--rent), #2e8298); }
.cpt-card h3 { font-size: 30px; letter-spacing: -.052em; margin: 0 0 12px; color: var(--green); }
.cpt-card p { color: var(--muted); line-height: 1.72; margin: 0 0 20px; }
.field-list { display: grid; gap: 10px; padding: 0; margin: 0 0 22px; list-style: none; }
.field-list li { display: flex; gap: 10px; font-weight: 800; color: #3d342b; }
.field-list li::before {
  content: "✓";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef4ef;
  color: var(--green);
  font-size: 13px;
  flex: 0 0 auto;
}
.cpt-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Flow / Steps ── */
.flow { background: #0d251f; color: #fff; }
.flow .section-head h2 { color: #fff; }
.flow .section-head p { color: #d9cdbb; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.step {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 26px;
  padding: 22px;
  min-height: 224px;
}
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: var(--gold2);
  color: #211508;
  display: grid;
  place-items: center;
  font-weight: 950;
  margin-bottom: 16px;
}
.step h3 { margin: 0 0 10px; font-size: 19px; letter-spacing: -.035em; }
.step p { margin: 0; color: #d9cdbb; line-height: 1.6; font-size: 14px; }

/* ── Form / Submit Area ── */
.submit-area { display: grid; grid-template-columns: .78fr 1.22fr; gap: 24px; align-items: start; }
.submit-side {
  border-radius: 34px;
  padding: 32px;
  background: linear-gradient(135deg, var(--green), #071713);
  color: #fff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 104px;
}
.submit-side h2 { font-size: 42px; line-height: 1.06; letter-spacing: -.062em; margin: 16px 0; }
.submit-side p { color: #e4d8c5; line-height: 1.7; }
.tabs {
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  padding: 8px;
  border-radius: 999px;
  margin-top: 22px;
}
.tab {
  flex: 1;
  border-radius: 999px;
  padding: 12px;
  border: 0;
  font-weight: 950;
  cursor: pointer;
  background: transparent;
  color: #e4d8c5;
}
.tab.active.sale { background: var(--sale); color: #fff; }
.tab.active.rent { background: var(--rent); color: #fff; }

.form-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: var(--shadow);
  padding: 28px;
}
.form-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  margin-bottom: 20px;
}
.form-title h3 { font-size: 28px; letter-spacing: -.05em; margin: 0; color: var(--green); }
.form-title p { margin: 8px 0 0; color: var(--muted); line-height: 1.55; }
.badge {
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 950;
  color: #fff;
  white-space: nowrap;
}
.badge.sale { background: var(--sale); }
.badge.rent { background: var(--rent); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 900; font-size: 13px; color: #3d342b; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 14px 15px;
  font: inherit;
  color: var(--ink);
  outline: none;
}
textarea { min-height: 115px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(198, 146, 59, .13);
}
.upload {
  border: 1px dashed #d0b992;
  border-radius: 18px;
  background: #fff;
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
  transition: border-color .2s;
}
.upload:hover { border-color: var(--gold); }

.hidden { display: none !important; }

/* ── Listings ── */
.listings-wrap { display: grid; grid-template-columns: 280px 1fr; gap: 22px; }
.filter-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 22px;
  box-shadow: 0 18px 44px rgba(22, 19, 15, .08);
  align-self: start;
}
.filter-box h3 { margin: 0 0 16px; font-size: 22px; letter-spacing: -.04em; color: var(--green); }
.filter-list { display: grid; gap: 12px; }
.listing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.listing {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(22, 19, 15, .08);
}
.listing-img {
  display: block;
  height: 230px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.listing-img .badge { position: absolute; left: 14px; top: 14px; }
.listing-body { padding: 20px; }
.listing-body h3 { font-size: 21px; letter-spacing: -.04em; margin: 0 0 10px; color: var(--green); }
.listing-body h3 a { color: inherit; }
.listing-img:hover,
.listing-body h3 a:hover { color: var(--brown); }

.kgn-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(5, 18, 16, .84);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
}
.kgn-gallery-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.kgn-gallery-dialog {
  width: min(1040px, calc(100vw - 96px));
  display: grid;
  gap: 14px;
}
.kgn-gallery-large {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(0,0,0,.36);
}
.kgn-gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 0 6px;
}
.kgn-gallery-thumb {
  flex: 0 0 86px;
  width: 86px;
  height: 62px;
  border: 2px solid rgba(255,255,255,.24);
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  opacity: .72;
}
.kgn-gallery-thumb.active,
.kgn-gallery-thumb:hover {
  opacity: 1;
  border-color: var(--gold2);
}
.kgn-gallery-close,
.kgn-gallery-nav {
  position: fixed;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255,255,255,.14);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.kgn-gallery-close {
  right: 24px;
  top: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 28px;
}
.kgn-gallery-nav {
  top: 50%;
  width: 52px;
  height: 68px;
  border-radius: 18px;
  font-size: 42px;
  transform: translateY(-50%);
}
.kgn-gallery-nav.prev { left: 22px; }
.kgn-gallery-nav.next { right: 22px; }
@media (max-width: 680px) {
  .kgn-gallery-modal { padding: 16px; }
  .kgn-gallery-dialog { width: calc(100vw - 32px); }
  .kgn-gallery-large { max-height: 68vh; border-radius: 18px; }
  .kgn-gallery-nav { width: 42px; height: 54px; font-size: 32px; }
  .kgn-gallery-nav.prev { left: 10px; }
  .kgn-gallery-nav.next { right: 10px; }
  .kgn-gallery-close { right: 12px; top: 12px; }
}
.listing-body p { margin: 0 0 14px; color: var(--muted); line-height: 1.55; }
.price { font-size: 23px; font-weight: 950; color: var(--brown); letter-spacing: -.035em; }
.meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.meta span {
  font-size: 12px;
  font-weight: 850;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 9px;
  color: #4a4035;
}
.listing-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.agent { font-weight: 900; color: #3d342b; font-size: 13px; }
.agent small { display: block; color: var(--muted); font-weight: 700; margin-top: 2px; }
.mini-btn {
  border-radius: 999px;
  padding: 10px 13px;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: .2s;
}
.mini-btn:hover { background: var(--green2); transform: translateY(-1px); }

/* ── Province Grid ── */
.province-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.province {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 12px;
  font-weight: 900;
  color: #3d342b;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  box-shadow: 0 8px 20px rgba(22, 19, 15, .04);
}
.province span { font-size: 12px; color: var(--brown); background: #f8ecd9; padding: 5px 7px; border-radius: 999px; }

/* ── Trust Grid ── */
.trust-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.trust-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 26px;
  box-shadow: 0 18px 44px rgba(22, 19, 15, .08);
}
.trust-card h3 { font-size: 22px; margin: 0 0 10px; color: var(--green); letter-spacing: -.04em; }
.trust-card p { margin: 0; color: var(--muted); line-height: 1.65; }
.quote { font-size: 42px; color: var(--gold); line-height: 1; margin-bottom: 8px; }

/* ── CTA Band ── */
.cta-band {
  background: linear-gradient(135deg, #fffaf2, #ead7bd);
  border: 1px solid var(--line);
  border-radius: 38px;
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  box-shadow: var(--shadow);
}
.cta-band h2 { font-size: 40px; line-height: 1.08; letter-spacing: -.063em; margin: 0; color: var(--green); }
.cta-band p { margin: 10px 0 0; color: var(--muted); line-height: 1.6; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

/* ── Footer ── */
footer.site-footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 10%, rgba(245,199,108,.15), transparent 28%),
    radial-gradient(circle at 88% 0, rgba(68,145,123,.16), transparent 30%),
    #061713;
  color: #eadfcb;
  padding: 64px 0 26px;
}
footer.site-footer:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: .28;
  pointer-events: none;
}
.footer-shell { position: relative; z-index: 1; }
.footer-top {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(320px,.8fr);
  gap: 24px;
  margin-bottom: 26px;
}
.footer-brand,
.footer-cta,
.footer-link-group {
  border: 1px solid rgba(245,199,108,.16);
  background: rgba(255,255,255,.045);
  box-shadow: 0 26px 70px rgba(0,0,0,.14);
  backdrop-filter: blur(10px);
}
.footer-brand {
  border-radius: 34px;
  padding: 30px;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #fff;
  font-weight: 950;
  font-size: 30px;
  letter-spacing: -.055em;
}
.footer-logo-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #102f29;
  box-shadow: 0 18px 36px rgba(245,199,108,.2);
}
.footer-logo small {
  display: block;
  color: #cfc2ad;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 2px;
}
.footer-brand p {
  max-width: 650px;
  color: #d8cbb8;
  line-height: 1.8;
  font-size: 16px;
  margin: 22px 0;
}
.footer-contact-pills,
.footer-cta div {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-contact-pills {
  justify-content: center;
}
.footer-contact-pills a,
.footer-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  padding: 10px 15px;
  font-weight: 950;
  color: #f8ead3;
  border: 1px solid rgba(245,199,108,.2);
  background: rgba(245,199,108,.07);
}
.footer-cta div {
  flex-wrap: nowrap;
}
.footer-cta a {
  flex: 1 1 0;
  min-width: 0;
  min-height: 52px;
  background: #e8f3ff;
  border-color: rgba(0,104,255,.2);
  color: #0068ff;
  font-size: 17px;
  box-shadow: 0 14px 30px rgba(0,104,255,.1);
}
.footer-contact-pills a {
  background: #e8f3ff;
  border-color: rgba(0,104,255,.22);
  color: #0068ff;
  font-size: 18px;
  box-shadow: 0 16px 34px rgba(0,104,255,.12);
  padding: 12px 20px;
}
.footer-contact-pills a:before {
  content: "Z";
  width: 1.05em;
  height: 1.05em;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #0068ff;
  color: #fff;
  font-size: .95em;
  font-weight: 950;
  margin-right: 8px;
}
.footer-contact-pills a:hover,
.footer-cta a:hover {
  color: #005be0;
  background: #f2f8ff;
  border-color: rgba(0,104,255,.34);
  box-shadow: 0 18px 38px rgba(0,104,255,.16);
  transform: translateY(-1px);
}
.footer-contact-pills a:hover {
  color: #005be0;
  background: #f2f8ff;
  border-color: rgba(0,104,255,.36);
  box-shadow: 0 20px 42px rgba(0,104,255,.18);
}
.footer-cta {
  border-radius: 34px;
  padding: 28px;
  display: grid;
  align-content: center;
  background:
    linear-gradient(135deg, rgba(245,199,108,.12), rgba(255,255,255,.035)),
    rgba(255,255,255,.045);
}
.footer-cta span {
  color: var(--gold2);
  font-weight: 950;
  margin-bottom: 10px;
}
.footer-cta h3 {
  color: #fff;
  font-size: 27px;
  line-height: 1.16;
  letter-spacing: -.045em;
  margin: 0 0 20px;
}
.footer-cta .footer-cta-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #13241f;
  border-color: transparent;
  box-shadow: 0 16px 34px rgba(245,199,108,.18);
}
.footer-cta .footer-cta-primary:hover {
  color: #13241f;
  background: linear-gradient(135deg,#f1b84d,#ffe092);
  box-shadow: 0 20px 42px rgba(245,199,108,.24);
}
.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.footer-link-group {
  border-radius: 26px;
  padding: 20px;
}
.footer-link-group h4 {
  color: #fff;
  font-size: 17px;
  margin: 0 0 14px;
  letter-spacing: -.02em;
}
.footer-link-group a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 39px;
  color: #d9cdbb;
  font-size: 14px;
  font-weight: 820;
  line-height: 1.4;
  border-radius: 16px;
  padding: 9px 10px 9px 24px;
  transition: .2s ease;
}
.footer-link-group a:before {
  content: "";
  position: absolute;
  left: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold2);
  opacity: .72;
}
.footer-link-group a:hover {
  color: var(--gold2);
  background: rgba(255,255,255,.055);
  transform: translateX(2px);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 22px;
  color: #b7aa98;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Responsive ── */
@media (max-width: 1040px) {
  .menu { display: none; }
  .mobile-nav { display: block; }
  .nav { position: relative; padding-right: 66px; }
  .kgn-mobile-menu {
    display: block;
    position: absolute;
    right: 21px;
    top: 15px;
    transform: none;
    z-index: 120;
  }
  .kgn-mobile-toggle {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(16,47,41,.12);
    border-radius: 17px;
    background: linear-gradient(135deg,#eaf6f4,#dff1ee);
    color: var(--green);
    box-shadow: 0 12px 30px rgba(16,47,41,.12);
    font-size: 23px;
    font-weight: 950;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
  }
  .kgn-mobile-panel {
    position: absolute;
    right: 0;
    top: 62px;
    width: min(320px, calc(100vw - 26px));
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid rgba(198,146,59,.22);
    border-radius: 24px;
    background: rgba(255,250,242,.98);
    box-shadow: 0 28px 70px rgba(22,19,15,.22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  }
  .kgn-mobile-menu.is-open .kgn-mobile-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  .kgn-mobile-panel a,
  .kgn-mobile-panel button {
    width: 100%;
    border: 0;
    border-radius: 16px;
    background: #fff;
    color: var(--green);
    padding: 13px 14px;
    text-align: left;
    font: inherit;
    font-weight: 950;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px var(--line);
  }
  .kgn-mobile-panel .kgn-mobile-cta {
    text-align: center;
    background: linear-gradient(135deg, var(--gold), var(--gold2));
    color: #201508;
  }
  .hero-grid,
  .submit-area { grid-template-columns: 1fr; }
  .submit-side { position: relative; top: auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .listings-wrap { grid-template-columns: 1fr; }
  .province-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-links-grid { grid-template-columns: 1fr 1fr; }
  .house-photo { min-height: 470px; }
}

@media (max-width: 760px) {
  body { overflow-x: hidden; }
  .container { width: min(calc(100% - 26px), 1240px); }
  .hide-mobile { display: none; }
  .topbar .container { overflow-wrap: anywhere; }
  .nav { height: 72px; min-height: 72px; gap: 10px; padding: 0 66px 0 0; position: relative; flex-wrap: nowrap; }
  .logo { font-size: 20px; min-width: 0; max-width: 100%; flex: 0 1 auto; }
  .logo-mark { width: 46px; height: 46px; flex: 0 0 46px; }
  .logo small { font-size: 10px; }
  .nav-actions { display: none; }
  .mobile-nav {
    display: block;
    position: absolute;
    left: auto;
    right: 0;
    top: 11px;
    margin-left: auto;
    order: 10;
    width: 50px;
    flex: 0 0 50px;
    z-index: 90;
  }
  .mobile-nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 17px;
  }
  .mobile-nav-icon {
    display: inline-grid;
    width: 30px;
    height: 30px;
    color: var(--green);
  }
  .mobile-nav-panel {
    position: absolute;
    right: 0;
    left: auto;
    top: calc(100% + 12px);
    width: min(320px, calc(100vw - 26px));
    display: grid;
    gap: 8px;
    overflow: visible;
    padding: 14px;
    border: 1px solid rgba(198,146,59,.22);
    border-radius: 24px;
    background: rgba(255,250,242,.98);
    box-shadow: 0 28px 70px rgba(22,19,15,.22);
  }
  .mobile-nav-panel a,
  .mobile-nav-panel button {
    width: 100%;
    border-radius: 16px;
    padding: 13px 14px;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--line);
    white-space: normal;
  }
  .mobile-nav-panel .mobile-nav-cta {
    background: linear-gradient(135deg, var(--gold), var(--gold2));
  }
  .hero { padding: 48px 0 30px; }
  .hero h1,
  h1 { font-size: 26px; line-height: 1.1; overflow-wrap: anywhere; }
  .hero h1,
  .lead { max-width: 330px; }
  .hero-grid > * { min-width: 0; }
  .trust-strip,
  .split-cpt,
  .form-grid,
  .listing-grid,
  .trust-grid,
  .province-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .section-head { display: block; }
  .section-head p { margin-top: 12px; }
  .photo-stats { grid-template-columns: 1fr; }
  .house-photo { min-height: 390px; }
  .cta-band { display: block; }
  .cta-actions { justify-content: flex-start; margin-top: 18px; }
  .form-title { display: block; }
  .badge { display: inline-flex; margin-top: 12px; }
  .nav { height: 72px; min-height: 72px; gap: 10px; }
  .logo { font-size: 20px; min-width: 0; max-width: 100%; }
  .logo small { display: none; }
  .kgn-mobile-menu {
    display: block;
    position: absolute;
    right: 21px;
    top: 11px;
    z-index: 120;
  }
  .kgn-mobile-toggle {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(16,47,41,.12);
    border-radius: 17px;
    background: linear-gradient(135deg,#eaf6f4,#dff1ee);
    color: var(--green);
    box-shadow: 0 12px 30px rgba(16,47,41,.12);
    font-size: 23px;
    font-weight: 950;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
  }
  .kgn-mobile-panel {
    position: absolute;
    right: 0;
    top: 62px;
    width: min(320px, calc(100vw - 26px));
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid rgba(198,146,59,.22);
    border-radius: 24px;
    background: rgba(255,250,242,.98);
    box-shadow: 0 28px 70px rgba(22,19,15,.22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  }
  .kgn-mobile-menu.is-open .kgn-mobile-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  .kgn-mobile-panel a,
  .kgn-mobile-panel button {
    width: 100%;
    border: 0;
    border-radius: 16px;
    background: #fff;
    color: var(--green);
    padding: 13px 14px;
    text-align: left;
    font: inherit;
    font-weight: 950;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px var(--line);
  }
  .kgn-mobile-panel .kgn-mobile-cta {
    text-align: center;
    background: linear-gradient(135deg, var(--gold), var(--gold2));
    color: #201508;
  }
  .nav-actions .btn { padding: 11px 14px; font-size: 13px; }
  .nav-actions .btn-primary { display: none; }
  .footer-links-grid { grid-template-columns: 1fr; }
  .footer-brand,
  .footer-cta,
  .footer-link-group { border-radius: 24px; }
  .footer-brand,
  .footer-cta { padding: 22px; }
  .footer-logo { font-size: 24px; }
  .footer-logo-mark { width: 48px; height: 48px; border-radius: 17px; }
  .footer-cta h3 { font-size: 23px; }
  .footer-cta div { flex-wrap: wrap; }
  .footer-cta a { flex-basis: 100%; }
  .footer-bottom { display: grid; }
}

@media (max-width: 1040px) {
  header .menu,
  header .nav-actions { display: none !important; }
  header .nav { position: relative; padding-right: 66px; }
  header .kgn-mobile-menu {
    display: block !important;
    position: absolute !important;
    right: 21px !important;
    top: 11px !important;
    z-index: 1000 !important;
  }
  header .kgn-mobile-toggle {
    width: 50px !important;
    height: 50px !important;
    border: 1px solid rgba(16,47,41,.12) !important;
    border-radius: 17px !important;
    background: linear-gradient(135deg,#eaf6f4,#dff1ee) !important;
    color: var(--green) !important;
    box-shadow: 0 12px 30px rgba(16,47,41,.12) !important;
    font-size: 23px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    display: grid !important;
    place-items: center !important;
    cursor: pointer !important;
  }
}

@media screen and (max-width: 1040px) {
  body header .container.nav {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding-right: 66px !important;
  }
  body header .container.nav > .kgn-mobile-menu {
    display: block !important;
    position: absolute !important;
    left: auto !important;
    right: 13px !important;
    top: 11px !important;
    width: 50px !important;
    height: 50px !important;
    z-index: 9999 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  body header .container.nav > .kgn-mobile-menu .kgn-mobile-toggle {
    display: grid !important;
    width: 50px !important;
    height: 50px !important;
    place-items: center !important;
    border: 1px solid rgba(16,47,41,.12) !important;
    border-radius: 17px !important;
    background: linear-gradient(135deg,#eaf6f4,#dff1ee) !important;
    color: var(--green) !important;
    box-shadow: 0 12px 30px rgba(16,47,41,.12) !important;
    font-size: 23px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    cursor: pointer !important;
  }
  body header .container.nav > .kgn-mobile-menu .kgn-mobile-panel {
    right: 0 !important;
    left: auto !important;
    top: 62px !important;
    pointer-events: none !important;
  }
  body header .container.nav > .kgn-mobile-menu.is-open .kgn-mobile-panel {
    pointer-events: auto !important;
  }
}

@media screen and (min-width: 1041px) {
  body header .container.nav > .kgn-mobile-menu {
    display: none !important;
  }
}

@media screen and (max-width: 520px) {
  body header .container.nav > .kgn-mobile-menu {
    right: max(13px, calc(100vw - 377px)) !important;
  }
}
