/* =======================================================================
   SCLT Properties — theme
   Building palette: warm beige, burnt-red / maroon, olive green.
   Clean, responsive, fast. Read-only storefront.
   ======================================================================= */

:root {
  /* Brand — maroon (deep burnt red; structure, headers, footer, hero) */
  --navy-950: #3f1411;
  --navy-900: #5a1d18;
  --navy-800: #6f2820;
  --navy-700: #843328;
  /* Interactive secondary — olive green (links, icons, focus, chips) */
  --blue-600: #6b7536;
  --blue-500: #828c4a;
  --blue-100: #dee3c8;
  --blue-50:  #f1f3e6;

  /* Accent — burnt red (CTAs, highlights, Apply button) */
  --gold-700: #8a3326;
  --gold-600: #a33f2f;
  --gold-500: #be5440;
  --gold-100: #f4e1d9;

  /* Status — olive green (available pills, amenity icons) */
  --green-700: #565d2a;
  --green-600: #6b7536;
  --green-50:  #eef0df;

  /* Neutrals — warmed toward beige */
  --grey-900: #2b211b;
  --grey-800: #3a2e26;
  --grey-700: #5c4f44;
  --grey-600: #6f6256;
  --grey-500: #837567;
  --grey-400: #a89a8b;
  --grey-300: #d6cbbb;
  --grey-200: #e8e0d3;
  --grey-100: #f1eadd;
  --grey-50:  #f5efe3;
  --white:    #ffffff;

  --shadow-sm: 0 1px 2px rgba(63,20,17,.06), 0 4px 12px rgba(63,20,17,.06);
  --shadow:    0 2px 6px rgba(63,20,17,.07), 0 12px 28px rgba(63,20,17,.09);
  --shadow-lg: 0 18px 50px rgba(63,20,17,.20);

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 22px;
  --maxw:      1200px;

  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--grey-900);
  background: var(--grey-50);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--navy-900); }
img { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* visually hidden */
.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;
}

/* =====================================================================
   Header
   ===================================================================== */
.site-header {
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--grey-200);
  position: sticky; top: 0; z-index: 40;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 42px; width: auto; }
