/* ================================================================ Maskan — dizayn tizimi */
:root, :root[data-theme="light"] {
  /* logotipdan: zaytun yashil, pushti-qum, sutli fon */
  --bg: #fbf8f2;           /* sutli (kartalar) */
  --bg2: #f3eee5;          /* krem fon */
  --bg3: #e8e1d5;
  --text: #24231f;
  --text2: #57544c;
  --hint: #8f8a7f;
  --line: rgba(36, 35, 31, .09);
  --accent: #65675a;       /* zaytun */
  --accent-soft: #e7e6dc;
  --on-accent: #ffffff;
  --gold: #a8745d;         /* pushti-terrakota (TOP) */
  --gold-soft: #f1e2d6;
  --blush: #e4cab9;        /* logotipdagi pushti */
  --hostel: #5e6a73;
  --hostel-soft: #e3e5e3;
  --danger: #a9533f;
  --danger-soft: #f4e1da;
  --ok: #5f7a52;
  --shadow: 0 1px 2px rgba(60, 50, 35, .05), 0 4px 16px rgba(60, 50, 35, .06);
  --shadow-lg: 0 8px 30px rgba(60, 50, 35, .14);
  --radius: 16px; --radius-sm: 10px;
  --tabbar-h: 60px; --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #23221e; --bg2: #1a1916; --bg3: #2e2c27;
  --text: #eeebe4; --text2: #c3beb3; --hint: #8f8a80; --line: rgba(255, 255, 255, .08);
  --accent: #7f8269; --accent-soft: #33342b; --on-accent: #ffffff;
  --gold: #d1a58c; --gold-soft: #3b2f28; --blush: #c9ab98; --hostel: #9aa8b3; --hostel-soft: #2a2e30;
  --danger: #e0846f; --danger-soft: #3b2723; --ok: #9bb48b;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3); --shadow-lg: 0 8px 30px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg2); color: var(--text);
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input, select, textarea { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 12px; width: 100%; outline: none; transition: border-color .15s; }
:root[data-theme="light"] input, :root[data-theme="light"] select, :root[data-theme="light"] textarea { border-color: #dedad2; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
textarea { min-height: 96px; resize: vertical; }
h1 { font-size: 21px; margin: 0; letter-spacing: -.2px; } h2 { font-size: 19px; margin: 0; letter-spacing: -.2px; } h3 { font-size: 16px; margin: 0; }
.hidden { display: none !important; }
.pad { padding: 14px; }
.muted { color: var(--hint); font-size: 13px; }
.ico { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }
i[data-icon] { display: inline-flex; font-style: normal; }

#app { position: fixed; inset: 0; }
.view { position: absolute; inset: 0 0 calc(var(--tabbar-h) + var(--safe-b)) 0; overflow-y: auto; display: none; }
.view.active { display: block; }
.overlay { position: absolute; inset: 0; background: var(--bg2); z-index: 1000; overflow-y: auto; display: none; }
.overlay.active { display: block; }
.bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 14px 12px; background: color-mix(in srgb, var(--bg2) 92%, transparent); backdrop-filter: blur(10px); }
.bar.solid { background: var(--bg); border-bottom: 1px solid var(--line); }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; padding: 13px 18px; font-weight: 600; font-size: 15px; }
.btn .ico { width: 18px; height: 18px; }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.secondary { background: var(--bg); color: var(--text); border: 1px solid var(--line); }
.btn.soft { background: var(--accent-soft); color: var(--accent); }
.btn.danger { background: var(--danger-soft); color: var(--danger); }
.btn.block { width: 100%; }
.btn.sm { padding: 8px 12px; font-size: 14px; border-radius: 10px; }
.btn:disabled { opacity: .5; }
.link { color: var(--accent); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.link.muted-link { color: var(--hint); font-weight: 500; }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--bg); color: var(--text); position: relative; flex: none; }
.badge-dot { position: absolute; top: 5px; right: 5px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--accent); color: var(--on-accent);
  font-size: 10px; line-height: 16px; text-align: center; padding: 0 4px; }
.badge-dot:empty { display: none; }

/* ---------------------------------------------------------------- segmented & chips */
.seg { display: flex; background: var(--bg3); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { flex: 1; padding: 8px 10px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--text2); white-space: nowrap; }
.seg button.on { background: var(--bg); color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 13px; border-radius: 20px; font-size: 14px; background: var(--bg); border: 1px solid var(--line); color: var(--text2); display: inline-flex; align-items: center; gap: 6px; }
:root[data-theme="light"] .chip { border-color: #dedad2; }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip .ico { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- home (map + list) */
.home-top { position: absolute; top: 0; left: 0; right: 0; z-index: 600; padding: 10px 12px 0; }
.mode-list .home-top { position: sticky; background: var(--bg2); padding-bottom: 4px; }
.top-row { display: flex; gap: 8px; }
.city-seg { flex: 1; background: var(--bg); box-shadow: var(--shadow); }
.city-seg button.on { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.mode-map .icon-btn, .mode-map .city-seg { box-shadow: var(--shadow-lg); }
.kind-tabs { display: inline-flex; gap: 2px; margin-top: 8px; background: var(--bg); border-radius: 10px; padding: 3px; box-shadow: var(--shadow); }
.kind-tabs button { padding: 5px 12px; border-radius: 8px; font-size: 13px; color: var(--text2); }
.kind-tabs button.on { background: var(--bg3); color: var(--text); font-weight: 600; }
#map { position: absolute; inset: 0; }
.mode-list #map, .mode-list .map-fabs, .mode-list .map-count { display: none; }
#list-wrap { display: none; }
.mode-list #list-wrap { display: block; }
.mode-list { overflow-y: auto; }
.list-meta { padding: 6px 14px 0; color: var(--hint); font-size: 13px; }
.toggle-pill { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h) + var(--safe-b) + 14px); z-index: 700;
  background: var(--text); color: var(--bg); border-radius: 22px; padding: 10px 18px; font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px; box-shadow: var(--shadow-lg); }
.toggle-pill .ico { width: 18px; height: 18px; }
.view:not(.active) .toggle-pill { display: none; }
.map-fabs { position: absolute; right: 12px; bottom: 74px; z-index: 600; display: flex; flex-direction: column; gap: 8px; }
.fab { width: 42px; height: 42px; border-radius: 12px; background: var(--bg); color: var(--text); box-shadow: var(--shadow-lg); display: grid; place-items: center; }
.map-count { position: absolute; left: 12px; bottom: 82px; z-index: 600; background: var(--bg); padding: 6px 11px; border-radius: 10px; font-size: 12px;
  color: var(--text2); box-shadow: var(--shadow); }

