:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #1a2233;
  --muted: #6b7489;
  --border: #e3e8f1;
  --accent: #2f6bff;
  --accent-soft: #e8efff;
  --good: #14a46c;
  --good-soft: #e3f7ee;
  --warn: #d9822b;
  --shadow: 0 2px 10px rgba(20, 30, 60, 0.06);
  --shadow-lg: 0 10px 30px rgba(20, 30, 60, 0.12);
  --radius: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1420;
    --surface: #182030;
    --text: #e8ecf4;
    --muted: #97a1b6;
    --border: #273246;
    --accent: #6b95ff;
    --accent-soft: #1f2d4d;
    --good: #3ccf91;
    --good-soft: #163a2c;
    --warn: #f0a35a;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "PingFang SC", "Microsoft YaHei", "Noto Sans Devanagari", "Nirmala UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: var(--accent); }

.container { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* Top bar */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 20px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  position: sticky; top: 0; z-index: 10;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0;
  font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; white-space: nowrap;
  text-decoration: none; color: var(--text);
}
.logo-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px;
  font-size: 1.1rem; line-height: 1;
  background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--accent) 30%, var(--surface)));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent);
  transition: transform .25s ease;
}
.logo:hover .logo-mark { transform: rotate(-12deg) scale(1.06); }
.logo-text span { color: var(--accent); }
.prefs { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pref {
  position: relative; display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; color: var(--muted);
}
.pref-label { white-space: nowrap; }
.cur-icon { display: none; }
.pref-icon { position: absolute; left: 12px; font-size: 0.95rem; pointer-events: none; }
.pref select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  font: inherit; font-size: 0.88rem; font-weight: 600; color: var(--text);
  background-color: color-mix(in srgb, var(--text) 5%, transparent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%238b95aa' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
  border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 32px 8px 14px;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.pref.lang select { padding-left: 34px; }
.pref select:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); background-color: var(--accent-soft); }
.pref select:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }

/* City header + tabs */
.city-head {
  background: linear-gradient(135deg, var(--g1), var(--g2));
  color: #fff; padding: 18px 0 26px;
}
.city-head { position: relative; }
.city-title { display: block; }
.city-flag { position: absolute; top: 12px; right: 16px; font-size: 1.6rem; line-height: 1; z-index: 3; }
.city-title h1 { margin: 0; font-size: clamp(1.8rem, 5vw, 2.6rem); letter-spacing: -0.02em; }
.city-title p { margin: 2px 0 0; opacity: 0.9; }

.tabs {
  background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: 61px; z-index: 9;
}
.tabs-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs-inner::-webkit-scrollbar { display: none; }
.tab {
  flex: none; padding: 14px 14px 12px; text-decoration: none; color: var(--muted);
  font-weight: 600; font-size: 0.92rem; border-bottom: 3px solid transparent; white-space: nowrap;
}
.tab:hover { color: var(--text); }
.tab.on { color: var(--accent); border-bottom-color: var(--accent); }

.page { padding-top: 8px; padding-bottom: 16px; }
.page-head { padding: 20px 0 16px; }
.page-head h2 { margin: 0 0 4px; font-size: clamp(1.4rem, 3.5vw, 1.9rem); letter-spacing: -0.01em; }
.page-head p { margin: 0; color: var(--muted); }

.section-title { font-size: 1.2rem; margin: 26px 0 14px; }
.section-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.see-all { font-size: 0.9rem; font-weight: 600; text-decoration: none; }

