/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg-deep: #0a0b0f;
  --bg-card: rgba(18, 20, 28, 0.72);
  --bg-card-hover: rgba(24, 27, 38, 0.85);
  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(212, 175, 120, 0.25);
  --text: #f4f2ed;
  --text-muted: #c8c6ce;
  --text-dim: #a09ea8;
  --gold: #d4af78;
  --gold-light: #e8cfa0;
  --gold-dim: rgba(212, 175, 120, 0.15);
  --accent: #7eb8da;
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
}

/* ── Background glow ───────────────────────────────────────── */
.page-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.page-backdrop__kenburns {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  filter: saturate(0.9) brightness(0.8);
  transition: opacity 2.8s ease-in-out;
  will-change: transform, opacity;
}

.page-backdrop__kenburns.is-active {
  opacity: 0.32;
  animation: pageBackdropKenBurns 18s ease-in-out infinite alternate;
}

.page-backdrop--slideshow .page-backdrop__kenburns.is-active {
  animation: pageBackdropKenBurns 20s ease-in-out infinite alternate;
}

@keyframes pageBackdropKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.11); }
}

.page-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 12, 20, 0.45) 0%,
    rgba(8, 12, 20, 0.72) 50%,
    rgba(8, 12, 20, 0.92) 100%
  );
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .page-backdrop__kenburns {
    transition: none;
    animation: none !important;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .page-backdrop__kenburns.is-active {
    opacity: 0.32;
  }
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(212, 175, 120, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(126, 184, 218, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 10% 90%, rgba(212, 175, 120, 0.04) 0%, transparent 50%);
}

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 0.75rem;
  row-gap: 0.65rem;
  padding: 1.25rem 1.5rem;
  padding-top: max(1.25rem, env(safe-area-inset-top));
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  line-height: 0;
}

.logo-img {
  display: block;
  height: 2.25rem;
  width: auto;
  max-width: min(100%, 18rem);
}

.header-time {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
  line-height: 1.35;
}

.site-header__start {
  flex-shrink: 0;
  grid-column: 1;
  grid-row: 1;
}

.site-header__search {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  width: 100%;
  max-width: 420px;
  justify-self: center;
}

.search-form--header {
  flex-direction: row;
  align-items: stretch;
  gap: 0.5rem;
  margin: 0;
}

.search-form--header .search-wrapper {
  flex: 1;
  min-width: 0;
}

.search-form--header input[type="search"] {
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  min-height: 42px;
  font-size: 0.9rem;
}

.btn-primary--compact {
  padding: 0.65rem 1rem;
  min-height: 42px;
  font-size: 0.88rem;
  white-space: nowrap;
}

.site-header__search .search-wrapper {
  position: relative;
  z-index: 50;
}

.site-header__end {
  flex-shrink: 0;
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.lang-switch__current {
  color: var(--gold);
  font-weight: 500;
}

.lang-switch__sep {
  color: var(--text-dim);
  user-select: none;
}

.lang-switch__link {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.2rem 0.35rem;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
}

.lang-switch__link:hover {
  color: var(--text);
  background: var(--gold-dim);
}

.lang-switch__link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.site-nav {
  position: relative;
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  justify-content: center;
  width: 100%;
}

.site-nav__toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
}

.site-nav__toggle-icon {
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

.site-nav__menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0.35rem;
  list-style: none;
}

.site-nav__menu a {
  display: block;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--transition), background var(--transition);
}

.site-nav__menu a:hover,
.site-nav__menu a:focus-visible {
  color: var(--gold-light);
  background: var(--gold-dim);
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
    grid-template-rows: auto auto auto;
  }

  .site-header__start {
    grid-column: 1;
    grid-row: 1;
  }

  .site-header__search {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
    justify-self: stretch;
  }

  .site-header__end {
    display: flex;
    grid-column: 2;
    grid-row: 1;
  }

  .header-time {
    display: none;
  }

  .site-nav {
    grid-column: 3;
    grid-row: 1;
    width: auto;
    justify-self: end;
  }

  .site-nav__toggle {
    display: inline-flex;
  }

  .site-nav__menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    min-width: min(100vw - 2rem, 280px);
    flex-direction: column;
    gap: 0;
    padding: 0.35rem;
    background: rgba(14, 16, 22, 0.97);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    z-index: 200;
  }

  .site-nav.is-open .site-nav__menu {
    display: flex;
  }

  .site-nav__menu a {
    padding: 0.75rem 0.85rem;
  }

  .header-time {
    display: none;
  }
}

/* ── Main ──────────────────────────────────────────────────── */
main {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
}

#app {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.view { animation: fadeIn 0.4s ease; }

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