/* map pins */
.pin { position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); background: var(--accent); color: #fff; padding: 5px 9px; border-radius: 9px;
  font-weight: 700; font-size: 12px; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.25); display: inline-flex; align-items: center; gap: 4px; }
.pin::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: inherit; }
.pin { border-top-color: var(--accent); }
.pin.hostel { background: var(--hostel); border-top-color: var(--hostel); }
.pin.featured { background: var(--gold); border-top-color: var(--gold); }
.pin.sel { background: var(--text); color: var(--bg); border-top-color: var(--text); transform: translate(-50%, -100%) scale(1.08); }
.pin svg { width: 12px; height: 12px; }
.haram-pin { position: absolute; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; background: #24231f; color: #e4cab9;
  display: grid; place-items: center; border: 2px solid #e4cab9; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.haram-pin svg { width: 18px; height: 18px; }
/* MapLibre markerlari: 0x0 o'ram, ichidagi pin o'zi joylashadi */
.mmk { width: 0; height: 0; cursor: pointer; }
.cluster { position: absolute; transform: translate(-50%, -50%); min-width: 40px; height: 40px; padding: 0 10px; border-radius: 20px; background: var(--accent); color: #fff;
  font-weight: 700; font-size: 14px; display: grid; place-items: center; box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent), var(--shadow); }
