:root {
  --gold: #C4A35A;
  --gold-dark: #A8883E;
  --gold-light: #E8D5A3;
  --gold-soft: rgba(196, 163, 90, 0.12);
  --cream: #FAF7F0;
  --cream-dark: #F0EBE0;
  --ink: #1A1A1A;
  --ink-soft: #3D3D3D;
  --muted: #6E6A63;
  --line: #E6E0D4;
  --line-strong: #D4CBB8;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(26, 26, 26, 0.04);
  --shadow: 0 4px 16px rgba(26, 26, 26, 0.06);
  --shadow-md: 0 12px 32px rgba(26, 26, 26, 0.09);
  --shadow-lg: 0 20px 48px rgba(26, 26, 26, 0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --max: 75rem; /* ~1200px */
  --gutter: clamp(0.75rem, 3.2vw, 1.5rem);
  --section-y: clamp(2rem, 5.5vw, 3.75rem);
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --nav-h: 4rem;
  --draft-h: 0;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --touch: 2.75rem; /* 44px */
  --aside-w: clamp(17rem, 30%, 22rem);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  font-size: clamp(0.9rem, 0.85rem + 0.2vw, 0.95rem);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  min-height: 100dvh;
}

body.nav-locked {
  overflow: hidden;
  touch-action: none;
}

a { color: inherit; text-decoration: none; }

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, select, textarea { font: inherit; color: inherit; }

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

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

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
  min-width: 0;
}

/* —— Preview / draft banner (hide again before production go-live) —— */
.draft-banner {
  display: none; /* hidden on production */
  background: #7A1212;
  color: #fff;
  text-align: center;
  font-size: clamp(0.72rem, 2vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.55rem var(--gutter);
  position: sticky;
  top: 0;
  z-index: 200;
  line-height: 1.35;
}

/* —— Topbar —— */
.topbar {
  background: var(--ink);
  color: rgba(250, 247, 240, 0.72);
  font-size: clamp(0.68rem, 1.8vw, 0.75rem);
  letter-spacing: 0.01em;
  padding: 0.4rem 0;
}

.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  min-width: 0;
}

.topbar a {
  color: var(--gold-light);
  font-weight: 500;
  transition: color 0.15s var(--ease);
  min-height: var(--touch);
  display: inline-flex;
  align-items: center;
}

