/* =====================================================================
   2bhkNepal — global styles
   Mobile-first. Colors and sizes are CSS variables: change them here.
   ===================================================================== */

:root {
  --primary: #0f766e;          /* teal accent */
  --primary-dark: #115e59;
  --primary-light: #ccfbf1;
  --accent: #f59e0b;           /* small highlights (stars) */
  --danger: #dc2626;
  --success: #16a34a;
  --warning-bg: #fef3c7;
  --warning-text: #92400e;

  --text: #1f2937;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.12);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Devanagari", sans-serif;
  --container: 1180px;
  --header-h: 60px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.skip-link { position: absolute; left: -999px; top: 0; background: var(--primary); color: #fff; padding: 8px 12px; z-index: 1000; }
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.section { padding: 32px 0; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.section-title h2 { margin: 0; }
.muted { color: var(--text-muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.hidden { display: none !important; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }

/* ---------- Config banner ---------- */
.config-banner {
  background: var(--warning-bg); color: var(--warning-text);
  padding: 10px 16px; font-size: .9rem; text-align: center; border-bottom: 1px solid #fcd34d;
}
.config-banner code { background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: var(--surface); border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.site-header .container { height: 100%; display: flex; align-items: center; gap: 12px; }
.logo { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 1.2rem; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo svg { width: 28px; height: 28px; color: var(--primary); }
.logo span b { color: var(--primary); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-links { display: none; gap: 4px; }
.nav-links a { color: var(--text); padding: 8px 10px; border-radius: var(--radius-sm); font-weight: 500; }
.nav-links a:hover { background: var(--surface-alt); text-decoration: none; }
.nav-links a.btn-primary, .mobile-menu a.btn-primary { color: #fff; border: 0; text-align: center; }
.nav-links a.btn-primary:hover { background: var(--primary-dark); }
.lang-toggle {
  border: 1px solid var(--border); background: var(--surface); border-radius: 999px;
  padding: 6px 10px; font-size: .85rem; cursor: pointer; font-family: inherit; color: var(--text);
}
.menu-btn { background: none; border: 0; padding: 6px; cursor: pointer; color: var(--text); }
.menu-btn svg { width: 26px; height: 26px; }
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 auto 0; background: var(--surface);
  border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); padding: 8px 16px 16px; z-index: 499;
}
.mobile-menu a { display: block; padding: 12px 4px; color: var(--text); border-bottom: 1px solid var(--border); }
.mobile-menu .btn { margin-top: 12px; width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 16px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; line-height: 1.2;
  background: var(--surface-alt); color: var(--text); text-decoration: none; min-height: 42px;
  transition: background .15s, border-color .15s;
}
.btn:hover { text-decoration: none; filter: brightness(.97); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-viber { background: #7360f2; color: #fff; }
.btn-sm { padding: 6px 10px; font-size: .85rem; min-height: 34px; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; color: var(--primary); padding: 0; min-height: 0; font-weight: 500; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.field label, .label { font-weight: 600; font-size: .9rem; }
.field .hint { font-size: .8rem; color: var(--text-muted); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number],
input[type=search], select, textarea {
  width: 100%; padding: 10px 12px; font: inherit; font-size: 16px; /* 16px avoids iOS zoom */
  border: 1px solid #cbd5e1; border-radius: var(--radius-sm); background: var(--surface); color: var(--text);
}
textarea { min-height: 100px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.checkbox { display: flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; padding: 4px 0; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--primary); }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
.form-error { color: var(--danger); font-size: .9rem; margin: 8px 0; }
.form-success { color: var(--success); font-size: .9rem; margin: 8px 0; }

/* Segmented control (BHK chips) */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1px solid var(--border); background: var(--surface); border-radius: 999px;
  padding: 7px 14px; font: inherit; font-size: .9rem; cursor: pointer; color: var(--text);
}
.chip[aria-pressed="true"], .chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- Hero (home page) ---------- */
.hero { position: relative; background: #0b4a45; color: #fff; overflow: hidden; padding: 34px 0 44px; }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; opacity: .14; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='70'%3E%3Cpath d='M4 70V42l20-15 20 15v28M52 70V32l17-14 17 14v38M98 70V48l16-12 16 12v22' fill='none' stroke='white' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") repeat-x left bottom;
}
.hero-inner { position: relative; z-index: 1; }
.hero-eyebrow { margin: 0 0 12px; font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: #f5a524; }
.hero h1 {
  margin: 0; max-width: 820px; color: #fff; font-family: 'Bricolage Grotesque', var(--font);
  font-weight: 800; font-size: clamp(2.1rem, 5.2vw, 4.1rem); line-height: 1.04; letter-spacing: -.03em;
}
.hero-sub { margin: 14px 0 24px; max-width: 600px; font-size: 1.05rem; line-height: 1.5; color: #cfe6e2; }

/* Search bar: one white bar, thin lines between the fields */
.search-box {
  position: relative; background: var(--surface); color: var(--text); border-radius: 20px; padding: 6px 18px 18px;
  box-shadow: 0 14px 30px rgba(0,0,0,.22); display: grid; grid-template-columns: 1fr 1fr;
}
.sb-field { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); min-width: 0; }
.sb-area, .sb-kw, .sb-submit { grid-column: 1 / -1; }
.sb-type { padding-right: 12px; border-right: 1px solid var(--border); }
.sb-last { padding-left: 16px; }
.sb-ico { width: 22px; height: 22px; color: var(--primary); flex: none; }
.sb-inner { flex: 1; min-width: 0; }
.sb-field label { display: block; margin-bottom: 2px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6b7775; }
.search-box .sb-field input, .search-box .sb-field select {
  width: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: 1rem; color: var(--text);
}
.search-box .sb-field input:focus, .search-box .sb-field select:focus { border: 0; box-shadow: none; }
.sb-field:focus-within { border-bottom-color: var(--primary); }
.sb-field:focus-within label { color: var(--primary-dark); }
.sb-submit {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; margin-top: 14px;
  border: 0; border-radius: 14px; background: #f5a524; color: #1c2b2a; font: inherit; font-weight: 700; font-size: 1.05rem; cursor: pointer;
}
.sb-submit:hover { background: #ffb73d; }
.sb-submit svg { width: 20px; height: 20px; }
.hero-row { position: relative; margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.hero-row .lbl { margin-right: 4px; font-size: .88rem; font-weight: 600; color: #cfe6e2; }
.hero .chip { min-height: 44px; padding: 0 16px; border: 1px solid rgba(255,255,255,.45); background: transparent; color: #fff; font-weight: 600; }
.hero .chip:hover { border-color: #fff; }
.hero .chip[aria-pressed="true"] { background: #fff; border-color: #fff; color: #0b4a45; }
.hero-popular { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.hero-popular a { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.35); color: #fff; font-size: .95rem; }
.hero-popular a:hover { border-bottom-color: #fff; text-decoration: none; }

/* Trust points on the home page: no boxes, thin lines between them */
.trust-strip { display: flex; flex-direction: column; }
.trust-cell { padding: 18px 0; border-top: 1px solid var(--border); }
.trust-cell:first-child { border-top: 0; }
.trust-cell .tc-icon { color: var(--primary); margin-bottom: 8px; }
.trust-cell .tc-icon svg { width: 26px; height: 26px; }
.trust-cell h3 { margin: 0 0 4px; font-family: 'Bricolage Grotesque', var(--font); font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em; }
.trust-cell p { margin: 0; color: var(--text-muted); font-size: .94rem; line-height: 1.55; }

/* Autocomplete */
.autocomplete { position: relative; }
.autocomplete-list {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 50; margin: 4px 0 0; padding: 4px 0;
  list-style: none; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); max-height: 240px; overflow-y: auto;
}
.sb-area .autocomplete { position: static; }
.autocomplete-list li { padding: 8px 12px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.ac-count { font-size: .78rem; color: var(--text-muted); white-space: nowrap; }
.autocomplete-list li[aria-selected="true"], .autocomplete-list li:hover { background: var(--primary-light); }

/* ---------- Area quick links ---------- */
.area-links { display: flex; flex-wrap: wrap; gap: 8px; }
.area-links a {
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 14px; color: var(--text); font-weight: 500; font-size: .92rem;
}
.area-links a:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }

/* ---------- Listing cards ---------- */
.grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; border: 1px solid var(--border);
}
.card-body { padding: 16px; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 700;
  padding: 3px 8px; border-radius: 999px; background: var(--surface-alt); color: var(--text);
  white-space: nowrap;
}
.badge svg { width: 14px; height: 14px; }
.badge-verified { background: #dcfce7; color: #166534; }
.badge-pending { background: var(--warning-bg); color: var(--warning-text); }
.badge-rented { background: #e0e7ff; color: #3730a3; }
.badge-hidden { background: #fee2e2; color: #991b1b; }
.badge-active { background: #dcfce7; color: #166534; }

/* ---------- Trust section ---------- */
.trust-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.trust-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.trust-item .icon {
  width: 42px; height: 42px; border-radius: 10px; background: var(--primary-light); color: var(--primary);
  display: grid; place-items: center; margin-bottom: 10px;
}
.trust-item .icon svg { width: 22px; height: 22px; }
.trust-item h3 { margin-bottom: 4px; }
.trust-item p { margin: 0; color: var(--text-muted); font-size: .92rem; }

.cta {
  background: var(--primary-dark); color: #fff; border-radius: var(--radius); padding: 28px 20px;
  display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
}
.cta h2 { margin: 0; }
.cta p { margin: 0; opacity: .9; }
.cta .btn { background: #fff; color: var(--primary-dark); }

/* ---------- Skeletons ---------- */
.skeleton { background: linear-gradient(90deg, #eef2f6 25%, #e2e8f0 37%, #eef2f6 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 6px; }
.skeleton-line { height: 14px; margin: 10px 14px; }
.skeleton-line.short { width: 50%; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- Empty state ---------- */
.empty {
  text-align: center; padding: 40px 16px; background: var(--surface); border: 1px dashed #cbd5e1;
  border-radius: var(--radius); color: var(--text-muted); grid-column: 1 / -1;
}
.empty svg { width: 54px; height: 54px; color: #94a3b8; margin: 0 auto 10px; }
.empty h3 { color: var(--text); }

/* ---------- Search page ---------- */
.search-layout { display: grid; grid-template-columns: 1fr; gap: 16px; padding: 16px 0 32px; }
.filters {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px;
}
.filters h2 { font-size: 1.05rem; }
.filters .field { margin-bottom: 12px; }
.filters-toggle { width: 100%; }
.results-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.view-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.view-toggle button { border: 0; background: var(--surface); padding: 8px 14px; font: inherit; cursor: pointer; color: var(--text); }
.view-toggle button[aria-pressed="true"] { background: var(--primary); color: #fff; }
.results-map { height: 70vh; min-height: 360px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.load-more-wrap { text-align: center; margin-top: 20px; }
.range-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* Leaflet popup cards */
.map-popup { width: 200px; }
.map-popup img { width: 100%; height: 110px; object-fit: cover; border-radius: 6px; margin-bottom: 6px; }
.map-popup strong { display: block; color: var(--primary-dark); }

/* ---------- Listing detail ---------- */
.detail-layout { display: grid; grid-template-columns: 1fr; gap: 20px; padding: 16px 0 40px; }
.gallery { position: relative; border-radius: var(--radius); overflow: hidden; background: #0f172a; }
.gallery-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img {
  flex: 0 0 100%; width: 100%; aspect-ratio: 4/3; max-height: min(70vh, 560px); object-fit: contain;
  background: #0f172a; scroll-snap-align: start; cursor: zoom-in;
}
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.9);
  border: 0; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
}
.gallery-nav.prev { left: 10px; }
.gallery-nav.next { right: 10px; }
.gallery-counter {
  position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,.6); color: #fff;
  font-size: .8rem; padding: 2px 10px; border-radius: 999px;
}
.thumbs { display: flex; gap: 6px; overflow-x: auto; margin-top: 8px; }
.thumbs button { border: 2px solid transparent; padding: 0; border-radius: 6px; overflow: hidden; cursor: pointer; flex: 0 0 64px; height: 48px; background: none; }
.thumbs button.active { border-color: var(--primary); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 2000;
  display: flex; align-items: center; justify-content: center;
}
.lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; }
.lightbox button {
  position: absolute; background: rgba(255,255,255,.15); color: #fff; border: 0; width: 46px; height: 46px;
  border-radius: 50%; font-size: 1.4rem; cursor: pointer;
}
.lightbox .lb-close { top: 14px; right: 14px; }
.lightbox .lb-prev { left: 10px; top: 50%; }
.lightbox .lb-next { right: 10px; top: 50%; }

.price-big { font-size: 1.6rem; font-weight: 800; color: var(--primary-dark); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 16px 0; }
.fact { background: var(--surface-alt); border-radius: var(--radius-sm); padding: 10px 12px; }
.fact .k { font-size: .78rem; color: var(--text-muted); display: block; }
.fact .v { font-weight: 600; }
.amenities { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; padding: 0; margin: 0; list-style: none; }
.amenities li { display: flex; gap: 8px; align-items: center; font-size: .93rem; }
.amenities li svg { width: 18px; height: 18px; flex-shrink: 0; }
.amenities li.yes svg { color: var(--success); }
.amenities li.no { color: var(--text-muted); }
.amenities li.no svg { color: #94a3b8; }

.contact-card { position: relative; border-top: 1px solid var(--border); padding-top: 16px; }
.contact-card .poster { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.avatar {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--primary-light);
  color: var(--primary-dark); display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; flex-shrink: 0;
}
.avatar.lg { width: 96px; height: 96px; font-size: 2rem; }
.contact-buttons { display: grid; grid-template-columns: 1fr; gap: 8px; }
.availability-note {
  display: flex; gap: 8px; align-items: flex-start; background: #ecfdf5; color: #065f46;
  padding: 10px 12px; border-radius: var(--radius-sm); font-size: .9rem; margin: 12px 0;
}
.stars { color: var(--accent); letter-spacing: 1px; }
.mobile-contact-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 400; background: var(--surface);
  border-top: 1px solid var(--border); padding: 8px 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  box-shadow: 0 -4px 12px rgba(0,0,0,.06);
}
.has-contact-bar { padding-bottom: 70px; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(15,23,42,.55); z-index: 1500;
  display: flex; align-items: flex-end; justify-content: center;
}
.modal {
  background: var(--surface); width: 100%; max-width: 520px; border-radius: 16px 16px 0 0;
  padding: 20px; max-height: 90vh; overflow-y: auto;
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.modal-header h2 { margin: 0; font-size: 1.15rem; }
.modal-close { background: none; border: 0; font-size: 1.5rem; cursor: pointer; line-height: 1; color: var(--text-muted); }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 3000; display: flex; flex-direction: column; gap: 8px; width: calc(100% - 32px); max-width: 420px; }
.toast { background: #111827; color: #fff; padding: 12px 16px; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); font-size: .92rem; animation: toastIn .2s ease; }
.toast.error { background: var(--danger); }
.toast.success { background: var(--success); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Auth ---------- */
.auth-wrap { max-width: 440px; margin: 32px auto; padding: 0 16px; }
.tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 18px; gap: 4px; overflow-x: auto; }
.tabs button {
  background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px; font: inherit;
  font-weight: 600; color: var(--text-muted); cursor: pointer; white-space: nowrap;
}
.tabs button[aria-selected="true"] { color: var(--primary); border-bottom-color: var(--primary); }
.role-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.role-options label {
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 6px; text-align: center;
  cursor: pointer; font-size: .88rem; font-weight: 600;
}
.role-options input { position: absolute; opacity: 0; pointer-events: none; }
.role-options label:has(input:checked) { border-color: var(--primary); background: var(--primary-light); color: var(--primary-dark); }

/* ---------- Dashboard / Admin ---------- */
.page-head { padding: 20px 0 8px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.page-head h1 { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.stat .n { font-size: 1.5rem; font-weight: 800; color: var(--primary-dark); }
.stat .l { font-size: .82rem; color: var(--text-muted); }
.alert { padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: .93rem; }
.alert-warning { background: var(--warning-bg); color: var(--warning-text); border: 1px solid #fcd34d; }
.alert-info { background: #e0f2fe; color: #075985; border: 1px solid #bae6fd; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

.my-listing { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px; }
.my-listing img { width: 96px; height: 80px; object-fit: cover; border-radius: var(--radius-sm); background: var(--surface-alt); }
.my-listing .actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.my-listing .lstats { display: flex; gap: 12px; font-size: .82rem; color: var(--text-muted); flex-wrap: wrap; }
.list { display: flex; flex-direction: column; gap: 10px; }
.list-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.list-item.unread { border-left: 4px solid var(--primary); }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--surface-alt); font-weight: 700; white-space: nowrap; }

/* ---------- Multi-step form ---------- */
.steps { display: flex; gap: 6px; margin: 16px 0 20px; }
.steps .step { flex: 1; text-align: center; font-size: .75rem; color: var(--text-muted); }
.steps .step::before {
  content: ""; display: block; height: 5px; border-radius: 3px; background: var(--border); margin-bottom: 6px;
}
.steps .step.done::before, .steps .step.current::before { background: var(--primary); }
.steps .step.current { color: var(--primary); font-weight: 700; }
.form-step { display: none; }
.form-step.active { display: block; }
.form-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.photo-grid .ph { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-alt); }
.photo-grid .ph img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid .ph button {
  position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,.65); color: #fff; border: 0;
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer; line-height: 1;
}
.photo-grid .ph .cover { position: absolute; bottom: 4px; left: 4px; background: var(--primary); color: #fff; font-size: .7rem; padding: 1px 6px; border-radius: 4px; }
.dropzone {
  border: 2px dashed #cbd5e1; border-radius: var(--radius); padding: 24px; text-align: center; cursor: pointer;
  background: var(--surface); color: var(--text-muted);
}
.dropzone:hover, .dropzone.drag { border-color: var(--primary); color: var(--primary); }
.pin-map { height: 300px; border-radius: var(--radius); border: 1px solid var(--border); margin-top: 8px; }
.small-map { height: 240px; border-radius: var(--radius); border: 1px solid var(--border); }

/* ---------- Broker profile ---------- */
.profile-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 20px 0; }
.review { border-bottom: 1px solid var(--border); padding: 12px 0; }
.review:last-child { border-bottom: 0; }

/* ---------- Static pages ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.disclaimer { background: var(--surface-alt); border-left: 4px solid var(--primary); padding: 12px 14px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .92rem; }
.breadcrumb { font-size: .85rem; color: var(--text-muted); padding-top: 14px; }
.breadcrumb a { color: var(--text-muted); }

/* ---------- Footer ---------- */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 32px 0 20px; margin-top: 40px; font-size: .92rem; }
.site-footer a { color: #e2e8f0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.footer-grid h3 { color: #fff; font-size: .95rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand .logo { color: #fff; }
.footer-brand .logo span b, .footer-brand .logo svg { color: #5eead4; }
.socials { display: flex; gap: 10px; margin-top: 10px; }
.socials a { width: 36px; height: 36px; border-radius: 50%; background: #1e293b; display: grid; place-items: center; }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid #1e293b; margin-top: 24px; padding-top: 14px; font-size: .82rem; color: #94a3b8; }

/* ---------- Contact pop-ups (Call now / Send inquiry) ---------- */
.mobile-contact-bar.single { grid-template-columns: 1fr; }
.call-listing {
  display: flex; gap: 12px; align-items: flex-start; background: var(--surface-alt);
  border-radius: var(--radius-sm); padding: 10px; margin-bottom: 14px;
}
.call-listing img { width: 84px; height: 66px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.call-listing strong { display: block; line-height: 1.3; }
.call-listing .price-sm { color: var(--primary-dark); font-weight: 800; }
.call-number {
  display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px 0;
  padding: 14px; border: 2px dashed var(--primary); border-radius: var(--radius);
  font-size: 1.5rem; font-weight: 800; color: var(--primary-dark); background: var(--primary-light);
}
.call-number:hover { text-decoration: none; filter: brightness(.97); }
.call-number svg { width: 24px; height: 24px; }
.modal .poster { display: flex; gap: 12px; align-items: center; }

/* ---------- Broker / admin panel label in the header ---------- */
.panel-tag {
  background: var(--primary-light); color: var(--primary-dark); font-size: .72rem; font-weight: 800;
  padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap;
}
.panel-tag[data-i18n="panel_admin"] { background: #fee2e2; color: #991b1b; }

/* ---------- Views / calls / inquiries counters ---------- */
.stats-line { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .8rem; color: var(--text-muted); }
.stats-line .stat-item { display: inline-flex; align-items: center; gap: 4px; }
.stats-line svg { width: 14px; height: 14px; flex-shrink: 0; }
.stats-line.lg { font-size: .92rem; gap: 6px 18px; margin: 6px 0 2px; }
.stats-line.lg svg { width: 17px; height: 17px; color: var(--primary); }
.stat-bump { animation: statBump .5s ease; color: var(--primary-dark); font-weight: 700; }
@keyframes statBump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* ---------- Admin: broker list rows ---------- */
.broker-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: var(--text); }
.broker-row:hover { text-decoration: none; box-shadow: var(--shadow-lg); }
.broker-row .badge { margin-left: 6px; }

/* ---------- "I'm not a robot" box (Cloudflare Turnstile) ---------- */
.captcha-box { margin: 14px 0 0; min-height: 65px; }
.captcha-box:empty { min-height: 0; }
/* narrower than 300 px: the normal-size box is shrunk to fit instead of turning into a small square */
.captcha-box.captcha-narrow { height: calc(65px * var(--captcha-scale, 1)); overflow: hidden; }
.captcha-box.captcha-narrow > * { transform: scale(var(--captcha-scale, 1)); transform-origin: 0 0; }

/* ---------- Visitor account: perks + profile ---------- */
.perks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.perks li { display: flex; gap: 10px; align-items: center; font-size: .9rem; color: var(--text-muted); }
.perks svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; }
.profile-page { padding: 20px 0 10px; }
.profile-hero { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-bottom: 16px; }
.avatar-edit { position: relative; cursor: pointer; border-radius: 50%; }
.avatar-edit .avatar-cam {
  position: absolute; right: 0; bottom: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--primary); color: #fff; display: grid; place-items: center; border: 2px solid var(--surface);
}
.avatar-edit .avatar-cam svg { width: 16px; height: 16px; }
.avatar-edit:focus-within { outline: 3px solid var(--primary); outline-offset: 2px; }
.hero-stats { display: flex; gap: 8px; width: 100%; }
.hero-stats button {
  flex: 1; border: 1px solid var(--border); background: var(--surface-alt); border-radius: var(--radius-sm);
  padding: 10px 6px; cursor: pointer; font: inherit; color: var(--text); display: flex; flex-direction: column; align-items: center;
}
.hero-stats strong { font-size: 1.3rem; color: var(--primary-dark); }
.hero-stats span { font-size: .78rem; color: var(--text-muted); }
.saved-item { display: flex; flex-direction: column; gap: 6px; }
.saved-item .btn svg { color: var(--danger); }
.my-inquiry { display: flex; gap: 12px; align-items: flex-start; }
.my-inquiry img { width: 84px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
@media (min-width: 700px) {
  .hero-stats { width: auto; margin-left: auto; }
  .hero-stats button { min-width: 92px; }
}

.profile-page .tabs button { padding: 10px 10px; }
.tabs { scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.profile-page .tabs button { padding: 10px 8px; }

/* =====================================================================
   About + Contact pages
   ===================================================================== */
.page-hero {
  background: linear-gradient(135deg, #134e4a 0%, var(--primary) 60%, #14b8a6 100%);
  color: #fff; padding: 40px 0 44px;
}
.page-hero .eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; opacity: .85; margin: 0 0 6px; }
.page-hero h1 { font-size: 1.8rem; margin-bottom: 8px; }
.page-hero .lead { font-size: 1.05rem; opacity: .92; max-width: 640px; margin: 0; }

.stat-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
.stat-band > div { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); padding: 14px 12px; }
.stat-band strong { display: block; font-size: 1.6rem; line-height: 1.1; }
.stat-band span { font-size: .8rem; opacity: .9; }

.about-story { display: grid; gap: 18px; align-items: center; }
.about-story p { color: var(--text-muted); font-size: 1.02rem; }

.how-grid { display: grid; gap: 16px; }
.how-head { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.how-head svg { width: 26px; height: 26px; color: var(--primary); }
.steps-list { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 14px; }
.steps-list li { display: flex; gap: 12px; align-items: flex-start; }
.steps-list .num {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--primary-light);
  color: var(--primary-dark); font-weight: 800; display: grid; place-items: center;
}
.steps-list p { margin: 2px 0 0; color: var(--text-muted); font-size: .92rem; }

.contact-section { padding-top: 0; }
.contact-cards { display: grid; gap: 10px; margin-top: -26px; }
.contact-card-link {
  display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); color: var(--text);
  transition: transform .15s, box-shadow .15s;
}
.contact-card-link:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.contact-card-link > span:last-child { display: flex; flex-direction: column; }
.cc-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--primary-light); color: var(--primary);
  display: grid; place-items: center; flex-shrink: 0;
}
.cc-icon svg { width: 22px; height: 22px; }
.contact-card-link.wa .cc-icon { background: #dcfce7; color: #16a34a; }
.cc-icon.big { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 10px; background: #dcfce7; color: var(--success); }
.cc-icon.big svg { width: 32px; height: 32px; }

.contact-grid { display: grid; gap: 24px; margin-top: 28px; }
.contact-done { text-align: center; padding: 24px 8px; }

.faq { display: grid; gap: 8px; margin: 12px 0 20px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 14px; }
.faq summary { cursor: pointer; padding: 12px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--primary); flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 12px; color: var(--text-muted); font-size: .93rem; }
.broker-box { background: var(--primary-light); border-radius: var(--radius); padding: 18px; }
.broker-box h3 { margin-bottom: 6px; }

@media (min-width: 700px) {
  .page-hero { padding: 56px 0 60px; }
  .page-hero h1 { font-size: 2.3rem; }
  .about-story { grid-template-columns: 3fr 2fr; }
  .how-grid { grid-template-columns: 1fr 1fr; }
  .contact-cards { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 3fr 2fr; align-items: start; }
}

/* =====================================================================
   Listing cards — box-less style (photo + text on the page background)
   ===================================================================== */
.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
.listing-card { position: relative; display: flex; flex-direction: column; min-width: 0; color: var(--text); }
.listing-card .thumb {
  position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--surface-alt);
}
.listing-card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.listing-card:hover .thumb img { transform: scale(1.04); }
.listing-card .verified-dot {
  position: absolute; left: 8px; bottom: 8px; width: 28px; height: 28px; border-radius: 8px;
  background: rgba(15,118,110,.92); color: #fff; display: grid; place-items: center;
}
.listing-card .verified-dot svg { width: 18px; height: 18px; }
.listing-card .photo-count {
  position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px;
  background: rgba(0,0,0,.55); color: #fff; font-size: .72rem; padding: 2px 8px; border-radius: 999px;
}
.listing-card .photo-count svg { width: 12px; height: 12px; }
.listing-card .info { padding: 10px 2px 0; display: flex; flex-direction: column; gap: 3px; }
.listing-card .title {
  margin: 0; font-size: .98rem; font-weight: 500; line-height: 1.3; color: var(--text);
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.listing-card .card-link { color: inherit; }
.listing-card .card-link:hover { text-decoration: none; }
.listing-card .card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card is clickable */
.listing-card .card-link:focus-visible { outline: none; }
.listing-card:focus-within .thumb { outline: 3px solid var(--primary); outline-offset: 2px; }
.listing-card .price { font-size: 1.2rem; font-weight: 800; color: var(--text); margin-top: 2px; }
.listing-card .price small { font-size: .78rem; font-weight: 500; color: var(--text-muted); }
.listing-card .where { display: flex; align-items: center; gap: 3px; font-size: .84rem; color: var(--text-muted); }
.listing-card .where svg { width: 13px; height: 13px; flex-shrink: 0; }
.listing-card .where span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listing-card .poster { font-size: .86rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listing-card .card-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 4px; }
.chip-sm {
  display: inline-block; border: 1px solid var(--primary); color: var(--primary-dark); border-radius: 8px;
  padding: 2px 9px; font-size: .74rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.save-btn {
  position: relative; z-index: 2; /* above the card link */
  flex-shrink: 0; background: none; border: 0; padding: 4px; cursor: pointer; color: var(--text); border-radius: 6px; line-height: 0;
}
.save-btn svg { width: 22px; height: 22px; }
.save-btn:hover { background: var(--surface-alt); }
.save-btn[aria-pressed="true"] { color: var(--primary); }
.save-btn[aria-pressed="true"] svg { fill: currentColor; }
.listing-card .card-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin-top: 2px; }
.listing-card .card-stats .stats-line { font-size: .74rem; gap: 2px 8px; }
.listing-card .card-stats .stats-line svg { width: 12px; height: 12px; }
.listing-card .card-stats .updated { font-size: .72rem; color: var(--text-muted); }
.skeleton-card .thumb { aspect-ratio: 4 / 3; border-radius: 12px; }
.skeleton-card .skeleton-line { margin: 10px 2px 0; }
@media (min-width: 600px) {
  .listing-card .title { font-size: 1.02rem; }
}

/* =====================================================================
   Design v2 (approved in Claude Design): warm ground, deep teal + amber,
   Bricolage Grotesque headings, thin lines instead of boxes.
   These rules come last on purpose and refine everything above.
   ===================================================================== */
:root {
  --bg: #faf9f6;
  --border: #e6e3da;
  --surface-alt: #efece3;
  --text: #1c2b2a;
  --text-muted: #5f6d6b;
  --display: 'Bricolage Grotesque', var(--font);
  --header-h: 68px;
}
h1, h2, h3 { font-family: var(--display); letter-spacing: -.015em; }
h1, h2 { font-weight: 800; }
h3 { font-weight: 600; }

/* Header */
.site-header { height: var(--header-h); }
.logo { font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; gap: 10px; }
.logo svg { width: 30px; height: 30px; }
.nav-links { gap: 6px; align-items: center; }
.nav-links a { padding: 8px 12px; border-radius: 0; font-weight: 600; font-size: .95rem; background: none; }
.nav-links a:hover { background: none; color: var(--primary); text-decoration: none; }
.nav-links a.active { color: var(--primary); box-shadow: inset 0 -2px 0 var(--primary); }
.nav-links a.btn-primary, .mobile-menu a.btn-primary { background: var(--primary); color: #fff; border-radius: 999px; padding: 11px 20px; margin-left: 8px; box-shadow: none; }
.nav-links a.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.mobile-menu a.active { color: var(--primary); font-weight: 700; }
.lang-toggle { font-weight: 600; padding: 9px 16px; border-color: #d6d2c6; }

/* Buttons and cards */
.btn { border-radius: 12px; }
.btn-primary:hover { background: var(--primary-dark); }
.card { box-shadow: none; border-radius: 16px; }

/* Footer */
.site-footer { background: #0a2927; color: #b8d3cf; padding: 56px 0 24px; margin-top: 0; }
.site-footer a { color: #d5e8e5; }
.site-footer a:hover { color: #fff; }
.footer-grid h3 { font-family: var(--font); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.footer-brand .logo { font-size: 1.4rem; }
.footer-bottom { border-top-color: #1d4642; color: #8fb0ab; }
.socials a { background: #164441; }

/* ---------- About + Contact page header ---------- */
.page-hero { position: relative; background: #0b4a45; color: #fff; padding: 44px 0 72px; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; opacity: .14; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='70'%3E%3Cpath d='M4 70V42l20-15 20 15v28M52 70V32l17-14 17 14v38M98 70V48l16-12 16 12v22' fill='none' stroke='white' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") repeat-x left bottom;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow { color: #f5a524; opacity: 1; letter-spacing: .14em; font-size: .8rem; margin: 0 0 14px; }
.page-hero h1 { margin: 0; max-width: 820px; font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.04; letter-spacing: -.03em; }
.page-hero .lead { margin: 18px 0 0; max-width: 640px; font-size: 1.15rem; line-height: 1.5; color: #cfe6e2; opacity: 1; }
.stat-band { display: flex; flex-wrap: wrap; gap: 18px 0; margin-top: 36px; }
.stat-band > div { background: none; border: 0; border-radius: 0; padding: 4px 24px; border-left: 1px solid rgba(255,255,255,.25); flex: 1 1 120px; max-width: 300px; }
.stat-band > div:first-child { padding-left: 0; border-left: 0; }
.stat-band strong { font-family: var(--display); font-weight: 800; font-size: 2.6rem; letter-spacing: -.02em; }
.stat-band span { font-size: .95rem; color: #cfe6e2; opacity: 1; }

/* About */
.about-story h2 { font-size: 2rem; }
.about-story p { color: #41504e; font-size: 1.15rem; line-height: 1.6; }
.disclaimer {
  background: none; border-left: 3px solid #f5a524; border-radius: 0; padding: 4px 0 4px 22px;
  font-family: var(--display); font-weight: 600; font-size: 1.3rem; line-height: 1.35; color: var(--text);
}
.trust-grid { display: flex; flex-direction: column; gap: 0; }
.trust-item { background: none; border: 0; border-radius: 0; padding: 18px 0; border-top: 1px solid var(--border); }
.trust-item:first-child { border-top: 0; }
.trust-item .icon { width: auto; height: auto; border-radius: 0; background: none; display: block; margin-bottom: 8px; color: var(--primary); }
.trust-item .icon svg { width: 28px; height: 28px; }
.trust-item h3 { font-size: 1.2rem; }
.how-grid { gap: 40px; }
.how-grid > .card { background: none; border: 0; border-radius: 0; box-shadow: none; }
.how-grid > .card.card-body { padding: 0; }
.how-head { font-size: 1.5rem; }
.steps-list { gap: 0; margin: 12px 0 20px; }
.steps-list li { padding: 18px 0; border-top: 1px solid var(--border); gap: 18px; }
.steps-list .num { background: none; border-radius: 0; width: 28px; height: auto; display: block; font-family: var(--display); font-weight: 800; font-size: 1.8rem; line-height: 1; color: #f5a524; }
.steps-list strong { font-size: 1.1rem; }
.steps-list p { font-size: 1rem; line-height: 1.55; }
.cta { background: #0b4a45; border-radius: 24px; padding: 34px 26px; }
.cta h2 { font-family: var(--display); font-size: 1.8rem; letter-spacing: -.02em; }
.cta p { opacity: 1; color: #cfe6e2; }
.cta .btn { background: #f5a524; color: #1c2b2a; border-radius: 14px; padding: 14px 28px; font-weight: 700; }

/* Contact: three ways to reach us sit in the header, separated by lines */
.page-hero .contact-cards { display: flex; flex-wrap: wrap; gap: 18px 0; margin: 34px 0 0; }
.page-hero .contact-card-link {
  flex: 1 1 250px; max-width: 380px; background: none; border: 0; border-radius: 0; box-shadow: none; transform: none;
  padding: 14px 0; color: #fff; border-top: 1px solid rgba(255,255,255,.22);
}
.page-hero .contact-card-link:first-child { padding-top: 6px; border-top: 0; }
.page-hero .contact-card-link:hover { transform: none; box-shadow: none; text-decoration: underline; }
.page-hero .cc-icon, .page-hero .contact-card-link.wa .cc-icon { background: none; width: auto; height: auto; color: #f5a524; border-radius: 0; }
.page-hero .contact-card-link strong { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #9fd0c9; }
.page-hero .contact-card-link .small { font-size: 1.15rem; font-weight: 600; color: #fff; }
.contact-section { padding-top: 40px; }
.contact-grid { gap: 48px; margin-top: 8px; }
.contact-grid > .card { background: none; border: 0; border-radius: 0; box-shadow: none; }
.contact-grid > .card.card-body { padding: 0; }
.contact-grid h2 { font-size: 1.8rem; }
#contact-form label { font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-muted); }
#contact-form input, #contact-form select, #contact-form textarea {
  border: 0; border-bottom: 1px solid #cfcabb; border-radius: 0; background: transparent; padding: 10px 0;
}
#contact-form input:focus, #contact-form select:focus, #contact-form textarea:focus { border-bottom-color: var(--primary); box-shadow: 0 1px 0 var(--primary); }
.faq { gap: 0; margin: 12px 0 28px; border-bottom: 1px solid var(--border); }
.faq details { background: none; border: 0; border-top: 1px solid var(--border); border-radius: 0; padding: 0; }
.faq summary { padding: 17px 0; font-size: 1.05rem; line-height: 1.35; }
.faq details p { font-size: 1rem; line-height: 1.6; }
.broker-box { background: none; border-radius: 0; border-left: 3px solid #f5a524; padding: 4px 0 4px 20px; }

/* ---------- Listings page ---------- */
.listings-hero { background: #0b4a45; color: #fff; padding: 22px 0 26px; }
.listings-hero h1 { margin: 0 0 16px; color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.08; letter-spacing: -.025em; }
.listings-hero .search-box { box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.search-layout { padding: 28px 0 56px; gap: 28px; }
.filters { background: none; border: 0; border-radius: 0; padding: 0; }
.filters h2 { font-size: 1.4rem; margin: 0; padding-bottom: 10px; border-bottom: 2px solid var(--text); }
.filters .field { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--border); }
.filters .field > label:not(.checkbox), .filters .field > .label { font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-muted); }
.filters select, .filters input[type=number] { border: 0; border-bottom: 1px solid #cfcabb; border-radius: 0; background: transparent; padding: 8px 0; }
.filters select:focus, .filters input[type=number]:focus { border-bottom-color: var(--primary); box-shadow: 0 1px 0 var(--primary); }
.filters > form > .row { margin-top: 20px; }
.filters-toggle { border-radius: 999px; font-weight: 700; }
.results-bar { padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 26px; }
.results-bar strong { font-size: 1.1rem; }
#sort { border: 0; border-bottom: 1px solid #cfcabb; border-radius: 0; background: transparent; padding: 6px 0; font-weight: 600; }
.view-toggle { border: 0; border-radius: 0; display: inline-flex; gap: 20px; overflow: visible; }
.view-toggle button { background: none; padding: 6px 0; border: 0; border-bottom: 2px solid transparent; font-weight: 700; color: var(--text-muted); }
.view-toggle button[aria-pressed="true"] { background: none; color: var(--primary); border-bottom-color: var(--primary); }
.empty { background: none; border-color: #cfcabb; }

/* Listing cards */
.grid { gap: 32px 14px; }
.listing-card .thumb { border-radius: 14px; }
.listing-card .price { font-family: var(--display); font-size: 1.35rem; letter-spacing: -.01em; }
.listing-card .title { font-family: var(--font); }

/* ---------- Listing page ---------- */
.detail-layout { padding: 20px 0 48px; gap: 36px; }
.gallery { border-radius: 18px; }
.thumbs button { border-radius: 10px; flex: 0 0 92px; height: 68px; }
.detail-top { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.detail-actions { gap: 4px 18px; }
.detail-actions .btn-link { color: var(--text); font-weight: 600; gap: 7px; min-height: 36px; }
.detail-actions .btn-link:hover { color: var(--primary); }
.detail-title { margin: 14px 0 10px; font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.1; letter-spacing: -.025em; }
.detail-loc { display: flex; gap: 8px; align-items: flex-start; margin: 0; color: #4a5856; font-size: 1.05rem; }
.detail-loc svg { width: 20px; height: 20px; margin-top: 2px; flex: none; color: var(--primary); }
.detail-loc strong { color: var(--text); }
.detail-price { margin: 16px 0 0; font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1; letter-spacing: -.02em; color: #0b4a45; }
.detail-price small, .cc-price small { font-family: var(--font); font-size: 1rem; font-weight: 500; color: var(--text-muted); margin-left: 4px; }
.detail-meta { margin-top: 20px; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; }
.detail-meta .stats-line.lg { margin: 0; }
.availability-note { display: flex; gap: 7px; align-items: center; background: none; padding: 0; margin: 0; color: #166534; font-weight: 600; font-size: .93rem; }
.detail-main h2 { margin: 40px 0 4px; font-size: 1.65rem; letter-spacing: -.01em; }
.detail-main .detail-rules-h { margin: 26px 0 4px; font-size: 1.2rem; }
.detail-desc { margin: 12px 0 0; white-space: pre-line; font-size: 1.05rem; line-height: 1.7; color: #33413f; max-width: 720px; overflow-wrap: anywhere; }
.specs { display: grid; grid-template-columns: 1fr; column-gap: 56px; }
.spec { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); background: none; border-radius: 0; }
.spec .k { color: var(--text-muted); }
.spec .v { font-weight: 700; text-align: right; }
.amenities { grid-template-columns: 1fr; gap: 0 56px; }
.amenities li { padding: 13px 0; border-bottom: 1px solid var(--border); font-size: 1rem; gap: 12px; align-items: center; }
.amenities li svg { width: 20px; height: 20px; }
.small-map { border-radius: 16px; border: 0; height: 260px; }
.detail-report { margin: 26px 0 0; }
.detail-report .btn-link { text-decoration: underline; }

/* Contact column: text on the page, a thin line beside it (no box) */
.detail-aside .contact-card { border-top: 1px solid var(--border); padding: 20px 0 0; }
.cc-label { font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-muted); }
.cc-price { margin-top: 6px; font-family: var(--display); font-weight: 800; font-size: 2.4rem; line-height: 1; letter-spacing: -.02em; color: #0b4a45; }
.cc-deposit { display: flex; justify-content: space-between; margin-top: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--border); font-size: .95rem; color: var(--text-muted); }
.cc-deposit strong { color: var(--text); }
.cc-poster { padding: 18px 0; border-bottom: 1px solid var(--border); }
.cc-poster .poster { margin: 0; }
.cc-actions { display: flex; flex-direction: column; gap: 12px; padding-top: 22px; }
.cc-actions .btn { min-height: 54px; border-radius: 14px; font-size: 1.05rem; }
.cc-actions .btn-outline { border-color: var(--primary); color: var(--primary); }
.cc-tip { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--border); font-size: .88rem; line-height: 1.55; color: var(--text-muted); }
.mobile-contact-bar .btn { min-height: 48px; border-radius: 12px; }
.mobile-contact-bar .btn-outline { border-color: var(--primary); color: var(--primary); }

/* Legal and plain pages */
.prose h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -.025em; }
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; }
.profile-head { border-bottom: 1px solid var(--border); }
.contact-section p.center { text-align: left; margin: 0 0 22px !important; }
.filters { scrollbar-width: thin; }

/* Gallery: the whole photo is always visible; a soft blurred copy of it fills the frame (no dark bars) */
.gallery-track .slide {
  position: relative; flex: 0 0 100%; aspect-ratio: 4 / 3; max-height: min(70vh, 560px); overflow: hidden;
  scroll-snap-align: start; background: #dfe9e6;
}
.gallery-track .slide::before {
  content: ""; position: absolute; inset: -30px; background: var(--bg) center / cover no-repeat;
  filter: blur(26px) saturate(1.1); transform: scale(1.1);
}
.gallery-track .slide img {
  position: relative; display: block; flex: none; width: 100%; height: 100%; max-height: none; aspect-ratio: auto;
  object-fit: contain; background: none; cursor: zoom-in;
}
.gallery { background: #dfe9e6; }

/* Phone: Call and Inquiry float at the bottom right, always on top while scrolling */
@media (max-width: 899px) {
  .mobile-contact-bar {
    left: auto; right: 14px; bottom: 16px; width: auto; padding: 0; background: none; border: 0; box-shadow: none;
    display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 10px;
  }
  .mobile-contact-bar .btn { min-height: 52px; padding: 0 22px; border-radius: 999px; font-size: 1rem; box-shadow: 0 8px 22px rgba(0,0,0,.28); }
  .mobile-contact-bar .btn-outline { background: #fff; }
  .has-contact-bar { padding-bottom: 150px; }
}

/* Maps: keep Leaflet's own layers (z-index up to 1000, incl. the + / - buttons) inside the map, so they never draw over the sticky header (500) */
.leaflet-container { isolation: isolate; }
