/* ============================================================
   Mogza - Explore screen styles
   Requires: DachiTheLynx-Regular.otf (assets/fonts)
   Palette: burgundy #800020 (primary), ink #1c1917
   ============================================================ */
@font-face {
  font-family: 'Dachi The Lynx';
  src: url('../assets/fonts/DachiTheLynx-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --burgundy: #800020;
  --burgundy-soft: rgba(128, 0, 32, 0.08);
  --ink: #1c1917;
  --ink-2: #44403c;
  --muted: #78716c;
  --muted-2: #a8a29e;
  --card: #ffffff;
  --page: #ffffff;
  --divider: #e7e5e4;
  --chip-bg: #f5f3ef;
  --radius-card: 16px;
  --radius-search: 999px;
  --font: 'Dachi The Lynx', 'Noto Sans Georgian', system-ui, sans-serif;
  --h1: 23.5px;
  --h2: 15.5px;
  --body: 14px;
  --meta: 12.5px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: #ecebe6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- phone frame (iPhone 17 Pro) ---------- */
.device {
  position: relative;
  width: 402px;
  height: 874px;
  margin: 24px auto;
  border-radius: 62px;
  background: #101012;
  box-shadow:
    0 0 0 2.5px #3a3a3e,
    0 0 0 5px #8e8e93,
    0 0 0 6.5px #c9c9ce,
    0 30px 70px rgba(0, 0, 0, 0.35),
    0 8px 24px rgba(0, 0, 0, 0.22);
  padding: 10px;
  overflow: hidden;
}
.device .screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 53px;
  overflow: hidden;
  background: var(--page);
}
.dynamic-island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 126px;
  height: 37px;
  border-radius: 20px;
  background: #000;
  z-index: 60;
}
.status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 58px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 36px 8px 40px;
  z-index: 55;
  pointer-events: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #000;
}
.status-icons { display: flex; gap: 6px; align-items: center; }
.status-icons svg { display: block; }

/* ---------- scrollable app content ---------- */
.app-viewport {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding: 64px 22px 150px;
}
.app-viewport::-webkit-scrollbar { display: none; }

/* ---------- headers & search ---------- */
.h1 {
  font-size: var(--h1);
  line-height: 1.3;
  overflow-wrap: normal;
  font-weight: 400;
  letter-spacing: 0.1px;
  color: var(--ink);
  margin-top: 6px;
  max-width: 330px;
}
.search-row { margin-top: 18px; position: relative; }
.search-input {
  width: 100%;
  height: 52px;
  border: 1.5px solid var(--divider);
  border-radius: var(--radius-search);
  padding: 0 18px 0 50px;
  font-family: var(--font);
  font-size: 12.5px;
  color: var(--ink);
  background: #fff;
  outline: none;
}
.search-input::placeholder { color: var(--muted-2); }
.search-input:focus { border-color: var(--burgundy); box-shadow: 0 0 0 3px var(--burgundy-soft); }
.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--burgundy);
  pointer-events: none;
}

/* ---------- section headers ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  margin-bottom: 12px;
}
.h2 { font-size: var(--h2); font-weight: 400; color: var(--ink); white-space: nowrap; }
.see-all {
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--burgundy);
  border: 0;
  background: none;
  font-family: var(--font);
  cursor: pointer;
  padding: 2px 0;
}
.see-all:active { opacity: 0.6; }

/* ---------- horizontal rail ---------- */
.rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-right: -22px;
  padding-right: 22px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: 0 0 auto; }

/* ---------- city cards ---------- */
.city-card {
  width: 150px;
  display: block;
  border: 0;
  background: none;
  text-align: left;
  font-family: var(--font);
  cursor: pointer;
  padding: 0;
}
.city-card .thumb {
  display: block;
  position: relative;
  height: 106px;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--chip-bg);
}
.city-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.city-card .name { display: block; margin-top: 9px; font-size: 16px; color: var(--ink); line-height: 1.2; }
.city-card .country { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }

/* ---------- experience cards ---------- */
.exp-card {
  width: 238px;
  display: block;
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.05), 0 6px 18px rgba(28, 25, 23, 0.07);
  overflow: hidden;
  text-align: left;
  font-family: var(--font);
  cursor: pointer;
  border: 0;
  padding: 0;
}
.exp-card .thumb { display: block; position: relative; height: 150px; background: var(--chip-bg); }
.exp-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.exp-card .body { display: block; padding: 10px 12px 13px; }
.exp-card .country { display: block; font-size: 12px; color: var(--muted); }
.exp-card .title {
  display: block;
  margin-top: 3px;
  font-size: 15.5px;
  line-height: 1.32;
  color: var(--ink);
  min-height: 41px;
}
.exp-card .meta { display: flex; margin-top: 6px; font-size: 12.5px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.exp-card .meta .sep { color: var(--muted-2); }
.exp-card .stats {
  display: flex;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.rating { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; color: var(--ink); font-weight: 500; }
.rating .count { color: var(--muted); font-size: 12.5px; }
.star { color: #f5a623; font-size: 12px; }
.price { font-size: 15px; color: var(--ink); white-space: nowrap; }
.price .from { color: var(--muted); font-size: 12.5px; margin-right: 4px; }

/* ---------- favorite button ---------- */
.fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  z-index: 5;
}
.fav-btn svg { display: block; color: var(--burgundy); }
.fav-btn.active svg { fill: var(--burgundy); }
.fav-btn:active { transform: scale(0.92); }
.fav-btn.burst::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--burgundy);
  opacity: 0;
  animation: fav-burst 0.45s ease-out;
}
@keyframes fav-burst {
  0% { opacity: 0.7; transform: scale(0.8); }
  100% { opacity: 0; transform: scale(1.45); }
}

/* ---------- empty / skeleton / toast ---------- */
.state-note {
  padding: 18px 4px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}
.skeleton-card {
  width: 238px;
  height: 292px;
  border-radius: var(--radius-card);
  background: linear-gradient(100deg, #efece7 30%, #f7f5f1 50%, #efece7 70%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  flex: 0 0 auto;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.toast {
  position: absolute;
  left: 50%;
  bottom: 130px;
  transform: translateX(-50%) translateY(10px);
  background: #1c1917;
  color: #fff;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 70;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- error banner ---------- */
.error-banner {
  display: none;
  margin-top: 12px;
  background: #fdf2f4;
  border: 1px solid rgba(128, 0, 32, 0.25);
  color: var(--burgundy);
  font-size: 13px;
  padding: 12px 14px;
  border-radius: 12px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.error-banner.show { display: flex; }
.error-banner button {
  border: 0;
  background: var(--burgundy);
  color: #fff;
  font-family: var(--font);
  font-size: 12.5px;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
}

/* ---------- tab bar ---------- */
.tabbar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  height: 88px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-radius: 40px;
  box-shadow: 0 6px 24px rgba(28, 25, 23, 0.12);
  display: flex;
  align-items: stretch;
  z-index: 50;
  padding: 8px;
}
.tab {
  flex: 1;
  border: 0;
  background: none;
  font-family: var(--font);
  font-size: 11.5px;
  color: var(--ink-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  border-radius: 30px;
  position: relative;
}
.tab .ico { height: 22px; display: flex; align-items: center; }
.tab.active { background: var(--burgundy-soft); color: var(--burgundy); }
.tab.active .tab-glyph { stroke: var(--burgundy); }
.tab-glyph { stroke: var(--ink-2); }
.tab-glyph-fill { fill: none; }

.home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 134px;
  height: 5px;
  border-radius: 3px;
  background: #101012;
  z-index: 65;
}
