/* ============================================================
   SafarLine dizayn tizimi — "Buxoro Smart Turizm" palitra
   qum · krem · zarhal (oltin) · quyuq jigarrang
   ============================================================ */

/* Shriftlar self-host qilinadi — fonts.css (base.html'da style.css'dan oldin ulanadi).
   Google Fonts import'i olib tashlandi: CSP bloklaydi va render'ni sekinlashtiradi. */

:root {
    /* Ranglar — fil suyagi zamin, zarhal urg'u, to'q ko'k "ovoz" */
    --ivory: #faf6ed;            /* sahifa zamini */
    --sand: #efe6d2;             /* bo'lim almashinuvi, chuqurchalar */
    --gold: #c9a24f;             /* oltin — faqat harakat (CTA, urg'u) */
    --gold-strong: #a07a35;
    --navy: #1e2a4a;             /* sarlavha va matn — illyustratsiya osmoni bilan bir oila */
    --navy-soft: #43507b;
    --turquoise: #2e8e9e;        /* interaktiv aksent: fokus, ikonkalar */
    --turquoise-soft: #ddf0f2;
    --sky: #bfd9e4;

    --brand: #a07a35;            /* zarhal bronza */
    --brand-strong: #7d5c22;
    --brand-soft: #f1e6cc;
    --accent: #c9a24f;           /* oltin */
    --accent-soft: #f6ecd4;
    --terracotta: #9a6b2f;
    --ink: var(--navy);
    --ink-soft: var(--navy-soft);
    --muted: #5c6584;
    --bg: var(--ivory);
    --card: #fffdf7;             /* iliq oq karta */
    --line: #e4dbc4;
    --danger: #a83a2a;
    --danger-soft: #f6e0da;
    --ok-soft: #e8ecd2;

    /* Shakl */
    --radius: 18px;
    --radius-sm: 12px;
    --shadow-sm: 0 1px 3px rgb(30 42 74 / 0.06);
    --shadow-md: 0 6px 24px -8px rgb(30 42 74 / 0.14);
    --shadow-lg: 0 18px 48px -16px rgb(30 42 74 / 0.22);

    /* Tipografik shkala */
    --text-h1: clamp(2.6rem, 6vw, 4.5rem);
    --text-h2: clamp(1.9rem, 3.5vw, 2.6rem);
    --text-h3: 1.35rem;
    --text-body: 1rem;
    --text-small: 0.9rem;
    --text-caption: 0.8rem;
    --text-label: 0.72rem;       /* uppercase yorliqlar (letter-spacing bilan) */

    --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
    --font-display: "Playfair Display", Georgia, serif;

    /* Bo'shliq shkalasi — 4px asos (DESIGN_SYSTEM_WEB.md §2).
       Yangi/qayta ishlangan komponentlar faqat shu qadamlardan foydalanadi. */
    --s-1: 0.25rem;   /*  4px */
    --s-2: 0.5rem;    /*  8px */
    --s-3: 0.75rem;   /* 12px */
    --s-4: 1rem;      /* 16px */
    --s-5: 1.5rem;    /* 24px */
    --s-6: 2rem;      /* 32px */
    --s-7: 3rem;      /* 48px */
    --s-8: 4rem;      /* 64px */

    /* Radius shkalasi (mavjud --radius/--radius-sm bilan yonma-yon) */
    --radius-xs: 8px;
    --radius-lg: 22px;
    --radius-pill: 999px;

    /* Semantik holat ranglari (--danger yuqorida mavjud) */
    --success: #3f7d52;
    --success-soft: #e6efe2;
    --warning: #8a6519;
    --warning-soft: #f6ecd4;

    /* Sensor nishonning minimal o'lchami (WCAG 2.5.8) */
    --tap-min: 44px;

    /* Sevimli (yurak) holati — palitraga mos iliq qizil */
    --fav: #e2556e;
}

* { box-sizing: border-box; }

/* `hidden` atributi har doim yutadi: `.map-dir-menu`, `.map-radius` kabi
   sinflardagi `display:flex` brauzerning UA `[hidden]{display:none}` qoidasidan
   ustun kelib, menyularni sahifa ochilishidayoq ko'rsatib yuborardi. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

/* Faqat ekran o'quvchilar uchun matn (vizual yashirin) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip-havola: fokusgacha ko'rinmaydi, Tab bosilganda paydo bo'ladi */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0.75rem;
    z-index: 300;
    background: var(--ink);
    color: var(--card);
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus { left: 0.75rem; }

/* Skip-havola nishoni fokus olganda ko'k halqa chiqmasin */
main:focus { outline: none; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background:
        radial-gradient(70rem 30rem at 110% -10%, rgb(201 162 79 / 0.14), transparent 60%),
        var(--bg);
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

img { max-width: 100%; display: block; }

a { color: var(--brand-strong); }

.container { width: min(1140px, 92%); margin: 0 auto; }

/* ---------- Sarlavha (header) ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgb(250 246 237 / 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Skroll boshlangach — shisha kuchayadi, chegara va soya paydo bo'ladi */
.site-header.is-scrolled {
    background: rgb(250 246 237 / 0.78);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border-bottom-color: rgb(30 42 74 / 0.08);
    box-shadow: 0 1px 24px rgb(30 42 74 / 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.65rem 0;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo span { color: var(--brand-strong); }
.logo .logo-dot { color: var(--accent); }

.logo img {
    display: block;
    height: 2.5rem;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-right: auto;
}

.nav a {
    position: relative;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    color: var(--navy-soft);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

/* Faol/hoverni to'q pill emas — oltin ostki chiziq bildiradi */
.nav a::after {
    content: "";
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.1rem;
    height: 2px;
    border-radius: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav a:hover { color: var(--navy); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--navy); font-weight: 700; }

.nav a.nav-icon { padding: 0.5rem; display: inline-flex; }
.nav a.nav-icon::after { display: none; }
.nav a.nav-icon svg { width: 18px; height: 18px; }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

/* Mobil menyu tugmasi — faqat tor ekranlarda ko'rinadi */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
    cursor: pointer;
    color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.site-header.nav-open .nav-toggle .icon-burger { display: none; }
.site-header.nav-open .nav-toggle .icon-close { display: block; }

/* Klaviatura fokusi — barcha interaktiv elementlar uchun */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--turquoise);
    outline-offset: 3px;
}

/* Til tanlash — bayroqli dropdown */
.lang-dropdown { position: relative; }
.lang-dropdown summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    padding: 0.45rem 0.75rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    color: var(--navy-soft);
    user-select: none;
    transition: color 0.2s, border-color 0.2s;
}
.lang-dropdown summary::-webkit-details-marker { display: none; }
.lang-dropdown summary:hover { color: var(--navy); border-color: rgb(30 42 74 / 0.15); }
.lang-dropdown summary .user-ico { width: 18px; height: 18px; }
.lang-dropdown summary img { display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.08); }
.lang-dropdown .caret { transition: transform 0.15s; }
.lang-dropdown[open] .caret { transform: rotate(180deg); }

.lang-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: var(--card);
    border: 1px solid rgb(30 42 74 / 0.08);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    padding: 6px;
    min-width: 176px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 60;
    animation: menu-in 0.14s ease;
}

@keyframes menu-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: none; }
}

.lang-menu button, .lang-menu a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    cursor: pointer;
    color: var(--navy-soft);
    text-align: left;
    text-decoration: none;
    min-height: 44px;
}
.lang-menu button img { display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.08); }
.lang-menu button:hover, .lang-menu a:hover { background: var(--sand); color: var(--navy); }
.lang-menu button.active { background: transparent; color: var(--navy); }
.lang-menu button.active::after { content: "✓"; margin-left: auto; font-weight: 800; color: var(--gold-strong); }

.user-menu { min-width: 210px; }
.user-menu .badge { margin-left: auto; }

/* ---------- Tugmalar ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease,
                background 0.25s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn svg { width: 18px; height: 18px; flex: none; }
.btn .btn-icon { transition: transform 0.2s ease; }
.btn:hover .btn-icon { transform: translateX(3px); }

.btn:active { transform: translateY(1px); }

/* Ikkilamchi to'q tugma — navy gradient (formalar, kabinetlar) */
.btn-primary {
    background: linear-gradient(180deg, #2c3a63, var(--navy));
    color: #f4f0e4;
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); color: #fff; }

/* Asosiy CTA — oltin gradient, quyuq matn (oq matn oltin ustida WCAG'dan o'tmaydi) */
.btn-accent {
    background: linear-gradient(135deg, #d4ac5b 0%, #b8862f 100%);
    color: #241a0e;
    box-shadow: 0 4px 14px rgb(184 134 47 / 0.35), inset 0 1px 0 rgb(255 255 255 / 0.25);
}
.btn-accent:hover {
    transform: translateY(-2px);
    color: #241a0e;
    box-shadow: 0 8px 24px rgb(184 134 47 / 0.45), inset 0 1px 0 rgb(255 255 255 / 0.25);
}
.btn-accent:active { transform: translateY(0); box-shadow: 0 3px 10px rgb(184 134 47 / 0.4); }

/* Ikkilamchi yengil tugma — shisha, aniq bir pog'ona past */
.btn-ghost {
    background: rgb(255 255 255 / 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--navy);
    border-color: rgb(30 42 74 / 0.15);
}
.btn-ghost:hover { border-color: var(--gold); background: rgb(255 255 255 / 0.78); color: var(--navy); }

.btn-sm { padding: 0.4rem 1rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- Asosiy qism ---------- */

main { flex: 1; }

.page { padding: 2.5rem 0 4rem; }

.page-head { margin-bottom: 1.75rem; }

h1.page-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
}

.page-sub { color: var(--muted); margin: 0; max-width: 46rem; }

/* ---------- Karusel ---------- */

.carousel {
    position: relative;
    /* Endi hero ostidagi e'lonlar lentasi — to'liq ekran emas */
    height: clamp(320px, 55vh, 540px);
    overflow: hidden;
    background: #16203a;
    border-bottom: 1px solid var(--line);
}

.carousel-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.carousel-slide.is-active { opacity: 1; z-index: 1; }

.carousel-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgb(20 16 8 / 0.72));
}

.carousel-caption {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-bottom: 2.6rem;
    color: #fdf8ec;
}

.carousel-caption h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.4vw, 2.4rem);
    margin: 0 0 0.4rem;
    letter-spacing: -0.02em;
}

.carousel-caption p {
    margin: 0 0 1.1rem;
    max-width: 38rem;
    color: rgb(253 248 236 / 0.85);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    z-index: 2;
    width: 2.6rem;
    height: 2.6rem;
    border: 1px solid rgb(253 248 236 / 0.35);
    border-radius: 999px;
    background: rgb(20 16 8 / 0.35);
    color: #fdf8ec;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.carousel-arrow:hover { background: rgb(20 16 8 / 0.6); }

.carousel-arrow-next { left: auto; right: 1rem; }

.carousel-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1rem;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.carousel-dot {
    width: 0.6rem;
    height: 0.6rem;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgb(253 248 236 / 0.4);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dot.is-active {
    background: #fdf8ec;
    transform: scale(1.25);
}

/* ---------- Hero — premium split (45/55), pastda suzuvchi stat-karta ---------- */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: block;
    color: #1f2d5c;
    background:
        radial-gradient(55rem 38rem at -12% -15%, #fffdf7 0%, transparent 60%),
        radial-gradient(70rem 44rem at 110% 6%, rgb(201 154 52 / 0.14), transparent 62%),
        radial-gradient(58rem 32rem at 88% 108%, rgb(185 130 34 / 0.16), transparent 58%),
        linear-gradient(160deg, #fffdf7 0%, #f9f3e8 55%, #efe5d0 100%);
    border-bottom: 1px solid var(--line);
    /* pastga osilib turgan ishonch paneli uchun nafas */
    margin-bottom: 88px;
}

/* Naqsh — faqat chap/o'ng chekkalarda, markazda erib ketadi */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cpath d='M36 6l7 17 17 7-17 7-7 17-7-17-17-7 17-7z' fill='none' stroke='%237d5c22' stroke-width='1.4'/%3E%3C/svg%3E");
    background-size: 72px 72px;
    -webkit-mask-image: linear-gradient(90deg, black 0%, transparent 24%, transparent 76%, black 100%);
    mask-image: linear-gradient(90deg, black 0%, transparent 24%, transparent 76%, black 100%);
    pointer-events: none;
}

/* Fon-karusel — qatlamlar krossfeyd bilan almashadi, kontent qimirlamaydi */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-bg-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 1.2s ease;
}

.hero-bg-slide.is-active { opacity: 1; }

/* Karusel slaydlari endi haqiqiy <img> bilan */
.hero-bg-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Standart slayd — Buxoro illyustratsiyasi: o'ng-past, hero bo'yining ~92% i,
   chap chekkasi fonga yumshoq singiydi */
.hero-bg-default {
    /* PERF-IMG: admin fon rasmi bo'lsa inline `--hero-bg-*` keladi (768px
       nusxa); bo'lmasa statik illyustratsiya. Katta ekranda 1280px nusxa
       quyidagi media query bilan almashadi — CSS fonda `srcset` yo'q. */
    background-image: var(--hero-bg-sm, url("../new.db4861ebc2b1.webp"));
    background-size: auto 92%;
    background-position: right -40px bottom 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 2%, black 34%);
    mask-image: linear-gradient(90deg, transparent 2%, black 34%);
    filter: drop-shadow(0 26px 48px rgb(31 45 92 / 0.16));
}