/* ── Hero / Home ───────────────────────────────────────────── */
#homeView {
  position: relative;
  --home-text: #fafaf8;
  --home-text-muted: #e4e2ea;
  --home-text-dim: #c8c6d0;
}

/* Homepage: één zoekveld in de hero, niet ook in de header */
body:has(#homeView:not([hidden])) .site-header__search {
  display: none;
}

.hero-panel {
  position: relative;
  z-index: 3;
  margin-bottom: 2rem;
  border-radius: calc(var(--radius) + 6px);
  overflow: visible;
  isolation: isolate;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}

.hero-backdrop--title {
  /* Hoogte volgt .hero-panel (niet meer vh-based over de kaart heen) */
}

.hero-backdrop__video,
.hero-backdrop__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-backdrop__image {
  background-size: cover;
  background-position: center;
  animation: pageBackdropKenBurns 18s ease-in-out infinite alternate;
}

.hero-backdrop__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 12, 20, 0.25) 0%,
    rgba(8, 12, 20, 0.55) 55%,
    rgba(8, 12, 20, 0.82) 100%
  );
}

.hero-backdrop--title .hero-backdrop__image,
.hero-backdrop--title .hero-backdrop__video {
  filter: brightness(0.58) saturate(0.88);
}

.hero-backdrop--title .hero-backdrop__shade {
  background: linear-gradient(
    180deg,
    rgba(6, 8, 14, 0.5) 0%,
    rgba(6, 8, 14, 0.72) 45%,
    rgba(6, 8, 14, 0.9) 100%
  );
}

#homeView .hero h1 {
  color: var(--home-text);
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55);
}

#homeView .hero-sub,
#homeView .location-hint {
  color: var(--home-text-muted);
}

#homeView .popular h2,
#homeView .tools-section h2,
#homeView .seo-content h2,
#homeView .tz-map-section h2 {
  color: var(--home-text);
}

#homeView .section-intro,
#homeView .seo-content p,
#homeView .tz-map-section .section-intro,
#homeView .tz-map-hint {
  color: var(--home-text-muted);
}

#homeView .seo-content strong {
  color: var(--home-text);
}

#homeView .hero,
#homeView .search-form,
#homeView .popular-section,
#homeView .tools-section,
#homeView .seo-content,
#homeView .tz-map-section {
  position: relative;
  z-index: 2;
  margin-top: 1.5rem;
  padding-top: 0.75rem;
}

#homeView .location-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  max-width: 36rem;
  margin: 0.75rem auto 0;
  text-align: center;
  line-height: 1.55;
}

#homeView .location-hint__text {
  display: block;
}

.geo-opt-in {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.55rem 1.15rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gold-light);
  background: rgba(212, 175, 120, 0.14);
  border: 1px solid rgba(212, 175, 120, 0.45);
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.geo-opt-in--map {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  z-index: 4;
  font-size: 0.82rem;
  padding: 0.45rem 0.85rem;
  color: #b8e4ff;
  background: rgba(10, 18, 32, 0.88);
  border-color: rgba(126, 200, 255, 0.38);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.geo-opt-in--map:hover {
  color: #dff4ff;
  background: rgba(14, 28, 48, 0.95);
  border-color: rgba(158, 212, 255, 0.55);
}

.geo-opt-in--map.is-hidden {
  display: none;
}

.geo-opt-in:hover {
  color: var(--gold-light);
  background: var(--gold-dim);
}

.geo-opt-in:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.geo-opt-in--loading {
  cursor: wait;
  opacity: 0.92;
  pointer-events: none;
}

.geo-opt-in__spinner {
  display: inline-block;
  width: 0.95rem;
  height: 0.95rem;
  margin-right: 0.45rem;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  vertical-align: -0.15em;
}

.geo-opt-in--map .geo-opt-in__spinner {
  border-color: rgba(126, 200, 255, 0.25);
  border-top-color: #b8e4ff;
}

.location-hint__loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.location-hint__loading .geo-opt-in__spinner {
  width: 1.1rem;
  height: 1.1rem;
  margin-right: 0;
  border-color: rgba(212, 175, 120, 0.25);
  border-top-color: var(--gold-light);
}

.tz-map-markers .mini-daynight-marker--user circle {
  fill: #7ec8ff;
  stroke: #fff;
  stroke-width: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero-backdrop__video {
    display: none;
  }
}

.hero-panel .hero {
  position: relative;
  z-index: 1;
}

.hero-panel .search-wrapper {
  position: relative;
  z-index: 40;
}

.hero {
  text-align: center;
  padding: 3rem 0 2.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
}

/* ── Search ────────────────────────────────────────────────── */
.search-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 560px;
  margin: 0 auto;
}

.search-wrapper {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.15rem;
  height: 1.15rem;
  color: var(--gold);
  opacity: 0.85;
  pointer-events: none;
  z-index: 2;
}