.brand-fallback { font-size: 21px; font-weight: 800; color: var(--navy-900); letter-spacing: .3px; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-contact { font-size: 14px; color: var(--grey-600); display: flex; align-items: center; gap: 14px; }
.header-contact a { font-weight: 600; color: var(--grey-700); display: inline-flex; align-items: center; gap: 6px; }
.header-contact a:hover { color: var(--navy-900); }
.header-contact .sep { color: var(--grey-300); }

.header-fav {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 600; color: var(--grey-700);
  background: var(--grey-100); border: 1px solid var(--grey-200);
  padding: 8px 13px; border-radius: 999px; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.header-fav:hover { background: var(--blue-50); border-color: var(--blue-100); color: var(--navy-900); }
.header-fav svg { width: 16px; height: 16px; }
.header-fav .count {
  min-width: 18px; text-align: center; background: var(--gold-600); color: #fff;
  border-radius: 999px; font-size: 12px; padding: 0 5px; line-height: 18px;
}
.header-fav[data-empty="true"] .count { display: none; }

.btn-phone {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--navy-900); color: #fff !important; font-weight: 600; font-size: 14px;
  padding: 9px 16px; border-radius: 999px; transition: background .15s, transform .15s;
}
.btn-phone:hover { background: var(--navy-800); transform: translateY(-1px); }
.btn-phone svg { width: 15px; height: 15px; }

/* =====================================================================
   Hero
   ===================================================================== */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 400px at 15% -10%, rgba(190,84,64,.22), transparent 60%),
    linear-gradient(135deg, var(--navy-950), var(--navy-800) 60%, var(--navy-700));
  color: #fff;
  padding: 64px 0 92px;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .5; pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase;
  color: var(--gold-500); margin: 0 0 16px;
}
.hero-eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold-500); border-radius: 2px; }
.hero h1 { margin: 0 0 14px; font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; letter-spacing: -.6px; line-height: 1.08; }
.hero p { margin: 0; font-size: clamp(16px, 1.8vw, 19px); color: #f0dcd2; max-width: 640px; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 34px; }
.hero-stat .n { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -.5px; }
.hero-stat .l { font-size: 13px; color: #e6cabf; text-transform: uppercase; letter-spacing: .5px; }

/* =====================================================================
   Toolbar: filters + sort
   ===================================================================== */
.toolbar {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  margin: -54px auto 22px;
  position: relative; z-index: 10;
  display: flex; flex-wrap: wrap; gap: 16px 18px; align-items: flex-end;
}
.filter-field { display: flex; flex-direction: column; gap: 6px; }
.filter-field label {
  font-size: 11.5px; font-weight: 700; color: var(--grey-600);
  text-transform: uppercase; letter-spacing: .6px;
}
.filter-field select, .filter-field input {
  font-family: var(--font); font-size: 14.5px; color: var(--grey-900);
  border: 1.5px solid var(--grey-300); border-radius: var(--radius-sm);
  padding: 10px 12px; background: var(--white); min-width: 158px; transition: border-color .15s, box-shadow .15s;
}
.filter-field input { min-width: 210px; }
.filter-field select:focus, .filter-field input:focus {
  outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-50);
}
.filter-field.grow { flex: 1; }
.toolbar .spacer { flex: 1; }
.sort-field { margin-left: auto; }
.filter-clear {
  align-self: center; background: none; border: none; color: var(--blue-600);
  font-size: 14px; font-weight: 600; cursor: pointer; padding: 9px 4px;
  display: inline-flex; align-items: center; gap: 6px;
}
.filter-clear:hover { color: var(--navy-900); text-decoration: underline; }

/* result bar + active chips */
.result-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 0 0 18px; }
.result-count { font-size: 15px; color: var(--grey-600); margin: 0; font-weight: 500; }
.result-count b { color: var(--navy-900); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue-50); color: var(--navy-800); border: 1px solid var(--blue-100);
  font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 999px; cursor: pointer;
}
.chip:hover { background: var(--blue-100); }
.chip .x { font-size: 15px; line-height: 1; opacity: .7; }

/* =====================================================================
   Card grid
   ===================================================================== */
.grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  padding-bottom: 56px;
}
.card {
  background: var(--white); border: 1px solid var(--grey-200);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); cursor: pointer;
  display: flex; flex-direction: column;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--blue-100); }
.card:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; }
.card-media { position: relative; aspect-ratio: 16 / 10; background: var(--grey-100); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }

.card-badge {
  position: absolute; top: 13px; left: 13px;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green-600); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .3px;
  padding: 6px 11px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.card-badge.soon { background: var(--gold-600); }
.card-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.3); }

.card-photos {
  position: absolute; bottom: 13px; right: 13px;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(63,20,17,.78); color: #fff; backdrop-filter: blur(2px);
  font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px;
}
.card-photos svg { width: 13px; height: 13px; }

