/* Kalit Go — asosiy uslublar */
:root {
  --brand: #0e7c66;
  --brand-600: #0b6553;
  --brand-700: #084c3f;
  --brand-50: #e8f5f1;
  --brand-100: #cdeae1;
  --accent: #f5a524;
  --accent-50: #fff6e6;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e6e8ec;
  --line-2: #f0f2f5;
  --bg: #f5f6f8;
  --card: #ffffff;
  --danger: #dc2626;
  --danger-50: #fef2f2;
  --info: #2563eb;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px -12px rgba(15, 23, 42, .14);
  --shadow-lg: 0 24px 48px -16px rgba(15, 23, 42, .25);
  --header-h: 68px;
  --container: 1240px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --surface-2: #fafbfc;
  --glass: rgba(255, 255, 255, .92);
  --line-strong: #cfd4dc;
  --dash: #d0d6de;
  --placeholder: #b7bfca;
  --noimg-a: #f1f3f6;
  --noimg-b: #e7eaef;
  --warn-ink: #8a5300;
  --warn-line: #fde3b0;
  --danger-ink: #991b1b;
  --danger-line: #fecaca;
  --info-bg: #eff6ff;
  --info-line: #dbeafe;
  --info-ink: #1e40af;
  --footer-bg: #0f172a;
  --map-bg: #e9eef2;
  --logo-go: #f26b0f;
  color-scheme: light;
}

/* ---------- Tungi rejim ---------- */
:root[data-theme="dark"] {
  --brand: #12a283;
  --brand-600: #0f8e73;
  --brand-700: #5fd6b8;
  --brand-50: rgba(18, 162, 131, .14);
  --brand-100: rgba(18, 162, 131, .26);
  --accent-50: rgba(245, 165, 36, .12);
  --ink: #e6ebf2;
  --ink-2: #c3ccd8;
  --muted: #8b97a8;
  --line: #263142;
  --line-2: #1b2433;
  --bg: #0b111b;
  --card: #121a27;
  --danger: #f87171;
  --danger-50: rgba(248, 113, 113, .12);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 28px -12px rgba(0, 0, 0, .7);
  --shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, .8);
  --surface-2: #162031;
  --glass: rgba(18, 26, 39, .9);
  --line-strong: #364357;
  --dash: #364357;
  --placeholder: #4a5769;
  --noimg-a: #172131;
  --noimg-b: #1d2a3d;
  --warn-ink: #fbbf5a;
  --warn-line: rgba(245, 165, 36, .35);
  --danger-ink: #fca5a5;
  --danger-line: rgba(248, 113, 113, .35);
  --info-bg: rgba(59, 130, 246, .12);
  --info-line: rgba(59, 130, 246, .3);
  --info-ink: #93c5fd;
  --footer-bg: #070b12;
  --map-bg: #1b2433;
  --logo-go: #fb923c;
  color-scheme: dark;
}
:root[data-theme="dark"] img { filter: brightness(.92); }
:root[data-theme="dark"] .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.88) saturate(.55) !important; }
:root[data-theme="dark"] .footer { border-top: 1px solid var(--line-2); }
:root[data-theme="dark"] .cta { border: 1px solid var(--line); }
:root[data-theme="dark"] ::placeholder { color: #5f6b7d; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.015em; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }

.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 16px; height: 16px; }
.i-lg { width: 26px; height: 26px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

/* ---------- Tugmalar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  background: var(--card); color: var(--ink); border-color: var(--line);
  transition: background .15s, border-color .15s, color .15s, transform .05s, box-shadow .15s;
}
.btn:hover { border-color: var(--line-strong); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 6px 16px -8px rgba(14, 124, 102, .7); }
.btn-primary:hover { background: var(--brand-600); border-color: var(--brand-600); }
.btn-accent { background: var(--accent); color: #241600; border-color: var(--accent); }
.btn-accent:hover { background: #e9961a; border-color: #e9961a; }
.btn-soft { background: var(--brand-50); color: var(--brand-700); border-color: transparent; }
.btn-soft:hover { background: var(--brand-100); border-color: transparent; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--line-2); border-color: transparent; }
.btn-danger { color: var(--danger); }
.btn-danger:hover { background: var(--danger-50); border-color: var(--danger-line); }
.btn-sm { height: 36px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-icon { width: 44px; padding: 0; }
.btn-sm.btn-icon { width: 36px; }

/* ---------- Sarlavha (header) ---------- */
.header {
  position: sticky; top: 0; z-index: 50; background: var(--glass);
  backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: -.03em; flex: none; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, #16a085 0%, var(--brand) 55%, var(--brand-700) 100%);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12), 0 4px 12px -4px rgba(14, 124, 102, .6);
}
.logo-mark .i { width: 22px; height: 22px; stroke-width: 2.2; }
.logo b { color: var(--logo-go); font-weight: 800; }
.header-search { flex: 1; max-width: 560px; display: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.header-link { display: none; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--brand-50); color: var(--brand-700); font-weight: 700; font-size: 15px; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 56px; height: 56px; font-size: 22px; }

.searchbox {
  display: flex; align-items: center; height: 46px; background: var(--card); border: 1.5px solid var(--line);
  border-radius: 12px; overflow: hidden; transition: border-color .15s, box-shadow .15s;
}
.searchbox:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(14, 124, 102, .12); }
.searchbox .i { margin-left: 14px; color: var(--muted); }
.searchbox input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; padding: 0 12px; background: transparent; }
.searchbox button { height: 100%; padding: 0 18px; border: 0; background: var(--brand); color: #fff; font-weight: 600; }
.searchbox button:hover { background: var(--brand-600); }

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; display: none; z-index: 60;
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a, .dropdown-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px;
  background: none; border: 0; text-align: left; font-size: 14.5px; color: var(--ink-2);
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--line-2); color: var(--ink); }
.dropdown-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
.dropdown-head strong { display: block; }
.dropdown-head span { font-size: 13px; color: var(--muted); }

.catbar { border-top: 1px solid var(--line-2); display: none; }
.catbar nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; height: 46px; align-items: center; }
.catbar nav::-webkit-scrollbar { display: none; }
.catbar a { padding: 6px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.catbar a:hover, .catbar a.active { background: var(--brand-50); color: var(--brand-700); }

@media (min-width: 900px) {
  .header-search { display: block; }
  .header-link { display: inline-flex; }
  .catbar { display: block; }
}

/* Mobil qidiruv qatori */
.mobile-search { padding: 0 0 12px; }
@media (min-width: 900px) { .mobile-search { display: none; } }

/* ---------- Pastki navigatsiya (mobil) ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--glass);
  border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr);
  padding-bottom: env(safe-area-inset-bottom); backdrop-filter: blur(10px);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0 7px; font-size: 11px; font-weight: 500; color: var(--muted); }
.tabbar a.active { color: var(--brand); }
.tabbar .tab-add span:first-child {
  width: 46px; height: 46px; margin-top: -20px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: var(--brand); box-shadow: 0 8px 18px -6px rgba(14, 124, 102, .7); border: 4px solid var(--card);
}
body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
  .tabbar { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- Xabarlar ---------- */
.messages { display: grid; gap: 8px; margin-top: 16px; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 14.5px; border: 1px solid; }
.alert-success { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-700); }
.alert-info { background: var(--info-bg); border-color: var(--info-line); color: var(--info-ink); }
.alert-warning { background: var(--accent-50); border-color: var(--warn-line); color: var(--warn-ink); }
.alert-error { background: var(--danger-50); border-color: var(--danger-line); color: var(--danger-ink); }
.alert button { margin-left: auto; background: none; border: 0; padding: 0; opacity: .6; }