.topbar a:hover { color: var(--white); }
.topbar-right {
  display: flex;
  gap: clamp(0.6rem, 2vw, 1.35rem);
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
}
.topbar-icon { opacity: 0.7; margin-right: 0.3rem; font-size: 0.7rem; }
.topbar-svg { width: 1.05em; height: 1.05em; flex-shrink: 0; display: block; }
.topbar-phone { gap: 0.5rem; white-space: nowrap; }
.topbar-icons { display: inline-flex; align-items: center; gap: 0.3rem; }
.topbar-icons .topbar-svg { width: 1.1em; height: 1.1em; }
.topbar-phone .topbar-svg--phone { opacity: 0.8; }
.topbar-svg--viber { color: #a79bff; }
.topbar-svg--wa { color: #4fdc84; }
.topbar-phone:hover .topbar-svg--viber { color: #c4bcff; }
.topbar-phone:hover .topbar-svg--wa { color: #7ef0a8; }
.topbar-fb { gap: 0.4rem; white-space: nowrap; }
.topbar-fb .topbar-svg { width: 1.1em; height: 1.1em; color: #6ea8ff; }
.topbar-fb:hover .topbar-svg { color: #9cc4ff; }
@media (max-width: 360px) {
  .topbar-fb-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .topbar a.topbar-fb { min-width: 2rem; justify-content: center; }
}
@media (max-width: 48rem) {
  .topbar-right { margin-left: auto; justify-content: flex-end; }
}

/* —— Nav —— */
/* IMPORTANT: do NOT put backdrop-filter on .nav itself — it creates a
   containing block that traps position:fixed drawer/backdrop inside the header. */
.nav {
  background: transparent;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: var(--draft-h);
  z-index: 50;
}

.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
  z-index: 0;
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--nav-h);
  padding-block: 0.35rem;
  position: relative;
  z-index: 1;
  min-width: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  letter-spacing: 0;
  font-size: clamp(1.05rem, 2.8vw, 1.25rem);
  white-space: nowrap;
  color: var(--ink);
  min-width: 0;
  flex-shrink: 1;
}

.logo-mark {
  display: block;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 9px;
  object-fit: cover;
  background: #202C39;
  box-shadow: 0 1px 2px rgba(18, 16, 12, 0.08), 0 0 0 1px rgba(32, 44, 57, 0.12);
}

.logo-word {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* Keep "13K" as one unit — tight like the official mark (no gap before K) */
.logo-brand {
  color: var(--gold);
  letter-spacing: -0.07em;
  font-variant-ligatures: none;
}

.logo small {
  font-weight: 560;
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-left: 0.15rem;
  padding-left: 0.45rem;
  border-left: 1px solid var(--line-strong);
}

footer .logo {
  color: var(--white);
  margin-bottom: 0.85rem;
  font-size: 1.15rem;
}

footer .logo-mark {
  width: 48px;
  height: 48px;
  box-shadow: 0 0 0 1px rgba(244, 211, 129, 0.22);
}

footer .logo-brand { color: var(--gold-light); }

footer .logo small {
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.45);
}

.nav-drawer {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}

.nav-drawer-head,
.nav-drawer-actions,
.nav-close,
.nav-backdrop {
  display: none;
}

.nav-links {
  display: flex;
  gap: 0.15rem;
  list-style: none;
  font-weight: 560;
  font-size: 0.875rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a {
  color: var(--ink-soft);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
}

.nav-links a:hover { color: var(--ink); background: var(--gold-soft); }
.nav-links a.active {
  color: var(--gold-dark);
  background: var(--gold-soft);
}

.nav-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.15rem;
  min-height: var(--touch);
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.12s;
  white-space: nowrap;
  text-align: center;
  max-width: 100%;
  min-width: 0;
}

.btn:active { transform: scale(0.98); }

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

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
  background: var(--gold-soft);
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 2px 8px rgba(196, 163, 90, 0.35);
}

.btn-gold:hover {
  background: var(--gold-dark);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(168, 136, 62, 0.35);
}

.btn-dark {
  background: var(--ink);
  color: var(--white);
}

.btn-dark:hover {
  background: #2e2e2e;
  box-shadow: var(--shadow);
}

.btn-outline-ink {
  background: var(--white);
  border-color: var(--ink);
  color: var(--ink);
}

.btn-outline-ink:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-sm {
  padding: 0.55rem 0.9rem;
  font-size: 0.78rem;
  min-height: 2.5rem;
}

.btn-block { width: 100%; }
.btn-wrap { white-space: normal; line-height: 1.25; }

.menu-toggle {
  display: none;
  order: 3;
  background: var(--white);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  width: var(--touch);
  height: var(--touch);
  padding: 0;
  cursor: pointer;
  color: var(--ink);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 1.15rem;
}

.menu-toggle-bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s;
}

.nav.open .menu-toggle-bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav.open .menu-toggle-bars span:nth-child(2) { opacity: 0; }
.nav.open .menu-toggle-bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: clamp(22rem, 58vh, 32rem);
  display: flex;
  align-items: center;
  background:
    linear-gradient(145deg, rgba(18,16,12,0.88) 0%, rgba(26,22,16,0.72) 45%, rgba(62,48,24,0.55) 100%),
    radial-gradient(ellipse at 70% 40%, rgba(196,163,90,0.22), transparent 55%),
    linear-gradient(160deg, #1a1712 0%, #2c2418 50%, #3d3420 100%);
  color: var(--white);
  padding: clamp(2rem, 6vw, 4.5rem) 0;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black 30%, transparent 95%);
  pointer-events: none;
  opacity: 0.5;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(to top, rgba(26,26,26,0.45), transparent);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  max-width: min(56.25rem, 100%); /* ~900px search + copy */
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(196,163,90,0.15);
  border: 1px solid rgba(196,163,90,0.4);
  color: var(--gold-light);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
  max-width: 100%;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(196,163,90,0.25);
  flex-shrink: 0;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 1.2rem + 3.8vw, 3.55rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 0.85rem;
  overflow-wrap: anywhere;
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold-light);
}

.hero-lead {
  font-size: clamp(0.92rem, 0.85rem + 0.4vw, 1.05rem);
  color: rgba(255,255,255,0.82);
  max-width: 36rem;
  margin-bottom: 1.75rem;
  line-height: 1.6;
  font-weight: 420;
}

/* —— Search card —— */
.search-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(0.95rem, 2.5vw, 1.2rem);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.2);
  min-width: 0;
  width: min(56.25rem, 100%); /* ~900px */
  max-width: 100%;
}

.search-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  background: var(--cream-dark);
  border-radius: 999px;
  padding: 0.2rem;
  margin-bottom: 1rem;
  gap: 0.1rem;
  max-width: 100%;
}

.search-toggle button {
  border: none;
  background: transparent;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.8rem;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  min-height: var(--touch);
  flex: 1 1 auto;
}

.search-toggle button:hover { color: var(--ink); }

.search-toggle button.active {
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.search-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
  gap: 0.65rem;
  align-items: end;
}

.field { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }

.field label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.field select,
.field input,
.sell-form input,
.sell-form select,
.sell-form textarea {
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%236E6A63' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 0.85rem center / 12px no-repeat;
  color: var(--ink);
  width: 100%;
  max-width: 100%;
  min-height: var(--touch);
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.field input,
.sell-form input,
.sell-form textarea {
  background-image: none;
}

.field select:focus,
.field input:focus,
.sell-form input:focus,
.sell-form select:focus,
.sell-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  background-color: var(--white);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.search-row .btn {
  width: 100%;
  min-height: var(--touch);
}

/* —— Page heroes (Buy / Rent) —— */
.page-hero {
  background: linear-gradient(135deg, #1A1712 0%, #2A2418 60%, #3D3420 100%);
  color: var(--white);
  padding: clamp(1.5rem, 4vw, 2.35rem) 0 clamp(1.35rem, 3.5vw, 2.1rem);
  border-bottom: 1px solid rgba(196,163,90,0.2);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 1.1rem + 2vw, 2.45rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.page-hero p {
  color: rgba(255,255,255,0.68);
  font-size: clamp(0.85rem, 0.8rem + 0.3vw, 0.95rem);
  max-width: 36rem;
}

.filter-bar {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
  position: sticky;
  top: calc(var(--draft-h) + var(--nav-h));
  z-index: 40;
  box-shadow: var(--shadow-sm);
}

.filter-bar .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  gap: 0.6rem;
  align-items: end;
}

.filter-bar .field { min-width: 0; }
.filter-bar .btn { width: 100%; min-height: var(--touch); }

/* —— Keyword search in filter bar —— */
.filter-bar .field-search { grid-column: span 2; }
.search-row .field-search { grid-column: span 2; }
.search-input-wrap { position: relative; display: flex; align-items: center; }
.search-input-wrap .search-icon {
  position: absolute;
  left: 0.85rem;
  color: var(--muted);
  pointer-events: none;
}
.field .search-input-wrap input[type="search"] {
  padding-left: 2.4rem;
  padding-right: 2.6rem;
}
.search-input-wrap input[type="search"]::-webkit-search-cancel-button,
.search-input-wrap input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.search-input-wrap input[type="search"]::placeholder { color: var(--muted); opacity: 0.85; }
.search-clear {
  position: absolute;
  right: 0.3rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.search-clear[hidden] { display: none; }
.search-clear:hover { background: var(--cream-dark); color: var(--ink); }
.search-clear:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.empty-search .empty-title { color: var(--ink); font-weight: 700; font-size: 1rem; margin-bottom: 0.35rem; }
.empty-search .empty-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
@media (max-width: 40rem) {
  .filter-bar .field-search { grid-column: 1 / -1; }
  .search-row .field-search { grid-column: 1 / -1; }
}

/* —— Sections —— */
section { padding: var(--section-y) 0; }

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

.section-head > * { min-width: 0; }

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.1rem + 1.5vw, 2.05rem);
  letter-spacing: -0.02em;
  font-weight: 600;
  line-height: 1.2;
}

.section-head p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.35rem;
  max-width: 28rem;
}

.section-link {
  color: var(--gold-dark);
  font-weight: 650;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0;
  min-height: var(--touch);
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}

.section-link:hover {
  border-bottom-color: var(--gold);
  color: var(--ink);
}

.result-count {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1rem;
  font-weight: 500;
}

/* —— Listing cards —— */
.listings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18.75rem), 1fr));
  gap: clamp(0.75rem, 2vw, 1.2rem);
  min-width: 0;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--line-strong);
  }
  .card:hover .card-media img { transform: scale(1.04); }
  .card:hover .card-media::after { opacity: 1; }
}

a.card-media {
  color: inherit;
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #2a2418, #4a3d28);
  overflow: hidden;
  min-width: 0;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.card-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(0,0,0,0.35), transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}

.badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 1;
  background: rgba(26, 26, 26, 0.88);
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  backdrop-filter: blur(6px);
  max-width: calc(100% - 1.5rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge.gold {
  background: var(--gold);
  color: var(--ink);
}

.badge.short { background: #2A6F6A; color: var(--white); }
.badge.rent { background: #3A5A8C; color: var(--white); }

.photo-count {
  position: absolute;
  bottom: 0.65rem;
  right: 0.65rem;
  z-index: 1;
  background: rgba(26, 26, 26, 0.72);
  color: rgba(255,255,255,0.95);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.22rem 0.5rem;
  border-radius: 6px;
  backdrop-filter: blur(6px);
  letter-spacing: 0.02em;
}

.card-body {
  padding: clamp(0.8rem, 2vw, 1.05rem);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
  min-width: 0;
}

.card-loc {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-title {
  font-size: clamp(0.92rem, 0.85rem + 0.35vw, 1.02rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 0.1rem;
  /* no fixed min-height — avoids empty awkward gaps on short titles */
}

.card-title a { color: inherit; transition: color 0.15s; }
.card-title a:hover { color: var(--gold-dark); }

.card-sub {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.15rem;
}

.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  font-size: 0.75rem;
  color: var(--ink-soft);
  padding: 0.55rem 0;
  margin: 0.2rem 0 0.15rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.specs span { display: inline-flex; align-items: center; gap: 0.25rem; }
.specs strong { font-weight: 700; color: var(--ink); }

.price-block {
  margin-top: 0.35rem;
  padding-top: 0.15rem;
  min-width: 0;
}

.price-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.1rem;
}

.price {
  font-size: clamp(1rem, 0.92rem + 0.4vw, 1.15rem);
  font-weight: 750;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.price small {
  font-size: 0.72rem;
  font-weight: 520;
  color: var(--muted);
  letter-spacing: 0;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 0.75rem;
  min-width: 0;
}

.card-actions .btn {
  flex: 1 1 auto;
  min-width: min(100%, 7rem);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1.25rem;
  color: var(--muted);
  background: var(--white);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  font-size: 0.92rem;
}

/* —— End-of-listings CTA —— */
.listings-cta {
  padding: 0 0 var(--section-y);
}

.listings-cta-card {
  text-align: center;
  background: linear-gradient(145deg, #141210 0%, #221E16 55%, #2E2618 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem) clamp(1.15rem, 3vw, 2rem);
  border: 1px solid rgba(196, 163, 90, 0.28);
  box-shadow: var(--shadow-md);
  max-width: 42rem;
  margin-inline: auto;
}

.listings-cta-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.05rem + 1.2vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.55rem;
}

.listings-cta-card p {
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
  line-height: 1.55;
  margin: 0 auto 1.25rem;
  max-width: 28rem;
}

.listings-cta-card .btn {
  min-width: min(100%, 14rem);
}

/* —— Why —— */
.why {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: clamp(0.85rem, 2vw, 1.15rem);
}

.why-item {
  padding: clamp(1.15rem, 2.5vw, 1.5rem);
  border-radius: var(--radius);
  background: var(--cream);
  border: 1px solid var(--line);
  transition: border-color 0.2s, box-shadow 0.2s;
  min-width: 0;
}

.why-item:hover {
  border-color: var(--gold-light);
  box-shadow: var(--shadow-sm);
}

.why-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--gold-light), var(--gold));
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  color: var(--ink);
}

.why-icon svg { width: 1.15rem; height: 1.15rem; }

.why-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.why-item p {
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* —— Sell band —— */
.sell-band {
  background: linear-gradient(125deg, #141210 0%, #221E16 50%, #3A3020 100%);
  color: var(--white);
  padding: var(--section-y) 0;
}

.sell-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
}

.sell-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 1.15rem + 1.8vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.sell-band .lead {
  color: rgba(255,255,255,0.72);
  margin-bottom: 1.5rem;
  max-width: 28rem;
  font-size: clamp(0.9rem, 0.85rem + 0.3vw, 1rem);
  line-height: 1.6;
}

.sell-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.88);
}

.sell-points li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.sell-points li::before {
  content: "";
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  margin-top: 0.12rem;
  border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 4.8 8.5 9.5 3.5' fill='none' stroke='%231A1A1A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.7rem no-repeat;
}

.sell-form {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(1.15rem, 2.5vw, 1.5rem);
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--gold);
  min-width: 0;
  width: 100%;
}

