/* ───────────────────────────────────────────────────────────────────────────
   Kareithi Properties

   Bright, gold on white, and deliberately large. A lot of the people buying
   these plots are over fifty and reading on a phone in sunlight, so nothing
   here goes below 16px, every tap target clears 48px, and contrast is kept
   well above the minimum rather than near it.
   ─────────────────────────────────────────────────────────────────────────── */

:root {
  --gold:        #C9A227;
  --gold-deep:   #9E7C18;
  --gold-light:  #E3C66A;
  --gold-wash:   #FBF6E6;
  --gold-line:   #EBD9A0;

  --ink:         #1A1A1C;
  --ink-2:       #4C4C54;
  --ink-3:       #777781;

  --paper:       #FAFAF7;
  --paper-2:     #F3F1EA;
  --card:        #FFFFFF;
  --line:        #E7E3D8;

  --green:       #15724A;
  --green-wash:  #E7F4ED;
  --whatsapp:    #25D366;
  --whatsapp-d:  #128C7E;
  --red:         #A32017;
  --red-wash:    #FBECEA;

  --radius:      16px;
  --radius-sm:   10px;
  --radius-lg:   24px;

  --shadow-sm:   0 1px 2px rgba(26,26,28,.05), 0 2px 8px rgba(26,26,28,.04);
  --shadow:      0 2px 6px rgba(26,26,28,.06), 0 12px 32px rgba(26,26,28,.07);
  --shadow-lg:   0 8px 24px rgba(26,26,28,.09), 0 32px 64px rgba(26,26,28,.10);

  --wrap:        1200px;
  --ease:        cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

/* Inline icons default to 20px so nothing ever renders at its viewBox size
   while a context-specific rule is missing. */
.ico { width: 20px; height: 20px; flex: none; }

a   { color: var(--gold-deep); text-decoration: none; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.18;
  letter-spacing: -.021em;
  font-weight: 800;
}
h1 { font-size: clamp(2rem, 1.3rem + 2.9vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1.06rem + .6vw, 1.5rem); }
p  { margin: 0 0 1.1em; }

::selection { background: var(--gold-light); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 6px;
}

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2rem, 760px); margin-inline: auto; }

.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section--tint { background: var(--paper-2); }
.section--gold { background: var(--gold-wash); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: .9rem 1.3rem; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Section headers ─────────────────────────────────────────────────────── */

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: .85rem;
}
.eyebrow::before {
  content: ''; width: 26px; height: 2px; background: var(--gold); border-radius: 2px;
}

.section-head { max-width: 680px; margin-bottom: 2.5rem; }
.section-head p { color: var(--ink-2); font-size: 1.06rem; margin: 0; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.2rem;
}
.head-row .section-head { margin-bottom: 0; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .85rem 1.6rem;
  border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  cursor: pointer; text-align: center; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
  color: #1A1A1C; box-shadow: 0 4px 14px rgba(201,162,39,.32);
}
.btn-gold:hover { color: #1A1A1C; box-shadow: 0 8px 26px rgba(201,162,39,.42); }

.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; color: #fff; }

.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold); background: var(--gold-wash); color: var(--ink); }

