/* ==========================================================================
   Adam & Sophie — Wereldwijde Steden Web-App
   Ontworpen voor maximale eenvoud, leesbaarheid en warmte op elk scherm
   ========================================================================== */

:root {
  --bg-page: #FAF7F2;
  --bg-card: #FFFFFF;
  --bg-soft: #F2ECE1;
  --navy-dark: #102A43;
  --navy-mid: #1E3A5F;
  --text-main: #102A43;
  --text-muted: #486581;
  --accent-terra: #D95D39;
  --accent-terra-hover: #BF4B28;
  --accent-gold: #E6A12E;
  --accent-gold-soft: #FFF6E5;
  --yt-red: #CC0000;
  --yt-red-hover: #A80000;
  --border-light: #E2DCD0;
  --shadow-soft: 0 6px 20px rgba(16, 42, 67, 0.08);
  --shadow-hover: 0 10px 28px rgba(16, 42, 67, 0.15);
  --radius-lg: 20px;
  --radius-md: 14px;
  --header-h: 68px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Segoe UI", "Noto Sans", "Noto Sans Arabic", "Nirmala UI", "Yu Gothic UI", system-ui, -apple-system, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  padding-top: var(--header-h);
  min-height: 100vh;
}

/* ==========================================================================
   VASTE BOVENBALK (Altijd links Terug + Menu, altijd rechts Taal)
   ========================================================================== */
.top-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: var(--navy-dark);
  color: #FFFFFF;
  z-index: 2000;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.18);
  /* Houd navigatieknoppen altijd op vaste fysieke plek links en rechts */
  direction: ltr;
}

.top-navbar-inner {
  max-width: 920px;
  height: 100%;
  margin: 0 auto;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  padding: 9px 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease;
  min-height: 46px;
  white-space: nowrap;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

.nav-btn:active {
  transform: scale(0.97);
}

.nav-btn.hidden {
  display: none !important;
}

.nav-btn-lang {
  background: var(--accent-terra);
  border-color: rgba(255, 255, 255, 0.35);
}

.nav-btn-lang:hover {
  background: var(--accent-terra-hover);
}

.nav-brand {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #FFFFFF;
  text-align: center;
  cursor: pointer;
  user-select: none;
}

.nav-brand span {
  color: var(--accent-gold);
}

/* ==========================================================================
   SIMPEL MENU-VENSTER LINKSBOVEN
   ========================================================================== */
.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 42, 67, 0.48);
  z-index: 2100;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: calc(var(--header-h) + 10px) 14px 14px 14px;
}

.menu-backdrop.hidden {
  display: none !important;
}

.menu-sheet {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  width: 100%;
  max-width: 340px;
  padding: 16px;
  border: 2px solid var(--border-light);
}

.menu-item-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-dark);
  background: var(--bg-page);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: start;
  transition: all 0.16s ease;
}

.menu-item-btn:last-child {
  margin-bottom: 0;
}

.menu-item-btn:hover {
  border-color: var(--accent-terra);
  background: var(--accent-gold-soft);
}

/* ==========================================================================
   HOOFDCONTAINER & PAGINA'S
   ========================================================================== */
.app-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 22px 16px 64px 16px;
}

.page-view {
  display: none;
  animation: fadeIn 0.22s ease-out;
}

.page-view.active {
  display: block;
}

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

/* ==========================================================================
   PAGINA 1: WELKOM DOOR ADAM & SOPHIE + 8 GROTE TAALKNOPPEN
   ========================================================================== */
.hero-welcome-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  border: 1.5px solid var(--border-light);
  margin-bottom: 24px;
}

.hero-welcome-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 360px;
  overflow: hidden;
  background: var(--navy-dark);
}

.hero-welcome-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

.hero-welcome-badge {
  position: absolute;
  bottom: 12px;
  left: 14px;
  background: rgba(16, 42, 67, 0.86);
  color: #FFFFFF;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.hero-welcome-body {
  padding: 22px 24px 24px 24px;
  text-align: center;
}

.hero-welcome-title {
  font-size: clamp(22px, 4vw, 29px);
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 8px;
}

.hero-welcome-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.lang-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  min-height: 74px;
  background: var(--bg-card);
  border: 2.5px solid var(--border-light);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: all 0.16s ease;
  font-family: inherit;
}

.lang-btn:hover {
  border-color: var(--accent-terra);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  background: var(--accent-gold-soft);
}