/* Feature cards (city home) */
.features { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.feature { display: flex; gap: 14px; align-items: flex-start; padding: 18px; position: relative; }
.feature .f-icon {
  flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft);
  display: grid; place-items: center; font-size: 1.6rem;
}
.feature h3 { margin: 0 0 4px; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.feature .f-stat { display: inline-block; margin-top: 10px; font-size: 0.8rem; font-weight: 600; color: var(--accent); }
.feature .arrow { position: absolute; right: 18px; top: 18px; color: var(--muted); font-size: 1.2rem; transition: transform 0.15s; }
a.feature:hover .arrow { transform: translateX(4px); color: var(--accent); }
.feature.soon { opacity: 0.6; box-shadow: none; border-style: dashed; }
.feature.soon .f-icon { background: var(--bg); filter: grayscale(0.6); }
.soon-tag {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  background: var(--border); color: var(--muted); padding: 2px 7px; border-radius: 6px; vertical-align: middle;
}

/* Places */
.cat-section { margin-bottom: 8px; }
.cat-title { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; margin: 22px 0 12px; }
.cat-title small {
  font-size: 0.75rem; font-weight: 700; color: var(--muted);
  background: var(--border); padding: 1px 8px; border-radius: 999px;
}
.place-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.place-grid.compact { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); padding-bottom: 8px; }
.place {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px; display: flex; flex-direction: column; gap: 10px;
}
.place-top { display: flex; gap: 12px; align-items: flex-start; }
.p-icon {
  flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft);
  display: grid; place-items: center; font-size: 1.35rem;
}
.p-head { flex: 1; min-width: 0; }
.p-head h3 { margin: 0; font-size: 1rem; line-height: 1.3; }
.p-area { font-size: 0.8rem; color: var(--muted); }
.must { font-size: 1.1rem; }
.p-desc { margin: 0; font-size: 0.9rem; }
.p-meta { display: flex; flex-direction: column; gap: 4px; font-size: 0.82rem; color: var(--muted); }
.p-meta .free { color: var(--good); font-weight: 600; }
.food .p-meta strong { color: var(--text); }
.food .p-meta .conv { color: var(--muted); white-space: nowrap; }
.place .tip { margin-top: 0; font-size: 0.84rem; background: var(--bg); border-left: 3px solid var(--accent); padding: 8px 10px; border-radius: 6px; }
.p-links { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.85rem; font-weight: 600; margin-top: auto; }
.p-links a { text-decoration: none; }
.place.compact .p-desc { font-size: 0.85rem; color: var(--muted); }

.toolbar.sticky {
  position: sticky; top: 110px; z-index: 5; background: var(--bg);
  padding: 10px 0; margin-bottom: 0;
}
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chips.scroll .chip { flex: none; }
.chip small { opacity: 0.7; font-weight: 700; margin-left: 2px; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
.fine { color: var(--muted); font-size: 0.8rem; margin-top: 24px; }

/* Hero / headings */
.hero { text-align: center; padding: 32px 0 20px; }
.hero h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin: 0 0 8px; letter-spacing: -0.02em; }
.hero p { color: var(--muted); margin: 0; }

.back {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 20px; font-size: 0.9rem; text-decoration: none; color: var(--muted);
}
.back:hover { color: var(--accent); }

/* Grid of cards */
.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  padding-bottom: 32px;
}

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  text-decoration: none; color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: block; overflow: hidden;
}
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.city-card .banner {
  aspect-ratio: 16 / 9; display: grid; place-items: center; font-size: 3.4rem;
}
.city-card .body { padding: 16px 18px 18px; }
.city-card h2 { margin: 0; font-size: 1.35rem; }
.city-card .meta { color: var(--muted); font-size: 0.9rem; }
.city-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.summary .item.center { display: flex; align-items: center; }
.toolbar .chips.scroll { flex: 1 1 auto; min-width: 0; }
.city-card .tag {
  display: inline-block; font-size: 0.8rem;
  background: var(--accent-soft); color: var(--accent);
  padding: 3px 10px; border-radius: 999px; font-weight: 600;
}

.airport-card { padding: 18px; }
.airport-card .code {
  font-weight: 800; font-size: 1.8rem; letter-spacing: 0.04em; color: var(--accent);
}
.airport-card h3 { margin: 2px 0 6px; font-size: 1.1rem; }
.airport-card .note { color: var(--muted); font-size: 0.88rem; margin: 0 0 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; }
.fact {
  font-size: 0.8rem; background: var(--bg); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 999px;
}