.fav-btn {
  position: absolute; top: 11px; right: 11px;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.92); border: none; cursor: pointer;
  display: grid; place-items: center; color: var(--grey-600);
  box-shadow: 0 2px 8px rgba(0,0,0,.16); transition: transform .15s, color .15s, background .15s;
}
.fav-btn:hover { transform: scale(1.1); background: #fff; color: var(--gold-600); }
.fav-btn svg { width: 19px; height: 19px; }
.fav-btn.is-fav { color: #e0322d; }
.fav-btn.is-fav svg { fill: #e0322d; }

.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card-rent { font-size: 23px; font-weight: 800; color: var(--navy-900); letter-spacing: -.4px; }
.card-rent span { font-size: 13px; font-weight: 500; color: var(--grey-500); letter-spacing: 0; }
.card-title { font-size: 16.5px; font-weight: 700; margin: 0; color: var(--grey-900); line-height: 1.3; }
.card-address { font-size: 13.5px; color: var(--grey-500); margin: 0; display: flex; align-items: center; gap: 5px; }
.card-address svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--grey-400); }
.card-specs {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-top: 4px; padding-top: 13px; border-top: 1px solid var(--grey-100);
  font-size: 13.5px; color: var(--grey-700);
}
.card-specs .spec { display: inline-flex; align-items: center; gap: 6px; }
.card-specs svg { width: 16px; height: 16px; color: var(--blue-500); }
.card-specs b { color: var(--grey-900); font-weight: 700; }
.card-avail { font-size: 12.5px; color: var(--green-700); font-weight: 700; margin-top: auto; padding-top: 4px; }
.card-avail.soon { color: var(--gold-700); }

/* skeleton */
.skeleton-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); padding-bottom: 56px; }
.sk-card { background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius); overflow: hidden; }
.sk-media { aspect-ratio: 16/10; }
.sk-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 11px; }
.sk-line { height: 13px; border-radius: 6px; }
.sk-line.w40 { width: 40%; height: 22px; } .sk-line.w70 { width: 70%; } .sk-line.w90 { width: 90%; } .sk-line.w50 { width: 50%; }
.shimmer { background: linear-gradient(100deg, var(--grey-100) 30%, var(--grey-200) 50%, var(--grey-100) 70%); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* =====================================================================
   States
   ===================================================================== */
.state {
  text-align: center; padding: 72px 24px; color: var(--grey-500);
  background: var(--white); border: 1px dashed var(--grey-300);
  border-radius: var(--radius); margin: 8px 0 56px;
}
.state .ico { width: 56px; height: 56px; margin: 0 auto 16px; color: var(--grey-300); }
.state h2 { color: var(--grey-800); margin: 0 0 8px; font-size: 21px; }
.state p { margin: 0 auto; max-width: 420px; }
.spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid var(--grey-200); border-top-color: var(--blue-600);
  margin: 0 auto 14px; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(14px); animation: reveal .5s var(--ease) forwards; }
@keyframes reveal { to { opacity: 1; transform: none; } }

/* =====================================================================
   Detail page
   ===================================================================== */
.breadcrumb { display: flex; align-items: center; gap: 8px; margin: 22px 0 6px; font-size: 13.5px; color: var(--grey-500); }
.breadcrumb a { font-weight: 600; color: var(--grey-600); }
.breadcrumb a:hover { color: var(--navy-900); }
.breadcrumb svg { width: 14px; height: 14px; }
.detail { padding-bottom: 64px; }

.detail-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin: 8px 0 18px; flex-wrap: wrap; }
.detail-top h1 { margin: 0 0 6px; font-size: clamp(24px, 3vw, 32px); color: var(--grey-900); letter-spacing: -.5px; line-height: 1.15; }
.detail-address { color: var(--grey-500); margin: 0; font-size: 15px; display: flex; align-items: center; gap: 7px; }
.detail-address svg { width: 16px; height: 16px; color: var(--grey-400); }
.detail-actions { display: flex; gap: 10px; flex-shrink: 0; }
.icon-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--white); border: 1.5px solid var(--grey-200); color: var(--grey-700);
  font-size: 14px; font-weight: 600; padding: 9px 15px; border-radius: 999px; cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.icon-btn:hover { border-color: var(--blue-300, var(--blue-100)); color: var(--navy-900); background: var(--blue-50); }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn.is-fav { color: #e0322d; border-color: #f3c9c8; background: #fdf0f0; }
.icon-btn.is-fav svg { fill: #e0322d; }

/* gallery */
.gallery { position: relative; display: grid; gap: 10px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; margin: 6px 0 30px; border-radius: var(--radius); overflow: hidden; }
.gallery .main { grid-row: span 2; }
.gallery figure { margin: 0; overflow: hidden; background: var(--grey-100); }
.gallery img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; transition: transform .4s var(--ease), opacity .15s; aspect-ratio: 4/3; }
.gallery .main img { aspect-ratio: auto; height: 100%; }
.gallery img:hover { transform: scale(1.04); }
.gallery-more {
  position: absolute; bottom: 16px; right: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.95); color: var(--navy-900); border: none;
  font-size: 14px; font-weight: 700; padding: 11px 16px; border-radius: 999px; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.18); transition: transform .15s;
}
.gallery-more:hover { transform: translateY(-2px); }
.gallery-more svg { width: 17px; height: 17px; }

.detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }

/* fact cards */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 28px; }
.fact {
  background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius-sm);
  padding: 16px 14px; text-align: center;
}
.fact svg { width: 22px; height: 22px; color: var(--blue-600); margin: 0 auto 8px; }
.fact .v { font-size: 19px; font-weight: 800; color: var(--grey-900); line-height: 1.1; }
.fact .k { font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--grey-500); margin-top: 3px; }

.section-block { border-top: 1px solid var(--grey-200); padding-top: 26px; margin-top: 26px; }
.section-block:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.section-block h3 { font-size: 18px; color: var(--grey-900); margin: 0 0 14px; }
.detail-desc p { color: var(--grey-700); margin: 0; white-space: pre-line; font-size: 15.5px; line-height: 1.7; }

/* amenities */
.amenities { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 18px; }
.amenity { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--grey-800); }
.amenity svg { width: 18px; height: 18px; color: var(--green-600); flex-shrink: 0; }

/* map */
.map-link {
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius-sm);
  padding: 16px 18px; transition: border-color .15s, box-shadow .15s;
}
.map-link:hover { border-color: var(--blue-100); box-shadow: var(--shadow-sm); }
.map-link .pin { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-50); color: var(--blue-600); display: grid; place-items: center; flex-shrink: 0; }
.map-link .pin svg { width: 22px; height: 22px; }
.map-link .t { font-weight: 700; color: var(--navy-900); font-size: 15px; }
.map-link .s { font-size: 13px; color: var(--grey-500); }
.map-link .go { margin-left: auto; color: var(--blue-600); }

/* apply card */
.apply-card {
  position: sticky; top: 92px;
  background: var(--white); border: 1px solid var(--grey-200);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px;
}
.apply-card .rent { font-size: 30px; font-weight: 800; color: var(--navy-900); letter-spacing: -.6px; }
.apply-card .rent span { font-size: 14px; font-weight: 500; color: var(--grey-500); letter-spacing: 0; }
.apply-card .avail-pill {
  display: inline-flex; align-items: center; gap: 7px; margin: 12px 0 18px;
  background: var(--green-50); color: var(--green-700); font-weight: 700; font-size: 13.5px;
  padding: 6px 12px; border-radius: 999px;
}
.apply-card .avail-pill.soon { background: var(--gold-100); color: var(--gold-700); }
.apply-card .avail-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.btn-apply {
  display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; text-align: center;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: #fff !important; font-size: 16.5px; font-weight: 700;
  padding: 15px 18px; border: none; border-radius: 12px; cursor: pointer;
  box-shadow: 0 6px 18px rgba(163,63,47,.38); transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn-apply:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(163,63,47,.46); filter: brightness(1.04); }
.btn-apply svg { width: 18px; height: 18px; }
.apply-note { font-size: 12.5px; color: var(--grey-500); text-align: center; margin: 14px 0 0; display: flex; align-items: center; justify-content: center; gap: 6px; }
.apply-note svg { width: 14px; height: 14px; color: var(--green-600); }
.apply-divider { height: 1px; background: var(--grey-200); margin: 20px 0; }
.apply-contact { font-size: 13.5px; color: var(--grey-600); text-align: center; }
.apply-contact a { font-weight: 700; }

/* mobile sticky apply bar */
.mobile-apply {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
  background: rgba(255,255,255,.97); backdrop-filter: blur(8px);
  border-top: 1px solid var(--grey-200); box-shadow: 0 -6px 20px rgba(63,20,17,.1);
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); align-items: center; gap: 14px;
}
.mobile-apply .m-rent { font-size: 19px; font-weight: 800; color: var(--navy-900); }
.mobile-apply .m-rent span { font-size: 12px; font-weight: 500; color: var(--grey-500); }
.mobile-apply .btn-apply { width: auto; flex: 1; padding: 13px 18px; }
.mobile-apply .btn-showing.m { flex: 1; }

/* =====================================================================
   Schedule a Showing — button + modal contact form
   ===================================================================== */
