/* Sarbazar — ranglar ilovadagi AppColors bilan bir xil. */
:root {
  --teal: #13A6A0;
  --teal-dark: #0C7E79;
  --teal-light: #3FC4BF;
  --teal-soft: #E3F5F4;
  --orange: #FF6A1F;
  --orange-dark: #E0530D;
  --orange-soft: #FFEDE4;
  --bg: #F3F7F7;
  --surface: #FFFFFF;
  --border: #E2EBEB;
  --text: #11292C;
  --text-2: #5E7678;
  --muted: #96A9AB;
  --danger: #E5484D;
  --success: #34A853;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(17, 41, 44, .05), 0 6px 20px rgba(17, 41, 44, .06);
  --shadow-lg: 0 10px 40px rgba(17, 41, 44, .16);
  --hdr-h: 68px;
  --tab-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: var(--tab-h);
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 28px; font-weight: 800; }
h2 { font-size: 18px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0 0 .75em; }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.pad { padding: 48px 0; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 860px; }

.ic { width: 20px; height: 20px; flex: none; }

/* ---------- 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: 700; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
.btn.loading { position: relative; color: transparent !important; }
.btn.loading::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .5); border-top-color: #fff; animation: spin .7s linear infinite;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-accent { background: var(--orange); color: #fff; }
.btn-accent:hover { background: var(--orange-dark); }
.btn-outline { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal-dark); }
.btn-ghost { background: transparent; color: var(--teal-dark); }
.btn-ghost:hover { background: var(--teal-soft); }
.btn-tg { background: #229ED9; color: #fff; }
.btn-tg:hover { background: #1c8bbf; }
.btn-block { width: 100%; }
.btn.small { height: 36px; padding: 0 12px; font-size: 13px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  border: 0; background: transparent; color: var(--text-2); cursor: pointer;
}
.icon-btn:hover { background: var(--teal-soft); color: var(--teal-dark); }
:focus-visible { outline: 3px solid rgba(19, 166, 160, .45); outline-offset: 2px; }

/* ---------- Shapka ---------- */
.hdr {
  position: sticky; top: 0; z-index: 1000; height: var(--hdr-h);
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.hdr-in { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.wm { font-weight: 800; font-size: 23px; letter-spacing: -.5px; line-height: 1; }
.wm-a { color: var(--teal); }
.wm-b { color: var(--orange); }
.top-nav { display: flex; gap: 4px; }
.top-nav a {
  position: relative; padding: 8px 12px; border-radius: 10px; font-weight: 600; color: var(--text-2);
  display: inline-flex; align-items: center; gap: 6px;
}
.top-nav a:hover { color: var(--text); background: var(--bg); }
.top-nav a.on { color: var(--teal-dark); background: var(--teal-soft); }
.hdr-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; background: var(--bg); border-radius: 10px; padding: 3px; }
.lang-switch button {
  border: 0; background: transparent; padding: 5px 8px; border-radius: 8px; font-size: 12px;
  font-weight: 700; color: var(--text-2); cursor: pointer;
}
.lang-switch button.on { background: var(--surface); color: var(--teal-dark); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.user-chip {
  display: flex; align-items: center; gap: 4px; padding-left: 12px; max-width: 220px;
  border: 1px solid var(--border); border-radius: 12px; height: 44px; background: var(--surface);
}
.user-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 14px; }
.badge {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 10px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 800; font-style: normal;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; padding: 52px 0 36px;
  background: radial-gradient(120% 140% at 85% 0%, var(--teal-light) 0%, var(--teal) 42%, var(--teal-dark) 100%);
}
.hero::after {
  content: ""; position: absolute; right: -90px; top: -60px; width: 420px; height: 420px; opacity: .1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='13 13 74 74'%3E%3Cg fill='white'%3E%3Crect x='22' y='22' width='56' height='56' rx='9'/%3E%3Crect x='22' y='22' width='56' height='56' rx='9' transform='rotate(45 50 50)'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(28px, 4.2vw, 46px); max-width: 720px; }
.hero-sub { font-size: 17px; opacity: .92; max-width: 640px; margin-bottom: 24px; }
.searchbar {
  display: flex; align-items: center; gap: 10px; max-width: 760px; background: #fff; color: var(--text);
  border-radius: 16px; padding: 6px 6px 6px 16px; box-shadow: var(--shadow-lg);
}
.searchbar > .ic { color: var(--muted); }
.searchbar input { flex: 1; min-width: 0; border: 0; outline: 0; height: 44px; font-size: 16px; background: transparent; }
.deal-tabs { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.deal-tabs button {
  border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .1); color: #fff;
  padding: 8px 16px; border-radius: 999px; font-weight: 600; cursor: pointer;
}
.deal-tabs button.on { background: #fff; color: var(--teal-dark); border-color: #fff; }

/* ---------- Filtrlar ---------- */
.filters {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 18px; position: relative; z-index: 2;
  background: var(--surface); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow);
}
.filters select, .filters input, .field input, .field select, .field textarea {
  height: 44px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
  padding: 0 12px; min-width: 0; outline: 0; transition: border-color .15s, box-shadow .15s;
}
.filters select { flex: 1 1 150px; }
.filters select:disabled { background: var(--bg); color: var(--muted); }
.filters select:focus, .filters input:focus, .field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px rgba(19, 166, 160, .15);
}
.price-range { display: flex; gap: 6px; flex: 1 1 240px; }
.price-range input { width: 50%; }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.results-head .count { font-size: 17px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); margin-left: 8px; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(52, 168, 83, .5); animation: pulse 2s infinite; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 3px; gap: 3px; }
.seg button {
  display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 8px 14px;
  border-radius: 9px; font-weight: 600; color: var(--text-2); cursor: pointer;
}
.seg button.on { background: var(--teal); color: #fff; }
.seg.small button { padding: 6px 12px; font-size: 14px; }

/* ---------- Kartochkalar ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 18px; }
.card {
  display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--teal-soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.noimg { width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: 6px; color: var(--teal); font-size: 13px; font-weight: 600; }
.noimg .ic { width: 34px; height: 34px; }
.noimg.big { aspect-ratio: 16 / 10; }
.deal {
  position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 8px; color: #fff;
  background: var(--c, var(--teal)); font-size: 12px; font-weight: 700;
}
.d-badges .deal { position: static; display: inline-block; }
.top {
  position: absolute; right: 10px; top: 10px; padding: 4px 9px; border-radius: 8px;
  background: var(--orange); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .5px;
}
.top.static { position: static; display: inline-block; margin-left: 6px; }
.media {
  position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 8px; background: rgba(17, 41, 44, .62); color: #fff; font-size: 12px; font-weight: 600;
}
.media .ic { width: 15px; height: 15px; }
.card-body { padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.price { font-size: 19px; font-weight: 800; color: var(--text); }
.card .title { font-weight: 600; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.loc { display: flex; align-items: center; gap: 4px; color: var(--text-2); font-size: 13px; }
.loc .ic { width: 15px; height: 15px; color: var(--teal); }
.loc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12.5px; }
.skeleton .card-img, .skeleton i { background: linear-gradient(90deg, #eaf1f1, #f6f9f9, #eaf1f1); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.skeleton i { display: block; height: 14px; border-radius: 6px; margin: 6px 0; }
.skeleton i:nth-child(2) { width: 70%; }
.skeleton i:nth-child(3) { width: 45%; }

.empty-state { text-align: center; padding: 56px 20px; background: var(--surface); border-radius: var(--radius); }
.empty-state > .ic { width: 44px; height: 44px; color: var(--teal); margin-bottom: 8px; }
.empty-state.small { padding: 32px 12px; background: transparent; }
.empty-page { text-align: center; padding: 72px 20px; }
.empty-page h1 { font-size: 24px; }
.empty-ic { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); }
.empty-ic .ic { width: 36px; height: 36px; }
.empty-ic.ok { background: #E6F4EA; color: var(--success); }
.row-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

/* ---------- Xarita ---------- */
.map-box { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
#home-map { height: min(70vh, 640px); }
.pm { background: none; border: 0; }
.pm span {
  display: inline-block; transform: translate(-50%, -100%); white-space: nowrap; padding: 4px 9px;
  background: var(--teal); color: #fff; border-radius: 999px; font-weight: 800; font-size: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25); border: 2px solid #fff;
}
.pm.pin .ic { width: 40px; height: 40px; color: var(--orange); transform: translate(-50%, -95%); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); }
.leaflet-popup-content { margin: 10px; }
.pop { display: grid; gap: 4px; width: 200px; color: var(--text) !important; }
.pop img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; }
.pop b { font-size: 15px; }
.pop span { font-size: 13px; color: var(--text-2); }