/* Summary bar */
.summary {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 20px;
}
.summary .item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px;
}
.summary .label { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.summary .value { font-weight: 700; font-size: 1.15rem; }

/* Toolbar */
.toolbar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font: inherit; font-size: 0.85rem; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  padding: 6px 12px; border-radius: 999px;
}
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Option cards */
.options { display: grid; gap: 12px; padding-bottom: 24px; }
.option {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 18px;
  display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: start;
}
.option .icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft);
  display: grid; place-items: center; font-size: 1.6rem;
}
.option h3 { margin: 0; font-size: 1.05rem; }
.option .mode { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.option .route { margin: 4px 0 8px; color: var(--muted); font-size: 0.9rem; }
.option .badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.badge {
  font-size: 0.75rem; font-weight: 600; padding: 3px 8px; border-radius: 6px;
  background: var(--good-soft); color: var(--good);
}
.badge.fast { background: var(--accent-soft); color: var(--accent); }
.option ul { margin: 0; padding-left: 18px; font-size: 0.88rem; }
.option .pros li::marker { content: "✓  "; color: var(--good); }
.option .cons li::marker { content: "!  "; color: var(--warn); }
.option .tip {
  margin-top: 10px; font-size: 0.86rem; background: var(--bg);
  border-left: 3px solid var(--accent); padding: 8px 10px; border-radius: 6px;
}
.option .more { margin-top: 8px; font-size: 0.85rem; }

.price { text-align: right; min-width: 120px; }
.price .main { font-weight: 800; font-size: 1.3rem; white-space: nowrap; }
.price .conv { font-size: 0.82rem; color: var(--muted); white-space: nowrap; }
.price .per { font-size: 0.75rem; color: var(--muted); }
.price .time { margin-top: 8px; font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.price .freq { font-size: 0.78rem; color: var(--muted); max-width: 170px; margin-left: auto; }

.map-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.88rem; font-weight: 600; text-decoration: none;
  background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 10px;
}

/* Nearby cities: one card per city, its ways to get there as rows (shares .price with the option cards) */
.nearby-list { align-items: start; }
.n-details { margin-top: 12px; }
.n-details summary { cursor: pointer; font-size: 0.88rem; font-weight: 600; color: var(--accent); list-style: none; }
.n-details summary::-webkit-details-marker { display: none; }
.n-details .when-open, .n-details[open] .when-closed { display: none; }
.n-details[open] .when-open { display: inline; }
.n-details .n-guide { display: inline-block; margin-top: 10px; }
.nearby-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-start; justify-content: space-between; }
.nearby-card h3 { margin: 0 0 8px; font-size: 1.25rem; }
.nearby-card h3 a { color: var(--accent); text-decoration: none; }
.nearby-card h3 a:hover { text-decoration: underline; }
.nearby-card .n-flag { font-size: 1.05rem; }
.nearby-card.has-photo { overflow: hidden; }
.n-photo-wrap { margin: -18px -18px 14px; display: flex; flex-direction: column; gap: 4px; }
.n-photo { width: 100%; height: 190px; object-fit: cover; display: block; background: var(--accent-soft); }
.n-photo-wrap .credit { padding: 0 18px; }
.nearby-card .n-tagline { margin: -2px 0 8px; font-size: 0.95rem; font-style: italic; }
.nearby-card .note { color: var(--muted); font-size: 0.9rem; margin: 12px 0 4px; }
.n-guide {
  font-size: 0.85rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  background: var(--accent-soft); color: var(--accent); padding: 7px 12px; border-radius: 10px;
}
.n-options { list-style: none; margin: 0; padding: 0; }
.n-option {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: start;
  padding: 12px 0; border-top: 1px solid var(--border);
}
.n-option:first-child { margin-top: 8px; }
.n-option .icon {
  width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft);
  display: grid; place-items: center; font-size: 1.25rem;
}
.n-option .mode { font-size: 0.74rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.n-option h4 { margin: 0; font-size: 1rem; }
.n-option .route { margin: 2px 0 0; color: var(--muted); font-size: 0.86rem; }
.n-option .tip {
  margin-top: 8px; font-size: 0.84rem; background: var(--bg);
  border-left: 3px solid var(--accent); padding: 6px 10px; border-radius: 6px;
}
.n-option .more { margin-top: 6px; font-size: 0.84rem; }
.n-option .price .main { font-size: 1.1rem; }

.footer { color: var(--muted); font-size: 0.8rem; text-align: center; padding-top: 12px; padding-bottom: 32px; }

@media (max-width: 640px) {
  .option { grid-template-columns: 44px 1fr; }
  .option .icon { width: 44px; height: 44px; font-size: 1.3rem; }
  .n-option { grid-template-columns: 40px 1fr; }
  .price { grid-column: 1 / -1; text-align: left; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; border-top: 1px solid var(--border); padding-top: 10px; }
  .price .time { margin-top: 0; }
  .price .freq { margin-left: 0; max-width: none; }
  .topbar { padding: 8px 12px; }
  /* Icon-only selects: the chosen text is hidden, tapping opens the native list */
  .pref-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cur-icon { display: block; }
  .pref-icon { left: 0; right: 0; text-align: center; font-size: 1.1rem; }
  .pref select {
    width: 42px; height: 38px; max-width: none; padding: 0;
    color: transparent; background-image: none;
  }
  .pref.lang select { padding-left: 0; }
  .pref select option { color: var(--text); background: var(--surface); }
  .prefs { gap: 6px; }
}

/* Visually hidden, still read by screen readers */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Shown when a city has no translation in the selected language yet */
.notice {
  margin: 0 0 16px; padding: 10px 14px; border-radius: 10px;
  background: var(--surface); border: 1px dashed var(--border); color: var(--muted); font-size: 0.9rem;
}
.loading { padding: 48px 0; text-align: center; color: var(--muted); }

/* Home: city search */
.search { position: relative; max-width: 560px; margin: 22px auto 0; text-align: left; }
.search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 1.05rem; pointer-events: none; }
.search input {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 14px 18px 14px 46px; box-shadow: var(--shadow); outline: none;
}
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search-results {
  display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 5;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 6px; max-height: 60vh; overflow-y: auto;
}
.search-results.open { display: block; }
.search-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: 12px; text-decoration: none; color: var(--text);
}
.search-item.active, .search-item:hover { background: var(--accent-soft); }
.s-flag { font-size: 1.6rem; line-height: 1; }
.s-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; min-width: 0; }
.s-text small { flex-basis: 100%; color: var(--muted); font-size: 0.85rem; }
.s-text .alias { color: var(--muted); font-size: 0.9rem; }
.search-empty { margin: 0; padding: 12px; color: var(--muted); text-align: center; }

