/* =====================================================================
   DARA — app shell styles
   ===================================================================== */

/* ---------- Fonts (Peyda, bundled locally) ---------- */
@font-face { font-family: Peyda; src: url(../fonts/peyda-light.ttf) format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: Peyda; src: url(../fonts/peyda-regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Peyda; src: url(../fonts/peyda-medium.ttf) format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: Peyda; src: url(../fonts/peyda-semibold.ttf) format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: Peyda; src: url(../fonts/peyda-bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: Peyda; src: url(../fonts/peyda-extrabold.ttf) format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: Peyda; src: url(../fonts/peyda-black.ttf) format("truetype"); font-weight: 900; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
	--font: Peyda, Vazirmatn, Vazir, Tahoma, sans-serif;
	--gold: #d6b46a;
	--gold-2: #b8913f;
	--gold-3: #f1dc9f;
	--gold-grad: linear-gradient(135deg, #f4e2a8 0%, #d6b46a 42%, #a97c2f 100%);
	--teal: #3fb6a8;
	--rose: #e07a6f;
	--violet: #a78bfa;
	--ok: #34c78a;
	--err: #ef5b5b;
	--r-sm: 10px; --r: 16px; --r-lg: 22px; --r-xl: 28px;
	--safe-t: env(safe-area-inset-top, 0px);
	--safe-b: env(safe-area-inset-bottom, 0px);
	--tab-h: calc(62px + var(--safe-b));
	--top-h: calc(58px + var(--safe-t));
	--ease: cubic-bezier(.2, .8, .2, 1);
	--spring: cubic-bezier(.22, 1.2, .36, 1);
}
:root:root {
	color-scheme: light;
	--gold: #b38b3d; --gold-2: #96722a; --gold-3: #f3e7cc;
	--gold-grad: #d2ad5f;
	--bg: #f6f6f4; --bg-2: #ffffff; --bg-3: #f1f0ec;
	--glass: rgba(255, 255, 255, .97); --glass-2: #ffffff;
	--card: #ffffff; --card-2: #fafaf8;
	--line: rgba(0, 0, 0, .08); --line-2: rgba(0, 0, 0, .14);
	--tx: #1d1d1b; --tx-2: #5e5e58; --tx-3: #93938b;
	--shadow: 0 10px 30px -12px rgba(0, 0, 0, .18);
	--shadow-sm: 0 2px 10px -4px rgba(0, 0, 0, .14);
	--m-sea: #d9ebf1; --m-wave: transparent; --m-shore: #a9d2de;
	--m-land: #f5f3ef; --m-dot: transparent; --m-mt: rgba(0, 0, 0, .04);
	--m-road: #ffffff; --m-casing: #e2ded6; --m-hw: #f3e2b5; --m-ring: #ffffff;
	--m-runway: #e3dfd7; --m-coast: rgba(0, 0, 0, .12);
	--m-hood: rgba(179, 139, 61, .04); --m-hood-h: rgba(179, 139, 61, .12); --m-hood-line: rgba(179, 139, 61, .35);
	--m-label: #33322e; --m-label-s: rgba(255, 255, 255, .95); --m-sea-label: rgba(60, 120, 145, .5);
	--mk-bg: #ffffff; --mk-tx: #1d1d1b;
}
/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
	font-family: var(--font); font-size: 15px; line-height: 1.75; color: var(--tx); background: var(--bg);
	overflow: hidden; overscroll-behavior: none; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
	font-feature-settings: "ss01";
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.4; margin: 0; font-weight: 800; }
p { margin: 0 0 .8em; }
[hidden] { display: none !important; }
.i { width: 20px; height: 20px; flex: none; }
.muted { color: var(--tx-2); }
.sm { font-size: 12.5px; }
.gold { color: var(--gold); }
::selection { background: var(--gold); color: #111; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- App frame ---------- */
.app { position: fixed; top: 0; right: 0; bottom: 0; left: 0; overflow: hidden; }
.map { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; }

/* Splash */
.splash {
	position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 200; display: grid; place-content: center; justify-items: center; gap: 14px;
	background: radial-gradient(120% 80% at 50% 40%, #171a22 0%, #07080b 70%);
	transition: opacity .7s var(--ease), visibility .7s;
}
.splash img { width: 170px; filter: drop-shadow(0 10px 40px rgba(214, 180, 106, .35)); animation: splashIn 1.1s var(--ease) both; }
.splash-tag { color: #b4ad9f; font-size: 13px; letter-spacing: .02em; animation: fadeUp .9s .25s var(--ease) both; }
.splash-line { width: 120px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, #d6b46a, transparent); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
.app.is-ready .splash { opacity: 0; visibility: hidden; }
@keyframes splashIn { from { opacity: 0; transform: scale(.86); filter: blur(8px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Load bar */
.loadbar { position: fixed; top: 0; right: 0; left: 0; height: 2.5px; z-index: 300; background: var(--gold-grad); transform-origin: right; transform: scaleX(0); opacity: 0; pointer-events: none; }
.loadbar.go { opacity: 1; transform: scaleX(.75); transition: transform 6s cubic-bezier(.1, .7, .1, 1); }
.loadbar.done { opacity: 0; transform: scaleX(1); transition: transform .25s, opacity .35s .2s; }

/* Glass surfaces */
.top, .chips .chip, .mapctl, .tabbar, .rail, .peek, .layers-pop, .legend, .mapcount, .sheet {
	-webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
}

/* ---------- Top bar ---------- */
.top {
	position: fixed; z-index: 30; top: calc(10px + var(--safe-t)); right: 10px; left: 10px; height: 52px;
	display: flex; align-items: center; gap: 8px; padding: 0 8px 0 6px;
	background: var(--glass); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm);
}
.brand { display: flex; align-items: center; padding: 0 6px; flex: none; }
.brand img { height: 24px; width: auto; }
.search-pill {
	flex: 1; min-width: 0; height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 12px;
	border-radius: 12px; background: var(--bg-3); color: var(--tx-2); font-size: 13px; border: 1px solid transparent; transition: border-color .2s;
}
.search-pill span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; flex: 1; text-align: right; }
.search-pill:hover { border-color: var(--line-2); }
.search-pill kbd { font-family: inherit; font-size: 11px; padding: 0 6px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--tx-3); display: none; }
.city-pill { display: none; align-items: center; gap: 4px; height: 38px; padding: 0 10px; border-radius: 12px; font-size: 13px; font-weight: 600; color: var(--tx); }
.city-pill .i { width: 16px; height: 16px; color: var(--gold); }
.city-pill .i:last-child { color: var(--tx-3); width: 14px; }
.ib { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: var(--tx); transition: background .2s; flex: none; }
.ib:hover { background: var(--bg-3); }
.ib.sm { width: 34px; height: 34px; }
[data-theme="dark"] .i-moon, [data-theme="light"] .i-sun { display: none; }
.ib-menu { display: none; }

/* ---------- Chips ---------- */
.chips {
	position: fixed; z-index: 25; top: calc(70px + var(--safe-t)); right: 0; left: 0;
	display: flex; gap: 7px; padding: 0 10px 4px; overflow-x: auto; scrollbar-width: none;
	transition: opacity .3s, transform .3s var(--ease);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
	flex: none; display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 13px; border-radius: 999px;
	background: var(--glass-2); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--tx); box-shadow: var(--shadow-sm);
	transition: all .2s var(--ease);
}
.chip .i { width: 15px; height: 15px; color: var(--gold); }
.chip.is-on { background: var(--tx); color: var(--bg); border-color: var(--tx); }
.chip.is-on .i { color: inherit; }
.chip--gold.is-on { background: var(--gold-grad); color: #1a1408; border-color: transparent; }
.chip--ic { width: 34px; padding: 0; justify-content: center; position: relative; }
.chip--ic em { position: absolute; top: -4px; left: -4px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--gold); color: #111; font-size: 10px; font-style: normal; display: grid; place-items: center; font-weight: 800; }

/* ---------- Map controls ---------- */
.mapctl {
	position: fixed; z-index: 20; left: 10px; top: calc(74px + var(--safe-t));
	display: flex; flex-direction: column; background: var(--glass); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); overflow: hidden;
	transition: opacity .3s;
}
.mapctl button { width: 40px; height: 40px; display: grid; place-items: center; color: var(--tx); }
.mapctl button + button { border-top: 1px solid var(--line); }
.mapctl button:hover { background: var(--bg-3); }
.mapctl .i { width: 18px; height: 18px; }
.mapctl .is-busy .i { animation: spin 1s linear infinite; color: var(--gold); }
@keyframes spin { to { transform: rotate(360deg); } }

.layers-pop {
	position: fixed; z-index: 40; left: 58px; top: calc(200px + var(--safe-t)); width: 210px; padding: 12px;
	background: var(--glass-2); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); display: grid; gap: 4px;
	animation: pop .25s var(--spring);
}
.layers-pop strong { font-size: 12px; color: var(--tx-2); font-weight: 600; margin-bottom: 4px; }
.layers-pop button { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; font-size: 13px; text-align: right; }
.layers-pop button:hover { background: var(--bg-3); }
.layers-pop button.is-on { background: var(--bg-3); font-weight: 700; }
.sw { width: 26px; height: 18px; border-radius: 5px; border: 1px solid var(--line-2); }
.sw--none { background: var(--m-land); }
.sw--heat { background: linear-gradient(90deg, #3fb6a8, #d6b46a, #e07a4f, #c2415d); }
@keyframes pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }

.legend {
	position: fixed; z-index: 20; left: 10px; bottom: calc(var(--tab-h) + 210px); width: 180px; padding: 8px 10px;
	background: var(--glass); border: 1px solid var(--line); border-radius: 12px; font-size: 11px; box-shadow: var(--shadow-sm);
}
.legend-t { font-weight: 700; display: block; margin-bottom: 4px; }
.legend-bar { display: block; height: 7px; border-radius: 4px; background: linear-gradient(270deg, #3fb6a8, #d6b46a, #e07a4f, #c2415d); }
.legend-r { display: flex; justify-content: space-between; color: var(--tx-2); margin-top: 3px; }
.legend-r b { font-weight: 600; }

.mapcount {
	position: fixed; z-index: 21; top: calc(118px + var(--safe-t)); left: 50%; transform: translateX(-50%);
	height: 34px; padding: 0 14px; border-radius: 999px; background: var(--glass-2); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
	font-size: 12px; color: var(--tx-2); white-space: nowrap; display: flex; align-items: center; gap: 5px; animation: fadeUp .4s var(--ease);
}
.mapcount b { color: var(--tx); font-weight: 800; }
.mapcount span { color: var(--gold); font-weight: 700; margin-right: 4px; }

/* ---------- Rail (desktop nav) ---------- */
.panel-open { display: none; }
.rail { display: none; }

/* ---------- Sheet ---------- */
.sheet {
	position: fixed; z-index: 35; right: 0; left: 0; bottom: 0;
	height: calc(100% - 64px - var(--safe-t));
	transform: translate3d(0, var(--y, 60vh), 0);
	background: var(--glass-2); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r-xl) var(--r-xl) 0 0;
	box-shadow: 0 -6px 24px -10px rgba(0, 0, 0, .15);
	display: flex; flex-direction: column; will-change: transform;
}
.sheet.is-anim { transition: transform .48s var(--spring); }
.sheet.is-drag { transition: none; }
.sheet-bar { position: relative; flex: none; height: 46px; display: flex; align-items: center; gap: 6px; padding: 8px 10px 0; cursor: grab; touch-action: none; }
.grab { position: absolute; top: 8px; left: 50%; width: 42px; height: 5px; margin-left: -21px; border-radius: 3px; background: var(--line-2); }
.sheet-back { opacity: 0; pointer-events: none; transition: opacity .2s; }
.sheet.has-back .sheet-back { opacity: 1; pointer-events: auto; }
.sheet-title { flex: 1; text-align: center; font-weight: 700; font-size: 14px; opacity: 0; transform: translateY(4px); transition: all .25s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet.is-scrolled .sheet-title { opacity: 1; transform: none; }
.sheet-toggle .i { transition: transform .3s; }
.sheet[data-state="peek"] .sheet-toggle .i, .sheet[data-state="half"] .sheet-toggle .i { transform: rotate(180deg); }
.sheet-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 0 16px calc(var(--tab-h) + 28px); -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.sheet:not([data-state="full"]) .sheet-scroll { overflow: hidden; }
#view { animation: viewIn .45s var(--ease) both; outline: none; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }

/* Hide floating map UI when sheet covers the map (mobile) */
.app[data-sheet="full"] .chips, .app[data-sheet="full"] .mapctl, .app[data-sheet="full"] .mapcount, .app[data-sheet="full"] .legend { opacity: 0; pointer-events: none; }

/* ---------- Tab bar ---------- */
.tabbar {
	position: fixed; z-index: 50; right: 0; left: 0; bottom: 0; height: var(--tab-h); padding-bottom: var(--safe-b);
	display: grid; grid-template-columns: repeat(4, 1fr); align-items: center;
	background: var(--glass-2); border-top: 1px solid var(--line);
}
.tabbar > a, .tabbar > button { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; color: var(--tx-3); font-weight: 600; height: 100%; justify-content: center; transition: color .2s; }
.tabbar .i { width: 22px; height: 22px; }
.tabbar .is-on { color: var(--gold); }
.tabbar .is-on .i { filter: drop-shadow(0 2px 6px rgba(214, 180, 106, .45)); }
.tab-fab { position: relative; }
.tab-fab span { width: 54px; height: 54px; margin-top: -26px; border-radius: 19px; display: grid; place-items: center; background: var(--gold-grad); color: #1b1408; box-shadow: 0 10px 26px -6px rgba(214, 180, 106, .65), inset 0 1px 0 rgba(255, 255, 255, .5); transform: rotate(45deg); transition: transform .3s var(--spring); }
.tab-fab span .i { transform: rotate(-45deg); width: 24px; height: 24px; }
.tab-fab:active span { transform: rotate(45deg) scale(.92); }
.tab-fab em { font-style: normal; color: var(--gold); margin-top: 3px; }

/* ---------- Peek card ---------- */
.peek {
	position: fixed; z-index: 45; right: 10px; left: 10px; bottom: calc(var(--tab-h) + 12px);
	background: var(--glass-2); border: 1px solid var(--line-2); border-radius: 22px; box-shadow: var(--shadow); padding: 10px;
	transform: translateY(30px) scale(.97); opacity: 0; transition: all .35s var(--spring);
}
.peek.in { transform: none; opacity: 1; }
.peek-x { position: absolute; top: 8px; left: 8px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-3); z-index: 2; }
.peek-x .i { width: 14px; height: 14px; }
.peek-in { display: flex; gap: 12px; }
.peek-img { width: 92px; height: 92px; border-radius: 15px; overflow: hidden; flex: none; background: var(--bg-3); display: grid; place-items: center; }
.peek-img img { width: 100%; height: 100%; object-fit: cover; }
.peek-img .ph { width: 100%; height: 100%; }
.peek-b { display: flex; flex-direction: column; min-width: 0; padding-left: 26px; }
.peek-b small { color: var(--gold); font-size: 11.5px; font-weight: 600; }
.peek-b b { font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.peek-b em { font-style: normal; font-weight: 800; font-size: 15px; margin-top: 2px; }
.peek-s { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 4px; }
.peek-s span { font-size: 10.5px; padding: 1px 7px; border-radius: 6px; background: var(--bg-3); color: var(--tx-2); }
.peek-s .gold { color: #1b1408; background: var(--gold); }
.peek-act { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.peek-act .btn { flex: 1; }
.peek-act .fav { position: static; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 14px;
	font-weight: 700; font-size: 14px; transition: transform .15s, box-shadow .2s, background .2s; white-space: nowrap; position: relative;
}
.btn:active { transform: scale(.97); }
.btn .i { width: 18px; height: 18px; }
.btn--gold { background: var(--gold-grad); color: #1b1408; box-shadow: 0 10px 24px -10px rgba(214, 180, 106, .7), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn--gold:hover { box-shadow: 0 14px 30px -10px rgba(214, 180, 106, .85), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn--ghost { background: var(--bg-3); border: 1px solid var(--line); color: var(--tx); }
.btn--ghost:hover { border-color: var(--line-2); }
.btn--sm { height: 38px; padding: 0 14px; font-size: 13px; border-radius: 12px; }
.btn--block { width: 100%; }
.spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(0, 0, 0, .25); border-top-color: #1b1408; animation: spin .7s linear infinite; }
.is-busy .btn .spin { display: inline-block; }
.is-busy .btn .btn-t { opacity: .6; }

/* ---------- View heads & sections ---------- */
.vh { display: flex; align-items: center; gap: 12px; padding: 4px 0 18px; }
.vh-ic { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: var(--bg-3); color: var(--gold); border: 1px solid var(--line); flex: none; }
.vh h1 { font-size: 21px; }
.vh p { margin: 0; color: var(--tx-2); font-size: 13px; }
.sec-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 26px 0 12px; }
.sec-h h2 { font-size: 16px; display: flex; align-items: center; gap: 8px; }
.sec-h h2 .i { color: var(--gold); width: 18px; height: 18px; }
.sec-h a { font-size: 12.5px; color: var(--gold); font-weight: 600; display: flex; align-items: center; gap: 2px; }
.sec-h a .i { width: 15px; height: 15px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--gold); font-weight: 600; letter-spacing: .01em; }
.eyebrow .i { width: 14px; height: 14px; }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(52, 199, 138, .6); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(52, 199, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 199, 138, 0); } }

/* ---------- Home ---------- */
.hero { padding: 0 2px 14px; }
.hero h1 { font-size: 24px; font-weight: 900; margin: 6px 0 4px; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--tx-2); font-size: 13px; margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tile {
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 12px 4px 10px; border-radius: 18px;
	background: var(--card); border: 1px solid var(--line); transition: transform .2s var(--spring), border-color .2s;
}
.tile:hover { border-color: var(--line-2); transform: translateY(-2px); }
.tile .i { width: 26px; height: 26px; color: var(--gold); padding: 0; }
.tile b { font-size: 12.5px; font-weight: 700; line-height: 1.4; }
.tile small { font-size: 10px; color: var(--tx-3); line-height: 1.4; }
.tile--gold { background: linear-gradient(160deg, rgba(214, 180, 106, .22), rgba(214, 180, 106, .04)); border-color: rgba(214, 180, 106, .35); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.stats div { padding: 12px; text-align: center; }
.stats div + div { border-right: 1px solid var(--line); }
.stats b { display: block; font-size: 22px; font-weight: 900; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.3; }
.stats span { font-size: 11.5px; color: var(--tx-2); }

.rail-x { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 10px; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail-x::-webkit-scrollbar { display: none; }
.rail-x > .card { flex: 0 0 78%; max-width: 300px; scroll-snap-align: start; }

.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rank a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); transition: border-color .2s; }
.rank a:hover { border-color: rgba(214, 180, 106, .45); }
.rank-n { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-weight: 900; background: var(--bg-3); color: var(--gold); flex: none; }
.rank li:first-child .rank-n { background: var(--gold-grad); color: #1b1408; }
.rank-b { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rank-b b { font-size: 14px; }
.rank-b small { font-size: 11px; color: var(--tx-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-b i { display: block; height: 4px; border-radius: 2px; background: var(--bg-3); margin-top: 6px; position: relative; overflow: hidden; }
.rank-b i::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: auto; width: var(--w); background: var(--gold-grad); border-radius: 2px; }
.rank-v { display: flex; align-items: center; gap: 3px; color: var(--ok); font-weight: 800; font-size: 14px; }
.rank-v .i { width: 16px; height: 16px; }

.lux-cta { margin-top: 26px; border-radius: 24px; padding: 1px; background: var(--gold-grad); }
.lux-cta-in {
	border-radius: 23px; padding: 22px 18px; position: relative; overflow: hidden;
	background: radial-gradient(120% 120% at 0% 0%, rgba(214, 180, 106, .18), transparent 55%), #0e1016; color: #f4efe4;
}
[data-theme="light"] .lux-cta-in { background: radial-gradient(120% 120% at 0% 0%, rgba(214, 180, 106, .25), transparent 55%), #17150f; }
.lux-cta-in::after { content: ""; position: absolute; left: -40px; bottom: -60px; width: 200px; height: 200px; background: url(../img/logo.png) center/contain no-repeat; opacity: .06; transform: rotate(-12deg); }
.lux-cta h3 { font-size: 19px; margin: 4px 0 6px; }
.lux-cta p { color: #b4ad9f; font-size: 13px; }
.lux-cta .btn--ghost { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: #f4efe4; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 14px; }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card-media { display: block; position: relative; aspect-ratio: 16 / 10; background: var(--bg-3); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-media::after { content: ""; position: absolute; top: 50%; right: 0; bottom: 0; left: 0; background: linear-gradient(to top, rgba(0, 0, 0, .45), transparent); pointer-events: none; }
.card-state { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: #fff; font-weight: 800; z-index: 2; }
.card.is-off { opacity: .8; }
.badges { position: absolute; top: 10px; right: 10px; display: flex; gap: 5px; flex-wrap: wrap; z-index: 2; }
.bdg { display: inline-flex; align-items: center; gap: 3px; height: 24px; padding: 0 9px; border-radius: 8px; font-size: 11px; font-weight: 700; background: rgba(12, 14, 19, .78); color: #f4efe4; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.bdg .i { width: 13px; height: 13px; }
.bdg--sale, .bdg--presale { color: var(--gold-3); }
.bdg--rent, .bdg--mortgage { color: #7fe0d2; }
.bdg--loan { background: var(--gold-grad); color: #1b1408; }
.bdg--sea { color: #9ed7ea; }
.bdg--feat { background: rgba(214, 180, 106, .2); color: var(--gold-3); border: 1px solid rgba(214, 180, 106, .5); }
.bdg--proj { color: var(--gold-3); }
.fav { position: absolute; top: 10px; left: 10px; z-index: 3; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: rgba(12, 14, 19, .6); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform .3s var(--spring); }
.fav .i { width: 18px; height: 18px; }
.fav.is-on { color: #ff5d73; }
.fav.is-on .i { fill: currentColor; animation: heart .45s var(--spring); }
@keyframes heart { 40% { transform: scale(1.35); } }
.peek-act .fav { background: var(--bg-3); color: var(--tx); }
.peek-act .fav.is-on { color: #ff5d73; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.card-title { font-weight: 700; font-size: 14.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-loc { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--tx-2); }
.card-loc .i { width: 14px; height: 14px; color: var(--gold); }
.card-specs { display: flex; gap: 10px; flex-wrap: wrap; font-size: 11.5px; color: var(--tx-2); }
.card-specs span { display: inline-flex; align-items: center; gap: 4px; }
.card-specs .i { width: 14px; height: 14px; color: var(--tx-3); }
.card-price { display: flex; gap: 14px; padding-top: 8px; margin-top: 2px; border-top: 1px dashed var(--line-2); }
.card-price div { display: flex; flex-direction: column; }
.card-price small { font-size: 10.5px; color: var(--tx-3); }
.card-price b { font-size: 15px; font-weight: 800; }
.prog { position: relative; height: 22px; border-radius: 8px; background: var(--bg-3); overflow: hidden; font-size: 11px; display: flex; align-items: center; padding: 0 8px; }
.prog i { position: absolute; top: 0; right: 0; bottom: 0; left: auto; width: var(--p); background: linear-gradient(90deg, rgba(214, 180, 106, .5), rgba(214, 180, 106, .25)); }
.prog span { position: relative; font-weight: 700; }

/* Placeholder art */
.ph {
	position: relative; width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden;
	background:
		radial-gradient(120% 90% at 80% 0%, hsla(var(--h, 40), 55%, 55%, .28), transparent 60%),
		repeating-linear-gradient(135deg, rgba(214, 180, 106, .06) 0 1px, transparent 1px 14px),
		linear-gradient(160deg, #1a1d26, #0d0f14);
	color: rgba(214, 180, 106, .55);
}
.ph > .i { width: 54px; height: 54px; stroke-width: 1.1; }
.ph .ph-logo { position: absolute; bottom: 10px; left: 12px; width: 52px !important; height: auto !important; object-fit: contain; opacity: .5; }
.peek-img .ph > .i { width: 34px; height: 34px; }

/* ---------- Detail ---------- */
.detail { padding-bottom: 10px; }
.gal { position: relative; margin: 0 -16px; }
.gal-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-track figure { margin: 0; flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 16 / 11; background: var(--bg-3); }
.gal-track img { width: 100%; height: 100%; object-fit: cover; }
.gal-count { position: absolute; bottom: 12px; left: 12px; padding: 2px 10px; border-radius: 8px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; }
.gal .badges { top: 12px; right: 28px; }
.fav--lg { top: 12px; left: 28px; width: 40px; height: 40px; }
.d-head { padding: 16px 0 6px; }
.d-meta { display: flex; gap: 6px; flex-wrap: wrap; font-size: 11.5px; color: var(--tx-3); }
.d-meta span { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 7px; background: var(--bg-3); }
.d-meta .i { width: 13px; height: 13px; }
.d-head h1 { font-size: 21px; font-weight: 900; margin: 8px 0 4px; line-height: 1.5; }
.d-loc { display: inline-flex; align-items: center; gap: 4px; color: var(--gold); font-size: 13px; font-weight: 600; }
.d-loc .i { width: 16px; height: 16px; }
.alert { margin-top: 10px; display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(239, 91, 91, .12); color: #f19b9b; font-size: 13px; }
.pricebox { margin: 14px 0; padding: 16px; border-radius: 20px; background: linear-gradient(150deg, rgba(214, 180, 106, .14), rgba(214, 180, 106, .02) 60%), var(--card); border: 1px solid rgba(214, 180, 106, .28); }
.pb-main { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pb-main + .pb-main { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line-2); }
.pb-main small { color: var(--tx-2); font-size: 12.5px; }
.pb-main b { font-size: 20px; font-weight: 900; }
.pb-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pb-tags span { font-size: 11.5px; padding: 3px 9px; border-radius: 8px; background: var(--bg-3); color: var(--tx-2); }
.pb-tags .ok { color: var(--ok); background: rgba(52, 199, 138, .12); }
.pb-tags .warn { color: var(--rose); background: rgba(224, 122, 111, .12); }
.pb-cmp { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.pb-cmp-t { font-size: 12.5px; color: var(--tx-2); display: flex; gap: 6px; align-items: flex-start; }
.pb-cmp-t .i { width: 16px; height: 16px; color: var(--gold); margin-top: 3px; }
.pb-cmp-t .good { color: var(--ok); }
.pb-cmp-t .warn { color: var(--rose); }
.pb-gauge { position: relative; height: 8px; border-radius: 4px; margin: 14px 0 22px; background: linear-gradient(270deg, #34c78a, #d6b46a, #e07a6f); }
.pb-gauge i { position: absolute; top: -5px; right: var(--x); width: 18px; height: 18px; margin-right: -9px; border-radius: 50%; background: var(--tx); border: 3px solid var(--bg); box-shadow: var(--shadow-sm); }
.pb-gauge span { position: absolute; top: 12px; font-size: 10.5px; color: var(--tx-3); }
.pb-gauge span:nth-of-type(1) { right: 0; }
.pb-gauge span:nth-of-type(2) { right: 50%; transform: translateX(50%); white-space: nowrap; }
.pb-gauge span:nth-of-type(3) { left: 0; }

.qa { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0; }
.qa-b { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); font-size: 12px; font-weight: 600; transition: border-color .2s; }
.qa-b:hover { border-color: var(--line-2); }
.qa-b .i { width: 22px; height: 22px; color: var(--gold); }
.qa-b--gold { background: var(--gold-grad); color: #1b1408; border-color: transparent; }
.qa-b--gold .i { color: #1b1408; }

.d-sec { margin-top: 22px; }
.d-sec > h2 { font-size: 16px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.d-sec > h2::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--gold-grad); }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.spec { padding: 10px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 1px; }
.spec .i { width: 18px; height: 18px; color: var(--gold); margin-bottom: 4px; }
.spec small { font-size: 10.5px; color: var(--tx-3); }
.spec b { font-size: 13px; font-weight: 700; }
.feats { display: flex; flex-wrap: wrap; gap: 6px; }
.feats span { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-size: 12.5px; }
.feats .i { width: 14px; height: 14px; color: var(--ok); }
.loanbox { margin-top: 22px; padding: 16px; border-radius: 20px; position: relative; overflow: hidden; background: radial-gradient(140% 100% at 100% 0%, rgba(214, 180, 106, .28), transparent 60%), var(--card); border: 1px solid rgba(214, 180, 106, .45); }
.loanbox-h { display: flex; gap: 12px; align-items: center; }
.loanbox-h > .i { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--gold-grad); color: #1b1408; }
.loanbox-h strong { display: block; font-size: 15px; }
.loanbox-h small { color: var(--gold); font-size: 12px; font-weight: 600; }
.loanbox-g { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 14px 0 10px; }
.loanbox-g div { padding: 10px; border-radius: 12px; background: var(--bg-3); }
.loanbox-g small { display: block; font-size: 10.5px; color: var(--tx-3); }
.loanbox-g b { font-size: 13.5px; }
.loanbox p { font-size: 12.5px; color: var(--tx-2); }
.loanbox-cash { display: flex; align-items: center; gap: 6px; }
.loanbox-cash .i { width: 16px; height: 16px; color: var(--gold); }
.mapjump { width: 100%; margin-top: 22px; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; text-align: right; background: var(--card); border: 1px solid var(--line); background-image: repeating-linear-gradient(135deg, transparent 0 18px, rgba(214, 180, 106, .05) 18px 19px); }
.mapjump > .i:first-child { width: 42px; height: 42px; padding: 10px; border-radius: 13px; background: var(--bg-3); color: var(--gold); }
.mapjump span { flex: 1; display: flex; flex-direction: column; }
.mapjump small { color: var(--tx-3); font-size: 11.5px; }
.prose { font-size: 14px; color: var(--tx-2); line-height: 2; }
.prose h2, .prose h3 { color: var(--tx); margin: 1.2em 0 .5em; font-size: 16px; }
.prose a { color: var(--gold); }
video { width: 100%; border-radius: 16px; background: #000; }

/* Project */
.pj-prog { display: flex; align-items: center; gap: 16px; margin: 6px 0 4px; padding: 14px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.ring { position: relative; width: 96px; height: 96px; flex: none; display: grid; place-content: center; text-align: center; }
.ring svg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: var(--bg-3); stroke-width: 9; }
.ring .ring-v { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: calc(327 - 327 * var(--p) / 100); transition: stroke-dashoffset 1.2s var(--ease); }
.ring b { font-size: 20px; font-weight: 900; line-height: 1; }
.ring small { font-size: 10px; color: var(--tx-3); }
.stages { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; gap: 4px; }
.stages li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--tx-3); }
.stages i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; }
.stages .done { color: var(--tx-2); }
.stages .done i { background: var(--gold); border-color: var(--gold); }
.stages .cur { color: var(--tx); font-weight: 700; }
.stages .cur i { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(214, 180, 106, .2); }
.units { display: grid; gap: 8px; }
.unit { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.unit b { font-size: 14px; }
.unit span { font-size: 12px; color: var(--tx-2); display: flex; align-items: center; gap: 4px; grid-column: 1; }
.unit span .i { width: 14px; height: 14px; }
.unit em { grid-row: 1 / 3; grid-column: 2; align-self: center; font-style: normal; font-weight: 800; color: var(--gold); font-size: 13.5px; }
.plan { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.plan li { counter-increment: s; position: relative; padding: 6px 40px 14px 0; font-size: 13.5px; }
.plan li::before { content: counter(s, persian); position: absolute; right: 0; top: 2px; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--gold-grad); color: #1b1408; font-weight: 800; font-size: 13px; }
.plan li:not(:last-child)::after { content: ""; position: absolute; right: 13px; top: 32px; bottom: 0; width: 2px; background: var(--line-2); }

/* ---------- Hood ---------- */
.hood-hero h1 { font-size: 26px; font-weight: 900; margin: 4px 0; }
.hood-hero p { color: var(--tx-2); font-size: 13.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: 11.5px; padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(214, 180, 106, .4); color: var(--gold); }
.hood-cta {
	width: 100%; margin: 16px 0; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 20px; text-align: right;
	background: var(--gold-grad); color: #1b1408; box-shadow: 0 16px 34px -14px rgba(214, 180, 106, .8); position: relative; overflow: hidden;
}
.hood-cta::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(100%); animation: sheen 3.2s 1s infinite; }
@keyframes sheen { 60%, 100% { transform: translateX(-100%); } }
.hood-cta-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(0, 0, 0, .12); flex: none; }
.hood-cta span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.hood-cta b { font-size: 15px; }
.hood-cta small { font-size: 11.5px; opacity: .75; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kpi { padding: 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; }
.kpi small { font-size: 11px; color: var(--tx-3); }
.kpi b { font-size: 18px; font-weight: 900; }
.kpi b i { font-style: normal; font-size: 12px; color: var(--tx-3); font-weight: 600; }
.kpi b.up { color: var(--ok); }
.kpi em { font-style: normal; font-size: 10.5px; color: var(--gold); }
.meter { display: block; height: 5px; border-radius: 3px; background: var(--bg-3); margin-top: 6px; position: relative; overflow: hidden; }
.meter::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: auto; width: var(--v); background: var(--gold-grad); }
.estimator { margin-top: 12px; padding: 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.est-h { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.est-h .i { color: var(--gold); }
.est-out { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--tx-2); flex-wrap: wrap; gap: 4px; }
.est-out b { color: var(--tx); }
input[type=range] { width: 100%; accent-color: var(--gold); margin: 12px 0 6px; }

.hoods { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.hoods a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.hoods a:hover { border-color: rgba(214, 180, 106, .5); transform: translateX(-2px); }
.hd-sw { width: 10px; align-self: stretch; border-radius: 5px; flex: none; }
.hd-b { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hd-b b { font-size: 14px; }
.hd-b small { font-size: 11px; color: var(--tx-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-bar { display: block; height: 3px; border-radius: 2px; background: var(--bg-3); margin-top: 6px; position: relative; overflow: hidden; }
.hd-bar::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: auto; width: var(--w); background: var(--gold); opacity: .8; }
.hd-v { text-align: left; display: flex; flex-direction: column; }
.hd-v b { font-size: 13px; font-weight: 800; }
.hd-v small { font-size: 10.5px; color: var(--ok); }

/* ---------- Lists / filters ---------- */
.lfilter { display: grid; gap: 8px; margin-bottom: 16px; position: sticky; top: -1px; z-index: 5; padding: 8px 0; background: var(--glass-2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.lfilter-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 6px; }
.lfilter-row--sw { display: flex; align-items: center; gap: 6px; }
.lfilter select { height: 38px; }
.lcount { margin-right: auto; font-size: 12px; color: var(--tx-2); font-weight: 600; }
.tog input { position: absolute; opacity: 0; }
.tog span { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 11px; border-radius: 10px; border: 1px solid var(--line); font-size: 12px; font-weight: 600; cursor: pointer; }
.tog .i { width: 15px; height: 15px; color: var(--gold); }
.tog input:checked + span { background: var(--gold-grad); color: #1b1408; border-color: transparent; }
.tog input:checked + span .i { color: inherit; }
.tog input:focus-visible + span { outline: 2px solid var(--gold); }

.seg { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--bg-3); }
.seg > button, .seg > label { flex: 1; }
.seg button, .seg label span { display: flex; align-items: center; justify-content: center; gap: 5px; height: 34px; padding: 0 10px; border-radius: 10px; font-size: 12.5px; font-weight: 600; color: var(--tx-2); white-space: nowrap; transition: all .2s; cursor: pointer; }
.seg .i { width: 16px; height: 16px; }
.seg button.is-on, .seg input:checked + span { background: var(--card); color: var(--tx); box-shadow: var(--shadow-sm); }
.seg label input { position: absolute; opacity: 0; pointer-events: none; }
.seg--scroll { overflow-x: auto; scrollbar-width: none; }
.seg--tabs { margin-bottom: 16px; }

.pager { display: flex; justify-content: center; gap: 6px; margin: 20px 0; flex-wrap: wrap; }
.pager a, .pager span { min-width: 38px; height: 38px; padding: 0 10px; display: grid; place-items: center; border-radius: 11px; background: var(--card); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.pager .current { background: var(--gold-grad); color: #1b1408; border-color: transparent; }

.empty { text-align: center; padding: 36px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty > .i { width: 54px; height: 54px; padding: 13px; border-radius: 18px; background: var(--bg-3); color: var(--gold); }
.empty strong { font-size: 16px; }
.empty p { color: var(--tx-2); font-size: 13px; max-width: 320px; }
.empty--sm { padding: 20px 10px; }
.big404 { font-size: 84px; font-weight: 900; line-height: 1; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro-card { display: flex; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); margin-bottom: 14px; font-size: 12.5px; color: var(--tx-2); }
.intro-card .i { color: var(--gold); margin-top: 3px; }
.intro-card p { margin: 0; }
.skel { height: 230px; border-radius: 20px; background: linear-gradient(90deg, var(--card) 0%, var(--bg-3) 50%, var(--card) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.skel--row { height: 54px; border-radius: 14px; }

/* ---------- Forms ---------- */
.fld { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.fld > label { font-size: 12.5px; font-weight: 600; color: var(--tx-2); }
input[type=text], input[type=tel], input[type=search], input[type=email], select, textarea {
	width: 100%; height: 46px; padding: 0 14px; border-radius: 13px; border: 1px solid var(--line-2); background: var(--card);
	font-size: 14.5px; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
select { padding-left: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a08a5a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 12px center; background-size: 16px; }
textarea { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.8; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(214, 180, 106, .15); }
input::placeholder, textarea::placeholder { color: var(--tx-3); }
input[dir=ltr] { text-align: left; }
input[dir=ltr]::placeholder { text-align: left; }
.fld.has-err input, .fld.has-err select { border-color: var(--err); box-shadow: 0 0 0 4px rgba(239, 91, 91, .12); }
.fld .err { color: var(--err); font-size: 11.5px; min-height: 0; }
.fld .err:empty { display: none; }
.fld .hint { font-size: 11.5px; color: var(--tx-3); }
.fld .hint.ok { color: var(--ok); }
.fld.has-err .hint { display: none; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.phone-in { position: relative; }
.phone-in input { padding-right: 40px; letter-spacing: .03em; font-feature-settings: "tnum"; }
.phone-flag { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 18px; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cform-types { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.pill-r input { position: absolute; opacity: 0; }
.pill-r span { display: inline-flex; height: 34px; align-items: center; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all .2s; }
.pill-r input:checked + span { background: var(--tx); color: var(--bg); border-color: var(--tx); }
.pill-r input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.switch { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; }
.switch span { width: 42px; height: 25px; border-radius: 13px; background: var(--bg-3); border: 1px solid var(--line-2); position: relative; transition: background .25s; flex: none; }
.switch span::after { content: ""; position: absolute; top: 2px; right: 2px; width: 19px; height: 19px; border-radius: 50%; background: var(--tx-2); transition: transform .3s var(--spring), background .25s; }
.switch input:checked + span { background: var(--gold); border-color: var(--gold); }
.switch input:checked + span::after { transform: translateX(-17px); background: #1b1408; }
.switch input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.fld--sw { justify-content: flex-end; padding-bottom: 10px; }
.cform { position: relative; }
.cform-note { display: flex; align-items: center; gap: 6px; justify-content: center; font-size: 11.5px; color: var(--tx-3); margin: 10px 0 0; }
.cform-note .i { width: 14px; height: 14px; color: var(--ok); }
.cform.is-done > :not(.cform-ok) { visibility: hidden; }
.cform-ok { position: absolute; top: -4px; right: -4px; bottom: -4px; left: -4px; z-index: 6; background: var(--bg-2); border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 20px; animation: fadeUp .4s var(--ease); }
.ok-ic { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: rgba(52, 199, 138, .15); color: var(--ok); animation: pop .5s var(--spring); }
.ok-ic .i { width: 36px; height: 36px; stroke-width: 2.4; }
.cform-ok strong { font-size: 18px; }
.cform-ok p { color: var(--tx-2); font-size: 13px; }
.consult-inline .cform-ok { background: var(--card); }
.consult-inline { padding: 16px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.steps3 { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.steps3 li { text-align: center; font-size: 11.5px; color: var(--tx-2); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.steps3 b { width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center; background: var(--gold-grad); color: #1b1408; font-weight: 900; }
.range2 { display: flex; align-items: center; gap: 8px; }
.range2 span { color: var(--tx-3); font-size: 12px; }

/* ---------- Calculator ---------- */
.calc { padding: 16px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.calc-out > div { padding: 12px; border-radius: 14px; background: var(--bg-3); display: flex; flex-direction: column; }
.calc-out small { font-size: 11px; color: var(--tx-3); }
.calc-out b { font-size: 14px; font-weight: 800; }
.co-main { grid-column: 1 / -1; background: linear-gradient(150deg, rgba(214, 180, 106, .2), rgba(214, 180, 106, .04)) !important; border: 1px solid rgba(214, 180, 106, .35); }
.co-main b { font-size: 22px; font-weight: 900; color: var(--gold); }
.donut { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.donut i { width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(var(--tx-2) 0 var(--p, 70%), var(--gold) var(--p, 70%) 100%); -webkit-mask: radial-gradient(circle, transparent 54%, #000 55%); mask: radial-gradient(circle, transparent 54%, #000 55%); }
.donut span { font-size: 12px; display: flex; gap: 12px; }
.donut b::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 3px; background: var(--tx-2); margin-left: 4px; }
.donut b.gold::before { background: var(--gold); }

/* ---------- About / contact / support ---------- */
.about-hero { text-align: center; padding: 10px 0 18px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.about-hero img { filter: drop-shadow(0 8px 30px rgba(214, 180, 106, .3)); }
.about-hero h1 { font-size: 22px; }
.about-hero h1 small { display: block; font-size: 12px; color: var(--tx-3); font-weight: 500; letter-spacing: .15em; text-transform: uppercase; }
.lead { color: var(--tx-2); margin: 0; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0; }
.values div { padding: 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.values .i { width: 26px; height: 26px; color: var(--gold); }
.values b { display: block; margin: 6px 0 2px; font-size: 13.5px; }
.values p { font-size: 11.5px; color: var(--tx-2); margin: 0; line-height: 1.8; }
.services-l h2 { font-size: 16px; margin-bottom: 8px; }
.services-l ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.services-l li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 13px; background: var(--card); border: 1px solid var(--line); font-size: 13px; }
.services-l .i { color: var(--gold); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cc { padding: 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; transition: border-color .2s, transform .2s; }
.cc:hover { border-color: rgba(214, 180, 106, .5); transform: translateY(-2px); }
.cc .i { width: 24px; height: 24px; color: var(--gold); margin-bottom: 6px; }
.cc small { font-size: 11px; color: var(--tx-3); }
.cc b { font-size: 14.5px; font-weight: 800; text-align: right; }
.cc--gold { background: var(--gold-grad); color: #1b1408; border-color: transparent; }
.cc--gold .i, .cc--gold small { color: #1b1408; }
.addr { display: flex; align-items: center; gap: 12px; margin: 14px 0 18px; padding: 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.addr > .i { width: 26px; height: 26px; color: var(--gold); }
.addr div { flex: 1; }
.addr p { margin: 0; font-size: 13px; color: var(--tx-2); }
.addr small { font-size: 11px; color: var(--tx-3); }
.search-faq { position: relative; margin-bottom: 12px; }
.search-faq .i { position: absolute; right: 14px; top: 13px; color: var(--tx-3); }
.search-faq input { padding-right: 42px; }
.faq h3 { font-size: 13px; color: var(--gold); margin: 18px 0 8px; }
.faq details { border-radius: 14px; background: var(--card); border: 1px solid var(--line); margin-bottom: 6px; overflow: hidden; }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 14px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { width: 16px; height: 16px; color: var(--tx-3); transition: transform .3s; }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details p { padding: 0 14px 14px; margin: 0; font-size: 13px; color: var(--tx-2); line-height: 2; }
.support-cta { margin: 20px 0; text-align: center; }

/* ---------- Mini footer ---------- */
.mfoot { margin-top: 32px; padding: 22px 6px 6px; border-top: 1px solid var(--line); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.mfoot p { font-size: 12px; color: var(--tx-2); margin: 0; }
.mfoot-links { display: flex; gap: 16px; font-size: 12.5px; }
.mfoot-links a:hover { color: var(--gold); }
.mfoot-social { display: flex; gap: 8px; }
.mfoot-social a { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); color: var(--gold); }
.mfoot small { font-size: 11px; color: var(--tx-3); }

/* ---------- Overlays ---------- */
.ovl { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 100; }
.ovl-bg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(5, 6, 9, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.ovl.in .ovl-bg { opacity: 1; }
.drawer {
	position: absolute; top: 0; bottom: 0; right: 0; width: 88vw; max-width: 360px; background: var(--bg-2); border-left: 1px solid var(--line);
	padding: calc(16px + var(--safe-t)) 16px calc(16px + var(--safe-b)); overflow-y: auto; display: flex; flex-direction: column; gap: 14px;
	transform: translateX(100%); transition: transform .4s var(--spring);
}
.ovl.in .drawer { transform: none; }
.drawer-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.drawer-head img { width: 64px; }
.drawer-head div { flex: 1; display: flex; flex-direction: column; }
.drawer-head strong { font-size: 15px; }
.drawer-head strong small { font-weight: 500; color: var(--tx-3); font-size: 11px; }
.drawer-head span { font-size: 11.5px; color: var(--tx-2); }
.drawer-nav ul { list-style: none; margin: 0; padding: 0; }
.drawer-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 8px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.drawer-nav a:hover { background: var(--bg-3); }
.drawer-nav a > .i:first-child { color: var(--gold); }
.drawer-nav span { flex: 1; }
.drawer-nav .chev { width: 16px; height: 16px; color: var(--tx-3); }
.drawer-contact { display: grid; gap: 6px; margin-top: auto; }
.drawer-contact a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 13px; background: var(--card); border: 1px solid var(--line); font-size: 12.5px; }
.drawer-contact .i { color: var(--gold); width: 18px; height: 18px; }
.drawer-contact span { color: var(--tx-2); flex: 1; }
.drawer-install { display: flex; justify-content: center; gap: 8px; align-items: center; height: 44px; border-radius: 13px; border: 1px dashed rgba(214, 180, 106, .6); color: var(--gold); font-weight: 700; font-size: 13px; }

.search-box {
	position: absolute; top: calc(10px + var(--safe-t)); right: 10px; left: 10px; max-width: 640px; margin: 0 auto;
	background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden;
	transform: translateY(-12px); opacity: 0; transition: all .3s var(--spring);
}
.ovl.in .search-box { transform: none; opacity: 1; }
.search-in { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.search-in > .i { color: var(--gold); }
.search-in input { border: 0; background: transparent; height: 44px; padding: 0; box-shadow: none !important; font-size: 15px; }
.search-res { max-height: 62vh; max-height: min(62vh, 520px); overflow-y: auto; padding: 6px 14px 14px; }
.search-res h4 { font-size: 11.5px; color: var(--tx-3); font-weight: 600; margin: 12px 0 6px; }
.s-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.s-chips a, .s-chips button { padding: 5px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 12.5px; }
.s-chips a:hover, .s-chips button:hover { border-color: var(--gold); }
.s-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; }
.s-row:hover { background: var(--card); }
.s-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--bg-3); display: grid; place-items: center; overflow: hidden; flex: none; color: var(--gold); }
.s-ic img { width: 100%; height: 100%; object-fit: cover; }
.s-row span:last-child { display: flex; flex-direction: column; min-width: 0; }
.s-row b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-row small { font-size: 11.5px; color: var(--tx-3); }

.ovl--modal .modal {
	position: absolute; right: 0; left: 0; bottom: 0; max-height: 92%; overflow-y: auto; overscroll-behavior: contain;
	background: var(--bg-2); border-radius: 26px 26px 0 0; border: 1px solid var(--line-2); border-bottom: 0;
	padding: 6px 16px calc(18px + var(--safe-b)); transform: translateY(100%); transition: transform .42s var(--spring);
}
.ovl.in .modal { transform: none; }
.modal-head { position: sticky; top: -6px; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; margin-bottom: 6px; background: var(--bg-2); }
.modal-head strong { font-size: 16px; display: block; }
.modal-head small { color: var(--tx-2); font-size: 12px; }
.city-list { display: grid; gap: 8px; }
.city-b { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-weight: 700; }
.city-b .i { color: var(--gold); }
.city-b.is-on { border-color: var(--gold); }
.fform .fl { display: block; font-size: 12.5px; font-weight: 600; color: var(--tx-2); margin: 14px 0 6px; }
.fform .fl:first-child { margin-top: 0; }
.sw-row { display: grid; gap: 12px; margin: 18px 0; }
.fform-act { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; position: sticky; bottom: -18px; padding: 10px 0; background: var(--bg-2); }

/* Toasts */
.toasts { position: fixed; z-index: 400; top: calc(14px + var(--safe-t)); left: 50%; transform: translateX(-50%); display: grid; gap: 6px; width: max-content; max-width: 92vw; pointer-events: none; }
.toast { padding: 10px 16px; border-radius: 14px; background: var(--tx); color: var(--bg); font-size: 13px; font-weight: 600; box-shadow: var(--shadow); transform: translateY(-14px); opacity: 0; transition: all .35s var(--spring); text-align: center; }
.toast.in { transform: none; opacity: 1; }
.toast--err { background: var(--err); color: #fff; }
.toast--ok { background: var(--gold); color: #1b1408; }

/* =====================================================================
   MAP (DaraMap)
   ===================================================================== */
.dmap { position: absolute; top: 0; right: 0; bottom: 0; left: 0; overflow: hidden; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; background: var(--m-sea); outline: none; }
.dmap.is-grabbing { cursor: grabbing; }
.dmap-svg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; display: block; }
.dm-sea { fill: var(--m-sea); }
.dm-wave { fill: none; stroke: var(--m-wave); stroke-width: 1; }
.dm-dot { fill: var(--m-dot); }
.dm-shore path { fill: none; stroke: var(--m-shore); vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.dm-shore-0 { stroke-opacity: .05; }
.dm-shore-1 { stroke-opacity: .07; }
.dm-shore-2 { stroke-opacity: .1; }
.dm-shore-3 { stroke-opacity: .16; }
.dm-land { fill: var(--m-land); }
.dm-mt path { fill: none; stroke: var(--m-mt); stroke-width: 1; vector-effect: non-scaling-stroke; }
.dm-hood { fill: var(--m-hood); stroke: var(--m-hood-line); stroke-width: 1.2; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill .3s, opacity .3s, stroke .3s; stroke-linejoin: round; }
.dm-hood:hover { fill: var(--m-hood-h); }
.dmap[data-mode="price"] .dm-hood, .dmap[data-mode="growth"] .dm-hood { fill-opacity: .42; stroke: rgba(255, 255, 255, .22); }
[data-theme="light"] .dmap[data-mode="price"] .dm-hood, [data-theme="light"] .dmap[data-mode="growth"] .dm-hood { fill-opacity: .5; stroke: rgba(255, 255, 255, .8); }
.dmap[data-mode="price"] .dm-hood:hover, .dmap[data-mode="growth"] .dm-hood:hover { fill-opacity: .65; }
.dm-hood.is-active { fill: rgba(214, 180, 106, .2); stroke: var(--gold); stroke-width: 2.6; fill-opacity: 1; }
.dmap[data-mode="price"] .dm-hood.is-active, .dmap[data-mode="growth"] .dm-hood.is-active { fill-opacity: .7; stroke: var(--gold); }
.dmap.has-active-hood .dm-hood:not(.is-active) { opacity: .55; }
.dm-r, .dm-r-casing { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.dm-r { stroke: var(--m-road); }
.dm-r-casing { stroke: var(--m-casing); }
.dm-r.dm-hw { stroke: var(--m-hw); stroke-width: 3.2; }
.dm-r-casing.dm-hw { stroke-width: 5.2; }
.dm-r.dm-ring { stroke: var(--m-ring); stroke-width: 2.8; }
.dm-r-casing.dm-ring { stroke-width: 4.8; }
.dm-r.dm-ave { stroke-width: 2.2; }
.dm-r-casing.dm-ave { stroke-width: 4; }
.dm-r.dm-st { stroke-width: 1.2; }
.dm-r-casing.dm-st { stroke-width: 2.6; }
.dmap[data-z="10"] .dm-st, .dmap[data-z="11"] .dm-st, .dmap[data-z="12"] .dm-st { display: none; }
.dmap[data-z="10"] .dm-ave, .dmap[data-z="11"] .dm-ave { display: none; }
.dm-runway { fill: none; stroke: var(--m-runway); stroke-width: 7; vector-effect: non-scaling-stroke; }
.dm-coast { fill: none; stroke: var(--m-coast); stroke-width: 1.1; vector-effect: non-scaling-stroke; }
.dm-ferry-line { fill: none; stroke: var(--m-shore); stroke-opacity: .45; stroke-width: 1.2; stroke-dasharray: 3 6; vector-effect: non-scaling-stroke; animation: dash 12s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -90; } }
.dm-boat { fill: var(--gold); }
.dm-draft-poly { fill: rgba(214, 180, 106, .18); stroke: var(--gold); stroke-width: 2; stroke-dasharray: 6 4; vector-effect: non-scaling-stroke; }
.dm-vig { pointer-events: none; }
[data-theme="light"] .dm-vig { display: none; }

.dmap-ov { position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; }
.dmap-ov > div { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.dmap-ov > div > * { position: absolute; left: 0; top: 0; will-change: transform; }

.dm-gl { translate: -50% -50%; white-space: nowrap; font-size: 11px; color: var(--tx-3); text-shadow: 0 1px 2px var(--m-label-s), 0 0 8px var(--m-label-s); }
.dm-gl--sea { color: var(--m-sea-label); font-size: 15px; letter-spacing: .3em; font-weight: 300; }
.dm-gl--xl { font-size: 22px; letter-spacing: .5em; }
.dm-gl--isl { color: var(--m-sea-label); font-weight: 600; font-size: 12px; }
.dm-gl--mt { color: var(--gold); opacity: .55; font-size: 11px; letter-spacing: .1em; }
.dm-gl--poi { color: var(--tx-2); font-size: 10.5px; font-weight: 600; }
.dm-gl--poi::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 2px; background: var(--gold); margin-left: 4px; vertical-align: middle; transform: rotate(45deg); }
.dm-gl--road { color: var(--gold); opacity: .7; font-size: 10.5px; }

.dm-hl { translate: -50% -50%; pointer-events: auto; cursor: pointer; text-align: center; white-space: nowrap; display: flex; flex-direction: column; align-items: center; line-height: 1.3; transition: opacity .2s; }
.dm-hl b { font-size: 11.5px; font-weight: 700; color: var(--m-label); text-shadow: 0 1px 2px var(--m-label-s), 0 0 10px var(--m-label-s), 0 0 3px var(--m-label-s); }
.dm-hl small { display: none; font-size: 10px; color: var(--gold); font-weight: 700; text-shadow: 0 0 6px var(--m-label-s), 0 0 2px var(--m-label-s); }
.dm-hl em { display: none; position: absolute; top: -8px; left: -14px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--gold); color: #1b1408; font-style: normal; font-size: 10px; font-weight: 800; line-height: 18px; }
.dm-hls.is-detail .dm-hl small { display: block; }
.dm-hls.is-detail .dm-hl em { display: block; }
.dm-hl.is-active b { color: var(--gold); font-size: 13px; }
.dm-hl.is-active { z-index: 3; }

.dm-mk {
	translate: -50% calc(-100% - 6px); pointer-events: auto; display: inline-flex; align-items: center; gap: 3px; height: 28px; padding: 0 10px; border-radius: 10px;
	background: var(--mk-bg); color: var(--mk-tx); font-size: 11.5px; font-weight: 800; white-space: nowrap; border: 1px solid var(--line-2);
	box-shadow: 0 6px 16px -4px rgba(0, 0, 0, .45); transition: scale .2s var(--spring), background .2s, color .2s; z-index: 1;
	font-family: var(--font);
}
.dm-mk::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -5px; border: 5px solid transparent; border-top-color: var(--mk-bg); border-bottom: 0; }
.dm-mk::before { content: ""; position: absolute; left: 50%; bottom: -12px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(214, 180, 106, .25); }
.dm-mk--rent, .dm-mk--mortgage { color: #3fb6a8; }
[data-theme="dark"] .dm-mk--rent, [data-theme="dark"] .dm-mk--mortgage { color: #7fe0d2; }
.dm-mk--presale { color: var(--violet); }
.dm-mk em { font-style: normal; font-size: 9.5px; padding: 0 5px; border-radius: 6px; background: var(--gold-grad); color: #1b1408; line-height: 16px; }
.dm-mk.is-feat { border-color: rgba(214, 180, 106, .8); box-shadow: 0 0 0 3px rgba(214, 180, 106, .18), 0 6px 16px -4px rgba(0, 0, 0, .45); }
.dm-mk.is-off { opacity: .55; }
.dm-mk:hover { scale: 1.08; z-index: 5; }
.dm-mk.is-active { background: var(--gold); color: #1b1408; scale: 1.15; z-index: 6; border-color: var(--gold); }
.dm-mk.is-active::after { border-top-color: var(--gold); }
.dm-mk.is-active em { background: #1b1408; color: var(--gold); }

.dm-pj { translate: -21px -50%; pointer-events: auto; display: flex; align-items: center; gap: 0; height: 42px; z-index: 2; font-family: var(--font); }
.dm-pj i { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-grad); color: #1b1408; transform: rotate(45deg); box-shadow: 0 8px 20px -6px rgba(214, 180, 106, .7); flex: none; z-index: 1; }
.dm-pj i svg { width: 20px; height: 20px; transform: rotate(-45deg); fill: none; stroke: currentColor; stroke-width: 1.8; }
.dm-pj span { display: flex; flex-direction: column; align-items: flex-start; padding: 3px 12px 3px 10px; margin-right: -10px; padding-right: 18px; border-radius: 0 10px 10px 0; background: var(--mk-bg); border: 1px solid rgba(214, 180, 106, .5); border-right: 0; line-height: 1.35; text-align: right; }
.dm-pj b { font-size: 11px; color: var(--mk-tx); white-space: nowrap; }
.dm-pj small { font-size: 10px; color: var(--gold); white-space: nowrap; font-weight: 700; }
.dmap[data-z="10"] .dm-pj span, .dmap[data-z="11"] .dm-pj span, .dmap[data-z="12"] .dm-pj span { display: none; }
.dm-pj.is-active i { box-shadow: 0 0 0 5px rgba(214, 180, 106, .35); }
.dm-pj::after { content: ""; position: absolute; right: 0; top: 0; width: 42px; height: 42px; border-radius: 14px; border: 2px solid var(--gold); transform: rotate(45deg); animation: ping 2.4s infinite; pointer-events: none; }
@keyframes ping { 0% { opacity: .8; scale: 1; } 80%, 100% { opacity: 0; scale: 1.7; } }

.dm-cl { translate: -50% -50%; pointer-events: auto; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; z-index: 3; background: var(--mk-bg); border: 2px solid var(--gold); color: var(--mk-tx); font-weight: 900; font-size: 13px; box-shadow: 0 0 0 6px rgba(214, 180, 106, .16), 0 8px 20px -6px rgba(0, 0, 0, .5); transition: scale .2s var(--spring); font-family: var(--font); }
.dm-cl:hover { scale: 1.1; }
.dm-cl.has-proj { background: var(--gold-grad); color: #1b1408; }

.dm-user { translate: -50% -50%; width: 20px; height: 20px; }
.dm-user i { position: absolute; top: 3px; right: 3px; bottom: 3px; left: 3px; border-radius: 50%; background: #3b82f6; border: 3px solid #fff; box-shadow: 0 0 0 0 rgba(59, 130, 246, .6); animation: userPulse 2s infinite; }
@keyframes userPulse { 70% { box-shadow: 0 0 0 16px rgba(59, 130, 246, 0); } 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); } }
.dm-office { translate: -50% -100%; pointer-events: auto; display: flex; flex-direction: column; align-items: center; z-index: 4; font-family: var(--font); }
.dm-office span { width: 46px; height: 46px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #fff url(../img/logo.png) center/72% no-repeat; border: 2px solid var(--gold); box-shadow: 0 8px 24px -6px rgba(214, 180, 106, .7); }
.dm-office b { margin-top: 6px; font-size: 10.5px; padding: 1px 8px; border-radius: 6px; background: var(--gold); color: #1b1408; white-space: nowrap; }
.dm-office.is-mini span { width: 30px; height: 30px; }
.dm-office.is-mini b { display: none; }
.dm-vertex { translate: -50% -50%; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); border: 2px solid #fff; }
.dm-draft-pin { translate: -50% -100%; width: 22px; height: 22px; border-radius: 50% 50% 50% 0; transform-origin: center; background: #e5484d; border: 3px solid #fff; rotate: -45deg; }
.dm-scale { position: absolute; z-index: 2; left: 60px; bottom: calc(var(--tab-h) + 8px); font-size: 10px; color: var(--tx-2); display: flex; align-items: center; gap: 6px; pointer-events: none; opacity: .8; }
.dm-scale i { display: block; height: 6px; border: 1.5px solid var(--tx-2); border-top: 0; }

/* Booting: keep UI hidden until ready */
.app.is-booting .top, .app.is-booting .chips, .app.is-booting .sheet, .app.is-booting .tabbar, .app.is-booting .mapctl { opacity: 0; }
.app.is-ready .top, .app.is-ready .chips, .app.is-ready .tabbar, .app.is-ready .mapctl { animation: fadeUp .6s var(--ease) both; }
.app.is-ready .sheet { animation: sheetIn .6s var(--ease) both; }
@keyframes sheetIn { from { opacity: 0; } to { opacity: 1; } }

/* =====================================================================
   Tablet & desktop
   ===================================================================== */
@media (min-width: 600px) {
	.search-pill kbd { display: inline-block; }
	.city-pill { display: inline-flex; }
	.cards { grid-template-columns: 1fr 1fr; }
	.rail-x > .card { flex-basis: 46%; }
	.specs { grid-template-columns: repeat(4, 1fr); }
	.top, .sheet, .tabbar { left: 0; right: 0; margin: 0 auto; width: calc(100% - 20px); max-width: 560px; }
	.sheet, .tabbar { width: 100%; max-width: 560px; }
	.tabbar { border-radius: 18px 18px 0 0; border: 1px solid var(--line); border-bottom: 0; }
	.peek { max-width: 460px; right: 50%; left: auto; transform: translate(50%, 30px) scale(.97); }
	.peek.in { transform: translate(50%, 0); }
	.ovl--modal .modal { right: 50%; left: auto; width: 540px; transform: translate(50%, 100%); }
	.ovl.in .modal { transform: translate(50%, 0); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* ---------- Simple mode ---------- */
.top, .mapctl, .tabbar, .peek, .sheet { -webkit-backdrop-filter: none; backdrop-filter: none; }
.tab-cta { color: var(--gold-2) !important; }
.tab-cta .i { color: var(--gold); }
.tabbar .is-on .i { filter: none; }
.home .hero { padding: 2px 0 14px; }
.home .hero h1 { font-size: 20px; font-weight: 800; }
.home .hero p { color: var(--tx-2); font-size: 13.5px; margin: 4px 0 0; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px; border-radius: 14px; background: var(--bg-3); font-size: 13px; font-weight: 700; }
.quick a .i { color: var(--gold); width: 22px; height: 22px; }
.quick a:hover { background: var(--gold-3); }
.home .btn--block { margin-bottom: 6px; }
/* calmer map */
.dm-ferry-line, .dm-boat, .dm-wave, .dm-vig, .dm-gl--mt, .dm-gl--road, .dm-gl--poi { display: none; }
.dm-pj::after { display: none; }
.dm-mk { box-shadow: 0 2px 8px -2px rgba(0, 0, 0, .2); }
.dm-mk::before { box-shadow: none; }
.dm-cl { box-shadow: 0 2px 8px -2px rgba(0, 0, 0, .2); }
.dm-pj i, .btn--gold, .btn--gold:hover { box-shadow: none; }
.dm-office span { box-shadow: 0 2px 8px -2px rgba(0, 0, 0, .25); }
/* light placeholders & badges */
.ph { background: linear-gradient(160deg, #f4efe4, #ebe4d4); color: rgba(150, 114, 42, .45); }
.card-media::after { top: 65%; right: 0; bottom: 0; left: 0; background: linear-gradient(to top, rgba(0, 0, 0, .18), transparent); }
.bdg { background: rgba(255, 255, 255, .92); color: var(--tx); -webkit-backdrop-filter: none; backdrop-filter: none; }
.bdg .i { color: var(--gold); }
.bdg--loan { background: var(--gold-grad); color: #1b1408; }
.fav { background: rgba(255, 255, 255, .92); color: var(--tx); -webkit-backdrop-filter: none; backdrop-filter: none; }
.bdg--sale, .bdg--presale, .bdg--proj { color: var(--gold-2); }
.bdg--rent, .bdg--mortgage { color: #1f8f82; }
.bdg--sea { color: #2a7f9e; }
.bdg--feat { background: #fff; color: var(--gold-2); border-color: var(--gold); }

/* ---------- Map = neighbourhoods only (consultation map) ---------- */
.dm-r, .dm-r-casing, .dm-runway, .dm-mt, .dm-gl, .dm-mk, .dm-pj, .dm-cl, .dm-office, .dm-scale { display: none !important; }
.dm-hood { fill: rgba(179, 139, 61, .07); stroke: rgba(150, 114, 42, .45); stroke-width: 1.2; }
.dm-hood:hover { fill: rgba(179, 139, 61, .22); }
.dm-hood.is-active { fill: rgba(179, 139, 61, .35); stroke: var(--gold-2); stroke-width: 2.4; }
.dmap.has-active-hood .dm-hood:not(.is-active) { opacity: 1; }
.dm-hl small, .dm-hl em, .dm-hls.is-detail .dm-hl small, .dm-hls.is-detail .dm-hl em { display: none !important; }
.dm-hl b { font-size: 12px; color: #2b2a26; }
.dm-hl.is-active b { color: var(--gold-2); font-size: 13px; }

/* ---------- Street map (MapLibre, local tiles) ---------- */
#map.glmap { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; background: #f2efe9; font-family: var(--font); }
.glmap .maplibregl-ctrl-bottom-right, .glmap .maplibregl-ctrl-bottom-left { bottom: calc(var(--tab-h) + 4px); }
.app[data-view] .glmap .maplibregl-ctrl-attrib { font-size: 10px; }
.gl-user { width: 20px; height: 20px; }
.gl-user i { position: absolute; top: 3px; right: 3px; bottom: 3px; left: 3px; border-radius: 50%; background: #3b82f6; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(59, 130, 246, .2); }

/* ---------- Phone: country code picker ---------- */
@font-face { font-family: "DaraFlags"; src: url(../vendor/fonts/flags/TwemojiCountryFlags.woff2) format("woff2"); font-display: swap; unicode-range: U+1F1E6-1F1FF; }
.flag { font-family: "DaraFlags", "Apple Color Emoji", "Segoe UI Emoji", sans-serif; font-size: 18px; line-height: 1; }
.phone-in { position: relative; display: flex; align-items: stretch; gap: 0; border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg-2, #fff); transition: border-color .2s, box-shadow .2s; }
.phone-in:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 162, 79, .14); }
.has-err .phone-in { border-color: #e5484d; }
.phone-in input { flex: 1; min-width: 0; border: 0 !important; box-shadow: none !important; background: transparent !important; padding: 0 12px !important; letter-spacing: .04em; font-feature-settings: "tnum"; }
.cc-btn { display: flex; align-items: center; gap: 6px; padding: 0 10px 0 12px; border: 0; border-inline-end: 1px solid var(--line); background: transparent; color: var(--tx); font: inherit; font-size: 14px; cursor: pointer; border-radius: 14px 0 0 14px; }
.cc-btn b { font-weight: 600; direction: ltr; font-feature-settings: "tnum"; }
.cc-btn svg { width: 14px; height: 14px; fill: none; stroke: var(--tx-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.cc-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.cc-btn:hover { background: rgba(0, 0, 0, .03); }
.fld { position: relative; }
.cc-pop { position: absolute; z-index: 30; left: -1px; right: -1px; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 18px 40px rgba(20, 20, 20, .16); padding: 8px; animation: ccIn .18s var(--ease); }
@keyframes ccIn { from { opacity: 0; transform: translateY(-6px); } }
.cc-q { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; font: inherit; font-size: 14px; background: var(--bg-2, #f6f5f2); margin-bottom: 6px; }
.cc-q:focus { outline: none; border-color: var(--gold); }
.cc-list { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow-y: auto; overscroll-behavior: contain; }
.cc-list li.sep { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.cc-list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: none; border-radius: 10px; font: inherit; font-size: 14px; color: var(--tx); cursor: pointer; text-align: right; }
.cc-list button:hover, .cc-list button:focus-visible { background: rgba(201, 162, 79, .1); outline: none; }
.cc-list button[aria-selected="true"] { background: rgba(201, 162, 79, .16); font-weight: 600; }
.cc-list .nm { flex: 1; }
.cc-list bdi { color: var(--tx-2); font-size: 13px; font-feature-settings: "tnum"; }
.cc-none { padding: 16px; text-align: center; color: var(--tx-2); font-size: 13px; }
.hint.ok { color: #1f9d6b; display: inline-flex; align-items: center; gap: 4px; }
.hint.ok .i { width: 14px; height: 14px; }

/* ---------- Form adapts to request type ---------- */
.cform [hidden] { display: none !important; }
.cform .grid2.one { grid-template-columns: 1fr; }
.cform .fld, .cform .grid2 { animation: fldIn .25s var(--ease); }
@keyframes fldIn { from { opacity: 0; } }

/* ---------- Home panel ---------- */
.btn--lg { min-height: 54px; font-size: 16px; border-radius: 16px; box-shadow: 0 8px 22px rgba(201, 162, 79, .32); }
.home .hero { margin-bottom: 14px; }
.home .btn--lg { margin-bottom: 12px; }

/* No auto-zoom on iPhone when focusing a field. */
@media (pointer: coarse) { input, select, textarea, .cc-q, .search-in input { font-size: 16px !important; } }

/* Map hover tooltip (desktop). */
.gl-tip .maplibregl-popup-content { padding: 7px 12px; border-radius: 12px; font: 600 13px/1.5 var(--font); color: var(--tx); box-shadow: 0 8px 24px rgba(0, 0, 0, .14); direction: rtl; }
.gl-tip .maplibregl-popup-content small { display: block; font-weight: 400; font-size: 11px; color: var(--gold-2); }
.gl-tip .maplibregl-popup-tip { display: none; }
.gl-tip { pointer-events: none; }

/* ---------- Compact home panel: the map stays the hero ---------- */
.home .hero { padding: 0; margin: 0 0 10px; }
.home .hero h1 { font-size: 17px; font-weight: 800; margin: 0; }
.home .hero p { font-size: 12.5px; margin: 2px 0 0; }
.home .btn--block { min-height: 46px; margin-bottom: 8px; }
.home .quick { display: flex; gap: 6px; margin-bottom: 4px; }
.home .quick a { flex: 1; flex-direction: row; justify-content: center; gap: 6px; padding: 8px 4px; border-radius: 12px; font-size: 12.5px; }
.home .quick a .i { width: 17px; height: 17px; }
.app[data-view="home"] .sheet-bar { height: 22px; padding: 0; }
.app[data-view="home"] .sheet-toggle, .app[data-view="home"] .sheet-back { display: none; }
.app[data-view="home"] .sheet { border-radius: 22px 22px 0 0; }

/* ---------- Bottom bar: short floating capsule (same on mobile & desktop) ---------- */
:root:root { --tab-h: calc(70px + var(--safe-b)); }
.app .tabbar {
	left: 0; right: 0; bottom: calc(10px + var(--safe-b)); margin: 0 auto;
	width: max-content; max-width: calc(100% - 24px); height: 56px; padding: 0 6px;
	grid-template-columns: repeat(4, 66px); gap: 2px;
	background: #fff; border: 1px solid var(--line); border-radius: 28px;
	box-shadow: 0 10px 30px rgba(20, 20, 20, .14), 0 2px 6px rgba(20, 20, 20, .06);
}
.app .tabbar > a, .app .tabbar > button { height: 46px; border-radius: 22px; font-size: 10.5px; gap: 1px; transition: background .2s, color .2s; }
.app .tabbar .i { width: 20px; height: 20px; }
.app .tabbar .is-on { background: var(--gold-3); color: var(--gold-2); }
.app .tabbar > a:hover, .app .tabbar > button:hover { color: var(--gold-2); }

/* ---------- Home: floating consult card (replaces the big panel) ---------- */
.app[data-view="home"] .sheet { transform: translateY(105%) !important; box-shadow: none; }
.home-card {
	position: fixed; z-index: 46; left: 0; right: 0; margin: 0 auto; bottom: calc(var(--tab-h) + 6px);
	width: calc(100% - 24px); max-width: 420px; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 10px;
	background: #fff; border: 1px solid var(--line); border-radius: 22px;
	box-shadow: 0 14px 36px rgba(20, 20, 20, .16), 0 2px 6px rgba(20, 20, 20, .06);
	opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s var(--ease), transform .4s var(--ease);
}
.app[data-view="home"] .home-card { opacity: 1; transform: none; pointer-events: auto; }
.app.is-booting .home-card { opacity: 0; }
.hc-ic { flex: none; width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: var(--gold-3); color: var(--gold-2); }
.hc-ic .i { width: 23px; height: 23px; }
.hc-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hc-tx b { font-size: 15px; font-weight: 800; color: var(--tx); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-tx small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--tx-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(179, 139, 61, .5); animation: hcPulse 2s infinite; }
@keyframes hcPulse { 70% { box-shadow: 0 0 0 7px rgba(179, 139, 61, 0); } 100% { box-shadow: 0 0 0 0 rgba(179, 139, 61, 0); } }
.hc-btn { flex: none; height: 46px; padding: 0 18px; border: 0; border-radius: 15px; background: var(--gold); color: #fff; font: 700 14px/1 var(--font); cursor: pointer; box-shadow: 0 6px 16px rgba(179, 139, 61, .35); transition: transform .15s, background .2s; }
.hc-btn:hover { background: var(--gold-2); }
.hc-btn:active { transform: scale(.96); }
@media (prefers-reduced-motion: reduce) { .hc-dot { animation: none; } }

/* ---------- Menu (drawer): floating card, smooth open/close, staggered items ---------- */
#drawer .ovl-bg { background: rgba(20, 18, 14, .28); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); transition: opacity .22s ease; }
#drawer.in .ovl-bg { transition: opacity .35s ease; }
#drawer .drawer {
	top: calc(10px + var(--safe-t)); bottom: calc(10px + var(--safe-b)); right: 10px; width: calc(100vw - 20px); max-width: 340px;
	background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 16px 14px;
	box-shadow: 0 24px 60px rgba(20, 20, 20, .22), 0 2px 8px rgba(20, 20, 20, .06);
	transform: translateX(24px) scale(.96); opacity: 0; transform-origin: top right;
	transition: transform .22s ease, opacity .18s ease;
}
#drawer.in .drawer { transform: none; opacity: 1; transition: transform .5s cubic-bezier(.16, 1, .3, 1), opacity .25s ease; }
#drawer .drawer-head { padding: 2px 4px 14px; }
#drawer .drawer-nav ul { display: grid; gap: 2px; }
#drawer .drawer-nav a { padding: 10px 10px; border-radius: 14px; transition: background .2s, color .2s, transform .2s; }
#drawer .drawer-nav a > .i:first-child { width: 36px; height: 36px; padding: 8px; border-radius: 11px; background: var(--bg-3); box-sizing: border-box; transition: background .2s, color .2s; }
#drawer .drawer-nav a:hover { background: var(--bg-3); }
#drawer .drawer-nav a:hover > .i:first-child { background: #fff; }
#drawer .drawer-nav a:active { transform: scale(.98); }
#drawer .drawer-nav a.is-on { background: var(--gold-3); color: var(--gold-2); }
#drawer .drawer-nav a.is-on > .i:first-child { background: var(--gold); color: #fff; }
#drawer .drawer-nav .chev { transition: transform .2s; }
#drawer .drawer-nav a:hover .chev { transform: translateX(-3px); }
#drawer .drawer-contact a { border-radius: 14px; background: var(--bg-3); border-color: transparent; }
/* stagger */
#drawer .drawer-head, #drawer .drawer-nav li, #drawer .drawer-contact a { opacity: 0; transform: translateX(14px); transition: opacity .15s ease, transform .15s ease; }
#drawer.in .drawer-head, #drawer.in .drawer-nav li, #drawer.in .drawer-contact a { opacity: 1; transform: none; transition: opacity .35s ease, transform .45s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(60ms + var(--d, 0) * 32ms); }
@media (prefers-reduced-motion: reduce) {
	#drawer .drawer, #drawer .drawer-head, #drawer .drawer-nav li, #drawer .drawer-contact a { transform: none !important; transition: opacity .15s !important; }
}

/* ---------- Home card & tab bar: one shared width ---------- */

.app .tabbar { width: calc(100% - 24px); max-width: 344px; grid-template-columns: repeat(4, 1fr); }
.home-card { width: calc(100% - 24px); max-width: 344px; gap: 10px; padding: 8px; border-radius: 24px; }
.hc-ic { width: 42px; height: 42px; border-radius: 16px; }
.hc-ic .i { width: 21px; height: 21px; }
.hc-tx b { font-size: 14px; }
.hc-tx small { font-size: 11.5px; }
.hc-btn { height: 42px; padding: 0 16px; border-radius: 16px; font-size: 13.5px; }

/* ---------- Home card: selected neighbourhood state ---------- */
.hc-ic { position: relative; }
.hc-ic .i { transition: opacity .2s, transform .3s var(--ease); }
.hc-ic .i + .i { position: absolute; opacity: 0; transform: scale(.6); }
.home-card.has-hood .hc-ic { background: var(--gold); color: #fff; }
.home-card.has-hood .hc-ic .i:first-child { opacity: 0; transform: scale(.6); }
.home-card.has-hood .hc-ic .i + .i { opacity: 1; transform: none; }
.home-card.has-hood .hc-dot { animation: none; background: #1f9d6b; }
.hc-share { flex: none; width: 42px; height: 42px; display: none; place-items: center; border: 1px solid var(--line); border-radius: 15px; background: #fff; color: var(--gold-2); cursor: pointer; transition: background .2s, transform .15s; }
.hc-share .i { width: 19px; height: 19px; }
.hc-share:hover { background: var(--gold-3); }
.hc-share:active { transform: scale(.94); }
.home-card.has-hood .hc-share { display: grid; }
.home-card.has-hood .hc-btn { padding: 0 14px; }
.home-card.pop { animation: hcPop .35s var(--ease); }
@keyframes hcPop { 0% { transform: scale(.97); } 60% { transform: scale(1.015); } 100% { transform: none; } }

/* Map attribution: keep it clear of the floating card. */
.glmap .maplibregl-ctrl-bottom-right { bottom: calc(var(--tab-h) + 4px); }
.app[data-view="home"] .glmap .maplibregl-ctrl-bottom-right { bottom: calc(var(--tab-h) + 70px); }
@media (min-width: 600px) { .app[data-view="home"] .glmap .maplibregl-ctrl-bottom-right { bottom: calc(var(--tab-h) + 4px); } }

/* ---------- Older browsers (pre-2021 Samsung Internet / Android WebView) ---------- */
@supports not (aspect-ratio: 1 / 1) {
	.card-media { height: 0; padding-top: 62.5%; }
	.card-media > img, .card-media > .ph { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; }
	.gal-track figure { position: relative; height: 0; padding-top: 68.75%; }
	.gal-track figure > img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; }
}

/* ---------- Request button: attention pulse ---------- */
.hc-btn { position: relative; font-weight: 800; }
.hc-btn::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(179, 139, 61, .55); animation: hcRing 2.4s ease-out infinite; pointer-events: none; }
@keyframes hcRing { 0% { box-shadow: 0 0 0 0 rgba(179, 139, 61, .5); } 70%, 100% { box-shadow: 0 0 0 12px rgba(179, 139, 61, 0); } }
.home-card.has-hood .hc-btn { animation: hcBeat 1.6s ease-in-out infinite; }
.home-card.has-hood .hc-btn::after { animation-duration: 1.6s; }
@keyframes hcBeat { 0%, 100% { transform: scale(1); background: var(--gold); } 50% { transform: scale(1.06); background: var(--gold-2); } }
.hc-btn:hover, .hc-btn:focus-visible { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .hc-btn, .hc-btn::after, .home-card.has-hood .hc-btn { animation: none; } }
/* =====================================================================
   v1.2 — Telegram, simpler consult form, neighbourhood multi-picker,
   voice notes, gallery drag/arrows/viewer, install & notifications
   ===================================================================== */
:root { --tg: #229ed9; --tg-2: #1a87bb; --rec: #e5484d; }

/* Telegram */
.qa-b--tg .i, .cc--tg .i { color: var(--tg); }
.cc--tg:hover { border-color: rgba(34, 158, 217, .45); }
.btn--tg { background: var(--tg); color: #fff; }
.btn--tg:hover { background: var(--tg-2); }
.drawer-contact a .i[aria-hidden] use[href="#i-telegram"] { color: var(--tg); }

/* Consult form: phone first, rest optional */
.req { color: var(--err); font-weight: 800; }
.fld--phone .phone-in { min-height: 52px; }
.fld--phone .phone-in input { font-size: 17px; }
.cform-more { margin: 0 0 14px; border: 1px dashed var(--line-2); border-radius: 15px; background: var(--card-2); }
.cform-more > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-size: 13px; font-weight: 700; color: var(--tx-2); user-select: none; }
.cform-more > summary::-webkit-details-marker { display: none; }
.cform-more > summary .i { width: 18px; height: 18px; color: var(--gold); transition: transform .25s var(--ease); }
.cform-more[open] > summary .i { transform: rotate(45deg); }
.cform-more-in { padding: 0 14px 4px; animation: fadeUp .25s var(--ease); }
.ok-act { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.ok-act .btn { min-height: 44px; padding: 0 16px; }
.ok-again { margin-top: 4px; font-size: 12.5px; font-weight: 700; color: var(--gold-2); text-decoration: underline; text-underline-offset: 4px; }

/* Neighbourhood multi-picker */
.hpick { position: relative; scroll-margin-top: 70px; }
.hpick-box { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 48px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--card); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.hpick-box > .i:first-child { width: 18px; height: 18px; color: var(--gold); }
.hpick-box:hover { border-color: rgba(179, 139, 61, .5); }
.hpick.is-open .hpick-box, .hpick-box:focus-visible { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(214, 180, 106, .15); }
.hpick-chips { display: contents; }
.hpick-ph { flex: 1; color: var(--tx-3); font-size: 14px; }
.hpick-arr { margin-inline-start: auto; width: 16px; height: 16px; color: var(--tx-3); transition: transform .25s var(--ease); }
.hpick.is-open .hpick-arr { transform: rotate(180deg); }
.hchip { display: inline-flex; align-items: center; gap: 2px; height: 30px; padding: 0 10px 0 4px; border-radius: 999px; background: var(--gold-3); color: var(--gold-2); font-size: 12.5px; font-weight: 700; animation: chipIn .22s var(--spring); }
.hchip button { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: var(--gold-2); }
.hchip button:hover { background: rgba(150, 114, 42, .15); }
.hchip .i { width: 13px; height: 13px; stroke-width: 2.4; }
@keyframes chipIn { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
.hpick-pop { margin-top: 6px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--bg-2); box-shadow: 0 16px 36px rgba(20, 20, 20, .12); overflow: hidden; animation: ccIn .18s var(--ease); }
.hpick-search { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.hpick-search .i { width: 17px; height: 17px; color: var(--tx-3); }
.hpick-search input { height: 38px; border: 0 !important; box-shadow: none !important; background: transparent; padding: 0; font-size: 14px; }
.hpick-list { list-style: none; margin: 0; padding: 6px; max-height: 260px; overflow-y: auto; overscroll-behavior: contain; }
.hpick-list button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 11px; font-size: 14px; text-align: right; transition: background .15s; }
.hpick-list button:hover { background: var(--bg-3); }
.hpick-list .nm { flex: 1; }
.hpick-list small { color: var(--tx-3); font-size: 11.5px; }
.hck { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1.6px solid var(--line-2); display: grid; place-items: center; transition: all .18s var(--ease); }
.hck .i { width: 14px; height: 14px; stroke-width: 3; color: #fff; opacity: 0; transform: scale(.5); transition: all .18s var(--spring); }
.hpick-list [aria-selected="true"] { background: rgba(179, 139, 61, .08); font-weight: 700; }
.hpick-list [aria-selected="true"] .hck { background: var(--gold); border-color: var(--gold); }
.hpick-list [aria-selected="true"] .hck .i { opacity: 1; transform: none; }
.hpick-none { padding: 18px; text-align: center; color: var(--tx-3); font-size: 13px; }
.hpick-foot { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--line); background: var(--card-2); }
.hpick-foot small { flex: 1; color: var(--tx-2); font-size: 12px; }
.hpick-clear { font-size: 12.5px; color: var(--tx-2); padding: 6px 8px; border-radius: 9px; }
.hpick-done { height: 36px; padding: 0 18px; border-radius: 11px; background: var(--tx); color: var(--bg); font-weight: 700; font-size: 13px; }

/* Voice note: recorder */
.vrec { margin-top: 8px; --vr-live: var(--rec); }
.vrec-start { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 15px; background: var(--card); text-align: right; transition: border-color .2s, background .2s, transform .15s; }
.vrec-start:hover { border-color: rgba(229, 72, 77, .45); background: rgba(229, 72, 77, .03); }
.vrec-start:active { transform: scale(.985); }
.vrec-start b { display: block; font-size: 13.5px; }
.vrec-start small { display: block; font-size: 11.5px; color: var(--tx-3); line-height: 1.5; }
.vrec-mic { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--rec); color: #fff; box-shadow: 0 6px 16px rgba(229, 72, 77, .35); }
.vrec-mic .i { width: 21px; height: 21px; }
.vrec-start.is-wait .vrec-mic { animation: vrPulse 1s infinite; }
.vrec-live, .vplayer { display: flex; align-items: center; gap: 8px; min-height: 58px; padding: 8px; border-radius: 16px; direction: ltr; animation: fadeUp .25s var(--ease); }
.vrec-live { background: rgba(229, 72, 77, .07); border: 1px solid rgba(229, 72, 77, .28); }
.vrec-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--rec); animation: vrBlink 1s infinite; margin-left: 4px; }
.vrec.is-paused .vrec-dot { animation: none; opacity: .35; }
.vrec-time { flex: none; min-width: 44px; font-size: 14px; font-weight: 800; font-feature-settings: "tnum"; color: var(--rec); }
.vrec.is-late .vrec-time { animation: vrBlink .6s infinite; }
.vrec-wave { flex: 1; min-width: 0; height: 34px; }
.vrec.is-paused .vrec-wave { opacity: .45; }
.vr-ib { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--line); color: var(--tx); transition: transform .15s, background .2s; }
.vr-ib:active { transform: scale(.92); }
.vr-ib .i { width: 18px; height: 18px; }
.vr-ib--del { color: var(--tx-2); background: transparent; border-color: transparent; }
.vr-ib--del:hover { color: var(--err); background: rgba(239, 91, 91, .08); }
.vr-ib--ok { background: var(--rec); border-color: var(--rec); color: #fff; box-shadow: 0 6px 14px rgba(229, 72, 77, .35); }
.vr-ib--ok .i { stroke-width: 2.6; }
@keyframes vrBlink { 50% { opacity: .25; } }
@keyframes vrPulse { 0% { box-shadow: 0 0 0 0 rgba(229, 72, 77, .5); } 100% { box-shadow: 0 0 0 12px rgba(229, 72, 77, 0); } }

/* Voice note: player */
.vplayer { background: var(--gold-3); border: 1px solid rgba(179, 139, 61, .25); }
.vp-play { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #fff; box-shadow: 0 6px 16px rgba(179, 139, 61, .4); transition: transform .15s, background .2s; }
.vp-play:hover { background: var(--gold-2); }
.vp-play:active { transform: scale(.92); }
.vp-play .i { width: 18px; height: 18px; }
.vp-wave { flex: 1; min-width: 0; height: 38px; display: flex; align-items: center; gap: 2px; cursor: pointer; touch-action: none; border-radius: 8px; position: relative; }
.vp-wave:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.vp-wave i { flex: 1; min-width: 2px; max-width: 4px; border-radius: 3px; background: rgba(150, 114, 42, .32); transition: background .12s, transform .2s var(--ease); }
.vp-wave i.on { background: var(--gold-2); }
.vp-wave i.half { background: linear-gradient(90deg, var(--gold-2) 50%, rgba(150, 114, 42, .32) 50%); }
.vplayer.is-playing .vp-wave i.half { transform: scaleY(1.15); }
.vp-wave.is-seek i { transition: none; }
.vp-time { flex: none; min-width: 38px; font-size: 12.5px; font-weight: 700; color: var(--gold-2); font-feature-settings: "tnum"; text-align: center; }
.vp-speed { flex: none; min-width: 46px; height: 30px; padding: 0 8px; border-radius: 999px; background: rgba(255, 255, 255, .75); border: 1px solid rgba(150, 114, 42, .25); color: var(--gold-2); font-size: 12.5px; font-weight: 800; font-feature-settings: "tnum"; transition: background .2s, color .2s; }
.vp-speed.is-on { background: var(--gold-2); color: #fff; border-color: var(--gold-2); }
.vp-speed.bump { animation: hcPop .3s var(--ease); }
@media (max-width: 380px) { .vp-time { display: none; } .vrec-live, .vplayer { gap: 6px; } }
@media (prefers-reduced-motion: reduce) { .vrec-dot, .vrec.is-late .vrec-time, .vrec-start.is-wait .vrec-mic { animation: none; } }

/* Horizontal scrollers: mouse drag */
@media (hover: hover) and (pointer: fine) {
	.gal-track, .rail-x, .chips, .seg--scroll, .lbx-track { cursor: grab; }
}
.is-dragging { cursor: grabbing !important; user-select: none; }
.is-dragging * { pointer-events: none; }
.gal-track img, .rail-x img, .lbx-track img { -webkit-user-drag: none; user-select: none; }

/* Gallery: arrows, dots, zoom */
.gal.has-zoom .gal-track figure { cursor: zoom-in; }
@media (hover: hover) and (pointer: fine) { .gal.has-zoom .gal-track { cursor: grab; } }
.gal-nav { position: absolute; top: 50%; z-index: 3; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--tx); box-shadow: 0 6px 18px rgba(0, 0, 0, .22); opacity: 0; transition: opacity .2s, transform .2s var(--ease); }
.gal-nav .i { width: 20px; height: 20px; stroke-width: 2.2; }
.gal-prev { left: 26px; }
.gal-next { right: 26px; }
.gal:hover .gal-nav, .gal-nav:focus-visible { opacity: 1; }
.gal-nav:hover { transform: scale(1.08); }
.gal.at-first .gal-prev, .gal.at-last .gal-next { opacity: 0 !important; pointer-events: none; }
@media (hover: none) { .gal-nav { display: none; } }
.gal-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; z-index: 2; pointer-events: none; }
.gal-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .55); transition: width .25s var(--ease), background .25s; }
.gal-dots i.on { width: 18px; background: #fff; }

/* Full-screen viewer */
.lbx { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 500; background: rgba(6, 7, 10, .96); opacity: 0; transition: opacity .25s; }
.lbx.in { opacity: 1; }
.lbx-track { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.lbx-track::-webkit-scrollbar { display: none; }
.lbx-track figure { flex: 0 0 100%; margin: 0; scroll-snap-align: center; display: grid; place-items: center; padding: calc(60px + var(--safe-t)) 12px calc(60px + var(--safe-b)); }
.lbx-track img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lbx-x { position: absolute; top: calc(14px + var(--safe-t)); right: 14px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: #fff; z-index: 2; }
.lbx-x:hover { background: rgba(255, 255, 255, .22); }
.lbx-nav { position: absolute; top: 50%; margin-top: -26px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: #fff; z-index: 2; transition: background .2s; }
.lbx-nav:hover { background: rgba(255, 255, 255, .24); }
.lbx-nav .i { width: 24px; height: 24px; }
.lbx-prev { left: 18px; }
.lbx-next { right: 18px; }
.lbx.at-first .lbx-prev, .lbx.at-last .lbx-next, .lbx.single .lbx-nav { opacity: 0; pointer-events: none; }
@media (hover: none) { .lbx-nav { display: none; } }
.lbx-count { position: absolute; top: calc(22px + var(--safe-t)); left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; font-weight: 700; z-index: 2; font-feature-settings: "tnum"; }

/* Drawer: app buttons */
.drawer-app { display: grid; gap: 6px; }
.drawer-app:empty { display: none; }
.drawer-install--bell.is-on { border-style: solid; border-color: rgba(52, 199, 138, .45); color: #1f9d6b; }

/* Install / notifications sheet */
.modal--app { max-width: 460px; margin: 0 auto; padding-top: 22px !important; text-align: right; }
@media (min-width: 600px) { .ovl--app .modal { left: 50%; right: auto; bottom: 50%; width: 440px; border-radius: 28px; border-bottom: 1px solid var(--line-2); transform: translate(-50%, 60%) scale(.96); opacity: 0; transition: transform .4s var(--spring), opacity .25s; } .ovl--app.in .modal { transform: translate(-50%, 50%); opacity: 1; } }
.app-x { position: absolute; top: 12px; left: 12px; background: var(--bg-3); }
.app-hero { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.app-icon { flex: none; width: 76px; height: 76px; border-radius: 22px; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); animation: appIcon .6s var(--spring) both; }
@keyframes appIcon { from { transform: scale(.6) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
.app-hero strong { display: block; font-size: 18px; font-weight: 900; }
.app-hero small { color: var(--tx-2); font-size: 12.5px; }
.app-perks { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.app-perks li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--bg-3); animation: fadeUp .4s var(--ease) both; }
.app-perks li:nth-child(2) { animation-delay: .06s; }
.app-perks li:nth-child(3) { animation-delay: .12s; }
.app-perks .i { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 11px; background: var(--gold-3); color: var(--gold-2); }
.app-perks span { font-size: 12px; color: var(--tx-2); line-height: 1.6; }
.app-perks b { display: block; font-size: 13.5px; color: var(--tx); }
.app-ios, .app-inapp { margin-bottom: 14px; padding: 12px 14px; border-radius: 16px; border: 1px dashed rgba(179, 139, 61, .45); background: rgba(243, 231, 204, .35); font-size: 13px; }
.app-ios-t { font-weight: 800; margin-bottom: 8px; }
.app-ios ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.app-ios li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.app-n { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #fff; font-size: 12px; font-weight: 800; }
.app-k { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 8px; background: #fff; border: 1px solid var(--line); direction: ltr; font-size: 12px; }
.app-k .i { width: 16px; height: 16px; color: #0a84ff; }
.app-inapp p { margin-bottom: 10px; }
.app-later { display: block; width: 100%; margin-top: 8px; padding: 10px; font-size: 13px; font-weight: 600; color: var(--tx-3); }
.app-later:hover { color: var(--tx); }
.app-bell { width: 72px; height: 72px; margin: 4px auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-3); color: var(--gold-2); animation: bellRing 1.6s var(--ease) .3s 2; }
.app-bell .i { width: 34px; height: 34px; }
@keyframes bellRing { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); } 45% { transform: rotate(8deg); } 60% { transform: rotate(-5deg); } }
.app-lead { text-align: center; color: var(--tx-2); font-size: 14px; margin-bottom: 16px; }
@media (prefers-reduced-motion: reduce) { .app-icon, .app-perks li, .app-bell { animation: none; } }

/* Galleries run left→right (like Instagram): dragging/swiping right→left always shows the next photo. */
.gal-track, .lbx-track { direction: ltr; }
.gal-dots { direction: ltr; }

/* Optional detail boxes (v1.2.1) */
.cform-more { border-style: solid; border-color: var(--line); background: var(--card); transition: border-color .2s, box-shadow .2s; }
.cform-more[open] { border-color: rgba(179, 139, 61, .35); box-shadow: 0 10px 26px -14px rgba(0, 0, 0, .2); }
.cform-more > summary { gap: 12px; padding: 11px 12px; color: var(--tx); }
.cform-more > summary .i, .cform-more[open] > summary .i { transform: none; }
.cm-ic { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-3); color: var(--gold-2); }
.cm-ic .i { width: 19px; height: 19px; color: var(--gold-2) !important; }
.cm-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.5; }
.cm-t b { font-size: 13.5px; font-weight: 800; }
.cm-t small { font-size: 11.5px; color: var(--tx-3); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-badge { flex: none; font-style: normal; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--gold); color: #fff; animation: chipIn .25s var(--spring); }
.cform-more > summary .cm-arr { width: 17px; height: 17px; color: var(--tx-3); transition: transform .3s var(--ease); }
.cform-more[open] > summary .cm-arr { transform: rotate(180deg); }
.cform-more-in { padding: 4px 12px 6px; border-top: 1px solid var(--line); }
.spec { border: 0; margin: 12px 0 4px; padding: 0; min-width: 0; animation: fadeUp .25s var(--ease) both; }
.spec legend { padding: 0; margin-bottom: 7px; font-size: 12.5px; font-weight: 700; color: var(--tx-2); }
.spec-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.pill-r--sm span { height: 32px; padding: 0 11px; font-size: 12px; font-weight: 600; background: var(--bg-2); }
.pill-r--sm span:hover { border-color: rgba(179, 139, 61, .55); }
.pill-r--sm input:checked + span { background: var(--gold-3); color: var(--gold-2); border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.spec[data-multi] .pill-r--sm input:checked + span::before { content: "✓"; margin-left: 5px; font-weight: 900; }
.cform-specs .grid2 { margin-top: 14px; }
.cm-len { text-align: left; direction: ltr; }

/* Toasts (v1.2.2): bottom of the screen, above the tab bar / home card, high contrast */
.toasts { top: auto; bottom: calc(var(--tab-h) + 18px); width: calc(100% - 32px); max-width: 380px; justify-items: center; z-index: 600; }
.app[data-view="home"] ~ .toasts, .app[data-view="home"] .toasts { bottom: calc(var(--tab-h) + 86px); }
.app.has-ovl .toasts { bottom: calc(24px + var(--safe-b)); }
.toast { display: inline-flex; align-items: center; gap: 9px; max-width: 100%; padding: 11px 16px; border-radius: 16px; background: rgba(28, 28, 26, .94); color: #fff; font-size: 13.5px; font-weight: 600; line-height: 1.6; text-align: right; box-shadow: 0 14px 34px rgba(0, 0, 0, .28); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transform: translateY(14px) scale(.96); }
.toast.in { transform: none; }
.toast .i { flex: none; width: 20px; height: 20px; padding: 3px; border-radius: 50%; stroke-width: 3; }
.toast--ok { background: rgba(28, 28, 26, .94); color: #fff; }
.toast--ok .i { background: #34c78a; color: #fff; }
.toast--err { background: #d93f3f; color: #fff; }
.toast--err .i { background: rgba(255, 255, 255, .22); color: #fff; stroke-width: 2.4; }

/* Share sheet */
.modal--share { max-width: 480px; margin: 0 auto; padding-top: 10px !important; }
@media (min-width: 600px) { .ovl--share .modal { left: 50%; right: auto; bottom: 50%; width: 440px; border-radius: 28px; border-bottom: 1px solid var(--line-2); transform: translate(-50%, 60%) scale(.96); opacity: 0; transition: transform .4s var(--spring), opacity .25s; } .ovl--share.in .modal { transform: translate(-50%, 50%); opacity: 1; } .sh-grab { display: none !important; } }
.sh-grab { display: block; width: 40px; height: 4px; margin: 0 auto 2px; border-radius: 2px; background: var(--line-2); }
.sh-apps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 4px 0 14px; }
.sh-app { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 6px 2px; border-radius: 16px; font-size: 12px; color: var(--tx); transition: transform .15s, background .2s; animation: fadeUp .35s var(--ease) both; }
.sh-app:nth-child(2) { animation-delay: .04s; } .sh-app:nth-child(3) { animation-delay: .08s; } .sh-app:nth-child(4) { animation-delay: .12s; } .sh-app:nth-child(5) { animation-delay: .16s; }
.sh-app:hover { background: var(--bg-3); }
.sh-app:active { transform: scale(.93); }
.sh-app span { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; color: #fff; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .35); }
.sh-app .i { width: 26px; height: 26px; }
.sh-app b { font-weight: 600; white-space: nowrap; }
.sh-app--tg span { background: #229ed9; }
.sh-app--wa span { background: #25d366; }
.sh-app--sms span { background: #3b82f6; }
.sh-app--mail span { background: #6b7280; }
.sh-app--copy span { background: var(--tx); }
.sh-app--copy.is-done span { background: #34c78a; }
.sh-link { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 15px; background: var(--bg-3); border: 1px solid var(--line); text-align: left; }
.sh-link .i { flex: none; width: 18px; height: 18px; color: var(--gold-2); }
.sh-link span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12.5px; color: var(--tx-2); }
.sh-link em { flex: none; font-style: normal; font-size: 12.5px; font-weight: 800; color: var(--gold-2); }
@media (max-width: 360px) { .sh-app span { width: 48px; height: 48px; } }