.btn-showing {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; margin-top: 12px; text-align: center; cursor: pointer;
  background: var(--green-50); color: var(--green-700);
  font-size: 16px; font-weight: 700; font-family: var(--font);
  padding: 13px 18px; border: 1.5px solid var(--blue-500); border-radius: 12px;
  transition: border-color .15s, background .15s, color .15s, transform .15s, box-shadow .15s;
}
.btn-showing:hover {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  border-color: var(--blue-600); color: #fff; transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(107,117,54,.32);
}
.btn-showing svg { width: 18px; height: 18px; }
.apply-card .btn-apply { margin-top: 10px; }
.btn-showing.m {
  width: auto; margin: 0; font-size: 14px; padding: 13px 14px;
  background: var(--green-50); color: var(--green-700); border-color: var(--blue-500);
}

.showing-modal {
  position: fixed; inset: 0; z-index: 70; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(34,16,13,.55); backdrop-filter: blur(3px);
}
.showing-modal.open { display: flex; }
.showing-dialog {
  position: relative; width: 100%; max-width: 460px; max-height: 92vh; overflow-y: auto;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 26px 24px 24px;
}
.showing-close {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px;
  border: none; background: var(--grey-100); color: var(--grey-700);
  border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer;
}
.showing-close:hover { background: var(--grey-200); color: var(--navy-900); }
.showing-head h3 { font-size: 21px; font-weight: 800; color: var(--navy-900); margin: 0 0 4px; }
.showing-head p { font-size: 14px; font-weight: 600; color: var(--grey-700); margin: 0 0 18px; }
.showing-head p span { font-weight: 500; color: var(--grey-500); }
#showing-form { display: flex; flex-direction: column; gap: 13px; }
.showing-dialog .fld { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 700; color: var(--grey-700); }
.showing-dialog .fld .opt { font-weight: 500; color: var(--grey-400); }
.showing-dialog input,
.showing-dialog textarea {
  font-family: var(--font); font-size: 15px; font-weight: 400; color: var(--grey-900);
  padding: 11px 13px; border: 1px solid var(--grey-300); border-radius: var(--radius-sm);
  background: var(--white); width: 100%;
}
.showing-dialog input:focus,
.showing-dialog textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-50); }
.showing-dialog textarea { resize: vertical; }
.showing-dialog .btn-apply { margin-top: 4px; }
.showing-status { font-size: 13.5px; font-weight: 600; color: var(--gold-700); text-align: center; margin: 2px 0 0; }
.showing-status:empty { display: none; }
.showing-fine { font-size: 12px; color: var(--grey-500); text-align: center; margin: 4px 0 0; display: flex; align-items: center; justify-content: center; gap: 6px; }
.showing-fine svg { width: 13px; height: 13px; color: var(--green-600); }
.showing-success { text-align: center; padding: 14px 4px 4px; }
.showing-success .ico {
  width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-50); color: var(--green-700);
}
.showing-success .ico svg { width: 28px; height: 28px; }
.showing-success h3 { font-size: 20px; font-weight: 800; color: var(--navy-900); margin: 0 0 6px; }
.showing-success p { font-size: 14.5px; color: var(--grey-600); margin: 0 0 18px; }

/* =====================================================================
   Lightbox
   ===================================================================== */
.lightbox {
  position: fixed; inset: 0; background: rgba(34,16,13,.95);
  display: none; flex-direction: column; align-items: center; justify-content: center; z-index: 60; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 78vh; border-radius: 10px; }