.btn-wa { background: var(--whatsapp); color: #fff; box-shadow: 0 4px 14px rgba(37,211,102,.3); }
.btn-wa:hover { background: var(--whatsapp-d); color: #fff; box-shadow: 0 8px 24px rgba(37,211,102,.38); }

.btn-lg  { min-height: 60px; padding: 1rem 2.1rem; font-size: 1.08rem; }
.btn-sm  { min-height: 44px; padding: .55rem 1.1rem; font-size: .92rem; }
.btn-block { width: 100%; }

.btn svg { width: 20px; height: 20px; flex: none; }

/* nowrap sets a button's minimum width to its whole label, which on a phone
   pushes whatever holds it wider than the screen. */
@media (max-width: 560px) {
  .btn { white-space: normal; padding-inline: 1.15rem; }
  .btn-lg { padding-inline: 1.3rem; font-size: 1.02rem; }
}

/* ── Header ──────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(250,250,247,.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(26,26,28,.06);
  background: rgba(250,250,247,.96);
}
/* On a results page the search bar takes the top of the screen once the buyer
   is into the listings, and the header steps out of its way. */
.site-header { transition: border-color .25s, box-shadow .25s, background-color .25s, transform .3s var(--ease); }
.site-header.is-away { transform: translateY(-100%); }
.header-in {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 76px;
}
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 46px; width: auto; }

.nav { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.nav a {
  padding: .6rem .85rem; border-radius: 10px; color: var(--ink-2);
  font-weight: 600; font-size: .97rem; transition: background-color .18s, color .18s;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--gold-wash); color: var(--ink); }

.header-cta { display: flex; align-items: center; gap: .6rem; flex: none; }
.header-phone {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 800; color: var(--ink); white-space: nowrap;
}
.header-phone svg { width: 19px; height: 19px; color: var(--gold-deep); }

.burger {
  display: none; width: 50px; height: 50px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--card); cursor: pointer;
  align-items: center; justify-content: center; margin-left: auto;
}
.burger span, .burger span::before, .burger span::after {
  display: block; width: 21px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s;
}
.burger span { position: relative; }
.burger span::before, .burger span::after { content: ''; position: absolute; left: 0; }
.burger span::before { top: -7px; }
.burger span::after  { top:  7px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span::after  { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; border-top: 1px solid var(--line); background: var(--card);
  padding: .75rem 0 1.25rem;
}
.mobile-nav.is-open { display: block; animation: slideDown .28s var(--ease); }
.mobile-nav a {
  display: flex; align-items: center; min-height: 54px; padding: 0 .25rem;
  font-weight: 650; font-size: 1.06rem; color: var(--ink);
  border-bottom: 1px solid var(--paper-2);
}
.mobile-nav .btn { margin-top: 1rem; }

@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

@media (max-width: 1000px) {
  .nav, .header-cta { display: none; }
  .burger { display: flex; }
}

/* ── Hero ────────────────────────────────────────────────────────────────── */

/* No overflow clipping here: the location dropdown hangs out of the hero and
   must be allowed to cover the section below it. The glow is clipped on its
   own instead. */
.hero { position: relative; padding: clamp(2rem, 4vw, 3.5rem) 0 0; }
.hero::before {
  content: ''; position: absolute; inset: 0 40% 30% 0;
  background: radial-gradient(closest-side at 20% 30%, rgba(201,162,39,.18), transparent 72%);
  pointer-events: none;
}
.hero-in { position: relative; }

.hero-top {
  display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
@media (max-width: 940px) { .hero-top { grid-template-columns: 1fr; gap: 1.75rem; } }
.hero-copy { min-width: 0; }

.hero h1 { margin-bottom: .55rem; }
.hero h1 .accent {
  background: linear-gradient(120deg, var(--gold-deep), var(--gold) 60%, var(--gold-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  font-size: clamp(1.02rem, .97rem + .32vw, 1.18rem);
  color: var(--ink-2); max-width: 48ch; margin-bottom: 0;
}

.hero-trust {
  display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: 1.3rem 0 0;
  padding: 0; list-style: none; color: var(--ink-2); font-size: .95rem; font-weight: 600;
}
.hero-trust li { display: flex; align-items: center; gap: .45rem; }
.hero-trust svg { width: 19px; height: 19px; color: var(--green); flex: none; }

.hero-search { margin-top: clamp(1.5rem, 3vw, 2.25rem); }

/* ── Hero slideshow ──────────────────────────────────────────────────────── */

.hslide { min-width: 0; }
/* On a phone the slideshow pushes the search bar off the first screen, so the
   hero there is the headline and the search, nothing else. */
@media (max-width: 760px) { .hero-show { display: none; } }

.hslide-frame {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg);
  overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
@media (max-width: 940px) { .hslide-frame { aspect-ratio: 16 / 11; } }
@media (max-width: 420px) { .hslide-frame { aspect-ratio: 4 / 3; } }

.hslide-item {
  position: absolute; inset: 0; display: block; color: #fff;
  opacity: 0; visibility: hidden; transform: scale(1.03);
  transition: opacity .45s var(--ease), transform 1.1s var(--ease), visibility .45s;
}
.hslide-item.is-now { opacity: 1; visibility: visible; transform: none; }
.hslide-item::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,10,12,.34) 0%, rgba(10,10,12,0) 32%,
                              rgba(10,10,12,.22) 55%, rgba(10,10,12,.86) 100%);
}
.hslide-item img { width: 100%; height: 100%; object-fit: cover; }

.hslide-flags {
  position: absolute; top: .85rem; left: .85rem; right: 4rem; z-index: 2;
  display: flex; flex-wrap: wrap; gap: .4rem;
}
.hslide-flags .hot {
  display: inline-flex; align-items: center; gap: .4rem;
  background: linear-gradient(135deg, #D8402F, #A32017); color: #fff;
  font-size: .76rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase;
  padding: .34rem .75rem; border-radius: 999px; box-shadow: 0 3px 12px rgba(163,32,23,.45);
}
.hslide-flags .hot--pick { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #1A1A1C; box-shadow: 0 3px 12px rgba(158,124,24,.4); }
.hslide-flags .hot svg { width: 14px; height: 14px; }
.hslide-flags .hot .dot {
  width: 7px; height: 7px; border-radius: 50%; background: #fff;
  animation: pulse 1.4s ease-in-out infinite;
}
.hslide-flags .flag {
  display: inline-flex; align-items: center; gap: .3rem;
  background: rgba(255,255,255,.94); color: var(--ink);
  font-size: .74rem; font-weight: 800; padding: .3rem .65rem; border-radius: 999px;
}
.hslide-flags .flag--title { background: var(--green); color: #fff; }
.hslide-flags .flag svg { width: 13px; height: 13px; }

.hslide-ref {
  position: absolute; top: .85rem; right: .85rem; z-index: 2;
  background: rgba(26,26,28,.72); color: #fff; backdrop-filter: blur(4px);
  font-size: .72rem; font-weight: 800; letter-spacing: .06em;
  padding: .25rem .55rem; border-radius: 7px;
}

.hslide-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1.1rem 1.2rem; }
.hslide-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem; margin: 0 0 .2rem; }
.hslide-price .amt {
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem); font-weight: 850;
  letter-spacing: -.025em; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.hslide-price .was { font-size: .95rem; color: rgba(255,255,255,.72); text-decoration: line-through; }
.hslide-price .cut {
  background: var(--gold); color: #1A1A1C; font-size: .78rem; font-weight: 850;
  padding: .18rem .5rem; border-radius: 6px;
}
.hslide-title {
  margin: 0 0 .4rem; font-weight: 700; font-size: 1rem; line-height: 1.35; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hslide-facts { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin: 0; font-size: .88rem; font-weight: 650; color: rgba(255,255,255,.88); }
.hslide-facts span { display: inline-flex; align-items: center; gap: .35rem; }
.hslide-facts svg { width: 15px; height: 15px; color: var(--gold-light); }

.hslide-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.88); display: grid; place-items: center;
  box-shadow: 0 3px 12px rgba(0,0,0,.2); transition: .2s; opacity: .85;
}
.hslide-arrow:hover { background: #fff; opacity: 1; transform: translateY(-50%) scale(1.08); }
.hslide-arrow svg { width: 20px; height: 20px; color: var(--ink); }
.hslide-arrow.prev { left: .7rem; }
.hslide-arrow.next { right: .7rem; }

.hslide-dots { display: flex; justify-content: center; gap: .4rem; margin-top: .85rem; }
.hslide-dots button {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--line); transition: width .25s var(--ease), background-color .25s;
}
.hslide-dots button[aria-selected="true"] { width: 26px; background: var(--gold-deep); }

/* ── Search panel ────────────────────────────────────────────────────────── */

.searchbar {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: .8rem;
}
.searchbar-grid {
  display: grid; gap: .5rem;
  grid-template-columns: 1.45fr .95fr 1.3fr auto;
  align-items: end;
}
@media (max-width: 900px) { .searchbar-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .searchbar-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.field > label,
.field-label {
  font-size: .72rem; font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase; color: var(--ink-3); line-height: 1.3;
}

.control, select.control, input.control {
  width: 100%; min-height: 50px; padding: .55rem .85rem;
  border: 2px solid var(--line); border-radius: 12px; background: var(--card);
  font: inherit; font-size: .99rem; font-weight: 600; color: var(--ink);
  transition: border-color .18s, box-shadow .18s;
  appearance: none;
}
.control:hover { border-color: var(--gold-line); }
.control:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,39,.16); outline: none; }