#searchInput,
.search-wrapper input[type="search"] {
  width: 100%;
  padding: 1rem 1rem 1rem 2.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px; /* voorkomt zoom op iOS */
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  backdrop-filter: blur(12px);
  min-height: 48px;
}

#searchInput::placeholder,
.search-wrapper input[type="search"]::placeholder { color: var(--text-dim); }

#searchInput:focus,
.search-wrapper input[type="search"]:focus {
  border-color: var(--border-glow);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: rgba(14, 16, 22, 0.96);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  list-style: none;
  max-height: 320px;
  overflow-y: auto;
  z-index: 1200;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.search-results--up {
  top: auto;
  bottom: calc(100% + 6px);
}

.search-results li {
  padding: 0.85rem 1.1rem;
  min-height: 48px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.search-results li:last-child { border-bottom: none; }

.search-results li:hover,
.search-results li[aria-selected="true"] {
  background: var(--bg-card-hover);
}

.search-results .result-name {
  font-weight: 500;
  display: block;
}

.search-results .result-detail {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  min-height: 48px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, #b8945f 100%);
  color: #0a0b0f;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(212, 175, 120, 0.3);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
}

.btn-ghost:hover { color: var(--gold); }

.location-hint {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  min-height: 1.3em;
}

/* ── Popular destinations ──────────────────────────────────── */
.popular {
  padding: 2rem 0;
}

.popular h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-intro {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

/* ── SEO content block (homepage) ──────────────────────────── */
.seo-content {
  max-width: 640px;
  margin: 2.5rem auto 0;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}

.seo-content h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.seo-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.65;
}

.seo-content strong { color: var(--text); font-weight: 500; }
.seo-content em { color: var(--gold); font-style: normal; }

.popular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.popular-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.1rem 0.75rem;
  min-height: 88px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition);
  backdrop-filter: blur(8px);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.popular-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

/* ── Flag icons (werkt op alle platformen, incl. Windows) ─── */
.flag-icon {
  display: inline-block;
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  vertical-align: middle;
}

.flag-icon--card {
  width: 32px;
  height: 24px;
  border-radius: 3px;
}

.flag-icon--lg {
  width: 40px;
  height: 30px;
  border-radius: 4px;
}

.flag-icon--inline {
  width: 20px;
  height: 15px;
  margin-right: 0.35rem;
}

.flag-icon--fallback {
  display: inline-block;
  width: 24px;
  height: 18px;
  background: var(--bg-card);
  border-radius: 2px;
  color: var(--text-dim);
  font-size: 0.65rem;
  line-height: 18px;
  text-align: center;
}

.popular-card__flag {
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
}

.popular-card__name {
  font-weight: 500;
  font-size: 0.9rem;
}

.popular-card__time {
  font-size: 0.85rem;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

/* ── Countries grid ────────────────────────────────────────── */
.countries {
  padding: 1.5rem 0 2rem;
}

.countries h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-align: center;
}

.countries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.6rem;
  max-height: 420px;
  overflow-y: auto;
  padding: 0.25rem;
  -webkit-overflow-scrolling: touch;
}

.country-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  min-height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.country-card:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
}

.country-card__flag {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.country-card__name {
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.25;
}

/* ── Breadcrumbs ───────────────────────────────────────────── */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.breadcrumbs a:hover { color: var(--gold); }

.breadcrumbs .sep {
  color: var(--text-dim);
  user-select: none;
}

.breadcrumbs .current {
  color: var(--text);
}

/* ── Location header ───────────────────────────────────────── */
.location-header {
  text-align: center;
  margin-bottom: 2rem;
}

.location-flag {
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.location-flag .flag-icon--lg {
  width: 48px;
  height: 36px;
}

.location-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.2;
}

.location-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 0.4rem;
}

.seo-intro {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 400;
  max-width: 560px;
  margin: 0.75rem auto 0;
  line-height: 1.55;
}

/* ── Clock card ────────────────────────────────────────────── */
.clock-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.clock-face {
  position: relative;
  width: min(220px, 50vw);
  height: min(220px, 50vw);
}

.clock-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: radial-gradient(circle at 40% 35%, rgba(212, 175, 120, 0.06) 0%, transparent 60%);
  box-shadow:
    inset 0 0 40px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(212, 175, 120, 0.06);
}

.clock-ring::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Hour markers */
.clock-ring::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from 0deg,
    var(--gold-dim) 0deg 1deg,
    transparent 1deg 30deg
  );
  mask: radial-gradient(circle, transparent 62%, black 63%);
  -webkit-mask: radial-gradient(circle, transparent 62%, black 63%);
}

.clock-hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform-origin: bottom center;
  border-radius: 4px;
  transition: transform 0.1s linear;
}