.me-dot { position: absolute; transform: translate(-50%, -50%); width: 16px; height: 16px; border-radius: 50%; background: #2f6fd6; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(47,111,214,.2); }
#map, #detail-map, #pick-map { background: var(--bg3); }
.maplibregl-ctrl-attrib { font-size: 10px; }
#map .maplibregl-ctrl-top-right { top: 112px; }
.maplibregl-ctrl-attrib.maplibregl-compact { background: color-mix(in srgb, var(--bg) 80%, transparent); color: var(--hint); }
.fab.on { background: var(--accent); color: #fff; }
/* tanlangan uy: Haramgacha masofa belgisi */
.dist-chip { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 5px; white-space: nowrap; background: var(--text); color: var(--bg);
  font-size: 12px; font-weight: 700; padding: 5px 9px; border-radius: 999px; box-shadow: var(--shadow-lg); pointer-events: none; }
.dist-chip svg { width: 13px; height: 13px; }
/* xaritadagi qisqa kartochka */
.peek { position: fixed; left: 10px; right: 10px; bottom: calc(var(--tabbar-h) + var(--safe-b) + 10px); z-index: 720; display: flex; flex-direction: column; gap: 8px;
  transform: translateY(calc(100% + 90px)); transition: transform .28s cubic-bezier(.2, .9, .3, 1); max-width: 560px; margin: 0 auto; }
.peek.show { transform: none; }
.view:not(.active) .peek, .mode-list .peek { display: none; }
.peeking .toggle-pill, .peeking .map-count, .peeking .map-fabs { opacity: 0; pointer-events: none; }
.peek-card { position: relative; display: grid; grid-template-columns: 108px 1fr; gap: 12px; background: var(--bg); border-radius: 20px; padding: 14px 12px 12px; box-shadow: var(--shadow-lg); cursor: pointer; }
.peek-grip { position: absolute; top: 5px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--bg3); }
.peek-ph { height: 108px; border-radius: 13px; background: var(--bg3) center / cover; position: relative; }
.peek-ph .tag { position: absolute; top: 6px; left: 6px; }
.peek-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; padding-right: 26px; }
.peek-t { font-weight: 700; font-size: 15px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.peek-m { display: flex; gap: 5px; align-items: flex-start; font-size: 12.5px; color: var(--hint); line-height: 1.35; }
.peek-m svg { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.peek-m.acc { color: var(--accent); font-weight: 600; }
.peek-p { margin-top: auto; font-size: 18px; font-weight: 800; }
.peek-p small { font-size: 12.5px; font-weight: 500; color: var(--hint); }
.peek-x { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--bg2); display: grid; place-items: center; color: var(--text2); }
.peek-x svg { width: 15px; height: 15px; }
.peek-more { box-shadow: var(--shadow-lg); }
.peek-more svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- listing cards */
.list { padding: 10px 14px 90px; display: flex; flex-direction: column; gap: 12px; }
.lcard { background: var(--bg); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); cursor: pointer; display: block; text-align: left; width: 100%; }
.lcard .ph { aspect-ratio: 16/9; background: var(--bg3) center/cover no-repeat; position: relative; }
.lcard .tags { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; }
.tag { font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 7px; letter-spacing: .2px; background: rgba(255,255,255,.92); color: #17211d; }
.tag.top { background: var(--gold); color: #fff; }
.tag.hostel { background: var(--hostel); color: #fff; }
.tag.verified { background: #2f6f4f; color: #fff; }
.lcard .bd { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.price { font-weight: 750; font-size: 18px; letter-spacing: -.2px; }
.price small { font-weight: 500; font-size: 13px; color: var(--hint); }
.lcard .ttl { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta { color: var(--text2); font-size: 13px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.meta .ico { width: 15px; height: 15px; color: var(--hint); }
.haram-line { color: var(--accent); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.haram-line .ico { width: 15px; height: 15px; }
.dot-sep::before { content: "·"; margin: 0 2px; color: var(--hint); }

/* compact card (kabinet, admin) */
.ccard { background: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; display: flex; gap: 12px; }
.ccard .thumb { width: 76px; height: 76px; border-radius: 12px; background: var(--bg3) center/cover; flex: none; }
.ccard .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ccard .ttl { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccard .row-end { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.status { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--bg3); color: var(--text2); }
.status.ok { background: var(--accent-soft); color: var(--accent); }
.status.warn { background: var(--danger-soft); color: var(--danger); }
.status.gold { background: var(--gold-soft); color: var(--gold); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.stepper button { width: 34px; height: 30px; font-size: 18px; color: var(--accent); }
.stepper b { min-width: 52px; text-align: center; font-size: 13px; }
.more-btn { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--text2); background: var(--bg3); }

/* ---------------------------------------------------------------- detail */
.gallery { position: relative; background: #111; aspect-ratio: 4/3; overflow: hidden; }
.gallery .track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery .track::-webkit-scrollbar { display: none; }
.gallery img { flex: none; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.g-btn { position: absolute; top: 12px; z-index: 3; width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,.92); color: #17211d; display: grid; place-items: center; }
.g-btn.l { left: 12px; } .g-btn.g-share { right: 12px; } .g-btn.g-fav { right: 58px; } .g-btn.g-fav.solo { right: 12px; }
.g-cnt { position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.55); color: #fff; padding: 3px 9px; border-radius: 8px; font-size: 12px; }
.d-body { padding: 16px 14px 110px; display: flex; flex-direction: column; gap: 12px; margin-top: -18px; position: relative; border-radius: 18px 18px 0 0; background: var(--bg2); }
.d-head { display: flex; flex-direction: column; gap: 6px; }
.d-head .price { font-size: 24px; }
.d-head h2 { font-weight: 600; font-size: 18px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow); }
.fact { padding: 12px 6px; text-align: center; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact b { display: block; font-size: 15px; }
.fact span { font-size: 12px; color: var(--hint); }
.section { background: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.section > h3 { font-size: 15px; }
.ptable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ptable th { color: var(--hint); font-weight: 500; font-size: 12px; padding: 4px; text-align: right; }
.ptable td { padding: 9px 4px; text-align: right; border-top: 1px solid var(--line); font-weight: 600; font-variant-numeric: tabular-nums; }
.ptable td:first-child, .ptable th:first-child { text-align: left; font-weight: 500; }
.ptable tr.cur td { color: var(--accent); }
.ptable tr.cur td:first-child::after { content: " •"; }
.unit-h { font-size: 13px; font-weight: 600; color: var(--text2); margin-top: 4px; }
.amen-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; font-size: 14px; }
.amen-list span { display: flex; align-items: center; gap: 8px; }
.amen-list .ico { width: 16px; height: 16px; color: var(--accent); }
.desc { white-space: pre-wrap; color: var(--text2); font-size: 14px; }
#detail-map { height: 190px; border-radius: 12px; overflow: hidden; }
.owner-row { display: flex; align-items: center; gap: 12px; }
.avatar { width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 18px; flex: none; }
.owner-row .who { flex: 1; min-width: 0; }
.owner-row .who b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-links { display: flex; justify-content: center; gap: 22px; padding: 4px 0; }
.contact-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1001; display: flex; gap: 8px; padding: 10px 14px calc(10px + var(--safe-b));
  background: var(--bg); box-shadow: 0 -1px 0 var(--line), 0 -6px 20px rgba(0,0,0,.06); }
.contact-bar .btn { flex: 1; padding: 13px 10px; }
.contact-bar .btn.call { flex: 0 0 52px; padding: 0; }
.btn.wa { background: #1f9e55; color: #fff; }

/* ---------------------------------------------------------------- forms & wizard */
.form { padding: 4px 14px 110px; display: flex; flex-direction: column; gap: 16px; }
.field label, .flabel { display: block; font-size: 13px; color: var(--text2); margin-bottom: 6px; font-weight: 500; }
.hint { font-size: 12px; color: var(--hint); margin-top: 6px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.wiz-head { position: sticky; top: 0; z-index: 5; background: var(--bg2); padding: 12px 14px 10px; }
.wiz-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wiz-step { font-size: 12px; color: var(--hint); font-weight: 600; letter-spacing: .3px; text-transform: uppercase; margin-top: 10px; }
.wiz-title { font-size: 20px; font-weight: 700; margin-top: 2px; }
.progress { height: 4px; background: var(--bg3); border-radius: 2px; margin-top: 10px; overflow: hidden; }
.progress div { height: 100%; background: var(--accent); border-radius: 2px; transition: width .25s; }
.kind-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kind-card { background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px; text-align: left; display: flex; flex-direction: column; gap: 6px; }
.kind-card .ico { width: 26px; height: 26px; color: var(--text2); }
.kind-card b { font-size: 16px; }
.kind-card small { color: var(--hint); font-size: 12px; }
.kind-card.on { border-color: var(--accent); background: var(--accent-soft); }
.kind-card.on .ico { color: var(--accent); }
#pick-map { height: 260px; border-radius: 12px; overflow: hidden; }
.loc-ok { color: var(--accent); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.loc-tools { display: flex; gap: 16px; margin-top: 8px; }
.pgrid { width: 100%; border-collapse: separate; border-spacing: 6px; margin: -6px; width: calc(100% + 12px); }
.pgrid th { color: var(--hint); font-weight: 500; font-size: 12px; text-align: center; }
.pgrid td:first-child { font-size: 13px; color: var(--text2); white-space: nowrap; width: 1%; padding-right: 4px; }
.pgrid input { padding: 10px 6px; text-align: center; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--bg); border-radius: 12px; }
.switch { position: relative; width: 46px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: var(--bg3); border-radius: 14px; transition: .2s; }
.switch span::before { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: .2s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::before { transform: translateX(18px); }
.check-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--bg); border-radius: 12px; border: 1.5px solid transparent; }
.check-row.on { border-color: var(--accent); }
.check-row input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; }
.price-block { background: var(--bg); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photos .p { aspect-ratio: 1; border-radius: 12px; background: var(--bg3) center/cover; position: relative; overflow: hidden; }
.photos .p .x { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 8px; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; }
.photos .p .x .ico { width: 14px; height: 14px; }
.photos .p .main { position: absolute; left: 6px; bottom: 6px; font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 6px; background: rgba(255,255,255,.92); color: #17211d; }
.photos .p .mk { position: absolute; left: 6px; bottom: 6px; font-size: 11px; padding: 3px 7px; border-radius: 6px; background: rgba(0,0,0,.5); color: #fff; }
.photos label.add { aspect-ratio: 1; border-radius: 12px; border: 1.5px dashed color-mix(in srgb, var(--hint) 60%, transparent); display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 4px; color: var(--hint); font-size: 12px; cursor: pointer; background: var(--bg); }
.wiz-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1001; display: flex; gap: 10px; padding: 10px 14px calc(10px + var(--safe-b));
  background: var(--bg); box-shadow: 0 -1px 0 var(--line); }
.wiz-foot .btn { flex: 1; }
.wiz-foot .btn.secondary { flex: 0 0 auto; }
.owner-box { background: var(--gold-soft); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.owner-box h3 { color: var(--gold); }

/* ---------------------------------------------------------------- post tab / cabinet */
.hero { background: var(--accent); color: var(--on-accent); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.hero h2 { color: #fff; }
.hero p { margin: 0; opacity: .85; font-size: 14px; }
.hero .btn { background: #fff; color: var(--accent); align-self: flex-start; }
.hero .deco { position: absolute; right: -16px; bottom: -26px; width: 150px; height: 130px; opacity: .16; }
.hero .deco svg { width: 100%; height: 100%; }
.panel { background: var(--bg); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.panel p { margin: 0; color: var(--text2); font-size: 14px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpi { background: var(--bg); border-radius: 14px; padding: 12px; box-shadow: var(--shadow); }
.kpi b { display: block; font-size: 20px; letter-spacing: -.3px; }
.kpi span { font-size: 12px; color: var(--hint); }
.notice { border-radius: 14px; padding: 12px 14px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.notice .ico { width: 18px; height: 18px; margin-top: 1px; }
.notice.ok { background: var(--accent-soft); color: var(--accent); }
.notice.warn { background: var(--danger-soft); color: var(--danger); }
.notice.gold { background: var(--gold-soft); color: var(--gold); }

/* ---------------------------------------------------------------- profile (list rows) */
.p-head { display: flex; align-items: center; gap: 14px; padding: 6px 2px 4px; }
.p-head .avatar { width: 56px; height: 56px; border-radius: 18px; font-size: 22px; }
.p-head b { font-size: 18px; display: block; }
.group-t { font-size: 12px; font-weight: 600; color: var(--hint); text-transform: uppercase; letter-spacing: .4px; padding: 0 4px; margin: 6px 0 -4px; }
.rows { background: var(--bg); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.r { display: flex; align-items: center; gap: 12px; padding: 13px 14px; width: 100%; text-align: left; }
.r + .r { border-top: 1px solid var(--line); }
.r .ico { color: var(--text2); }
.r .rl { flex: 1; min-width: 0; }
.r .rv { color: var(--hint); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.r .chev { width: 16px; height: 16px; color: var(--hint); }
.r.col { flex-direction: column; align-items: stretch; gap: 8px; }
.foot-note { text-align: center; color: var(--hint); font-size: 12px; padding: 14px 0 6px; }

/* ---------------------------------------------------------------- sheet / modal */
.modal { position: fixed; inset: 0; background: rgba(10, 15, 12, .45); z-index: 2500; display: flex; align-items: flex-end; animation: fade .15s; }
.modal-card { width: 100%; background: var(--bg); border-radius: 20px 20px 0 0; padding: 8px 16px calc(16px + var(--safe-b)); display: flex; flex-direction: column; gap: 12px;
  max-height: 88vh; overflow-y: auto; animation: up .2s ease-out; }
.modal-card::before { content: ""; width: 36px; height: 4px; border-radius: 2px; background: var(--bg3); align-self: center; margin-bottom: 4px; }
.sheet-item { display: flex; align-items: center; gap: 12px; padding: 14px 4px; font-size: 16px; width: 100%; text-align: left; }
.sheet-item + .sheet-item { border-top: 1px solid var(--line); }
.sheet-item.danger { color: var(--danger); }
@keyframes up { from { transform: translateY(40px); opacity: .4; } }
@keyframes fade { from { opacity: 0; } }

/* ---------------------------------------------------------------- admin */
.tabs { display: flex; gap: 4px; overflow-x: auto; padding: 0 14px 8px; scrollbar-width: none; position: sticky; top: 60px; z-index: 4; background: var(--bg2); }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { padding: 7px 12px; border-radius: 9px; white-space: nowrap; font-size: 14px; color: var(--text2); }
.tabs button.on { background: var(--text); color: var(--bg); font-weight: 600; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat { background: var(--bg); border-radius: 14px; padding: 14px; box-shadow: var(--shadow); }
.stat[data-go] { cursor: pointer; }
.stat b { font-size: 21px; display: block; letter-spacing: -.3px; }
.stat span { font-size: 13px; color: var(--hint); }
.urow { background: var(--bg); border-radius: 14px; padding: 14px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.btns { display: flex; flex-wrap: wrap; gap: 6px; }
/* realtor anketasi */
.fsec { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: .4px; margin-top: 6px; }
.fsec .ico { width: 16px; height: 16px; }
.req { color: var(--danger); }
.seg.wrap { flex-wrap: wrap; }
.rq-card { display: flex; flex-direction: column; gap: 12px; }
.rq-head { display: flex; gap: 12px; align-items: center; }
.rq-card .rows { box-shadow: none; border: 1px solid var(--line); }
.rq-note { font-size: 14px; color: var(--text2); background: var(--bg2); border-radius: 10px; padding: 10px 12px; white-space: pre-line; }
.afilter { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.empty { text-align: center; color: var(--hint); padding: 48px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty .ico { width: 36px; height: 36px; opacity: .5; }
.empty b { color: var(--text2); }

/* ---------------------------------------------------------------- welcome (A: kartochkalar) */
:root, :root[data-theme="light"] {
  --mk-g: linear-gradient(160deg, #f0e3d4 0%, #e8dac8 55%, #e1d1bd 100%);
  --md-g: linear-gradient(160deg, #e6e8dc 0%, #dcdfcf 55%, #d2d5c2 100%);
  --art-op: .32; --go-bg: rgba(36, 35, 31, .08); --cnt-bg: rgba(255, 255, 255, .6);
}
:root[data-theme="dark"] {
  --mk-g: linear-gradient(160deg, #4a4537 0%, #2a2720 55%, #1f1d18 100%);
  --md-g: linear-gradient(160deg, #3c4134 0%, #262a21 55%, #1d1f19 100%);
  --art-op: .22; --go-bg: rgba(255, 255, 255, .12); --cnt-bg: rgba(0, 0, 0, .3);
}
.welcome { z-index: 1500; display: none; flex-direction: column; background: var(--bg2); color: var(--text); overflow-x: hidden; overflow-y: auto; }
.welcome.active { display: flex; }
/* orqadagi katta logotip: ko'rinar-ko'rinmas, juda sekin suzadi */
.w-wm { position: absolute; top: -30px; right: -90px; width: 300px; height: 258px; color: var(--text); opacity: .06; pointer-events: none;
  animation: wm-drift 26s ease-in-out infinite alternate; }
.w-wm svg { width: 100%; height: 100%; }
@keyframes wm-drift { from { transform: translate(0, 0) rotate(0); } to { transform: translate(-36px, 26px) rotate(-6deg); } }
@media (prefers-reduced-motion: reduce) { .w-wm, .sd { animation: none !important; } }
.w-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; position: relative; }
.w-brand { display: flex; align-items: center; gap: 9px; }
.logo-mark { width: 40px; height: 34px; display: grid; place-items: center; flex: none; }
.logo-mark svg { width: 100%; height: 100%; }
.logo-mark.sm { width: 32px; height: 28px; }
.wordmark { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.wordmark .ar { font-size: 16px; font-weight: 700; font-family: "Geeza Pro", "Noto Kufi Arabic", "Segoe UI", sans-serif; }
.wordmark .en { font-size: 10.5px; font-weight: 700; letter-spacing: 2.4px; color: var(--text2); }
.w-lang { display: flex; gap: 2px; background: var(--bg3); border-radius: 10px; padding: 3px; }
.w-lang button { padding: 5px 9px; border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--hint); }
.w-lang button.on { background: var(--bg); color: var(--text); box-shadow: var(--shadow); }
.w-main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 8px 18px calc(24px + var(--safe-b)); position: relative; width: 100%; }
.w-tag { font-size: 12px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--gold); }
.w-main h1 { font-size: 25px; line-height: 1.2; margin-top: 8px; letter-spacing: -.3px; }
.w-main p { margin: 8px 0 18px; color: var(--hint); font-size: 14px; line-height: 1.45; }
.w-cities { display: flex; flex-direction: column; gap: 12px; }
.w-city { position: relative; display: block; width: 100%; height: 168px; border-radius: 22px; overflow: hidden; text-align: left; background: var(--mk-g);
  border: 1px solid var(--line); transition: transform .12s; }
.w-city.md { background: var(--md-g); }
.w-city:active { transform: scale(.98); }
.w-city.last { box-shadow: 0 0 0 2px var(--accent); }
.w-art { position: absolute; right: -10px; top: -8px; width: 150px; height: 150px; color: var(--gold); opacity: var(--art-op); }
.w-city.md .w-art { color: var(--accent); }
:root[data-theme="dark"] .w-city.md .w-art { color: var(--blush); }
.w-art .ico { width: 100%; height: 100%; stroke-width: 1.5; }
.w-ar { position: absolute; left: 16px; top: 14px; font: 700 15px "Geeza Pro", "Noto Kufi Arabic", "Segoe UI", sans-serif; color: var(--gold); }
.w-city.md .w-ar { color: var(--accent); }
:root[data-theme="dark"] .w-city.md .w-ar { color: var(--blush); }
.w-txt { position: absolute; left: 16px; right: 64px; bottom: 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.w-txt b { font-size: 25px; font-weight: 800; letter-spacing: -.3px; line-height: 1.1; }
.w-txt small { color: var(--text2); font-size: 12.5px; }
.w-txt em { font-style: normal; font-size: 11.5px; font-weight: 700; margin-top: 6px; padding: 3px 9px; border-radius: 8px; background: var(--cnt-bg); color: var(--text); }
.w-txt em:empty { display: none; }
.w-go { position: absolute; right: 14px; bottom: 14px; width: 38px; height: 38px; border-radius: 50%; background: var(--go-bg); display: grid; place-items: center; }
.w-go .ico { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- tabbar & toast */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b); display: flex; background: var(--bg);
  box-shadow: 0 -1px 0 var(--line); z-index: 900; }
.tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; color: var(--hint); font-weight: 500; }
.tabbar button .ico { width: 22px; height: 22px; }
.tabbar button.on { color: var(--accent); font-weight: 600; }
#toast { position: fixed; left: 50%; top: 14px; transform: translate(-50%, -160%); background: var(--text); color: var(--bg); padding: 11px 16px; border-radius: 12px;
  z-index: 3000; transition: transform .25s; max-width: 90%; font-size: 14px; text-align: center; box-shadow: var(--shadow-lg); }
#toast:not(.show) { transform: translate(-50%, calc(-100% - 40px)); opacity: 0; pointer-events: none; }
#toast.show { transform: translate(-50%, 0); opacity: 1; }
.rq-card .btns .btn.primary, .rq-card .btns .btn.secondary { flex: 1; }

/* ---------------------------------------------------------------- katta ekran: ilova o'rtada, chetlarda belgi */
:root { --app-w: 600px; --side: max(0px, calc((100vw - var(--app-w)) / 2)); }
.side-deco { position: fixed; inset: 0; background: color-mix(in srgb, var(--bg2) 82%, #000); overflow: hidden; pointer-events: none; }
:root[data-theme="light"] .side-deco { background: color-mix(in srgb, var(--bg2) 92%, #8a7a64); }
.sd { position: absolute; width: 460px; height: 396px; opacity: .045; color: var(--text);
  background: currentColor; -webkit-mask: var(--logo-mask) center / contain no-repeat; mask: var(--logo-mask) center / contain no-repeat;
  animation: wm-drift 30s ease-in-out infinite alternate; }
.sd.l { left: calc(var(--side) / 2 - 300px); bottom: -80px; }
.sd.r { right: calc(var(--side) / 2 - 300px); top: -60px; transform: rotate(180deg); animation-name: wm-drift-r; animation-duration: 36s; }
@keyframes wm-drift-r { from { transform: rotate(180deg); } to { transform: rotate(172deg) translate(30px, -24px); } }
:root { --logo-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 203 175'%3E%3Cpath d='M0 0H173L0 175Z'/%3E%3Cpath d='M203 2V174L113 89Z'/%3E%3C/svg%3E"); }
#app { z-index: 1; }
.view, .overlay { left: var(--side); right: var(--side); background: var(--bg2); }
#view-home.mode-map { left: 0; right: 0; }
.home-top { max-width: var(--app-w); margin: 0 auto; }
.tabbar { padding-left: var(--side); padding-right: var(--side); }
.contact-bar, .wiz-foot { left: var(--side); right: var(--side); }
.modal { justify-content: center; }
.modal-card { max-width: var(--app-w); }
@media (min-width: 640px) {
  .view:not(#view-home.mode-map), .overlay { box-shadow: 0 0 0 1px var(--line), 0 0 80px rgba(0, 0, 0, .25); }
  .modal-card { border-radius: 20px 20px 0 0; }
}

/* ---------------------------------------------------------------- filtr (A: pastdan chiqadigan oyna) */
#view-filter { background: rgba(10, 10, 8, .5); overflow: hidden; box-shadow: none; }
.fs { position: absolute; left: 0; right: 0; bottom: 0; max-height: calc(100% - 36px); display: flex; flex-direction: column; background: var(--bg);
  border-radius: 22px 22px 0 0; animation: up .22s ease-out; }
.fs-head { padding: 8px 16px 6px; border-bottom: 1px solid var(--line); }
.fs-grab { width: 38px; height: 4px; border-radius: 2px; background: var(--bg3); margin: 0 auto 8px; }
.fs-top { display: flex; align-items: center; gap: 8px; }
.fs-top h2 { flex: 1; font-size: 19px; font-weight: 800; }
.fs-top .x { width: 32px; height: 32px; border-radius: 50%; background: var(--bg2); display: grid; place-items: center; color: var(--text2); }
.fs-top .x .ico { width: 16px; height: 16px; }
.fs-body { overflow-y: auto; padding: 4px 16px 16px; overscroll-behavior: contain; }
.fs-l { font-size: 12.5px; font-weight: 700; color: var(--text2); margin: 16px 0 8px; display: flex; align-items: center; gap: 6px; }
.fs-l .ico { width: 15px; height: 15px; color: var(--gold); }
.fs .chips { gap: 7px; }
.fs .chip { padding: 7px 12px; font-size: 13.5px; font-weight: 600; }
.fs .chip.more { color: var(--gold); border-style: dashed; }
.fs-price { display: flex; align-items: center; gap: 8px; }
.fs-price input { flex: 1; min-width: 0; border-radius: 12px; padding: 10px 12px; }
.fs-price span { color: var(--hint); }
.fs-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dbtn { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 12px; border-radius: 12px; background: var(--bg2);
  border: 1px solid var(--line); overflow: hidden; text-align: left; }
.dbtn small { font-size: 11px; color: var(--hint); }
.dbtn b { font-size: 14px; font-weight: 600; }
.dbtn b.ph { color: var(--gold); }
.dbtn input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; }
.fs-more-btn { width: 100%; display: flex; align-items: center; gap: 8px; margin-top: 18px; padding: 12px 14px; border-radius: 14px; background: var(--bg2);
  font-size: 13.5px; font-weight: 600; color: var(--text2); text-align: left; }
.fs-more-btn span { flex: 1; }
.fs-more-btn .ico { width: 16px; height: 16px; transition: transform .2s; color: var(--gold); }
.fs-more-btn.open .ico { transform: rotate(90deg); }
.fs select { appearance: none; -webkit-appearance: none; border-radius: 12px; padding: 10px 36px 10px 12px; background: var(--bg2)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a39e92' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 16px no-repeat; }
.fs .switch-row { background: var(--bg2); margin-top: 16px; font-size: 14px; }
.fs-foot { padding: 10px 16px calc(10px + var(--safe-b)); border-top: 1px solid var(--line); background: var(--bg); }
.fs-foot .btn { width: 100%; }
.fs-foot .btn.empty0 { background: var(--bg3); color: var(--hint); }

/* ---------------------------------------------------------------- profil (A: ixcham) */
.mseg { display: flex; background: var(--bg2); border-radius: 10px; padding: 2px; gap: 1px; flex: none; }
.mseg button { padding: 5px 9px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--hint); display: inline-flex; align-items: center; }
.mseg button.on { background: var(--bg); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
:root[data-theme="dark"] .mseg button.on { background: var(--bg3); }
.mseg .ico { width: 15px; height: 15px; }
.r .ico.gold { color: var(--gold); }
.p-card { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--bg); border-radius: 20px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.p-card .avatar { width: 56px; height: 56px; border-radius: 18px; font-size: 22px; background: var(--accent); color: var(--on-accent); }
.p-card b { font-size: 18px; display: block; }
.p-card .deco { position: absolute; right: -24px; top: -18px; width: 120px; height: 104px; color: var(--text); opacity: .05; }
.p-card .deco svg { width: 100%; height: 100%; }
/* kirish ekrani katta ekranda butun kenglikda: kontent o'rtada, chap pastda ikkinchi belgi */
#view-welcome { left: 0; right: 0; box-shadow: none; }
.w-top, .w-main { max-width: var(--app-w); margin-left: auto; margin-right: auto; width: 100%; }
.w-bg::after { content: ""; position: absolute; left: -120px; bottom: -110px; width: 420px; height: 362px; pointer-events: none; opacity: .05;
  background: var(--text); -webkit-mask: var(--logo-mask) center / contain no-repeat; mask: var(--logo-mask) center / contain no-repeat;
  animation: wm-drift 34s ease-in-out infinite alternate-reverse; }
@media (min-width: 900px) { .w-wm { right: 6%; top: 4%; width: 380px; height: 327px; } }

/* ---------------------------------------------------------------- xarita tepasi (B: qidiruv paneli) */
.home-top { padding: 10px 12px 0; pointer-events: none; }
.home-top > * { pointer-events: auto; }
.mode-list .home-top { padding-bottom: 6px; }
.sbar { display: flex; align-items: center; gap: 6px; background: var(--bg); border-radius: 18px; padding: 5px 5px 5px 6px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.mode-list .sbar { box-shadow: var(--shadow); }
.sb-city { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; text-align: left; padding: 3px 4px; border-radius: 13px; }
.sb-city:active { background: var(--bg2); }
.sb-ico { width: 38px; height: 38px; border-radius: 12px; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; flex: none; }
.sb-ico .ico { width: 21px; height: 21px; }
.sb-txt { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.sb-txt b { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.sb-txt b .ico { width: 15px; height: 15px; color: var(--hint); }
.sb-txt small { font-size: 12px; color: var(--hint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-filter { position: relative; width: 44px; height: 44px; border-radius: 13px; background: var(--bg2); display: grid; place-items: center; flex: none; color: var(--text); }
.qchips { display: flex; gap: 6px; margin: 8px -12px 0; padding: 0 12px 4px; overflow-x: auto; scrollbar-width: none; }
.qchips::-webkit-scrollbar { display: none; }
.qc { flex: none; padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--bg); color: var(--text2); border: 1px solid var(--line); box-shadow: var(--shadow); white-space: nowrap; }
.qc.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.qsep { flex: none; width: 1px; margin: 6px 2px; background: color-mix(in srgb, var(--hint) 40%, transparent); }
.mode-list .qc { box-shadow: none; }
#map .maplibregl-ctrl-top-right { top: 118px; }

/* ---------------------------------------------------------------- video */
.videos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.vthumb { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; background: #1d1c18 center / cover; overflow: hidden; display: grid; place-items: center; color: #fff; }
.vthumb .x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 8px; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; }
.vthumb .x .ico { width: 14px; height: 14px; }
.vplay { width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.5); display: grid; place-items: center; }
.vplay .ico { width: 18px; height: 18px; fill: #fff; stroke: none; margin-left: 2px; }
.vdur { position: absolute; left: 6px; bottom: 6px; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 6px; background: rgba(0,0,0,.6); }
.vthumb.busy { background: var(--bg3); color: var(--text2); font-size: 12px; font-weight: 600; display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; text-align: center; padding: 8px; }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.add.vadd { aspect-ratio: 16 / 10; }
.tag.video { background: rgba(0,0,0,.62); color: #fff; display: inline-flex; align-items: center; gap: 4px; }
.tag.video .ico, .vtag .ico { width: 11px; height: 11px; fill: currentColor; stroke: none; }
.vtag { position: absolute; right: 6px; bottom: 6px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; }
.vtag.sm { right: 4px; bottom: 4px; width: 20px; height: 20px; }
.ccard .thumb { position: relative; }
.gallery video { flex: none; width: 100%; height: calc(100% - 46px); object-fit: contain; background: #000; scroll-snap-align: start; }
.gallery .track { background: #000; align-items: flex-start; }
.videos label.add { border-radius: 12px; border: 1.5px dashed color-mix(in srgb, var(--hint) 60%, transparent); display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 4px; color: var(--hint); font-size: 12px; cursor: pointer; background: var(--bg); }

/* ---------------------------------------------------------------- realtor kabineti (shaxsiy stol) */
.cab-head { position: relative; overflow: hidden; border-radius: 22px; padding: 16px; background: var(--accent); color: var(--on-accent); display: flex; flex-direction: column; gap: 12px; }
.cab-head .deco { position: absolute; right: -26px; top: -22px; width: 150px; height: 130px; opacity: .14; color: #fff; pointer-events: none; }
.cab-head .deco svg { width: 100%; height: 100%; }
.cab-top { display: flex; align-items: center; gap: 12px; position: relative; }
.cab-av { width: 54px; height: 54px; border-radius: 17px; background: rgba(255,255,255,.18); display: grid; place-items: center; font-weight: 800; font-size: 20px; flex: none; }
.cab-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.cab-who small { font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; opacity: .75; }
.cab-who b { font-size: 20px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cab-who span { font-size: 12.5px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cab-edit { width: 36px; height: 36px; border-radius: 11px; background: rgba(255,255,255,.16); color: #fff; display: grid; place-items: center; flex: none; }
.cab-edit .ico { width: 17px; height: 17px; }
.cab-hint { display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.14); color: #fff; font-size: 13px; position: relative; }
.cab-hint .ico { width: 18px; height: 18px; flex: none; }
/* admin: kabinetlar ro'yxati */
.cab-row { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--bg); border-radius: 16px; box-shadow: var(--shadow); margin-bottom: 8px; cursor: pointer; }
.cab-av.sm { width: 44px; height: 44px; border-radius: 14px; font-size: 16px; background: var(--accent-soft); color: var(--accent); }
.cab-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cab-l1 { display: flex; align-items: center; gap: 8px; }
.cab-l1 b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cab-nums { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--text2); }
.cab-nums span { display: inline-flex; align-items: center; gap: 4px; }
.cab-nums .ico { width: 13px; height: 13px; color: var(--hint); }
.cab-row > .chev { width: 16px; height: 16px; color: var(--hint); }

/* ---------------------------------------------------------------- profil: yordam, murojaatlar, Maskan haqida */
.r .r-sub { display: block; font-size: 12px; color: var(--hint); margin-top: 1px; }
.fb-item { background: var(--bg); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 5px; box-shadow: var(--shadow); margin-bottom: 8px; }
.fb-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fb-t { white-space: pre-wrap; font-size: 14px; color: var(--text); }
.fb-reply { background: var(--accent-soft); color: var(--text); border-radius: 10px; padding: 8px 10px; font-size: 14px; white-space: pre-wrap; }
.fb-reply small { display: block; font-size: 11px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 2px; }
.urow.done { opacity: .75; }
.own-note { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--text2); background: var(--bg2); border-radius: 10px; padding: 9px 10px; line-height: 1.4; }
.own-note > .ico { width: 15px; height: 15px; color: var(--gold); flex: none; margin-top: 1px; }
.own-note .link { font-size: 12.5px; display: inline; }
.ab-hero { position: relative; overflow: hidden; border-radius: 22px; padding: 18px; background: var(--bg); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.ab-hero .deco { position: absolute; right: -30px; top: -26px; width: 170px; height: 146px; opacity: .06; color: var(--text); }
.ab-hero .deco svg { width: 100%; height: 100%; }
.ab-hero h2 { font-size: 20px; font-weight: 800; }
.ab-hero p { margin: 0; color: var(--text2); font-size: 14px; line-height: 1.5; }
.ab-card { display: flex; gap: 12px; background: var(--bg); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); }
.ab-card.acc { box-shadow: 0 0 0 1.5px var(--accent); }
.ab-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; flex: none; }
.ab-ico .ico { width: 20px; height: 20px; }
.ab-card b { font-size: 15px; }
.ab-card p { margin: 4px 0 0; font-size: 13.5px; color: var(--text2); line-height: 1.5; }
.about .panel p { line-height: 1.55; }
.ab-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--text2); line-height: 1.5; }
/* kirish ekrani: til yonida ko'rinish tugmalari */
.w-ctrl { display: flex; gap: 6px; align-items: center; }
.w-theme button { padding: 4px 7px; display: grid; place-items: center; }
.w-theme .ico { width: 15px; height: 15px; }
@media (max-width: 360px) { .w-top { padding: 12px 12px; } .w-lang button { padding: 5px 7px; } .wordmark .ar { font-size: 14px; } }
/* orqa logotiplar alohida kesilgan qatlamda: sahifani yonga kengaytirmaydi */
.w-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.welcome { overflow-x: hidden; }

/* ---------------------------------------------------------------- joyni qidirish (forma) */
.loc-search { position: relative; margin-bottom: 8px; }
.loc-search .ls-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--hint); display: grid; }
.loc-search .ls-ico .ico { width: 17px; height: 17px; }
.loc-search input { padding-left: 38px; border-radius: 12px; }
.ls-res { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); overflow: hidden; max-height: 280px; overflow-y: auto; }
.ls-res button { display: flex; flex-direction: column; align-items: flex-start; width: 100%; text-align: left; padding: 10px 14px; gap: 1px; }
.ls-res button + button { border-top: 1px solid var(--line); }
.ls-res button b { font-size: 14px; font-weight: 600; }
.ls-res button small { font-size: 12px; color: var(--hint); }
.ls-empty { padding: 12px 14px; font-size: 13px; color: var(--hint); }

/* ---------------------------------------------------------------- saqlanganlar, baholar, realtor havolasi */
.card-fav { position: absolute; right: 10px; top: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,.42); color: #fff; display: grid; place-items: center; }
.card-fav .ico, .g-btn .ico { width: 18px; height: 18px; }
.card-fav.fav, .g-btn.fav { color: #ff5a6e; }
.card-fav.fav .ico, .g-btn.fav .ico { fill: currentColor; }
.lcard .ph { position: relative; }

.rate-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 3px; font-size: 13px; }
.rate-line .link { font-size: 13px; }
.stars { color: #e3a23b; letter-spacing: 1px; }
.stars i { font-style: normal; color: var(--bg3); }
.star-pick { display: flex; justify-content: center; gap: 6px; }
.star-pick button { font-size: 36px; line-height: 1; color: var(--bg3); padding: 2px 4px; }
.star-pick button.on { color: #e3a23b; }
.rv { border-top: 1px solid var(--line); padding: 10px 0; display: flex; flex-direction: column; gap: 4px; }
.rv p { margin: 0; font-size: 14px; color: var(--text2); }
.rv-sum { font-size: 15px; }
.fs-foot { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.fs-alert { justify-content: center; font-size: 13.5px; padding: 2px 0; }
.fs-alert .ico { width: 16px; height: 16px; }
.owner-banner { display: flex; align-items: center; gap: 10px; margin-top: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 8px 8px 8px 10px; box-shadow: var(--shadow-lg); }
.owner-banner .ob-ico { width: 34px; height: 34px; border-radius: 11px; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; flex: none; }
.owner-banner .ob-ico .ico { width: 18px; height: 18px; }
.owner-banner .ob-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.owner-banner .ob-t b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.owner-banner .ob-t small { font-size: 11.5px; color: var(--hint); }
.ob-all { flex: none; padding: 8px 12px; border-radius: 11px; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 700; }
.my-link .ml-h { display: flex; align-items: center; gap: 8px; }
.my-link .ml-h .ico { color: var(--gold); }
.ml-url { font: 600 13px ui-monospace, Menlo, monospace; background: var(--bg2); border-radius: 10px; padding: 9px 11px; word-break: break-all; color: var(--text2); }
.top-price { font-size: 20px; font-weight: 800; text-align: center; padding: 10px; border-radius: 14px; background: var(--gold-soft); color: var(--gold); }
/* narx kelishiladi */
.neg-box { display: flex; gap: 10px; align-items: flex-start; background: var(--gold-soft); color: var(--text); border-radius: 12px; padding: 12px; font-size: 14px; }
.neg-box .ico { color: var(--gold); flex: none; margin-top: 1px; }
.neg-box.sm { padding: 9px 11px; font-size: 13px; margin-bottom: 6px; }
.pgrid input { min-width: 0; }
/* 4 ustunli narx jadvali: teng ustunlar, raqamlar sig'sin */
.pgrid { table-layout: fixed; }
.pgrid td:first-child, .pgrid th:first-child { width: 74px; white-space: normal; font-size: 12.5px; line-height: 1.2; }
.pgrid input { padding: 10px 2px; font-size: 14px; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- narx: bitta muddat — bir qatorda */
.prows { display: flex; flex-direction: column; }
.prow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.prow:first-child { border-top: 0; }
.prow b { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.prow b small { font-size: 13px; font-weight: 500; color: var(--hint); }
.prow.cur span, .prow.cur b { color: var(--accent); }
.ptable th:first-child { text-align: left; }
.gallery img { cursor: zoom-in; }

/* ---------------------------------------------------------------- rasm ko'rish oynasi */
.viewer { position: fixed; inset: 0; z-index: 4000; background: #000; animation: fade .15s; }
.v-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.v-track::-webkit-scrollbar { display: none; }
.v-slide { flex: none; width: 100%; height: 100%; overflow: auto; scroll-snap-align: center; display: flex; scrollbar-width: none; touch-action: pan-x pan-y; }
.v-slide::-webkit-scrollbar { display: none; }
.v-slide img { width: 100%; height: auto; max-width: none; margin: auto; display: block; user-select: none; -webkit-user-select: none; }
.v-slide:not(.zoomed) img { max-height: 100%; object-fit: contain; }
.v-x { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; display: grid; place-items: center; }
.v-cnt { position: absolute; top: calc(22px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); color: #fff; font-size: 13px; background: rgba(255,255,255,.14); padding: 3px 10px; border-radius: 10px; }
.v-hint { position: absolute; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); color: #fff; font-size: 13px; background: rgba(255,255,255,.16); padding: 8px 14px; border-radius: 12px; white-space: nowrap; transition: opacity .4s; }
.v-hint.hide { opacity: 0; }

/* bog'lanish paneli: kim bilan bog'lanish yozuvi */
.contact-bar { flex-wrap: wrap; }
.contact-bar .cb-who { flex: 0 0 100%; font-size: 13px; color: var(--text2); text-align: center; margin-bottom: 2px; }

/* «Uy haqida»: to'liq matn */
.d-head h2.d-title { font-size: 17px; font-weight: 600; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
textarea.about-ta { min-height: 140px; line-height: 1.45; }