select.control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%234C4C54'%3E%3Cpath d='M5.5 7.5 10 12l4.5-4.5' stroke='%234C4C54' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center; background-size: 20px;
  padding-right: 2.6rem; cursor: pointer;
}

/* Location picker */
.locpick { position: relative; }
.locpick-btn {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  width: 100%; min-height: 50px; padding: .55rem .85rem; cursor: pointer;
  border: 2px solid var(--line); border-radius: 12px; background: var(--card);
  font: inherit; font-size: .99rem; font-weight: 600; color: var(--ink); text-align: left;
  transition: border-color .18s, box-shadow .18s;
}
.locpick-btn:hover { border-color: var(--gold-line); }
.locpick-btn[aria-expanded="true"] { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,39,.16); }
.locpick-btn > svg:first-child { width: 18px; height: 18px; flex: none; color: var(--gold-deep); }
.locpick-btn .chev { width: 18px; height: 18px; flex: none; color: var(--ink-3); transition: transform .22s var(--ease); }
.locpick-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.locpick-btn .txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.locpick-panel {
  position: absolute; z-index: 60; top: calc(100% + .5rem); left: 0;
  width: min(460px, 92vw); max-height: min(60vh, 460px); overflow: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: .75rem;
  animation: popIn .2s var(--ease);
}
.locpick-panel[hidden] { display: none; }
@keyframes popIn { from { opacity: 0; transform: translateY(-6px) scale(.985); } to { opacity: 1; transform: none; } }

.locpick-search { position: sticky; top: -.75rem; background: var(--card); padding: .25rem 0 .6rem; z-index: 2; }
.locpick-search input {
  width: 100%; min-height: 48px; padding: .6rem .9rem .6rem 2.5rem;
  border: 2px solid var(--line); border-radius: 12px; font: inherit; font-size: 1rem;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23777781' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.2-3.2'/%3E%3C/svg%3E") no-repeat .75rem center / 18px;
}
.locpick-search input:focus { border-color: var(--gold); outline: none; background-color: var(--card); }

.locgroup { border-top: 1px solid var(--paper-2); }
.locgroup:first-of-type { border-top: 0; }

.locrow {
  display: flex; align-items: center; gap: .7rem; width: 100%;
  min-height: 50px; padding: .4rem .6rem; border: 0; border-radius: 10px;
  background: none; font: inherit; color: var(--ink); cursor: pointer; text-align: left;
}
.locrow:hover { background: var(--gold-wash); }
.locrow .name { flex: 1; font-weight: 650; }
.locrow .n {
  font-size: .85rem; font-weight: 700; color: var(--ink-3);
  background: var(--paper-2); border-radius: 999px; padding: .1rem .55rem; flex: none;
}
.locrow.is-empty { opacity: .45; }

