/* Zomin Resort — ilova ko‘rinishi: Telegram Mini App (/tg) va telefondagi sayt (760px gacha).
   html.app-ui — ilova ko‘rinishi yoqilgan; html.app-ui — faqat Telegram ichida.
   Ranglar saytdagidek: o‘rmon yashili, qaymoq fon, terrakota urg‘u. */
html:not(.app-ui) .tg-top,
html:not(.app-ui) .tg-welcome,
html:not(.app-ui) .bn-item[data-bn="profile"] { display: none !important; }
.in-telegram .site-footer { display: none !important; }
.app-ui body { background: var(--paper); }
.app-ui .site-header,
.app-ui .hero-wrap,
.app-ui .pass-band,
.app-ui .skip,
.app-ui .catalog-head .count { display: none !important; }

/* ---------- ilova sarlavhasi ---------- */
.tg-top { padding: 14px 18px 4px; }
.tg-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tg-loc { display: inline-flex; align-items: center; gap: 8px; }
.tg-loc-ic { width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--paper); color: var(--forest); }
.tg-loc-ic .ic { width: 19px; height: 19px; }
.tg-loc-chip { background: var(--forest); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; }
.tg-actions { display: flex; align-items: center; gap: 8px; }
.tg-actions .lang select { min-height: 38px; }
.tg-avatar { width: 40px; height: 40px; border-radius: 999px; border: 0; display: grid; place-items: center; font-weight: 700; font-size: 16px; color: #fff; background: linear-gradient(135deg, var(--clay), #c9774f); box-shadow: 0 0 0 3px var(--mist); }
.tg-hello { margin: 18px 0 14px; font-size: 27px; line-height: 1.12; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.tg-hello span { display: block; color: var(--forest); }
.tg-hello span:first-child { color: var(--ink); }
.tg-search { display: flex; align-items: center; gap: 10px; background: var(--mist); border-radius: 999px; padding: 0 6px 0 16px; min-height: 52px; }
.tg-search .ic { width: 20px; height: 20px; color: var(--muted); flex: none; }
.tg-search input { flex: 1; min-width: 0; border: 0; background: none; font-size: 15px; padding: 14px 0; color: var(--ink); }
.tg-search input::placeholder { color: var(--muted); }
.tg-filter { position: relative; width: 42px; height: 42px; border-radius: 999px; border: 0; background: var(--paper); display: grid; place-items: center; color: var(--ink); flex: none; box-shadow: var(--shadow-sm); }
.tg-filter .badge { position: absolute; top: -2px; right: -2px; }

/* ---------- katalog ---------- */
.app-ui .catalog { padding: 12px 18px 120px; }
.app-ui .catalog-tools { margin: 0 0 18px; }
.app-ui .catalog-tools .filters-btn { display: none; }
.app-ui .chips { margin: 0 -18px; padding: 2px 40px 2px 18px; gap: 8px; }
.app-ui .chip { min-height: 36px; padding: 0 16px; font-size: 13px; border-color: transparent; background: var(--mist); }
.app-ui .chip[aria-pressed="true"] { background: var(--forest); color: #fff; }
.app-ui .catalog-head { order: 0; margin: 0 0 12px; }
.app-ui #catalog { display: flex; flex-direction: column; }
.app-ui .catalog-tools { order: -1; }
.app-ui .catalog-head h2 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.app-ui .sample-notice { font-size: 12px; padding: 10px 12px; border-radius: 12px; margin-bottom: 12px; }

.app-ui .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.app-ui .card { border: 0; border-radius: 20px; aspect-ratio: 0.8; box-shadow: 0 8px 22px -14px rgba(24, 47, 41, .55); background: var(--forest); }
.app-ui .card:hover { transform: none; }
.app-ui .card-media { position: absolute; inset: 0; aspect-ratio: auto; }
.app-ui .card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21, 63, 54, 0) 40%, rgba(16, 40, 34, .88) 100%); pointer-events: none; }
.app-ui .sample-img { background-size: 400% auto; }
.app-ui .sample-img[data-q="hovli"] { background-position: 2% 10%; }
.app-ui .sample-img[data-q="sori"] { background-position: 98% 10%; }
.app-ui .sample-img[data-q="dom"] { background-position: 2% 90%; }
.app-ui .sample-img[data-q="camp"] { background-position: 98% 90%; }
.app-ui .tag { top: 10px; left: 10px; font-size: 11px; padding: 3px 9px; background: rgba(255, 254, 250, .92); }
.app-ui .tag-sample { left: auto; right: 10px; background: rgba(168, 80, 53, .92); color: #fff; }
.app-ui .card-go { display: none; }
.app-ui .card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px; gap: 4px; z-index: 1; pointer-events: none; }
.app-ui .card-title { font-size: 15px; font-weight: 700; color: #fff; line-height: 1.2; }
.app-ui .card-link { pointer-events: auto; }
.app-ui .meta { color: rgba(255, 255, 255, .82); font-size: 11.5px; gap: 2px 10px; }
.app-ui .meta .ic { width: 13px; height: 13px; }
.app-ui .skeleton { border-radius: 20px; aspect-ratio: .8; }

/* ---------- sahifalar ---------- */
.app-ui .page { padding: 18px 18px 120px; }

/* ---------- pastki menyu (suzuvchi) ---------- */
.app-ui .bottom-nav {
  display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; z-index: 20;
  left: 14px; right: 14px; bottom: calc(12px + env(safe-area-inset-bottom)); padding: 6px;
  background: rgba(255, 254, 250, .96); border: 1px solid var(--line); border-radius: 26px;
  box-shadow: 0 12px 30px -12px rgba(24, 47, 41, .35);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.app-ui .bn-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 54px; background: none; border: 0; color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 600; border-radius: 20px; padding: 4px 2px; line-height: 1.1; text-align: center; }
.app-ui .bn-item .ic { width: 22px; height: 22px; }
.app-ui .bn-item[aria-current="page"] { color: var(--forest); background: var(--mist); }
.app-ui .bn-item[aria-current="page"] .ic { color: var(--clay); }
.app-ui .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }

/* ---------- xush kelibsiz oynasi ---------- */
.tg-welcome { position: fixed; inset: 0; z-index: 60; background: var(--paper); display: flex; flex-direction: column; }
.tg-welcome-img { flex: 1 1 58%; min-height: 0; position: relative; background: #23463c url("/assets/hero.jpg") center 58% / cover no-repeat; border-radius: 0 0 50% 50% / 0 0 12% 12%; overflow: hidden; }
.tg-welcome-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21, 63, 54, .15), rgba(21, 63, 54, .45)); }
.tg-welcome-logo { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; color: #fff; }
.tg-welcome-badge { width: 76px; height: 76px; margin: 0 auto 10px; border-radius: 999px; background: var(--paper); color: var(--forest); display: grid; place-items: center; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }
.tg-welcome-badge svg { width: 44px; height: 22px; }
.tg-welcome-logo b { display: block; font-size: 26px; letter-spacing: .04em; white-space: nowrap; }
.tg-welcome-logo small { font-size: 13px; opacity: .9; }
.tg-welcome-body { flex: 0 0 auto; padding: 26px 28px calc(28px + env(safe-area-inset-bottom)); text-align: center; }
.tg-welcome-body h2 { font-size: 30px; letter-spacing: .02em; color: var(--ink); }
.tg-welcome-body p { color: var(--muted); margin: 10px auto 24px; max-width: 300px; font-size: 15px; }
.tg-welcome-body .btn { width: 100%; max-width: 320px; min-height: 52px; border-radius: 999px; font-size: 16px; }
.tg-welcome-body .btn + .btn { margin-top: 10px; }
.tg-welcome-pick { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--forest); margin: -8px 0 12px; }
.tg-langs { display: grid; gap: 10px; max-width: 320px; margin: 0 auto; }
.tg-langs .btn { margin: 0 !important; max-width: none; }