.clock-hand--hour {
  width: 4px;
  height: 28%;
  margin-left: -2px;
  background: linear-gradient(to top, var(--gold), var(--gold-light));
  z-index: 3;
}

.clock-hand--minute {
  width: 3px;
  height: 38%;
  margin-left: -1.5px;
  background: linear-gradient(to top, var(--text-muted), var(--text));
  z-index: 4;
}

.clock-hand--second {
  width: 2px;
  height: 42%;
  margin-left: -1px;
  background: var(--accent);
  z-index: 5;
  transition: none;
}

.clock-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--gold);
  z-index: 6;
  box-shadow: 0 0 8px rgba(212, 175, 120, 0.5);
}

.digital-time {
  text-align: center;
}

.digital-time__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--gold-light);
  line-height: 1;
  text-shadow: 0 0 40px rgba(212, 175, 120, 0.2);
}

.digital-time__date {
  margin-top: 0.6rem;
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* ── Info grid ─────────────────────────────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.info-stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.info-card__value--compact {
  font-size: clamp(1.05rem, 2.2vw, 1.55rem);
  line-height: 1.25;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.info-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  transition: border-color var(--transition);
}

.info-card:hover { border-color: rgba(255, 255, 255, 0.12); }

.info-card--highlight {
  border-color: var(--border-glow);
  background: linear-gradient(135deg, rgba(212, 175, 120, 0.06) 0%, var(--bg-card) 100%);
}

.info-card--wide {
  grid-column: 1 / -1;
}

.info-card__icon {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
  opacity: 0.9;
}

.info-card__label {
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.info-card__value {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}

.info-card__detail {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 0.45rem;
  line-height: 1.45;
}

.facts-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem 1.5rem;
  margin-top: 0.5rem;
}

/* ── Sun times ─────────────────────────────────────────────── */
.sun-section {
  padding: 1.5rem;
}

.sun-location-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.sun-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.sun-item__heading {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 0.65rem;
}

.sun-item__heading--sub {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.sun-item__time {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 3.5rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--gold-light);
  line-height: 1;
  text-shadow: 0 0 30px rgba(212, 175, 120, 0.15);
}

.sun-summary {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.55;
}

/* ── Sun timeline ──────────────────────────────────────────── */
.sun-timeline {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.sun-timeline__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.sun-timeline__date {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text);
}

.sun-timeline__badge {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid var(--border-glow);
}

.sun-timeline__range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.sun-timeline__slider {
  width: 100%;
  height: 8px;
  margin: 0.35rem 0 0.75rem;
  padding: 12px 0; /* groter touch-gebied */
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.08);
  background-clip: content-box;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  touch-action: pan-x;
}

.sun-timeline__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border: 2px solid var(--bg-deep);
  box-shadow: 0 2px 12px rgba(212, 175, 120, 0.45);
  cursor: grab;
}

.sun-timeline__slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border: 2px solid var(--bg-deep);
  box-shadow: 0 2px 12px rgba(212, 175, 120, 0.45);
  cursor: grab;
}

.sun-daybar__track {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1a1d28 0%, #1a1d28 100%);
  overflow: visible;
  border: 1px solid var(--border);
}

.sun-daybar__daylight {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(212, 175, 120, 0.35), rgba(232, 207, 160, 0.55), rgba(212, 175, 120, 0.35));
}

.sun-daybar__marker {
  position: absolute;
  top: 50%;
  width: 3px;
  height: 22px;
  margin-top: -11px;
  margin-left: -1.5px;
  border-radius: 2px;
  z-index: 2;
}

.sun-daybar__marker--rise {
  background: #f0c878;
  box-shadow: 0 0 8px rgba(240, 200, 120, 0.6);
}

.sun-daybar__marker--set {
  background: #c98b5a;
  box-shadow: 0 0 8px rgba(201, 139, 90, 0.5);
}

.sun-daybar__scale {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.7rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.sun-daybar__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 0.65rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sun-daybar__legend-rise::before,
.sun-daybar__legend-set::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 0.4rem;
  vertical-align: middle;
}