.locrow-toggle .twist {
  width: 18px; height: 18px; color: var(--ink-3); transition: transform .22s var(--ease); flex: none;
}
.locrow-toggle[aria-expanded="true"] .twist { transform: rotate(90deg); }
.locrow-toggle .name { font-weight: 800; }

.locchildren { padding-left: 1.6rem; display: none; }
.locchildren.is-open { display: block; animation: slideDown .22s var(--ease); }

.loccheck {
  width: 22px; height: 22px; flex: none; border: 2px solid var(--line); border-radius: 6px;
  display: grid; place-items: center; background: var(--card); transition: .15s;
}
.loccheck svg { width: 14px; height: 14px; color: #fff; opacity: 0; transition: opacity .15s; }
.locrow[aria-pressed="true"] .loccheck { background: var(--gold); border-color: var(--gold); }
.locrow[aria-pressed="true"] .loccheck svg { opacity: 1; }
.locrow[aria-pressed="true"] { background: var(--gold-wash); }

.locpick-foot {
  position: sticky; bottom: -.75rem; background: var(--card);
  padding: .6rem 0 .1rem; border-top: 1px solid var(--paper-2); margin-top: .5rem;
  display: flex; gap: .5rem;
}

.price-pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .4rem; }
.price-pair .dash { color: var(--ink-3); font-weight: 700; }

.search-go { display: flex; }
.search-go .btn { width: 100%; min-height: 50px; padding: .6rem 1.4rem; font-size: 1rem; }
@media (max-width: 560px) { .search-go { grid-column: 1 / -1; } }

/* The extra filters sit on one line and scroll sideways rather than wrapping
   into three rows of chips and pushing the listings off the screen. */
.search-more {
  display: flex; align-items: center; gap: .4rem; flex-wrap: nowrap;
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  margin-top: .6rem; padding-top: .6rem; border-top: 1px solid var(--paper-2);
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
}
.search-more::-webkit-scrollbar { display: none; }
.search-more > * { flex: none; }
.search-more .field-label { white-space: nowrap; }
.search-more .sep { width: 1px; height: 24px; background: var(--line); margin: 0 .25rem; }
/* Nothing to scroll past: drop the fade so the last chip is not greyed out. */
@media (min-width: 1100px) {
  .search-more { -webkit-mask-image: none; mask-image: none; flex-wrap: wrap; }
}

.chip {
  display: inline-flex; align-items: center; gap: .35rem; min-height: 38px;
  padding: .25rem .75rem; border: 2px solid var(--line); border-radius: 999px;
  background: var(--card); font: inherit; font-size: .88rem; font-weight: 650;
  color: var(--ink-2); cursor: pointer; transition: .16s; white-space: nowrap;
}
.search-more .chip .n { font-size: .8rem; }
.chip:hover { border-color: var(--gold-line); color: var(--ink); }
.chip[aria-pressed="true"], .chip.is-on {
  background: var(--ink); border-color: var(--ink); color: #fff;
}
.chip .x { font-weight: 800; opacity: .7; }

/* ── Search bar docked to the top of a results page ──────────────────────── */

/* The outer block keeps the height it had before it pinned (JavaScript locks
   it in), and the bar inside goes fixed once that block is off the top of the
   screen. Shrinking the block itself would pull every listing below it up the
   page mid-scroll, which reads as the page jumping away under your thumb. */
.searchdock { margin-top: 1.5rem; }
.searchdock-in { transition: padding .2s var(--ease); }

.searchdock.is-stuck .searchdock-in {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  padding: .55rem clamp(1rem, 3vw, 2rem);
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(26,26,28,.12);
  animation: dockIn .22s var(--ease);
}
@keyframes dockIn { from { transform: translateY(-100%); } to { transform: none; } }

.searchdock.is-stuck .searchbar {
  background: none; border-color: transparent; box-shadow: none; border-radius: 0;
  padding: 0; width: min(100%, var(--wrap)); margin-inline: auto;
}
.searchdock.is-stuck .field-label,
.searchdock.is-stuck .field > label,
.searchdock.is-stuck .search-more { display: none; }
.searchdock.is-stuck .control,
.searchdock.is-stuck .locpick-btn,
.searchdock.is-stuck .search-go .btn { min-height: 44px; border-radius: 10px; font-size: .95rem; }
.searchdock.is-stuck .price-pair .dash { font-size: .9rem; }

/* Pinned on a phone there is only room for the two controls that matter:
   where, and go. */
@media (max-width: 900px) {
  .searchdock.is-stuck .searchbar-grid { grid-template-columns: 1fr auto; gap: .45rem; }
  .searchdock.is-stuck .searchbar-grid > .field:nth-of-type(2),
  .searchdock.is-stuck .searchbar-grid > .field:nth-of-type(3) { display: none; }
  .searchdock.is-stuck .search-go { grid-column: auto; }
  /* Just the magnifier and the count, so the place name gets the width. */
  .searchdock.is-stuck .search-go .btn { padding-inline: 1rem; font-size: .95rem; }
  .searchdock.is-stuck .search-go .go-word { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .searchdock.is-stuck .searchdock-in { animation: none; }
}

/* ── Type tiles ──────────────────────────────────────────────────────────── */

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 860px) { .tiles { grid-template-columns: repeat(2, 1fr); } }

.tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .7rem; padding: 1.8rem 1rem; min-height: 158px;
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius);
  color: var(--ink); font-weight: 750; text-align: center;
  transition: transform .22s var(--ease), border-color .22s, box-shadow .22s, background-color .22s;
}
.tile:hover {
  transform: translateY(-6px); border-color: var(--gold); color: var(--ink);
  box-shadow: var(--shadow); background: var(--gold-wash);
}
.tile svg { width: 42px; height: 42px; color: var(--gold-deep); transition: transform .3s var(--ease); }
.tile:hover svg { transform: scale(1.1) rotate(-3deg); }
.tile .n { font-size: .88rem; font-weight: 650; color: var(--ink-3); }

/* ── Property cards ──────────────────────────────────────────────────────── */

.grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid, .grid-2 { grid-template-columns: 1fr; } }

.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .26s var(--ease), box-shadow .26s var(--ease), border-color .26s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold-line); }

.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.055); }

.card-badges {
  position: absolute; top: .75rem; left: .75rem; right: .75rem;
  display: flex; flex-wrap: wrap; gap: .4rem; pointer-events: none;
}
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .32rem .7rem; border-radius: 999px;
  font-size: .78rem; font-weight: 800; letter-spacing: .02em;
  background: rgba(255,255,255,.94); color: var(--ink);
  box-shadow: 0 2px 8px rgba(0,0,0,.12); backdrop-filter: blur(4px);
}
.badge svg { width: 13px; height: 13px; }
.badge--title { background: var(--green); color: #fff; }
.badge--promo { background: linear-gradient(135deg, var(--gold-light), var(--gold-deep)); color: #1A1A1C; }
.badge--sold  { background: var(--red); color: #fff; }
.badge--video { background: rgba(26,26,28,.84); color: #fff; }
.badge--left  { background: var(--ink); color: #fff; }

.card-ref {
  position: absolute; bottom: .7rem; right: .7rem; pointer-events: none;
  background: rgba(26,26,28,.78); color: #fff; backdrop-filter: blur(4px);
  font-size: .75rem; font-weight: 800; letter-spacing: .06em;
  padding: .25rem .6rem; border-radius: 7px;
}

.card-body { padding: 1.1rem 1.15rem 1.25rem; display: flex; flex-direction: column; flex: 1; }

.card-price {
  display: flex; align-items: baseline; gap: .55rem; flex-wrap: wrap; margin-bottom: .4rem;
}
.card-price .amt { font-size: 1.5rem; font-weight: 850; letter-spacing: -.02em; color: var(--ink); }
.card-price .was { font-size: .95rem; color: var(--ink-3); text-decoration: line-through; }
.card-price .flag { font-size: .8rem; font-weight: 700; color: var(--green); }

.card h3 {
  font-size: 1.07rem; font-weight: 750; line-height: 1.35; margin: 0 0 .5rem;
}
.card h3 a { color: var(--ink); }
.card:hover h3 a { color: var(--gold-deep); }

.card-where {
  display: flex; align-items: center; gap: .4rem;
  font-size: .95rem; color: var(--ink-2); font-weight: 600; margin-bottom: .75rem;
}
.card-where svg { width: 16px; height: 16px; color: var(--gold-deep); flex: none; }

.card-facts {
  display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; padding: 0; list-style: none;
}
.card-facts li {
  display: inline-flex; align-items: center; gap: .32rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  padding: .25rem .55rem; font-size: .84rem; font-weight: 650; color: var(--ink-2);
}
.card-facts svg { width: 14px; height: 14px; color: var(--ink-3); }

.card-actions { margin-top: auto; display: grid; grid-template-columns: 1fr auto; gap: .5rem; }

.card--sold { opacity: .92; }
.card--sold .card-media img { filter: grayscale(.85); }
.card--sold .card-price .amt { color: var(--ink-3); }

/* ── Marquee of areas ────────────────────────────────────────────────────── */

.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: .75rem; width: max-content; animation: slide 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

.area-pill {
  display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap;
  padding: .6rem 1.1rem; border-radius: 999px; background: var(--card);
  border: 1px solid var(--line); font-weight: 700; color: var(--ink); font-size: .97rem;
  transition: .2s;
}
.area-pill:hover { border-color: var(--gold); background: var(--gold-wash); color: var(--ink); transform: translateY(-2px); }
.area-pill .n { font-size: .82rem; color: var(--ink-3); font-weight: 650; }

/* ── Combo links (type + area) ───────────────────────────────────────────── */

.combos { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
@media (max-width: 980px) { .combos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .combos { grid-template-columns: 1fr; } }

.combo {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  padding: 1rem 1.1rem; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); color: var(--ink); font-weight: 700; font-size: .99rem;
  transition: .2s;
}
.combo:hover { border-color: var(--gold); background: var(--gold-wash); color: var(--ink); transform: translateX(4px); }
.combo .n {
  font-size: .82rem; font-weight: 800; color: var(--gold-deep);
  background: var(--gold-wash); border-radius: 999px; padding: .15rem .55rem; flex: none;
}
.combo:hover .n { background: var(--card); }

/* ── Promotions strip ────────────────────────────────────────────────────── */

.promo-band {
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(201,162,39,.20), transparent 60%),
    linear-gradient(180deg, #FFFDF5, #FBF4E0);
  border-block: 1px solid var(--gold-line);
}
.promo-flag {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--ink); color: var(--gold-light);
  padding: .4rem 1rem; border-radius: 999px; font-weight: 800; font-size: .84rem;
  letter-spacing: .08em; text-transform: uppercase;
}
.promo-flag .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.75); } }

.save-tag {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--red); color: #fff; font-weight: 800; font-size: .82rem;
  padding: .22rem .6rem; border-radius: 7px;
}