/* Home: explore */
.explore { padding-top: 24px; }
.slider { position: relative; }
.slider-track {
  display: flex; gap: 16px; overflow-x: auto; padding: 4px 2px 32px;
  scroll-snap-type: x mandatory; scroll-padding: 0 2px; overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
.slider-track > .city-card { flex: 0 0 min(300px, 80%); scroll-snap-align: start; }
.slider-track > .nearby-card { flex: 0 0 min(320px, 85%); scroll-snap-align: start; align-self: flex-start; }
.slider-track > .place { flex: 0 0 min(320px, 85%); scroll-snap-align: start; }
.slider-btn {
  position: absolute; top: calc(50% - 32px); transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: inherit; box-shadow: var(--shadow-lg);
  font-size: 1.6rem; line-height: 1; cursor: pointer; display: none; padding: 0 0 3px;
}
.slider-btn.prev { left: -12px; }
.slider-btn.next { right: -12px; }
@media (hover: hover) and (min-width: 700px) { .slider-btn { display: block; } }
.section-title { font-size: 1.35rem; margin: 0 0 2px; letter-spacing: -0.01em; }
.section-sub { color: var(--muted); margin: 0 0 14px; font-size: 0.92rem; }

/* Photos (Wikimedia Commons; credits link to the file page) */
.credit {
  font-size: 0.72rem; color: var(--muted); text-decoration: none; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; display: block;
}
.credit:hover { text-decoration: underline; }
.city-head.has-photo { position: relative; overflow: hidden; padding-bottom: 14px; aspect-ratio: 16 / 9; width: 100%; margin-inline: auto; display: flex; flex-direction: column; justify-content: flex-end; }
.city-head.has-photo .container { width: 100%; }
.city-head.has-photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 15, 30, 0.35), rgba(10, 15, 30, 0.7));
}
.city-head.has-photo .container { position: relative; z-index: 2; }
/* Cover slides: stacked, one visible at a time (app.js tickSlides) */
.slides { position: relative; overflow: hidden; background: #0b1020; }
.slides .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.8s ease; }
.slides .slide.on { opacity: 1; }
/* a video's poster frame as its background too (app.js slidesHtml): iOS can hide the poster before the video plays */
.slides video.slide { background-position: center; background-size: cover; background-repeat: no-repeat; }
/* every slide failed to load (app.js coverFailed): the gradient behind shows instead of a dark box */
.slides.empty { display: none; }
.head-slides { position: absolute; inset: 0; }
.credit-stack { display: grid; }
.credit-stack .cs { grid-area: 1 / 1; opacity: 0; pointer-events: none; transition: opacity 0.8s ease; }
.credit-stack .cs.on { opacity: 1; pointer-events: auto; }
.city-head.has-photo .city-title { text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5); }
.head-credit { margin-top: 14px; display: flex; justify-content: flex-end; }
.head-credit .credit-stack { justify-items: end; }
.head-credit .credit { color: rgba(255, 255, 255, 0.8); max-width: 70%; }
.city-card .banner { position: relative; overflow: hidden; }
.city-card .banner-photo { position: absolute; inset: 0; width: 100%; height: 100%; }
.city-card .banner.has-photo .banner-flag {
  position: absolute; left: 12px; bottom: 8px; font-size: 1.8rem; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}
.p-photo-wrap { margin: -16px -16px 0; display: flex; flex-direction: column; gap: 4px; }
.p-photo {
  width: 100%; aspect-ratio: 16 / 9; display: block; background: var(--accent-soft);
  border-radius: var(--radius) var(--radius) 0 0;
}
.p-photo-wrap .credit { padding: 0 16px; }
.notice.preview { border-color: var(--accent); }

/* Flight animation (app.js → flyTo): globe and plane drawn over the home page after picking a city in the search. */
.flight { position: fixed; inset: 0; z-index: 100; outline: none; animation: flight-in 0.35s ease-out; }
.flight.leaving { opacity: 0; transition: opacity 0.45s ease; pointer-events: none; }
.flight-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
@keyframes flight-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
.nearby-card[data-city] { cursor: pointer; }
.nearby-card[data-city]:hover { box-shadow: var(--shadow-lg); }