.sell-form h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.sell-form .form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: 0.75rem;
}

.sell-form .full { grid-column: 1 / -1; }

.sell-form .note {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.75rem;
  text-align: center;
  line-height: 1.45;
}

.sell-form .btn { margin-top: 0.85rem; }

.sell-form .form-status {
  font-size: 0.8rem;
  line-height: 1.4;
  margin: 0 0 0.35rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  background: #f4f1ea;
  color: var(--ink);
}

.sell-form .form-status--error {
  background: #fdecea;
  color: #8a1f11;
}

.sell-form .form-status--ok {
  background: #e8f5e9;
  color: #1b5e20;
}

.sell-form button.btn {
  width: 100%;
  border: 0;
  cursor: pointer;
  font: inherit;
}

/* Ghost <button>s in the Sell form (Request a callback) match the Call <a> bubble */
.sell-form button.btn-ghost {
  border: 1.5px solid var(--line-strong);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.sell-form button.btn-ghost:hover { border-color: var(--gold); }

.btn-icon {
  width: 1.05em;
  height: 1.05em;
  flex-shrink: 0;
}



/* —— City landing SEO blocks —— */
.breadcrumb-lite {
  font-size: 0.8rem;
  color: var(--muted, #6b6560);
  margin: 0 0 0.75rem;
}
.breadcrumb-lite a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.city-seo {
  padding: 0 0 1.25rem;
}
.city-seo p {
  max-width: 46rem;
  line-height: 1.65;
  color: var(--muted, #5c564f);
  font-size: 0.95rem;
  margin: 0 0 1rem;
}
.city-seo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.city-listings-heading {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin: 0 0 0.35rem;
  font-weight: 600;
}
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr));
  gap: 0.85rem;
}
.area-card {
  display: block;
  border: 1px solid var(--line, #e6e0d6);
  border-radius: 14px;
  padding: 1.1rem 1rem;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.area-card:hover {
  border-color: var(--gold, #c4a35a);
  box-shadow: 0 8px 24px rgba(26,26,26,0.06);
}
.area-card strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}
.area-card span {
  font-size: 0.82rem;
  color: var(--muted, #6b6560);
  line-height: 1.45;
}

/* —— Footer —— */
footer {
  background: #12100E;
  color: rgba(255,255,255,0.68);
  padding: clamp(2rem, 4vw, 3rem) 0 1.35rem;
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: 2.25rem;
  align-items: start;
}

.footer-brand,
.footer-explore,
.footer-areas,
.footer-contact {
  min-width: 0;
}

.footer-brand p {
  margin-top: 0.75rem;
}

footer h4 {
  margin-top: 0;
}

footer ul {
  margin: 0;
  padding: 0;
}


footer p {
  max-width: 22rem;
  line-height: 1.65;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}

footer h4 {
  color: var(--gold-light);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

footer a { transition: color 0.15s; }
footer a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

.watermark { display: none !important; }

/* —— Listing detail —— */
.listing-page {
  padding: clamp(1rem, 3vw, 1.75rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  min-width: 0;
  width: 100%;
  overflow-x: clip;
}

.listing-page .wrap {
  min-width: 0;
  max-width: min(100% - (var(--gutter) * 2), var(--max));
}

.listing-loading {
  color: var(--muted);
  padding: 3rem 0;
  text-align: center;
  font-size: 0.92rem;
}

.listing-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 1.1rem;
  min-width: 0;
  max-width: 100%;
}

.listing-breadcrumb a {
  color: var(--gold-dark);
  font-weight: 650;
  padding: 0.35rem 0;
  min-height: var(--touch);
  display: inline-flex;
  align-items: center;
}

.listing-breadcrumb a:hover { text-decoration: underline; text-underline-offset: 2px; }
.listing-breadcrumb span[aria-hidden] { opacity: 0.45; }

.listing-breadcrumb .crumb-current {
  color: var(--ink-soft);
  flex: 1 1 8rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing-back-row {
  margin-bottom: 0.85rem;
}

.listing-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: var(--touch);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--white);
  color: var(--ink);
  font-weight: 650;
  font-size: 0.85rem;
  max-width: 100%;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.listing-back-btn:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold-dark);
}

.listing-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(17rem, 1fr);
  gap: clamp(1.1rem, 2.2vw, 1.65rem);
  align-items: start;
  min-width: 0;
}

.listing-main,
.listing-aside {
  min-width: 0;
  max-width: 100%;
}

.listing-media {
  margin-bottom: 1.35rem;
  min-width: 0;
  max-width: 100%;
}

.listing-hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(145deg, #2a2418, #4a3d28);
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  max-width: 100%;
  width: 100%;
}

.listing-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 100%;
}