/* ── Ref lookup ──────────────────────────────────────────────────────────── */

.reflookup {
  display: grid; grid-template-columns: 1fr auto; gap: .6rem; max-width: 460px;
}
.reflookup.center-x { margin-inline: auto; }
@media (max-width: 480px) { .reflookup { grid-template-columns: 1fr; } }

/* ── Trust / steps ───────────────────────────────────────────────────────── */

.steps { counter-reset: step; display: grid; gap: 1.25rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

.step {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.75rem 1.5rem 1.5rem;
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -18px; left: 1.5rem;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  color: #fff; font-weight: 850; font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(201,162,39,.35);
}
.step h3 { margin-top: .65rem; font-size: 1.14rem; }
.step p { color: var(--ink-2); margin: 0; font-size: .99rem; }

.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
@media (max-width: 900px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }

.trust-item { text-align: center; padding: 1.5rem 1rem; }
.trust-item .num {
  font-size: clamp(2rem, 1.5rem + 1.6vw, 2.9rem); font-weight: 850;
  letter-spacing: -.03em; color: var(--gold-deep); line-height: 1;
}
.trust-item p { margin: .5rem 0 0; color: var(--ink-2); font-size: .97rem; font-weight: 600; }

/* ── Kareithi CTA block ──────────────────────────────────────────────────── */

.kareithi {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1A1A1C, #2A2A2E 55%, #1A1A1C);
  color: #fff; border-radius: var(--radius-lg); padding: clamp(1.25rem, 4vw, 3.5rem);
}
.kareithi::before {
  content: ''; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px;
  background: radial-gradient(closest-side, rgba(201,162,39,.35), transparent 70%);
}
.kareithi::after {
  content: ''; position: absolute; inset: auto -60px -140px auto; width: 320px; height: 320px;
  background: radial-gradient(closest-side, rgba(201,162,39,.18), transparent 70%);
}
.kareithi > * { position: relative; }
.kareithi .grid > * { min-width: 0; }
.kareithi h2 { color: #fff; }
.kareithi p { color: rgba(255,255,255,.78); font-size: 1.07rem; max-width: 54ch; }
.kareithi .avatar {
  width: 72px; height: 72px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  display: grid; place-items: center; font-weight: 850; font-size: 1.6rem; color: #1A1A1C;
  box-shadow: 0 0 0 4px rgba(201,162,39,.2);
}
.kareithi-head { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.2rem; }
.kareithi-head .who { font-weight: 800; font-size: 1.1rem; }
.kareithi-head .who span { display: block; font-weight: 600; font-size: .92rem; color: rgba(255,255,255,.62); }
.kareithi-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }

/* ── Testimonials ────────────────────────────────────────────────────────── */

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

.quote {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.5rem; position: relative;
}
.quote::before {
  content: '"'; position: absolute; top: .1rem; left: 1.1rem;
  font-size: 4rem; line-height: 1; color: var(--gold-line); font-family: Georgia, serif;
}
.quote blockquote { margin: 1.1rem 0 1.1rem; font-size: 1.03rem; color: var(--ink); }
.quote cite { font-style: normal; font-weight: 800; display: block; }
.quote cite span { display: block; font-weight: 600; font-size: .9rem; color: var(--ink-3); }

/* ── Property page ───────────────────────────────────────────────────────── */

.crumbs {
  display: flex; flex-wrap: wrap; gap: .4rem; align-items: center;
  font-size: .9rem; color: var(--ink-3); padding: 1.1rem 0 0; margin: 0; list-style: none;
}
.crumbs li { display: flex; align-items: center; gap: .4rem; }
.crumbs li + li::before { content: '›'; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); font-weight: 600; }
.crumbs a:hover { color: var(--gold-deep); }

.prop-layout { display: grid; grid-template-columns: 1fr 380px; gap: 2.5rem; align-items: start; }
/* Without this a grid column is at least as wide as its widest child, and the
   row of photo thumbnails pushes the whole page sideways on a phone. */
.prop-layout > * { min-width: 0; }
@media (max-width: 1040px) { .prop-layout { grid-template-columns: 1fr; } }

