:root {
  --green: #0E4D45;
  --green-dark: #08332E;
  --yellow: #FFD166;
  --ink: #15241F;
  --muted: #4A5A55;
  --soft: #5B6B66;
  --line: #D5DFDB;
  --line2: #E1E8E5;
  --bg: #F4F7F5;
  --chip: #E4ECE9;
  --ph: #D9E5E1;
  --card: #FFFFFF;
  --warn-bg: #FFF6DD;
  --warn-ink: #4A3B12;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.45 Inter, system-ui, sans-serif; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--green); }
.app { max-width: 560px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.display { font-family: Unbounded, Inter, sans-serif; font-weight: 700; letter-spacing: -0.3px; }
.icon { width: 22px; height: 22px; flex-shrink: 0; }

/* Shapka */
.top { background: var(--green); color: #fff; padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 18px; }
.lang { background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: 999px; min-height: 36px; padding: 0 14px; font-weight: 600; font-size: 13px; }
.search { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 0 14px; height: 48px; color: var(--soft); }
.search input { border: 0; outline: none; flex: 1; min-width: 0; background: transparent; color: var(--ink); font-size: 15px; }

/* Filtrlar */
.chips { display: flex; gap: 8px; padding: 14px 16px 4px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; height: 40px; background: #fff; font-weight: 500; font-size: 14px; }
.chip.on { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }
.filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 8px 16px 12px; }
.filters select { appearance: none; -webkit-appearance: none; border: 0; border-radius: 12px; height: 42px; padding: 0 28px 0 12px; background: var(--chip) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2315241F' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 10px center; font-weight: 600; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }

/* Ro'yxat */
.list { flex: 1; padding: 0 16px 100px; display: flex; flex-direction: column; gap: 14px; }
.list-head { font-weight: 700; font-size: 15px; display: flex; justify-content: space-between; color: var(--ink); }
.list-head span { color: var(--soft); font-weight: 500; }
.card { display: flex; flex-direction: column; background: var(--card); border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: 0 1px 2px rgba(14,77,69,.08), 0 6px 18px rgba(14,77,69,.06); }
.card-photo { position: relative; aspect-ratio: 16 / 10; background: var(--ph); display: flex; align-items: center; justify-content: center; color: #8AA59D; }
.card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.badge { position: absolute; left: 12px; top: 12px; background: var(--yellow); color: #1B1B1B; font-weight: 700; font-size: 12px; padding: 5px 10px; border-radius: 999px; }
.count { position: absolute; right: 12px; bottom: 12px; background: rgba(21,36,31,.75); color: #fff; font-weight: 600; font-size: 12px; padding: 4px 9px; border-radius: 999px; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 5px; }
.price { color: var(--green); font-size: 19px; }
.per { font: 500 13px Inter, sans-serif; color: var(--soft); letter-spacing: 0; }
.title { font-weight: 600; }
.place { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.place .icon { width: 16px; height: 16px; }
.empty { background: #fff; border-radius: 18px; padding: 28px 20px; text-align: center; color: var(--muted); display: flex; flex-direction: column; gap: 14px; align-items: center; }

/* Pastki menyu */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; justify-content: center; background: #fff; border-top: 1px solid var(--line2); padding-bottom: env(safe-area-inset-bottom); }
.nav-in { width: 100%; max-width: 560px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: 70px; align-items: center; }
.nav a { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; padding-bottom: 12px; gap: 3px; text-decoration: none; color: var(--soft); font-weight: 600; font-size: 11px; }
.nav a.on { color: var(--green); font-weight: 700; }
.plus { width: 46px; height: 46px; border-radius: 14px; background: var(--yellow); display: flex; align-items: center; justify-content: center; margin: -22px 0 -1px; color: var(--ink); box-shadow: 0 4px 12px rgba(14,77,69,.18); }

/* E'lon sahifasi */
.gallery { position: relative; background: var(--ph); }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 4 / 3; }
.slides::-webkit-scrollbar { display: none; }
.slides img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.garrow { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 999px; border: 0;
  background: rgba(255,255,255,.9); color: var(--ink); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.18); cursor: pointer; }
.garrow.prev { left: 12px; } .garrow.next { right: 12px; } .garrow.next svg { transform: scaleX(-1); }
.garrow:hover { background: #fff; }
.slides { cursor: pointer; }
.round { position: absolute; top: 14px; width: 44px; height: 44px; border-radius: 999px; background: #fff; border: 0; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.12); color: var(--ink); text-decoration: none; }
.detail { padding: 18px 16px 120px; display: flex; flex-direction: column; gap: 16px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { background: var(--chip); color: var(--green); font-weight: 700; font-size: 12px; padding: 5px 10px; border-radius: 999px; }
.tag.y { background: var(--yellow); color: #1B1B1B; }
.big-price { color: var(--green); font-size: 26px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fact { background: #fff; border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.fact span:first-child { font-size: 12px; font-weight: 500; color: var(--soft); }
.fact span:last-child { font-weight: 600; font-size: 14px; }
.desc { margin: 0; white-space: pre-line; color: #2C3B36; }
.maplink { display: flex; align-items: center; justify-content: center; gap: 8px; height: 56px; border-radius: 16px; background: var(--chip); color: var(--green); font-weight: 700; text-decoration: none; }
.tip { display: flex; gap: 10px; background: var(--warn-bg); color: var(--warn-ink); border-radius: 14px; padding: 12px 14px; font-size: 13px; }
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; background: #fff; border-top: 1px solid var(--line2); display: flex; justify-content: center; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); }
.bar-in { width: 100%; max-width: 528px; display: flex; gap: 10px; }
.btn { flex: 1; min-height: 56px; border: 0; border-radius: 16px; background: var(--green); color: #fff; font-weight: 700; font-size: 16px; display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; padding: 0 16px; }
.btn:disabled { opacity: .6; }
.btn.light { background: var(--chip); color: var(--green); }
.phone-box { background: #fff; border: 2px solid var(--green); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.phone-box a { font-size: 22px; text-decoration: none; }

/* E'lon berish formasi */
.head { background: #fff; border-bottom: 1px solid var(--line2); padding: 12px 12px; display: flex; align-items: center; gap: 8px; }
.head .back { width: 44px; height: 44px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: var(--ink); background: none; border: 0; text-decoration: none; }
.head small { display: block; color: var(--soft); font-size: 12px; font-weight: 500; }
.form { padding: 16px 16px 120px; display: flex; flex-direction: column; gap: 14px; }
.box { background: #fff; border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label, .field > .lbl { font-weight: 700; font-size: 14px; }
.field input, .field select, .field textarea { border: 1px solid var(--line); border-radius: 12px; min-height: 48px; padding: 0 12px; background: #fff; font-size: 15px; width: 100%; }
.field textarea { padding: 12px; min-height: 90px; resize: vertical; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { border: 1px solid var(--line); background: #fff; border-radius: 12px; min-height: 44px; padding: 0 14px; font-size: 14px; font-weight: 500; }
.opt.on { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.money { display: flex; gap: 8px; }
.money input { flex: 1; min-width: 0; font-weight: 600; }
.seg { display: flex; background: var(--chip); border-radius: 12px; padding: 3px; }
.seg button { border: 0; background: transparent; border-radius: 10px; min-height: 42px; padding: 0 14px; font-weight: 600; font-size: 14px; color: var(--muted); }
.seg button.on { background: #fff; color: var(--green); font-weight: 700; }
.photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.photos .ph { aspect-ratio: 1; border-radius: 12px; background: var(--ph) center / cover no-repeat; position: relative; }
.photos .ph button { position: absolute; right: 4px; top: 4px; width: 28px; height: 28px; border-radius: 999px; border: 0; background: rgba(21,36,31,.8); color: #fff; font-size: 16px; line-height: 1; }
.add-photo { aspect-ratio: 1; border: 2px dashed #9DB5AE; border-radius: 12px; background: var(--bg); color: var(--green); font-weight: 700; font-size: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.error { background: #FDE8E4; color: #7A1E10; border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.notice { padding: 40px 20px; text-align: center; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.notice .display { font-size: 20px; }
.spin { padding: 40px; text-align: center; color: var(--soft); }
.amen { display: flex; flex-wrap: wrap; gap: 8px; }
.amen span { background: #fff; border: 1px solid var(--line2); border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 500; }
.langs { display: flex; background: rgba(255,255,255,.14); border-radius: 999px; padding: 3px; }
.langs button { border: 0; background: transparent; color: rgba(255,255,255,.85); border-radius: 999px; min-width: 44px; min-height: 34px; font-weight: 700; font-size: 13px; }
.langs button.on { background: #fff; color: var(--green); }

/* «Orqaga» — galereya strelkalaridan farq qilsin */
.back-pill { width: auto; padding: 0 16px 0 10px; gap: 4px; font-weight: 600; font-size: 14px; z-index: 3; cursor: pointer; }
/* Kompyuterda: e'lonlar ro'yxati 2–3 ustun */
@media (min-width: 900px) {
  .app:has(> .list) { max-width: 1080px; }
  .app:has(> .list) .nav-in { max-width: 1080px; }
  .list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; }
  .list > :not(.card) { grid-column: 1 / -1; }
}
@media (min-width: 1240px) {
  .app:has(> .list) { max-width: 1200px; }
  .list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ===== G dizayn: e'lon sahifasi ===== */
.tback { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; flex: 0 0 auto; }
.tback .icon { stroke: #fff; }
.top-row:has(.tback) .brand { margin-right: auto; }
.detail.g { padding-top: 16px; gap: 14px; }
.ghead { display: flex; flex-direction: column; gap: 4px; }
.ghead .big-price { font-size: 30px; letter-spacing: -0.5px; }
.ghead .title { font-weight: 700; font-size: 16px; }
.story { position: relative; border-radius: 24px; overflow: hidden; background: var(--ph); box-shadow: 0 14px 30px rgba(8,51,46,.22); }
.story .slides { aspect-ratio: 4 / 4.2; }
.segs { position: absolute; left: 12px; right: 12px; top: 12px; display: flex; gap: 4px; z-index: 2; pointer-events: none; }
.segs i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.45); }
.segs i.on { background: #fff; }
.slabel { position: absolute; left: 12px; top: 26px; z-index: 2; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 11px; letter-spacing: .5px; padding: 5px 9px; border-radius: 8px; }
.shint { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; pointer-events: none; display: flex; justify-content: space-between; align-items: center;
  padding: 40px 14px 12px; background: linear-gradient(180deg, transparent, rgba(8,51,46,.85)); color: #fff; font-size: 13px; font-weight: 600; }
.snum { background: rgba(255,255,255,.22); padding: 4px 10px; border-radius: 999px; font-weight: 800; }
.tiles { display: flex; gap: 8px; }
.tiles .tile { flex: 1 1 0; }
.tile { background: #fff; border-radius: 16px; padding: 12px 4px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; box-shadow: 0 1px 2px rgba(14,77,69,.06); min-width: 0; }
.tile b { font-size: 20px; line-height: 1.1; }
.tile strong { font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tile small { font-size: 11px; color: var(--soft); }
.h3 { font-weight: 800 !important; font-size: 16px !important; color: var(--ink) !important; }
.simsec { display: flex; flex-direction: column; gap: 10px; }
.sim { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 6px; }
.sim::-webkit-scrollbar { display: none; }
.sc { flex: 0 0 150px; scroll-snap-align: start; background: #fff; border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: 0 2px 10px rgba(14,77,69,.08); }
.sci { height: 96px; background: var(--ph) center / cover no-repeat; }
.sc p { margin: 8px 10px 10px; font-size: 12px; display: flex; flex-direction: column; gap: 2px; color: var(--muted); }
.sc b { color: var(--green); font-size: 14px; }
.sbtn { flex: 0 0 52px; height: 52px; border-radius: 16px; border: 1px solid var(--line2); background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.sbtn.ok { background: var(--chip); }
.tile small { text-transform: lowercase; }
.util { background: #fff; border-radius: 14px; padding: 10px 14px; font-size: 14px; color: var(--muted); }
.util b { color: var(--ink); }
.approx { display: inline-block; margin-top: 4px; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 13px; padding: 4px 10px; border-radius: 10px; }