.sun-daybar__legend-rise::before { background: #f0c878; }
.sun-daybar__legend-set::before { background: #c98b5a; }

.sun-user {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.fact-item {
  font-size: 0.9rem;
}

.fact-item strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.15rem;
}

/* ── Actions ───────────────────────────────────────────────── */
.actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}

.location-search {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.actions--location-search {
  margin-top: 30px;
  padding: 1.35rem 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(212, 175, 120, 0.08) 0%, var(--bg-card) 55%);
  border: 1px solid var(--border-glow);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
}

.location-search-label {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  text-align: center;
  color: var(--text);
}

/* ── Loading & Error ───────────────────────────────────────── */
.view--loading,
.view--error {
  text-align: center;
  padding: 5rem 1rem;
}

.loader {
  width: 40px;
  height: 40px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-text { color: var(--text-muted); }

.error-icon {
  font-size: 3rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.view--error h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.view--error p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 2.5rem 1.5rem 1.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem 1.5rem;
  text-align: left;
}

.footer-block h2,
.footer-block h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.65rem;
}

.footer-block h2 { font-size: 1.2rem; }
.footer-block h3 { font-size: 1rem; }

.footer-block p {
  line-height: 1.6;
  color: var(--text-muted);
}

.footer-block ul {
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.footer-block a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-block a:hover { color: var(--gold); }

.footer-bottom {
  max-width: 1080px;
  margin: 0 auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--gold); }

.trending {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.trending h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.trending-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
}

.trending-links a {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color var(--transition);
}

.trending-links a:hover { color: var(--gold-light); }

/* ── Time hero (dagdeel-achtergrond) ───────────────────────── */
.time-hero {
  transition: border-color 0.4s ease, color 0.4s ease;
  position: relative;
  overflow: hidden;
  padding: 0;
  gap: 0;
}

.clock-sky {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}

.clock-sky__gradient {
  position: absolute;
  inset: 0;
  transition: background 1.1s ease;
}

.clock-sky__stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.8s ease;
}

.clock-sky__sun,
.clock-sky__moon {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
}

.clock-sky--ready .clock-sky__sun:not([hidden]),
.clock-sky--ready .clock-sky__moon:not([hidden]) {
  opacity: 1;
  transition: opacity 0.35s ease;
}

.clock-sky__sun {
  width: 140px;
  height: auto;
  filter: drop-shadow(0 0 16px rgba(255, 210, 90, 0.45));
}

.clock-sky__moon {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 0 12px rgba(180, 210, 255, 0.35));
}

.clock-sky__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem 1.5rem;
  width: 100%;
}

.clock-sky__content::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 80% 70% at 50% 45%, rgba(0, 0, 0, 0.12) 0%, transparent 72%);
  pointer-events: none;
  z-index: -1;
}

.daypart-em {
  font-weight: 600;
  font-size: 1.02em;
  letter-spacing: 0.01em;
  color: #ffe7a3;
}

.daypart-panel {
  width: 100%;
  max-width: 22rem;
  margin: 0.25rem auto 0;
  padding: 1.1rem 1.2rem;
  border-radius: calc(var(--radius-sm) + 2px);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  text-align: left;
}

.daypart-panel__hero {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.daypart-panel__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.45rem;
  line-height: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.daypart-panel__title {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.daypart-panel__eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.72;
  line-height: 1.3;
}

.daypart-panel__part {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: capitalize;
}

.daypart-panel__place {
  font-size: 0.92rem;
  font-weight: 400;
  opacity: 0.85;
  line-height: 1.35;
}

.daypart-panel__facts {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.daypart-panel__fact {
  margin: 0;
  padding: 0.65rem 0.85rem;
  border-left: none;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.74);
  opacity: 1;
}

.daypart-panel__value {
  font-weight: 600;
  font-size: 1.08em;
  letter-spacing: 0.01em;
  color: #ffffff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.time-hero--morning .daypart-panel__part,
.time-hero--day .daypart-panel__part,
.time-hero--afternoon .daypart-panel__part {
  color: #f0f8ff;
  text-shadow: 0 1px 12px rgba(8, 40, 70, 0.35);
}

.time-hero--sunrise .daypart-panel__part {
  color: #fff8f0;
  text-shadow: 0 1px 10px rgba(60, 28, 8, 0.3);
}

.time-hero--sunset .daypart-panel__part,
.time-hero--dusk .daypart-panel__part,
.time-hero--evening .daypart-panel__part {
  color: #fff5e8;
  text-shadow: 0 1px 12px rgba(20, 12, 8, 0.35);
}

.time-hero--night .daypart-panel__part,
.time-hero--dawn .daypart-panel__part {
  color: #f2f6ff;
  text-shadow: 0 1px 14px rgba(8, 12, 32, 0.45);
}

.time-hero--morning .daypart-em,
.time-hero--day .daypart-em,
.time-hero--afternoon .daypart-em {
  color: #b8e4ff;
}

.time-hero--sunrise .daypart-em {
  color: #4a2208;
}

.time-hero--sunset .daypart-em,
.time-hero--dusk .daypart-em,
.time-hero--evening .daypart-em {
  color: #fff0d8;
}

#timezoneName {
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.35;
  max-width: 100%;
}

.sun-timeline__track {
  position: relative;
  height: 1.25rem;
  margin: 0.35rem 0 0.15rem;
}

.sun-timeline__line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: linear-gradient(90deg, var(--border) 0%, var(--gold-dim) 50%, var(--border) 100%);
  border-radius: 1px;
}