/* ---------- Bo'limlar ---------- */
main { min-height: 60vh; }
.section { margin-top: 32px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2 { font-size: 21px; font-weight: 750; }
.section-head a { color: var(--brand); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
@media (min-width: 768px) { .section { margin-top: 44px; } .section-head h2 { font-size: 24px; } }

/* ---------- Bosh sahifa: hero ---------- */
.hero {
  position: relative; overflow: hidden; margin-top: 16px; border-radius: 22px; color: #fff; padding: 28px 20px 24px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(245, 165, 36, .35) 0%, transparent 45%),
    radial-gradient(90% 120% at 0% 100%, rgba(34, 197, 160, .35) 0%, transparent 55%),
    linear-gradient(135deg, #0a5f4f 0%, var(--brand) 50%, #0c8f74 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .09;
  background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 18px 18px;
}
.hero > * { position: relative; z-index: 1; }
.hero-art { position: absolute !important; z-index: 0 !important; right: -40px; top: 50%; transform: translateY(-50%) rotate(-18deg); width: 420px; height: 420px; color: rgba(255, 255, 255, .1); display: none; }
.hero-art .i { width: 100%; height: 100%; stroke-width: 1.2; }
@media (min-width: 1024px) { .hero-art { display: block; } }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 13px; font-weight: 600; }
.hero h1 { margin-top: 14px; font-size: 27px; font-weight: 800; letter-spacing: -.03em; max-width: 640px; }
.hero h1 span { color: #ffd27a; }
.hero p { margin-top: 10px; color: rgba(255, 255, 255, .85); max-width: 560px; }
.hero-search { margin-top: 20px; display: grid; gap: 8px; background: var(--card); padding: 8px; border-radius: 16px; box-shadow: var(--shadow-lg); max-width: 760px; }
.hero-search .hs-field { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 12px; border-radius: 10px; background: var(--bg); color: var(--ink); }
.hero-search .hs-field .i { color: var(--muted); }
.hero-search input, .hero-search select { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; height: 100%; }
.hero-search select { appearance: none; cursor: pointer; }
.hero-search .btn { height: 48px; }
.hero-stats { display: flex; gap: 22px; margin-top: 20px; font-size: 13.5px; color: rgba(255, 255, 255, .85); flex-wrap: wrap; }
.hero-stats strong { display: block; font-size: 20px; color: #fff; font-weight: 750; }
@media (min-width: 700px) {
  .hero { padding: 48px 44px 40px; border-radius: 28px; margin-top: 24px; }
  .hero h1 { font-size: 42px; }
  .hero p { font-size: 17px; }
  .hero-search { grid-template-columns: 1fr 220px auto; }
}

/* Kategoriyalar */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.cat-tile {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px 12px; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.cat-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; }
.cat-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, var(--card)); color: var(--c); }
.cat-icon .i { width: 24px; height: 24px; }
.cat-tile span { font-size: 12px; font-weight: 600; line-height: 1.25; }
@media (max-width: 639px) {
  .cat-grid { grid-template-columns: none; grid-template-rows: auto auto; grid-auto-flow: column; grid-auto-columns: 84px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; scroll-padding-inline: 16px; scroll-snap-type: x proximity; }
  .cat-grid::-webkit-scrollbar { display: none; }
  .cat-tile { padding: 12px 4px 10px; border-radius: 14px; gap: 6px; scroll-snap-align: start; }
  .cat-tile small { display: none; }
}
.cat-tile small { font-size: 11.5px; color: var(--muted); margin-top: -4px; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(5, 1fr); gap: 12px; } .cat-tile span { font-size: 13.5px; } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(10, 1fr); } }

/* Gorizontal aylanuvchi qator */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; padding-bottom: 6px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 640px) { .rail { grid-auto-columns: 40%; } }
@media (min-width: 1024px) { .rail { grid-auto-columns: calc((100% - 36px) / 4); margin: 0; padding-left: 0; padding-right: 0; scroll-padding-inline: 0; } }