.lang-btn.selected {
  border-color: var(--accent-terra);
  background: var(--accent-gold-soft);
}

.lang-btn-name {
  font-size: 21px;
  font-weight: 800;
  color: var(--navy-dark);
}

.lang-btn-flag {
  font-size: 32px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.flag-svg-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 23px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(0, 0, 0, 0.12);
  vertical-align: middle;
  flex-shrink: 0;
}

.flag-svg-badge svg {
  width: 100%;
  height: 100%;
  display: block;
}

.flag-svg-lg {
  width: 44px;
  height: 30px;
  border-radius: 6px;
}

.flag-svg-nav {
  width: 24px;
  height: 16px;
  border-radius: 3px;
  margin-inline-end: 4px;
}

.flag-svg-inline {
  width: 34px;
  height: 23px;
  margin-inline-start: 8px;
  transform: translateY(-2px);
}

/* ==========================================================================
   PAGINA 2: ADAM & SOPHIE GASTVRIJE BALK + GROTE STEDENKNOPPEN ONDER ELKAAR
   ========================================================================== */
.host-banner-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
  border: 1.5px solid var(--border-light);
  margin-bottom: 24px;
}

.host-avatar-duo {
  width: 108px;
  height: 94px;
  border-radius: 16px;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border: 3px solid var(--accent-gold);
}

.host-banner-text h2 {
  font-size: 21px;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 4px;
}

.host-banner-text p {
  font-size: 17px;
  color: var(--text-muted);
}

.section-heading {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 14px;
  padding: 0 4px;
}

.city-list-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.city-big-btn {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  background: var(--bg-card);
  border: 2.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 14px 20px 14px 14px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  text-align: start;
  font-family: inherit;
  transition: all 0.18s ease;
  min-height: 118px;
}

[dir="rtl"] .city-big-btn {
  padding: 14px 14px 14px 20px;
}

.city-big-btn:hover {
  border-color: var(--accent-terra);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  background: #FFFCF7;
}

.city-btn-thumb {
  width: 148px;
  height: 92px;
  border-radius: 13px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid var(--border-light);
}

.city-btn-content {
  flex: 1;
  min-width: 0;
}

/* Exacte volgorde van Ferdinand: Stadsnaam — Land + Vlag erachter */
.city-btn-mainline {
  font-size: clamp(21px, 3.6vw, 26px);
  font-weight: 800;
  color: var(--navy-dark);
  line-height: 1.25;
  margin-bottom: 6px;
}

.city-btn-subline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
}

.city-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-soft);
  color: var(--navy-mid);
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.city-btn-arrow {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent-terra);
  flex-shrink: 0;
  padding: 0 4px;
}

[dir="rtl"] .city-btn-arrow {
  transform: scaleX(-1);
}

/* ==========================================================================
   PAGINA 3: DE STADSPAGINA (5 HELDERE LAGEN ONDER ELKAAR)
   ========================================================================== */
.city-layer-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1.5px solid var(--border-light);
  padding: 22px;
  margin-bottom: 22px;
}

/* LAAG 1: Stad + Land + Kaart van het Land */
.layer1-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}

.layer1-titles {
  flex: 1;
  min-width: 220px;
}

.layer-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--accent-terra);
  margin-bottom: 4px;
}

.layer1-city-country {
  font-size: clamp(25px, 4.5vw, 33px);
  font-weight: 900;
  color: var(--navy-dark);
  line-height: 1.2;
}

.layer1-host-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-page);
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--border-light);
  margin-bottom: 16px;
}

.layer1-host-mini {
  width: 64px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--accent-gold);
  flex-shrink: 0;
}

.layer1-host-strip p {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-mid);
}

.country-map-box {
  width: 100%;
  height: 230px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--border-light);
  background: #D8E8F2;
  position: relative;
  z-index: 1;
}

/* LAAG 2: Videospeler van de Stad */
.layer-title {
  font-size: 21px;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 12px;
}

.video-frame-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.video-frame-wrapper iframe,
#yt-main-player {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-status-bar {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--accent-gold-soft);
  border: 1.5px solid var(--accent-gold);
  border-radius: 13px;
  padding: 12px 16px;
}

.video-status-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-dark);
  flex: 1;
  min-width: 200px;
}

.video-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.btn-play-full {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--navy-dark);
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  padding: 13px 20px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.16s ease;
  min-height: 48px;
}

.btn-play-full:hover {
  background: var(--navy-mid);
}

.btn-yt-ext {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--bg-page);
  color: var(--navy-dark);
  border: 2px solid var(--border-light);
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  min-height: 48px;
}

.btn-yt-ext:hover {
  border-color: var(--navy-dark);
}

.scheduled-banner {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #EEF6FF;
  border: 1.5px solid #90C2F9;
  color: #102A43;
  font-size: 15px;
  font-weight: 700;
}

.scheduled-banner.hidden {
  display: none !important;
}

/* LAAG 3: Kaart van de Stad met Nummers 1 t/m 12 */
.map-subhint {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.city-highlights-map-box {
  width: 100%;
  height: 390px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--border-light);
  background: #E5EEF5;
  position: relative;
  z-index: 1;
}

/* Genummerde pins op de kaart */
.hl-map-pin {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy-dark);
  color: #FFFFFF;
  border: 3px solid #FFFFFF;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease;
}

.hl-map-pin:hover,
.hl-map-pin.active {
  background: var(--accent-terra);
  transform: scale(1.22);
  z-index: 900 !important;
}

.country-city-pin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-terra);
  color: #FFFFFF;
  font-weight: 900;
  font-size: 15px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 3px solid #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.32);
  white-space: nowrap;
}

/* LAAG 4: De 12 Genummerde Highlight-Knoppen */
.highlights-btn-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.hl-row-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  padding: 12px 18px;
  background: var(--bg-page);
  border: 2px solid var(--border-light);
  border-radius: 14px;
  cursor: pointer;
  text-align: start;
  font-family: inherit;
  transition: all 0.15s ease;
}

.hl-row-btn:hover {
  border-color: var(--accent-terra);
  background: var(--accent-gold-soft);
  transform: translateX(3px);
}

[dir="rtl"] .hl-row-btn:hover {
  transform: translateX(-3px);
}

.hl-row-btn.active {
  border-color: var(--accent-terra);
  background: var(--accent-gold-soft);
  box-shadow: 0 4px 14px rgba(217, 93, 57, 0.18);
}

.hl-num-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy-dark);
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hl-row-btn.active .hl-num-circle,
.hl-row-btn:hover .hl-num-circle {
  background: var(--accent-terra);
}

.hl-row-title {
  flex: 1;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy-dark);
}

.hl-row-time {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  background: #FFFFFF;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  flex-shrink: 0;
  direction: ltr;
}

/* LAAG 5: Bonus Geschiedenisvideo + Abonneer-kaart van Adam & Sophie */
.bonus-history-card {
  background: linear-gradient(135deg, #FFFDF9 0%, #F7EFE2 100%);
  border: 2px solid var(--accent-gold);
}

.bonus-badge {
  display: inline-block;
  background: var(--accent-gold);
  color: var(--navy-dark);
  font-size: 13px;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}

.bonus-sub {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.bonus-soon-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #FFFFFF;
  border: 1.5px dashed var(--accent-gold);
  border-radius: 14px;
  padding: 16px 18px;
}

.bonus-soon-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-mid);
}

/* Abonneer-kaart met Adam (links) & Sophie (rechts) */
.subscribe-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--navy-dark);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-hover);
}

.subscribe-duo-img {
  width: 126px;
  height: 110px;
  border-radius: 16px;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--accent-gold);
  flex-shrink: 0;
}

.subscribe-body h3 {
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 6px;
  color: #FFFFFF;
}

.subscribe-body p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 14px;
}

.btn-subscribe-yt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--yt-red);
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 800;
  padding: 14px 24px;
  border-radius: 13px;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 14px rgba(204, 0, 0, 0.4);
  transition: transform 0.14s ease, background 0.16s ease;
}

.btn-subscribe-yt:hover {
  background: var(--yt-red-hover);
  transform: translateY(-2px);
}

/* ==========================================================================
   MOBIELE SCHERMEN (Telefoons)
   ========================================================================== */
@media (max-width: 640px) {
  .nav-brand {
    display: none;
  }

  .lang-grid {
    grid-template-columns: 1fr;
  }

  .host-banner-card {
    flex-direction: column;
    text-align: center;
  }

  .city-big-btn {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
  }

  .city-btn-thumb {
    width: 100%;
    height: 170px;
  }

  .city-btn-arrow {
    display: none;
  }

  .city-highlights-map-box {
    height: 310px;
  }

  .subscribe-card {
    flex-direction: column;
    text-align: center;
  }
}