/* ---------- iPhone: siljish, fokus ramkasi, klaviatura ---------- */
html.app-ui, .app-ui body { overflow-x: hidden; max-width: 100%; touch-action: pan-x pan-y; -webkit-text-size-adjust: 100%; }
.app-ui input, .app-ui select, .app-ui textarea { font-size: 16px; }
.app-ui .code-input { font-size: 24px !important; }
.app-ui * { -webkit-tap-highlight-color: transparent; }
.tg-search input:focus, .tg-search input:focus-visible { outline: none; box-shadow: none; }
.tg-search:focus-within { box-shadow: inset 0 0 0 2px var(--focus); }
.tg-search input::-webkit-search-decoration, .tg-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.app-ui .lang select:focus, .app-ui .lang select:focus-visible { outline: none; }
.app-ui .chip:focus:not(:focus-visible), .app-ui .bn-item:focus:not(:focus-visible) { outline: none; }
.app-ui.tg-typing .bottom-nav { display: none; }

/* Telefondagi saytda footer ko‘rinadi: katalog ostidagi bo‘shliq kichikroq */
.app-ui:not(.in-telegram) .catalog { padding-bottom: 28px; }

/* Premium hotellar: ilova ko‘rinishida katalog ustida, gorizontal qator */
.app-ui .hotels { padding: 4px 18px 0; }
.app-ui .hotels-head { margin: 0 0 10px; }
.app-ui .hotels-head h2 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.app-ui .hotels-sub { display: none; }
.app-ui .hotels-row { grid-auto-columns: 40%; gap: 10px; margin: 0 -18px; padding: 2px 18px 6px; scroll-padding-left: 18px; }
.app-ui .hotel-card { aspect-ratio: 1.05; border-radius: 16px; box-shadow: 0 8px 22px -14px rgba(24, 47, 41, .55); }
.app-ui .hotel-card:hover { transform: none; }
.app-ui .hotel-card .tag { top: 7px; left: 7px; font-size: 10px; padding: 2px 7px; }
.app-ui .hotel-card .tag-sample { left: auto; right: 7px; background: rgba(168, 80, 53, .92); color: #fff; }
.app-ui .hotel-body { padding: 8px 10px; }
.app-ui .hotel-title { font-size: 13px; }
.app-ui .hotel-card .meta { font-size: 10.5px; }
.app-ui .catalog { padding-top: 18px; }

/* Dam olish joylari: telefonda 2 ustun, kartalar 1.5 barobar pastroq */
.app-ui .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.app-ui .card { border-radius: 16px; aspect-ratio: 1.2; }
.app-ui .card .tag { top: 8px; left: 8px; font-size: 10.5px; padding: 2px 8px; }
.app-ui .card .tag-sample { left: auto; right: 8px; }
.app-ui .card-body { padding: 9px 10px; gap: 2px; }
.app-ui .card-title { font-size: 14px; }
.app-ui .card .meta { font-size: 11px; }
.app-ui .card .meta .ic { width: 12px; height: 12px; }
.app-ui .skeleton { border-radius: 16px; aspect-ratio: 1.2; }

/* Sevimlilar: ilova ko‘rinishida */
.app-ui .card .tags { top: 8px; left: 8px; right: 44px; gap: 4px; }
.app-ui .card .fav-btn { top: 4px; right: 4px; width: 36px; height: 36px; }
.app-ui .card .fav-btn .ic { width: 18px; height: 18px; }
.app-ui .hotel-card .tags { top: 7px; left: 7px; }
.app-ui .profile-pass { border-radius: 18px; }

/* Yurakcha: oq doira ikonchadan biroz kattaroq (bosish maydoni 36px qoladi) */
.app-ui .card .fav-btn, .app-ui .hotel-card .fav-btn {
  top: 3px; right: 3px; width: 36px; height: 36px; padding: 5px; background-clip: content-box;
  box-shadow: none; filter: drop-shadow(0 1px 3px rgba(16, 40, 34, .3));
}
.app-ui .card .fav-btn .ic, .app-ui .hotel-card .fav-btn .ic { width: 17px; height: 17px; }

/* Galereya ilovada: faqat barmoq bilan surish, strelkasiz */
.app-ui .gal-arrow { display: none !important; }
.app-ui .gallery-dots { margin-top: 6px; }

/* Joy oynasidagi ma’lumot qatori: kartadagi oq matn uslubi bu yerga tegmasin */
.app-ui .place-info .meta { color: var(--muted); font-size: 13px; flex-direction: row; flex-wrap: wrap; gap: 4px 14px; }
.app-ui .place-info .meta .ic { width: 15px; height: 15px; }