.sun-timeline__tick {
  position: absolute;
  top: 50%;
  width: 2px;
  height: 8px;
  margin-top: -4px;
  margin-left: -1px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 1px;
}

.sun-timeline__tick--today {
  height: 12px;
  margin-top: -6px;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(212, 175, 120, 0.45);
}

.sun-timeline__hint {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .clock-sky__sun,
  .clock-sky__moon,
  .clock-sky__gradient {
    transition: none;
  }
}

.clock-card.time-hero {
  display: block;
}

.clock-card.time-hero--night,
.clock-card.time-hero--dawn,
.clock-card.time-hero--sunrise,
.clock-card.time-hero--morning,
.clock-card.time-hero--day,
.clock-card.time-hero--afternoon,
.clock-card.time-hero--evening,
.clock-card.time-hero--sunset,
.clock-card.time-hero--dusk {
  backdrop-filter: blur(12px);
}

.clock-card.time-hero--night {
  background: rgba(10, 16, 32, 0.35);
  border-color: rgba(100, 130, 200, 0.25);
  color: #e8ecf5;
}

.clock-card.time-hero--dawn {
  background: rgba(20, 16, 40, 0.28);
  border-color: rgba(200, 120, 90, 0.3);
  color: #fff5ee;
}

.clock-card.time-hero--sunrise {
  background: rgba(40, 24, 8, 0.2);
  border-color: rgba(255, 180, 100, 0.35);
  color: #1a1208;
}

.clock-card.time-hero--morning {
  background: rgba(8, 24, 48, 0.18);
  border-color: rgba(100, 170, 230, 0.3);
  color: #0d2137;
}

.clock-card.time-hero--day {
  background: rgba(6, 28, 56, 0.15);
  border-color: rgba(80, 160, 230, 0.28);
  color: #0a2540;
}

.clock-card.time-hero--afternoon,
.clock-card.time-hero--evening {
  background: rgba(12, 20, 40, 0.2);
  border-color: rgba(120, 150, 200, 0.25);
  color: #1a2838;
}

.clock-card.time-hero--sunset {
  background: rgba(32, 16, 8, 0.22);
  border-color: rgba(220, 120, 60, 0.32);
  color: #fff8f0;
}

.clock-card.time-hero--dusk {
  background: rgba(16, 12, 32, 0.32);
  border-color: rgba(140, 100, 180, 0.28);
  color: #ece4ff;
}

.clock-card.time-hero--night .digital-time__value,
.clock-card.time-hero--dusk .digital-time__value,
.clock-card.time-hero--dawn .digital-time__value,
.clock-card.time-hero--sunset .digital-time__value {
  color: inherit;
}

.clock-card.time-hero--morning .digital-time__value,
.clock-card.time-hero--day .digital-time__value,
.clock-card.time-hero--sunrise .digital-time__value,
.clock-card.time-hero--afternoon .digital-time__value,
.clock-card.time-hero--evening .digital-time__value {
  color: inherit;
}

.clock-card.time-hero--morning .digital-time__date,
.clock-card.time-hero--day .digital-time__date,
.clock-card.time-hero--sunrise .digital-time__date,
.clock-card.time-hero--afternoon .digital-time__date,
.clock-card.time-hero--evening .digital-time__date,
.clock-card.time-hero--morning .daypart-extra,
.clock-card.time-hero--day .daypart-extra,
.clock-card.time-hero--sunrise .daypart-extra,
.clock-card.time-hero--afternoon .daypart-extra,
.clock-card.time-hero--evening .daypart-extra,
.clock-card.time-hero--morning .daypart-daylight,
.clock-card.time-hero--day .daypart-daylight,
.clock-card.time-hero--sunrise .daypart-daylight,
.clock-card.time-hero--afternoon .daypart-daylight,
.clock-card.time-hero--evening .daypart-daylight {
  color: inherit;
  opacity: 0.82;
}