/* ---------- Promo ---------- */
.promo {
  display: flex; align-items: center; gap: 20px; margin: 36px 0 48px; padding: 24px 28px;
  border-radius: 20px; background: linear-gradient(110deg, var(--orange-soft), #fff 70%); border: 1px solid #FFD9C6;
}
.promo h2 { margin: 0 0 4px; }
.promo p { margin: 0; color: var(--text-2); }
.promo .btn { margin-left: auto; }
.promo-ic { width: 54px; height: 54px; flex: none; border-radius: 16px; display: grid; place-items: center; background: var(--orange); color: #fff; }
.promo-ic .ic { width: 28px; height: 28px; }

/* ---------- Eʼlon sahifasi ---------- */
.detail { padding-top: 18px; padding-bottom: 48px; }
.back-link { display: inline-flex; align-items: center; gap: 4px; color: var(--teal-dark); font-weight: 600; margin-bottom: 14px; }
.banner { padding: 12px 16px; border-radius: 12px; background: var(--orange-soft); color: #8a3b10; font-weight: 600; margin-bottom: 14px; }
.banner.bad { background: #FDECEC; color: #9b1c1f; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.gallery { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.g-main { position: relative; background: #0d1f21; aspect-ratio: 16 / 10; overflow: hidden; }
.g-main img, .g-main video { width: 100%; height: 100%; object-fit: contain; }
.g-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .92); color: var(--text); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
}
.g-nav.prev { left: 12px; }
.g-nav.next { right: 12px; }
.g-count { position: absolute; right: 12px; bottom: 12px; background: rgba(0, 0, 0, .55); color: #fff; padding: 3px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; }
.g-thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.g-thumbs button { flex: none; width: 84px; height: 62px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--bg); }
.g-thumbs button.on { border-color: var(--teal); }
.g-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.vthumb { display: grid; place-items: center; width: 100%; height: 100%; background: #0d1f21; color: #fff; }
.d-head { margin: 20px 0 6px; }
.d-head h1 { font-size: 26px; margin: 10px 0 6px; }
.d-loc { display: flex; align-items: center; gap: 6px; color: var(--text-2); margin-bottom: 4px; }
.d-loc .ic { color: var(--teal); }
.panel { background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-top: 16px; }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin: 0; }
.specs div { background: var(--bg); border-radius: 12px; padding: 12px 14px; }
.specs dt { font-size: 12.5px; color: var(--text-2); }
.specs dd { margin: 2px 0 0; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  background: var(--teal-soft); color: var(--teal-dark); font-weight: 600; font-size: 14px; border: 1px solid transparent;
}
.chip .ic { width: 16px; height: 16px; }
.chips.selectable .chip { background: var(--surface); border-color: var(--border); color: var(--text); cursor: pointer; }
.chips.selectable .chip.on { background: var(--teal-soft); border-color: var(--teal); color: var(--teal-dark); }
.desc { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.d-map { height: 300px; border-radius: 12px; overflow: hidden; }
.detail-side { position: sticky; top: calc(var(--hdr-h) + 16px); display: grid; gap: 12px; }
.contact-card { background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.c-price { font-size: 26px; font-weight: 800; color: var(--teal-dark); }
.c-owner { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.c-owner small { display: block; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; }
.mine { display: flex; align-items: center; gap: 8px; color: var(--teal-dark); font-weight: 600; margin: 0; }
.safety { display: flex; gap: 8px; font-size: 13px; color: var(--text-2); margin: 0; }
.safety .ic { color: var(--orange); width: 18px; height: 18px; }
.app-mini { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--orange-soft); color: var(--orange-dark); font-weight: 700; }

/* ---------- Formalar ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > span { font-weight: 600; font-size: 14px; }
.field textarea { height: auto; padding: 12px; resize: vertical; min-height: 120px; }
.field.invalid input, .field.invalid select, .field.invalid textarea, .invalid .pick-map { border-color: var(--danger); }
.field.invalid > span { color: var(--danger); }
.choice-grid.invalid { outline: 2px solid var(--danger); outline-offset: 4px; border-radius: 12px; }
.hint { font-size: 13px; color: var(--text-2); margin: 0; }
.err { color: var(--danger); font-weight: 600; margin: 8px 0 0; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.stack { display: grid; gap: 14px; }
.phone-input { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 12px; padding-left: 12px; background: var(--surface); }
.phone-input:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(19, 166, 160, .15); }
.phone-input b { color: var(--text-2); }
.phone-input input { border: 0 !important; box-shadow: none !important; flex: 1; }
.code-input { letter-spacing: 8px; font-size: 22px !important; font-weight: 700; text-align: center; }

.add-page { padding-top: 24px; padding-bottom: 48px; }
.stepper { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0; margin: 0 0 18px; }
.stepper li { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.stepper li::after { content: ""; flex: 1; height: 2px; background: var(--border); border-radius: 2px; }
.stepper li:last-child::after { display: none; }
.stepper b { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--border); color: var(--text-2); font-size: 13px; }
.stepper b .ic { width: 16px; height: 16px; }
.stepper li.on { color: var(--teal-dark); }
.stepper li.on b { background: var(--teal); color: #fff; }
.stepper li.done b { background: var(--teal-soft); color: var(--teal-dark); }
.stepper li.done::after { background: var(--teal); }
.step-body h2 { margin-top: 4px; }
.step-body h2 + .choice-grid { margin-bottom: 22px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.choice-grid.three { grid-template-columns: repeat(3, 1fr); }
.choice {
  padding: 16px 12px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface);
  font-weight: 700; cursor: pointer; transition: border-color .15s, background .15s;
}
.choice:hover { border-color: var(--teal-light); }
.choice.on { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-dark); }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { width: 52px; height: 44px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface); font-weight: 700; cursor: pointer; }
.pill.on { border-color: var(--teal); background: var(--teal); color: #fff; }
.pick-map { height: 340px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.ph { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--bg); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph.add {
  display: grid; place-content: center; justify-items: center; gap: 6px; border: 2px dashed var(--teal-light);
  color: var(--teal-dark); font-weight: 600; font-size: 13px; cursor: pointer; background: var(--teal-soft); text-align: center; padding: 6px;
}
.ph-x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; display: grid; place-items: center; cursor: pointer; }
.ph-x .ic { width: 14px; height: 14px; }
.cover-tag { position: absolute; left: 6px; top: 6px; background: var(--orange); color: #fff; border-radius: 6px; padding: 0 6px; font-size: 13px; }
.video-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--orange-soft); color: var(--orange-dark); font-weight: 600; }
.video-row span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; }
.upload-overlay { position: fixed; inset: 0; z-index: 3000; background: rgba(17, 41, 44, .55); display: grid; place-items: center; padding: 20px; }
.upload-box { background: #fff; border-radius: 20px; padding: 28px; width: min(360px, 100%); text-align: center; }
.upload-box .spinner { margin-bottom: 12px; }
.bar { height: 8px; background: var(--bg); border-radius: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--teal); transition: width .2s; }

/* ---------- Mening eʼlonlarim ---------- */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 24px 0 16px; }
.page-head h1 { margin: 0; }
.tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 16px; padding-bottom: 2px; }
.tabs button {
  flex: none; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: var(--surface);
  padding: 8px 14px; border-radius: 999px; font-weight: 600; cursor: pointer; color: var(--text-2);
}
.tabs button span { background: var(--bg); border-radius: 999px; padding: 0 8px; font-size: 12px; }
.tabs button.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.tabs button.on span { background: rgba(255, 255, 255, .25); }
.my-list { display: grid; gap: 12px; padding-bottom: 48px; }
.my-row { display: flex; align-items: center; gap: 14px; background: var(--surface); padding: 12px; border-radius: var(--radius); box-shadow: var(--shadow); }
.my-img { flex: none; width: 112px; height: 84px; border-radius: 12px; overflow: hidden; background: var(--teal-soft); display: grid; place-items: center; color: var(--teal); }
.my-img img { width: 100%; height: 100%; object-fit: cover; }
.my-info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.my-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-info .price { font-size: 16px; }
.reason { color: var(--danger); font-size: 13px; font-weight: 600; }

/* ---------- Xabarlar ---------- */
.chat-page {
  display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; padding-top: 20px; padding-bottom: 20px;
  height: calc(100vh - var(--hdr-h) - var(--tab-h)); min-height: 480px;
}
.chat-list { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow-y: auto; padding: 16px 10px; }
.chat-list h1 { font-size: 22px; padding: 0 8px; }
.chat-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; }
.chat-item:hover { background: var(--bg); }
.chat-item.on { background: var(--teal-soft); }
.ci-img { flex: none; width: 48px; height: 48px; border-radius: 12px; overflow: hidden; background: var(--teal-soft); display: grid; place-items: center; color: var(--teal); }
.ci-img img { width: 100%; height: 100%; object-fit: cover; }
.ci-body { flex: 1; min-width: 0; display: grid; }
.ci-body b, .ci-body small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-body small { color: var(--text-2); }
.ci-meta { display: grid; justify-items: end; gap: 4px; color: var(--muted); }
.chat-room { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.room-empty { margin: auto; text-align: center; color: var(--muted); }
.room-empty .ic { width: 44px; height: 44px; }
.room-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.back-room { display: none; }
.room-listing { display: flex; align-items: center; gap: 12px; min-width: 0; }
.room-listing > span:last-child { display: grid; min-width: 0; }
.room-listing b, .room-listing small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-listing small { color: var(--text-2); }
.room-msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.msg { max-width: min(78%, 520px); align-self: flex-start; background: var(--surface); padding: 8px 12px 6px; border-radius: 16px 16px 16px 4px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.msg.me { align-self: flex-end; background: var(--teal); color: #fff; border-radius: 16px 16px 4px 16px; }
.msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg time { display: block; text-align: right; font-size: 11px; opacity: .7; margin-top: 2px; }
.composer { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.composer textarea { flex: 1; resize: none; border: 1px solid var(--border); border-radius: 12px; padding: 11px 12px; max-height: 140px; outline: 0; }
.composer textarea:focus { border-color: var(--teal); }
.composer .btn { width: 48px; padding: 0; }

/* ---------- Oyna (kirish) ---------- */
.modal-back { position: fixed; inset: 0; z-index: 4000; background: rgba(17, 41, 44, .5); display: grid; place-items: center; padding: 16px; animation: fade .15s; }
.modal { position: relative; width: min(420px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 22px; padding: 26px 22px 22px; box-shadow: var(--shadow-lg); }
.modal h2 { font-size: 22px; }
.modal-x { position: absolute; top: 12px; right: 12px; }
.modal .seg { width: 100%; margin: 6px 0 16px; }
.modal .seg button { flex: 1; justify-content: center; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 16px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ---------- Footer va mobil menyu ---------- */
.ftr { background: #0f2427; color: #c8d6d7; padding: 40px 0 0; margin-top: 24px; }
.ftr-in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.ftr-brand { max-width: 420px; }
.ftr-brand .wm-a { color: #fff; }
.ftr-brand p { margin: 12px 0 16px; }
.ftr-links { display: grid; gap: 10px; align-content: start; }
.ftr-links a:hover, .play-badge:hover { color: #fff; }
.play-badge { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .2); font-weight: 600; }
.ftr-copy { padding: 24px 20px; margin-top: 28px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; color: #8aa0a2; }
.tabbar { display: none; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + var(--tab-h)); transform: translate(-50%, 20px); opacity: 0; z-index: 5000;
  background: var(--text); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; transition: .25s; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.spinner { width: 32px; height: 32px; margin: 0 auto; border-radius: 50%; border: 3px solid var(--teal-soft); border-top-color: var(--teal); animation: spin .8s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(52, 168, 83, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 168, 83, 0); } }

/* ---------- Bosh sahifa: kategoriyalar (ilovadagi 4x2 panel) ---------- */
.home-top { position: relative; z-index: 2; margin-top: -28px; }
.cats {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; background: var(--surface);
  border-radius: 22px; padding: 18px 14px; box-shadow: var(--shadow);
}
.cat {
  display: grid; justify-items: center; gap: 8px; padding: 6px 2px; border: 0; background: none; cursor: pointer;
  border-radius: 16px; font-weight: 600; font-size: 13.5px; color: var(--text); transition: transform .15s;
}
.cat:hover { transform: translateY(-2px); }
.cat-ic {
  width: 60px; height: 60px; border-radius: 19px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, var(--c), color-mix(in srgb, var(--c) 80%, #000));
  box-shadow: 0 6px 14px color-mix(in srgb, var(--c) 38%, transparent);
}
.cat-ic .ic { width: 28px; height: 28px; }
.cat.on .cat-ic { outline: 3px solid color-mix(in srgb, var(--c) 35%, #fff); outline-offset: 2px; }
.cat.on .cat-l { color: var(--c); }
.cat-l { text-align: center; line-height: 1.2; }

.deal-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.deal-tile {
  display: grid; justify-items: center; gap: 8px; padding: 16px 8px; border-radius: 16px; cursor: pointer;
  background: color-mix(in srgb, var(--c) 10%, #fff); border: 1px solid color-mix(in srgb, var(--c) 22%, #fff);
  color: color-mix(in srgb, var(--c) 85%, #000); font-weight: 700;
}
.dt-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: var(--c); box-shadow: 0 4px 8px color-mix(in srgb, var(--c) 35%, transparent); }
.deal-tile.on { background: var(--c); color: #fff; border-color: var(--c); }
.deal-tile.on .dt-ic { background: rgba(255, 255, 255, .25); box-shadow: none; }

.promo-banner {
  display: flex; align-items: center; gap: 18px; margin-top: 14px; padding: 22px 24px; border-radius: 20px; color: #fff;
  background: linear-gradient(110deg, var(--orange) 0%, var(--orange-dark) 100%); box-shadow: 0 10px 24px rgba(255, 106, 31, .25);
}
.promo-banner h2 { margin: 0 0 4px; font-size: 20px; }
.promo-banner p { margin: 0; opacity: .92; }
.pb-ic { margin-left: auto; flex: none; width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .22); }
.pb-ic .ic { width: 30px; height: 30px; }

.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 34px 0 14px; }
.sec-head h2 { margin: 0; font-size: 22px; }
.sec-head a { display: inline-flex; align-items: center; gap: 2px; color: var(--teal-dark); font-weight: 700; }
.sec-head a .ic { width: 18px; height: 18px; }

/* ---------- Qiziqarli joylar ---------- */
.pscroll { display: grid; grid-auto-flow: column; grid-auto-columns: 260px; gap: 14px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x mandatory; }
.pscroll .pcard { scroll-snap-align: start; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; padding-bottom: 40px; }
.pcard { display: flex; flex-direction: column; background: var(--surface); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pcard-img { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--teal-soft); display: grid; place-items: center; color: var(--teal); }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; }
.pbadge {
  position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 7px;
  border-radius: 999px; color: #fff; font-size: 12.5px; font-weight: 700;
}
.pbadge .ic { width: 15px; height: 15px; }
.pbadge.free { background: var(--success); }
.pbadge.price { background: rgba(17, 41, 44, .72); }
.pcard-body { padding: 12px 14px 14px; display: grid; gap: 4px; }
.pcard-body b { font-size: 16px; }
.pcat { display: inline-flex; align-items: center; gap: 5px; color: var(--text-2); font-size: 13px; min-width: 0; }
.pcat .ic { width: 15px; height: 15px; color: var(--c); flex: none; }
.pcat.big { padding: 5px 12px 5px 9px; border-radius: 999px; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); }
.pchips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 6px; }
.pchips.wrapy { flex-wrap: wrap; overflow: visible; margin: 18px 0 6px; }
.pchip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: 14px; cursor: pointer; color: var(--text);
}
.pchip .ic { width: 17px; height: 17px; color: var(--c); }
.pchip.on { background: var(--c); border-color: var(--c); color: #fff; }
.pchip.on .ic { color: #fff; }

.places-hero { color: #fff; padding: 22px 0 30px; background: radial-gradient(120% 140% at 85% 0%, var(--teal-light) 0%, var(--teal) 42%, var(--teal-dark) 100%); }
.places-hero h1 { font-size: clamp(26px, 3.6vw, 40px); margin-top: 6px; }
.places-hero p { opacity: .92; max-width: 640px; }
.places-hero .searchbar select { border: 0; border-left: 1px solid var(--border); height: 44px; padding: 0 10px; background: transparent; max-width: 42%; outline: 0; }
.back-link.light { color: #fff; opacity: .9; }

.rating { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; font-weight: 700; color: #B7791F; }
.rating .ic { width: 17px; height: 17px; color: #F5A623; fill: #F5A623; }
.routes { display: grid; gap: 10px; }
.route { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--bg); }
.r-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--teal); color: #fff; }
.r-body { flex: 1; min-width: 0; }
.r-body p { margin: 2px 0 0; color: var(--text-2); font-size: 14px; }
.r-meta { flex: none; display: grid; justify-items: end; gap: 4px; text-align: right; }
.r-meta small { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); }
.r-meta .ic { width: 15px; height: 15px; }
.tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tips li { display: flex; gap: 10px; align-items: flex-start; }
.tips .ic { flex: none; color: var(--orange); }
.kv { display: grid; gap: 2px; }
.kv.row { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.kv.row b { margin-left: auto; }
.kv.row .ic { color: var(--teal); }
.c-price.free { color: var(--success); }

/* ---------- Planshet ---------- */
@media (max-width: 1020px) {
  .cats { grid-template-columns: repeat(4, 1fr); }
  .top-nav { display: none; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { position: static; }
}

/* ---------- Telefon ---------- */
@media (max-width: 760px) {
  :root { --hdr-h: 58px; --tab-h: calc(64px + env(safe-area-inset-bottom)); }
  .wrap { padding: 0 16px; }
  .hide-sm { display: none !important; }
  .wm { font-size: 20px; }
  .hdr-in { gap: 12px; }
  .hero { padding: 30px 0 30px; }
  .hero-sub { font-size: 15px; }
  .searchbar .btn { padding: 0 14px; }
  .filters select { flex: 1 1 calc(50% - 10px); }
  .price-range { flex: 1 1 100%; }
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .promo { flex-direction: column; align-items: flex-start; }
  .promo .btn { margin-left: 0; width: 100%; }
  .d-head h1 { font-size: 22px; }
  .g-main { aspect-ratio: 4 / 3; }
  .choice-grid { grid-template-columns: repeat(2, 1fr); }
  .stepper span { display: none; }
  .my-img { width: 88px; height: 70px; }
  .my-row { flex-wrap: wrap; }
  .chat-page { grid-template-columns: 1fr; padding: 0; height: calc(100vh - var(--hdr-h) - var(--tab-h)); }
  .chat-page .chat-list, .chat-page .chat-room { border-radius: 0; box-shadow: none; }
  .chat-page.has-room .chat-list { display: none; }
  .chat-page:not(.has-room) .chat-room { display: none; }
  .back-room { display: inline-grid; }
  .home-top { margin-top: -20px; }
  .cats { grid-template-columns: repeat(4, 1fr); padding: 14px 8px; gap: 8px 4px; }
  .cat-ic { width: 54px; height: 54px; border-radius: 17px; }
  .cat { font-size: 12.5px; }
  .deal-tiles { gap: 8px; }
  .deal-tile { padding: 12px 4px; font-size: 14px; }
  .promo-banner { padding: 18px; }
  .promo-banner h2 { font-size: 17px; }
  .pb-ic { width: 48px; height: 48px; }
  .pscroll { grid-auto-columns: 78%; }
  .pgrid { grid-template-columns: 1fr; }
  .route { flex-wrap: wrap; }
  .r-meta { justify-items: start; text-align: left; width: 100%; padding-left: 54px; display: flex; gap: 12px; }
  .places-hero .searchbar { flex-wrap: wrap; }
  .places-hero .searchbar select { max-width: 100%; width: 100%; border-left: 0; border-top: 1px solid var(--border); }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
    height: var(--tab-h); padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--border);
  }
  .tabbar a { position: relative; display: grid; justify-items: center; align-content: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--muted); }
  .tabbar a span { max-width: 92%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabbar a.on { color: var(--teal-dark); }
  .tabbar .ic { width: 24px; height: 24px; }
  .tabbar .tab-add .ic { width: 30px; height: 30px; padding: 5px; border-radius: 10px; background: var(--orange); color: #fff; }
  .tabbar .badge { position: absolute; top: 6px; left: calc(50% + 6px); }
  .ftr { padding-top: 28px; }
}

.pscroll, .pchips { scrollbar-width: none; }
.pscroll::-webkit-scrollbar, .pchips::-webkit-scrollbar { display: none; }
.r-meta small, .r-meta b { white-space: nowrap; }