/* ---------- E'lon kartochkasi ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line); transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: transparent; }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--line-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-noimg { width: 100%; height: 100%; display: grid; place-items: center; color: var(--placeholder); background: linear-gradient(135deg, var(--noimg-a), var(--noimg-b)); }
.card-noimg .i { width: 40px; height: 40px; stroke-width: 1.4; }
.card-badges { position: absolute; left: 8px; top: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .01em; background: rgba(15, 23, 42, .72); color: #fff; }
.badge-vip { background: var(--accent); color: #2b1a00; }
.badge-soft { background: var(--brand-50); color: var(--brand-700); }
.badge-gray { background: var(--line-2); color: var(--ink-2); }
.badge-warn { background: var(--accent-50); color: var(--warn-ink); }
.badge-danger { background: var(--danger-50); color: var(--danger); }
.badge-ok { background: var(--brand-50); color: var(--brand-700); }
.card-photos { position: absolute; right: 8px; bottom: 8px; }
.fav-btn {
  position: absolute; right: 8px; top: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--glass); color: var(--ink-2); box-shadow: var(--shadow-sm); transition: transform .15s, color .15s;
}
.fav-btn:hover { transform: scale(1.08); color: #e11d48; }
.fav-btn .i { width: 18px; height: 18px; }
.fav-btn.on, .btn.on { color: #e11d48; }
.fav-btn.on .i, .btn.on .i { fill: #e11d48; }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; flex: 1; }
.card-price { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.card-price small { font-size: 12px; font-weight: 600; color: var(--muted); }
.card-title { font-size: 14px; color: var(--ink-2); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-specs { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-specs span + span::before { content: "·"; margin: 0 6px; color: var(--placeholder); }
.card-meta { margin-top: auto; padding-top: 6px; display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.card-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 639px) { .card-meta { flex-direction: column; gap: 0; } }
.card.is-vip { border-color: var(--warn-line); box-shadow: 0 0 0 1px var(--warn-line) inset; }
@media (min-width: 640px) { .card-price { font-size: 18px; } .card-body { padding: 12px 14px 14px; } }

/* ---------- CTA banner ---------- */
.cta {
  margin-top: 44px; border-radius: 22px; padding: 26px 22px; display: grid; gap: 16px; align-items: center;
  background: linear-gradient(120deg, #1f2937, #0f172a); color: #fff; position: relative; overflow: hidden;
}
.cta::before { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 165, 36, .45), transparent 70%); }
.cta h2 { font-size: 22px; font-weight: 800; position: relative; }
.cta p { color: #cbd5e1; margin-top: 6px; position: relative; }
.cta .btn { position: relative; justify-self: start; }
@media (min-width: 768px) { .cta { grid-template-columns: 1fr auto; padding: 36px 44px; } .cta h2 { font-size: 28px; } }

.features { display: grid; gap: 12px; margin-top: 44px; }
.feature { display: flex; gap: 14px; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.feature .cat-icon { flex: none; }
.feature h3 { font-size: 16px; }
.feature p { font-size: 14px; color: var(--muted); margin-top: 4px; }
@media (min-width: 768px) { .features { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

/* ---------- Footer ---------- */
.footer { margin-top: 56px; background: var(--footer-bg); color: #94a3b8; padding: 40px 0 24px; font-size: 14px; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.footer .logo { color: #fff; }
.footer .logo b { color: #fb923c; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a:hover { color: #fff; }
.footer-about { grid-column: 1 / -1; }
.footer-about p { margin-top: 12px; max-width: 340px; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid #1e293b; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .footer-about { grid-column: auto; } }

/* ---------- Sahifa sarlavhasi / yo'l ---------- */
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 18px 0 10px; font-size: 13.5px; color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs .i { width: 14px; height: 14px; }
.page-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.page-title h1 { font-size: 24px; font-weight: 800; }
.page-title .count { color: var(--muted); font-size: 15px; }
@media (min-width: 768px) { .page-title h1 { font-size: 30px; } }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 14px 0 4px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; font-weight: 500; white-space: nowrap; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--ink); color: var(--card); border-color: var(--ink); }
@media (min-width: 768px) { .chips { margin: 0; padding-left: 0; padding-right: 0; flex-wrap: wrap; } }

/* ---------- Qidiruv sahifasi ---------- */
.list-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 16px; align-items: start; }
.list-layout > * { min-width: 0; }
@media (min-width: 1024px) { .list-layout { grid-template-columns: 290px minmax(0, 1fr); gap: 24px; } }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.toolbar form { min-width: 0; }
.toolbar .select-inline { max-width: 100%; }
@media (max-width: 520px) { .toolbar .btn { padding: 0 12px; } .toolbar .btn-map span { display: none; } .toolbar .select-inline { width: 132px; } }
.toolbar .select-inline { height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); padding: 0 34px 0 12px; font-size: 14px; font-weight: 500; }
.filter-toggle { position: relative; }
.filter-toggle .dot { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 5px; }
@media (min-width: 1024px) { .filter-toggle { display: none; } }

.filters { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.filters-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line-2); }
.filters-head h3 { font-size: 16px; }
.filters-body { padding: 6px 18px 18px; display: grid; gap: 4px; }
.filters-foot { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line-2); }
.fgroup { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.fgroup:last-child { border-bottom: 0; }
.fgroup > label, .fgroup > .flabel { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.frange { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills label { position: relative; }
.pills input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pills span { display: grid; place-items: center; min-width: 42px; height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; background: var(--card); }
.pills input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.pills input:focus-visible + span { outline: 3px solid rgba(14, 124, 102, .35); }
.check { display: flex; align-items: center; gap: 10px; font-size: 14.5px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }

@media (max-width: 1023px) {
  .filters { position: fixed; inset: 0; z-index: 80; border-radius: 0; border: 0; display: flex; flex-direction: column; transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility 0s .25s; }
  .filters.open { transform: none; visibility: visible; transition: transform .25s ease; }
  .filters-body { flex: 1; overflow-y: auto; }
  .filters-foot { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
}
@media (min-width: 1024px) { .filters { position: sticky; top: calc(var(--header-h) + 62px); max-height: calc(100vh - var(--header-h) - 80px); display: flex; flex-direction: column; } .filters-body { overflow-y: auto; } .filters-close { display: none; } }

.empty { text-align: center; padding: 56px 20px; background: var(--card); border: 1px dashed var(--dash); border-radius: var(--radius); }
.empty .cat-icon { margin: 0 auto 14px; width: 64px; height: 64px; border-radius: 20px; --c: var(--brand); }
.empty .cat-icon .i { width: 30px; height: 30px; }
.empty h3 { font-size: 18px; }
.empty p { color: var(--muted); margin: 6px auto 18px; max-width: 380px; }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .gap { border: 0; background: none; }

/* ---------- Formalar ---------- */
.field { display: grid; gap: 6px; align-content: start; }
.field > label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field .req { color: var(--danger); }
.field .help { font-size: 12.5px; color: var(--muted); }
.field .error { font-size: 13px; color: var(--danger); font-weight: 500; }
.input, .field input[type=text], .field input[type=number], .field input[type=tel], .field input[type=password], .field input[type=email],
.field select, .field textarea, .filters input[type=text], .filters input[type=number], .filters select {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card);
  outline: 0; transition: border-color .15s, box-shadow .15s; font-size: 15px;
}
.filters input[type=text], .filters input[type=number], .filters select { height: 42px; font-size: 14px; border-radius: 10px; }
.field textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 140px; line-height: 1.55; }
.field select, .filters select, .toolbar .select-inline, .hero-search select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}
.field input:focus, .field select:focus, .field textarea:focus, .filters input:focus, .filters select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(14, 124, 102, .12); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 640px) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .field-row.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.input-group { display: flex; gap: 8px; }
.input-group > :first-child { flex: 1; min-width: 0; }
.input-group select { width: auto; min-width: 96px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-row label { position: relative; }
.radio-row input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-row span { display: inline-flex; align-items: center; height: 42px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--line); font-weight: 600; font-size: 14px; background: var(--card); }
.radio-row input:checked + span { border-color: var(--brand); background: var(--brand-50); color: var(--brand-700); }
.radio-row input:focus-visible + span { outline: 3px solid rgba(14, 124, 102, .35); }
.radio-list { display: grid; gap: 8px; }
.radio-list label { display: flex; align-items: center; gap: 10px; font-size: 14.5px; cursor: pointer; }
.radio-list input { accent-color: var(--brand); width: 18px; height: 18px; }
ul.radio-list, .radio-list ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }

.form-layout { display: grid; gap: 20px; margin-top: 8px; align-items: start; }
@media (min-width: 1024px) { .form-layout { grid-template-columns: 1fr 320px; gap: 28px; } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; }
.panel + .panel { margin-top: 14px; }
.panel-title { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 750; margin-bottom: 16px; }
.panel-title .step { width: 26px; height: 26px; border-radius: 8px; background: var(--brand-50); color: var(--brand-700); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.panel .stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.field { min-width: 0; }
@media (min-width: 768px) { .panel { padding: 24px; } }
.tips { position: sticky; top: calc(var(--header-h) + 62px); }
.tips ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; font-size: 14px; color: var(--ink-2); }
.tips li { display: flex; gap: 10px; }
.tips li .i { color: var(--brand); margin-top: 1px; }
.form-actions { position: sticky; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 5; margin-top: 14px; padding: 12px; background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); display: flex; gap: 10px; justify-content: flex-end; backdrop-filter: blur(8px); }
@media (min-width: 900px) { .form-actions { bottom: 12px; } }
.form-actions .btn-primary { min-width: 200px; }
@media (max-width: 520px) { .form-actions .btn-primary { flex: 1; min-width: 0; } }

