/* ============================================================
   BOOK & GO — Amsterdam Travel Platform
   Design system derived from references:
   white-dominant, ultra-bold rounded type, green/yellow/blue accents
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,800&family=Hanken+Grotesk:wght@400;500;600;700;800&display=swap');

:root {
  /* Core */
  --white: #ffffff;
  --skeleton: #e9e9e7;       /* neutral loading placeholder, no color flash */
  --paper: #fbfbf9;          /* warm off-white surface */
  --ink: #0c0d0c;            /* near-black text */
  --ink-2: #45494a;          /* secondary text */
  --ink-3: #8a8f8e;          /* tertiary / captions */
  --line: #e8e8e3;           /* hairlines */
  --line-2: #d7d8d2;

  /* Accents (bright, from references) */
  --green: #00c46a;          /* primary CTA green */
  --green-ink: #114d3a;      /* deep editorial green (quote text) */
  --green-soft: #eafaf1;
  --yellow: #ffd60a;
  --yellow-soft: #fff7d1;
  --blue: #1666ff;
  --blue-soft: #e7efff;

  /* Status */
  --status-pending: #8a6d00;
  --status-pending-bg: #fff3c4;
  --status-approved: #0a6b3f;
  --status-approved-bg: #d8f6e6;
  --status-scheduled: #0b48b8;
  --status-scheduled-bg: #dce8ff;

  /* Type */
  --font-display: 'Figtree', system-ui, sans-serif;
  --font-text: 'Hanken Grotesk', system-ui, sans-serif;

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --r-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(12,13,12,.06), 0 2px 6px rgba(12,13,12,.05);
  --shadow-md: 0 4px 14px rgba(12,13,12,.08), 0 18px 40px rgba(12,13,12,.07);
  --shadow-lg: 0 12px 30px rgba(12,13,12,.12), 0 40px 80px rgba(12,13,12,.12);

  --maxw: 1240px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-text);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--green); color: #fff; }

/* ---------- typographic helpers ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.eyebrow {
  font-family: var(--font-text);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; }
@media (max-width: 760px){ .wrap { padding: 0 20px; } .section { padding: 64px 0; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-text);
  font-weight: 800; font-size: 16px;
  padding: 15px 26px; border-radius: var(--r-pill);
  transition: transform .14s ease, background .14s ease, box-shadow .14s ease, color .14s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-green { background: var(--green); color: #04391f; }
.btn-green:hover { background: #00d976; box-shadow: 0 8px 22px rgba(0,196,106,.32); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-yellow { background: var(--yellow); color: #4a3a00; }
.btn-yellow:hover { background: #ffe14d; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: #2d78ff; }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-lg { padding: 18px 32px; font-size: 18px; }

/* ---------- chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; font-size: 13px;
  padding: 7px 13px; border-radius: var(--r-pill);
  background: #fff; box-shadow: inset 0 0 0 1.5px var(--line);
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 800; font-size: 12px; letter-spacing: .03em;
  padding: 6px 11px; border-radius: var(--r-pill);
}

/* ---------- cards ---------- */
.card {
  background: #fff; border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

/* dot marker like reference */
.dot { width: 14px; height: 14px; border-radius: 50%; background: var(--green); flex: none; box-shadow: 0 0 0 4px rgba(0,196,106,.16); }

/* see-details link */
.seelink { font-family: var(--font-display); font-weight: 800; font-size: 18px; border-bottom: 3px solid var(--green); padding-bottom: 2px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.seelink:hover { color: var(--green-ink); }

/* ---------- toast ---------- */
.toast-wrap { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 11px;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 15px;
  padding: 14px 20px; border-radius: var(--r-pill);
  box-shadow: var(--shadow-lg);
  animation: toastIn .32s cubic-bezier(.2,.8,.2,1);
}
.toast .tk { width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #04391f; display: grid; place-items: center; font-size: 13px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- modal ---------- */
.overlay { position: fixed; inset: 0; background: rgba(10,12,10,.45); backdrop-filter: blur(3px); z-index: 9000; display: grid; place-items: center; padding: 24px; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 460px; animation: pop .26s cubic-bezier(.2,.8,.2,1); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------- inputs ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 700; font-size: 14px; }
.input {
  font-family: var(--font-text); font-size: 16px; font-weight: 500;
  padding: 14px 16px; border-radius: var(--r-sm);
  background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-2);
  width: 100%; transition: box-shadow .14s ease;
}
.input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink); }
.input::placeholder { color: var(--ink-3); }

/* fade-up entrance — transform-only slide; never hides content (safe when paused) */
@keyframes fadeUp { from { transform: translateY(16px); } to { transform: none; } }
.fade-up { animation: fadeUp .6s cubic-bezier(.2,.8,.2,1) both; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ping { 0% { transform: scale(1); opacity: .5; } 80%,100% { transform: scale(2.2); opacity: 0; } }
@keyframes pulse2 { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.5); opacity: .5; } }