.daypart-status,
.daypart-extra,
.daypart-daylight {
  /* legacy; replaced by .daypart-panel */
  display: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.btn-ghost--active {
  border-color: var(--gold);
  color: var(--gold-light);
}

/* ── Bellen-blok ───────────────────────────────────────────── */
.call-intro {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.call-advice-hint {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.call-table-wrap {
  overflow-x: auto;
}

.call-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.call-table th,
.call-table td {
  padding: 0.55rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.call-table th {
  color: var(--text-muted);
  font-weight: 500;
}

.country-cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.country-city-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  transition: border-color var(--transition);
}

.country-city-link:hover {
  border-color: var(--border-glow);
  color: var(--gold-light);
}

/* ── Homepage tools ────────────────────────────────────────── */
.tools-section {
  padding: 2rem 0;
  max-width: 900px;
  margin: 0 auto;
}

.tools-section h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1.25rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.tool-card {
  display: block;
  padding: 1.25rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition);
}

.tool-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.tool-card__icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.tool-card h3 {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.tool-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 899px) {
  .info-stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 599px) {
  .info-grid {
    grid-template-columns: 1fr;
  }

  .info-stats-row {
    grid-template-columns: 1fr;
  }

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

  .sun-item__heading {
    font-size: clamp(1rem, 4.2vw, 1.15rem);
  }

  .sun-item__time {
    font-size: clamp(2.25rem, 12vw, 3rem);
  }

  .sun-timeline__range-labels {
    font-size: 0.68rem;
    gap: 0.25rem;
  }

  .sun-timeline__range-labels span:nth-child(2) {
    display: none; /* "Vandaag" staat al in de badge */
  }

  .sun-timeline__date {
    font-size: 1rem;
    line-height: 1.35;
  }

  .clock-card {
    padding: 1.75rem 1rem;
    gap: 1.5rem;
  }

  .clock-sky__content {
    padding: 1.75rem 1rem;
    gap: 1.25rem;
  }

  .daypart-panel {
    max-width: 100%;
  }

  .seo-content {
    padding: 1.25rem;
    margin-top: 1.5rem;
  }

  .actions {
    align-items: center;
  }

  .actions .btn-secondary {
    align-self: center;
  }

  .location-search {
    flex-direction: column;
    width: 100%;
  }

  .location-search .btn-primary {
    width: 100%;
  }

  .footer-links,
  .trending-links {
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
  }

  .footer-links a,
  .trending-links a {
    display: block;
    padding: 0.35rem 0;
    min-height: 44px;
    line-height: 1.4;
  }

  .location-header {
    margin-bottom: 1.5rem;
  }

  .location-header h1 {
    font-size: clamp(1.5rem, 6.5vw, 2rem);
    padding: 0 0.25rem;
  }

  .seo-intro {
    font-size: 0.9rem;
    padding: 0 0.25rem;
  }

  .logo-img {
    height: 1.9rem;
    max-width: min(100%, 14rem);
  }

  .header-time {
    font-size: 0.75rem;
    max-width: 52%;
  }
}

@media (max-width: 380px) {
  .popular-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sun-daybar__legend {
    flex-direction: column;
    gap: 0.35rem;
  }
}

@media (min-width: 600px) {
  .actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
  }

  .location-search {
    flex: 1;
    min-width: 280px;
    max-width: 480px;
  }
  .search-form {
    flex-direction: row;
    align-items: stretch;
  }

  .search-wrapper { flex: 1; }

  .btn-primary { white-space: nowrap; }

  .clock-card {
    flex-direction: row;
    justify-content: center;
    padding: 3rem 2.5rem;
    gap: 3.5rem;
  }

  .clock-sky__content {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 3.5rem;
    row-gap: 1rem;
    align-items: center;
    padding: 3rem 2.5rem;
  }

  .clock-sky__content .clock-face {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
  }

  .clock-sky__content .digital-time {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
    align-self: end;
  }

  .clock-sky__content .daypart-panel {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    max-width: none;
    align-self: start;
  }

  .clock-face {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
  }

  .digital-time { text-align: left; }
}

/* ── FAQ ───────────────────────────────────────────────────── */
.faq-section {
  max-width: 720px;
  margin: 2.5rem auto 0;
}

.faq-section h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--text);
}

#locationFaqCard .faq-section {
  margin-top: 0;
}