/* Rasm yuklash */
.uploader { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 640px) { .uploader { grid-template-columns: repeat(5, 1fr); } }
.upl-add {
  aspect-ratio: 1; border: 2px dashed var(--dash); border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; color: var(--brand); font-size: 13px; font-weight: 600; cursor: pointer; background: var(--brand-50); transition: border-color .15s, background .15s; text-align: center; padding: 6px;
}
.upl-add:hover, .uploader.drag .upl-add { border-color: var(--brand); background: var(--brand-100); }
.upl-add input { display: none; }
.upl-item { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--line-2); border: 1px solid var(--line); }
.upl-item img { width: 100%; height: 100%; object-fit: cover; }
.upl-item .upl-x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(15, 23, 42, .75); color: #fff; display: grid; place-items: center; }
.upl-item .upl-x .i { width: 15px; height: 15px; }
.upl-item .upl-cover { position: absolute; left: 6px; bottom: 6px; }
.upl-item.removed { opacity: .35; }
.upl-item.removed img { filter: grayscale(1); }
.upl-item label.upl-star { position: absolute; left: 6px; top: 6px; }
.upl-item label.upl-star input { position: absolute; opacity: 0; }
.upl-item label.upl-star span { display: inline-flex; height: 24px; padding: 0 8px; align-items: center; border-radius: 6px; font-size: 11px; font-weight: 700; background: var(--glass); cursor: pointer; }
.upl-item label.upl-star input:checked + span { background: var(--accent); }

/* ---------- Auth ---------- */
.auth-wrap { min-height: calc(100vh - var(--header-h) - 120px); display: grid; place-items: center; padding-top: 28px; padding-bottom: 28px; }
.auth-card { width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px 22px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 24px; font-weight: 800; }
.auth-card .sub { color: var(--muted); margin: 6px 0 22px; }
.auth-card form { display: grid; gap: 16px; }
.auth-foot { text-align: center; margin-top: 18px; font-size: 14.5px; color: var(--muted); }
.auth-foot a { color: var(--brand); font-weight: 600; }
.form-errors { padding: 10px 14px; border-radius: 12px; background: var(--danger-50); color: var(--danger-ink); font-size: 14px; }
@media (min-width: 640px) { .auth-card { padding: 36px 34px; } }

/* ---------- E'lon sahifasi ---------- */
.detail-layout { display: grid; gap: 20px; align-items: start; }
@media (min-width: 1024px) { .detail-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; } }
.gallery { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery-main { position: relative; background: #0f172a; aspect-ratio: 4 / 3; }
.gallery-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track figure { flex: 0 0 100%; margin: 0; scroll-snap-align: center; display: grid; place-items: center; cursor: zoom-in; }
.gallery-track img { width: 100%; height: 100%; object-fit: contain; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--glass); color: var(--ink); display: none; place-items: center; box-shadow: var(--shadow); }
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }
@media (min-width: 768px) { .gallery-nav { display: grid; } }
.gallery-count { position: absolute; right: 12px; bottom: 12px; }
.gallery-thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; scrollbar-width: thin; }
.gallery-thumbs button { flex: 0 0 76px; height: 58px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: var(--line-2); opacity: .7; }
.gallery-thumbs button.active { border-color: var(--brand); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-empty { aspect-ratio: 16 / 9; display: grid; place-items: center; color: var(--placeholder); background: linear-gradient(135deg, var(--noimg-a), var(--noimg-b)); }
.gallery-empty .i { width: 64px; height: 64px; stroke-width: 1.2; }

.detail-head { padding: 20px 18px; }
.detail-head .badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.detail-head h1 { font-size: 22px; font-weight: 750; }
.detail-price { font-size: 28px; font-weight: 850; letter-spacing: -.03em; margin-top: 10px; }
.detail-price small { font-size: 14px; font-weight: 600; color: var(--brand); margin-left: 8px; letter-spacing: 0; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.detail-meta span { display: inline-flex; align-items: center; gap: 5px; }
@media (min-width: 768px) { .detail-head { padding: 24px; } .detail-head h1 { font-size: 26px; } .detail-price { font-size: 32px; } }

.specs { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.specs div { background: var(--card); padding: 12px 14px; box-shadow: inset -1px -1px 0 var(--line-2); }
.specs dt { font-size: 12.5px; color: var(--muted); }
.specs dd { margin: 2px 0 0; font-weight: 650; font-size: 15px; }
@media (min-width: 640px) { .specs { grid-template-columns: repeat(3, 1fr); } }
.description { white-space: pre-line; font-size: 15.5px; line-height: 1.7; color: var(--ink-2); overflow-wrap: anywhere; }

.side { display: grid; gap: 14px; }
@media (min-width: 1024px) { .side { position: sticky; top: calc(var(--header-h) + 62px); } }
.seller { display: flex; gap: 12px; align-items: center; }
.seller strong { display: block; font-size: 16px; color: var(--ink); }
.seller > span:last-child > span { font-size: 13px; color: var(--muted); }
.contact-btns { display: grid; gap: 8px; margin-top: 16px; }
.side-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.side-actions .btn { flex-direction: column; height: auto; padding: 10px 4px; gap: 4px; font-size: 12.5px; font-weight: 600; }
.safety { font-size: 13.5px; color: var(--ink-2); background: var(--accent-50); border: 1px solid var(--warn-line); border-radius: var(--radius); padding: 14px 16px; }
.safety strong { display: flex; align-items: center; gap: 8px; color: var(--warn-ink); margin-bottom: 6px; }
.safety ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }

.contact-bar { position: fixed; left: 0; right: 0; bottom: calc(57px + env(safe-area-inset-bottom)); z-index: 45; padding: 10px 16px; background: var(--glass); border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 8px; backdrop-filter: blur(8px); }
.has-contact-bar { padding-bottom: calc(130px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .contact-bar { display: none; } .has-contact-bar { padding-bottom: 0; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(2, 6, 23, .95); display: none; }
.lightbox.open { display: block; }
.lightbox .gallery-track { height: 100%; }
.lightbox .gallery-track figure { cursor: default; }
.lightbox-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; }
.lightbox .gallery-nav { display: grid; background: rgba(255, 255, 255, .14); color: #fff; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 90; display: none; align-items: flex-end; justify-content: center; background: rgba(15, 23, 42, .5); padding: 0; }
.modal.open { display: flex; }
.modal-card { width: 100%; max-width: 480px; background: var(--card); border-radius: 22px 22px 0 0; padding: 22px 20px calc(20px + env(safe-area-inset-bottom)); max-height: 90vh; overflow-y: auto; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-head h3 { font-size: 18px; }
@media (min-width: 640px) { .modal { align-items: center; padding: 20px; } .modal-card { border-radius: 22px; } }

/* ---------- Mening e'lonlarim ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 20px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.stat span { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.stat strong { display: block; font-size: 22px; font-weight: 800; margin-top: 4px; letter-spacing: -.02em; }
@media (min-width: 768px) { .stat { padding: 18px 20px; } .stat strong { font-size: 28px; } }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 12px 14px; font-weight: 600; font-size: 14.5px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.tabs a.active { color: var(--ink); border-color: var(--brand); }
.tabs a em { font-style: normal; font-size: 12px; background: var(--line-2); padding: 1px 8px; border-radius: 999px; color: var(--ink-2); }
.rows { display: grid; gap: 12px; }
.row-item { display: grid; grid-template-columns: 96px 1fr; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.row-media { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--line-2); }
.row-media img { width: 100%; height: 100%; object-fit: cover; }
.row-media .card-noimg .i { width: 28px; height: 28px; }
.row-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.row-body h3 { font-size: 15.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-body .card-price { font-size: 16px; }
.row-stats { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--muted); }
.row-stats span { display: inline-flex; align-items: center; gap: 4px; }
.row-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.row-actions form { display: contents; }
.reject-note { font-size: 13px; color: var(--danger); background: var(--danger-50); padding: 6px 10px; border-radius: 8px; }
@media (min-width: 768px) {
  .row-item { grid-template-columns: 140px 1fr auto; padding: 14px; gap: 16px; align-items: center; }
  .row-actions { grid-column: auto; border: 0; padding: 0; flex-direction: column; align-items: stretch; }
}

/* Sotuvchi sahifasi */
.profile-head { display: flex; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 18px 0 20px; }
.profile-head h1 { font-size: 22px; }

/* Matnli sahifalar */
.prose { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; max-width: 820px; line-height: 1.7; color: var(--ink-2); }
.prose h1 { font-size: 26px; color: var(--ink); margin-bottom: 14px; }
.prose h2 { font-size: 19px; color: var(--ink); margin: 24px 0 8px; }
.prose p + p { margin-top: 10px; }
.prose ul, .prose ol { padding-left: 20px; }
@media (min-width: 768px) { .prose { padding: 36px 40px; } }

/* Barcha kategoriyalar sahifasi */
.cat-list { display: grid; gap: 14px; margin-top: 16px; }
@media (min-width: 768px) { .cat-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cat-list { grid-template-columns: repeat(3, 1fr); } }
.cat-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.cat-block > a { display: flex; align-items: center; gap: 12px; font-weight: 750; font-size: 17px; }
.cat-block ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 2px; }
.cat-block li a { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 8px; font-size: 14.5px; color: var(--ink-2); }
.cat-block li a:hover { background: var(--line-2); color: var(--brand); }

.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--card); padding: 10px 16px; border-radius: 12px; font-size: 14px; opacity: 0; transition: opacity .2s, transform .2s; z-index: 120; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (min-width: 900px) { .toast { bottom: 28px; } }

.overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 70; display: none; }
.overlay.show { display: block; }
body.lock { overflow: hidden; }
@media (max-width: 480px) { .header-add span { display: none; } .header-add { width: 44px; padding: 0; } }
.form-steps { counter-reset: step; }
.form-steps .panel:not([hidden]) .step::before { counter-increment: step; content: counter(step); }
@media (max-width: 1023px) { .form-steps .tips { display: none; } }
.stat span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 767px) {
  .row-actions { display: grid; grid-template-columns: 1fr 1fr 36px; }
  .act-delete { width: 36px; padding: 0; grid-column: 3; }
  .act-delete span { display: none; }
}

/* ======================= Xarita ======================= */
.leaflet-container { font: inherit; background: var(--map-bg); }
.leaflet-container a { color: inherit; }
.leaflet-control-attribution { font-size: 10.5px; background: var(--glass) !important; color: var(--muted); }
.leaflet-bar, .leaflet-control-zoom { border: 0 !important; box-shadow: var(--shadow) !important; border-radius: 12px !important; overflow: hidden; }
.leaflet-control-zoom a { width: 38px !important; height: 38px !important; line-height: 38px !important; font-size: 18px !important; color: var(--ink) !important; }
.map-ctl { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 12px; background: var(--card); color: var(--brand); box-shadow: var(--shadow); }
.map-ctl:hover { background: var(--brand-50); }
.map-ctl.busy .i { animation: map-spin 1s linear infinite; }
@keyframes map-spin { to { transform: rotate(360deg); } }

/* Belgi (bitta joy) */
.map-pin-wrap { background: none; border: 0; }
.map-pin { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: var(--brand); border: 3px solid #fff; box-shadow: 0 6px 16px -4px rgba(14, 124, 102, .7); }
.map-pin .i { transform: rotate(45deg); color: #fff; width: 18px; height: 18px; }

/* Narx belgilari */
.map-price-wrap { background: none; border: 0; }
.map-price {
  position: absolute; left: 0; top: 0; transform: translate(-50%, calc(-100% - 7px));
  display: inline-block; padding: 5px 9px; border-radius: 9px; white-space: nowrap; cursor: pointer;
  background: var(--card); color: var(--ink); font-weight: 750; font-size: 12.5px; letter-spacing: -.01em;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .22), 0 0 0 1px rgba(15, 23, 42, .06); transition: transform .12s, background .12s, color .12s;
}
.map-price::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 0 0 3px 0; box-shadow: 2px 2px 3px rgba(15, 23, 42, .08); }
.map-price.vip { background: var(--accent); color: #2b1a00; }
.map-price:hover, .map-price.active { background: var(--brand); color: #fff; transform: translate(-50%, calc(-100% - 7px)) scale(1.08); z-index: 1000; }
.map-cluster { background: none; }
.map-cluster span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: 13.5px; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(14, 124, 102, .22), 0 4px 12px -2px rgba(15, 23, 42, .35); }

/* Popup va ro'yxat kartochkasi */
.map-popup .leaflet-popup-content-wrapper { padding: 0; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); }
.map-popup .leaflet-popup-content { margin: 0; width: auto !important; }
.map-popup .map-card { border: 0; border-radius: 0; }
.map-card { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 10px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); transition: border-color .15s, box-shadow .15s; color: var(--ink) !important; }
.map-card:hover, .map-card.active { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14, 124, 102, .12); }
.map-card-img { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--line-2); display: grid; place-items: center; color: var(--placeholder); }
.map-card-img img { width: 100%; height: 100%; object-fit: cover; }
.map-card-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; }
.map-card-body b { font-size: 15.5px; font-weight: 800; letter-spacing: -.02em; }
.map-card-title { color: var(--ink-2); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.map-card-specs { color: var(--ink-2); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-card-place { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: auto; }
.map-card-place em { font-style: normal; font-weight: 700; color: var(--warn-ink); }

/* Formadagi tanlagich va e'londagi xarita */
.map-picker { height: 320px; border-radius: 14px; overflow: hidden; border: 1.5px solid var(--line); cursor: crosshair; }
.map-picker.has-pin { border-color: var(--brand); }
.map-picker-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.map-view { height: 280px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.map-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* ---------- Xaritada qidiruv sahifasi ---------- */
body.map-page { height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
body.map-page .footer { display: none; }
body.map-page main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
body.map-page main > .container:first-child { flex: none; }
body.map-page main > .container:first-child:empty { display: none; }
.map-shell { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.map-filters { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--card); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; flex: none; }
.map-filters::-webkit-scrollbar { display: none; }
.map-filters select, .map-filters input[type=number] { height: 38px; border-radius: 10px; border: 1px solid var(--line); background-color: var(--card); padding: 0 12px; font-size: 14px; flex: none; outline: 0; }
.map-filters select { appearance: none; padding-right: 32px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.map-filters input[type=number] { width: 108px; }
.map-filters select:focus, .map-filters input:focus { border-color: var(--brand); }
.map-filters .pills { flex-wrap: nowrap; flex: none; }
.map-filters .pills span { height: 38px; min-width: 38px; font-size: 13.5px; }
.map-filters .sep { width: 1px; height: 24px; background: var(--line); flex: none; }
.map-filters .flabel { font-size: 13px; color: var(--muted); font-weight: 600; flex: none; }
.map-body { flex: 1; min-height: 0; display: flex; position: relative; }
.map-side { width: 420px; flex: none; display: flex; flex-direction: column; background: var(--bg); border-right: 1px solid var(--line); }
.map-side-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--card); }
.map-side-head strong { font-size: 15px; }
.map-side-head a { font-size: 13.5px; font-weight: 600; color: var(--brand); display: inline-flex; align-items: center; gap: 4px; }
#map-list { flex: 1; overflow-y: auto; padding: 12px; display: grid; align-content: start; gap: 10px; }
.map-empty { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 40px 16px; color: var(--muted); font-size: 14px; }
.map-empty .i { width: 32px; height: 32px; color: var(--placeholder); }
.map-empty b { color: var(--ink); }
.map-canvas { flex: 1; position: relative; min-width: 0; }
#map { position: absolute; inset: 0; }
.map-loading { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 500; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); font-size: 13px; font-weight: 600; }
.map-loading::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--brand-100); border-top-color: var(--brand); animation: map-spin .8s linear infinite; }
.map-fab { display: none; }

@media (max-width: 899px) {
  body.map-page { padding-bottom: 0; }
  body.map-page main { padding-bottom: calc(57px + env(safe-area-inset-bottom)); }
  .map-side { position: absolute; inset: 0; z-index: 600; width: auto; border: 0; transform: translateY(100%); transition: transform .25s ease; visibility: hidden; }
  body.map-list-open .map-side { transform: none; visibility: visible; }
  .map-fab { display: inline-flex; position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 700; box-shadow: var(--shadow-lg); border-radius: 999px; height: 46px; padding: 0 20px; }
  body.map-list-open .map-fab .fab-list, .map-fab .fab-map { display: none; }
  body.map-list-open .map-fab .fab-map { display: inline-flex; align-items: center; gap: 8px; }
  .map-fab .fab-list { display: inline-flex; align-items: center; gap: 8px; }
  .map-filters { padding: 8px 12px; }
}
.catbar a.catbar-map { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-700); font-weight: 600; background: var(--brand-50); }
.catbar a.catbar-map:hover, .catbar a.catbar-map.active { background: var(--brand); color: #fff; }

.map-banner { position: relative; display: grid; gap: 14px; align-items: center; margin-top: 32px; padding: 18px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: box-shadow .2s; }
.map-banner:hover { box-shadow: var(--shadow); }
.map-banner-art {
  position: relative; display: block; height: 150px; border-radius: 16px; overflow: hidden;
  background:
    linear-gradient(90deg, transparent 49.6%, var(--card) 49.6%, var(--card) 50.4%, transparent 50.4%) 0 0 / 90px 90px,
    linear-gradient(0deg, transparent 48%, var(--card) 48%, var(--card) 52%, transparent 52%) 0 0 / 120px 70px,
    radial-gradient(circle at 70% 30%, var(--brand-100) 0 14%, transparent 15%),
    linear-gradient(160deg, var(--noimg-a), var(--noimg-b));
}
.map-banner-art .map-price { transform: translate(-50%, -100%); }
.map-banner-text strong { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.map-banner-text span { color: var(--muted); font-size: 14.5px; }
.map-banner > .btn { justify-self: start; }
@media (min-width: 768px) {
  .map-banner { grid-template-columns: 300px 1fr auto; padding: 16px 28px 16px 16px; margin-top: 44px; }
  .map-banner-art { height: 120px; }
}
.leaflet-tile-pane { filter: saturate(.72) brightness(1.03); }
.leaflet-bar a, .leaflet-bar a:hover { background: var(--card) !important; border-color: var(--line) !important; color: var(--ink) !important; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--card); color: var(--ink); }
.leaflet-container a.leaflet-popup-close-button { color: var(--muted); }
.theme-toggle .theme-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .theme-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .theme-moon { display: none; }
:root[data-theme="dark"] .hero {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(245, 165, 36, .22) 0%, transparent 45%),
    radial-gradient(90% 120% at 0% 100%, rgba(34, 197, 160, .22) 0%, transparent 55%),
    linear-gradient(135deg, #073d33 0%, #0a5c4c 50%, #0b6b58 100%);
}

/* ======================= Chat ======================= */
.inbox { margin-top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.inbox-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); transition: background .15s; }
.inbox-item:last-child { border-bottom: 0; }
.inbox-item:hover { background: var(--surface-2); }
.inbox-thumb { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; flex: none; background: var(--line-2); display: grid; place-items: center; color: var(--placeholder); }
.inbox-thumb img { width: 100%; height: 100%; object-fit: cover; }
.inbox-body { flex: 1; min-width: 0; display: grid; gap: 1px; }
.inbox-top { display: flex; justify-content: space-between; gap: 8px; }
.inbox-top strong { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-top time { font-size: 12px; color: var(--muted); white-space: nowrap; }
.inbox-listing { font-size: 12.5px; color: var(--brand-700); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-last { font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-item.unread .inbox-last { color: var(--ink); font-weight: 600; }
.inbox-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); flex: none; }

body.chat-page { height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
body.chat-page .footer { display: none; }
body.chat-page main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
body.chat-page main > .container:first-child:empty { display: none; }
.chat-wrap { flex: 1; min-height: 0; display: flex; max-width: 860px; padding-top: 16px; padding-bottom: 16px; }
.chat { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); flex: none; }
.chat-who { min-width: 0; flex: 1; }
.chat-who strong { display: block; font-size: 15px; }
.chat-who span { font-size: 12.5px; color: var(--muted); }
.chat-listing { display: flex; align-items: center; gap: 10px; max-width: 46%; padding: 6px 10px 6px 6px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); min-width: 0; }
.chat-listing:hover { border-color: var(--brand); }
.chat-listing-img { width: 40px; height: 40px; border-radius: 8px; overflow: hidden; flex: none; background: var(--line-2); }
.chat-listing-img img { width: 100%; height: 100%; object-fit: cover; }
.chat-listing > span:last-child { min-width: 0; display: grid; font-size: 12.5px; }
.chat-listing b { font-size: 13.5px; }
.chat-listing > span:last-child > span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-log { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.chat-hint { margin: auto; max-width: 320px; text-align: center; color: var(--muted); font-size: 14px; }
.msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 78%; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg-bubble { padding: 9px 13px; border-radius: 16px 16px 16px 4px; background: var(--card); border: 1px solid var(--line); font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }
.msg.mine .msg-bubble { background: var(--brand); border-color: var(--brand); color: #fff; border-radius: 16px 16px 4px 16px; }
.msg-time { font-size: 11px; color: var(--muted); margin: 3px 4px 0; }
.chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); flex: none; }
.chat-form textarea { flex: 1; resize: none; min-height: 44px; max-height: 140px; padding: 11px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); outline: 0; line-height: 1.4; font-size: 15px; }
.chat-form textarea:focus { border-color: var(--brand); }
@media (max-width: 899px) {
  body.chat-page { padding-bottom: 0; }
  body.chat-page main { padding-bottom: calc(57px + env(safe-area-inset-bottom)); }
  .chat-wrap { padding: 0; }
  .chat { border-radius: 0; border-left: 0; border-right: 0; }
  .chat-listing { display: none; }
}
.nav-badge { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.has-badge { position: relative; }
@media (max-width: 767px) { .row-actions .act-bump { grid-column: 1 / -1; } }
.price-alt { margin-top: 2px; font-size: 14px; color: var(--muted); font-weight: 500; }
.act-bump-wait { cursor: default; opacity: .65; }
@media (max-width: 767px) { .row-actions .act-bump-wait { display: none; } }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--muted); font-size: 13px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-telegram { background: #2aabee; border-color: #2aabee; color: #fff; }
.btn-telegram:hover { background: #229ed9; border-color: #229ed9; }

/* Avatar yuklash */
.avatar-upload { display: flex; align-items: center; gap: 14px; }
.avatar-upload input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.avatar-upload .avatar-lg { width: 64px; height: 64px; }
.avatar-upload-text { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -4px 0 14px; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px 0 12px; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); font-size: 13px; font-weight: 600; border: 1px solid var(--brand-100); }
.filter-chip:hover { background: var(--brand-100); }
.filter-chip .i { width: 14px; height: 14px; opacity: .7; }
.filter-clear { font-size: 13px; font-weight: 600; color: var(--muted); padding: 0 6px; }
.filter-clear:hover { color: var(--danger); }

/* ======================= Telegram Web App (to'liq ekran) ======================= */
/* telegram-web-app.js qurilma va Telegram tugmalari egallagan joyni CSS o'zgaruvchilarda beradi */
:root.in-telegram {
  --tg-top: calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px));
  --tg-bottom: max(env(safe-area-inset-bottom), var(--tg-safe-area-inset-bottom, 0px));
}
:root.in-telegram .header { padding-top: var(--tg-top); }
:root.in-telegram .tabbar { padding-bottom: var(--tg-bottom); }
:root.in-telegram body { padding-bottom: calc(64px + var(--tg-bottom)); }
:root.in-telegram body.map-page, :root.in-telegram body.chat-page { padding-bottom: 0; }
:root.in-telegram body.map-page main, :root.in-telegram body.chat-page main { padding-bottom: calc(57px + var(--tg-bottom)); }
:root.in-telegram .contact-bar { bottom: calc(57px + var(--tg-bottom)); }
:root.in-telegram .footer { display: none; }
:root.in-telegram .lightbox-close { top: calc(14px + var(--tg-top)); }
@media (max-width: 1023px) { :root.in-telegram .filters { padding-top: var(--tg-top); } }
@media (min-width: 900px) { :root.in-telegram body { padding-bottom: 0; } }

