/* Yaqinda.uz — dizayn tizimi: yorug', toza, mobil-first. Asosiy rang — ko'k, urg'u — to'q sariq (dizayn rasmlari bo'yicha). */
:root {
  --primary: #1f5eff; --primary-d: #1748c9; --primary-l: #eaf0ff;
  --accent: #ff7a1a; --accent-d: #e8650a;
  --bg: #f6f8fc; --surface: #fff; --text: #171923; --muted: #697083; --line: #e5e7ef;
  --ok: #16845b; --ok-l: #e7f6ef; --warn: #b86a00; --err: #c53a43;
  --r: 16px; --r-sm: 12px; --shadow: 0 8px 24px -14px rgba(23, 25, 35, .35);
  --tab-h: 64px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); background: var(--bg);
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px)); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { width: 20px; height: 20px; flex: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.narrow { max-width: 640px; }
.h1 { font-size: 26px; line-height: 1.2; margin: 6px 0 14px; font-weight: 800; letter-spacing: -.2px; }
.h2 { font-size: 20px; margin: 0; font-weight: 800; }
.h3 { font-size: 17px; margin: 22px 0 8px; font-weight: 700; }
h2 { font-size: 20px; margin: 0 0 14px; font-weight: 800; letter-spacing: -.2px; }
.link { color: var(--primary); font-weight: 600; display: inline-flex; align-items: center; gap: 2px; font-size: 14px; }
.link svg { width: 16px; height: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Tugmalar */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: var(--r-sm);
  border: 1px solid transparent; font-weight: 700; font-size: 15px; cursor: pointer; transition: transform .1s, background .2s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-d); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-d); }
