/* ===========================================================================
   LuchthaventaxiVergelijken — Website UI Kit styles
   Built on the production assets/style.css, extended mobile-first with the
   aspirational animated globe + street-scene motif requested by the client.
   =========================================================================== */
@import url('colors_and_type.css');

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--bg);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ---- Header ------------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; min-width: 0; flex: 0 1 auto; overflow: hidden; }
.logo-badge { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: var(--r-tile);
  background: var(--grad-brand); color: #fff; font-size: 15px; }
.logo-text { font-size: 18px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo-text strong { color: var(--green); }
.nav { display: flex; align-items: center; gap: 22px; flex: 0 0 auto; }
.nav a { color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--ink); }
.nav-cta { background: var(--green); color: #fff !important; padding: 9px 14px; border-radius: var(--r-pill); font-weight: 600; white-space: nowrap; flex: 0 0 auto; }
@media (max-width: 720px) { .nav a:not(.nav-cta) { display: none; } .nav { gap: 12px; } }
@media (max-width: 560px) {
  .site-header { padding: 11px 14px; gap: 10px; }
  .logo-text { font-size: 15px; }
  .logo-badge { width: 30px; height: 30px; font-size: 13px; }
  .nav-cta { padding: 8px 12px; font-size: 14px; }
}

/* ---- Hero -------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; color: #fff; padding: 52px 20px 56px; }
.hero-bg { position: absolute; inset: 0; background: var(--grad-hero-glow), var(--grad-hero); }
.hero-inner { position: relative; z-index: 2; max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-copy h1 { font-size: var(--fs-display); line-height: var(--lh-tight); font-weight: var(--fw-heavy); letter-spacing: var(--tracking-tight); }
.hero-copy .accent { color: var(--accent-mint); }
.lead { margin-top: 14px; font-size: var(--fs-lead); color: var(--fg-on-dark-2); max-width: 520px; }
.hero-points { list-style: none; margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-points li { font-weight: 600; color: #eafff3; }
@media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; } .hero { padding-bottom: 40px; } }

/* spinning globe motif (top-right of hero) */
.globe { position: absolute; top: 30px; right: 6%; width: 124px; height: 124px; pointer-events: none; z-index: 1; }
.globe .ball { width: 100%; height: 100%; border-radius: 50%; font-size: 96px; line-height: 124px; text-align: center;
  filter: drop-shadow(0 8px 22px rgba(0,0,0,.3)); animation: spin 14s linear infinite; }
.globe .orbit { position: absolute; inset: -14px; border-radius: 50%; animation: orbit 6s linear infinite; }
.globe .orbit .plane { position: absolute; top: -10px; left: 50%; font-size: 26px; transform: translateX(-50%) rotate(45deg); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes orbit { to { transform: rotate(360deg); } }
@media (max-width: 860px) { .globe { width: 84px; height: 84px; top: 16px; } .globe .ball { font-size: 64px; line-height: 84px; } }

/* ---- Calculator card --------------------------------------------------- */
.card { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 22px; color: var(--ink); }
.calc-title { font-size: 20px; margin-bottom: 14px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field select { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--r-input); font-size: 16px; background: #fff; appearance: none; font-family: var(--font-ui); color: var(--ink); }
.field select:focus { outline: 2px solid var(--focus-ring); border-color: transparent; }
.btn-primary { width: 100%; border: 0; cursor: pointer; background: var(--grad-brand); color: #06243f; font-weight: 700; font-size: 16px;
  padding: 15px; border-radius: var(--r-btn); box-shadow: var(--shadow-btn); transition: transform .12s ease; font-family: var(--font-ui); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

/* ---- Results ----------------------------------------------------------- */
.results-wrap { margin-top: 8px; position: relative; z-index: 3; padding-bottom: 10px; }
.results-meta { font-weight: 600; color: var(--muted); margin: 0 0 12px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.results { display: flex; flex-direction: column; gap: 12px; }
.result { display: flex; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-result); padding: 16px; box-shadow: var(--shadow-card); animation: rise .4s ease both; }
.result.best { border: 2px solid var(--green-bright); box-shadow: var(--shadow-best); }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.result .ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: var(--green-wash); }
.result .info { flex: 1; min-width: 0; }
.result .info h3 { font-size: 17px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.badge { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--green-bright); color: #06243f; }
.badge.gray { background: var(--gray-chip); color: var(--muted); }
.result .sub { color: var(--muted); font-size: 13px; }
.result .price { text-align: right; }
.result .price .amount { font-size: var(--fs-price); font-weight: 800; }
.result.best .price .amount { color: var(--green); }
.result .book { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 700; color: #fff; background: var(--green); padding: 7px 12px; border-radius: 999px; }
.result .book.ghost { background: var(--gray-chip); color: var(--ink); }
.disclaimer { margin-top: 14px; font-size: 12px; color: var(--muted); }

/* ---- Sections ---------------------------------------------------------- */
.section-title { font-size: var(--fs-h2); font-weight: 800; text-align: center; margin: 14px 0 26px; }
.airports { padding: 56px 0; }
.airport-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.airport-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-align: center; font-weight: 600;
  transition: transform .12s ease, box-shadow .12s ease; cursor: pointer; }
.airport-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.airport-card.active { border-color: var(--green-bright); box-shadow: var(--shadow-best); }
.airport-card .a-ico { font-size: 26px; }
.airport-card .a-from { display: block; font-size: 13px; color: var(--green); font-weight: 700; margin-top: 4px; }
@media (max-width: 860px) { .airport-grid { grid-template-columns: repeat(2,1fr); } }

.why { padding: 20px 0 60px; }
.why-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.why-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.why-ico { font-size: 28px; }
.why-card h3 { margin: 10px 0 6px; font-size: 17px; }
.why-card p { color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr 1fr; } }

.cta-band { background: var(--grad-cta); color: #fff; padding: 44px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-inner h2 { font-size: 24px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-ghost { display: inline-block; background: rgba(255,255,255,.15); color: #fff; padding: 14px 18px; border-radius: 14px; font-weight: 700; border: 1px solid rgba(255,255,255,.3); }
.cta-actions .btn-primary { width: auto; padding: 14px 22px; }

.site-footer { background: var(--ink); color: #c7cedb; padding: 48px 0 28px; margin-top: 10px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.site-footer .logo-text { color: #fff; }
.site-footer h4 { color: #fff; margin-bottom: 10px; font-size: 15px; }
.site-footer ul { list-style: none; }
.site-footer .muted { color: var(--footer-muted); font-size: 14px; }
.site-footer .muted a:hover { color: #fff; }
.sub { margin-top: 26px; border-top: 1px solid var(--footer-line); padding-top: 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }

/* ===========================================================================
   ANIMATED STREET SCENE  (aspirational extension)
   A parallax horizon band along the bottom of the hero: a silhouette skyline
   of houses + trees, with vehicles, bikes and people drifting across.
   Emoji-based to stay on-brand (the product is emoji-forward) and avoid SVG.
   =========================================================================== */
.scene { position: absolute; left: 0; right: 0; bottom: 0; height: 110px; z-index: 2; pointer-events: none; overflow: hidden; }
.scene .ground { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; background: linear-gradient(#0c3a5f, #08243f); border-top: 3px solid rgba(156,255,199,.35); }
.scene .road-dash { position: absolute; left: 0; right: 0; bottom: 20px; height: 3px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0 22px, transparent 22px 44px);
  animation: dash 1.1s linear infinite; }
@keyframes dash { to { background-position: -44px 0; } }

/* skyline silhouette behind the road */
.scene .skyline { position: absolute; left: 0; bottom: 40px; white-space: nowrap; font-size: 40px; line-height: 1; opacity: .5;
  filter: grayscale(.3) brightness(.85); animation: drift-slow 38s linear infinite; }
.scene .skyline span { margin-right: 6px; }

/* moving lanes of vehicles / riders / walkers */
.lane { position: absolute; bottom: 6px; white-space: nowrap; font-size: 30px; line-height: 1; will-change: transform; }
.lane.cars  { animation: drift 9s linear infinite; }
.lane.bikes { bottom: 4px; font-size: 24px; animation: drift 13s linear infinite; animation-delay: -4s; }
.lane.walk  { bottom: 48px; font-size: 20px; animation: drift-rev 26s linear infinite; opacity: .9; }
.lane span { display: inline-block; margin-right: 64px; }
.lane.bikes span { margin-right: 120px; }
.lane.walk span { margin-right: 40px; }
@keyframes drift     { from { transform: translateX(100vw); } to { transform: translateX(-120%); } }
@keyframes drift-rev { from { transform: translateX(-120%); } to { transform: translateX(100vw); } }
@keyframes drift-slow{ from { transform: translateX(0); }     to { transform: translateX(-30%); } }

@media (prefers-reduced-motion: reduce) {
  .globe .ball, .globe .orbit, .scene .road-dash,
  .lane.cars, .lane.bikes, .lane.walk, .scene .skyline { animation: none; }
}

/* ===========================================================================
   FIX: geen horizontale scroll + reactieve verkeers-achtergrond + autocomplete
   =========================================================================== */
html, body { overflow-x: hidden; max-width: 100%; }

/* Reactieve canvas-achtergrond (auto's/huizen/bomen die meebewegen op scroll & tap) */
.traffic-bg { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
.site-header { z-index: 50; }
.hero, .results-wrap, .airports, .why, .cta-band, .site-footer { position: relative; z-index: 1; }

/* Adres-autocomplete velden */
.field.ac { position: relative; }
.ac-input { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line);
  border-radius: var(--r-input); background: #fff; padding: 0 12px; }
.ac-input:focus-within { outline: 2px solid var(--focus-ring); border-color: transparent; }
.ac-input .dot { width: 11px; height: 11px; border-radius: 50%; flex: 0 0 auto; }
.ac-input input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 13px 0; font-size: 16px;
  font-family: var(--font-ui); color: var(--ink); background: transparent; }
.ac-spin { width: 16px; height: 16px; flex: 0 0 auto; border: 2px solid var(--line);
  border-top-color: var(--green); border-radius: 50%; animation: spin 0.7s linear infinite; }
.ac-list { position: absolute; left: 0; right: 0; top: 100%; margin-top: 6px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-card);
  z-index: 40; max-height: 280px; overflow-y: auto; }
.ac-item { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; background: none;
  border: 0; border-bottom: 1px solid var(--line); padding: 11px 14px; cursor: pointer; font-family: var(--font-ui); }
.ac-item:last-child { border-bottom: 0; }
.ac-item:hover { background: var(--green-wash); }
.ac-pin { font-size: 16px; }
.ac-tx { display: flex; flex-direction: column; min-width: 0; }
.ac-tx strong { font-size: 15px; color: var(--ink); }
.ac-tx small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Resultaat-actieknoppen (Openen/Boeken) */
.result .book { border: 0; cursor: pointer; font-family: var(--font-ui); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }
