/* ================================================================
   Property Portal — main.css  v1.0
   Clean minimal aesthetic · Playfair Display + Roboto
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&family=Roboto:wght@300;400;500&display=swap');

/* ── Reset & tokens ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:       #0f0f0f;
  --ink:         #1a1a1a;
  --body:        #3d3d3d;
  --muted:       #8a8a8a;
  --border:      #e8e8e4;
  --surface:     #f7f7f5;
  --white:       #ffffff;
  --accent:      #c8a96e;   /* warm gold */

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Roboto', -apple-system, sans-serif;

  --radius:    6px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.06);
  --shadow:    0 4px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.14);

  --header-h: 70px;
  --max-w:    1280px;
  --gutter:   clamp(1.25rem, 5vw, 3rem);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body); color: var(--body);
  background: var(--white); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img   { display: block; max-width: 100%; }
a     { color: inherit; text-decoration: none; }
button{ cursor: pointer; font-family: inherit; border: none; background: none; }
ul    { list-style: none; }
input, select, textarea { font-family: inherit; }

/* ── Typography ─────────────────────────────────────────────────── */
h1,h2,h3,h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.2; font-weight: 500; }

.section-eyebrow {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); font-family: var(--font-body); font-weight: 500; margin-bottom: .5rem;
}
.section-title  { font-size: clamp(1.6rem,3vw,2.4rem); margin-bottom: 1rem; }
.section-link   {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: 13px; font-weight: 500; color: var(--ink);
  border-bottom: 1px solid var(--ink); padding-bottom: 2px; transition: opacity .2s;
}
.section-link:hover { opacity: .55; }
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem;
}

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 2rem; border-radius: var(--radius);
  font-size: 14px; font-weight: 500; letter-spacing: .02em; transition: all .2s;
}
.btn--dark    { background: var(--ink);   color: var(--white); }
.btn--dark:hover  { background: #2d2d2d; }
.btn--white   { background: var(--white); color: var(--ink); }
.btn--white:hover { background: var(--surface); }
.btn--outline { border: 1px solid var(--border); color: var(--body); }
.btn--outline:hover { border-color: var(--ink); color: var(--ink); }

/* ── Site header ────────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: var(--white); border-bottom: 1px solid var(--border);
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.site-header--transparent {
  background: transparent; border-bottom-color: transparent;
}
.site-header--transparent.scrolled {
  background: var(--white); border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter);
  height: 100%; display: flex; align-items: center; gap: 2rem;
}
.header-logo-img  { height: 34px; width: auto; }
.header-logo-text {
  font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); font-weight: 500;
}
.site-header--transparent:not(.scrolled) .header-logo-text { color: var(--white); }

.header-nav { flex: 1; }
.header-nav-list { display: flex; gap: .15rem; }
.header-nav-list li a {
  display: block; padding: .45rem .85rem; border-radius: var(--radius);
  font-size: 14px; color: var(--body); transition: color .15s, background .15s;
}
.site-header--transparent:not(.scrolled) .header-nav-list li a { color: rgba(255,255,255,.85); }
.header-nav-list li a:hover { color: var(--ink); background: var(--surface); }
.site-header--transparent:not(.scrolled) .header-nav-list li a:hover { color: #fff; background: rgba(255,255,255,.12); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: .75rem; }
.header-btn {
  padding: .5rem 1.1rem; border-radius: var(--radius); font-size: 13px; font-weight: 500; transition: all .2s;
}
.header-btn--outline {
  border: 1px solid var(--border); color: var(--body);
}
.site-header--transparent:not(.scrolled) .header-btn--outline { border-color: rgba(255,255,255,.35); color: rgba(255,255,255,.9); }
.header-btn--outline:hover { border-color: var(--ink); color: var(--ink); }
.header-btn--primary { background: var(--ink); color: var(--white); }
.header-btn--primary:hover { background: #2d2d2d; }
.site-header--transparent:not(.scrolled) .header-btn--primary { background: var(--accent); }

/* Desktop-only / mobile-only header button visibility */
.header-btn--mobile-only  { display: none; }
.header-btn--desktop-only { display: inline-flex; }

/* Icon-only button variant */
.header-btn--icon {
  padding: .5rem; border-radius: var(--radius);
  display: inline-flex; align-items: center; justify-content: center;
}

.header-burger { display: none; flex-direction: column; gap: 5px; padding: .5rem; }
.header-burger span { display: block; width: 22px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: all .25s; }
.site-header--transparent:not(.scrolled) .header-burger span { background: var(--white); }

/* Mobile nav open */
@media (max-width: 768px) {
  .header-burger { display: flex; }
  .header-btn--mobile-only  { display: inline-flex; }
  .header-btn--desktop-only { display: none; }
  .header-nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 1rem var(--gutter);
  }
  .header-nav.nav-open { display: block; }
  .header-nav-list { flex-direction: column; gap: 0; }
  .header-nav-list li a { padding: .75rem 0; border-radius: 0; border-bottom: 1px solid var(--border); }
  .header-btn--outline { display: none; }
}

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
  position: relative; height: 100svh; min-height: 600px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #1c1c1c 0%, #2e2e2e 100%); }
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,.5) 100%);
}
.hero-content {
  position: relative; z-index: 1; text-align: center;
  max-width: 640px; width: 100%; padding: 0 var(--gutter);
  margin-top: var(--header-h);
}
.hero-eyebrow {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); font-weight: 500; margin-bottom: 1.25rem;
}
.hero-headline {
  font-family: var(--font-display); font-size: clamp(2.2rem,5.5vw,4rem);
  font-weight: 400; color: var(--white); line-height: 1.13; margin-bottom: 2.25rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}