.lightbox-close { position: absolute; top: 18px; right: 24px; color: #fff; font-size: 30px; cursor: pointer; line-height: 1; background: none; border: none; width: 46px; height: 46px; border-radius: 50%; transition: background .15s; }
.lightbox-close:hover { background: rgba(255,255,255,.15); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.14); border: none; color: #fff; font-size: 28px; width: 54px; height: 54px; border-radius: 50%; cursor: pointer; transition: background .15s; }
.lightbox-nav:hover { background: rgba(255,255,255,.3); }
.lightbox-nav.prev { left: 22px; } .lightbox-nav.next { right: 22px; }
.lightbox-counter { color: #e6cabf; font-size: 14px; font-weight: 600; margin-top: 18px; letter-spacing: .5px; }

/* =====================================================================
   Footer
   ===================================================================== */
.trust-strip { background: var(--white); border-top: 1px solid var(--grey-200); padding: 30px 0; }
.trust-strip .container { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; }
.trust-item { display: flex; align-items: center; gap: 13px; flex: 1; min-width: 220px; }
.trust-item .ti { width: 42px; height: 42px; border-radius: 12px; background: var(--blue-50); color: var(--blue-600); display: grid; place-items: center; flex-shrink: 0; }
.trust-item .ti svg { width: 22px; height: 22px; }
.trust-item .t { font-weight: 700; color: var(--grey-900); font-size: 14.5px; }
.trust-item .s { font-size: 13px; color: var(--grey-500); }

.site-footer { background: var(--navy-950); color: #dcc4bc; padding: 48px 0 36px; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 36px; justify-content: space-between; }
.footer-brand { max-width: 460px; }
.footer-brand h4 { color: #fff; margin: 0 0 10px; font-size: 18px; }
.footer-brand p { margin: 0; font-size: 14px; line-height: 1.7; }
.site-footer a { color: #e6c6bc; }
.site-footer a:hover { color: #fff; }
.footer-meta { font-size: 13.5px; line-height: 2; }
.footer-meta h5 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; margin: 0 0 10px; }
.footer-contact a { display: flex; align-items: center; gap: 8px; color: #e4cfc7; font-weight: 600; }
.footer-contact svg { width: 15px; height: 15px; color: var(--gold-500); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 22px; font-size: 13px; color: #b08c82; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-disclaimer { max-width: 620px; }

/* =====================================================================
   Toast
   ===================================================================== */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--navy-900); color: #fff; font-size: 14px; font-weight: 600;
  padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 80;
  display: flex; align-items: center; gap: 9px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast svg { width: 17px; height: 17px; color: var(--gold-500); }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 980px) {
  .detail-grid { grid-template-columns: 1fr; gap: 28px; }
  .apply-card { display: none; }
  .mobile-apply { display: flex; }
  .detail { padding-bottom: 96px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery .main { grid-column: span 2; grid-row: auto; }
  .gallery figure:nth-child(n+4) { display: none; }
}
@media (max-width: 680px) {
  .header-contact, .hero-stats .hero-stat:nth-child(n+3) { display: none; }
  .toolbar { margin-top: -40px; }
  .sort-field { margin-left: 0; width: 100%; }
  .sort-field select { width: 100%; }
  .filter-field { flex: 1; min-width: 140px; }
  .filter-field input, .filter-field select { min-width: 0; width: 100%; }
}
@media (max-width: 480px) {
  .hero-stats { gap: 22px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery figure:nth-child(n+3) { display: none; }
  .gallery .main { grid-column: auto; }
  .detail-actions { width: 100%; }
}

@media print {
  .site-header, .toolbar, .mobile-apply, .gallery-more, .fav-btn, .detail-actions, .trust-strip, .lightbox { display: none !important; }
}

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

/* =====================================================================
   Section switcher (Residential / Commercial tabs in the header)
   ===================================================================== */
.section-switch {
  display: flex; gap: 4px; margin: 0 auto 0 8px;
  background: var(--grey-100); border: 1px solid var(--grey-200);
  border-radius: 999px; padding: 4px;
}
.section-switch a {
  font-size: 14px; font-weight: 600; color: var(--grey-600);
  padding: 7px 16px; border-radius: 999px; transition: background .15s, color .15s;
}
.section-switch a:hover { color: var(--navy-900); }
.section-switch a.is-active {
  background: var(--navy-900); color: #fff;
  box-shadow: 0 2px 8px rgba(63,20,17,.18);
}

/* =====================================================================
   Splash chooser (landing page)
   ===================================================================== */
.splash-page { background: var(--grey-50); }
.splash {
  display: flex; align-items: center;
  background:
    radial-gradient(1100px 460px at 50% -8%, rgba(107,117,54,.12), transparent 62%),
    radial-gradient(900px 400px at 85% 120%, rgba(190,84,64,.12), transparent 60%);
}
.splash-inner { text-align: center; padding: clamp(48px, 8vw, 100px) 22px; max-width: 980px; }
.splash-eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  color: var(--blue-600); margin: 0 0 14px;
}
.splash-title {
  margin: 0 0 14px; font-size: clamp(28px, 4.6vw, 46px); font-weight: 800;
  letter-spacing: -.6px; line-height: 1.1; color: var(--navy-950);
}
.splash-sub { margin: 0 auto 44px; font-size: clamp(16px, 1.9vw, 19px); color: var(--grey-600); max-width: 540px; }

.choose-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.choose-card {
  display: flex; flex-direction: column; text-align: left;
  background: var(--white); border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); cursor: pointer; color: inherit;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.choose-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--blue-100); color: inherit; }
.choose-card:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; }
.choose-art {
  height: 150px; display: grid; place-items: center; color: #fff;
}
.choose-art svg { width: 60px; height: 60px; opacity: .96; }
.choose-art.residential { background: linear-gradient(135deg, var(--navy-900), var(--blue-600)); }
.choose-art.commercial { background: linear-gradient(135deg, var(--navy-950), var(--navy-700) 55%, var(--gold-600)); }
.choose-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.choose-body h2 { margin: 0; font-size: 23px; color: var(--navy-950); letter-spacing: -.3px; }
.choose-body p { margin: 0; color: var(--grey-600); font-size: 15px; line-height: 1.6; flex: 1; }
.choose-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
  font-weight: 700; font-size: 15px; color: var(--blue-600);
}
.choose-cta svg { width: 18px; height: 18px; transition: transform .18s var(--ease); }
.choose-card:hover .choose-cta svg { transform: translateX(4px); }
.splash-note { margin: 44px auto 0; max-width: 620px; font-size: 13.5px; color: var(--grey-500); line-height: 1.7; }

/* =====================================================================
   Commercial — hero, cards, tags
   ===================================================================== */
.hero-commercial {
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(190,84,64,.22), transparent 60%),
    linear-gradient(135deg, var(--navy-950), var(--navy-800) 55%, var(--navy-700));
}

.card-badge.ctype { background: var(--blue-600); }
.card-badge.ctype.sale { background: var(--gold-600); }

.card-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 2px; }
.ctag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; letter-spacing: .2px;
  background: var(--blue-50); color: var(--navy-800); border: 1px solid var(--blue-100);
  padding: 4px 9px; border-radius: 7px;
}
.ctag svg { width: 13px; height: 13px; color: var(--blue-600); }
.ctag.muted { background: var(--grey-100); color: var(--grey-600); border-color: var(--grey-200); font-weight: 600; }
.ctag.muted svg { color: var(--grey-500); }
.ctag.ctype { background: var(--blue-600); color: #fff; border-color: transparent; }
.ctag.ctype.sale { background: var(--gold-600); }

.comm-card .card-specs svg { color: var(--blue-600); }

/* Commercial detail — tag row above title */
.detail-tagrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }

/* Property facts key/value table */
.facts-table {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--grey-200); border-radius: var(--radius-sm); overflow: hidden;
}
.frow {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 12px 16px; border-bottom: 1px solid var(--grey-100);
  font-size: 14.5px;
}
.frow:nth-child(odd) { border-right: 1px solid var(--grey-100); }
.frow .fk { color: var(--grey-500); font-weight: 500; }
.frow .fv { color: var(--grey-900); font-weight: 700; text-align: right; }

/* Commercial sidebar tweaks */
.apply-card .price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.contact-block {
  margin: 18px 0; padding: 16px; border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm); background: var(--grey-50);
}
.contact-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--grey-500); margin-bottom: 10px; }
.contact-line { display: flex; align-items: center; gap: 9px; padding: 6px 0; font-weight: 700; color: var(--navy-900); font-size: 15px; }
.contact-line:hover { color: var(--blue-600); }
.contact-line svg { width: 17px; height: 17px; color: var(--blue-600); flex-shrink: 0; }

@media (max-width: 760px) {
  .section-switch { margin: 0; order: 3; width: 100%; justify-content: center; }
  .choose-grid { grid-template-columns: 1fr; gap: 18px; }
  .facts-table { grid-template-columns: 1fr; }
  .frow:nth-child(odd) { border-right: none; }
}