@media (min-width: 800px) {
    .hero-bg-default { background-image: var(--hero-bg-lg, url("../new.db4861ebc2b1.webp")); }
}

/* Chap tomonda matn zonasi uchun yumshoq parda */
.hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(100deg,
        rgb(255 253 247 / 0.92) 30%,
        rgb(249 243 232 / 0.55) 50%,
        rgb(249 243 232 / 0) 68%);
    pointer-events: none;
}

/* Nozik bezaklar — qushlar, yorug' dog'lar, mayda zarralar */
.hero-decor {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.hero-decor::before {
    /* mayda oltin zarralar */
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.3;
    background-image:
        radial-gradient(circle 2px at 18% 28%, #c99a34 99%, transparent),
        radial-gradient(circle 1.5px at 32% 62%, #b98222 99%, transparent),
        radial-gradient(circle 2px at 56% 18%, #c99a34 99%, transparent),
        radial-gradient(circle 1.5px at 74% 40%, #c99a34 99%, transparent);
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
}

.hero-glow-1 {
    width: 380px;
    height: 380px;
    top: -90px;
    left: -110px;
    background: rgb(201 154 52 / 0.16);
}

.hero-glow-2 {
    width: 460px;
    height: 460px;
    right: -130px;
    bottom: -150px;
    background: rgb(191 217 228 / 0.28);
}

.hero-birds {
    position: absolute;
    top: 16%;
    right: 30%;
    width: 130px;
    color: rgb(31 45 92 / 0.28);
}

@media (prefers-reduced-motion: no-preference) {
    .hero-birds { animation: hero-birds-drift 14s ease-in-out infinite alternate; }
}

@keyframes hero-birds-drift {
    from { transform: translate(0, 0); }
    to { transform: translate(-26px, -12px); }
}

/* Karusel nuqtalari — tugma 28px (barmoq uchun), vizual nuqta ::before ichida */
.hero-dots {
    position: absolute;
    right: 1.5rem;
    bottom: 1.3rem;
    z-index: 3;
    display: flex;
    gap: 0.45rem;
}

.hero-dot {
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: transparent;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.hero-dot::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgb(31 45 92 / 0.25);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-dot.is-active::before { background: #b98222; transform: scale(1.3); }

/* Slayd yozuvi — faol slayd bilan birga chiqadigan shisha kartochka */
.hero-slide-caption {
    position: absolute;
    right: 1.5rem;
    bottom: 4rem;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    max-width: 320px;
    padding: 1rem 1.2rem;
    border-radius: var(--radius-sm);
    background: rgb(255 255 255 / 0.8);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    border: 1px solid rgb(255 255 255 / 0.65);
    box-shadow: 0 24px 48px -18px rgb(31 45 92 / 0.22);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-slide-caption.is-active { opacity: 1; transform: none; pointer-events: auto; }

.hero-slide-caption b { font-size: 1.05rem; color: #1f2d5c; }
.hero-slide-caption span { font-size: 0.85rem; color: var(--navy-soft); }
.hero-slide-caption .btn { margin-top: 0.5rem; padding: 0.45rem 1rem; font-size: 0.85rem; min-height: 0; }

/* Kontent — 45/55 split, vertikal markazda */
.hero-inner {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 45fr 55fr;
    align-items: center;
    padding: 6.5rem 0 9rem;
}

.hero-copy { grid-column: 1; max-width: 620px; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--navy-soft);
    background: rgb(255 255 255 / 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgb(201 154 52 / 0.35);
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    margin-bottom: 1.6rem;
    box-shadow: 0 8px 20px -12px rgb(31 45 92 / 0.2);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(4rem, 7vw, 6rem);
    font-weight: 800;
    line-height: 0.98;
    margin: 0 0 1.8rem;
    letter-spacing: -2px;
    color: #1f2d5c;
}

.hero h1 em {
    font-style: italic;
    background: linear-gradient(120deg, #c99a34, #b98222);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p.lead {
    font-size: clamp(1.1rem, 1.6vw, 1.375rem);
    line-height: 1.8;
    color: rgb(31 45 92 / 0.72);
    margin: 0 0 2.8rem;
    max-width: 620px;
}

/* CTA — oltin gradient / oq kontur, 60px, hoverda ko'tariladi */
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-cta .btn {
    min-height: 60px;
    padding: 0 2.1rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.02rem;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease,
        background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.hero-cta .btn-accent {
    background: linear-gradient(135deg, #c99a34, #b98222);
    color: #fff;
    border: none;
    box-shadow: 0 18px 34px -14px rgb(185 130 34 / 0.6);
}

.hero-cta .btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 44px -16px rgb(185 130 34 / 0.65);
}

.hero-cta .btn-ghost {
    background: #fff;
    color: #1f2d5c;
    border: 1.5px solid rgb(31 45 92 / 0.18);
}

.hero-cta .btn-ghost:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #c99a34, #b98222);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 18px 34px -14px rgb(185 130 34 / 0.55);
}

/* ---------- Ishonch paneli — hero chegarasini kesib o'tuvchi suzuvchi karta ----------
   Konsepsiya: "editorial floating trust bar". Uchta raqam Playfair bilan (hero
   sarlavhasi bilan bir oila), yorliqlar mayda uppercase; to'rtinchi element —
   raqam emas, shuning uchun alohida tasdiq nishoni sifatida ajratilgan.
   Ajratkich sifatida asosan bo'shliq ishlaydi, faqat nishon oldida bitta
   nozik chiziq bor. Kengligi konteynerga teng — hero sarlavhasi va pastdagi
   bo'limlar bilan bir chiziqda boshlanadi. */
.hero-stats {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -64px;
    z-index: 3;
    margin: 0;
    padding: var(--s-6);
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    align-items: center;
    gap: var(--s-4) var(--s-5);
    background: linear-gradient(180deg, rgb(255 255 255 / 0.94), rgb(252 246 235 / 0.9));
    backdrop-filter: blur(22px) saturate(1.25);
    -webkit-backdrop-filter: blur(22px) saturate(1.25);
    border: 1px solid rgb(201 162 79 / 0.3);
    border-radius: var(--radius-lg);
    box-shadow:
        0 32px 60px -26px rgb(31 45 92 / 0.34),
        0 2px 8px -3px rgb(31 45 92 / 0.1),
        inset 0 1px 0 rgb(255 255 255 / 0.92);
    overflow: hidden;
}

/* Buxoro yulduz naqshi — hero fonidagi naqsh bilan bir xil motiv, faqat
   chekkalarda ko'rinadi va markazda butunlay erib ketadi (matnga tegmaydi) */
.hero-stats::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 72 72'%3E%3Cpath d='M36 6l7 17 17 7-17 7-7 17-7-17-17-7 17-7z' fill='none' stroke='%237d5c22' stroke-width='1.4'/%3E%3C/svg%3E");
    background-size: 64px 64px;
    -webkit-mask-image: linear-gradient(90deg, black 0%, transparent 20%, transparent 80%, black 100%);
    mask-image: linear-gradient(90deg, black 0%, transparent 20%, transparent 80%, black 100%);
    pointer-events: none;
}

.hero-stat,
.hero-trust { position: relative; }

.hero-stat {
    display: flex;
    align-items: flex-start;
    gap: var(--s-3);
}

/* Ikon — 42px yumshoq oltin nishon; raqamdan kichik, u bilan raqobat qilmaydi */
.hero-stat-icon {
    flex: none;
    width: 42px;
    height: 42px;
    margin-top: 3px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(155deg, rgb(246 236 212 / 0.95), rgb(238 225 196 / 0.85));
    border: 1px solid rgb(201 154 52 / 0.32);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.85);
    color: var(--gold-strong);
    transition: background 0.2s ease, color 0.2s ease,
        transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-stat-icon svg { width: 19px; height: 19px; }

.hero-stat-body { min-width: 0; }

/* Raqam — hero sarlavhasi bilan bir shrift oilasi (editorial bog'lanish) */
.hero-stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 2.3vw, 2.45rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: var(--navy);
}

/* Raqam yonidagi "+" — oltin urg'u */
.hero-stat-num em { font-style: normal; color: var(--gold-strong); }

/* "3 til" — raqamdan keyingi so'z sans-serif va pastroq darajada */
.hero-stat-num i {
    font-family: var(--font-body);
    font-style: normal;
    font-size: 0.46em;
    font-weight: 700;
    letter-spacing: 0;
    color: rgb(30 42 74 / 0.7);
    margin-left: 0.3em;
}

.hero-stat-label {
    display: block;
    margin-top: var(--s-2);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: rgb(30 42 74 / 0.7);
}

/* Tasdiq nishoni — raqam emas, shuning uchun boshqa shakl: yumshoq oltin pill */
.hero-trust {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    padding: var(--s-3) var(--s-4);
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, rgb(246 236 212 / 0.9), rgb(241 230 204 / 0.5));
    border: 1px solid rgb(201 154 52 / 0.32);
}

/* Yagona ajratkich — statistikani ishonch zonasidan ajratadi */
.hero-trust::before {
    content: "";
    position: absolute;
    left: calc(var(--s-5) / -2);
    top: -0.5rem;
    bottom: -0.5rem;
    width: 1px;
    background: linear-gradient(transparent, rgb(30 42 74 / 0.16), transparent);
}

.hero-trust-icon {
    flex: none;
    display: grid;
    place-items: center;
    color: var(--gold-strong);
}

.hero-trust-icon svg { width: 21px; height: 21px; }

.hero-trust-text {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--navy);
}

/* Hover — faqat kursorli qurilmada, nozik: ikon ko'tariladi va oltinga to'ladi */
@media (hover: hover) {
    .hero-stat:hover .hero-stat-icon {
        background: linear-gradient(135deg, #d4ac5b, #b8862f);
        border-color: transparent;
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 10px 18px -8px rgb(184 134 47 / 0.5);
    }
}

/* Panel hero va keyingi bo'lim orasidagi vizual ko'prik — pastdagi bo'lim
   unga yaqinroq boshlanadi, "bo'sh oq maydon" qolmaydi */
.hero + .section { padding-top: var(--s-7); }

/* Kirish sahnasi — matn birin-ketin ko'tariladi; statistika statik turadi */
@media (prefers-reduced-motion: no-preference) {
    .hero-copy > * {
        opacity: 0;
        transform: translateY(16px);
        animation: hero-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    .hero-copy > :nth-child(1) { animation-delay: 0.05s; }
    .hero-copy > :nth-child(2) { animation-delay: 0.14s; }
    .hero-copy > :nth-child(3) { animation-delay: 0.23s; }
    .hero-copy > :nth-child(4) { animation-delay: 0.32s; }
}

@keyframes hero-in { to { opacity: 1; transform: none; } }

/* ≤1079px (planshet): suzuvchi karta oqimga qaytadi, 2×2 panjara bo'ladi.
   Chegara aynan shu yerda: 1080px'dan pastda "TEKSHIRILGAN JOY" yorlig'i bir
   qatorga sig'may qoladi (o'lchov bilan tekshirilgan). */
@media (max-width: 1079px) {
    .hero { margin-bottom: 0; }
    .hero-inner { padding-bottom: 5rem; }
    .hero-stats {
        position: static;
        grid-column: 1 / -1;
        margin-top: var(--s-6);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--s-5);
    }
    .hero-trust {
        justify-self: start;
        max-width: 100%;
    }
    /* Oqimdagi holatda ustunlar orasida chiziq emas — bo'shliq ajratadi */
    .hero-trust::before { display: none; }
    .hero + .section { padding-top: 4.5rem; }
}

/* ≤900px: bitta ustun — illyustratsiya matn ostida (fonda past-markazda) */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-copy { max-width: 34rem; }
    .hero-bg-default {
        background-size: auto 46%;
        background-position: center bottom;
        -webkit-mask-image: linear-gradient(180deg, transparent 30%, black 55%);
        mask-image: linear-gradient(180deg, transparent 30%, black 55%);
    }
    .hero-birds { right: 12%; top: 12%; }
}

/* ≤640px: sarlavha ~48px, tugmalar ustma-ust, vertikal parda */
@media (max-width: 640px) {
    .hero-inner { padding: 5.5rem 0 4.5rem; }
    .hero h1 { font-size: clamp(2.6rem, 11vw, 3rem); letter-spacing: -1px; }
    .hero p.lead { font-size: 1.05rem; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { justify-content: center; }
    /* ≤640px: 2×2 saqlanadi, lekin ikon raqam ustiga chiqadi — tor
       ustunda yorliq to'liq kenglikni oladi va gorizontal scroll bo'lmaydi */
    .hero-stats {
        padding: var(--s-4);
        gap: var(--s-4) var(--s-3);
        border-radius: var(--radius);
        /* Ikon ustidagi tartibda hamma katak yuqoridan boshlanadi */
        align-items: start;
    }
    .hero-stat {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--s-2);
    }
    .hero-stat-icon {
        width: 36px;
        height: 36px;
        margin-top: 0;
        border-radius: 11px;
    }
    .hero-stat-icon svg { width: 17px; height: 17px; }
    .hero-stat-num { font-size: 1.6rem; }
    .hero-stat-label {
        margin-top: var(--s-1);
        font-size: 0.72rem;
        letter-spacing: 0.07em;
    }
    .hero-trust {
        align-items: flex-start;
        gap: var(--s-2);
        padding: var(--s-3);
        border-radius: var(--radius-sm);
    }
    .hero-trust-icon svg { width: 18px; height: 18px; }
    .hero-trust-text { font-size: 0.8rem; }
    .hero-scrim {
        background: linear-gradient(180deg,
            rgb(255 253 247 / 0.94) 42%,
            rgb(249 243 232 / 0.7) 62%,
            rgb(249 243 232 / 0.15) 88%);
    }
    .hero-slide-caption {
        display: none;
        position: static;
        align-self: stretch;
        margin: 1.2rem 0 0;
        max-width: none;
        transform: none;
    }
    .hero-slide-caption.is-active { display: flex; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg-slide, .hero-dot::before, .hero-slide-caption { transition: none; }
    .hero-birds { animation: none; }
    .hero-cta .btn, .hero-stat-icon { transition: none; }
    .hero-stat:hover .hero-stat-icon { transform: none; }
}

/* ---------- "Nimalarni kashf etasiz?" — kategoriya kartalari ---------- */

.section-head-ornate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    margin-bottom: 2rem;
}

.section-head-ornate::before,
.section-head-ornate::after {
    content: "✦";
    flex: 0 1 130px;
    display: flex;
    align-items: center;
    font-size: 0.7rem;
    color: var(--gold);
}

.section-head-ornate::before {
    justify-content: flex-end;
    background: linear-gradient(90deg, transparent, rgb(201 162 79 / 0.55)) left center / calc(100% - 1.2rem) 1px no-repeat;
}

.section-head-ornate::after {
    justify-content: flex-start;
    background: linear-gradient(270deg, transparent, rgb(201 162 79 / 0.55)) right center / calc(100% - 1.2rem) 1px no-repeat;
}

.discover-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1.1rem;
}

.discover-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 5 / 4;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    border-radius: var(--radius);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.discover-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* Pastki qorayish — foto ustida yorliq o'qilishi uchun */
.discover-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgb(20 16 8 / 0.62));
}

/* Foto + gradient fallback (rasm yuklanmasa gradient ko'rinadi) */
.discover-card { background-size: cover; background-position: center; background-repeat: no-repeat; }

.discover-monument   { background-image: url("../backs/cat-monument.1b6f0aa8eb91.webp"),   linear-gradient(135deg, #8a6430, #d3ab55); }
.discover-experience { background-image: url("../backs/cat-experience.95db2fd5b8c8.webp"), linear-gradient(135deg, #7a4b22, #bb8347); }
.discover-craft      { background-image: url("../backs/cat-craft.a91daab713df.webp"),      linear-gradient(135deg, #8a4a3a, #c48a70); }
.discover-citypass   { background-image: url("../backs/cat-citypass.052ecda2c7c3.webp"),   linear-gradient(135deg, #2c3a63, #5a6ea8); }
.discover-sos        { background-image: url("../backs/cat-sos.b8a0749fbe5d.webp"),        linear-gradient(135deg, #6b4f2a, #b08d4f); }

.discover-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.discover-chip {
    flex: none;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.22);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.discover-chip svg { width: 17px; height: 17px; }

.discover-chip-sos { background: var(--danger, #a83a2a); font-size: 0.6rem; font-weight: 800; letter-spacing: 0.02em; }

@media (max-width: 640px) {
    .discover-grid { grid-template-columns: 1fr 1fr; }
    .discover-card { aspect-ratio: 4 / 3; }
    /* Toq (5-) karta yolg'iz qolmasin — to'liq qatorni egallaydi */
    .discover-grid > :last-child { grid-column: span 2; aspect-ratio: 8 / 3; }
}

@media (prefers-reduced-motion: reduce) {
    .discover-card { transition: none; }
}

/* ---------- Bo'limlar ---------- */

.section { padding: 4.5rem 0; }

/* Bo'lim ritmi — fil suyagi va qum almashinib "nafas" beradi */
.section-alt { background: var(--sand); }

/* Kicker — har bir bo'lim sarlavhasi ustidagi kichik oltin yozuv */
.section-kicker {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-strong);
    margin-bottom: 0.6rem;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.6rem;
}

.section-head h2 {
    font-family: var(--font-display);
    font-size: var(--text-h2);
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-head .link-more { font-weight: 700; text-decoration: none; white-space: nowrap; }

/* ---------- Joy kartalari ---------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.4rem;
}

.place-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.place-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* Butun karta bosiladigan hudud — sarlavha havolasi kartani "qoplaydi";
   ❤ tugmasi undan yuqori qatlamda qoladi */
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.place-card:hover .card-link { color: var(--brand-strong); }

.fav-form { position: absolute; top: 0.65rem; right: 0.65rem; z-index: 2; }
.fav-btn {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: rgb(30 42 74 / 0.45);
    backdrop-filter: blur(6px);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: transform 0.15s ease, background 0.15s ease;
}
.fav-btn:hover { background: rgb(30 42 74 / 0.65); transform: scale(1.08); }
.fav-btn:active { transform: scale(1.25); }

.place-cover {
    aspect-ratio: 16 / 10;
    display: grid;
    place-items: center;
    font-size: 3rem;
    color: #fff;
    position: relative;
    background-size: cover;
    background-position: center;
}

/* Haqiqiy <img> muqova — SEO/LCP uchun CSS fon o'rniga */
.place-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.place-cover .cat-tag {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    background: rgb(30 42 74 / 0.6);
    backdrop-filter: blur(6px);
    color: #f6ecd4;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    text-transform: uppercase;
}

.place-cover .rating {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgb(30 42 74 / 0.6);
    backdrop-filter: blur(6px);
    color: #e9c876;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
}
.place-cover .rating small { color: rgb(246 236 212 / 0.75); font-weight: 600; }
.place-cover .rating.is-new { color: #bfe8c7; font-size: 0.75rem; }

.place-body { padding: 1.1rem 1.2rem 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }

.place-body h3 { margin: 0; font-size: 1.12rem; letter-spacing: -0.01em; font-family: var(--font-display); }

.place-body p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.place-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.6rem; min-height: 1.7rem; }

.badge-open { background: #e6efdd; color: #3e6b34; border-color: rgb(90 122 62 / 0.35); }
.badge-closed { background: #f1e3df; color: #8c4a3a; border-color: rgb(140 74 58 / 0.3); }
.badge-hot { background: #f7e2d2; color: #a3542a; border-color: rgb(163 84 42 / 0.35); }

/* Karta pastki qatori — narx chapda, harakat o'ngda; doim kartaning tagida */
.card-foot {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.card-cta {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-strong);
    white-space: nowrap;
}
.card-cta .arr { display: inline-block; transition: transform 0.2s ease; }
.place-card:hover .card-cta .arr { transform: translateX(4px); }
.price-tag.free { color: var(--brand-strong); font-size: 0.85rem; }

/* Kartalarning sahnaga kirishi — pastdan yumshoq ko'tarilish (JS .in-view qo'shadi) */
@media (prefers-reduced-motion: no-preference) {
    .card-grid.anim > * {
        opacity: 0;
        transform: translateY(14px);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }
    .card-grid.anim > .in-view { opacity: 1; transform: none; }
    .card-grid.anim > *:nth-child(2) { transition-delay: 0.06s; }
    .card-grid.anim > *:nth-child(3) { transition-delay: 0.12s; }
    .card-grid.anim > *:nth-child(4) { transition-delay: 0.18s; }
}

.badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-strong);
    border: 1px solid rgb(160 122 53 / 0.25);
}

.badge.gold { background: var(--accent-soft); color: var(--terracotta); border-color: rgb(201 162 79 / 0.45); }

.price-tag { font-weight: 800; color: var(--ink); font-size: 0.92rem; }
.price-tag small { color: var(--muted); font-weight: 600; }

/* ---------- Filtr paneli ---------- */

.filter-bar {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
    margin-bottom: 1.8rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.search-row { display: flex; gap: 0.6rem; }

.search-row .input { flex: 1; }

.chip-row { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }

.chip-label { font-size: 0.78rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-right: 0.25rem; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fdfaf1;
    color: var(--ink-soft);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s;
}

.chip:hover { border-color: var(--brand); color: var(--brand-strong); }

.chip.active { background: var(--ink); border-color: var(--ink); color: var(--card); }

.chip.gold.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Formalar ---------- */

.input {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    font: inherit;
    color: var(--ink);
    background: #fdfaf1;
    transition: border 0.15s, box-shadow 0.15s;
}

.input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgb(160 122 53 / 0.4);
}

/* Kontrast: #fdfaf1 fonda kamida 4.5:1 nisbat uchun to'qroq rang */
.input::placeholder { color: #7a6f57; }

select.input { appearance: none; }

.field { margin-bottom: 1.1rem; }

.field label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.35rem; }

.field .help { font-size: 0.8rem; color: var(--muted); margin-top: 0.3rem; }

.field .errors { color: var(--danger); font-size: 0.85rem; margin-top: 0.3rem; }

.form-errors {
    background: var(--danger-soft);
    color: var(--danger);
    border-radius: var(--radius-sm);
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    margin-bottom: 1.1rem;
}

/* Auth kartalari */

.auth-wrap { display: grid; place-items: center; padding: 3.5rem 0; }

.auth-card {
    width: min(430px, 100%);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 2.2rem 2.2rem 2rem;
    box-shadow: var(--shadow-md);
}

.auth-card h1 {
    font-family: var(--font-display);
    font-size: 1.7rem;
    margin: 0 0 0.4rem;
    letter-spacing: -0.02em;
}

.auth-card .auth-sub { color: var(--muted); font-size: 0.95rem; margin: 0 0 1.5rem; }

.auth-alt { text-align: center; margin-top: 1.4rem; font-size: 0.92rem; color: var(--muted); }

/* Parolni ko'rsatish/yashirish tugmasi (static/js/password-toggle.js) */

.pw-wrap { position: relative; display: block; }

/* Ko'z tugmasi matn ustiga tushmasligi uchun o'ng tomondan joy ajratamiz */
.pw-wrap .input { padding-right: 3rem; }

.pw-toggle {
    position: absolute;
    top: 50%;
    right: 0.55rem;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    /* 44x44 — barmoq uchun minimal nishon (WCAG 2.2 AA, 2.5.8) */
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.pw-toggle:hover { color: var(--ink); background: rgba(0, 0, 0, 0.04); }

.pw-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Parol talablari ro'yxati (reset/change sahifalari) */

.pw-hints {
    margin: -0.4rem 0 1.1rem;
    padding: 0.75rem 0.95rem;
    background: var(--gold-soft, #f4e9d0);
    border-radius: var(--radius-sm);
    font-size: 0.83rem;
    line-height: 1.55;
    color: var(--ink);
}

.pw-hints ul { margin: 0.35rem 0 0; padding-left: 1.15rem; }

/* "yoki" ajratuvchisi — Google tugmasi ustida */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 1.3rem 0;
    color: var(--muted);
    font-size: 0.85rem;
}
.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

/* Google bilan kirish — oq tugma, rasmiy "G" logotip bilan */
.btn-google {
    background: #fff;
    color: var(--navy);
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
}
.btn-google:hover {
    border-color: rgb(30 42 74 / 0.3);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: var(--navy);
}

.otp-input {
    text-align: center;
    font-size: 1.6rem;
    letter-spacing: 0.6em;
    font-weight: 800;
    padding: 0.8rem 0.5rem 0.8rem 1.1rem;
}

/* ---------- Detal sahifa ---------- */

.detail-hero {
    position: relative;
    color: #fff;
    padding: 4.5rem 0 2.5rem;
    background-size: cover;
    background-position: center;
    background-color: #6b5637;
}

/* Haqiqiy <img> hero muqova — CSS fon o'rniga (LCP/SEO) */
.detail-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgb(46 36 21 / 0.25), rgb(46 36 21 / 0.75));
    z-index: 1; /* qoraytiruvchi qatlam rasm ustida turadi */
}

.detail-hero .container { position: relative; z-index: 1; }

.breadcrumbs { font-size: 0.85rem; margin-bottom: 1rem; }
.breadcrumbs a { color: rgb(246 236 212 / 0.78); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs span { color: rgb(246 236 212 / 0.55); margin: 0 0.4rem; }

.detail-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.detail-hero .detail-sub { font-size: 1.05rem; color: rgb(246 236 212 / 0.88); max-width: 40rem; margin: 0 0 1rem; }

.detail-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.detail-badges .badge { background: rgb(246 236 212 / 0.18); backdrop-filter: blur(6px); color: #f6ecd4; border-color: transparent; }

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    padding: 2.5rem 0 4rem;
    align-items: start;
}

.prose { font-size: 1.03rem; color: var(--ink-soft); }
.prose h2 { font-family: var(--font-display); color: var(--ink); letter-spacing: -0.01em; }

.info-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.2rem;
}

.info-card h3 { margin: 0 0 0.9rem; font-size: 1.02rem; font-family: var(--font-display); }

.info-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--line);
    font-size: 0.93rem;
}

.info-row:last-child { border-bottom: 0; }

.info-row .k { color: var(--muted); }
.info-row .v { font-weight: 700; text-align: right; }

.map-link {
    display: block;
    text-align: center;
    background: var(--brand-soft);
    color: var(--brand-strong);
    font-weight: 800;
    padding: 0.7rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    margin-top: 0.9rem;
}

.map-link:hover { background: var(--ink); color: var(--card); }

/* ---------- Place galereya karuseli (place-gallery.js) ---------- */

.pg { margin: 1.5rem 0; outline: none; }
.pg:focus-visible { border-radius: var(--radius); box-shadow: 0 0 0 3px var(--turquoise-soft); }

.pg-viewport {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--sand);
    box-shadow: var(--shadow-sm);
    touch-action: pan-y; /* vertikal scroll saqlanadi, gorizontal swipe karuselga */
}

.pg-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.33, 1, 0.68, 1);
    will-change: transform;
}

.pg-slide {
    flex: 0 0 100%;
    margin: 0;
    position: relative;
    /* CLS bo'lmasin: balandlik rasm yuklanishidan oldin ham band */
    aspect-ratio: 16 / 10;
}

.pg-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    user-select: none;
    -webkit-user-drag: none;
}

.pg-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 1.6rem 1.2rem 0.7rem;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
    background: linear-gradient(transparent, rgb(20 16 8 / 0.65));
    pointer-events: none;
}

.pg-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    border: none;
    border-radius: 50%;
    background: rgb(255 253 247 / 0.88);
    color: var(--ink);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: background 0.2s, transform 0.2s;
    z-index: 2;
}
.pg-arrow:hover { background: var(--card); transform: translateY(-50%) scale(1.06); }
.pg-prev { left: 0.8rem; }
.pg-next { right: 0.8rem; }

.pg-counter {
    position: absolute;
    top: 0.8rem; right: 0.9rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: rgb(20 16 8 / 0.55);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    z-index: 2;
}

.pg-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.8rem;
}
.pg-dot {
    width: 9px; height: 9px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--line);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.pg-dot:hover { background: var(--gold); }
.pg-dot.is-active { background: var(--brand); transform: scale(1.25); }

.pg-empty {
    margin: 1.5rem 0;
    padding: 2rem 1.5rem;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: var(--card);
    color: var(--muted);
    text-align: center;
    font-weight: 600;
}

/* Lightbox */
body.pg-lb-open { overflow: hidden; }
.pg-lightbox {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: grid;
    place-items: center;
    background: rgb(14 12 6 / 0.92);
    padding: 2.5rem 1rem;
}
.pg-lb-img {
    max-width: min(1200px, 94vw);
    max-height: 82vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
}
.pg-lb-close {
    position: absolute;
    top: 0.9rem; right: 1.1rem;
    width: 44px; height: 44px;
    border: none;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.12);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 2;
}
.pg-lb-close:hover { background: rgb(255 255 255 / 0.25); }
.pg-lb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px; height: 46px;
    border: none;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.12);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 2;
}
.pg-lb-arrow:hover { background: rgb(255 255 255 / 0.25); }
.pg-lb-prev { left: 1rem; }
.pg-lb-next { right: 1rem; }
.pg-lb-caption {
    position: absolute;
    left: 50%;
    bottom: 2.6rem;
    transform: translateX(-50%);
    max-width: 90vw;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 1px 4px rgb(0 0 0 / 0.6);
}
.pg-lb-counter {
    position: absolute;
    left: 50%;
    bottom: 1.1rem;
    transform: translateX(-50%);
    color: rgb(255 255 255 / 0.75);
    font-size: 0.82rem;
    font-weight: 700;
}

@media (max-width: 640px) {
    .pg-slide { aspect-ratio: 4 / 3; }
    .pg-arrow { width: 36px; height: 36px; }
    .pg-prev { left: 0.5rem; }
    .pg-next { right: 0.5rem; }
    .pg-lb-arrow { width: 40px; height: 40px; }
}

/* ---------- Place tavsifi — rich-text tipografiyasi ---------- */

.place-description { line-height: 1.75; }
.place-description p { margin: 0.75rem 0; }
.place-description h2,
.place-description h3,
.place-description h4 {
    font-family: var(--font-display);
    color: var(--ink);
    letter-spacing: -0.01em;
    margin: 1.6rem 0 0.6rem;
}
.place-description h2 { font-size: 1.55rem; }
.place-description h3 { font-size: 1.3rem; }
.place-description h4 { font-size: 1.12rem; }
.place-description ul,
.place-description ol { margin: 0.75rem 0; padding-left: 1.5rem; }
.place-description li { margin: 0.35rem 0; }
.place-description blockquote {
    margin: 1.2rem 0;
    padding: 0.8rem 1.2rem;
    border-left: 4px solid var(--gold);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--accent-soft);
    color: var(--ink-soft);
    font-style: italic;
}
.place-description blockquote p { margin: 0.3rem 0; }
.place-description a { color: var(--turquoise); font-weight: 600; }
.place-description hr { border: none; border-top: 1px solid var(--line); margin: 1.5rem 0; }
.place-description img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}
.place-description figure { margin: 1.2rem 0; }
.place-description figure.image { text-align: center; }
.place-description figure.image-style-side { float: right; max-width: 48%; margin: 0.4rem 0 0.8rem 1.2rem; }
.place-description figcaption {
    margin-top: 0.4rem;
    color: var(--muted);
    font-size: 0.88rem;
    text-align: center;
}
/* CKEditor jadvalni <figure class="table"> ichiga o'raydi — keng jadval
   sahifani emas, o'z konteynerini scroll qilsin */
.place-description figure.table { overflow-x: auto; margin: 1.2rem 0; }
.place-description table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    font-size: 0.95rem;
}
.place-description th,
.place-description td {
    padding: 0.6rem 0.9rem;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}
