/* Vietnam Tourism — City pages shared stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:    #DA251D;
  --gold:   #FFCD00;
  --dark:   #0D1117;
  --bg2:    #111820;
  --surface: rgba(255,255,255,0.04);
  --border:  rgba(255,255,255,0.08);
  --muted:   rgba(255,255,255,0.45);
  --radius:  12px;
  --max:     860px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--dark);
  color: #fff;
  line-height: 1.65;
}
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ── Top navigation ─────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,17,23,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.5rem;
  height: 52px;
}
.nav-home {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-home:hover { color: #fff; text-decoration: none; }
.nav-city {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: #fff;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-langs {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}
.nav-lang {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 100px;
  color: var(--muted);
  background: none;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.nav-lang:hover { color: #fff; text-decoration: none; }
.nav-lang.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
  border-color: var(--border);
}

/* ── Hero ────────────────────────────────────────────────── */
.city-hero {
  padding: 4.5rem 1.5rem 3.5rem;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(218,37,29,0.14) 0%, transparent 70%),
    linear-gradient(160deg, #0d1117 0%, #1a1006 60%, #0d1117 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.city-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,205,0,0.05) 1px, transparent 0);
  background-size: 36px 36px;
}
.hero-inner { position: relative; }
.hero-region {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  opacity: 0.8;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 10vw, 6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.hero-subtitle {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: rgba(255,255,255,0.55);
  margin-bottom: 1rem;
}
.hero-tagline {
  font-weight: 300;
  font-size: 1rem;
  color: var(--muted);
}

/* ── TOC ─────────────────────────────────────────────────── */
.toc-bar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.toc-bar::-webkit-scrollbar { display: none; }
.toc-inner {
  display: flex;
  gap: 0;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}
.toc-link {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 0.85rem 1rem;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.toc-link:hover { color: #fff; border-color: var(--gold); text-decoration: none; }

/* ── Main container ──────────────────────────────────────── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

/* ── Sections ────────────────────────────────────────────── */
.section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}
.section:last-child { border-bottom: none; }
.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
}
.section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
.section p {
  color: rgba(255,255,255,0.72);
  margin-bottom: 1rem;
}
.section p:last-child { margin-bottom: 0; }

/* ── Info grid ───────────────────────────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--border);
  margin-bottom: 2rem;
}
.info-item {
  background: var(--bg2);
  padding: 1.1rem 1.2rem;
}
.info-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.info-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
}

/* ── Weather grid ────────────────────────────────────────── */
.weather-months {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
  margin-bottom: 1.5rem;
}
.wm {
  border-radius: 6px;
  padding: 8px 4px;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.wm-label { display: block; margin-bottom: 4px; text-transform: uppercase; }
.wm-dot { display: block; width: 8px; height: 8px; border-radius: 50%; margin: 0 auto; }
.wm-dry   { background: rgba(255,205,0,0.12); color: var(--gold); }
.wm-wet   { background: rgba(100,160,255,0.12); color: #82b4ff; }
.wm-ideal { background: rgba(218,37,29,0.18); color: #ff8a80; }
.wm-dry   .wm-dot { background: var(--gold); }
.wm-wet   .wm-dot { background: #82b4ff; }
.wm-ideal .wm-dot { background: var(--red); }

.weather-legend {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.wleg {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--muted);
}
.wleg-dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0;
}

/* ── Best time badge ─────────────────────────────────────── */
.best-time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(218,37,29,0.12);
  border: 1px solid rgba(218,37,29,0.3);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #ff8a80;
  margin-bottom: 1rem;
}

/* ── Transport cards ─────────────────────────────────────── */
.transport-list {
  display: grid;
  gap: 1px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--border);
  margin-bottom: 1rem;
}
.transport-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1rem;
  align-items: start;
  background: var(--bg2);
  padding: 1.1rem 1.2rem;
}
.transport-icon {
  font-size: 1.4rem;
  text-align: center;
  padding-top: 2px;
}
.transport-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.3rem;
}
.transport-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Activities ──────────────────────────────────────────── */
.activities-grid {
  display: grid;
  gap: 1px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--border);
  margin-bottom: 1rem;
}
.activity-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 1rem;
  align-items: start;
  background: var(--bg2);
  padding: 1rem 1.2rem;
}
.activity-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--gold);
  opacity: 0.6;
  text-align: center;
  padding-top: 1px;
}
.activity-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
}
.activity-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Experiences ─────────────────────────────────────────── */
.exp-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--border);
  margin-bottom: 1rem;
}
.exp-item {
  background: var(--bg2);
  padding: 1.2rem;
}
.exp-icon { font-size: 1.5rem; margin-bottom: 0.6rem; }
.exp-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: #fff;
}
.exp-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Food list ───────────────────────────────────────────── */
.food-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--border);
  margin-bottom: 1rem;
}
.food-item {
  background: var(--bg2);
  padding: 1.1rem 1.2rem;
}
.food-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.food-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Hotels ──────────────────────────────────────────────── */
.hotel-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--border);
  margin-bottom: 1rem;
}
.hotel-tier {
  background: var(--bg2);
  padding: 1.3rem;
}
.tier-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.tier-budget .tier-label { color: #82b4ff; }
.tier-mid    .tier-label { color: var(--gold); }
.tier-luxury .tier-label { color: #ff8a80; }
.tier-price {
  font-family: 'Playfair Display', serif;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
  font-style: italic;
}
.tier-names {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tier-names li {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  padding-left: 10px;
  position: relative;
}
.tier-names li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--muted);
}

/* ── Map ─────────────────────────────────────────────────── */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16/7;
  min-height: 200px;
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  filter: invert(0.85) hue-rotate(170deg) saturate(0.8);
}

/* ── Special callout ─────────────────────────────────────── */
.callout {
  background: rgba(218,37,29,0.08);
  border: 1px solid rgba(218,37,29,0.2);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}
.callout strong { color: #ff8a80; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.footer-cities-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.footer-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2rem;
}
.footer-city-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 14px;
  transition: all 0.2s;
}
.footer-city-link:hover, .footer-city-link.current {
  color: #fff;
  border-color: rgba(255,255,255,0.2);
  text-decoration: none;
}
.footer-city-link.current { background: rgba(255,255,255,0.08); }
.footer-bottom {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.2);
}
.footer-bottom a { color: rgba(255,255,255,0.3); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .weather-months { grid-template-columns: repeat(6, 1fr); }
  .toc-inner { gap: 0; }
  .toc-link { padding: 0.7rem 0.7rem; }
}
@media (max-width: 420px) {
  .info-grid { grid-template-columns: 1fr 1fr; }
}
