:root {
  --ink: #111111;
  --ink-2: #2b2b2b;
  --muted: #6b6b6b;
  --line: #e6e3dc;
  --line-2: #d4d0c7;
  --soft: #f7f5f0;
  --bg: #ffffff;
  --gold: #c5a059;
  --gold-d: #a8843f;
  --gold-soft: #f6eedc;
  --wa: #25d366;
  --tg: #2aabee;
  --r: 12px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 6px 20px rgba(0, 0, 0, .10);
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
}
html[lang="fa"] { --sans: 'Vazirmatn', 'Inter', Tahoma, sans-serif; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: var(--sans); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
body.noscroll { overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
svg.i { width: 18px; height: 18px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg.i.fill { fill: currentColor; stroke: none; }

.app { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }

/* ---------- demo bar ---------- */
.demo-bar { background: var(--gold-soft); color: #6d5526; font-size: 12.5px; text-align: center; padding: 6px 16px; flex-shrink: 0; }

/* ---------- header ---------- */
.hdr { height: 64px; display: flex; align-items: center; gap: 28px; padding: 0 24px; border-bottom: 1px solid var(--line); flex-shrink: 0; background: #fff; position: relative; z-index: 20; }
.logo { font-family: var(--serif); font-weight: 700; font-size: 27px; letter-spacing: .05em; line-height: 1; white-space: nowrap; }
.logo span { color: var(--gold); }
.nav { display: flex; gap: 4px; align-items: center; }
.nav > a, .nav > button { padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: 14.5px; display: inline-flex; align-items: center; gap: 4px; }
.nav > a:hover, .nav > button:hover { background: var(--soft); }
.nav .pop-anchor > button { padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: 14.5px; display: inline-flex; align-items: center; gap: 4px; }
.nav .pop-anchor > button:hover { background: var(--soft); }
html[dir="rtl"] svg.flip { transform: scaleX(-1); }
.nav > a.on { font-weight: 600; }
.hdr-r { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.langs { display: flex; border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; }
.langs button { padding: 6px 9px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.langs button.on { background: var(--ink); color: #fff; }
.hbtn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 9px; font-weight: 600; font-size: 14px; position: relative; }
.hbtn:hover { background: var(--soft); }
.hbtn .cnt { background: var(--gold); color: #fff; font-size: 11px; min-width: 18px; height: 18px; border-radius: 9px; display: inline-grid; place-items: center; padding: 0 5px; }
.btn-wa { background: var(--gold); color: #fff; padding: 9px 16px; border-radius: 10px; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.btn-wa:hover { background: var(--gold-d); }
.lang-sel { display: none; border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 8px; font-size: 13px; font-weight: 600; background: #fff; }

/* ---------- popovers ---------- */
.pop-anchor { position: relative; }
.pop { position: absolute; top: calc(100% + 8px); inset-inline-start: 0; background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgba(0, 0, 0, .14); padding: 16px; min-width: 280px; z-index: 50; }
.pop h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.pop-cities { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; min-width: 360px; }
.pop-cities a { padding: 7px 8px; border-radius: 8px; display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.pop-cities a:hover { background: var(--soft); }
.pop-cities a small { color: var(--muted); }

/* ---------- filter bar ---------- */
.fbar { display: flex; align-items: center; gap: 8px; padding: 10px 24px; border-bottom: 1px solid var(--line); flex-shrink: 0; background: #fff; position: relative; z-index: 15; }
.search { position: relative; width: 320px; flex-shrink: 0; }
.search input { width: 100%; height: 42px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 40px 0 40px; font-size: 14.5px; outline: none; background: #fff; }
.search input:focus { border-color: var(--ink); }
.search .si { position: absolute; top: 12px; inset-inline-start: 12px; color: var(--muted); }
.search .sx { position: absolute; top: 7px; inset-inline-end: 6px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.search .sx:hover { background: var(--soft); }
.sugg { position: absolute; top: calc(100% + 6px); inset-inline: 0; background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgba(0, 0, 0, .14); padding: 6px; z-index: 60; max-height: 360px; overflow-y: auto; }
.sugg button { width: 100%; text-align: start; display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; }
.sugg button:hover, .sugg button.act { background: var(--soft); }
.sugg .ic { width: 30px; height: 30px; border-radius: 8px; background: var(--soft); display: grid; place-items: center; color: var(--gold-d); flex-shrink: 0; }
.sugg b { font-weight: 600; font-size: 14px; display: block; }
.sugg small { color: var(--muted); font-size: 12.5px; }
.sugg .empty { padding: 10px; color: var(--muted); font-size: 14px; }

.fb { height: 42px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 10px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; white-space: nowrap; background: #fff; }
.fb:hover { border-color: var(--ink); }
.fb.act { border: 1.5px solid var(--ink); background: var(--soft); }
.fb .chev { width: 16px; height: 16px; color: var(--muted); }
.fb-sp { flex: 1; }
.cur-sel { height: 42px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 10px; font-weight: 600; font-size: 14px; background: #fff; cursor: pointer; }
.btn-sub { height: 42px; padding: 0 16px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.btn-sub:hover { background: #000; }
.fb-mob { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; font-weight: 500; background: #fff; white-space: nowrap; }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip small { color: var(--muted); margin-inline-start: 3px; font-weight: 500; }
.chip.on small { color: #bdbdbd; }
.prow { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.prow input { width: 130px; height: 40px; border: 1px solid var(--line-2); border-radius: 9px; padding: 0 10px; font-size: 14px; outline: none; }
.prow input:focus { border-color: var(--ink); }
.chk { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14.5px; cursor: pointer; }
.chk input { width: 18px; height: 18px; accent-color: var(--ink); }
.pop-foot { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.lnk { color: var(--gold-d); font-weight: 600; font-size: 14px; }
.lnk:hover { text-decoration: underline; }
.btn-ink { background: var(--ink); color: #fff; padding: 9px 16px; border-radius: 9px; font-weight: 600; font-size: 14px; }

/* ---------- split layout ---------- */
.split { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(460px, 48%); }
.mapwrap { position: relative; min-width: 0; isolation: isolate; }
#map { position: absolute; inset: 0; direction: ltr; background: #e9e6df; }
.map-bounds { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 500; background: #fff; border-radius: 10px; padding: 8px 12px; display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow); cursor: pointer; }
.map-bounds input { width: 16px; height: 16px; accent-color: var(--ink); }
.list { overflow-y: auto; border-inline-start: 1px solid var(--line); background: #fff; }
.list-in { padding: 18px 22px 0; }
.lh { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 12px; }
.lh h1 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.lh .cnt { color: var(--muted); font-size: 14px; margin-top: 2px; }
.sort { border: 0; font-weight: 600; font-size: 14px; color: var(--gold-d); background: transparent; cursor: pointer; padding: 4px 0; }
.citychips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 14px; scrollbar-width: none; }
.citychips::-webkit-scrollbar { display: none; }
.citychips .chip { padding: 6px 12px; font-size: 13.5px; }

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { cursor: pointer; border-radius: var(--r); background: #fff; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .18s, transform .18s; position: relative; display: block; overflow: hidden; }
.card:hover { box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.card.hl { box-shadow: 0 0 0 2px var(--gold), var(--shadow); }
.ph { position: relative; aspect-ratio: 3 / 2; background: #ece9e2; overflow: hidden; }
.trk { display: flex; height: 100%; transition: transform .3s ease; }
.trk img { width: 100%; height: 100%; object-fit: cover; flex-shrink: 0; }
.ph .arr { position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; opacity: 0; transition: opacity .15s; box-shadow: 0 1px 4px rgba(0, 0, 0, .2); }
.ph .arr.l { left: 10px; }
.ph .arr.r { right: 10px; }
.card:hover .arr { opacity: 1; }
.dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.dots i.on { background: #fff; }
.bdgs { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 60px); }
.bdg { background: rgba(255, 255, 255, .95); color: var(--ink); font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
.bdg.g { background: var(--gold); color: #fff; }
.bdg.k { background: var(--ink); color: #fff; }
.fav { position: absolute; top: 8px; inset-inline-end: 8px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.fav svg { width: 24px; height: 24px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45)); stroke-width: 2; }
.fav.on svg { fill: var(--gold); stroke: #fff; }
.cb { padding: 12px 14px 14px; }
.price { font-size: 21px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.price small { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.meta { font-size: 14px; margin-top: 4px; color: var(--ink-2); }
.meta b { font-weight: 600; }
a.nm { display: block; }
.nm { font-weight: 600; font-size: 14.5px; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.addr { color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); }
.cf span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.cta { border-radius: var(--r); background: var(--ink); color: #fff; padding: 24px; display: flex; flex-direction: column; justify-content: center; gap: 12px; position: relative; overflow: hidden; min-height: 260px; }
.cta::after { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(197, 160, 89, .35); inset-inline-end: -80px; top: -80px; }
.cta h3 { font-family: var(--serif); font-size: 28px; font-weight: 700; line-height: 1.1; color: var(--gold); }
html[lang="fa"] .cta h3 { font-family: var(--sans); font-size: 22px; }
.cta p { color: #d9d6cf; font-size: 14.5px; }
.cta button { align-self: flex-start; background: var(--gold); color: #fff; padding: 11px 18px; border-radius: 10px; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.cta button:hover { background: var(--gold-d); }
.grid > .cta { grid-column: span 1; }

.empty-st { text-align: center; padding: 48px 20px; }
.empty-st h3 { font-size: 19px; margin-bottom: 6px; }
.empty-st p { color: var(--muted); margin-bottom: 16px; }

.pager { display: flex; justify-content: center; gap: 6px; padding: 24px 0 8px; }
.pager a { min-width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-weight: 600; border: 1px solid var(--line-2); padding: 0 10px; }
.pager a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager a:hover:not(.on) { border-color: var(--ink); }
.pager-note { text-align: center; color: var(--muted); font-size: 13px; }

/* ---------- footer ---------- */
.foot { margin-top: 32px; border-top: 1px solid var(--line); padding: 28px 22px 32px; background: var(--soft); }
.foot h4 { font-size: 15px; margin-bottom: 12px; }
.fcities { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px 20px; margin-bottom: 28px; }
.fcities a.c { font-weight: 600; font-size: 14px; display: block; margin-bottom: 4px; }
.fcities a.c:hover, .fcities a.d:hover { color: var(--gold-d); }
.fcities a.d { font-size: 13px; color: var(--muted); display: inline-block; margin-inline-end: 8px; }
.fbot { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; font-size: 13.5px; color: var(--muted); }
.fbot .logo { font-size: 22px; color: var(--ink); margin-bottom: 8px; }
.fbot a { color: var(--ink); font-weight: 500; }
.copy { margin-top: 20px; font-size: 12.5px; color: var(--muted); }

/* ---------- map pins ---------- */
.pinw { background: none; border: 0; }
.pin { position: absolute; left: 0; top: 0; transform: translate(-50%, calc(-100% - 6px)); background: var(--ink); color: #fff; font: 700 12.5px/1 var(--sans); padding: 6px 8px; border-radius: 14px; white-space: nowrap; box-shadow: 0 1px 5px rgba(0, 0, 0, .35); border: 1.5px solid #fff; cursor: pointer; transition: background .12s, color .12s; }
.pin::after { content: ''; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--ink); border-bottom: 0; transition: border-color .12s; }
.pin.new::before { content: ''; position: absolute; top: -4px; right: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); border: 1.5px solid #fff; }
.pin.on, .pin:hover { background: var(--gold); color: var(--ink); }
.pin.on::after, .pin:hover::after { border-top-color: var(--gold); }
.leaflet-marker-icon.pin-top { z-index: 9999 !important; }
.clw { background: none; border: 0; }
.cl { width: 100%; height: 100%; border-radius: 50%; background: rgba(17, 17, 17, .92); color: #fff; display: grid; place-items: center; font: 700 13px/1 var(--sans); box-shadow: 0 0 0 5px rgba(197, 160, 89, .45); transition: box-shadow .12s, background .12s; }
.cl.on { background: var(--gold); color: var(--ink); box-shadow: 0 0 0 5px rgba(17, 17, 17, .25); }
.leaflet-container { font-family: var(--sans); }
.leaflet-popup.mini .leaflet-popup-content-wrapper { padding: 0; border-radius: 12px; overflow: hidden; }
.leaflet-popup.mini .leaflet-popup-content { margin: 0; width: 250px !important; }
.leaflet-popup.mini a.leaflet-popup-close-button { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); top: 6px; right: 6px; }
.mini-c { display: block; cursor: pointer; color: var(--ink) !important; }
.mini-c img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.mini-c .cb { padding: 10px 12px 12px; }
.mini-c .price { font-size: 17px; }

/* ---------- overlay / project ---------- */
.overlay { position: fixed; inset: 0; background: rgba(17, 17, 17, .5); z-index: 1000; display: flex; justify-content: center; padding: 20px 20px 0; }
.ov-panel { background: #fff; width: min(1160px, 100%); border-radius: 16px 16px 0 0; overflow-y: auto; position: relative; overscroll-behavior: contain; }
.pj-top { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .97); backdrop-filter: blur(6px); display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); gap: 8px; }
.pj-top .acts { display: flex; gap: 4px; align-items: center; }
.ib { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 9px; font-weight: 600; font-size: 14px; }
.ib:hover { background: var(--soft); }
.ib.on svg { fill: var(--gold); stroke: var(--gold); }
.gal { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 210px 210px; gap: 6px; padding: 14px 16px 0; position: relative; }
.gal button { position: relative; overflow: hidden; background: #ece9e2; }
.gal button img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gal button:hover img { transform: scale(1.03); }
.gal button:first-child { grid-row: span 2; border-start-start-radius: 12px; border-end-start-radius: 12px; }
.gal button:nth-child(3) { border-start-end-radius: 12px; }
.gal button:nth-child(5) { border-end-end-radius: 12px; }
.gal .allph { position: absolute; bottom: 12px; inset-inline-end: 28px; background: #fff; border-radius: 9px; padding: 8px 12px; font-weight: 600; font-size: 13.5px; display: inline-flex; gap: 6px; align-items: center; box-shadow: var(--shadow); }
.gal-m { display: none; }
.pj-body { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 44px; padding: 24px 32px 56px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.pj-price { font-size: 32px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.pj-price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.pj-name { font-size: 22px; font-weight: 700; margin-top: 8px; line-height: 1.25; }
.pj-addr { color: var(--muted); margin-top: 2px; display: flex; gap: 6px; align-items: center; }
.pj-key { margin-top: 12px; font-size: 15px; }
.pj-key b { font-weight: 600; }
.pj-bdgs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pj-bdgs .bdg { background: var(--soft); border: 1px solid var(--line); }
.pj-bdgs .bdg.g { background: var(--gold); border-color: var(--gold); }
.sec { margin-top: 34px; }
.sec h2 { font-size: 20px; font-weight: 700; margin-bottom: 14px; letter-spacing: -.01em; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.facts div { background: #fff; padding: 12px 14px; }
.facts small { display: block; color: var(--muted); font-size: 12.5px; }
.facts b { font-weight: 600; font-size: 15px; }
.utab { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.utab th { text-align: start; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 0 10px 8px; border-bottom: 1px solid var(--line); }
.utab td { padding: 12px 10px; border-bottom: 1px solid var(--line); }
.utab td:first-child { font-weight: 700; }
.utab td.p { font-weight: 700; }
.utab .lnk { white-space: nowrap; }
.asof { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.desc { color: var(--ink-2); font-size: 15.5px; line-height: 1.65; }
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 16px; }
.feats div { display: flex; gap: 8px; align-items: center; font-size: 14.5px; }
.feats svg { color: var(--gold-d); }
.pay { background: var(--soft); border-radius: 12px; padding: 16px 18px; display: flex; gap: 14px; align-items: flex-start; }
.pay .pi { width: 40px; height: 40px; border-radius: 10px; background: #fff; display: grid; place-items: center; color: var(--gold-d); flex-shrink: 0; }
.minimap { height: 280px; border-radius: 12px; overflow: hidden; direction: ltr; position: relative; z-index: 0; }
.dists { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.dists div { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.dists small { color: var(--muted); display: block; font-size: 12px; }
.sim { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sim .price { font-size: 17px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold-d); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq p { color: var(--ink-2); margin-top: 8px; }
.pj-aside { position: relative; }
.leadbox { position: sticky; top: 74px; border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); background: #fff; }
.leadbox h3 { font-size: 18px; margin-bottom: 4px; }
.leadbox .sub { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.leadbox .alt { width: 100%; margin-top: 10px; border: 1px solid var(--line-2); border-radius: 10px; padding: 11px; font-weight: 600; display: flex; gap: 8px; justify-content: center; align-items: center; }
.leadbox .alt:hover { border-color: var(--ink); }
.nofee { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); margin-top: 14px; }
.nofee svg { color: var(--gold-d); }
.pj-mbar { display: none; }

/* ---------- lead flow ---------- */
.lf input[type="tel"] { width: 100%; height: 48px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 14px; font-size: 16px; outline: none; direction: ltr; text-align: start; }
html[lang="fa"] .lf input[type="tel"] { text-align: right; }
.lf input[type="tel"]:focus { border-color: var(--ink); }
.lf input.err { border-color: #d64545; animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.lf .go { width: 100%; height: 48px; margin-top: 10px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; }
.lf .go:hover { background: #000; }
.lf .q { font-weight: 600; margin-bottom: 10px; }
.lf .ch { width: 100%; height: 48px; border-radius: 10px; color: #fff; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 8px; }
.lf .ch.wa { background: var(--wa); }
.lf .ch.tg { background: var(--tg); }
.lf .ok { text-align: center; padding: 8px 0; }
.lf .ok .ci { width: 52px; height: 52px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-d); display: grid; place-items: center; margin: 0 auto 10px; }
.lf .ok b { display: block; font-size: 16px; margin-bottom: 4px; }
.lf .ok p { color: var(--muted); font-size: 14px; }
.lf .dn { font-size: 12px; color: var(--muted); margin-top: 10px; text-align: center; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 1200; background: rgba(17, 17, 17, .5); display: grid; place-items: center; padding: 16px; }
.mbox { background: #fff; border-radius: 18px; width: min(420px, 100%); padding: 26px 24px 22px; position: relative; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.mbox h3 { font-size: 21px; margin-bottom: 6px; padding-inline-end: 28px; }
.mbox .sub { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }
.mx { position: absolute; top: 14px; inset-inline-end: 14px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.mx:hover { background: var(--soft); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(10, 10, 10, .96); z-index: 1300; display: grid; place-items: center; }
.lightbox img { max-width: 92vw; max-height: 84vh; object-fit: contain; border-radius: 6px; }
.lightbox .lb-b { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; }
.lightbox .lb-b:hover { background: rgba(255, 255, 255, .22); }
.lightbox .lb-p { left: 20px; }
.lightbox .lb-n { right: 20px; }
.lightbox .lb-x { position: absolute; top: 16px; right: 16px; color: #fff; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.lightbox .lb-c { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); color: #ddd; font-size: 14px; direction: ltr; }

/* ---------- toast ---------- */
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 14px; z-index: 1500; box-shadow: var(--shadow); }

/* ---------- page mode (прямой заход на ЖК) ---------- */
body.page-mode .app { height: auto; min-height: 100vh; }
body.page-mode .fbar, body.page-mode .split { display: none; }
.page { width: min(1160px, 100%); margin: 0 auto; }
.page .pj-top { position: sticky; top: 0; }

/* ---------- mobile toggle / sheets ---------- */
.mtoggle { display: none; }
.sheet { display: none; }
.fsheet { display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(440px, 100%); z-index: 1100; background: #fff; box-shadow: 0 0 0 100vmax rgba(17, 17, 17, .45); }
.fs-h { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 17px; }
.fs-h .mx { position: static; }
.fs-b { flex: 1; overflow-y: auto; padding: 4px 16px 20px; }
.fs-b section { padding: 16px 0; border-bottom: 1px solid var(--line); }
.fs-b h4 { font-size: 15px; margin-bottom: 10px; }
.fs-b .prow input { flex: 1; width: auto; min-width: 0; }
.fs-f { display: flex; gap: 10px; align-items: center; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.fs-f .btn-ink { flex: 1; height: 48px; font-size: 15px; }
.fs-f .lnk { padding: 0 8px; }

@media (max-width: 1199px) {
  .split { grid-template-columns: minmax(0, 1fr) 440px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .search { width: 240px; }
  .nav > a.hide-md { display: none; }
  .sim { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sim > :nth-child(3) { display: none; }
}

@media (max-width: 1020px) {
  .fb-desk.opt { display: none; }
  .btn-sub span { display: none; }
  .fb-mob { display: inline-flex; }
}

@media (max-width: 899px) {
  .demo-bar { font-size: 11.5px; padding: 5px 12px; }
  .hdr { height: 56px; padding: 0 14px; gap: 10px; }
  .logo { font-size: 23px; }
  .nav, .langs, .btn-wa span, .hbtn .lbl { display: none; }
  .lang-sel { display: block; }
  .btn-wa { padding: 8px 10px; }
  .fbar { padding: 8px 12px; gap: 8px; }
  .search { flex: 1; width: auto; }
  .fb-desk, .cur-sel, .btn-sub, .fb-sp { display: none; }
  .fb-mob { display: inline-flex; padding: 0 12px; }
  .split { display: block; position: relative; }
  .mapwrap { position: absolute; inset: 0; visibility: hidden; }
  .list { height: 100%; border: 0; }
  body.mv .mapwrap { visibility: visible; z-index: 5; }
  body.mv .list { visibility: hidden; }
  .list-in { padding: 14px 14px 0; }
  .lh h1 { font-size: 19px; }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ph .arr { display: none; }
  .foot { padding: 24px 14px 96px; }
  .fbot { grid-template-columns: 1fr; }
  .mtoggle { display: inline-flex; position: fixed; bottom: calc(18px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 900; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; gap: 8px; align-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }
  body.page-mode .mtoggle, body.ov-open .mtoggle { display: none; }
  .map-bounds { top: 10px; inset-inline-start: 10px; font-size: 12.5px; padding: 7px 10px; }
  .sheet { display: block; position: fixed; inset-inline: 10px; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 950; background: #fff; border-radius: 14px; box-shadow: 0 10px 40px rgba(0, 0, 0, .3); overflow: hidden; }
  .sheet[hidden] { display: none !important; }
  .sheet .mini-h { display: flex; gap: 12px; padding: 10px; align-items: center; }
  .sheet .mini-h img { width: 112px; height: 84px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
  .sheet .mini-h .price { font-size: 17px; }
  .sheet .shx { position: absolute; top: 6px; inset-inline-end: 6px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fff; }
  .fsheet { width: 100%; box-shadow: none; }
  .overlay { padding: 0; }
  .ov-panel { border-radius: 0; width: 100%; }
  .gal { display: none; }
  .gal-m { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #ece9e2; }
  .gal-m .trk img { cursor: zoom-in; }
  .gal-m .cnt-ph { position: absolute; bottom: 12px; inset-inline-end: 12px; background: rgba(17, 17, 17, .75); color: #fff; font-size: 13px; padding: 4px 10px; border-radius: 8px; direction: ltr; }
  .pj-body { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 18px 16px 110px; }
  .pj-price { font-size: 27px; }
  .pj-name { font-size: 19px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sim { grid-template-columns: minmax(0, 1fr); }
  .sim > :nth-child(3) { display: block; }
  .pj-aside { margin-top: 32px; }
  .leadbox { position: static; box-shadow: none; }
  .utab th:nth-child(4), .utab td:nth-child(4), .utab th:nth-child(5), .utab td:nth-child(5) { display: none; }
  .pj-mbar { display: flex; gap: 8px; position: fixed; bottom: 0; inset-inline: 0; z-index: 1050; background: #fff; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0, 0, 0, .08); }
  .pj-mbar a, .pj-mbar button { flex: 1; height: 48px; border-radius: 10px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; }
  .pj-mbar a { background: var(--wa); color: #fff; }
  .pj-mbar button { background: var(--ink); color: #fff; }
  .pj-top .ib .lbl { display: none; }
  .lightbox .lb-b { display: none; }
}

/* ---------- боевые данные: цена по запросу, ценник-точка, длинный список городов ---------- */
.price.ask { font-size: 17px; color: var(--ink-2); }
.pj-price.ask { font-size: 24px; }
.pin.dot { width: 14px; height: 14px; padding: 0; border-radius: 50%; transform: translate(-50%, -50%); }
.pin.dot::after { display: none; }
.pop-cities { max-height: 60vh; overflow-y: auto; }
/* последняя ячейка фактов растягивается, чтобы в сетке не было пустых клеток */
.facts > div:nth-child(3n+1):last-child { grid-column: 1 / -1; }
.facts > div:nth-child(3n+2):last-child { grid-column: span 2; }
@media (max-width: 899px) {
  .facts > div:last-child { grid-column: auto; }
  .facts > div:nth-child(2n+1):last-child { grid-column: 1 / -1; }
}
.infobar { display: flex; gap: 10px; align-items: flex-start; background: var(--gold-soft); color: #5e4a22; border-radius: 10px; padding: 10px 14px; font-size: 13.5px; line-height: 1.45; margin-bottom: 12px; }
.infobar svg { color: var(--gold-d); margin-top: 1px; }
.intro { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin: -4px 0 12px; }
.langhint { display: flex; justify-content: center; align-items: center; gap: 12px; background: var(--ink); color: #fff; font-size: 13.5px; padding: 7px 12px; flex-shrink: 0; }
.langhint a { color: var(--gold); font-weight: 600; }
.langhint button { color: #bbb; display: grid; place-items: center; }
.langhint svg { width: 16px; height: 16px; }
.pj-bdgs .bdg.k { background: var(--ink); border-color: var(--ink); color: #fff; }
.desc p + p { margin-top: 10px; }
.fsel { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 26px; font-size: 14px; font-weight: 600; }
.fsel a:hover, .citychips a.chip:hover { color: var(--gold-d); }
.citychips a.chip.on:hover { color: #fff; }
/* ---------- гиды покупателя (/guide, /guide/<slug>) ---------- */
/* пункт «Гиды» в шапке — только на широких экранах, иначе меню EN/TR не помещается; ссылки на гиды всегда есть в подвале */
@media (max-width: 1319px) { .nav > a.hide-lg { display: none; } }
.guide .pj-name { font-size: 28px; letter-spacing: -.01em; }
.g-asof { display: inline-block; margin-top: 10px; font-size: 12.5px; font-weight: 600; color: #5e4a22; background: var(--gold-soft); border-radius: 999px; padding: 4px 12px; }
.g-lead { margin-top: 14px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.g-toc { margin-top: 22px; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; background: var(--soft); font-size: 14.5px; }
.g-toc ol { margin-top: 8px; padding-inline-start: 20px; display: grid; gap: 4px; }
.g-toc a:hover { color: var(--gold-d); text-decoration: underline; }
.guide .desc ul, .guide .desc ol { margin: 10px 0; padding-inline-start: 22px; display: grid; gap: 7px; }
.guide .desc p + p, .guide .desc ul + p, .guide .desc ol + p { margin-top: 10px; }
.guide .desc b { font-weight: 600; color: var(--ink); }
.guide .desc a, .guide .faq a, .g-src a { color: var(--gold-d); text-decoration: underline; text-underline-offset: 2px; }
.g-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.g-chips .chip { white-space: normal; }
.g-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.g-list { margin-top: 26px; grid-template-columns: minmax(0, 1fr); }
.g-card { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; transition: border-color .12s, box-shadow .12s; }
.g-card:hover { border-color: var(--ink); box-shadow: var(--shadow); }
.g-card b { display: block; font-size: 15.5px; margin-bottom: 4px; }
.g-card span { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.g-src ul { padding-inline-start: 20px; display: grid; gap: 4px; font-size: 14px; }
.g-note { margin-top: 24px; }
html[lang="fa"] .guide ol { list-style-type: persian; }
@media (max-width: 899px) {
  .guide .pj-name { font-size: 22px; }
  .g-lead { font-size: 16px; }
  .g-cards { grid-template-columns: minmax(0, 1fr); }
}