/* Zoopla-style search ─── */
.hero-search {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0,0,0,.22);
  position: relative; /* for autocomplete */
}
.hero-search-tabs { display: flex; border-bottom: 1px solid var(--border); }
.hero-tab {
  flex: 1; padding: .85rem 1rem; font-size: 14px; font-weight: 500;
  color: var(--muted); cursor: pointer; transition: color .15s;
}
.hero-tab:first-child { border-radius: var(--radius-lg) 0 0 0; }
.hero-tab:last-child  { border-radius: 0 var(--radius-lg) 0 0; }
.hero-tab.active { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.hero-tab:hover:not(.active) { color: var(--body); background: var(--surface); }

.hero-search-bar {
  display: flex; align-items: center; gap: .5rem;
  padding: .65rem .65rem .65rem 1rem;
}
.search-icon { flex-shrink: 0; color: var(--muted); }
.hero-search-bar input {
  flex: 1; border: none; outline: none; font-size: 15px;
  color: var(--ink); padding: .3rem 0; min-width: 0; background: transparent;
}
.hero-search-bar input::placeholder { color: var(--muted); }
.hero-search-btn {
  flex-shrink: 0; background: var(--ink); color: var(--white);
  border-radius: calc(var(--radius-lg) - 4px);
  padding: .75rem 1.75rem; font-size: 14px; font-weight: 500; transition: background .2s;
}
.hero-search-btn:hover { background: #2d2d2d; }

/* ── Autocomplete dropdown — portal style ─────────────────────────────────── */
.hero-autocomplete {
  display: none;
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,.14);
  overflow: hidden; z-index: 200;
}

/* Category group header e.g. "Locations" / "Postcodes" */
.hero-ac-group {
  padding: .55rem 1rem .3rem;
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.hero-ac-group:not(:first-child) { border-top: 1px solid var(--border); }

/* Individual suggestion row */
.hero-ac-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1rem; cursor: pointer;
  transition: background .1s; position: relative;
}
.hero-ac-item:not(:last-child) { border-bottom: 1px solid rgba(232,232,228,.6); }
.hero-ac-item:hover, .hero-ac-item.focused {
  background: var(--surface);
}
.hero-ac-item.focused::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--ink);
}

/* Icon */
.ac-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--muted);
}

/* Text */
.ac-text { flex: 1; min-width: 0; }
.ac-label {
  font-size: 14px; color: var(--ink); font-weight: 400;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: block;
}
.ac-label strong { font-weight: 600; color: var(--black); }
.ac-sub {
  font-size: 11px; color: var(--muted); margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: block;
}

/* Badge e.g. "Postcode" */
.ac-badge {
  font-size: 10px; font-weight: 500; letter-spacing: .04em;
  color: var(--muted); background: var(--surface);
  border: 1px solid var(--border); border-radius: 3px;
  padding: 2px 6px; flex-shrink: 0;
}

/* Arrow hint */
.ac-arrow {
  color: var(--border); flex-shrink: 0;
  transition: color .1s;
}
.hero-ac-item:hover .ac-arrow,
.hero-ac-item.focused .ac-arrow { color: var(--muted); }

/* Footer hint */
.hero-ac-footer {
  padding: .6rem 1rem;
  font-size: 11px; color: var(--muted);
  background: var(--surface); border-top: 1px solid var(--border);
  text-align: center;
}

.hero-hint { font-size: 12px; color: rgba(255,255,255,.5); margin-top: .75rem; letter-spacing: .01em; }

.hero-scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 1; color: rgba(255,255,255,.65);
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(6px)} }

/* ── Stats strip ────────────────────────────────────────────────── */
.stats-strip { background: var(--ink); }
.stats-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 2.5rem var(--gutter);
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
}
.stat { text-align: center; flex: 1; min-width: 100px; }
.stat-number { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--white); font-weight: 500; }
.stat-label  { font-size: 12px; color: rgba(255,255,255,.45); letter-spacing: .04em; }
.stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,.12); flex-shrink: 0; }

/* ── Featured section ───────────────────────────────────────────── */
.featured-section { padding: 4rem 0 5rem; }
.featured-inner   { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Property grid / cards ──────────────────────────────────────── */
.property-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 1.5rem;
}
.property-card {
  display: flex; flex-direction: column; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--border); background: var(--white);
  transition: transform .22s, box-shadow .22s, border-color .22s; color: inherit;
}
.property-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }

.property-card-img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--surface); }
.property-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.property-card:hover .property-card-img img { transform: scale(1.04); }