.listing-hero-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  color: rgba(255,255,255,0.65);
  font-weight: 600;
}

.listing-hero .badge {
  top: 0.9rem;
  left: 0.9rem;
  font-size: 0.68rem;
  padding: 0.32rem 0.6rem;
}

.gallery-strip {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.4rem;
  max-width: 100%;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  touch-action: pan-x;
  scroll-snap-type: x mandatory;
}

.gallery-strip::-webkit-scrollbar { height: 4px; }
.gallery-strip::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 999px;
}

.gallery-thumb {
  flex: 0 0 auto;
  width: clamp(4.25rem, 18vw, 5.25rem);
  height: clamp(3.25rem, 13vw, 3.9rem);
  min-width: clamp(4.25rem, 18vw, 5.25rem);
  min-height: 2.75rem;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: var(--cream-dark);
  transition: border-color 0.15s, box-shadow 0.15s, opacity 0.15s;
  opacity: 0.85;
  -webkit-tap-highlight-color: transparent;
  scroll-snap-align: start;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.gallery-thumb:hover {
  border-color: var(--gold-light);
  opacity: 1;
}

.gallery-thumb.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
  opacity: 1;
}

.listing-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 1.05rem + 2vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0.35rem 0 0.45rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.listing-sub {
  color: var(--muted);
  font-size: clamp(0.9rem, 0.85rem + 0.3vw, 1rem);
  margin-bottom: 0.35rem;
  overflow-wrap: anywhere;
}

.listing-address {
  font-size: 0.88rem;
  color: var(--ink-soft);
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  overflow-wrap: anywhere;
}

.listing-specs {
  display: flex;
  flex-wrap: wrap;
  margin: 1rem 0 1.35rem;
  padding: 0.75rem 0;
  font-size: 0.85rem;
  gap: 0.45rem 0.4rem;
  border: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.listing-specs span {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  max-width: 100%;
}

.listing-specs strong { margin-right: 0.15rem; }

.listing-desc h2 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.35rem);
  font-weight: 600;
  margin-bottom: 0.9rem;
  letter-spacing: -0.015em;
}

.listing-desc-body {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1rem, 2.5vw, 1.4rem);
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.7;
  box-shadow: var(--shadow-sm);
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}

.listing-desc-body p + p { margin-top: 0.95rem; }
.listing-desc-body .muted {
  color: var(--muted);
  font-style: italic;
}

.listing-aside {
  position: sticky;
  top: calc(var(--draft-h) + var(--nav-h) + 1rem);
}

.listing-inquire-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1.1rem, 2.5vw, 1.4rem);
  border-top: 3px solid var(--gold);
  min-width: 0;
  width: 100%;
}

.listing-price {
  font-size: clamp(1.2rem, 1rem + 1vw, 1.5rem);
  font-weight: 750;
  margin: 0.2rem 0 1.15rem;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.listing-inquire-card .btn {
  white-space: normal;
  line-height: 1.3;
}

.listing-inquire-card .btn + .btn { margin-top: 0.55rem; }

.listing-inquire-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 1rem;
  line-height: 1.5;
  text-align: center;
  overflow-wrap: anywhere;
}

.listing-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  min-height: var(--touch);
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--gold-dark);
  transition: color 0.15s;
}

.listing-back-link:hover { color: var(--ink); }

.listing-sticky-bar {
  display: none;
}

.listing-not-found {
  text-align: center;
  padding: 3.5rem 1.25rem;
  background: var(--white);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

.listing-not-found h1 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.1rem + 1.5vw, 1.75rem);
  font-weight: 600;
  margin-bottom: 0.55rem;
}

.listing-not-found p {
  color: var(--muted);
  margin-bottom: 1.35rem;
}

.listing-not-found .btn { margin: 0.25rem; }

/* —— Responsive breakpoints —— */