/* ======================= Telefon uchun ixcham o'lchamlar ======================= */
@media (max-width: 640px) {
  :root { --header-h: 56px; --radius: 14px; }
  body { font-size: 14px; }

  /* Sarlavha */
  .header-row { height: 56px; gap: 10px; }
  .logo { font-size: 18px; gap: 8px; }
  .logo-mark { width: 32px; height: 32px; border-radius: 9px; }
  .logo-mark .i { width: 18px; height: 18px; }
  .header-actions { gap: 2px; }
  .header-actions .btn-icon { width: 38px; height: 38px; }
  .header-actions .avatar { width: 32px; height: 32px; font-size: 13px; }
  .header-actions .btn-ghost[data-dropdown] { height: 38px; }
  .header-add { display: none; }  /* pastki menyuda «+» bor */
  .mobile-search { padding-bottom: 10px; }
  .searchbox { height: 42px; }
  .searchbox button { padding: 0 14px; font-size: 14px; }

  /* Pastki menyu */
  .tabbar a { height: 52px; padding: 0; justify-content: center; font-size: 10.5px; gap: 2px; }
  .tabbar a .i { width: 22px; height: 22px; }
  .tabbar .tab-add span:first-child { width: 44px; height: 44px; margin-top: -18px; border-width: 3px; }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  body.map-page main, body.chat-page main { padding-bottom: calc(52px + env(safe-area-inset-bottom)); }

  /* Tugmalar va maydonlar */
  .btn { height: 42px; padding: 0 16px; font-size: 14.5px; border-radius: 11px; }
  .btn-sm { height: 34px; padding: 0 11px; font-size: 13px; }
  .btn-lg { height: 48px; font-size: 15.5px; border-radius: 13px; }
  .btn-icon { width: 42px; padding: 0; }
  .btn-sm.btn-icon { width: 34px; }
  /* iPhone 16px dan kichik matnli maydonga bosilganda sahifani kattalashtiradi — 16px qilamiz */
  .field input[type=text], .field input[type=number], .field input[type=tel], .field input[type=password],
  .field input[type=email], .field select, .field textarea, .searchbox input, .hero-search input, .hero-search select,
  .filters input, .filters select, .chat-form textarea, .map-filters input, .map-filters select { font-size: 16px; }
  .field input[type=text], .field input[type=number], .field input[type=tel], .field input[type=password], .field select { height: 44px; }

  /* Bo'limlar */
  .section { margin-top: 26px; }
  .section-head { margin-bottom: 12px; }
  .section-head h2 { font-size: 18px; }
  .page-title h1 { font-size: 21px; }
  .crumbs { margin: 12px 0 8px; font-size: 12.5px; }

  /* Bosh sahifa */
  .hero { padding: 20px 16px 18px; border-radius: 18px; margin-top: 12px; }
  .hero-badge { font-size: 12px; padding: 4px 10px; }
  .hero h1 { font-size: 22px; margin-top: 12px; }
  .hero p { font-size: 13.5px; margin-top: 8px; }
  .hero-search { margin-top: 16px; padding: 6px; gap: 6px; border-radius: 14px; }
  .hero-search .hs-field, .hero-search .btn { height: 44px; }
  .hero-stats { gap: 18px; margin-top: 14px; font-size: 12px; }
  .hero-stats strong { font-size: 17px; }
  .cat-tile span { font-size: 11.5px; }
  .cat-icon { width: 40px; height: 40px; border-radius: 12px; }
  .cat-icon .i { width: 20px; height: 20px; }
  .cta { padding: 20px 18px; border-radius: 18px; margin-top: 30px; gap: 12px; }
  .cta h2 { font-size: 18px; }
  .cta p { font-size: 13.5px; }
  .features { margin-top: 26px; gap: 10px; }
  .feature { padding: 14px; gap: 12px; }
  .feature h3 { font-size: 14.5px; }
  .feature p { font-size: 13px; }
  .map-banner { padding: 14px; gap: 10px; margin-top: 26px; border-radius: 18px; }
  .map-banner-art { height: 110px; }
  .map-banner-text strong { font-size: 17px; }
  .map-banner-text span { font-size: 13px; }

  /* Kartochkalar */
  .card-body { padding: 9px 10px 10px; gap: 3px; }
  .card-price { font-size: 15px; }
  .card-title { font-size: 13px; }
  .card-specs { font-size: 11.5px; }
  .card-meta { font-size: 11px; }
  .fav-btn { width: 30px; height: 30px; }
  .fav-btn .i { width: 16px; height: 16px; }

  /* E'lon sahifasi */
  .detail-head { padding: 16px 14px; }
  .detail-head h1 { font-size: 18px; }
  .detail-price { font-size: 23px; margin-top: 8px; }
  .detail-meta { font-size: 12.5px; gap: 4px 12px; }
  .panel { padding: 16px 14px; }
  .panel-title { font-size: 15.5px; margin-bottom: 12px; }
  .description { font-size: 14.5px; }
  .specs dd { font-size: 14px; }
  .contact-bar { padding: 8px 12px; bottom: calc(52px + env(safe-area-inset-bottom)); }

  /* Kabinet */
  .stats { gap: 8px; margin: 12px 0 16px; }
  .stat { padding: 12px; }
  .stat strong { font-size: 19px; }
  .profile-head { padding: 14px; margin: 12px 0 14px; gap: 12px; }
  .profile-head h1 { font-size: 18px; }
  .avatar-lg { width: 48px; height: 48px; font-size: 19px; }
  .tabs a { padding: 10px 12px; font-size: 13.5px; }
}
@media (max-width: 640px) {
  :root.in-telegram body { padding-bottom: calc(60px + var(--tg-bottom)); }
  :root.in-telegram .contact-bar { bottom: calc(52px + var(--tg-bottom)); }
  :root.in-telegram body.map-page main, :root.in-telegram body.chat-page main { padding-bottom: calc(52px + var(--tg-bottom)); }
}