.gallery { border-radius: var(--radius); overflow: hidden; max-width: 100%; background: var(--paper-2); }
.gallery-main { position: relative; aspect-ratio: 16 / 10; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main .nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.92); display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.18); transition: .2s;
}
.gallery-main .nav-btn:hover { background: #fff; transform: translateY(-50%) scale(1.07); }
.gallery-main .prev { left: .85rem; }
.gallery-main .next { right: .85rem; }
.gallery-main .nav-btn svg { width: 22px; height: 22px; color: var(--ink); }
.gallery-count {
  /* Top-left: the photo watermark lives bottom-right. */
  position: absolute; top: .85rem; left: .85rem;
  background: rgba(26,26,28,.78); color: #fff; font-weight: 700; font-size: .85rem;
  padding: .3rem .7rem; border-radius: 8px; backdrop-filter: blur(4px);
}
.gallery-thumbs {
  display: flex; gap: .5rem; padding: .6rem; max-width: 100%;
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin;
}
.gallery-thumbs button {
  flex: none; width: 92px; aspect-ratio: 4/3; border-radius: 9px; overflow: hidden;
  border: 2px solid transparent; padding: 0; cursor: pointer; background: none;
  transition: border-color .18s, opacity .18s; opacity: .68;
}
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--gold); opacity: 1; }

.prop-title { margin: 1.75rem 0 .4rem; }
.prop-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; color: var(--ink-2); font-weight: 600; margin-bottom: 1.5rem; }
.prop-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.prop-meta svg { width: 17px; height: 17px; color: var(--gold-deep); }

.spec-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.spec {
  background: var(--card); padding: 1.05rem 1.15rem;
}
.spec dt { font-size: .82rem; font-weight: 750; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .2rem; }
.spec dd { margin: 0; font-size: 1.04rem; font-weight: 700; }

.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem 1.25rem; padding: 0; margin: 0; list-style: none; }
@media (max-width: 620px) { .feature-list { grid-template-columns: 1fr; } }
.feature-list li { display: flex; align-items: flex-start; gap: .55rem; font-weight: 600; color: var(--ink-2); }
.feature-list svg { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: .22rem; }

.prose { font-size: 1.07rem; color: var(--ink-2); }
.prose p { margin-bottom: 1.1em; }
.prose strong { color: var(--ink); }

/* Sticky enquiry rail */
.rail { position: sticky; top: 100px; display: grid; gap: 1rem; }
@media (max-width: 1040px) { .rail { position: static; } }

.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.4rem;
}
.panel--gold { border-color: var(--gold-line); background: linear-gradient(180deg, #FFFDF6, var(--card)); }

.price-big { font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.5rem); font-weight: 850; letter-spacing: -.03em; line-height: 1.1; }
.price-note { color: var(--ink-3); font-size: .93rem; font-weight: 600; }

.plan-box {
  background: var(--gold-wash); border: 1px solid var(--gold-line);
  border-radius: var(--radius-sm); padding: .9rem 1rem; margin-top: 1rem;
}
.plan-box .lab { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--gold-deep); }
.plan-box .val { font-size: 1.22rem; font-weight: 800; }

.social-links { display: grid; gap: .5rem; }
.social-link {
  display: flex; align-items: center; gap: .7rem; min-height: 52px; padding: .55rem .9rem;
  border: 2px solid var(--line); border-radius: 12px; font-weight: 700; color: var(--ink);
  transition: .18s;
  /* An email address has no break opportunity a browser will take on its own,
     and on a phone that is enough to push the page sideways. */
  min-width: 0; overflow-wrap: anywhere;
}
.social-link:hover { border-color: var(--ink); background: var(--paper); color: var(--ink); transform: translateX(3px); }
.social-link svg { width: 22px; height: 22px; flex: none; }
.social-link .go { margin-left: auto; color: var(--ink-3); flex: none; }