/* Large tablet / small laptop: stack listing detail, keep cards fluid */
@media (max-width: 64rem) {
  .listing-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.15rem;
  }

  .listing-aside {
    position: static;
    order: -1; /* price + CTAs near top on tablet/phone */
  }

  .listing-inquire-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.55rem 0.75rem;
    align-items: center;
  }

  .listing-inquire-card .price-label,
  .listing-inquire-card .listing-price {
    grid-column: 1 / -1;
  }

  .listing-inquire-card .listing-price { margin-bottom: 0.2rem; }
  .listing-inquire-card .listing-aside-actions { display: contents; }
  .listing-inquire-card .btn-block { width: 100%; }
  .listing-inquire-note {
    grid-column: 1 / -1;
    margin-top: 0.2rem;
  }
}

/* Nav drawer for tablet and down */
@media (max-width: 52rem) {
  .menu-toggle { display: inline-flex; }
  .nav-desktop-only { display: none !important; }

  .nav .wrap {
    flex-wrap: nowrap;
    gap: 0.65rem;
  }

  .logo { margin-right: auto; gap: 0.5rem; }
  .logo-mark { width: 40px; height: 40px; }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(18, 16, 12, 0.48);
    z-index: 60;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s var(--ease);
  }

  .nav.open .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-backdrop[hidden] { display: none; }
  .nav.open .nav-backdrop[hidden] { display: block; }

  .nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(calc(100% - 3rem), 22rem);
    max-width: 100%;
    background: var(--white);
    z-index: 70;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: calc(var(--draft-h) + 0.75rem) 1.15rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
    box-shadow: var(--shadow-lg);
    transform: translate3d(100%, 0, 0);
    transition: transform 0.28s var(--ease), visibility 0.28s;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    visibility: hidden;
    pointer-events: none;
  }

  .nav.open .nav-drawer {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--line);
  }

  .nav-drawer-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--touch);
    height: var(--touch);
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--cream);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    color: var(--ink);
  }

  .nav-links {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.2rem;
    width: 100%;
    margin-bottom: 1.25rem;
  }

  .nav-links a {
    width: 100%;
    padding: 0.85rem 1rem;
    min-height: 3rem;
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
    font-weight: 650;
  }

  .nav-drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: auto;
    padding-top: 0.5rem;
  }

  .nav-actions { display: none; }
}


@media (max-width: 64rem) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(1rem, 3vw, 1.5rem);
    row-gap: 1.75rem;
    align-items: start;
  }
  .footer-brand,
  .footer-contact {
    grid-column: 1 / -1;
  }
  .footer-explore h4,
  .footer-areas h4 {
    margin-top: 0;
    line-height: 1.2;
  }
}

/* Phones / phablets */
@media (max-width: 40rem) {

  /* Even 2-col footer: brand full-width, Explore|Areas, Contact full-width */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 1.25rem;
    row-gap: 1.75rem;
    align-items: start;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-explore,
  .footer-areas {
    grid-column: auto;
  }

  .footer-contact {
    grid-column: 1 / -1;
  }

  .footer-explore h4,
  .footer-areas h4,
  .footer-contact h4 {
    margin-top: 0;
    margin-bottom: 0.85rem;
    line-height: 1.2;
    min-height: 1.2em;
  }

  .footer-explore ul,
  .footer-areas ul,
  .footer-contact ul {
    gap: 0.55rem;
  }

  .footer-brand p {
    max-width: none;
  }

  .topbar .wrap > span:first-child { display: none; }

  .field select,
  .field input,
  .sell-form input,
  .sell-form select,
  .sell-form textarea {
    font-size: 16px; /* prevent iOS zoom */
  }

  .search-toggle {
    width: 100%;
    display: flex;
  }

  .search-toggle button {
    flex: 1 1 0;
    min-width: 0;
  }

  .card-actions {
    flex-direction: column;
  }

  .card-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .section-head { align-items: flex-start; }

  .listing-hero {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
  }

  .gallery-strip {
    gap: 0.4rem;
    padding-bottom: 0;
    scrollbar-width: none;
  }
  .gallery-strip::-webkit-scrollbar { display: none; height: 0; }

  .gallery-thumb {
    width: 3.4rem;
    height: 2.55rem;
    min-width: 3.4rem;
    min-height: 2.55rem;
  }

  /* Sticky Call/Inquire — phone only; hide duplicate aside buttons
     (sticky bar is mounted on body so fixed positioning is reliable) */
  .listing-page {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }

  .listing-inquire-card {
    grid-template-columns: 1fr;
  }

  .listing-inquire-card .listing-aside-actions,
  .listing-inquire-card .btn,
  .listing-inquire-note {
    display: none;
  }

  .listing-aside .listing-back-link { display: none; }

  .listing-sticky-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    gap: 0.5rem;
    padding: 0.65rem var(--gutter) calc(0.65rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 28px rgba(26, 26, 26, 0.08);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .listing-sticky-bar .btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 3rem;
    white-space: nowrap;
    padding-inline: 0.75rem;
  }
}

@media (max-width: 30rem) {
  .logo small { display: none; }
}

/* Wide desktop breathing room */
@media (min-width: 90rem) {
  :root {
    --max: 76rem;
  }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* —— Loan calculator —— */
.calc-section {
  padding: var(--section-y) 0;
}

.calc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1rem, 3vw, 1.75rem);
  align-items: start;
}

.calc-card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}