/* ======================= Bosh sahifa: rasmli banner ======================= */
.hero-photo { background: #0a2a23; }
.hero-photo::after { opacity: .05; }
.hero > .hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.06); transition: opacity 1s ease, transform 7s ease; }
.hero-bg-slide.active { opacity: 1; transform: scale(1); }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 18, 14, .85) 0%, rgba(3, 18, 14, .6) 50%, rgba(3, 18, 14, .25) 100%),
    linear-gradient(0deg, rgba(3, 18, 14, .55) 0%, transparent 45%);
}
@media (max-width: 700px) { .hero-bg::after { background: linear-gradient(180deg, rgba(3, 18, 14, .55), rgba(3, 18, 14, .82)); } }
.hero-photo h1, .hero-photo p { text-shadow: 0 2px 16px rgba(0, 0, 0, .35); }
.hero-link { margin-top: 14px; }
.hero-dots { position: absolute !important; right: 20px; bottom: 18px; display: flex; gap: 6px; }
.hero-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .45); transition: width .25s, background .25s; }
.hero-dots button.active { width: 22px; background: #fff; }
@media (prefers-reduced-motion: reduce) { .hero-bg-slide { transition: opacity .3s; transform: none; } }

/* ======================= Aqlli sarlavha: pastga — yashiriladi, tepaga — qaytadi ======================= */
:root { --tabbar-h: 57px; }
@media (max-width: 640px) { :root { --tabbar-h: 52px; } }
.header, .tabbar, .contact-bar { transition: transform .28s cubic-bezier(.2, .7, .2, 1); will-change: transform; }
/* Telegram ichida Telegram tugmalari ostidagi chiziq qoladi — kontent ularning tagiga kirmaydi */
:root.bars-hidden .header { transform: translateY(calc(-100% + var(--tg-top, 0px))); }
:root.bars-hidden .tabbar { transform: translateY(100%); }
:root.bars-hidden .contact-bar { transform: translateY(var(--tabbar-h)); }
:root.bars-hidden .header .dropdown-menu { display: none; }
.filters, .tips, .side { transition: top .28s cubic-bezier(.2, .7, .2, 1); }
@media (min-width: 1024px) {
  :root.bars-hidden .filters, :root.bars-hidden .side { top: 16px; }
}
:root.bars-hidden .tips { top: 16px; }
@media (prefers-reduced-motion: reduce) { .header, .tabbar, .contact-bar, .filters, .tips, .side { transition: none; } }

/* ======================= Qo'llab-quvvatlash ======================= */
.support-fab {
  position: fixed; right: 16px; z-index: 44; display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 18px 0 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 14px;
  box-shadow: 0 10px 24px -8px rgba(14, 124, 102, .65), 0 2px 6px rgba(15, 23, 42, .15);
  bottom: calc(var(--tabbar-h) + 14px + env(safe-area-inset-bottom));
  transition: transform .28s cubic-bezier(.2, .7, .2, 1), background .15s;
}
.support-fab:hover { background: var(--brand-600); }
.support-fab .i { width: 22px; height: 22px; }
@media (min-width: 900px) { .support-fab { right: 24px; bottom: 24px; } }
@media (max-width: 640px) {
  .support-fab { width: 48px; padding: 0; justify-content: center; }
  .support-fab span { display: none; }
}
/* E'lon sahifasida «Yozish / Qo'ng'iroq» paneli ustida turadi */
.has-contact-bar .support-fab { bottom: calc(var(--tabbar-h) + 76px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .has-contact-bar .support-fab { bottom: 24px; } }
:root.in-telegram .support-fab { bottom: calc(var(--tabbar-h) + 14px + var(--tg-bottom)); }
:root.in-telegram .has-contact-bar .support-fab { bottom: calc(var(--tabbar-h) + 76px + var(--tg-bottom)); }
:root.bars-hidden .support-fab { transform: translateY(var(--tabbar-h)); }
@media (min-width: 900px) { :root.bars-hidden .support-fab { transform: none; } }

.support-options { display: grid; gap: 10px; }
.support-option { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); transition: border-color .15s, background .15s; }
.support-option:hover { border-color: var(--brand); background: var(--brand-50); }
.support-option > span:nth-child(2) { flex: 1; display: grid; }
.support-option strong { font-size: 15.5px; }
.support-option > span:nth-child(2) > span { color: var(--muted); font-size: 13.5px; }
.support-option > .i { color: var(--muted); }
.footer-contacts { display: grid; gap: 8px; margin-top: 14px; }
.footer-contacts a { display: inline-flex; align-items: center; gap: 8px; color: #cbd5e1; font-weight: 600; }
.footer-contacts a:hover { color: #fff; }
.badge-demo { background: rgba(15, 23, 42, .78); color: #fff; letter-spacing: .02em; }
.detail-head .badge-demo { background: var(--info-bg); color: var(--info-ink); }
.demo-note { border-color: var(--info-line); background: linear-gradient(180deg, var(--info-bg), var(--card)); }
.demo-note strong { display: flex; align-items: center; gap: 8px; color: var(--info-ink); font-size: 15px; }
.demo-note p { margin-top: 8px; font-size: 14px; color: var(--ink-2); }

/* Saytdagi e'lon paneli (paneldan boshqariladi) */
.site-notice { font-size: 14px; font-weight: 600; text-align: center; }
.site-notice .container { padding-top: 10px; padding-bottom: 10px; }
.site-notice a { display: inline-flex; align-items: center; gap: 6px; text-decoration: underline; text-underline-offset: 3px; }
.site-notice-info { background: var(--info-bg); color: var(--info-ink); border-bottom: 1px solid var(--info-line); }
.site-notice-success { background: var(--brand-50); color: var(--brand-700); border-bottom: 1px solid var(--brand-100); }
.site-notice-warning { background: var(--accent-50); color: var(--warn-ink); border-bottom: 1px solid var(--warn-line); }