/* dcard hover */
.dcard { transition: transform .18s ease; }
.dcard:hover { transform: translateY(-3px); }
.dcard:hover .dcard-img { box-shadow: var(--shadow-md); }
.dcard-img { transition: box-shadow .2s ease; }

/* ---------- site header & mobile nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
  background: transparent;
}
.site-header--solid {
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header__inner {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-menu-btn {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  place-items: center;
  background: rgba(255,255,255,.14);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35);
}
.site-header--solid .nav-menu-btn {
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--line-2);
}
.nav-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 98;
  background: rgba(10,12,10,.45);
  backdrop-filter: blur(2px);
  border: none; cursor: pointer;
}
.nav-drawer {
  display: none;
  position: fixed; top: 74px; left: 0; right: 0; z-index: 99;
  background: #fff;
  padding: 16px 20px 24px;
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  gap: 4px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.nav-drawer--open {
  display: flex;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.nav-drawer__link {
  text-align: left;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 12px;
  border-radius: var(--r-sm);
  color: var(--ink);
}
.nav-drawer__link:hover { background: var(--paper); }
body.nav-open { overflow: hidden; }

/* ---------- hero search ---------- */
.hero-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 999px;
  padding: 9px 9px 9px 22px;
  box-shadow: 0 20px 50px rgba(0,0,0,.28);
}
.hero-search-bar__icon { flex: none; display: flex; }
.hero-search-bar__input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-text);
  font-size: 18px;
  font-weight: 600;
  background: transparent;
  min-width: 0;
}
.hero-search-bar__btn { padding: 14px 34px; flex-shrink: 0; }

/* ---------- package / destination heroes ---------- */
.package-hero {
  position: relative;
  height: 72vh;
  min-height: 540px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.package-hero__back {
  position: absolute;
  top: 92px;
  left: max(20px, calc((100% - 1240px) / 2 + 32px));
  z-index: 4;
  background: rgba(255,255,255,.96) !important;
  color: var(--ink) !important;
  box-shadow: var(--shadow-md);
}

/* ---------- departure table ---------- */
.depart-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  padding: 16px 22px;
  align-items: center;
}
.depart-row--head {
  padding: 14px 22px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
}

.modal-fields { flex-wrap: wrap; }
.modal-fields .field { min-width: min(100%, 140px); flex: 1; }

/* ---------- layout helpers ---------- */
.layout-booking { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }

/* ---------- form enhancements ---------- */
select.input { font-weight: 500; padding-right: 40px; }
select.input::-webkit-scrollbar { width: 8px; }
textarea.input { font-size: 15px; line-height: 1.5; padding: 14px 16px; }

/* ---------- responsive ---------- */
html { overflow-x: clip; }

@media (max-width: 1200px){
  .layout-booking { grid-template-columns: minmax(0, 1fr) !important; gap: 32px !important; }
  .booking-summary { position: static !important; top: auto !important; }
}

@media (max-width: 1080px){
  .grid-4 { grid-template-columns: repeat(2,1fr) !important; }
}

@media (max-width: 920px){
  .grid-3 { grid-template-columns: 1fr 1fr !important; }
  .nav-links { display: none !important; }
  .nav-menu-btn { display: grid !important; }
  body.nav-open .nav-backdrop { display: block; }
  .detail-rail { position: static !important; top: auto !important; }
}

@media (max-width: 760px){
  .wrap { padding: 0 16px; }
  .section { padding: 56px 0; }
  .site-header__inner { height: 64px; }
  .nav-drawer { top: 64px; }
  .nav-actions .btn-green { padding: 10px 14px; font-size: 13px; }
  .hero-search-bar {
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--r-lg);
    padding: 14px;
    gap: 12px;
  }
  .hero-search-bar__input { font-size: 16px; padding: 4px 6px; }
  .hero-search-bar__btn { width: 100%; border-radius: var(--r-pill); }
  .package-hero { height: auto; min-height: 62vh; }
  .package-hero__back { top: 76px; left: 16px; }
  .dest-card-body { min-height: 300px !important; padding: 24px !important; }
  .booking-page { padding: 96px 0 56px !important; }
  .booking-summary .card { margin-top: 0; }
  .dest-hero { height: 48vh !important; min-height: 280px !important; }
  .cta-row { flex-direction: column; }
  .cta-row .btn { width: 100%; justify-content: center; }
  .foot-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .foot-bottom { flex-direction: column; align-items: flex-start !important; }
  .foot-bottom span:last-child { flex-direction: column; gap: 6px; }
  .depart-table .depart-row--head { display: none; }
  .depart-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    padding: 16px 18px;
  }
  .depart-row > span:first-child { grid-column: 1 / -1; font-size: 15px; }
  .media-row { flex-direction: column !important; }
  .media-row__thumb { width: 100% !important; height: 140px !important; }
  .overlay { padding: 12px; align-items: flex-end; }
  .modal { max-height: 92vh; overflow-y: auto; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
  .toast-wrap { left: 16px; right: 16px; transform: none; align-items: stretch; }
  .toast { font-size: 14px; }
  .btn-lg { padding: 16px 22px; font-size: 16px; }
  .display { letter-spacing: -0.02em; }
}