.calc-lead {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.45;
}

.field-hint {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.35rem;
  line-height: 1.4;
}

.calc-results {
  background: linear-gradient(145deg, #1A1712 0%, #2A2418 70%, #3D3420 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(196,163,90,0.28);
  min-width: 0;
}

.calc-results-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
  margin-bottom: 0.35rem;
}

.calc-monthly {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 2.5vw, 2.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--gold-light);
  line-height: 1.1;
  margin-bottom: 1.15rem;
  overflow-wrap: anywhere;
}

.calc-stats {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.calc-stat-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.2rem;
}

.calc-stat-value {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  overflow-wrap: anywhere;
}

.calc-note {
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.68);
  margin-bottom: 1.1rem;
}

.calc-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.calc-cta .btn-ghost {
  border-color: rgba(255,255,255,0.28);
  color: var(--white);
}

.calc-cta .btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--gold);
  color: var(--gold-light);
}

.calc-explainer {
  margin-top: clamp(1.5rem, 4vw, 2.25rem);
  padding: 1rem 1.15rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 48rem;
}

.calc-explainer h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.calc-explainer p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}

.calc-results.is-invalid .calc-monthly {
  color: rgba(255,255,255,0.45);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.6rem);
}

@media (max-width: 48rem) {
  .calc-layout {
    grid-template-columns: 1fr;
  }
  .calc-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 24rem) {
  .calc-stats {
    grid-template-columns: 1fr;
  }
}

/* Contact chooser (Call / SMS / Viber) */
.contact-chooser {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.contact-chooser[hidden] { display: none !important; }
.contact-chooser-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}
.contact-chooser-sheet {
  position: relative;
  width: min(26rem, 100%);
  margin: 0;
  padding: 1.15rem 1.1rem calc(1.15rem + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-radius: 1rem 1rem 0 0;
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.18);
}
.contact-chooser-sheet h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}
.contact-chooser-sub {
  margin: 0 0 0.9rem;
  color: #64748b;
  font-size: 0.92rem;
}
.contact-chooser-sheet .btn + .btn { margin-top: 0.5rem; }
.contact-chooser-cancel { margin-top: 0.65rem !important; }
body.contact-chooser-open { overflow: hidden; }
@media (min-width: 720px) {
  .contact-chooser { align-items: center; }
  .contact-chooser-sheet {
    border-radius: 1rem;
    margin: 1rem;
  }
}



/* —— Content text links (make inline links look clickable) —— */
.section-head a:not(.btn),
.why a:not(.btn),
.listings-cta-card a:not(.btn) {
  color: var(--gold-dark, #9a7b2f);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.section-head a:not(.btn):hover,
.why a:not(.btn):hover,
.listings-cta-card a:not(.btn):hover {
  color: var(--ink);
}

/* —— Listing photo lightbox (detail page only) —— */
.listing-hero {
  cursor: zoom-in;
}
.listing-hero.is-zoomable::after {
  content: "Tap to view full";
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  background: rgba(26, 26, 26, 0.72);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0.92;
}
@media (hover: hover) and (pointer: fine) {
  .listing-hero.is-zoomable::after {
    content: "Click to view full";
  }
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.94);
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
  touch-action: none;
}
.photo-lightbox.is-open {
  display: flex;
}
body.lightbox-open {
  overflow: hidden;
  touch-action: none;
}
body.lightbox-open .listing-sticky-bar {
  visibility: hidden;
  pointer-events: none;
}

.photo-lightbox-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: grab;
}
.photo-lightbox-stage.is-dragging {
  cursor: grabbing;
}

.photo-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: center center;
  will-change: transform;
  transition: transform 0.08s linear;
}
.photo-lightbox-stage.is-pinching .photo-lightbox-img,
.photo-lightbox-stage.is-dragging .photo-lightbox-img {
  transition: none;
}

.photo-lightbox-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: max(0.65rem, env(safe-area-inset-top, 0px)) 0.75rem 0.65rem;
  background: linear-gradient(180deg, rgba(0,0,0,0.55), transparent);
  pointer-events: none;
}
.photo-lightbox-top > * {
  pointer-events: auto;
}
.photo-lightbox-counter {
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.photo-lightbox-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.photo-lightbox-btn {
  width: 2.6rem;
  height: 2.6rem;
  min-width: var(--touch);
  min-height: var(--touch);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  background: rgba(26, 26, 26, 0.55);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.photo-lightbox-btn:hover {
  background: rgba(196, 163, 90, 0.35);
  border-color: var(--gold-light);
}
.photo-lightbox-btn:active {
  transform: scale(0.96);
}
.photo-lightbox-btn:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}
.photo-lightbox-close {
  font-size: 1.35rem;
}

.photo-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  background: rgba(26, 26, 26, 0.55);
  color: #fff;
  font-size: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.photo-lightbox-prev { left: max(0.5rem, env(safe-area-inset-left, 0px)); }
.photo-lightbox-next { right: max(0.5rem, env(safe-area-inset-right, 0px)); }
.photo-lightbox-nav:hover {
  background: rgba(196, 163, 90, 0.35);
  border-color: var(--gold-light);
}
.photo-lightbox-nav[hidden] { display: none; }

.photo-lightbox-hint {
  position: absolute;
  bottom: max(0.85rem, env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255,255,255,0.72);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
  pointer-events: none;
  white-space: nowrap;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.35);
}

