/* ============================================================
   Smart Property Widget — main stylesheet
   Palette: gold #C9A227 · green #1E5B3C · ink #232220
   ============================================================ */
:root {
  --gold: #C9A227;
  --gold-dark: #B08D1E;
  --gold-soft: #F7F1DD;
  --green: #1E5B3C;
  --green-soft: #E8F1EC;
  --price: #16A34A;
  --red: #E23B4E;
  --purple: #7C3AED;
  --ink: #232220;
  --muted: #75726A;
  --line: #ECE9E2;
  --bg: #FFFFFF;
  --bg-soft: #FAF9F6;
  --dark: #22211F;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(35, 34, 32, .08);
  --shadow-sm: 0 2px 10px rgba(35, 34, 32, .07);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
.hidden { display: none !important; }
.center { text-align: center; }
.muted { color: var(--muted); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 22px; }
.skip { position: absolute; left: -9999px; }
.ic { width: 1.1em; height: 1.1em; fill: currentColor; vertical-align: -0.18em; }
.ic.chev { width: .95em; height: .95em; }
.ic.gold { color: var(--gold); }
.ic.ok { color: #16A34A; width: .95em; }

/* buttons */
.btn-gold, .btn-white, .btn-red, .btn-green, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 9px; font-weight: 600; font-size: 14px;
  border: 1px solid transparent; transition: .18s; white-space: nowrap;
}
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-dark); }
.btn-white { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-white:hover { border-color: var(--gold); color: var(--gold-dark); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #c9303f; }
.btn-green { background: #14663B; color: #fff; }
.btn-green:hover { background: #0f5230; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); }
.full { width: 100%; }
.big { padding: 14px 30px; font-size: 15px; }

/* ── header ── */
.site-header { position: sticky; top: 0; z-index: 900; background: #fff; box-shadow: 0 1px 0 var(--line); }
.topbar { border-bottom: 1px solid var(--line); font-size: 13px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 36px; }
.topbar-contacts { display: flex; gap: 22px; }
.topbar-contacts a { display: inline-flex; gap: 7px; align-items: center; color: var(--muted); font-weight: 500; }
.topbar-contacts a:hover { color: var(--gold-dark); }
.topbar-contacts .ic { color: var(--gold); }
.currency-select { position: relative; }
.currency-btn { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; padding: 6px 2px; }
.currency-btn .ic { color: var(--gold); }
.currency-menu {
  position: absolute; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow); min-width: 130px; padding: 6px; display: none; z-index: 50;
}
.currency-select.open .currency-menu { display: block; }
.currency-menu button { width: 100%; text-align: left; padding: 7px 10px; border-radius: 7px; font-weight: 600; }
.currency-menu button:hover { background: var(--bg-soft); }
.currency-menu button.active { color: var(--gold-dark); background: var(--gold-soft); }

.mainnav { background: #fff; }
.mainnav-in { display: flex; align-items: center; gap: 26px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.spw-logo-mark { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; text-transform: uppercase; }
.brand-text b { color: var(--gold); font-size: 19px; font-weight: 800; letter-spacing: .5px; }
.brand-text i { color: var(--green); font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: 1.6px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links > a, .nav-drop-btn {
  padding: 9px 13px; border-radius: 8px; font-weight: 600; font-size: 14.5px; color: #33322F;
  display: inline-flex; align-items: center; gap: 4px;
}
.nav-links > a:hover, .nav-drop-btn:hover { color: var(--gold-dark); background: var(--bg-soft); }
.nav-links > a.active { color: var(--gold-dark); }
.nav-drop { position: relative; }
.nav-drop-menu {
  position: absolute; top: calc(100% + 6px); left: 0; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow); min-width: 190px; padding: 6px; display: none; z-index: 60;
}
.nav-drop.open .nav-drop-menu { display: block; }
.nav-drop-menu a { display: block; padding: 8px 12px; border-radius: 7px; font-weight: 600; font-size: 14px; }
.nav-drop-menu a:hover { background: var(--bg-soft); color: var(--gold-dark); }
.nav-drop-menu .sep { height: 1px; background: var(--line); margin: 5px 4px; }
.nav-heart { position: relative; }
.nav-heart .ic { color: var(--red); width: 1.35em; height: 1.35em; }
.heart-count {
  position: absolute; top: -4px; right: -6px; background: var(--red); color: #fff; font-size: 10.5px;
  font-weight: 700; min-width: 17px; height: 17px; border-radius: 9px; display: inline-flex;
  align-items: center; justify-content: center; padding: 0 4px;
}
.lang-flags { display: flex; gap: 6px; margin-left: 8px; }
.flag { width: 26px; height: 18px; border-radius: 3px; overflow: hidden; border: 1px solid var(--line); opacity: .55; padding: 0; }
.flag svg { width: 100%; height: 100%; display: block; }
.flag.on, .flag:hover { opacity: 1; outline: 2px solid var(--gold); outline-offset: 1px; }
.nav-burger { display: none; margin-left: auto; flex-direction: column; gap: 4px; padding: 8px; }
.nav-burger span { width: 22px; height: 2.5px; background: var(--ink); border-radius: 2px; }

/* ── hero ── */
.hero {
  position: relative; background-size: cover; background-position: center;
  padding: 64px 0 0; margin-bottom: -150px;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,14,12,.55), rgba(10,14,12,.28) 55%, rgba(10,14,12,.55)); }
.hero-in { position: relative; padding-bottom: 210px; }
.hero-title { color: #fff; font-size: clamp(28px, 4.4vw, 46px); font-weight: 800; line-height: 1.12; letter-spacing: -.5px; }
.hero-title .gold { color: #E4C65B; }
.hero-sub { color: #EDEAE2; font-weight: 600; margin: 12px 0 34px; letter-spacing: .2px; }

/* ── home sections ── */
.section { padding: 60px 0; }
.section.alt { background: var(--bg-soft); }
.section-title { text-align: center; font-size: clamp(20px, 2.6vw, 28px); font-weight: 800; letter-spacing: .3px; }
.gold-title { color: var(--gold); }
.section-sub { text-align: center; color: var(--muted); max-width: 640px; margin: 10px auto 0; }
.home-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 34px; }
.home-card { border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); transition: .2s; }
.home-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.hc-media { position: relative; aspect-ratio: 16/10.5; background: #ddd; }
.hc-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: 0; transition: opacity .3s; }
.hc-media img:first-child, .hc-media img.on { opacity: 1; position: relative; }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 3; padding: 5px 10px; border-radius: 6px;
  color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .5px;
}
.badge.b-resale { background: var(--gold); }
.badge.b-new { background: var(--purple); }
.heart {
  position: absolute; top: 12px; right: 12px; z-index: 3; width: 36px; height: 36px; border-radius: 50%;
  background: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm);
  transition: .15s;
}
.heart .ic { color: #B9B5AC; width: 1.25em; height: 1.25em; transition: .15s; }
.heart:hover .ic { color: var(--red); }
.heart.active .ic { color: var(--red); fill: var(--red); }
.photo-count {
  position: absolute; right: 12px; bottom: 12px; z-index: 3; background: rgba(20,20,18,.72); color: #fff;
  font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 7px; display: inline-flex; gap: 6px; align-items: center;
}
.hc-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; z-index: 3; }
.hc-dots .dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; }
.hc-dots .dot.on { background: #fff; }
.hc-caption { padding: 15px 18px 17px; background: var(--dark); color: #fff; }
.hc-title { font-weight: 700; font-size: 15.5px; display: block; }
.hc-title:hover { color: #E4C65B; }
.hc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 9px; color: #C9C6BE; font-size: 13px; }
.hc-meta .ic { color: #8F8C83; }
.hc-price { margin-left: auto; color: var(--gold); font-size: 15.5px; font-weight: 800; }

.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
.feat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: .2s; }
.feat-card:hover { box-shadow: var(--shadow-sm); border-color: #E2D9BE; }
.feat-ic {
  width: 46px; height: 46px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-dark);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.feat-ic .ic { width: 1.5em; height: 1.5em; }
.feat-card h3 { font-size: 16px; margin-bottom: 6px; }
.feat-card p { color: var(--muted); font-size: 13.5px; }
.cta-band { background-size: cover; background-position: center; position: relative; padding: 74px 0; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: rgba(15,18,16,.62); }
.cta-in { position: relative; text-align: center; color: #fff; }
.cta-in h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 800; }
.cta-in p { margin: 10px 0 24px; color: #D8D5CD; }

/* ── banner ── */
.banner {
  background-size: cover; background-position: center 65%; position: relative;
  min-height: 210px; display: flex; align-items: center; justify-content: center;
}
.banner::before { content: ""; position: absolute; inset: 0; background: rgba(12,15,13,.34); }
.banner h1 { position: relative; color: #fff; font-size: clamp(24px, 3.4vw, 36px); font-weight: 800; letter-spacing: 1px; text-transform: uppercase; text-shadow: 0 2px 14px rgba(0,0,0,.4); }

/* ── search widget ── */
.spw-search { position: relative; z-index: 5; }
.spw-search.in-hero { margin-top: 0; }
.ss-inner {
  background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 16px;
  border: 1px solid rgba(255,255,255,.6);
}
.ss-row { display: flex; gap: 10px; flex-wrap: wrap; }
.ss-row1 { align-items: stretch; }
.ss-row2 { margin-top: 10px; }
.ss-field { position: relative; flex: 1 1 130px; min-width: 120px; }
.ss-field input, .ss-field select {
  width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 9px; padding: 0 12px;
  font: inherit; color: var(--ink); background: #fff; outline: none; transition: border .15s;
  appearance: none; -webkit-appearance: none;
}
.ss-field select { background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='m7 10 5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; padding-right: 32px; }
.ss-field input:focus, .ss-field select:focus { border-color: var(--gold); }
.ss-field ::placeholder { color: #A8A49B; }
.ss-actions1 { display: flex; align-items: stretch; gap: 10px; flex: 0 0 auto; }
.ss-actions2 { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.ss-search-btn { height: 46px; min-width: 150px; border-radius: 9px; }
.ai-badge {
  width: 46px; height: 46px; border-radius: 50%; background: var(--green); color: #fff;
  font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 4px rgba(30,91,60,.14); transition: .15s; flex: 0 0 auto;
}
.ai-badge:hover { transform: scale(1.06); }
.ai-badge.on { background: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,39,.22); }
.ss-types-btn {
  width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 9px; padding: 0 32px 0 12px;
  display: inline-flex; align-items: center; justify-content: space-between; background: #fff; color: #A8A49B;
  font-weight: 500;
}
.ss-types-btn.has { color: var(--ink); border-color: var(--gold); background: var(--gold-soft); }
.ss-types-btn .chev { color: #999; }
.ss-types-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px; max-height: 320px; overflow: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow);
  padding: 8px; z-index: 40; display: none;
}
.ss-types-menu.open { display: block; }
.ss-type-item { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 7px; cursor: pointer; font-size: 14px; }
.ss-type-item:hover { background: var(--bg-soft); }
.ss-type-item input { display: none; }
.ss-type-item .box { width: 16px; height: 16px; border: 1.5px solid #C9C5BB; border-radius: 4px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; }
.ss-type-item.checked .box { background: var(--green); border-color: var(--green); }
.ss-type-item.checked .box::after { content: ""; width: 8px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translateY(-1px); }
.ss-features-btn { height: 46px; border-radius: 9px; }
.ss-reset {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  display: inline-flex; align-items: center; justify-content: center; color: var(--muted); transition: .2s;
}
.ss-reset:hover { color: var(--gold-dark); border-color: var(--gold); transform: rotate(180deg); }

/* AI mode */
.ss-ai { padding: 4px 2px; }
.ss-ai-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.ss-ai-back { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14.5px; }
.ss-ai-map { color: var(--gold-dark); font-weight: 700; font-size: 13.5px; }
.ss-ai textarea {
  width: 100%; border: 1.5px solid var(--gold); border-radius: 10px; padding: 12px 14px; font: inherit;
  resize: vertical; min-height: 84px; outline: none; background: #FFFDF6;
}
.ss-ai-actions { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.ss-ai-chips { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.chip {
  border: 1px solid var(--line); background: var(--bg-soft); padding: 7px 13px; border-radius: 999px;
  font-size: 13px; color: #55534C; transition: .15s;
}
.chip:hover { border-color: var(--gold); color: var(--gold-dark); background: var(--gold-soft); }

/* template skins */
.t03 .ss-inner, .t04 .ss-inner { background: #23282E; border-color: #3A4048; }
.t03 .ss-field input, .t03 .ss-field select, .t03 .ss-types-btn,
.t04 .ss-field input, .t04 .ss-field select, .t04 .ss-types-btn {
  background-color: #fff; border-color: #fff;
}
.t03 .ss-types-menu, .t04 .ss-types-menu { background: #fff; }
.t03 .ss-reset, .t04 .ss-reset { background: transparent; border-color: #565D66; color: #C9C6BE; }
.t03 .ss-features-btn, .t04 .ss-features-btn { background: transparent; color: #EDEAE2; border-color: #565D66; }
.t04 { --gold: #E4C65B; }
.t02 .ss-inner { border: 2px solid var(--gold); }
.t02 .ss-field input, .t02 .ss-field select, .t02 .ss-types-btn { border-radius: 3px; }
.t05 .ss-inner { background: #FBF7EC; border-color: #EFE6CE; }
.t05 .ss-field input, .t05 .ss-field select, .t05 .ss-types-btn { background: #fff; }
.t06 .ss-inner { padding: 10px; border-radius: 10px; }
.t06 .ss-field input, .t06 .ss-field select, .t06 .ss-types-btn, .t06 .ss-search-btn { height: 40px; }
.t06 .ss-search-btn { min-width: 120px; }

/* ── listing ── */
.listing-wrap { padding: 26px 22px 60px; }
.listing-wrap > .spw-search { margin-bottom: 22px; }
.ai-results-bar {
  display: flex; gap: 12px; align-items: center; background: linear-gradient(90deg, var(--green-soft), #fff);
  border: 1px solid #D7E6DD; padding: 13px 16px; border-radius: 12px; margin: 18px 0;
}
.ai-dot { width: 10px; height: 10px; background: var(--green); border-radius: 50%; flex: 0 0 auto; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.ai-results-bar small { display: block; color: var(--muted); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 8px 0 18px; flex-wrap: wrap; }
.toolbar-count { font-weight: 700; font-size: 15.5px; }
.toolbar-right { display: flex; align-items: center; gap: 10px; }
.sort-label { color: var(--muted); font-size: 13.5px; }
.toolbar-right select { height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 0 30px 0 12px; background: #fff; font: inherit; outline: none; appearance: none; background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='m7 10 5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 15px; }
.view-toggle { display: flex; gap: 6px; }
.view-toggle button {
  width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
  display: inline-flex; align-items: center; justify-content: center; color: #8B887F;
}
.view-toggle button.active { background: var(--gold); border-color: var(--gold); color: #fff; }

.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  transition: .18s; display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-media { position: relative; aspect-ratio: 4/3; background: #E5E2DB; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: 0; transition: opacity .25s; }
.card-media img.on { opacity: 1; }
.card-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 30px; height: 30px;
  border-radius: 50%; background: rgba(255,255,255,.92); display: none; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); color: #33322F;
}
.card-arrow.prev { left: 8px; } .card-arrow.next { right: 8px; }
.card:hover .card-arrow { display: inline-flex; }
.card-arrow:hover { background: #fff; }
.card-count { position: absolute; right: 10px; bottom: 10px; z-index: 4; background: rgba(20,20,18,.72); color: #fff; font-size: 11.5px; padding: 3px 8px; border-radius: 6px; display: inline-flex; gap: 5px; align-items: center; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card-loc { font-weight: 800; font-size: 15.5px; }
.card-type { color: var(--muted); font-size: 13px; margin-top: -4px; }
.card-desc { color: #6B6960; font-size: 12.8px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-specs { display: flex; flex-wrap: wrap; gap: 12px; color: #55534C; font-size: 12.8px; font-weight: 600; }
.card-specs .ic { color: #A8A49B; }
.card-price { font-weight: 800; font-size: 16.5px; color: var(--ink); margin-top: auto; padding-top: 4px; }
.card-price.green { color: var(--price); }
.card .heart { width: 32px; height: 32px; }
.card .heart .ic { width: 1.1em; }

/* list view */
.cards-list { display: flex; flex-direction: column; gap: 16px; }
.card.row { flex-direction: row; }
.card.row .card-media { aspect-ratio: auto; width: 320px; min-height: 210px; flex: 0 0 320px; }
.card.row .card-body { padding: 18px 20px; }
.card.row .card-desc { -webkit-line-clamp: 3; }

.no-results { text-align: center; padding: 60px 0 30px; }
.no-results h3 { font-size: 19px; margin-bottom: 8px; }
.no-results p { color: var(--muted); margin-bottom: 18px; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 7px; margin-top: 34px; flex-wrap: wrap; }
.pagination button {
  min-width: 38px; height: 38px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; font-weight: 600; color: #55534C;
}
.pagination button:hover { border-color: var(--gold); color: var(--gold-dark); }
.pagination button.on { background: var(--gold); border-color: var(--gold); color: #fff; }
.pagination button:disabled { opacity: .45; cursor: default; }
.page-of { text-align: center; color: var(--muted); font-size: 13px; margin-top: 12px; }

/* ── map ── */
.map-wrap { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.the-map { height: 560px; z-index: 1; background: #E8ECEF; }
.leaflet-container { font: inherit; }
.map-chip {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 500;
  background: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 13px;
  box-shadow: var(--shadow);
}
.map-reset { position: absolute; bottom: 52px; left: 50%; transform: translateX(-50%); z-index: 500; border-radius: 999px; }
.price-bubble {
  background: var(--gold); color: #fff; font-weight: 800; font-size: 11.5px; padding: 4px 9px;
  border-radius: 999px; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25); white-space: nowrap;
}
.cluster-bubble {
  background: var(--green); color: #fff; font-weight: 800; border-radius: 999px; border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.25); display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; line-height: 1.15;
}
.cluster-bubble small { font-size: 9.5px; opacity: .85; font-weight: 600; }
.map-popup { width: 230px; font-family: inherit; }
.map-popup img { width: 100%; height: 120px; object-fit: cover; border-radius: 8px; }
.map-popup .mp-title { font-weight: 700; font-size: 13px; margin-top: 8px; line-height: 1.3; }
.map-popup .mp-specs { color: var(--muted); font-size: 12px; margin-top: 3px; }
.map-popup .mp-price { color: var(--price); font-weight: 800; margin-top: 4px; }

/* ── detail page ── */
.detail-wrap { padding: 26px 22px 70px; }
.gallery { margin-bottom: 20px; }
.gal-main { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9.5; background: #E5E2DB; }
.gal-main img { width: 100%; height: 100%; object-fit: cover; }
.gal-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.92); display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); z-index: 4; color: #33322F;
}
.gal-arrow:hover { background: #fff; }
.gal-arrow.prev { left: 14px; } .gal-arrow.next { right: 14px; }
.big-heart { width: 44px; height: 44px; }
.gal-counter {
  position: absolute; right: 14px; bottom: 12px; background: rgba(20,20,18,.72); color: #fff;
  font-size: 12.5px; padding: 4px 10px; border-radius: 7px; z-index: 4;
}
.gal-thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(90px, 1fr); gap: 9px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.gal-thumb { border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; opacity: .8; border: 2px solid transparent; padding: 0; }
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gal-thumb.on { border-color: var(--gold); opacity: 1; }
.detail-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; margin: 6px 0 20px; }
.detail-title { font-size: clamp(20px, 2.6vw, 27px); font-weight: 800; letter-spacing: -.3px; }
.loc-chip {
  display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: 14px;
  margin-top: 7px;
}
.loc-chip .ic { color: var(--gold); }
.detail-price { font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; color: var(--gold); white-space: nowrap; }
.detail-cols { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.panel-title { font-size: 16.5px; font-weight: 800; margin-bottom: 14px; }
.info-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.info-table td { border: 1px solid var(--line); padding: 9px 13px; color: var(--muted); width: 25%; }
.info-table td b { color: var(--ink); }
.info-table .info-last td { background: var(--bg-soft); border-bottom: 0; }
.info-table .info-last td:nth-child(3) { border-right: 0; }
.desc { color: #55534C; font-size: 14.5px; line-height: 1.75; }
.energy-panel svg { max-width: 320px; width: 100%; margin: 0 auto; display: block; }
.detail-map { height: 300px; border-radius: 10px; z-index: 1; }
.map-links { margin-top: 12px; display: flex; }
.share-panel { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.share-row { display: flex; gap: 10px; }
.share-ic {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex;
  align-items: center; justify-content: center; color: #55534C; transition: .15s;
}
.share-ic:hover { border-color: var(--gold); color: var(--gold-dark); transform: translateY(-2px); }
.share-ic.wa:hover { color: #25D366; }
.share-ic.fb:hover { color: #1877F2; }
.share-ic.tw:hover { color: #0f1419; }
.cookie-btn { font-size: 12.5px; color: var(--muted); border: 0; padding: 2px 0; }
.detail-side { position: sticky; top: 130px; display: flex; flex-direction: column; gap: 12px; }
.side-btn { width: 100%; padding: 13px 18px; }
.side-count { margin-left: auto; background: rgba(255,255,255,.22); border-radius: 999px; padding: 1px 9px; font-size: 12px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.contact-card h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 14px; }
.ff { margin-bottom: 12px; }
.ff label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 5px; color: #55534C; }
.ff input, .ff textarea, .ff select {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: inherit; outline: none;
  background: #fff; transition: border .15s;
}
.ff input:focus, .ff textarea:focus { border-color: var(--gold); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.two-col .ff { margin-bottom: 12px; }
.phone-row { display: flex; align-items: stretch; gap: 0; }
.phone-flag { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-right: 0; border-radius: 8px 0 0 8px; padding: 0 10px; font-size: 13px; background: var(--bg-soft); white-space: nowrap; }
.phone-row input { border-radius: 0 8px 8px 0; }

/* energy gauge */
.energy-gauge { text-align: center; }

/* ── modals / lightbox ── */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(20, 20, 18, .55); z-index: 1000; display: flex;
  align-items: center; justify-content: center; padding: 22px; backdrop-filter: blur(2px);
}
.modal {
  background: #fff; border-radius: 16px; width: 100%; max-width: 560px; max-height: 88vh; display: flex;
  flex-direction: column; box-shadow: 0 24px 80px rgba(0,0,0,.3); animation: pop .18s ease;
}
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 12px; }
.modal-head h3 { font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.feat-total { background: var(--gold-soft); color: var(--gold-dark); border-radius: 999px; padding: 1px 10px; font-size: 12.5px; }
.modal-x { font-size: 26px; color: #A8A49B; line-height: 1; }
.modal-x:hover { color: var(--ink); }
.modal-body { padding: 6px 22px 18px; overflow: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px 18px; border-top: 1px solid var(--line); }
.features-modal { max-width: 620px; }
#featSearch, .modal input[type="text"], .modal input[type="email"], .modal input[type="number"], .modal textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: inherit; outline: none;
}
#featSearch { margin-bottom: 14px; }
#featSearch:focus, .modal input:focus, .modal textarea:focus { border-color: var(--gold); }
.feat-cats { max-height: 46vh; overflow: auto; }
.feat-cat { margin-bottom: 14px; }
.feat-cat h4 {
  font-size: 12.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted);
  padding-bottom: 6px; border-bottom: 2px solid var(--gold-soft); margin-bottom: 9px;
}
.feat-items { display: flex; flex-wrap: wrap; gap: 8px; }
.feat-chip {
  display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 11px; font-size: 13.5px; cursor: pointer; transition: .12s; background: #fff; user-select: none;
}
.feat-chip:hover { border-color: var(--gold); }
.feat-chip.sel { background: var(--green-soft); border-color: var(--green); color: var(--green); font-weight: 600; }
.pfeat-cat { margin-bottom: 16px; }
.pfeat-cat h4 { font-size: 13px; color: #55534C; padding-bottom: 6px; border-bottom: 2px solid var(--gold-soft); margin-bottom: 9px; }
.pfeat-items { display: flex; flex-wrap: wrap; gap: 8px; }
.pfeat-chip {
  display: inline-flex; align-items: center; gap: 6px; background: #F4F3EF; border-radius: 7px;
  padding: 6px 11px; font-size: 13px; font-weight: 600; color: #55534C;
}
/* features & views panel (property detail page) */
.feat-show { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 28px; }
.feat-show .pfeat-cat { break-inside: avoid; }
@media (max-width: 760px) { .feat-show { grid-template-columns: 1fr; } }
.mortgage-modal { max-width: 480px; }
.pct input { max-width: 86px; }
.mg-result { margin-top: 16px; background: var(--bg-soft); border-radius: 12px; padding: 16px; }
.mg-monthly-label { font-size: 11.5px; letter-spacing: 1px; color: var(--muted); font-weight: 700; }
.mg-monthly b { font-size: 30px; color: var(--gold); font-weight: 800; }
.mg-monthly span { color: var(--muted); font-size: 13px; }
.mg-rows { margin-top: 12px; border-top: 1px solid var(--line); }
.mg-rows > div { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.mg-rows span { color: var(--muted); }
.mg-note { font-size: 11.5px; color: var(--muted); margin-top: 10px; }

.lightbox {
  position: fixed; inset: 0; background: rgba(10,10,9,.94); z-index: 1200; display: flex;
  align-items: center; justify-content: center;
}
.lightbox img { max-width: 88vw; max-height: 84vh; object-fit: contain; border-radius: 8px; }
.lb-x { position: absolute; top: 18px; right: 26px; color: #fff; font-size: 40px; }
.lb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; display: inline-flex; align-items: center; justify-content: center;
}
.lb-arrow:hover { background: rgba(255,255,255,.26); }
.lb-arrow.prev { left: 20px; } .lb-arrow.next { right: 20px; }
.lb-counter { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: #C9C6BE; font-size: 14px; }

/* ── wishlist ── */
.wishlist-wrap { padding: 40px 22px 90px; }
.wl-title { font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
.wl-sub { color: var(--muted); margin: 4px 0 20px; }
.wl-toolbar {
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--bg-soft); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px;
}
.wl-left, .wl-right { display: flex; gap: 10px; flex-wrap: wrap; }
.wl-sort { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 14px; color: var(--muted); }
.wl-sort select { border: 1px solid var(--line); border-radius: 8px; padding: 9px 30px 9px 12px; font: inherit; background: #fff; appearance: none; background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='m7 10 5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 15px; }
.wl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.wl-card-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; font-size: 12.5px; color: var(--muted); }
.wl-card-foot a { color: var(--gold-dark); font-weight: 700; }
.note-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); padding: 6px 11px; border-radius: 8px; font-size: 12.5px; font-weight: 600; margin-top: 10px; }
.note-btn:hover { border-color: var(--gold); color: var(--gold-dark); }
.note-input { margin-top: 10px; }
.compare-chip {
  position: absolute; left: 10px; bottom: 10px; z-index: 4; display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border-radius: 8px; padding: 6px 11px; font-size: 12.5px; font-weight: 700;
  box-shadow: var(--shadow-sm); cursor: pointer;
}
.compare-chip .cbox { width: 15px; height: 15px; border: 1.5px solid #C9C5BB; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; }
.compare-chip.sel .cbox { background: var(--green); border-color: var(--green); }
.compare-chip.sel .cbox::after { content: ""; width: 8px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translateY(-1px); }
.compare-fab {
  position: fixed; right: 26px; bottom: 26px; z-index: 800; background: var(--gold); color: #fff;
  border-radius: 999px; padding: 13px 22px; font-weight: 700; display: inline-flex; gap: 9px; align-items: center;
  box-shadow: 0 10px 30px rgba(201,162,39,.45); transition: .15s;
}
.compare-fab:hover { background: var(--gold-dark); transform: translateY(-2px); }
.wl-empty { padding: 60px 0 30px; }
.wl-empty-heart { margin: 0 auto 12px; width: 74px; height: 74px; border-radius: 50%; background: var(--gold-soft); display: flex; align-items: center; justify-content: center; }
.wl-empty-heart .ic { width: 2em; height: 2em; color: var(--gold); fill: var(--gold); }
.wl-empty h3 { font-size: 19px; margin-bottom: 6px; }
.wl-empty p { color: var(--muted); margin-bottom: 20px; }

.compare-modal { max-width: 920px; }
/* One grid, N property columns: every property owns one column — image on top,
   title/price and ALL attribute rows directly below it, perfectly aligned. */
.compare-grid { display: grid; grid-template-columns: repeat(var(--n, 2), 1fr); gap: 8px 14px; }
.cg-cell {
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: #FDFBEF;
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.cg-cell.cg-head { padding: 0; background: #fff; overflow: hidden; position: relative; border-radius: 12px; }
.cg-head img { width: 100%; height: 150px; object-fit: cover; display: block; }
.cg-title { display: block; font-weight: 700; font-size: 13.5px; line-height: 1.35; padding: 10px 12px 0; color: var(--ink); }
.cg-title:hover { color: var(--gold-dark); }
.cg-price { color: var(--price); font-weight: 800; padding: 2px 12px 12px; }
.cp-x { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: rgba(20,20,18,.7); color: #fff; font-size: 15px; z-index: 2; }
.cg-label { font-size: 10.5px; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.cg-val { font-weight: 600; font-size: 13.5px; }
.cg-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.cg-chip { background: var(--green-soft); color: var(--green); border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 600; }
.cg-none { color: #B9B5AC; }
@media (max-width: 720px) { .compare-grid { grid-template-columns: 1fr; } .cg-head img { height: 190px; } }

.share-modal { max-width: 500px; }
.share-link-row { display: flex; gap: 10px; margin: 12px 0 18px; }
.share-link-row input { flex: 1; }
.share-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.share-big {
  border: 1px solid var(--line); border-radius: 12px; padding: 16px 10px; display: flex; flex-direction: column;
  align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; transition: .15s;
}
.share-big:hover { border-color: var(--gold); background: var(--gold-soft); }
.share-big .ic { width: 1.7em; height: 1.7em; }
.qr-box { margin-top: 16px; text-align: center; }
.qr-box img { display: inline-block; border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: #fff; }
.email-modal { max-width: 460px; }

/* ── templates page ── */
.tpl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 30px; }
.tpl-card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; transition: .2s; }
.tpl-card:hover { box-shadow: var(--shadow); }
.tpl-preview { background: linear-gradient(180deg, #EDEAE2, #E1DDD3); padding: 26px 18px; position: relative; overflow: hidden; }
.tpl-scale { transform: scale(.72); transform-origin: top left; width: 139%; }
.tpl-scale .ss-inner { box-shadow: 0 10px 26px rgba(0,0,0,.14); }
.tpl-scale .ss-row2, .tpl-scale .ss-ai { display: none; }
.tpl-meta { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 20px; flex-wrap: wrap; }
.tpl-meta h3 { font-size: 15.5px; }
.tpl-meta p { color: var(--muted); font-size: 12.5px; margin-top: 2px; }

/* ── pricing ── */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 34px 0 46px; align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: 16px; padding: 26px; position: relative; background: #fff; display: flex; flex-direction: column; }
.plan.popular { border: 2px solid var(--gold); box-shadow: var(--shadow); }
.plan .pop {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: .8px; padding: 5px 14px; border-radius: 999px;
}
.plan h3 { font-size: 17px; }
.plan-price { font-size: 34px; font-weight: 800; margin: 10px 0 16px; }
.plan-price sup { font-size: 13px; color: var(--muted); font-weight: 600; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; flex: 1; }
.plan li { padding-left: 24px; position: relative; color: #55534C; font-size: 14px; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--price); font-weight: 800; }
.panel details.faq { border-bottom: 1px solid var(--line); padding: 14px 0; }
.panel details.faq summary { font-weight: 700; cursor: pointer; font-size: 15px; }
.panel details.faq p { color: var(--muted); margin-top: 8px; font-size: 14px; }
.docs-list { padding-left: 20px; display: flex; flex-direction: column; gap: 10px; color: #55534C; }
.docs-list code { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; font-size: 12.5px; }

/* ── footer ── */
.site-footer { background: var(--dark); color: #C9C6BE; margin-top: 40px; }
.footer-in { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 26px; padding: 46px 22px 30px; }
.footer-logo .brand-text b { color: #E4C65B; }
.footer-logo .brand-text i { color: #8FBFA3; }
.footer-mark { width: 46px; height: 46px; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.footer-col a { display: block; padding: 5px 0; color: #C9C6BE; font-size: 13.5px; }
.footer-col a:hover { color: #E4C65B; }
.footer-col.footer-contact a { display: flex; gap: 9px; align-items: center; }
.footer-col .ic { color: #E4C65B; }
.footer-copy { text-align: center; padding: 16px 22px 26px; border-top: 1px solid #35342F; font-size: 12.5px; color: #8F8C83; }

/* ── toasts ── */
.toasts { position: fixed; bottom: 24px; right: 24px; z-index: 1500; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: #fff; border-left: 4px solid var(--price); border-radius: 10px; padding: 13px 18px;
  box-shadow: var(--shadow); font-weight: 600; font-size: 14px; display: flex; gap: 10px; align-items: center;
  animation: slideIn .25s ease; max-width: 340px;
}
.toast.err { border-left-color: var(--red); }
.toast.info { border-left-color: var(--gold); }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } }
.toast.out { transition: .3s; opacity: 0; transform: translateX(30px); }

/* ── responsive ── */
@media (max-width: 1024px) {
  .cards-grid, .wl-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-cols { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .tpl-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-burger { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: stretch; padding: 12px 18px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-drop-menu { position: static; box-shadow: none; border: 0; display: block; padding-left: 14px; }
  .plans { grid-template-columns: 1fr; }
  .home-cards { grid-template-columns: 1fr; }
  .card.row { flex-direction: column; }
  .card.row .card-media { width: 100%; flex: auto; aspect-ratio: 4/3; }
  .topbar-contacts a span { display: none; }
}
@media (max-width: 620px) {
  .cards-grid, .wl-grid { grid-template-columns: 1fr; }
  .ss-row1 { flex-direction: column; }
  .ss-actions1 { justify-content: space-between; }
  .ss-search-btn { flex: 1; }
  .hero { padding-top: 34px; }
  .hero-in { padding-bottom: 240px; }
  .feat-grid { grid-template-columns: 1fr; }
  .share-actions { grid-template-columns: 1fr; }
  .footer-in { grid-template-columns: 1fr; }
  .detail-title-row { flex-direction: column; }
  .two-col { grid-template-columns: 1fr; }
  .hc-price { margin-left: 0; width: 100%; }
}