.faq-list {
  display: grid;
  gap: 0.5rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.15rem;
  padding-right: 2.25rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--text);
  list-style: none;
  position: relative;
  line-height: 1.45;
  -webkit-tap-highlight-color: transparent;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 300;
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item__body {
  padding: 0 1.15rem 1.1rem;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

.faq-item__body strong { color: var(--text); font-weight: 500; }

.faq-item__body a {
  color: var(--gold);
  text-decoration: none;
}

.faq-item__body a:hover { text-decoration: underline; }

.faq-more {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.9rem;
}

.faq-more a {
  color: var(--gold);
  text-decoration: none;
}

.faq-more a:hover { text-decoration: underline; }

/* ── Mini dag/nacht-kaart op plaatspagina ──────────────────── */
.mini-daynight-wrap {
  display: grid;
  gap: 0.75rem;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.mini-daynight-map {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
  border-radius: var(--radius-sm);
}

.mini-daynight-country {
  fill: rgba(120, 155, 200, 0.32);
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 0.35;
}

.mini-daynight-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.mini-daynight-legend__dot {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.mini-daynight-legend__dot--place {
  background: #e8c382;
  box-shadow: 0 0 0 2px rgba(232, 195, 130, 0.35);
}

.mini-daynight-legend__dot--user {
  background: #7ec8ff;
  box-shadow: 0 0 0 2px rgba(126, 200, 255, 0.35);
}

.mini-daynight-marker--place circle {
  fill: #e8c382;
  stroke: #fff;
  stroke-width: 1.2;
}

.mini-daynight-marker--user circle {
  fill: #7ec8ff;
  stroke: #fff;
  stroke-width: 1;
}

.mini-daynight-hint {
  margin-top: 0.65rem;
  font-size: 0.88rem;
}

.mini-daynight-hint a {
  color: var(--gold);
  text-decoration: none;
}

.mini-daynight-hint a:hover { text-decoration: underline; }

/* ── Advertenties ──────────────────────────────────────────── */
.ad-slot {
  margin: 1.5rem auto;
  max-width: 728px;
  min-height: 90px;
  text-align: center;
}

.ad-slot ins.adsbygoogle:empty {
  display: none;
}

/* ── Legal & contact pages ─────────────────────────────────── */
.legal-article { padding-bottom: 1rem; }

.cookie-prefs-panel {
  margin: 1.25rem 0 1.5rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.contact-form {
  display: grid;
  gap: 1rem;
  margin: 1.75rem 0 1rem;
  max-width: 520px;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
}

.contact-form textarea { resize: vertical; min-height: 140px; }

.contact-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.contact-privacy {
  font-size: 0.85rem;
  color: var(--text-dim);
  max-width: 520px;
}

.contact-privacy a { color: var(--gold); text-decoration: none; }
.contact-privacy a:hover { text-decoration: underline; }

.contact-notice {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  max-width: 520px;
}

.contact-notice--ok {
  background: rgba(126, 184, 218, 0.12);
  border: 1px solid rgba(126, 184, 218, 0.35);
  color: var(--text);
}

.contact-notice--err {
  background: rgba(220, 80, 80, 0.1);
  border: 1px solid rgba(220, 80, 80, 0.35);
  color: var(--text);
}

@media (max-width: 768px) {
  #homeView .hero-panel {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
    padding: 1.25rem 1rem 1.5rem;
    box-sizing: border-box;
  }

  #homeView .hero {
    padding: 0.75rem 0 0.25rem;
  }
}

@media (max-width: 480px) {
  .site-header { padding: 1rem; padding-top: max(1rem, env(safe-area-inset-top)); }
  #app { padding: 0 1rem 2rem; }
  .hero { padding: 1.5rem 0 1.25rem; }
  #homeView .hero { padding: 0.5rem 0 0; }
  .hero-sub { font-size: 0.95rem; margin-bottom: 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .clock-hand--second { display: none; }
}

/* ── Stay22 hotels ─────────────────────────────────────────── */
.stay22-section {
  padding: 1.25rem 1.35rem 1.1rem;
}

.stay22-section__header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.stay22-section__header .info-card__icon {
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.stay22-section__intro {
  min-width: 0;
}

.stay22-section__dates {
  margin-top: 0.2rem;
  color: var(--gold-light);
  font-size: 0.88rem;
  font-weight: 500;
}

.stay22-section__price {
  color: var(--gold-light);
  font-weight: 700;
}

.stay22-section__lead {
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.stay22-section__lead--stats {
  color: var(--text);
}

.stay22-preview {
  margin-bottom: 1rem;
}

.stay22-preview__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.stay22-preview__link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.stay22-preview__link:hover,
.stay22-preview__link:focus-visible {
  border-color: var(--border-glow);
  background: rgba(212, 175, 120, 0.08);
}

.stay22-preview__link.is-active {
  border-color: var(--border-glow);
  background: var(--gold-dim);
}

.stay22-preview__guests {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
  min-width: 2.1rem;
}

.stay22-preview__guest-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.stay22-preview__guest-count {
  font-weight: 700;
  font-size: 0.95rem;
}

.stay22-preview__text {
  flex: 1;
  min-width: 0;
  font-size: 0.92rem;
  line-height: 1.35;
}

.stay22-preview__from {
  color: var(--text-muted);
}

.stay22-preview__price {
  color: var(--gold-light);
  font-weight: 700;
}

.stay22-preview__arrow {
  flex-shrink: 0;
  color: var(--gold);
  font-size: 1.1rem;
  line-height: 1;
}

.stay22-embed-wrap {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
}

.stay22-embed {
  display: block;
  width: 100%;
  min-height: 420px;
  height: 62vh;
  max-height: 560px;
  border: 0;
}

.stay22-section__note {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.45;
}

@media (max-width: 640px) {
  .stay22-preview__actions {
    grid-template-columns: 1fr;
  }

  .stay22-embed {
    min-height: 360px;
    height: 52vh;
    max-height: 480px;
  }
}