.place-description th {
    background: var(--brand-soft);
    color: var(--ink);
    font-weight: 700;
}

/* ---------- Xususiyatlar — bento grid (bosh sahifa) ---------- */

.section-head-stack { display: block; }
.section-sub { margin: 0.4rem 0 0; color: var(--muted); max-width: 52ch; }

.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.3rem; }

.bento-card {
    position: relative;
    display: flex;
    flex-direction: column;
    grid-column: span 6;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem;
    box-shadow: var(--shadow-sm);
    color: inherit;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.5s ease;
}

.bento-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.bento-card:hover .bento-icon { transform: scale(1.08); }
.bento-card:hover .bento-cta i { transform: translateX(4px); }

/* Umumiy scroll-reveal — JS [data-reveal] elementlarga .reveal qo'shadi */
@media (prefers-reduced-motion: no-preference) {
    .reveal { opacity: 0; }
    .reveal.is-visible { opacity: 1; animation: rise-in 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
}

@keyframes rise-in {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

.bento-hero { grid-column: span 7; grid-row: span 2; }
.bento-wide { grid-column: span 12; }

.bento-icon {
    width: 56px;
    height: 56px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(160deg, var(--accent-soft), #eeddb4);
    border: 1px solid rgb(201 162 79 / 0.35);
    color: var(--brand-strong);
    margin-bottom: 1rem;
    transition: transform 0.25s ease;
}

.bento-icon svg { width: 28px; height: 28px; }

.bento-card h3 { margin: 0 0 0.35rem; font-size: 1.2rem; font-family: var(--font-display); }
.bento-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.bento-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    margin-top: 0.9rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--terracotta);
}

.bento-cta { margin-top: auto; padding-top: 0.9rem; font-weight: 700; font-size: 0.92rem; color: var(--brand-strong); }
.bento-cta i { display: inline-block; font-style: normal; transition: transform 0.25s ease; }

/* Qahramon karta — AI marshrut: to'q navy fon, sahifadagi yagona magnit */
.bento-hero {
    background:
        radial-gradient(28rem 16rem at 100% 0%, rgb(201 162 79 / 0.22), transparent 65%),
        linear-gradient(155deg, #26335a, #16203a);
    border-color: rgb(30 42 74 / 0.6);
    color: #f4f0e4;
}

.bento-hero p { color: rgb(246 236 212 / 0.72); }
.bento-hero .bento-icon { background: rgb(246 236 212 / 0.1); border-color: rgb(201 162 79 / 0.45); color: var(--accent); }
.bento-hero .bento-meta { color: var(--accent); }

.badge-ai {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.72rem;
    font-weight: 800;
    color: rgb(246 236 212 / 0.85);
    background: rgb(246 236 212 / 0.08);
    border: 1px solid rgb(201 162 79 / 0.45);
    padding: 0.2rem 0.6rem 0.2rem 0.2rem;
    border-radius: 999px;
}

.badge-ai b { background: var(--accent); color: #241b0e; border-radius: 999px; padding: 0.1rem 0.5rem; }

/* Mini chat-sahna — mahsulotni va'da qilmasdan ko'rsatamiz */
.ai-demo { display: flex; flex-direction: column; gap: 0.55rem; margin: 1.2rem 0 0.3rem; }

.chat-bubble {
    max-width: 85%;
    font-size: 0.85rem;
    line-height: 1.45;
    padding: 0.55rem 0.85rem;
    border-radius: 14px;
    opacity: 0;
    animation: chat-loop 9s infinite;
}

.chat-user {
    align-self: flex-end;
    background: var(--accent);
    color: #241b0e;
    font-weight: 600;
    border-bottom-right-radius: 4px;
}

.chat-typing,
.chat-plan {
    align-self: flex-start;
    background: rgb(246 236 212 / 0.1);
    border: 1px solid rgb(246 236 212 / 0.12);
    border-bottom-left-radius: 4px;
}

.chat-typing { display: flex; gap: 0.3rem; padding: 0.7rem 0.85rem; animation-name: chat-loop-typing; }
.chat-typing i { width: 6px; height: 6px; border-radius: 50%; background: rgb(246 236 212 / 0.6); animation: chat-dot 1s infinite; }
.chat-typing i:nth-child(2) { animation-delay: 0.15s; }
.chat-typing i:nth-child(3) { animation-delay: 0.3s; }

.chat-plan { display: flex; flex-direction: column; gap: 0.15rem; animation-name: chat-loop-plan; }
.chat-plan b { color: var(--accent); font-size: 0.8rem; }
.chat-plan span { color: rgb(246 236 212 / 0.85); }

@keyframes chat-loop {
    0% { opacity: 0; transform: translateY(6px); }
    5%, 92% { opacity: 1; transform: none; }
    98%, 100% { opacity: 0; }
}

@keyframes chat-loop-typing {
    0%, 8% { opacity: 0; transform: translateY(6px); }
    13%, 34% { opacity: 1; transform: none; }
    39%, 100% { opacity: 0; }
}

@keyframes chat-loop-plan {
    0%, 36% { opacity: 0; transform: translateY(6px); }
    42%, 92% { opacity: 1; transform: none; }
    98%, 100% { opacity: 0; }
}

@keyframes chat-dot {
    0%, 100% { opacity: 0.35; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-2px); }
}

/* Keng karta — inklyuziv filtrlar: gorizontal, chip'lar bilan */
.bento-wide { flex-direction: row; align-items: center; gap: 1.3rem; flex-wrap: wrap; }
.bento-wide .bento-icon { margin-bottom: 0; }
.bento-wide-body { flex: 1 1 240px; }

.bento-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.bento-chips a {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-strong);
    text-decoration: none;
    background: var(--accent-soft);
    border: 1px solid rgb(201 162 79 / 0.4);
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    transition: background 0.15s, transform 0.15s;
}

.bento-chips a:hover { background: #eeddb4; transform: translateY(-2px); }

@media (max-width: 900px) {
    .bento-card, .bento-hero, .bento-wide { grid-column: span 12; grid-row: auto; }
}

/* ---------- AI rejalash — alohida sahna (bosh sahifa) ---------- */

.ai-spotlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.ai-spotlight-copy h2 {
    font-family: var(--font-display);
    font-size: var(--text-h2);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
}

.ai-spotlight-copy .section-sub { max-width: 30rem; }

.ai-meta {
    display: flex;
    gap: 0.5rem 1.4rem;
    flex-wrap: wrap;
    margin: 1.3rem 0 2rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy-soft);
}

.ai-chat-panel {
    background:
        radial-gradient(24rem 14rem at 100% 0%, rgb(201 162 79 / 0.2), transparent 65%),
        linear-gradient(155deg, #26335a, #16203a);
    border: 1px solid rgb(201 162 79 / 0.25);
    border-radius: 24px;
    padding: 1.8rem;
    box-shadow: var(--shadow-lg);
}

@media (max-width: 900px) {
    .ai-spotlight { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- City Pass band — sahifadagi yagona to'q bo'lim ---------- */

.citypass-band {
    background:
        radial-gradient(40rem 20rem at 85% 20%, rgb(201 162 79 / 0.18), transparent 60%),
        linear-gradient(155deg, #26335a, #141d33);
    color: #f4f0e4;
    padding: 5rem 0;
}

.citypass-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.citypass-band .section-kicker { color: var(--accent); }

.citypass-band h2 {
    font-family: var(--font-display);
    font-size: var(--text-h2);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 1rem;
}

.citypass-band p { color: rgb(244 240 228 / 0.75); max-width: 34rem; margin: 0; }

.citypass-perks {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0;
    margin: 1.4rem 0 2rem;
}

.citypass-perks li {
    border: 1px solid rgb(201 162 79 / 0.4);
    background: rgb(246 236 212 / 0.08);
    border-radius: 999px;
    padding: 0.4rem 0.95rem;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Oltin karta maketi — hover'da tekislanib ko'tariladi */
.pass-card {
    aspect-ratio: 1.586;
    width: min(400px, 100%);
    margin-left: auto;
    border-radius: 20px;
    background: linear-gradient(135deg, #e3c06c, #b8862f 70%, #9a6b2f);
    color: #241a0e;
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 30px 60px -18px rgb(0 0 0 / 0.5), inset 0 1px 0 rgb(255 255 255 / 0.35);
    transform: rotate(-3deg);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pass-card:hover { transform: rotate(0deg) translateY(-6px); }

.pass-kind {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.7rem;
    font-weight: 800;
    opacity: 0.75;
    margin-bottom: 0.3rem;
}

.pass-brand { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; }

.pass-foot { display: flex; justify-content: space-between; align-items: flex-end; }

.pass-days b { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.pass-days span { font-size: 0.85rem; font-weight: 700; opacity: 0.8; }

.pass-qr {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background-color: #f6ecd4;
    background-image:
        repeating-linear-gradient(0deg, #241a0e 0 4px, transparent 4px 8px),
        repeating-linear-gradient(90deg, #241a0e 0 4px, transparent 4px 8px);
    background-blend-mode: multiply;
    box-shadow: inset 0 0 0 4px #f6ecd4;
}

@media (max-width: 900px) {
    .citypass-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .pass-card { margin: 0 auto; }
}

/* ---------- Bosh sahifa FAQ va yakuniy CTA ---------- */

.faq-wrap { max-width: 760px; margin: 0 auto; }

.cta-band {
    position: relative;
    overflow: hidden;
    background: var(--sand);
    border-top: 1px solid var(--line);
    text-align: center;
    padding: 5.5rem 0;
}

.cta-band::before {
    /* Naqsh-medalyon — markazda juda yengil punktuatsiya */
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cpath d='M36 6l7 17 17 7-17 7-7 17-7-17-17-7 17-7z' fill='none' stroke='%237d5c22' stroke-width='1.4'/%3E%3C/svg%3E");
    background-size: 72px 72px;
    -webkit-mask-image: radial-gradient(38rem 20rem at 50% 50%, black, transparent 72%);
    mask-image: radial-gradient(38rem 20rem at 50% 50%, black, transparent 72%);
    pointer-events: none;
}

.cta-band .container { position: relative; }

.cta-band h2 {
    font-family: var(--font-display);
    font-size: var(--text-h2);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.8rem;
}

.cta-band p { color: var(--muted); margin: 0 auto 2rem; max-width: 36rem; line-height: 1.65; }

/* ---------- Mobil: karta qatorlari gorizontal rail bo'ladi ---------- */

@media (max-width: 640px) {
    .card-grid.rail-mobile {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        margin-inline: -4vw;
        padding-inline: 4vw;
        padding-bottom: 0.6rem;
        scrollbar-width: none;
    }
    .card-grid.rail-mobile::-webkit-scrollbar { display: none; }
    .card-grid.rail-mobile > * { flex: 0 0 80%; scroll-snap-align: start; }
}

@media (prefers-reduced-motion: reduce) {
    .chat-bubble { animation: none; opacity: 1; transform: none; }
    .chat-typing { display: none; }
    .chat-typing i { animation: none; }
    .bento-card, .bento-icon, .bento-cta i { transition: none; }
}

/* ---------- Profil ---------- */

.profile-layout { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; align-items: start; }

.avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--brand), #d3ab55);
    color: #fff;
    font-weight: 800;
    font-size: 1.3rem;
}

.profile-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.profile-head h1 { margin: 0; font-size: 1.4rem; font-family: var(--font-display); }
.profile-head p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.log-list { list-style: none; margin: 0; padding: 0; font-size: 0.88rem; }
.log-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-bottom: 1px dashed var(--line); }
.log-list li:last-child { border-bottom: 0; }
.log-list .when { color: var(--muted); white-space: nowrap; }

.verify-banner {
    background: var(--accent-soft);
    border: 1px solid #d9bd7d;
    color: #6f5420;
    border-radius: var(--radius-sm);
    padding: 0.8rem 1.1rem;
    margin-bottom: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.93rem;
}

/* ---------- Xabarlar (toast) ---------- */

.messages { list-style: none; padding: 0; margin: 1.2rem 0 0; }

.message {
    padding: 0.75rem 1.15rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.93rem;
    background: var(--ok-soft);
    color: #4c5a23;
    border: 1px solid #ccd49e;
    animation: slide-in 0.25s ease;
}

.message.error { background: var(--danger-soft); color: var(--danger); border-color: #e6bdb1; }
.message.warning { background: var(--accent-soft); color: #6f5420; border-color: #e2ca8e; }

@keyframes slide-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Sahifalash ---------- */

.pagination { display: flex; gap: 0.4rem; justify-content: center; margin-top: 2.2rem; }

.pagination a, .pagination span {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink-soft);
    font-weight: 700;
    text-decoration: none;
}

.pagination a:hover { border-color: var(--brand); color: var(--brand-strong); }
.pagination .ellipsis { border: 0; background: transparent; color: var(--muted); }
.pagination .current { background: var(--ink); border-color: var(--ink); color: var(--card); }

/* ---------- Bo'sh holat ---------- */

.empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--muted);
    background: var(--card);
    border: 1.5px dashed var(--line);
    border-radius: var(--radius);
}

.empty .glyph { font-size: 2.6rem; margin-bottom: 0.6rem; }
.empty h3 { color: var(--ink); margin: 0 0 0.3rem; font-family: var(--font-display); }
.empty p { margin: 0; }

/* ---------- Futer ---------- */

.site-footer {
    background: #16203a;
    color: rgb(237 231 214 / 0.72);
    padding: 2.8rem 0 2rem;
    margin-top: auto;
}

.footer-grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }

.site-footer .logo { color: #f6ecd4; font-size: 1.3rem; }
.site-footer .logo span { color: #d3ab55; }

.site-footer p { font-size: 0.9rem; max-width: 22rem; }

.footer-nav { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-nav a { color: rgb(237 227 205 / 0.72); text-decoration: none; font-size: 0.92rem; }
.footer-nav a:hover { color: #e9c876; }

.footer-bottom {
    border-top: 1px solid rgb(237 227 205 / 0.14);
    margin-top: 2rem;
    padding-top: 1.2rem;
    font-size: 0.82rem;
    color: rgb(237 227 205 / 0.45);
}

/* ---------- Bron paneli va sharhlar ---------- */

.booking-card { position: sticky; top: 76px; }

.booking-price {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--ink);
}

.booking-price small { font-size: 0.85rem; font-family: var(--font-body); font-weight: 600; color: var(--muted); }

.booking-note { font-size: 0.8rem; color: var(--muted); text-align: center; margin: 0.7rem 0 0; }

.included-list { list-style: none; padding: 0; margin: 0.5rem 0 1rem; }
.included-list li { padding: 0.3rem 0; color: var(--ink-soft); }

.review {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 1rem 1.2rem;
    margin-bottom: 0.9rem;
}

.review-head { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 0.3rem; }
.review .stars { color: var(--brand); letter-spacing: 0.1em; }
.review-date { color: var(--muted); font-size: 0.85rem; }
.review p { margin: 0.3rem 0 0; color: var(--ink-soft); }

.review-form-card { margin-bottom: 1.4rem; }

/* Bronlar ro'yxati */

.booking-list { display: flex; flex-direction: column; gap: 0.9rem; }

.booking-row {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem 1.3rem;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
}

.booking-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    color: #fff;
    flex-shrink: 0;
}

.booking-info { flex: 1; min-width: 180px; }
.booking-title { font-weight: 800; color: var(--ink); text-decoration: none; }
.booking-title:hover { color: var(--brand-strong); }
.booking-sub { font-size: 0.87rem; color: var(--muted); margin-top: 0.15rem; }
.booking-total { font-weight: 800; white-space: nowrap; }
.booking-total small { color: var(--muted); font-weight: 600; }
.booking-actions { display: flex; gap: 0.5rem; align-items: center; }

.status-pill {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.status-new { background: var(--accent-soft); color: #6f5420; }
.status-confirmed { background: var(--brand-soft); color: var(--brand-strong); }
.status-completed { background: var(--ok-soft); color: #4c5a23; }
.status-cancelled { background: #e5dcc6; color: var(--muted); text-decoration: line-through; }

/* ---------- Hamkor kabineti ---------- */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.1rem 1.3rem;
    box-shadow: var(--shadow-sm);
}

.stat-card b {
    display: block;
    font-family: var(--font-display);
    font-size: 1.7rem;
    letter-spacing: -0.02em;
}

.stat-card span { font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.stat-card.accent b { color: var(--terracotta); }
.stat-card.ok b { color: var(--brand-strong); }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1.2rem;
}

.form-grid .field-wide { grid-column: 1 / -1; }
.form-grid .field-checkbox label { display: inline; margin-left: 0.4rem; }

.review-reply {
    margin-top: 0.7rem;
    padding: 0.7rem 1rem;
    background: var(--brand-soft);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
}

.review-reply p { margin: 0.2rem 0 0; }

@media (max-width: 640px) {
    .form-grid { grid-template-columns: 1fr; }
}

/* ---------- City Pass, pasport, SOS ---------- */

/* SOS — xavfsizlik havolasi: nav ichida alohida, chegarali qizil pill */
.nav a.sos-link {
    color: var(--danger);
    font-weight: 800;
    border: 1px solid rgb(168 58 42 / 0.35);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    margin-left: 0.35rem;
}
.nav a.sos-link::after { display: none; }
.nav a.sos-link:hover { background: var(--danger-soft); color: var(--danger); }

.tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.4rem;
    align-items: stretch;
}

.tier-card {
    position: relative;
    background: var(--card);
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    padding: 1.8rem 1.6rem 1.6rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.tier-card.featured { border-color: var(--accent); box-shadow: var(--shadow-md); background: linear-gradient(180deg, #fbf6e8, var(--card)); }

.tier-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #d3ab55, var(--brand));
    color: #2e2415;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.25rem 0.9rem;
    border-radius: 999px;
    white-space: nowrap;
}

.tier-card h3 { margin: 0 0 0.4rem; font-family: var(--font-display); font-size: 1.25rem; }

.tier-price { font-family: var(--font-display); font-size: 2rem; font-weight: 800; margin-bottom: 0.8rem; }
.tier-price small { font-size: 0.9rem; color: var(--muted); font-family: var(--font-body); }

.tier-card .included-list { text-align: left; font-size: 0.9rem; }

.qr-box {
    display: grid;
    place-items: center;
    background: #fdfaf1;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    padding: 1.2rem;
    margin: 1.2rem 0;
}

.qr-box svg { width: min(240px, 70vw); height: auto; }

.check-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 2.6rem;
    font-weight: 800;
    color: #fff;
}

.check-icon.ok { background: #6b7a2f; }
.check-icon.bad { background: var(--danger); }

.badge-grid, .stamp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.badge-card, .stamp-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.2rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.stamp-card { transition: transform 0.15s, box-shadow 0.15s; }
.stamp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.badge-card.locked { opacity: 0.55; filter: grayscale(0.6); }

.badge-emoji { font-size: 2.2rem; }

.stamp-emoji {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    color: #fff;
    border: 3px dashed rgb(255 255 255 / 0.6);
    outline: 2px solid var(--line);
}

.badge-card span, .stamp-card span { font-size: 0.8rem; color: var(--muted); }

/* ---------- SOS / Favqulodda yordam ---------- */
/* Favqulodda ranglar — xalqaro kodlar, faqat shu sahifada ishlatiladi */
.sos-page {
    --sos-red: #d92d20;
    --sos-red-dark: #b42318;
    --sos-blue: #2e6fd8;
    --sos-orange: #e2660c;
    --sos-teal: #0e9384;
    --sos-green: #12855f;
}

.sos-status-row {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0.8rem;
}

.sos-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    background: var(--card);
    border: 1px solid var(--line);
    font-size: 0.88rem;
    font-weight: 600;
}

.sos-chip.ok { border-color: var(--sos-green); color: var(--sos-green); }
.sos-chip.warn { border-color: var(--sos-orange); color: var(--sos-orange); }

/* --- Hold-to-SOS moduli --- */
.sos-hold-card {
    background: var(--card);
    border: 1.5px solid var(--danger-soft);
    border-radius: var(--radius);
    padding: 1.6rem 1.2rem 1.4rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    margin-top: 1.4rem;
}

.sos-hold-wrap { position: relative; width: 168px; height: 168px; margin: 0.4rem auto 0.8rem; }

.sos-hold-ring {
    position: absolute;
    inset: 0;
    transform: rotate(-90deg);
    pointer-events: none;
}

.sos-hold-ring circle { fill: none; stroke-width: 7; }
.sos-hold-ring .ring-track { stroke: var(--danger-soft); }
.sos-hold-ring .ring-fill {
    stroke: var(--sos-red);
    stroke-linecap: round;
    stroke-dasharray: 477;   /* 2πr, r=76 */
    stroke-dashoffset: 477;
}

.sos-hold-btn {
    position: absolute;
    inset: 14px;
    border-radius: 50%;
    border: none;
    background: radial-gradient(circle at 35% 30%, #ef5350, var(--sos-red) 60%, var(--sos-red-dark));
    color: #fff;
    font-family: var(--font-body);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    cursor: pointer;
    box-shadow: 0 10px 28px -8px rgb(217 45 32 / 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.1rem;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.12s;
}

.sos-hold-btn small { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; opacity: 0.9; }
.sos-hold-btn:active { transform: scale(0.96); }
.sos-hold-btn:focus-visible { outline: 3px solid var(--sos-blue); outline-offset: 4px; }
.sos-hold-btn[disabled] { cursor: default; filter: saturate(0.6); }

@keyframes sos-pulse {
    0% { box-shadow: 0 0 0 0 rgb(217 45 32 / 0.35); }
    70% { box-shadow: 0 0 0 22px rgb(217 45 32 / 0); }
    100% { box-shadow: 0 0 0 0 rgb(217 45 32 / 0); }
}

.sos-hold-btn.idle { animation: sos-pulse 2.4s ease-out infinite; }

.sos-hold-hint { font-size: 0.95rem; color: var(--ink-soft); margin: 0; min-height: 1.5em; }
.sos-hold-hint.sending { color: var(--sos-green); font-weight: 700; }

.sos-note-toggle { margin-top: 0.9rem; }
.sos-note-toggle summary {
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--muted);
    list-style: none;
}
.sos-note-toggle summary::-webkit-details-marker { display: none; }

/* --- Qo'ng'iroq kartalari: chap rang-chiziq + katta raqam + call pill --- */
.sos-call-list { display: grid; grid-template-columns: 1fr; gap: 0.8rem; margin-top: 1.4rem; }
@media (min-width: 560px) {
    .sos-call-list { grid-template-columns: 1fr 1fr; }
    .sos-call-list .sos-call-card.wide { grid-column: 1 / -1; }
}

.sos-call-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-left: 6px solid var(--svc, var(--danger));
    border-radius: var(--radius-sm);
    padding: 0.9rem 1rem;
    text-decoration: none;
    color: inherit;
    min-height: 72px;
    transition: transform 0.12s, box-shadow 0.15s;
}

.sos-call-card:active { transform: scale(0.985); }
.sos-call-card:hover { box-shadow: var(--shadow-md); }
.sos-call-card:focus-visible { outline: 3px solid var(--svc, var(--danger)); outline-offset: 2px; }

.sos-call-card .svc-icon { font-size: 1.7rem; line-height: 1; }

.sos-call-card .svc-body { flex: 1; min-width: 0; }
.sos-call-card .svc-body b {
    display: block;
    font-size: 2rem;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    color: var(--svc, var(--danger));
}
.sos-call-card .svc-body span { display: block; font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.sos-call-card .svc-body em { display: block; font-style: normal; font-size: 0.8rem; color: var(--muted); }

.sos-call-card .svc-call {
    flex-shrink: 0;
    background: var(--svc, var(--danger));
    color: #fff;
    border-radius: 999px;
    padding: 0.5rem 0.95rem;
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
}

/* --- Joylashuv ulashish --- */
.sos-share-row { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.9rem; }

.sos-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.05rem;
    border-radius: 999px;
    border: 1.5px solid var(--line);
    background: var(--card);
    color: var(--ink);
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    cursor: pointer;
    min-height: 44px;
    transition: transform 0.12s, border-color 0.15s;
}

.sos-share-btn:active { transform: scale(0.96); }
.sos-share-btn:hover { border-color: var(--brand); }

.sos-loc-status { margin-top: 0.8rem; font-size: 0.95rem; }
.sos-loc-status.ok { color: var(--sos-green); font-weight: 600; }
.sos-loc-status.err { color: var(--sos-red-dark); font-weight: 600; }

/* --- Yaqin-atrofda yordam --- */
.sos-nearby { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.7rem; margin-top: 0.9rem; }

.sos-nearby a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.8rem 0.6rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--card);
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
    font-size: 0.92rem;
    min-height: 52px;
}

.sos-nearby a:active { transform: scale(0.97); }

/* --- Kontaktlar: bosiladigan qatorlar --- */
.sos-contact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 0.2rem;
    border-bottom: 1px dashed var(--line);
    text-decoration: none;
    color: inherit;
    min-height: 52px;
}

.sos-contact-row:last-child { border-bottom: none; }
.sos-contact-row .k { color: var(--ink); font-size: 0.95rem; }
.sos-contact-row .v {
    color: var(--brand-strong);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* --- Favqulodda iboralar --- */
.sos-phrase { padding: 0.7rem 0.2rem; border-bottom: 1px dashed var(--line); }
.sos-phrase:last-child { border-bottom: none; }
.sos-phrase b { display: block; font-size: 1.05rem; }
.sos-phrase span { font-size: 0.88rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
    .sos-hold-btn.idle { animation: none; }
    .sos-hold-btn, .sos-call-card, .sos-share-btn { transition: none; }
}

.pay-options { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 1rem; }

/* ---------- Analitika dashboard ---------- */

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-top: 1.2rem;
}

@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 180px;
    padding-top: 1.2rem;
}

.bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    gap: 4px;
    min-width: 0;
}

.bar {
    width: 100%;
    max-width: 34px;
    background: linear-gradient(180deg, #d3ab55, var(--brand));
    border-radius: 6px 6px 2px 2px;
    min-height: 3px;
    transition: height 0.3s ease;
}

.bar-value { font-size: 0.72rem; font-weight: 800; color: var(--brand-strong); height: 1em; }
.bar-label { font-size: 0.66rem; color: var(--muted); white-space: nowrap; }

.hbar-row {
    display: grid;
    grid-template-columns: 160px 1fr 2.5rem;
    align-items: center;
    gap: 0.7rem;
    padding: 0.4rem 0;
    font-size: 0.9rem;
}

.hbar-label { color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.hbar-track { background: rgb(221 207 174 / 0.5); border-radius: 999px; height: 12px; overflow: hidden; }

.hbar { height: 100%; background: linear-gradient(90deg, var(--brand-strong), #d3ab55); border-radius: 999px; min-width: 4px; }
.hbar.gold { background: linear-gradient(90deg, var(--terracotta), #e9c876); }

.hbar-row b { text-align: right; }

/* ---------- Statik sahifalar (About, FAQ, Aloqa, huquqiy) ---------- */

.muted { color: var(--muted); }

.static-page { max-width: 760px; margin: 0 auto; }
.static-page .prose p { margin: 0.7rem 0; line-height: 1.7; }
.static-page .prose ul { line-height: 1.7; }

/* Huquqiy hujjat (maxfiylik siyosati) va akkauntni o'chirish */
.legal-dates { color: var(--muted); font-size: var(--text-small); margin: 0 0 var(--s-5); }
.legal-doc .prose h2 { font-size: clamp(1.35rem, 2.4vw, 1.6rem); margin: var(--s-7) 0 var(--s-3); }
.legal-doc .prose h3 { font-size: 1.08rem; color: var(--ink); margin: var(--s-5) 0 var(--s-2); }
.legal-doc .prose section { scroll-margin-top: var(--s-8); }
.legal-toc {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: var(--s-4) var(--s-5);
    margin: var(--s-5) 0;
}
.legal-doc .prose .legal-toc h2 { font-size: var(--text-h3); margin: 0 0 var(--s-2); }
.legal-toc ol { list-style: none; margin: 0; padding: 0; columns: 2 15rem; column-gap: var(--s-6); }
.legal-toc li { break-inside: avoid; }
.legal-toc a {
    display: flex;
    align-items: center;
    min-height: var(--tap-min);
    color: var(--ink-soft);
    text-decoration: none;
}
.legal-toc a:hover, .legal-toc a:focus-visible { color: var(--brand-strong); text-decoration: underline; }
.legal-facts { display: grid; grid-template-columns: max-content 1fr; gap: var(--s-2) var(--s-4); margin: var(--s-4) 0; }
.legal-facts dt { font-weight: 700; color: var(--ink); }
.legal-facts dd { margin: 0; }
.legal-table-wrap { overflow-x: auto; margin: var(--s-4) 0; }
.legal-table { width: 100%; border-collapse: collapse; font-size: var(--text-small); }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: var(--s-2) var(--s-3); border-bottom: 1px solid var(--line); }
.legal-table th { color: var(--ink); }
.legal-table td:last-child { white-space: nowrap; }
.legal-path { background: var(--accent-soft); border-radius: var(--radius-xs); padding: var(--s-3) var(--s-4); }
@media (max-width: 560px) {
    .legal-facts { grid-template-columns: 1fr; gap: 0; }
    .legal-facts dd { margin-bottom: var(--s-3); }
    .legal-table td:last-child { white-space: normal; }
}

.danger-zone { border-color: var(--danger-soft); margin-top: var(--s-6); }
.danger-zone .actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover, .btn-danger:focus-visible { background: #8c2f22; border-color: #8c2f22; color: #fff; }
.check-row { display: flex; align-items: flex-start; gap: var(--s-2); min-height: var(--tap-min); font-weight: 600; cursor: pointer; }
.check-row .check { flex: none; width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; accent-color: var(--danger); }
.account-delete-link { text-align: center; margin: var(--s-3) 0 0; font-size: var(--text-small); }
.account-delete-link a { color: var(--danger); }

.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--card);
    margin-bottom: 0.6rem;
    overflow: hidden;
}
.faq-item summary {
    cursor: pointer;
    padding: 0.9rem 1.1rem;
    font-weight: 700;
    color: var(--ink);
    list-style: none;
    position: relative;
    padding-right: 2.4rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--brand-strong);
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 1.1rem 1rem; color: var(--ink-soft); line-height: 1.65; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }

/* Xato sahifalari (404/500) */
.error-page { text-align: center; padding: 4rem 0 5rem; }
.error-code {
    font-family: var(--font-display);
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
    color: var(--brand-strong);
}
.error-page h1 { margin: 0.5rem 0 0.75rem; }
.error-page p { color: var(--ink-soft); max-width: 460px; margin: 0 auto 1.5rem; }

/* ---------- Moslashuvchanlik ---------- */

@media (max-width: 860px) {
    .detail-layout, .profile-layout { grid-template-columns: 1fr; }
    .hero-inner { padding: 3.5rem 0 4.5rem; }

    /* Mobil menyu: hamburger + header ostidan ochiladigan panel */
    .nav-toggle { display: flex; }
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0.15rem;
        margin: 0;
        padding: 0.75rem 1rem 1rem;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-sm);
    }
    .site-header.nav-open .nav { display: flex; }
    .nav a { padding: 0.7rem 0.9rem; border-radius: 12px; font-size: 1rem; }
    /* Vertikal panelda ostki chiziq emas — yengil qum fon faol holatni bildiradi */
    .nav a::after { display: none; }
    .nav a.active { background: var(--sand); }
    .nav a.sos-link { margin-left: 0; }
}

@media (max-width: 640px) {
    /* Mobil ritm: bo'limlar zichroq, header ixchamroq, sarlavha kichikroq */
    .logo img { height: 3rem; }
    .section { padding: 3rem 0; }
    .citypass-band { padding: 3.5rem 0; }
    .cta-band { padding: 3.5rem 0; }
    .hero-inner { padding: 2.5rem 0 3rem; }
    .hero h1 { font-size: clamp(2.1rem, 9vw, 2.6rem); }
    .bento-chips a { padding: 0.55rem 1rem; }
}

@media (max-width: 480px) {
    .header-inner { gap: 0.6rem; }
    .header-actions { gap: 0.4rem; }
    .header-actions .btn { padding: 0.4rem 0.7rem; font-size: 0.85rem; }
}

/* ---------- Lyuks navbar — shisha, 80px, oltin faol pill ---------- */

.site-header {
    background: rgb(255 253 247 / 0.82);
    backdrop-filter: blur(18px) saturate(1.3);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
    border-bottom: 1px solid rgb(201 154 52 / 0.18);
    box-shadow: 0 8px 30px -18px rgb(31 45 92 / 0.25);
}

.header-inner { min-height: 80px; padding: 0.5rem 0; }

.nav a { border-radius: 999px; transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease; }
.nav a:hover { transform: translateY(-1px); }

.nav a.active {
    background: linear-gradient(135deg, #c99a34, #b98222);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 10px 22px -12px rgb(185 130 34 / 0.6);
}

.nav a.active::after { display: none; }

.header-actions .btn { border-radius: 999px; }

@media (max-width: 640px) {
    .header-inner { min-height: 64px; }
}

/* ============================================================
   V2 · Faza 2 — Design System poydevori
   (1) Sensor nishonlar  (2) Skeleton yuklanish holatlari
   ============================================================ */

/* ---------- Sensor nishonlar (WCAG 2.5.8, min 44px) ----------
   Faqat sensorli qurilmalarda kengayadi — desktop zichligi saqlanadi.
   Vizual o'lcham emas, bosish maydoni kafolatlanadi. */
@media (pointer: coarse) {
    .btn,
    .chip {
        min-height: var(--tap-min);
    }

    .fav-btn,
    .nav-toggle {
        width: var(--tap-min);
        height: var(--tap-min);
    }

    .hero-dot {
        width: var(--tap-min);
        height: var(--tap-min);
    }

    /* Nuqta vizual kichik qoladi, bosish maydoni padding hisobiga o'sadi */
    .pg-dot {
        box-sizing: content-box;
        padding: 12px;
        background-clip: content-box;
    }
}

/* ---------- SVG ikonlar (FE2-5, templates/core/_icon.html) ----------
   Emoji o'rniga funksional UI ikonlari. O'lcham font-size'ga ergashadi. */
.ico {
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    flex-shrink: 0;
}
.ico-lg { width: 1.3em; height: 1.3em; }

/* Sevimli tugmalari: kontur → to'ldirilgan yurak */
.fav-btn .ico-heart { color: #fff; }
.fav-btn.is-fav .ico-heart,
.fav-inline.is-fav .ico-heart {
    color: var(--fav);
    fill: var(--fav);
}

/* ---------- Pastki mobil navigatsiya (FE2-2) ----------
   ≤860px'da (hamburger bilan bir chegarada) ko'rinadi.
   AI markazda — zarhal orb, doim bir teginda. */
.bottom-nav { display: none; }

@media (max-width: 860px) {
    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    }

    .bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 60;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        height: calc(64px + env(safe-area-inset-bottom, 0px));
        padding-bottom: env(safe-area-inset-bottom, 0px);
        background: rgb(255 253 247 / 0.94);
        backdrop-filter: blur(14px) saturate(1.2);
        -webkit-backdrop-filter: blur(14px) saturate(1.2);
        border-top: 1px solid var(--line);
    }

    .bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        min-height: var(--tap-min);
        font-size: 0.66rem;
        font-weight: 700;
        letter-spacing: 0.01em;
        color: var(--ink-soft);
        text-decoration: none;
    }

    .bottom-nav a svg { width: 22px; height: 22px; }
    .bottom-nav a.active { color: var(--brand-strong); }

    .bottom-nav .bn-ai { gap: 3px; }
    .bn-ai-orb {
        display: grid;
        place-items: center;
        width: var(--tap-min);
        height: var(--tap-min);
        margin-top: -20px;
        border-radius: var(--radius-pill);
        background: linear-gradient(135deg, var(--gold), var(--gold-strong));
        color: #fff;
        box-shadow: var(--shadow-md);
        border: 3px solid var(--card);
    }
    .bn-ai-orb svg { width: 20px; height: 20px; }
    .bottom-nav .bn-ai.active .bn-ai-orb {
        background: linear-gradient(135deg, var(--gold-strong), var(--brand-strong));
    }
}

/* Sarlavha qatori + yonidagi harakat tugmalari (FE3-2/FE3-3) */
.page-head-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--s-3);
    flex-wrap: wrap;
}

.page-head-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; }

.badge-distance {
    color: var(--turquoise);
    background: var(--turquoise-soft);
}

#show-distance.active {
    border-color: var(--turquoise);
    color: var(--turquoise);
}

/* Hero tezkor yo'nalish chiplari (FE3-4) */
.hero-quick {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
    margin-top: var(--s-4);
}
.hero-quick .chip {
    background: rgb(255 253 247 / 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* ---------- Xarita sahifasi (FE3-2 → map-audit) ----------
   Marker rangi har doim `--pin` o'zgaruvchisi orqali keladi (server
   `places/categories.py` registridan) — CSSda kategoriya nomi yo'q. */
.map-toolbar {
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
    margin-bottom: var(--s-3);
}
.map-toolbar .chip-row { margin: 0; }
.map-toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-3);
    flex-wrap: wrap;
}

/* Kategoriya chiplari: rangli ikon = ayni paytda legend (§21) */
.map-cats {
    display: flex;
    gap: var(--s-2);
    overflow-x: auto;
    scrollbar-width: none;
    /* Oxirgi chip kesilib qolmasin (§20) */
    padding: 2px var(--s-4) var(--s-2) 2px;
    scroll-padding-inline-end: var(--s-4);
}
.map-cats::-webkit-scrollbar { display: none; }
.map-cats .chip { flex: 0 0 auto; }
.map-cat-chip { display: inline-flex; align-items: center; gap: var(--s-2); }
.map-cat-chip.active { border-color: var(--cat-color); }
.map-cat-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--cat-color);
    flex: 0 0 auto;
}
.map-cat-svg { width: 13px; height: 13px; fill: #fff; }

.map-radius {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    flex-wrap: wrap;
}
.map-radius-label {
    font-size: var(--text-caption);
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.chip-sm {
    padding: 0.25rem 0.7rem;
    font-size: var(--text-caption);
}
.map-locate { flex: 0 0 auto; }

/* --- xarita + kartochka --- */
.map-shell { position: relative; }

.city-map {
    height: min(68vh, 640px);
    min-height: 380px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--sand);
}
.map-note { margin-top: var(--s-2); min-height: 1.2em; }

/* --- markerlar --- */
.map-pin-wrap { background: none; border: 0; }
.map-pin {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: var(--pin, #5c6584);
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgb(30 42 74 / 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.15s ease, height 0.15s ease;
}
.map-pin-icon {
    width: 17px;
    height: 17px;
    fill: #fff;
    transform: rotate(45deg);
}
.map-pin.is-selected {
    width: 44px;
    height: 44px;
    border-width: 3px;
    box-shadow: 0 0 0 4px rgb(201 162 79 / 0.45), 0 6px 14px rgb(30 42 74 / 0.4);
    z-index: 5;
}
.map-pin.is-selected .map-pin-icon { width: 22px; height: 22px; }

/* --- klaster --- */
.map-cluster-wrap { background: none; border: 0; }
.map-cluster {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    background: rgb(255 253 247 / 0.95);
    border: 2px solid var(--accent);
    box-shadow: 0 3px 10px rgb(30 42 74 / 0.25);
    line-height: 1;
}
.map-cluster b { font-size: 0.95rem; font-weight: 800; }
.map-cluster span {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}
.map-cluster-md { border-color: var(--brand); }
.map-cluster-md b { font-size: 1.05rem; }
.map-cluster-lg {
    border-color: var(--brand-strong);
    background: var(--brand-strong);
    color: #fff;
}
.map-cluster-lg span { color: rgb(255 255 255 / 0.8); }

/* --- foydalanuvchi nuqtasi (joy markerlaridan ataylab farqli) --- */
.map-user {
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #1a73e8;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px rgb(26 115 232 / 0.35), 0 2px 6px rgb(0 0 0 / 0.3);
}
.map-user-accuracy {
    stroke: #1a73e8;
    fill: #1a73e8;
    fill-opacity: 0.12;
}

/* --- joy kartochkasi --- */
.map-card {
    position: absolute;
    z-index: 500;         /* Leaflet paneli 400 */
    top: var(--s-4);
    right: var(--s-4);
    width: 340px;
    max-height: calc(100% - var(--s-6));
    overflow-y: auto;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    animation: map-card-in 0.18s ease-out;
}
@keyframes map-card-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.map-card-grabber { display: none; }
.map-card-close {
    position: absolute;
    top: var(--s-2);
    right: var(--s-2);
    z-index: 2;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 0;
    cursor: pointer;
    font-size: 1.3rem;
    line-height: 1;
    color: var(--ink);
    background: rgb(255 253 247 / 0.9);
    box-shadow: var(--shadow-sm);
}
.map-card-media {
    position: relative;
    height: 150px;
    background: var(--pin, var(--sand));
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
}
.map-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.map-card-glyph {
    position: absolute;
    left: var(--s-3);
    bottom: var(--s-3);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pin, var(--brand));
    border: 2px solid #fff;
}
.map-card-glyph-svg { width: 16px; height: 16px; fill: #fff; }
.map-card-media.is-empty .map-card-glyph {
    left: 50%;
    bottom: 50%;
    transform: translate(-50%, 50%) scale(1.6);
}
.map-card-body {
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
    padding: var(--s-3) var(--s-4) var(--s-4);
}
.map-card-title {
    margin: 0;
    font-size: 1.15rem;
    font-family: var(--font-display);
    color: var(--ink);
}
.map-card-cat {
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--s-2);
    font-size: var(--text-small);
    color: var(--ink-soft);
}
.map-card-cat-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--pin, var(--brand));
}
.map-card-cat-svg { width: 12px; height: 12px; fill: #fff; }
.map-card-meta { margin: 0; font-size: var(--text-small); color: var(--muted); }
.map-card-desc {
    margin: 0;
    font-size: var(--text-small);
    color: var(--ink-soft);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.map-card-address { margin: 0; font-size: var(--text-caption); color: var(--muted); }
.map-card-actions {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    flex-wrap: wrap;
    margin-top: var(--s-1);
}
/* Muqova ustidagi `.fav-btn` dan farqli: bu — yorliqli, yorug' fondagi
   tugma (kartochka amallar qatorida turadi). */
.map-card-fav {
    display: inline-flex;
    align-items: center;
    gap: var(--s-1);
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: var(--text-caption);
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.map-card-fav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.map-card-fav:hover { color: var(--danger); border-color: var(--danger); }
.map-card-fav.is-fav { color: var(--danger); border-color: var(--danger); }
.map-card-fav.is-fav svg { fill: currentColor; stroke: currentColor; }
.map-card-fav[disabled] { opacity: 0.6; cursor: progress; }

/* Yo'nalish provayderlari (§8) */
.map-dir { position: relative; }
.map-dir-menu {
    position: absolute;
    bottom: calc(100% + var(--s-1));
    left: 0;
    z-index: 3;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.map-dir-menu a {
    padding: 0.55rem var(--s-3);
    font-size: var(--text-small);
    color: var(--ink);
    text-decoration: none;
}
.map-dir-menu a:hover,
.map-dir-menu a:focus-visible { background: var(--sand); }

/* Mobil: kartochka pastdan chiqadigan sheet bo'ladi */
@media (max-width: 860px) {
    .city-map { height: 62vh; }
    .map-card {
        top: auto;
        right: 0;
        left: 0;
        bottom: 0;
        width: auto;
        max-height: 72%;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        animation: map-sheet-in 0.22s ease-out;
    }
    @keyframes map-sheet-in {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
    .map-card-grabber {
        display: block;
        width: 40px;
        height: 4px;
        margin: var(--s-2) auto var(--s-1);
        border-radius: var(--radius-pill);
        background: var(--line);
    }
    .map-card-media { border-radius: 0; height: 130px; }
}
@media (prefers-reduced-motion: reduce) {
    .map-card { animation: none; }
}

/* ---------- Skeleton (yuklanish holati) ----------
   Ishlatish: kontent kelguncha .skeleton bloklarini ko'rsatish,
   kelgach butun konteynerni almashtirish. aria-hidden="true" shart. */
.skeleton {
    position: relative;
    overflow: hidden;
    background: var(--sand);
    border-radius: var(--radius-xs);
    color: transparent;
    user-select: none;
    pointer-events: none;
}

.skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgb(255 253 247 / 0.65),
        transparent
    );
    transform: translateX(-100%);
    animation: skeleton-shimmer 1.3s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
    to { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
    .skeleton::after { animation: none; }
}

.skeleton-text {
    display: block;
    height: 0.85em;
    margin: 0.35em 0;
    border-radius: var(--radius-xs);
}
.skeleton-text.w-60 { width: 60%; }
.skeleton-text.w-80 { width: 80%; }

.skeleton-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    overflow: hidden;
}
.skeleton-card .skeleton-cover {
    aspect-ratio: 16 / 10;
    border-radius: 0;
}
.skeleton-card .skeleton-body {
    padding: var(--s-4);
}

/* ---------- Sayohatlar / Hamyon (Faza 7) ---------- */
.link-btn {
    background: none;
    border: none;
    padding: 0;
    color: var(--turquoise);
    font: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: underline;
}
.link-btn:hover { color: var(--brand-strong); }

.over-budget { color: var(--danger); font-weight: 700; }

/* ── SEO qatlami: breadcrumb (yorug' fon), ish vaqti jadvali, yangilanish ── */

/* .breadcrumbs asli qorong'i hero uchun (yorug' matn). Katalog sahifasi
   yorug' fonda — o'sha ranglar u yerda ko'rinmaydi, shuning uchun
   .page ichida ink/muted palitrasiga o'tkaziladi. */
.page > .breadcrumbs a { color: var(--muted); }
.page > .breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.page > .breadcrumbs span { color: rgb(92 101 132 / 0.6); }
.page > .breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* Haftalik ish vaqti — "shanba ochiqmi?" savoliga javob */
.hours-table { width: 100%; border-collapse: collapse; margin: 0.6rem 0 1.4rem; }
.hours-table th,
.hours-table td {
    text-align: left;
    padding: 0.5rem 0.2rem;
    border-bottom: 1px solid rgb(92 101 132 / 0.14);
    font-size: 0.94rem;
}
.hours-table th { font-weight: 600; color: var(--ink); width: 45%; }
.hours-table td { color: var(--muted); }
.hours-table tr:last-child th,
.hours-table tr:last-child td { border-bottom: 0; }

/* E-E-A-T: kontent qachon yangilangani */
.content-freshness {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 1.6rem 0 0;
    padding-top: 0.9rem;
    border-top: 1px solid rgb(92 101 132 / 0.14);
}

/* FAQ savollari semantik sarlavha (<h2>) bo'ldi — ko'rinishi o'zgarmasin:
   <summary> ning o'z tipografiyasini meros qilib oladi. */
.faq-item summary .faq-q {
    display: inline;
    font: inherit;
    letter-spacing: inherit;
    color: inherit;
    margin: 0;
}

/* ── SEO Faza 2: ichki bog'lanish bloklari va qo'llanma sahifasi ── */

.internal-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem 2.5rem;
    margin: 2.5rem auto 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}
.link-block h2 { font-size: 1.15rem; margin: 0 0 .8rem; }

.link-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.link-list li { display: flex; flex-direction: column; gap: .15rem; }
.link-list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.link-list a:hover, .link-list a:focus-visible { color: var(--brand-strong); text-decoration: underline; }
.link-list .link-meta {
    font-size: .78rem; color: var(--brand-strong); text-transform: uppercase;
    letter-spacing: .04em;
}
.link-list .link-desc { font-size: .87rem; color: var(--muted); line-height: 1.5; }
.link-more-row { margin: .9rem 0 0; font-size: .9rem; }

/* Qo'llanma sahifasi */
.guide-detail { max-width: 780px; }
.guide-head { margin-bottom: 1.5rem; }
.guide-hero { width: 100%; height: auto; border-radius: var(--radius); margin-bottom: 1.8rem; }
.guide-body { margin-bottom: 2rem; }
.guide-links { margin-top: 2.2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.guide-links h2 { font-size: 1.15rem; margin: 0 0 .8rem; }
.guide-back { margin-top: 2rem; font-size: .92rem; }
.guide-card .place-body { padding-top: .9rem; }

/* ── SEO Faza 3: marshrut timeline va qo'llanma xaritasi ──
   Palitra loyihaniki: fil suyagi zamin, zarhal bronza chiziq, to'q ko'k matn.
   Mobile-first: 320px da ham chiziq va nuqtalar joyiga tushadi. */

.itinerary { margin: 2.5rem 0; }
.itinerary > h2 { margin-bottom: 1rem; }

.itinerary-actions {
    display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.6rem;
}

.timeline { list-style: none; margin: 0; padding: 0; }

.tl-stop { display: grid; grid-template-columns: 28px 1fr; gap: .9rem; align-items: start; }
.tl-marker { display: flex; justify-content: center; padding-top: .35rem; }
.tl-dot {
    width: 13px; height: 13px; border-radius: 50%;
    background: var(--accent); border: 2.5px solid var(--card);
    box-shadow: 0 0 0 2px var(--accent);
}
.tl-body { padding-bottom: .2rem; min-width: 0; }
.tl-time {
    display: block; font-size: .8rem; font-weight: 700; letter-spacing: .04em;
    color: var(--brand-strong); font-variant-numeric: tabular-nums;
}
.tl-title { margin: .1rem 0 .2rem; font-size: 1.05rem; }
.tl-title a { color: var(--ink); text-decoration: none; }
.tl-title a:hover, .tl-title a:focus-visible { color: var(--brand-strong); text-decoration: underline; }
.tl-meta {
    display: flex; flex-wrap: wrap; gap: .2rem .7rem;
    margin: 0; font-size: .82rem; color: var(--muted);
}
.tl-note { margin: .4rem 0 0; font-size: .9rem; color: var(--ink-soft); }

/* Ikki to'xtash orasidagi yo'l — chiziq nuqtalar ustuniga tushadi */
.tl-leg {
    display: grid; grid-template-columns: 28px 1fr; gap: .9rem;
    align-items: center; min-height: 2.4rem;
}
.tl-leg-line {
    justify-self: center; width: 2px; height: 100%; min-height: 2.4rem;
    background: repeating-linear-gradient(
        to bottom, var(--line) 0 5px, transparent 5px 10px);
}
.tl-leg-text { font-size: .82rem; color: var(--muted); }

/* Marshrut xaritasi */
.itinerary-map-wrap { margin-top: 2rem; }
.itinerary-map-wrap h3 { margin-bottom: .7rem; scroll-margin-top: 5rem; }
.guide-map {
    height: 340px; border-radius: var(--radius-sm);
    border: 1px solid var(--line); z-index: 0; background: var(--sand);
}
@media (max-width: 560px) { .guide-map { height: 280px; } }

/* Raqamlangan marker — shahar xaritasidagi ranglar registridan (server beradi) */
.guide-marker .gm-pin {
    display: flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%;
    color: #fff; font-weight: 700; font-size: .82rem;
    border: 2px solid #fff; box-shadow: 0 2px 6px rgb(30 42 74 / .35);
    font-variant-numeric: tabular-nums;
}

/* Hub — qo'llanmalar niyat bo'yicha guruhlangan */
.guide-group { margin-bottom: 2.6rem; }
.guide-group > h2 { font-size: 1.25rem; margin-bottom: .9rem; }

/* ── Tajriba detali: "O'xshash Buxoro tajribalari" bloki ──
   Yangi komponent emas — mavjud .section-head + .card-grid ni ajratuvchi
   chiziq bilan o'raydi (DESIGN_SYSTEM_WEB.md: faqat --s-* tokenlari). */
.similar-block {
    margin: var(--s-7) auto var(--s-8);
    padding-top: var(--s-6);
    border-top: 1px solid var(--line);
}
.similar-block .section-head h2 { font-size: var(--text-h3); }

/* ── EXP-2/EXP-3: tasdiqlanmagan narx va jadval ──
   Katalog mahsuloti sotilayotgandek ko'rinmasin: narx o'rnida holat,
   CTA o'rnida "Batafsil". Rang — muted, aksent EMAS (aksent = harakat). */
.price-tag-pending,
.booking-price-pending {
    color: var(--muted);
    font-weight: 600;
    font-style: italic;
}
.booking-price-pending { font-size: 1.15rem; }
.booking-pending-note {
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.55;
    margin: var(--s-3) 0 var(--s-4);
}
.booking-pending-state { display: flex; flex-wrap: wrap; gap: var(--s-2); }

.schedule-list { list-style: none; margin: 0 0 var(--s-5); padding: 0; }
.schedule-list li {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2);
    padding: var(--s-2) 0;
    border-bottom: 1px dashed var(--line);
}
.schedule-list li:last-child { border-bottom: 0; }
.schedule-seats, .schedule-season { color: var(--muted); font-size: .88rem; }

/* ── EXP-10: rasmsiz karta uchun vaqtinchalik fallback ──
   38 ta tajribada hali haqiqiy foto yo'q. Bir xil gradientlar devori
   o'rniga: kategoriya gradienti + juda past kontrastli takrorlanuvchi
   g'ishtsimon naqsh (Buxoro g'ishti) + kartaga qarab burchak siljishi.
   Naqsh CSS bilan chiziladi — qo'shimcha so'rov ham, CLS ham yo'q,
   chunki .place-cover o'lchami allaqachon qat'iy (aspect-ratio). */
.place-cover.is-placeholder::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(90deg,
            rgb(255 255 255 / .07) 0 2px, transparent 2px 34px),
        repeating-linear-gradient(0deg,
            rgb(255 255 255 / .07) 0 2px, transparent 2px 17px);
    /* Har karta biroz boshqacha ko'rinsin — nth-child bilan siljitiladi */
    background-position: 0 0;
    pointer-events: none;
}
.card-grid > *:nth-child(3n+2) .place-cover.is-placeholder::after { background-position: 12px 8px; }
.card-grid > *:nth-child(3n+3) .place-cover.is-placeholder::after { background-position: 24px 4px; }
.card-grid > *:nth-child(4n+1) .place-cover.is-placeholder::after { opacity: .7; }

/* Emoji — katta, lekin sarlavha o'qilishiga xalaqit bermaydigan darajada */
.place-cover.is-placeholder .cover-glyph {
    font-size: clamp(2.2rem, 7vw, 3.2rem);
    line-height: 1;
    filter: drop-shadow(0 2px 6px rgb(0 0 0 / .28));
    position: relative;
    z-index: 1;
}
/* Kategoriya yorlig'i va reyting naqsh ustida qolsin */
.place-cover .cat-tag, .place-cover .rating, .place-cover .fav-form { z-index: 2; }

/* ==========================================================================
   ZH-1 — Soddalashtirilgan xitoycha (zh-Hans) tipografiyasi va tartibi
   ==========================================================================
   Manrope va Playfair Display'da CJK glifi YO'Q. Xitoycha shrift faylini
   self-host qilish 5–10 MB (subset qilinganda ham) — sahifa yuklanishini
   buzadi. Shu sababli xitoycha sahifada tizim CJK shriftlariga o'tamiz:
   Windows (Microsoft YaHei), macOS/iOS (PingFang SC), Android (Noto Sans
   CJK SC), Linux (Source Han Sans SC). Lotin belgilar uchun Manrope
   zanjirning boshida qoladi — brend ko'rinishi saqlanadi, ieroglif esa
   tizim shriftidan olinadi (font fallback).

   Tanlagich `:lang(zh)` — `<html lang="zh-Hans">` va kelajakdagi
   `zh-Hant` ham qamrab olinadi. Boshqa tillarga HECH QANDAY ta'sir yo'q. */
:root:lang(zh) {
    --font-body: "Manrope", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC",
                 "Source Han Sans SC", "Hiragino Sans GB", system-ui, sans-serif;
    /* Serif display shrift CJK'da mos keladigan juftlik topmaydi —
       sarlavhalarda ham sans ishlatiladi (xitoy tipografiyasida
       sarlavha uchun qalin sans odatiy). */
    --font-display: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC",
                    "Source Han Sans SC", "Hiragino Sans GB", system-ui, sans-serif;
}

:lang(zh) {
    /* Ieroglif lotin harfidan baland — 1.6 qatorda siqiq ko'rinadi. */
    line-height: 1.75;
    /* CJK'da so'z orasida bo'shliq yo'q; brauzer ieroglifni istalgan
       joydan ko'chira oladi, lekin `break-all` sonlarni ham kesib
       yuboradi — `normal` + `anywhere` eng xavfsiz kombinatsiya. */
    word-break: normal;
    overflow-wrap: anywhere;
}

/* Lotin matn uchun mo'ljallangan `letter-spacing` (ayniqsa manfiy)
   ieroglifni bir-biriga yopishtirib yuboradi. */
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3,
:lang(zh) .hero-title, :lang(zh) .section-title {
    letter-spacing: 0;
}

/* UPPERCASE + keng letter-spacing yorliqlar: CJK'da `text-transform`
   ta'sir qilmaydi, letter-spacing esa ieroglifni uzib yuboradi. */
:lang(zh) .label, :lang(zh) .eyebrow, :lang(zh) .cat-tag, :lang(zh) .badge {
    letter-spacing: 0.02em;
}

/* Tugma/tab/chip'lar: xitoycha matn odatda 30–50% QISQA ("立即预订" vs
   "Hoziroq bron qilish"), shuning uchun kesilish xavfi past. Kerak
   bo'lgani — matn kesilmasdan O'RALISHI.

   ZH-2 tuzatishi: bu yerda avval `min-width: max-content` ham bor edi.
   U `white-space: normal` bilan ZID: o'ralishga ruxsat berib turib,
   qutini o'ralmagan matn kengligiga majburlaydi — ya'ni 320px ekranda
   tugma konteynerdan chiqib, gorizontal skroll paydo bo'lishi mumkin
   edi. Olib tashlandi; kesilishning oldini `overflow-wrap: anywhere`
   (yuqoridagi umumiy qoida) oladi. */
:lang(zh) .btn, :lang(zh) .chip, :lang(zh) .tab, :lang(zh) .filter-pill {
    white-space: normal;
}

/* Til tanlagichdagi "中文" yorlig'i lotin qisqartmalardan tor —
   tugma sakramasin. */
.lang-dropdown summary span { min-width: 2.2em; text-align: center; }