.safety {
  background: var(--red-wash); border: 1px solid #F0C9C4; border-radius: var(--radius-sm);
  padding: 1rem 1.1rem; font-size: .95rem; color: #6E1811;
}
.safety strong { color: #6E1811; }

/* ── Lead form ───────────────────────────────────────────────────────────── */

.lead-form { display: grid; gap: .75rem; }
.lead-form .hp { position: absolute; left: -9999px; }
.lead-note { font-size: .88rem; color: var(--ink-3); text-align: center; margin: 0; }

.form-ok {
  background: var(--green-wash); border: 1px solid #B9E0CB; color: #0E5637;
  border-radius: var(--radius-sm); padding: 1rem; font-weight: 650;
}
.form-err {
  background: var(--red-wash); border: 1px solid #F0C9C4; color: #6E1811;
  border-radius: var(--radius-sm); padding: .8rem 1rem; font-weight: 650; font-size: .95rem;
}

/* Modal */
.modal {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 1rem;
  background: rgba(26,26,28,.55); backdrop-filter: blur(4px);
}
.modal.is-open { display: flex; animation: fadeIn .2s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-box {
  width: min(460px, 100%); background: var(--card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 1.6rem; max-height: 92vh; overflow: auto;
  animation: popUp .28s var(--ease);
}
@keyframes popUp { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-close {
  float: right; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--paper-2); font-size: 1.3rem; line-height: 1; color: var(--ink-2);
}
.modal-close:hover { background: var(--line); }

/* ── Sticky mobile bar ───────────────────────────────────────────────────── */

.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: none;
  gap: .5rem; padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
  backdrop-filter: blur(12px); box-shadow: 0 -4px 20px rgba(26,26,28,.08);
}
.mobile-bar .btn { flex: 1; min-height: 50px; font-size: .97rem; padding-inline: .75rem; }
@media (max-width: 760px) { .mobile-bar { display: flex; } body { padding-bottom: 76px; } }

/* ── Results head / filters ──────────────────────────────────────────────── */

.results-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.5rem;
}
.results-count { font-weight: 700; color: var(--ink-2); }
.results-count strong { color: var(--ink); font-size: 1.12rem; }

.active-filters { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.25rem; }

.pager { display: flex; justify-content: center; gap: .4rem; margin-top: 2.5rem; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 48px; min-height: 48px; display: grid; place-items: center; padding: 0 .8rem;
  border: 2px solid var(--line); border-radius: 12px; font-weight: 700; color: var(--ink-2);
}
.pager a:hover { border-color: var(--gold); background: var(--gold-wash); color: var(--ink); }
.pager .is-now { background: var(--ink); border-color: var(--ink); color: #fff; }

.empty {
  text-align: center; padding: 3.5rem 1.5rem; background: var(--card);
  border: 2px dashed var(--line); border-radius: var(--radius);
}
.empty svg { width: 56px; height: 56px; color: var(--gold-line); margin-bottom: 1rem; }

/* ── Article typography ──────────────────────────────────────────────────── */

.article { font-size: 1.1rem; line-height: 1.75; color: #27272B; }
.article > p:first-of-type { margin-top: 0; }
.article .lede { font-size: 1.26rem; line-height: 1.6; color: var(--ink); font-weight: 600; }
.article h2 {
  margin: 2.4rem 0 .85rem; font-size: clamp(1.45rem, 1.2rem + 1vw, 1.95rem);
  padding-top: 1.4rem; border-top: 1px solid var(--line);
}
.article h3 { margin: 1.9rem 0 .6rem; font-size: 1.22rem; }
.article ul, .article ol { margin: 0 0 1.3em; padding-left: 1.4em; }
.article li { margin-bottom: .55em; }
.article li::marker { color: var(--gold-deep); font-weight: 700; }
.article a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.article figure { margin: 2rem 0; }
.article figure img { border-radius: var(--radius); width: 100%; }
.article figcaption { font-size: .93rem; color: var(--ink-3); margin-top: .6rem; text-align: center; }
.article strong { color: var(--ink); font-weight: 750; }
.article .post-cta { margin-top: 2.5rem; }

.table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.article table { border-collapse: collapse; width: 100%; font-size: 1rem; background: var(--card); }
.article th, .article td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.article th { background: var(--paper-2); font-weight: 800; font-size: .92rem; }
.article tbody tr:last-child td { border-bottom: 0; }

.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card);
  margin-bottom: .6rem; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 1rem 1.2rem; font-weight: 750; font-size: 1.04rem;
  list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--gold-deep); font-weight: 400; flex: none; }
.faq-item[open] summary::after { content: '–'; }
.faq-item .a { padding: 0 1.2rem 1.1rem; color: var(--ink-2); }

.post-head img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.post-tag {
  display: inline-block; align-self: flex-start; background: var(--gold-wash); color: var(--gold-deep);
  border: 1px solid var(--gold-line); font-weight: 800; font-size: .78rem;
  padding: .22rem .7rem; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase;
}

/* The lead guide. Two columns where there is room, and one column on a phone:
   side by side on a 375px screen it squeezes the headline to a word a line. */
.post-lead { display: grid; grid-template-columns: 1.15fr 1fr; align-items: stretch; }
.post-lead .card-media { aspect-ratio: 16 / 11; }
.post-lead .card-body { justify-content: center; padding: clamp(1.15rem, 3vw, 2rem); }
.post-lead h2 {
  font-size: clamp(1.3rem, 1.1rem + .9vw, 1.9rem); margin: .85rem 0 .5rem; color: var(--ink);
}
.post-lead:hover h2 { color: var(--gold-deep); }
.post-lead-sub { font-size: 1.02rem; }
@media (max-width: 760px) {
  .post-lead { grid-template-columns: 1fr; }
  .post-lead .card-media { aspect-ratio: 16 / 10; }
  .post-lead-sub { font-size: .98rem; }
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 3.5rem 0 2rem; margin-top: 4rem; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: var(--gold-light); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer img.flogo { height: 48px; margin-bottom: 1rem; }
.site-footer h4 { color: #fff; font-size: .88rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .9rem;
}
.social-row { display: flex; gap: .6rem; margin-top: 1rem; }
.social-row a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); transition: .2s;
}
.social-row a:hover { background: var(--gold); transform: translateY(-3px); }
.social-row svg { width: 20px; height: 20px; }

/* ── Scroll reveal ───────────────────────────────────────────────────────── */

/* Scoped to .js: if the script never runs, the content is simply there.
   An animation must never be the reason a buyer cannot see a listing. */
.js [data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }
[data-reveal][data-delay="5"] { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ── Utility ─────────────────────────────────────────────────────────────── */

.stack   { display: grid; gap: 1rem; }
.stack-sm{ display: grid; gap: .5rem; }
.row     { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.muted { color: var(--ink-3); }
.small { font-size: .92rem; }
.center { text-align: center; }
.hide-sm { }
@media (max-width: 640px) { .hide-sm { display: none !important; } }