@media (max-width: 640px) {
  .photo-lightbox-nav {
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1.15rem;
  }
  .listing-hero.is-zoomable::after {
    font-size: 0.62rem;
    padding: 0.28rem 0.48rem;
  }
}

/* —— Request a callback —— */
.hero-callback {
  position: relative;
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  color: rgba(255,255,255,0.82);
  font-size: 0.9rem;
}
.hero-callback .btn,
.listings-cta-card .btn-ghost {
  color: var(--white);
  border-color: rgba(232, 213, 163, 0.55);
}
.hero-callback .btn:hover,
.listings-cta-card .btn-ghost:hover {
  color: var(--ink);
  background: var(--gold-light);
  border-color: var(--gold-light);
}
.listings-cta-card .btn + .btn { margin-left: 0.5rem; }
@media (max-width: 30rem) {
  .listings-cta-card .btn { display: flex; width: 100%; }
  .listings-cta-card .btn + .btn { margin: 0.55rem 0 0; }
}
.footer-contact button[data-callback],
.footer-contact a[data-callback] { cursor: pointer; }

.callback-sheet {
  max-height: calc(100dvh - 1rem);
  overflow-y: auto;
  padding-top: 1.35rem;
  border-top: 3px solid var(--gold);
}
.callback-x {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  border-radius: 999px;
}
.callback-x:hover { background: var(--gold-soft); color: var(--ink); }
.callback-sheet h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  margin: 0 2rem 0.3rem 0;
}
.callback-about {
  margin: 0 0 0.95rem;
  padding: 0.55rem 0.75rem;
  background: var(--gold-soft);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.callback-form { display: grid; gap: 0.75rem; }
.callback-form textarea {
  appearance: none;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  background: var(--cream);
  color: var(--ink);
  width: 100%;
  resize: vertical;
  min-height: 4.5rem;
}
.callback-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  background-color: var(--white);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.callback-form input { font-size: 16px; } /* no iOS zoom */
.callback-form .field-hint { margin-top: 0.1rem; }
.callback-form .muted { color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 500; }
.callback-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}
.callback-error {
  margin: 0;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  background: #FDF1EF;
  color: #8A2A1B;
  font-size: 0.86rem;
  line-height: 1.45;
}
.callback-error a { color: inherit; font-weight: 700; text-decoration: underline; }
.callback-done { text-align: center; padding: 0.5rem 0 0.25rem; }
.callback-done-icon {
  width: 3rem; height: 3rem;
  margin: 0 auto 0.6rem;
  border-radius: 999px;
  display: grid; place-items: center;
  background: var(--gold); color: var(--ink);
  font-size: 1.4rem; font-weight: 700;
}
.callback-done h3 { margin: 0 0 0.35rem; }
.callback-done p { margin: 0 0 1rem; font-size: 0.9rem; }
@media (max-width: 56rem) {
  .listing-sticky-bar .btn { padding-inline: 0.5rem; font-size: 0.78rem; }
}
.callback-form[hidden], .callback-done[hidden], .callback-error[hidden] { display: none !important; }


/* Lightweight toast (e.g. Viber paste hint) */
.site-toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%) translateY(120%);
  z-index: 10050;
  max-width: min(92vw, 26rem);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(20, 28, 36, 0.96);
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.35;
  box-shadow: 0 8px 28px rgba(0,0,0,0.28);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.site-toast.site-toast--show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}


/* —— Similar listings (listing detail) —— */
.similar-listings {
  padding: clamp(2rem, 5vw, 3rem) 0 0;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  border-top: 1px solid var(--line);
  min-width: 0;
}
.similar-listings .similar-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr));
}
@media (max-width: 40rem) {
  .similar-listings .similar-grid {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    margin-right: calc(var(--gutter) * -1);
    padding-right: var(--gutter);
    scrollbar-width: thin;
  }
  .similar-listings .similar-grid > .card {
    flex: 0 0 82%;
    max-width: 82%;
    scroll-snap-align: start;
  }
  .similar-listings .similar-grid[data-count="1"] > .card {
    flex-basis: 100%;
    max-width: 100%;
  }
}


/* —— Legal pages —— */
.legal-doc {
  padding: clamp(1.5rem, 4vw, 2.75rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}
.legal-doc .legal-inner {
  max-width: 42rem;
}
.legal-doc h2 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
  font-weight: 600;
  margin: 1.75rem 0 0.55rem;
  letter-spacing: -0.01em;
}
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc p, .legal-doc li {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0 0 0.75rem;
}
.legal-doc ul {
  margin: 0 0 0.9rem;
  padding-left: 1.2rem;
}
.legal-doc li { margin-bottom: 0.35rem; }
.legal-doc a { color: var(--gold-dark, #8a6d2f); text-decoration: underline; text-underline-offset: 2px; }
.legal-updated {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.footer-legal a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
}
.footer-legal a:hover { color: var(--gold-light); }
.form-consent {
  margin: 0 0 0.75rem !important;
  font-size: 0.8rem !important;
  line-height: 1.45;
}
.form-consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.callback-consent {
  margin: 0.15rem 0 0.85rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--ink-soft, #5c564c);
}
.callback-consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