.property-badge {
  position: absolute; top: .75rem; left: .75rem;
  padding: .25rem .6rem; border-radius: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.property-badge--sale { background: var(--ink);   color: var(--white); }
.property-badge--rent { background: var(--accent); color: var(--white); }

.property-card-body { padding: 1.1rem 1.25rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.property-card-price { font-family: var(--font-body); font-size: 1.2rem; color: var(--ink); font-weight: 500; letter-spacing: -.01em; }
.property-card-title { font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.property-card-address { font-size: 12px; color: var(--muted); }
.property-card-meta { display: flex; gap: .85rem; margin-top: .35rem; font-size: 12px; color: var(--muted); flex-wrap: wrap; }

/* List view */
.property-grid--list .property-card       { flex-direction: row; }
.property-grid--list .property-card-img   { width: 220px; flex-shrink: 0; aspect-ratio: unset; }
.property-grid--list .property-card-body  { justify-content: center; }

/* Skeletons */
@keyframes shimmer { 0%{background-position:-400px 0} 100%{background-position:400px 0} }
.skeleton-box, .skeleton-line {
  background: linear-gradient(90deg, var(--border) 25%, #eeeeea 50%, var(--border) 75%);
  background-size: 800px 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius);
}
.skeleton-line       { height: 14px; margin-bottom: .5rem; }
.skeleton-line--short{ width: 40%; }
.skeleton-line--med  { width: 65%; }
.property-card--skeleton .property-card-img .skeleton-box { width: 100%; height: 100%; }

.no-props { color: var(--muted); font-size: 14px; grid-column: 1/-1; padding: 3rem 0; text-align: center; }

/* ── Why section ────────────────────────────────────────────────── */
.why-section { background: var(--surface); }
.why-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 5rem var(--gutter);
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.why-body { color: var(--body); line-height: 1.75; margin-bottom: 2rem; font-size: 15px; }
.why-features { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.why-feature  { display: flex; gap: 1rem; }
.why-feature-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: .35rem; }
.why-feature-title { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: .25rem; }
.why-feature-desc  { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ── CTA section ────────────────────────────────────────────────── */
.cta-section { background: var(--ink); padding: 5rem var(--gutter); text-align: center; }
.cta-inner   { max-width: 580px; margin: 0 auto; }
.cta-title   { font-family: var(--font-display); font-size: clamp(1.8rem,4vw,3rem); color: var(--white); margin-bottom: 1rem; }
.cta-body    { color: rgba(255,255,255,.55); font-size: 15px; margin-bottom: 2rem; }

/* ── Listings page ─────────────────────────────────────────────────────────── */
.listings-page { padding-top: var(--header-h); min-height: 100vh; }
.listings-elementor-intro {}

/* Top bar */
.lp-topbar {
  position: sticky; top: var(--header-h); z-index: 80;
  background: var(--white); border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.lp-topbar-inner {
  max-width: var(--max-w); margin: 0 auto; padding: .65rem var(--gutter);
  display: flex; align-items: center; gap: .75rem;
}

/* Search input */
.lp-search-wrap {
  display: flex; align-items: center; gap: .5rem; flex: 1; min-width: 0;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: .5rem .85rem; background: var(--white); transition: border-color .15s;
}
.lp-search-wrap:focus-within { border-color: var(--ink); }
.lp-search-wrap svg { color: var(--muted); flex-shrink: 0; }
.lp-search-input {
  border: none; outline: none; font-size: 14px; color: var(--ink);
  font-family: var(--font-body); background: transparent; width: 100%; min-width: 0;
}
.lp-search-input::placeholder { color: var(--muted); }

/* Type tabs */
.lp-type-tabs { display: flex; gap: .2rem; flex-shrink: 0; }
.lp-type-tab {
  padding: .5rem .9rem; border-radius: var(--radius);
  font-size: 13px; font-weight: 500; color: var(--muted);
  background: transparent; border: 1.5px solid transparent;
  cursor: pointer; transition: all .15s; white-space: nowrap;
}
.lp-type-tab:hover  { color: var(--ink); background: var(--surface); }
.lp-type-tab.active { color: var(--ink); background: var(--surface); border-color: var(--border); }

/* Filters button (mobile) */
.lp-filters-btn {
  display: none; align-items: center; gap: .4rem;
  padding: .5rem .9rem; border-radius: var(--radius);
  font-size: 13px; font-weight: 500; color: var(--body);
  border: 1.5px solid var(--border); background: var(--white);
  cursor: pointer; transition: all .15s; white-space: nowrap; flex-shrink: 0;
}
.lp-filters-btn:hover { border-color: var(--ink); color: var(--ink); }
.lp-filter-count {
  background: var(--ink); color: var(--white);
  border-radius: 50%; width: 18px; height: 18px;
  font-size: 10px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Right side: count + view toggle */
.lp-topbar-right { display: flex; align-items: center; gap: .75rem; margin-left: auto; flex-shrink: 0; }
.lp-result-count { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* View toggle */
.lp-view-toggle { display: flex; gap: .15rem; }
.lp-view-btn {
  width: 32px; height: 32px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); transition: all .15s; cursor: pointer;
}
.lp-view-btn:hover  { color: var(--ink); background: var(--surface); }
.lp-view-btn.active { color: var(--ink); background: var(--surface); }

/* ── Main layout: sidebar + results ─────────────────────────────── */
.lp-layout {
  display: flex; align-items: flex-start;
  max-width: var(--max-w); margin: 0 auto;
}

/* Sidebar */
.lp-sidebar {
  width: 260px; flex-shrink: 0;
  position: sticky; top: calc(var(--header-h) + 57px);
  height: calc(100vh - var(--header-h) - 57px);
  overflow-y: auto; border-right: 1px solid var(--border);
  background: var(--white);
}
.lp-sidebar-inner { padding: 1.25rem; }
.lp-sidebar-header {
  display: flex; align-items: center; gap: .5rem;
  margin-bottom: 1.25rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.lp-sidebar-title { font-size: 14px; font-weight: 600; color: var(--ink); flex: 1; }
.lp-sidebar-clear {
  font-size: 12px; color: var(--accent); font-weight: 500;
  cursor: pointer; transition: opacity .15s;
}
.lp-sidebar-clear:hover { opacity: .7; }
.lp-sidebar-close { display: none; color: var(--muted); padding: .2rem; }

/* Filter sections */
.lp-filter-section { margin-bottom: 1.5rem; }
.lp-filter-label {
  font-size: 11px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .65rem;
}
.lp-select {
  width: 100%; padding: .6rem .75rem; border-radius: var(--radius);
  border: 1.5px solid var(--border); font-size: 13px; color: var(--ink);
  font-family: var(--font-body); background: var(--white); outline: none;
  cursor: pointer; transition: border-color .15s;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238a8a8a' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .75rem center;
  padding-right: 2rem;
}
.lp-select:focus { border-color: var(--ink); }

/* Price row */
.lp-price-row { display: flex; align-items: center; gap: .4rem; }
.lp-price-row .lp-select { flex: 1; }
.lp-price-sep { font-size: 12px; color: var(--muted); flex-shrink: 0; }

/* Beds buttons */
.lp-beds-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: .3rem;
}
.lp-beds-btn {
  padding: .45rem .2rem; border-radius: var(--radius);
  border: 1.5px solid var(--border); font-size: 13px; font-weight: 500;
  color: var(--body); background: var(--white); cursor: pointer;
  transition: all .15s; text-align: center;
}
.lp-beds-btn:hover  { border-color: var(--ink); color: var(--ink); }
.lp-beds-btn.active { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* Property type chips */
.lp-type-grid { display: flex; flex-wrap: wrap; gap: .3rem; }
.lp-type-chip {
  padding: .35rem .7rem; border-radius: 20px;
  border: 1.5px solid var(--border); font-size: 12px; font-weight: 500;
  color: var(--body); background: var(--white); cursor: pointer;
  transition: all .15s; white-space: nowrap;
}
.lp-type-chip:hover  { border-color: var(--ink); color: var(--ink); }
.lp-type-chip.active { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* Checkboxes */
.lp-checkbox {
  display: flex; align-items: center; gap: .5rem;
  font-size: 13px; color: var(--body); cursor: pointer; margin-bottom: .5rem;
}
.lp-checkbox input { accent-color: var(--ink); }

/* ── Results area ───────────────────────────────────────────────── */
.lp-results { flex: 1; min-width: 0; padding: 1.5rem var(--gutter) 4rem 1.75rem; }

/* ── List view cards ────────────────────────────────────────────── */
.lp-list { display: flex; flex-direction: column; gap: .75rem; }

.lp-card--list {
  display: flex; border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: var(--white);
  overflow: hidden; transition: box-shadow .2s, border-color .2s;
  color: inherit; text-decoration: none;
}
.lp-card--list:hover {
  box-shadow: var(--shadow); border-color: #d0d0cc;
}
.lp-card--list .lp-card-img {
  width: 240px; flex-shrink: 0; position: relative; overflow: hidden;
  background: var(--surface);
}
.lp-card--list .lp-card-img img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .4s;
}
.lp-card--list:hover .lp-card-img img { transform: scale(1.03); }
.lp-card--list .lp-card-body {
  flex: 1; padding: 1rem 1.25rem; display: flex; flex-direction: column;
  justify-content: center; gap: .3rem; min-width: 0;
}

/* Top row: price + added date */
.lp-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.lp-card-price {
  font-family: var(--font-body); font-size: 1.2rem;
  font-weight: 600; color: var(--ink); letter-spacing: -.01em;
}
.lp-card-added { font-size: 11px; color: var(--accent); font-weight: 500; flex-shrink: 0; }

.lp-card-title {
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lp-card-address {
  font-size: 12px; color: var(--muted);
  display: flex; align-items: center; gap: .3rem;
}
.lp-card-address svg { flex-shrink: 0; color: var(--muted); }

/* Facts strip */
.lp-card-facts { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .2rem; }
.lp-fact {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: 12px; color: var(--body);
  background: var(--surface); border-radius: 4px;
  padding: .2rem .55rem;
}
.lp-fact--type   { color: var(--muted); }
.lp-fact--tenure { color: var(--muted); font-style: italic; }

/* Agency line */
.lp-card-agency {
  display: flex; align-items: center; gap: .35rem;
  font-size: 11px; color: var(--muted); font-weight: 500; margin-top: .25rem;
}
.lp-card-agency svg { color: var(--muted); flex-shrink: 0; }

/* Badges */
.lp-badge {
  position: absolute; top: .6rem; left: .6rem;
  padding: .2rem .55rem; border-radius: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  z-index: 1;
}
.lp-badge--sale   { background: var(--ink);   color: var(--white); }
.lp-badge--rent   { background: var(--accent); color: var(--white); }
.lp-badge--new    { background: #1a6b3c; color: var(--white); top: auto; bottom: .6rem; }
.lp-badge--added  { background: rgba(0,0,0,.5); color: var(--white); top: auto; bottom: .6rem; left: auto; right: .6rem; font-size: 9px; }

/* ── Grid view cards ────────────────────────────────────────────── */
.lp-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem;
}
.lp-card--grid {
  display: flex; flex-direction: column;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: var(--white); overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  color: inherit; text-decoration: none;
}
.lp-card--grid:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d0d0cc; }
.lp-card--grid .lp-card-img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--surface); }
.lp-card--grid .lp-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.lp-card--grid:hover .lp-card-img img { transform: scale(1.04); }
.lp-card--grid .lp-card-body { padding: .9rem 1rem; flex: 1; display: flex; flex-direction: column; gap: .25rem; }
.lp-card--grid .lp-card-price { font-size: 1.1rem; }

/* Skeleton */
.lp-card--skeleton .lp-card-img.skeleton-box { min-height: 140px; border-radius: 0; }
.lp-card--list.lp-card--skeleton .lp-card-img { height: 140px; }

/* ── Map view ───────────────────────────────────────────────────── */
.lp-map-pane { height: calc(100vh - var(--header-h) - 57px); }
.lp-map-split { display: flex; height: 100%; }
.lp-map-cards {
  width: 340px; flex-shrink: 0; overflow-y: auto;
  border-right: 1px solid var(--border);
}
.lp-map-container { flex: 1; position: relative; }
#leaflet-map { position: absolute; inset: 0; }

.lp-map-card {
  display: flex; gap: .75rem; padding: .85rem 1rem;
  border-bottom: 1px solid var(--border);
  transition: background .12s; text-decoration: none; color: inherit;
}
.lp-map-card:hover, .lp-map-card.active { background: var(--surface); }
.lp-map-card-img { width: 72px; height: 56px; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; }
.lp-map-card-img img { width: 100%; height: 100%; object-fit: cover; }
.lp-map-card-body { min-width: 0; }
.lp-map-card-price  { font-size: 14px; font-weight: 600; color: var(--ink); }
.lp-map-card-title  { font-size: 12px; color: var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: .1rem; }
.lp-map-card-meta   { font-size: 11px; color: var(--muted); margin-top: .15rem; }
.lp-map-card-agency { font-size: 10px; color: var(--muted); margin-top: .15rem; font-weight: 500; }
.lp-map-empty { padding: 1.5rem; font-size: 13px; color: var(--muted); }

/* Leaflet popup */
.leaflet-popup-content-wrapper { border-radius: var(--radius) !important; box-shadow: var(--shadow-lg) !important; padding: 0 !important; }
.leaflet-popup-content { margin: 0 !important; }

/* Pagination */
.listings-pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap; }
.page-btn {
  min-width: 36px; height: 36px; padding: 0 .6rem; border-radius: var(--radius);
  border: 1px solid var(--border); font-size: 13px; color: var(--body);
  transition: all .15s; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.page-btn:hover  { border-color: var(--ink); color: var(--ink); }
.page-btn.active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.page-btn:disabled { opacity: .3; pointer-events: none; }

/* Empty state */
.lp-empty {
  text-align: center; padding: 5rem 2rem; color: var(--muted);
}
.lp-empty svg { margin: 0 auto 1rem; display: block; }
.lp-empty h3  { font-size: 1.1rem; color: var(--ink); margin-bottom: .4rem; }
.lp-empty p   { font-size: 14px; }
.lp-empty-link {
  color: var(--ink); font-weight: 500; text-decoration: underline;
  text-underline-offset: 2px; background: none; border: none; cursor: pointer; font: inherit;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .lp-sidebar { width: 220px; }
  .lp-card--list .lp-card-img { width: 180px; }
}

@media (max-width: 768px) {
  /* Hide type tabs on mobile — handled by sidebar filters */
  .lp-type-tabs { display: none; }
  .lp-filters-btn { display: flex; }
  .lp-result-count { display: none; }

  /* Sidebar becomes a slide-up drawer */
  .lp-sidebar {
    position: fixed; inset: auto 0 0 0;
    width: 100%; max-height: 85svh;
    border-right: none; border-top: 1px solid var(--border);
    border-radius: 16px 16px 0 0;
    transform: translateY(100%); transition: transform .3s cubic-bezier(.32,1,.23,1);
    z-index: 500; top: auto; height: auto;
  }
  .lp-sidebar.is-open { transform: translateY(0); }
  .lp-sidebar-close { display: flex; }
  .lp-sidebar-overlay {
    display: none; position: fixed; inset: 0; z-index: 499;
    background: rgba(0,0,0,.4);
  }
  .lp-sidebar-overlay.is-visible { display: block; }

  /* Full-width results on mobile */
  .lp-layout { display: block; }
  .lp-results { padding: 1rem var(--gutter) 4rem; }

  /* List cards become more compact */
  .lp-card--list { flex-direction: column; }
  .lp-card--list .lp-card-img { width: 100%; height: 200px; }
  .lp-card--list .lp-card-body { padding: .85rem 1rem; }

  /* Map */
  .lp-map-pane { height: calc(100vh - var(--header-h) - 53px); }
  .lp-map-split { flex-direction: column; }
  .lp-map-cards { width: 100%; height: 240px; border-right: none; border-bottom: 1px solid var(--border); }
  .lp-map-container { flex: 1; position: relative; }

  /* Topbar */
  .lp-topbar-inner { gap: .5rem; }
  .lp-search-wrap { min-width: 0; }
}

@media (max-width: 480px) {
  .lp-view-toggle .lp-view-btn:last-child { /* keep map button */ }
  .lp-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Property detail ────────────────────────────────────────────── */
.property-page { padding-top: var(--header-h); }
.property-gallery { background: var(--surface); }
.gallery-skeleton { display: flex; gap: 4px; height: 460px; padding: 1rem var(--gutter); max-width: var(--max-w); margin: 0 auto; }
.gallery-main-skeleton { flex: 1; border-radius: var(--radius-lg); }
.gallery-thumbs-skeleton { display: flex; flex-direction: column; gap: 4px; width: 120px; }
.gallery-thumbs-skeleton .skeleton-box { flex: 1; border-radius: var(--radius); }

.gallery-wrap { display: grid; grid-template-columns: 1fr 120px; gap: 4px; height: 460px; max-width: var(--max-w); margin: 0 auto; padding: 1rem var(--gutter); }
.gallery-main { border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; position: relative; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-count-badge { position: absolute; bottom: 1rem; right: 1rem; background: rgba(0,0,0,.6); color: #fff; padding: .3rem .75rem; border-radius: 20px; font-size: 12px; }
.gallery-thumbs { display: flex; flex-direction: column; gap: 4px; }
.gallery-thumb { flex: 1; border-radius: var(--radius); overflow: hidden; cursor: pointer; opacity: .7; transition: opacity .2s; }
.gallery-thumb:hover, .gallery-thumb.active { opacity: 1; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.property-detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 3rem; max-width: var(--max-w); margin: 0 auto; padding: 2.5rem var(--gutter); }

.property-detail-price  { font-family: var(--font-body); font-size: 2rem; font-weight: 500; color: var(--ink); letter-spacing: -.02em; }
.property-detail-title  { font-size: clamp(1.2rem,2.5vw,1.7rem); margin: .35rem 0; }
.property-detail-address{ font-size: 14px; color: var(--muted); }
.property-detail-badges { display: flex; gap: .5rem; margin-top: .75rem; flex-wrap: wrap; }
.detail-badge { padding: .25rem .7rem; border-radius: 20px; font-size: 11px; font-weight: 500; background: var(--surface); color: var(--body); border: 1px solid var(--border); }

.property-key-facts { display: grid; grid-template-columns: repeat(auto-fill,minmax(110px,1fr)); gap: 1rem; padding: 1.5rem; background: var(--surface); border-radius: var(--radius-lg); margin: 1.5rem 0; }
.key-fact { text-align: center; }
.key-fact-value { display: block; font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); }
.key-fact-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

.property-description { margin-bottom: 2rem; }
.property-description h2 { font-size: 1.2rem; margin-bottom: .85rem; }
.property-description p  { font-size: 15px; color: var(--body); line-height: 1.75; margin-bottom: 1rem; }
.property-features { margin-bottom: 2rem; }
.property-features h2 { font-size: 1.2rem; margin-bottom: .85rem; }
.features-list { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.features-list li { font-size: 13px; color: var(--body); padding: .4rem 0 .4rem 1rem; position: relative; }
.features-list li::before { content: ''; position: absolute; left: 0; top: .72rem; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* Enquiry card */
.enquiry-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; position: sticky; top: calc(var(--header-h) + 1rem); }
.enquiry-card-title { font-size: 1.1rem; margin-bottom: .25rem; }
.enquiry-card-sub   { font-size: 13px; color: var(--muted); margin-bottom: 1.25rem; }
.enquiry-input {
  display: block; width: 100%; border: 1px solid var(--border); border-radius: var(--radius);
  padding: .7rem .9rem; font-size: 13px; color: var(--ink); outline: none; transition: border-color .15s; margin-bottom: .6rem;
}
.enquiry-input:focus { border-color: var(--ink); }
.enquiry-textarea  { resize: vertical; min-height: 90px; }
.enquiry-btn { width: 100%; padding: .85rem; background: var(--ink); color: var(--white); border-radius: var(--radius); font-size: 14px; font-weight: 500; transition: background .2s; margin-top: .25rem; }
.enquiry-btn:hover { background: #2d2d2d; }
.enquiry-success { font-size: 13px; color: #27ae60; text-align: center; margin-top: .5rem; }
.enquiry-error   { font-size: 13px; color: #e74c3c; text-align: center; margin-top: .5rem; }
.enquiry-actions { margin-top: 1.25rem; border-top: 1px solid var(--border); padding-top: 1.25rem; display: flex; flex-direction: column; gap: .6rem; }
.enquiry-action { display: flex; align-items: center; gap: .5rem; font-size: 13px; color: var(--body); padding: .5rem .75rem; border-radius: var(--radius); border: 1px solid var(--border); transition: all .15s; }
.enquiry-action:hover { border-color: var(--ink); color: var(--ink); background: var(--surface); }

.property-map-section { padding: 0 0 4rem; }
.property-map-section-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.property-map-embed { height: 300px; border-radius: var(--radius-lg); overflow: hidden; }

.similar-section { padding: 3rem 0 5rem; }
.similar-section-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; }
.lightbox-img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: var(--radius); }
.lightbox-close { position: fixed; top: 1.5rem; right: 1.5rem; color: #fff; font-size: 2rem; cursor: pointer; z-index: 10; line-height: 1; }
.lightbox-prev, .lightbox-next { position: fixed; top: 50%; transform: translateY(-50%); color: #fff; font-size: 2.5rem; cursor: pointer; padding: 1rem; z-index: 10; }
.lightbox-prev { left: 1rem; } .lightbox-next { right: 1rem; }

/* ── Generic page ───────────────────────────────────────────────── */
.content-wrap { max-width: 800px; margin: 0 auto; padding: calc(var(--header-h) + 3rem) var(--gutter) 4rem; }
.page-title { font-size: clamp(1.8rem,4vw,3rem); margin-bottom: 1.5rem; }
.page-body  { font-size: 15px; line-height: 1.75; color: var(--body); }

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); }
.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 4rem var(--gutter) 3rem; display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; }
.footer-logo-text  { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); }
.footer-tagline    { font-size: 13px; color: var(--muted); margin-top: .5rem; line-height: 1.5; max-width: 220px; }
.footer-cols       { display: grid; grid-template-columns: repeat(auto-fill,minmax(140px,1fr)); gap: 2rem; }
.footer-col-title  { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: 1rem; }
.footer-col ul li  { margin-bottom: .5rem; }
.footer-col ul li a{ font-size: 13px; color: var(--muted); transition: color .15s; }
.footer-col ul li a:hover { color: var(--ink); }
.footer-base { border-top: 1px solid var(--border); }
.footer-base-inner { max-width: var(--max-w); margin: 0 auto; padding: 1.25rem var(--gutter); display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.footer-base-inner a { color: var(--muted); transition: color .15s; }
.footer-base-inner a:hover { color: var(--ink); }

/* ── Elementor compatibility ────────────────────────────────────── */
#elementor-page-content .elementor-section,
#elementor-page-content .e-container,
#elementor-page-content .e-con { margin-left: 0 !important; margin-right: 0 !important; }
.listings-elementor-intro .elementor-section { max-width: 100% !important; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .why-inner              { grid-template-columns: 1fr; gap: 3rem; }
  .property-detail-layout { grid-template-columns: 1fr; }
  .enquiry-card           { position: static; }
  .footer-inner           { grid-template-columns: 1fr; gap: 2rem; }
  .gallery-wrap           { grid-template-columns: 1fr; height: 300px; }
  .gallery-thumbs         { display: none; }
}
@media (max-width: 768px) {
  .why-features  { grid-template-columns: 1fr; }
  .stats-inner   { gap: 1rem; }
  .stat-divider  { display: none; }
  .map-layout    { flex-direction: column; height: auto; }
  .map-sidebar   { width: 100%; height: 260px; border-right: none; border-bottom: 1px solid var(--border); }
  .map-container { height: 50vh; position: relative; }
  #leaflet-map   { position: absolute; inset: 0; }
  .features-list { grid-template-columns: 1fr; }
  .filter-group--price { order: 10; }
  .hero-search-btn { padding: .75rem 1.25rem; }
}
@media (max-width: 480px) {
  .hero-headline { font-size: 1.9rem; }
  .property-grid { grid-template-columns: 1fr; }
  .property-grid--list .property-card { flex-direction: column; }
  .property-grid--list .property-card-img { width: 100%; aspect-ratio: 4/3; }
}

/* ── Auth modal ─────────────────────────────────────────────────────────────── */
body.modal-open { overflow: hidden; }

/* Backdrop */
/* Critical: hidden attribute must override display:flex */
.auth-modal-backdrop[hidden] { display: none !important; }

.auth-modal-backdrop {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  background: rgba(15,15,15,.6);
  backdrop-filter: blur(6px);
  animation: modal-backdrop-in .2s ease both;
}
@keyframes modal-backdrop-in {
  from { background: rgba(15,15,15,0); backdrop-filter: blur(0px); }
  to   { background: rgba(15,15,15,.6); backdrop-filter: blur(6px); }
}

/* Modal box */
.auth-modal-box {
  position: relative;
  width: 100%; max-width: 460px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.18), 0 8px 24px rgba(0,0,0,.1);
  overflow: hidden;
  animation: modal-box-in .22s cubic-bezier(.34,1.56,.64,1) both;
  max-height: 94svh; overflow-y: auto;
}
@keyframes modal-box-in {
  from { opacity: 0; transform: scale(.93) translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* Left accent stripe */
.auth-modal-box::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(to bottom, var(--accent), var(--ink));
  border-radius: 16px 0 0 16px;
}

/* Header — just the close button, top right */
.auth-modal-header {
  padding: 1rem 1rem 0;
  display: flex; justify-content: flex-end;
}
.auth-modal-close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border);
  transition: all .15s; flex-shrink: 0;
}
.auth-modal-close:hover { color: var(--ink); background: var(--border); border-color: var(--ink); }

/* Tabs */
.auth-tabs {
  display: flex; gap: 0;
  padding: 1.25rem 2rem 0 2.25rem;
  border-bottom: 1px solid var(--border);
}
.auth-tab {
  padding: .6rem 0; margin-right: 1.75rem;
  font-size: 15px; font-weight: 500; color: var(--muted);
  position: relative; transition: color .15s; white-space: nowrap;
  background: none; border: none; cursor: pointer;
}
.auth-tab.active { color: var(--ink); }
.auth-tab.active::after {
  content: ''; position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 2px; background: var(--ink);
  border-radius: 2px 2px 0 0;
}
.auth-tab:hover:not(.active) { color: var(--body); }

/* Panels */
.auth-panel-inner {
  padding: 1.5rem 2rem 2rem 2.25rem;
}
.auth-intro {
  font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 1.5rem;
}

/* Fields */
.auth-field { margin-bottom: 1rem; }
.auth-field label {
  display: block; font-size: 12px; font-weight: 500;
  color: var(--ink); margin-bottom: .4rem; letter-spacing: .02em;
  text-transform: uppercase;
}
.auth-optional { font-weight: 400; color: var(--muted); text-transform: none; }
.auth-field-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1rem;
}
.auth-field-row .auth-field { margin-bottom: 0; }

.auth-input {
  display: block; width: 100%;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: .75rem 1rem; font-size: 14px; color: var(--ink);
  outline: none; transition: border-color .15s, box-shadow .15s;
  background: var(--white); font-family: var(--font-body);
}
.auth-input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(26,26,26,.06);
}
.auth-input::placeholder { color: #b8b8b4; }

/* Password */
.auth-password-wrap { position: relative; }
.auth-password-wrap .auth-input { padding-right: 2.75rem; }
.auth-toggle-pw {
  position: absolute; right: .85rem; top: 50%; transform: translateY(-50%);
  color: var(--muted); padding: .2rem; transition: color .15s;
}
.auth-toggle-pw:hover { color: var(--ink); }

/* Strength bar */
.auth-pw-strength {
  height: 3px; background: var(--border); border-radius: 2px;
  margin-top: .5rem; overflow: hidden;
}
.auth-pw-bar { height: 100%; width: 0; border-radius: 2px; transition: width .3s, background .3s; }

/* Row: remember + forgot */
.auth-field-row-inline {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
}
.auth-checkbox-label {
  display: flex; align-items: center; gap: .5rem;
  font-size: 13px; color: var(--body); cursor: pointer;
}
.auth-checkbox-label input { accent-color: var(--ink); }
.auth-terms {
  font-size: 13px; color: var(--body); line-height: 1.5;
  display: flex; align-items: flex-start; gap: .5rem; cursor: pointer;
  margin-bottom: 1rem;
}
.auth-terms input { accent-color: var(--ink); margin-top: 2px; flex-shrink: 0; }
.auth-terms a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

.auth-forgot {
  font-size: 12px; color: var(--muted); transition: color .15s;
}
.auth-forgot:hover { color: var(--ink); }

/* Submit button */
.auth-submit {
  display: block; width: 100%;
  padding: .9rem; margin-top: .25rem;
  background: var(--ink); color: var(--white);
  border-radius: var(--radius); font-size: 14px; font-weight: 500;
  letter-spacing: .02em; font-family: var(--font-body);
  transition: background .2s, transform .1s;
}
.auth-submit:hover:not(:disabled) { background: #2d2d2d; transform: translateY(-1px); }
.auth-submit:active:not(:disabled) { transform: none; }
.auth-submit:disabled { opacity: .55; cursor: not-allowed; }

/* Error */
.auth-error {
  font-size: 13px; color: #c0392b;
  background: #fef0ee; border: 1px solid #f5c0ba;
  border-radius: var(--radius); padding: .65rem 1rem;
  margin-top: .85rem; line-height: 1.4; display: flex; gap: .4rem;
}
.auth-error::before { content: '!'; font-weight: 700; flex-shrink: 0; }

/* Divider */
.auth-divider {
  display: flex; align-items: center; gap: .75rem;
  margin: 1.25rem 0; color: var(--border);
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.auth-divider span { font-size: 11px; color: var(--muted); white-space: nowrap; letter-spacing: .05em; text-transform: uppercase; }

/* Switch */
.auth-switch { font-size: 13px; color: var(--muted); text-align: center; }
.auth-switch-btn {
  color: var(--ink); font-weight: 500; font-size: 13px;
  text-decoration: underline; text-underline-offset: 2px;
  text-decoration-color: var(--border); transition: text-decoration-color .15s;
}
.auth-switch-btn:hover { text-decoration-color: var(--ink); }

/* Mobile — full-screen optimised sheet */
@media (max-width: 540px) {
  .auth-modal-backdrop[hidden] { display: none !important; }
  .auth-modal-backdrop {
    align-items: flex-end; padding: 0;
    background: rgba(0,0,0,.35) !important;
    backdrop-filter: none !important;
  }
  .auth-modal-box {
    border-radius: 20px 20px 0 0; max-width: 100%; width: 100%;
    max-height: 96svh;
    animation: modal-sheet-in .28s cubic-bezier(.32,1,.23,1) both;
  }
  @keyframes modal-sheet-in {
    from { transform: translateY(100%); }
    to   { transform: none; }
  }
  /* Drag-handle bar */
  .auth-modal-box::after {
    content: ''; display: block; position: absolute;
    top: 10px; left: 50%; transform: translateX(-50%);
    width: 36px; height: 4px; border-radius: 2px; background: var(--border);
  }
  .auth-modal-box::before { width: 100%; height: 3px; top: 0; left: 0; border-radius: 0; }
  .auth-modal-header { padding: 1.75rem 1.25rem 0; }
  .auth-tabs { padding: .75rem 1.25rem 0; }
  .auth-panel-inner { padding: 1.25rem 1.25rem 2.5rem; }
  /* font-size:16px prevents iOS auto-zoom on focus */
  .auth-input { padding: .9rem 1rem; font-size: 16px; }
  .auth-submit { padding: 1rem; font-size: 15px; }
  .auth-tab { padding: .75rem 0; font-size: 15px; margin-right: 1.5rem; }
  .auth-field-row { grid-template-columns: 1fr; gap: 0; }
  .auth-field-row .auth-field { margin-bottom: 1rem; }
}

/* ── Agency strip on property detail ───────────────────────────────────────── */
.property-agency-strip {
  margin-bottom: 1.5rem; padding: 1rem 1.25rem;
  background: var(--surface); border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.agency-strip-inner { display: flex; align-items: center; gap: .85rem; }
.agency-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.agency-avatar-placeholder {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--ink); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 500;
}
.agency-name  { font-size: 14px; font-weight: 500; color: var(--ink); }
.agency-phone { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ── Leasehold info ─────────────────────────────────────────────────────────── */
.property-leasehold { margin-bottom: 2rem; }
.property-leasehold h2 { font-size: 1.2rem; margin-bottom: .75rem; }
.leasehold-list { display: flex; flex-direction: column; gap: .4rem; }
.leasehold-list li {
  font-size: 14px; color: var(--body); padding: .4rem .75rem;
  background: var(--surface); border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}

/* ── Media / download links ─────────────────────────────────────────────────── */
.property-media-links {
  display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 2rem;
}
.media-link {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1rem; border-radius: var(--radius);
  border: 1px solid var(--border); font-size: 13px; font-weight: 500;
  color: var(--body); background: var(--white);
  transition: border-color .15s, color .15s, background .15s;
}
.media-link:hover { border-color: var(--ink); color: var(--ink); background: var(--surface); }

/* ── Property card footer (agency + added date) ─────────────────────────────── */
.property-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: .5rem; padding-top: .5rem; border-top: 1px solid var(--border);
}
.card-agency { font-size: 11px; color: var(--muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-added  { font-size: 11px; color: var(--accent); font-weight: 500; flex-shrink: 0; margin-left: .5rem; }

/* Extra property badges */
.property-badge--new    { background: #1a6b3c; color: var(--white); top: auto; bottom: .75rem; }
.property-badge--retire { background: #5c5c9a; color: var(--white); top: auto; bottom: .75rem; left: auto; right: .75rem; }

/* ================================================================
   Property page additions — neighbourhood, calculators, share, compare
   ================================================================ */

/* ── Shared section wrapper ─────────────────────────────────────── */
.neighbourhood-section,
.calculators-section {
  padding: 0 0 4rem;
}
.neighbourhood-inner,
.calculators-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── Neighbourhood ──────────────────────────────────────────────── */
.neighbourhood-tabs {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.nb-tab {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .9rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--body);
  transition: all .15s;
  background: var(--white);
}
.nb-tab:hover   { border-color: var(--ink); color: var(--ink); }
.nb-tab.active  { background: var(--ink); color: var(--white); border-color: var(--ink); }

.neighbourhood-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  height: 380px;
}
.neighbourhood-map-wrap { border-radius: var(--radius-lg); overflow: hidden; height: 100%; }
.neighbourhood-map      { height: 100%; }

.neighbourhood-list {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.nb-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.nb-item:hover, .nb-item.highlighted {
  border-color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.nb-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--ink);
}
.nb-item-body { flex: 1; min-width: 0; }
.nb-item-name { font-size: 13px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-item-meta { font-size: 12px; color: var(--muted); margin-top: .15rem; }
.nb-item-dist { font-size: 12px; color: var(--accent); font-weight: 500; white-space: nowrap; }
.nb-empty     { font-size: 13px; color: var(--muted); padding: 1rem; text-align: center; }
.nb-error     { font-size: 13px; color: #e74c3c; padding: 1rem; text-align: center; }

/* ── Calculators ─────────────────────────────────────────────────── */
.calculators-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.calc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.calc-card-title {
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .25rem;
}
.calc-card-sub  { font-size: 13px; color: var(--muted); margin-bottom: 1.25rem; }
.calc-fields    { display: flex; flex-direction: column; gap: .9rem; margin-bottom: 1.25rem; }
.calc-field     { display: flex; flex-direction: column; gap: .35rem; }
.calc-label     { font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: .04em; display: flex; justify-content: space-between; }
.calc-range-val { color: var(--ink); font-weight: 500; }

.calc-input-wrap { position: relative; display: flex; align-items: center; }
.calc-prefix, .calc-suffix {
  position: absolute;
  font-size: 13px;
  color: var(--muted);
  pointer-events: none;
}
.calc-prefix { left: .85rem; }
.calc-suffix { right: .85rem; font-size: 12px; }
.calc-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .65rem .9rem .65rem 1.6rem;
  font-size: 14px;
  color: var(--ink);
  background: var(--white);
  outline: none;
  transition: border-color .15s;
}
.calc-input:focus { border-color: var(--ink); }

.calc-range {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  outline: none;
  cursor: pointer;
}
.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
  cursor: pointer;
  transition: transform .15s;
}
.calc-range::-webkit-slider-thumb:hover { transform: scale(1.2); }

/* Toggle switch */
.calc-field--row   { flex-direction: row; align-items: center; }
.calc-toggle-label {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: 13px;
  color: var(--body);
  cursor: pointer;
  user-select: none;
}
.calc-toggle-input { position: absolute; opacity: 0; width: 0; height: 0; }
.calc-toggle {
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background: var(--border);
  position: relative;
  transition: background .2s;
  flex-shrink: 0;
}
.calc-toggle::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform .2s;
}
.calc-toggle-input:checked + .calc-toggle { background: var(--ink); }
.calc-toggle-input:checked + .calc-toggle::after { transform: translateX(16px); }

.calc-result {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}
.calc-result-main {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: .4rem;
}
.calc-result-label { font-size: 12px; color: var(--muted); }
.calc-result-value { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); }
.calc-result-breakdown {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}
.sdlt-breakdown {
  margin-top: .6rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.sdlt-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  padding: .25rem 0;
  border-bottom: 1px solid var(--border);
}
.sdlt-row:last-child { border-bottom: none; }
.sdlt-row.sdlt-total { color: var(--ink); font-weight: 500; font-size: 13px; }

.calc-btn {
  width: 100%;
  padding: .75rem;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  transition: background .2s;
  margin-bottom: .75rem;
}
.calc-btn:hover { background: #2d2d2d; }
.calc-disclaimer { font-size: 11px; color: var(--muted); line-height: 1.5; }

/* ── Share bar ───────────────────────────────────────────────────── */
.share-bar { padding: 0 0 3rem; }
.share-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.share-bar-label { font-size: 13px; color: var(--muted); font-weight: 500; margin-right: .25rem; }
.share-bar-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .9rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--body);
  background: var(--white);
  transition: all .15s;
  white-space: nowrap;
}
.share-btn:hover { border-color: var(--ink); color: var(--ink); }
.share-btn--copied { background: #27ae60; color: #fff !important; border-color: #27ae60 !important; }

/* ── Compare tray (fixed bottom) ────────────────────────────────── */
.compare-tray {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,.1);
  z-index: 400;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.compare-tray.visible { transform: translateY(0); }
.compare-tray-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.compare-tray-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.compare-tray-slots { display: flex; gap: .75rem; flex: 1; flex-wrap: wrap; }
.compare-slot {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem .9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--ink);
  max-width: 220px;
}
.compare-slot-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; font-size: 12px; }
.compare-slot-remove { color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; flex-shrink: 0; transition: color .15s; }
.compare-slot-remove:hover { color: #e74c3c; }
.compare-slot--empty {
  border-style: dashed;
  color: var(--muted);
  font-size: 12px;
  min-width: 120px;
  justify-content: center;
}
.compare-tray-actions { display: flex; gap: .6rem; }
.compare-view-btn {
  padding: .6rem 1.25rem;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  transition: background .15s;
}
.compare-view-btn:hover { background: #2d2d2d; }
.compare-clear-btn {
  padding: .6rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--muted);
  transition: all .15s;
}
.compare-clear-btn:hover { border-color: var(--ink); color: var(--ink); }

/* ── Compare modal ───────────────────────────────────────────────── */
.compare-modal {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
}
.compare-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 0;
}
.compare-modal-content {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 960px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}
.compare-modal-close-btn {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  font-size: 1.5rem;
  color: var(--muted);
  line-height: 1;
  transition: color .15s;
}
.compare-modal-close-btn:hover { color: var(--ink); }
.compare-modal-title { font-size: 1.3rem; margin-bottom: 1.5rem; }

.compare-table-wrap { overflow-x: auto; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
}
.compare-table th {
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding: .6rem 1rem;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.compare-table th.compare-col-prop {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
}
.compare-table td {
  padding: .6rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--body);
  vertical-align: top;
}
.compare-table td:first-child { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td.compare-highlight { color: var(--ink); font-weight: 500; }

/* ── Responsive additions ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .neighbourhood-body { grid-template-columns: 1fr; height: auto; }
  .neighbourhood-map-wrap { height: 280px; }
  .neighbourhood-list { max-height: 280px; }
  .calculators-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .share-bar-inner   { gap: .75rem; }
  .compare-tray-inner{ gap: .75rem; }
  .compare-tray-slots{ flex: none; width: 100%; }
}