@media (max-width: 680px){
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr) !important; }
}

/* hide scrollbar utility */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }

/* ---------- scene photo placeholders ---------- */
.photo {
  position: relative; overflow: hidden;
  background-size: cover; background-position: center;
  width: 100%; height: 100%;
  display: flex; align-items: flex-end;
}
.photo-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
}
.photo-glow { position: absolute; inset: 0; pointer-events: none; }
.photo-tag {
  position: relative; z-index: 2; margin: 12px;
  font-family: 'Hanken Grotesk', monospace; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.92); background: rgba(10,12,10,.34); backdrop-filter: blur(4px);
  padding: 5px 9px; border-radius: 6px;
}
.photo-vignette::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.06) 0%, rgba(0,0,0,0) 26%, rgba(0,0,0,0) 54%, rgba(0,0,0,.46) 100%);
}

/* ============================================================
   BOOK & GO — Scalable Layout Additions (mobile + desktop)
   ============================================================ */

/* ---------- hero section ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  max-height: 1080px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero > .photo {
  position: absolute !important;
  inset: 0;
  height: 100% !important;
  width: 100% !important;
}
.hero > .photo img {
  object-fit: cover;
  object-position: center center;
  width: 100%;
  height: 100%;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero__title {
  line-height: 0.95 !important;
}

.home-hero-stage {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 480px;
  max-height: 1080px;
  overflow: hidden;
}
.home-hero-stage__layer {
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.home-hero-stage .section {
  padding: 0;
}
body.home-stage-lock {
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}

/* Hide duplicate logo when footer is shown as its own full-screen state on Home
   (nav bar already shows the logo) — layout itself now matches every other page */
.home-footer-centered .logo-btn {
  display: none !important;
}

/* Contact form — dark/compact variant for footer integration */
.contact-form--dark input:focus,
.contact-form--dark textarea:focus {
  outline: none;
  border-color: var(--green) !important;
  background: rgba(0,196,106,.06) !important;
}
.contact-form--dark input::placeholder,
.contact-form--dark textarea::placeholder {
  color: rgba(255,255,255,.35);
}

/* Footer with embedded form — stack to one column earlier (tablet + mobile) */
@media (max-width: 1024px) {
  .foot-grid--with-form {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }
}


/* ---------- destination grid responsive ---------- */
.dest-grid-2 {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 22px;
}
@media (max-width: 760px) {
  .dest-grid-2 { grid-template-columns: minmax(0, 1fr) !important; }
  .hero { height: 100svh; min-height: 500px; max-height: none; }
  .hero__title { font-size: clamp(44px, 12vw, 80px) !important; }
}

/* ---------- nav: always show burger on small screens ---------- */
@media (max-width: 920px) {
  .nav-links { display: none !important; }
  .nav-menu-btn { display: grid !important; }
}

/* ---------- booking layout ---------- */
@media (max-width: 900px) {
  .layout-booking {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .booking-summary { position: static !important; }
}

/* ---------- package tabs scroll on mobile ---------- */
@media (max-width: 680px) {
  .pkg-tabs-row {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .pkg-tabs-row::-webkit-scrollbar { display: none; }
  .depart-table { overflow-x: auto; }
}

/* ---------- detail rail stacks on mobile ---------- */
@media (max-width: 920px) {
  .detail-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .detail-rail {
    position: static !important;
    top: auto !important;
  }
}

/* ---------- full-width image utility ---------- */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ---------- touch tap highlight removal ---------- */
button { -webkit-tap-highlight-color: transparent; }

/* ---------- smooth scroll ---------- */
html { scroll-behavior: smooth; }

/* ---------- itinerary card — responsive ---------- */
.itinerary-card__inner {
  display: flex;
  gap: 0;
}
.itinerary-card__thumb {
  width: 120px;
  flex: none;
  min-height: 110px;
}

@media (max-width: 520px) {
  .itinerary-card__inner {
    flex-direction: column;
  }
  .itinerary-card__thumb {
    width: 100%;
    height: 160px;
    min-height: unset;
  }
}