.btn-ghost { background: var(--surface); border-color: #d6defa; color: var(--primary); }
.btn-sm { min-height: 38px; padding: 0 12px; font-size: 14px; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; display: inline-grid; place-items: center; background: var(--surface); border: 1px solid var(--line); flex: none; }

/* Yuqori panel */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-in { height: 60px; display: flex; align-items: center; gap: 18px; }
.logo { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 21px; letter-spacing: -.4px; }
.logo b { color: var(--accent); font-weight: 800; }
.logo-pin { width: 26px; height: 26px; color: var(--accent); }
.top-links { display: none; gap: 22px; font-weight: 600; font-size: 15px; color: #394357; }
.top-links a:hover { color: var(--primary); }
.top-act { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.chip-loc { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 999px; background: var(--primary-l); color: var(--primary); font-weight: 600; font-size: 13px; }
.chip-loc svg { width: 15px; height: 15px; }
.lang { font-weight: 700; font-size: 13px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; }
.top-join span { display: none; }
.top-join { width: 38px; padding: 0; }

/* Hero */
.hero { background: radial-gradient(circle at 85% 10%, rgba(255, 122, 26, .25), transparent 40%),
  linear-gradient(160deg, #0b1b3a 0%, #133d7a 60%, #1f5eff 130%); color: #fff; padding: 26px 0 22px; }
.hero h1 { margin: 0; font-size: 30px; line-height: 1.12; font-weight: 800; letter-spacing: -.6px; }
.hero h1 span { color: #ffa45c; }
.hero-sub { margin: 10px 0 18px; color: #cbd6f2; font-size: 15px; max-width: 520px; }
.search { display: grid; grid-template-columns: 1fr; gap: 8px; background: #fff; padding: 8px; border-radius: 16px; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .6); }
.search label { display: flex; align-items: center; gap: 8px; padding: 0 12px; min-height: 48px; border-radius: 12px; background: #f3f5fb; color: var(--muted); }
.search input, .search select { border: 0; outline: 0; background: transparent; width: 100%; min-width: 0; color: var(--text); font-size: 16px; }
.search .search-d { display: none; }
.search-sm { box-shadow: none; border: 1px solid var(--line); grid-template-columns: auto 1fr auto; align-items: center; padding: 6px; }
.search-sm .icon-btn { border: 0; background: transparent; width: 40px; height: 40px; }
.search-sm .btn { min-height: 44px; }
.pop { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.pop::-webkit-scrollbar { display: none; }
.pop a { flex: none; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); font-size: 13px; font-weight: 600; }

/* Bo'limlar */
.sec { margin-top: 26px; }
.page-top { margin-top: 16px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.sec-head h2 { margin: 0; }
.sec-act { display: flex; align-items: center; gap: 10px; }

/* Kategoriyalar */
.cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: -2px; }
.cat { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: transform .15s, box-shadow .15s; }
.cat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.cat-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--tint, var(--primary-l)); color: var(--accent); flex: none; }
.cat-ic svg { width: 24px; height: 24px; }
.cat-txt { display: grid; min-width: 0; }
.cat-txt b { font-size: 14px; line-height: 1.25; }
.cat-txt small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-all .cat-ic { background: var(--primary-l); color: var(--primary); }

.catlist { display: grid; gap: 12px; }
.catbox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.catbox-head { display: flex; align-items: center; gap: 12px; }
.catbox-head > span:nth-child(2) { display: grid; flex: 1; }
.catbox-head small { color: var(--muted); font-size: 13px; }
.chev { color: var(--muted); }
.subs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.subs a { padding: 6px 11px; border-radius: 999px; background: #f3f5fb; font-size: 13px; font-weight: 600; }
.subs em { font-style: normal; color: var(--muted); font-weight: 500; }

/* Kartalar */
.grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.card { position: relative; display: grid; grid-template-columns: 104px 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.card-img { position: relative; background: var(--tint, #eef2ff); display: grid; place-items: center; min-height: 118px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.card-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .75); color: var(--accent); }
.card-ic svg { width: 28px; height: 28px; }
.badge { position: absolute; left: 6px; top: 6px; display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 8px; }
.badge svg { width: 13px; height: 13px; }
.badge-ok { background: var(--ok-l); color: var(--ok); }
.fav { position: absolute; right: 8px; top: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: #9aa2b6; display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); z-index: 2; }
.fav svg { width: 18px; height: 18px; }
.fav.on { color: #ef4466; }
.fav.on svg path { fill: currentColor; }
.card-body { padding: 10px 12px 10px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.card-title { font-weight: 700; font-size: 15.5px; line-height: 1.3; padding-right: 34px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tag { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 7px; background: var(--primary-l); color: var(--primary); }
.dist { display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; color: var(--muted); }
.dist svg { width: 14px; height: 14px; }
.card-addr { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-price { font-weight: 700; font-size: 14px; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-top: 2px; }
.state { font-size: 12.5px; font-weight: 700; }
.state.on { color: var(--ok); }
.state.off { color: var(--muted); }
.mini-call { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--ok-l); color: var(--ok); }
.mini-call svg { width: 17px; height: 17px; }

/* Filtrlar */
.filters, .chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 12px -16px 0; padding: 0 16px 2px; }
.filters::-webkit-scrollbar, .chips::-webkit-scrollbar { display: none; }
.pill, .pill-select, .chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); font-size: 14px; font-weight: 600; cursor: pointer; }
.pill svg { width: 16px; height: 16px; }
.pill-select { appearance: none; padding-right: 28px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23697083' stroke-width='2' d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 8px center / 16px; }
.pill.on, .chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.chips { margin-top: 10px; }
.res-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 16px 0 12px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 18px 0; }

.empty { text-align: center; padding: 34px 16px; background: var(--surface); border: 1px dashed #cfd6e6; border-radius: var(--r); }
.empty-ic { width: 60px; height: 60px; border-radius: 18px; background: var(--primary-l); color: var(--primary); display: inline-grid; place-items: center; }
.empty-ic svg { width: 28px; height: 28px; }
.empty h3 { margin: 12px 0 6px; }
.empty-act { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }

/* Xarita tanishtiruvi */
.map-teaser { position: relative; display: grid; grid-template-columns: 1fr; gap: 14px; padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.map-teaser h2 { margin-bottom: 4px; }
.map-teaser .btn { margin-top: 10px; }
.map-art { position: relative; height: 140px; border-radius: 14px; background:
  linear-gradient(90deg, rgba(31, 94, 255, .06) 1px, transparent 1px) 0 0 / 22px 22px,
  linear-gradient(rgba(31, 94, 255, .06) 1px, transparent 1px) 0 0 / 22px 22px,
  linear-gradient(125deg, #eef3ff, #f8fbff 55%, #eaf6ef); }
.map-art::before { content: ""; position: absolute; left: -10%; right: -10%; top: 48%; height: 10px; background: #fff; transform: rotate(-12deg); box-shadow: 0 0 0 1px #e1e8f7; }
.map-art i { position: absolute; width: 22px; height: 22px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--primary); box-shadow: 0 6px 14px -4px rgba(31, 94, 255, .7); }
.map-art i.o { background: var(--accent); box-shadow: 0 6px 14px -4px rgba(255, 122, 26, .7); }

/* Afzalliklar, CTA */
.why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.why div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 2px; }
.why span { width: 40px; height: 40px; border-radius: 12px; background: var(--primary-l); color: var(--primary); display: grid; place-items: center; margin-bottom: 6px; }
.why b { font-size: 14.5px; }
.why small { color: var(--muted); font-size: 12.5px; }
.cta { display: grid; gap: 14px; padding: 20px; border-radius: 20px; color: #fff; background: radial-gradient(circle at 90% 0%, rgba(255, 164, 92, .45), transparent 45%), linear-gradient(135deg, #133d7a, #1f5eff); }
.cta h2 { margin: 0 0 6px; }
.cta p { margin: 0; color: #dbe5ff; font-size: 14.5px; }

/* Joy sahifasi */
.place { padding: 0; }
.place-hero { position: relative; height: 210px; background: var(--tint, #eef2ff); display: grid; place-items: center; margin: 0 -16px; overflow: hidden; }
.place-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.place-ic { width: 92px; height: 92px; border-radius: 28px; background: rgba(255, 255, 255, .8); color: var(--accent); display: grid; place-items: center; }
.place-ic svg { width: 48px; height: 48px; }
.hero-back { position: absolute; left: 12px; top: 12px; border: 0; background: rgba(255, 255, 255, .92); }
.fav-lg { width: 44px; height: 44px; right: 12px; top: 12px; }
.place-main { position: relative; margin-top: -18px; background: var(--surface); border-radius: 22px 22px 0 0; padding: 18px 2px 8px; }
.place-head h1 { margin: 0 0 8px; font-size: 24px; line-height: 1.2; font-weight: 800; }
.vbadge { width: 22px; height: 22px; color: var(--primary); vertical-align: -3px; }
.place-state { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.price { font-weight: 800; font-size: 17px; }
.actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin: 16px 0 6px; }
.actions .btn:only-child { grid-column: 1 / -1; }
.quick { display: flex; gap: 6px; margin: 6px 0 14px; }
.quick a, .quick button { flex: 1; display: grid; justify-items: center; gap: 4px; padding: 10px 4px; border-radius: 12px; background: #f3f5fb; border: 0; font-size: 12.5px; font-weight: 600; color: #394357; cursor: pointer; }
.quick svg { color: var(--primary); }
.info { display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 10px; }
.info > div { display: flex; gap: 12px; padding: 9px 0; align-items: flex-start; }
.info svg { color: var(--primary); margin-top: 2px; }
.info small { display: block; color: var(--muted); font-size: 12.5px; }
.info a { color: var(--primary); font-weight: 600; }
.services { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.services li { padding: 10px 12px; background: #f6f8fc; border-radius: 10px; font-size: 15px; }
.about { white-space: pre-line; margin: 0; }
.mini-map { height: 200px; border-radius: 16px; margin: 18px 0 6px; overflow: hidden; border: 1px solid var(--line); background: #eef2fb; }
.note { margin: 14px 0; padding: 14px; border-radius: 14px; background: #fff8ec; border: 1px solid #ffe2b8; display: grid; gap: 10px; }
.note p { margin: 0; font-size: 14px; color: #6b4a12; }

/* Forma */
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 600; font-size: 14px; }
.order-who { display: grid; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 14px; }
.form { display: grid; gap: 14px; }
.form label, .form fieldset { display: grid; gap: 6px; margin: 0; border: 0; padding: 0; }
.form label > span, .form legend { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; padding: 0; }
.form i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; display: inline-grid; place-items: center; font-size: 12px; }
.form input:not([type=radio]), .form select, .form textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid #d9deea; background: var(--surface); font-size: 16px; outline: 0; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31, 94, 255, .15); }
.row2 { display: grid; gap: 14px; }
.days, .times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.times { grid-template-columns: repeat(3, 1fr); margin-top: 8px; }
.day input, .tm input { position: absolute; opacity: 0; pointer-events: none; }
.day span, .tm span { display: grid; justify-items: center; padding: 9px 4px; border-radius: 12px; border: 1px solid #d9deea; background: var(--surface); cursor: pointer; font-size: 14px; }
.day small { color: var(--muted); font-size: 12px; }
.day input:checked + span, .tm input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.day input:checked + span small { color: #dbe5ff; }
.alert { padding: 12px 14px; border-radius: 12px; background: #fdecee; color: var(--err); font-weight: 600; margin-bottom: 12px; }
.done-ic { width: 76px; height: 76px; border-radius: 50%; background: var(--ok-l); color: var(--ok); display: inline-grid; place-items: center; margin: 20px 0 6px; }
.done-ic svg { width: 40px; height: 40px; }
.prose p { color: #3b4254; }

/* Xarita sahifasi */
.page-map { padding-bottom: 0; }
.page-map .foot { display: none; }
.mapwrap { position: relative; height: calc(100dvh - 60px - var(--tab-h) - env(safe-area-inset-bottom, 0px)); }
#bigmap { position: absolute; inset: 0; background: #eef2fb; }
.map-bar { position: absolute; z-index: 500; left: 0; right: 0; top: 0; padding: 10px 12px 0; pointer-events: none; }
.map-bar > * { pointer-events: auto; }
.map-bar .search-sm { grid-template-columns: 1fr; box-shadow: var(--shadow); }
.map-bar .chips { margin: 8px -12px 0; padding: 0 12px 4px; }
.map-bar .chip { box-shadow: 0 4px 12px -6px rgba(0, 0, 0, .3); }
.locate-btn { position: absolute; z-index: 500; right: 12px; bottom: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: var(--primary); box-shadow: var(--shadow); display: grid; place-items: center; cursor: pointer; }
.map-sheet { position: absolute; z-index: 600; left: 10px; right: 10px; bottom: 12px; }
.map-sheet .card { box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .35); }
.pin { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: grid; place-items: center; background: var(--primary); border: 2px solid #fff; box-shadow: 0 4px 10px -2px rgba(0, 0, 0, .35); }
.pin svg { transform: rotate(45deg); width: 15px; height: 15px; color: #fff; }
.pin.c-tibbiyot { background: #16a34a; } .pin.c-avtomobil { background: var(--primary); } .pin.c-gozallik { background: #e11d74; }
.pin.c-uy-xizmatlari, .pin.c-kunlik-ish { background: var(--accent); } .pin.c-dokonlar { background: #9333ea; } .pin.c-maishiy { background: #0891b2; }
.pin.c-talim, .pin.c-biznes, .pin.c-yetkazib-berish { background: #4f46e5; }
.me-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--primary); border: 3px solid #fff; box-shadow: 0 0 0 8px rgba(31, 94, 255, .2); }

/* Pastki menyu (telefon) */
.tabbar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; height: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px);
  display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(255, 255, 255, .96); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.tabbar a { display: grid; justify-items: center; align-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: #7a8193; }
.tabbar a.on { color: var(--primary); }
.tab-plus span { width: 44px; height: 44px; margin-top: -20px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--accent), #ff9a4a); box-shadow: 0 8px 18px -6px rgba(255, 122, 26, .8); border: 3px solid #fff; }

/* Pastki qism */
.foot { margin-top: 40px; padding: 24px 0 16px; background: var(--surface); border-top: 1px solid var(--line); }
.foot-in { display: grid; gap: 12px; }
.foot p { margin: 4px 0 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px; font-weight: 600; color: #394357; }
.foot .small a { text-decoration: underline; }

/* Leaflet ichidagi kichik moslashuv */
.leaflet-container { font: inherit; }
.leaflet-div-icon { background: none; border: 0; }

/* Planshet va kompyuter */
@media (min-width: 720px) {
  .cats { grid-template-columns: repeat(5, 1fr); }
  .cat { flex-direction: column; align-items: flex-start; padding: 14px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: repeat(4, 1fr); }
  .row2 { grid-template-columns: 1fr 1fr; }
  .cta { grid-template-columns: 1fr auto; align-items: center; padding: 26px 30px; }
  .map-teaser { grid-template-columns: 1fr 1.3fr; align-items: center; padding: 22px; }
  .map-art { height: 180px; }
  .top-join { width: auto; padding: 0 14px; }
  .top-join span { display: inline; }
  .catlist { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .top-links { display: flex; }
  .top-in { height: 68px; }
  .hero { padding: 54px 0 46px; }
  .hero h1 { font-size: 52px; }
  .hero-sub { font-size: 18px; }
  .search { grid-template-columns: 1fr 230px 150px; }
  .search .search-d { display: flex; }
  .search-sm { grid-template-columns: auto 1fr auto; }
  .grid { grid-template-columns: repeat(4, 1fr); }
  .grid .card { grid-template-columns: 1fr; }
  .grid .card-img { min-height: 150px; }
  .place { display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; align-items: start; margin-top: 20px; }
  .place-hero { margin: 0; border-radius: 22px; height: 380px; position: sticky; top: 90px; }
  .place-main { margin: 0; border-radius: 0; padding-top: 0; }
  .mapwrap { height: calc(100dvh - 68px); }
  .map-bar { max-width: 560px; }
  .map-sheet { left: auto; width: 420px; }
  .foot-in { grid-template-columns: 1fr auto; align-items: start; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ===== Qo'shilish va boshqaruv formalari ===== */
.ferr { color: var(--err); font-size: 13px; font-weight: 600; }
.steps { margin: 0 0 18px; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 8px; }
.steps li { counter-increment: st; display: flex; gap: 10px; align-items: center; font-size: 14.5px; }
.steps li::before { content: counter(st); width: 26px; height: 26px; border-radius: 50%; background: var(--primary-l); color: var(--primary); font-weight: 800; font-size: 13px; display: grid; place-items: center; flex: none; }
.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kinds legend { grid-column: 1 / -1; margin-bottom: 6px; }
.kind { position: relative; cursor: pointer; }
.kind input { position: absolute; opacity: 0; }
.kind span { display: grid; gap: 2px; height: 100%; padding: 12px; border-radius: 14px; border: 1.5px solid #d9deea; background: var(--surface); }
.kind small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.kind input:checked + span { border-color: var(--primary); background: var(--primary-l); }
.kind input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.more summary { cursor: pointer; font-weight: 700; font-size: 14.5px; color: var(--primary); padding: 4px 0; }
.checks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chk { display: inline-flex !important; align-items: center; gap: 8px; cursor: pointer; font-weight: 500 !important; }
.checks .chk { padding: 6px 10px; border: 1px solid #d9deea; border-radius: 999px; font-size: 13.5px; background: var(--surface); }
.chk input { width: 18px; height: 18px; accent-color: var(--primary); flex: none; }
.consent { align-items: flex-start !important; font-size: 14px; line-height: 1.45; }
.consent input { margin-top: 2px; }
.geo { display: grid; gap: 8px; }
.geo-map { height: 220px; border-radius: 14px; border: 1px solid var(--line); background: #eef2fb; overflow: hidden; }
.geo-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hours { display: flex; align-items: center; gap: 8px; }
.hours select { flex: 1.4; }
.hours input { flex: 1; min-width: 0; }
.form .hours > span { color: var(--muted); }
.cur-photo { display: flex; align-items: center; gap: 12px; }
.cur-photo img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; }
.ic-inline { width: 15px; height: 15px; vertical-align: -2px; color: var(--primary); }
.done-box { text-align: center; padding: 6px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 18px; display: grid; justify-items: center; gap: 10px; }
.done-box p { margin: 0; color: #3b4254; }
.copy { display: flex; gap: 8px; width: 100%; }
.copy input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid #d9deea; background: #f6f8fc; font-size: 14px; }
.okbar { padding: 10px 14px; border-radius: 12px; background: var(--ok-l); color: var(--ok); font-weight: 700; margin-bottom: 12px; }
.own-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.stat { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.stat-on { background: var(--ok-l); color: var(--ok); } .stat-wait { background: #fff4e0; color: var(--warn); } .stat-off { background: #f1f2f6; color: var(--muted); }
.today { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.today b { display: block; } .today small { color: var(--muted); }
.switch { width: 52px; height: 30px; border-radius: 999px; border: 0; background: #d5dae6; position: relative; cursor: pointer; flex: none; }
.switch span { position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.today.on .switch { background: var(--ok); } .today.on .switch span { left: 25px; }
.orders { display: grid; gap: 10px; }
.order { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 3px; }
.order.o-new { border-color: #ffd0a8; background: #fffaf5; }
.order-top { display: flex; justify-content: space-between; gap: 8px; }
.order-top a { color: var(--primary); font-weight: 700; }
.order-act { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.order-act .pill { height: 32px; font-size: 13px; }

/* Ilovani o'rnatish taklifi */
.install { position: fixed; z-index: 70; left: 10px; right: 10px; bottom: calc(var(--tab-h) + 10px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .35); }
.install img { border-radius: 10px; flex: none; }
.install div { flex: 1; min-width: 0; display: grid; font-size: 14px; }
.install small { color: var(--muted); font-size: 12.5px; }
.install-x { border: 0; background: none; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px; }
@media (min-width: 960px) { .install { left: auto; right: 20px; bottom: 20px; width: 380px; } }

/* Reyting va sharhlar */
.rate { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 700; color: #b86a00; }
.rate em { font-style: normal; color: var(--muted); font-weight: 500; }
.rate-lg { font-size: 15px; margin-top: 6px; }
.reviews { display: grid; gap: 10px; }
.review { padding: 12px 14px; border-radius: 14px; background: #f6f8fc; }
.review p { margin: 6px 0 0; white-space: pre-line; }
.review-top { display: flex; justify-content: space-between; gap: 8px; }
.stars-s { color: #f59e0b; letter-spacing: 1px; } .stars-s i { font-style: normal; color: #d6dae4; }
.reply { margin-top: 8px; padding: 8px 10px; border-left: 3px solid var(--primary); background: var(--surface); border-radius: 0 8px 8px 0; font-size: 14px; }
.stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.stars input { position: absolute; opacity: 0; pointer-events: none; }
.stars label { font-size: 38px; line-height: 1; color: #d6dae4; cursor: pointer; transition: transform .1s; display: inline !important; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: #f59e0b; }
.stars input:focus-visible + label { outline: 2px solid var(--primary); border-radius: 6px; }
.reply-form { display: grid; gap: 6px; margin-top: 8px; }
.reply-form textarea { width: 100%; padding: 8px 10px; border-radius: 10px; border: 1px solid #d9deea; font: inherit; font-size: 14px; }
.reply-form .btn { justify-self: start; }

/* Yordamchi (chat) */
.page-chat .foot { display: none; }
.chat { display: flex; flex-direction: column; min-height: calc(100dvh - 60px - var(--tab-h) - env(safe-area-inset-bottom, 0px)); padding-top: 14px; padding-bottom: 10px; max-width: 760px; }
.chat-log { flex: 1; display: flex; flex-direction: column; gap: 12px; padding-bottom: 12px; }
.msg { display: flex; gap: 8px; align-items: flex-end; }
.msg.me { justify-content: flex-end; }
.bubble { max-width: 86%; padding: 11px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
.msg.me .bubble { background: var(--primary); color: #fff; border-color: var(--primary); border-bottom-right-radius: 6px; }
.msg.bot .bubble { border-bottom-left-radius: 6px; }
.bot-ic { width: 32px; height: 32px; border-radius: 50%; background: #fff3ea; color: var(--accent); display: grid; place-items: center; flex: none; }
.bot-ic svg { width: 18px; height: 18px; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #b5bccc; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.chips-wrap { flex-wrap: wrap; overflow: visible; margin: 8px 0 0; padding: 0; }
.mini-list { display: grid; gap: 8px; margin-top: 10px; }
.mini-card { display: flex; gap: 10px; padding: 10px; border-radius: 14px; background: #f6f8fc; }
.mini-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--tint, #eef2ff); color: var(--accent); display: grid; place-items: center; flex: none; }
.mini-body { display: grid; gap: 1px; min-width: 0; }
.mini-body small { color: var(--muted); font-size: 12.5px; }
.mini-act { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.mini-act .pill { height: 32px; font-size: 13px; padding: 0 11px; }
.bot-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.chat-box { position: sticky; bottom: calc(var(--tab-h) + 8px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 8px; padding: 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.chat-box input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 10px; font-size: 16px; background: transparent; }
.chat-box .btn { width: 48px; padding: 0; }
.chat-note { text-align: center; margin: 8px 0 0; }
@media (min-width: 960px) { .chat { min-height: calc(100dvh - 68px - 40px); } .chat-box { bottom: 16px; } }
@media (prefers-reduced-motion: reduce) { .typing i { animation: none; } }
.ask { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); max-width: 560px; }
.ask span:nth-child(2) { flex: 1; display: grid; }
.ask small { color: #cbd6f2; font-size: 13px; }
.ask .bot-ic { background: rgba(255, 255, 255, .92); }
.tab-plus.on span { box-shadow: 0 0 0 3px rgba(31, 94, 255, .25), 0 8px 18px -6px rgba(255, 122, 26, .8); }
@media (min-width: 960px) { .top-links { gap: 18px; font-size: 14.5px; } }
.pill-select.on { border-color: var(--primary); color: var(--primary); background-color: var(--primary-l); }
/* Xaritadagi guruhlar — brend ranglarida */
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background-color: rgba(31, 94, 255, .22) !important; }
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div { background-color: var(--primary) !important; color: #fff; font: 700 12px/30px Inter, system-ui, sans-serif; }
.danger { margin-top: 26px; padding: 12px 14px; border: 1px solid #f3c4c8; border-radius: 14px; background: #fff7f8; }
.danger summary { cursor: pointer; font-weight: 700; color: var(--err); }
.danger .form { margin-top: 10px; }
.btn-danger { color: var(--err); border-color: #f0b4b9; }

/* Galereya */
.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gal button { padding: 0; border: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 1; cursor: zoom-in; background: #eef2fb; max-width: 100%; }
.gal img { width: 100%; height: 100%; object-fit: cover; }
.gal-count { position: absolute; right: 12px; bottom: 30px; display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 13px; font-weight: 700; }
.gal-count svg { width: 15px; height: 15px; }
.place-hero img[data-zoom] { cursor: zoom-in; }
.zoom { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; }
.zoom::backdrop { background: rgba(10, 14, 25, .88); }
.zoom img { max-width: 94vw; max-height: 88vh; border-radius: 12px; }
.zoom-x { position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); font-size: 26px; cursor: pointer; }
.gal-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; margin-bottom: 10px; }
.gal-edit figure { position: relative; margin: 0; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #eef2fb; }
.gal-edit img { width: 100%; height: 100%; object-fit: cover; }
.gal-del { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.gal-up { display: grid; gap: 6px; }
.codebox { display: grid; justify-items: center; gap: 4px; padding: 12px 16px; border-radius: 14px; background: var(--primary-l); margin: 12px auto; max-width: 420px; text-align: center; }
.codebox small { color: #3b4a7a; font-size: 13px; }
.codebox b, .mono { font: 800 22px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; color: var(--primary); }
.mono { font-size: 15px; }
.restore { margin-top: 22px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.restore summary { cursor: pointer; font-weight: 700; color: var(--primary); }
.restore .form { margin-top: 10px; }
.langs { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.langs a { font-weight: 700; font-size: 12px; padding: 6px 7px; color: var(--muted); }
.langs a.on { background: var(--primary-l); color: var(--primary); }
@media (max-width: 380px) { .chip-loc { display: none; } }
/* Til tanlovi (9 til) */
.langsel { position: relative; }
.langsel summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 10px; font-weight: 700; font-size: 12.5px; cursor: pointer; color: #394357; }
.langsel summary::-webkit-details-marker { display: none; }
.langsel summary svg { width: 16px; height: 16px; color: var(--primary); }
.langmenu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 80; min-width: 170px; display: grid; padding: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.langmenu a { padding: 9px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 500; }
.langmenu a:hover { background: #f3f5fb; }
.langmenu a.on { background: var(--primary-l); color: var(--primary); font-weight: 700; }
