/* ═══════════════════════════════════════════════════════════
   New Zealand Ferry — Professional Ferry Booking Platform
   Satoshi font  |  Ocean-inspired palette
   ═══════════════════════════════════════════════════════════ */

@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,700,900&display=swap');

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

:root {
  --foreground: #0f172a;
  --background: #f8fafc;
  --card: #ffffff;
  --muted: #f1f5f9;
  --muted-fg: #64748b;
  --border: #e2e8f0;
  --primary: #0369a1;
  --primary-hover: #075985;
  --primary-light: rgba(3, 105, 161, 0.08);
  --primary-soft: #e0f2fe;
  --accent: #0ea5e9;
  --accent-hover: #0284c7;
  --success: #16a34a;
  --success-light: #dcfce7;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --warning: #f59e0b;
  --warning-light: #fef9c3;
  --footer-bg: #0f172a;
  --footer-text: rgba(255,255,255,0.75);
  --footer-muted: rgba(255,255,255,0.4);
  --font-heading: 'Satoshi', system-ui, -apple-system, sans-serif;
  --font-body: 'Satoshi', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.07);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --max-w: 1140px;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (hover: none) {
  /* Touch devices: no hover effects, better tap targets */
  input, select, textarea { font-size: 16px !important; } /* prevent iOS zoom */
}

body {
  font-family: var(--font-body);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; display: block; }

/* ═══════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--font-heading);
  font-size: 1.5rem; font-weight: 700;
  color: var(--foreground);
}
.logo img { height: 70px; width: auto; max-height: calc(100% - 8px); }
.logo:hover { color: var(--foreground); }

.nav-links { display: flex; gap: .4rem; align-items: center; }
.nav-links a {
  padding: .55rem 1rem; border-radius: var(--radius-xs);
  font-size: .95rem; font-weight: 500;
  color: var(--muted-fg); transition: all var(--transition);
}
.nav-links a:hover { color: var(--foreground); background: var(--muted); }
.nav-links a.active { color: var(--primary); background: var(--primary-light); }

/* Route dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > a {
  display: flex; align-items: center; gap: .3rem;
}
.nav-dropdown > a .dd-arrow {
  width: 12px; height: 12px;
  transition: transform .2s;
}
.nav-dropdown:hover > a .dd-arrow,
.nav-dropdown.open > a .dd-arrow {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: .4rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all .2s;
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: .55rem 1rem;
  font-size: .88rem;
  font-weight: 500;
  color: var(--foreground);
  border-radius: 0;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  background: var(--muted);
  color: var(--primary);
}

.nav-cta {
  padding: .5rem 1.1rem !important;
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--primary-hover) !important; }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; color: var(--foreground); }

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 520px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: url('/images/hero-ferry-deck.jpg') center/cover no-repeat;
  margin-top: 80px;
}
.hero-bg-pattern {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,74,110,0.55) 0%, rgba(3,105,161,0.5) 50%, rgba(14,165,233,0.4) 100%);
}
/* wave SVG at bottom */
.hero-wave {
  position: absolute; bottom: -1px; left: 0; right: 0;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: auto; display: block; }

.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 3.5rem 1.5rem 5rem;
  max-width: 700px;
}
.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700; color: #fff;
  line-height: 1.15; margin-bottom: .75rem;
}
.hero-content p {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.85);
  line-height: 1.7; max-width: 540px; margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════
   SEARCH BAR (overlaps hero)
   ═══════════════════════════════════════════════════════════ */
.search-section {
  max-width: var(--max-w); margin: -3rem auto 0; padding: 0 1.5rem;
  position: relative; z-index: 10;
}
.search-bar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-lg);
}
.search-tabs {
  display: flex; gap: .5rem; margin-bottom: 1.25rem;
}
.search-tab {
  padding: .4rem 1rem; border: 1px solid var(--border);
  border-radius: 20px; background: var(--card);
  font-size: .82rem; font-weight: 600; cursor: pointer;
  color: var(--muted-fg); transition: all var(--transition);
  font-family: var(--font-body);
}
.search-tab.active, .search-tab:hover {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.search-fields {
  display: flex; gap: 1rem; align-items: end; flex-wrap: wrap;
}
.search-group {
  display: flex; flex-direction: column; gap: .35rem; flex: 1; min-width: 160px;
}
.search-group label {
  font-size: .72rem; font-weight: 600; color: var(--muted-fg);
  text-transform: uppercase; letter-spacing: .7px;
}
.search-group .input-icon {
  position: relative;
}
.search-group .input-icon svg {
  position: absolute; left: .75rem; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--muted-fg); pointer-events: none;
}
.search-group .input-icon input,
.search-group .input-icon select {
  padding-left: 2.3rem;
}

/* ═══════════════════════════════════════════════════════════
   CONTAINER & SECTIONS
   ═══════════════════════════════════════════════════════════ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.page-top { margin-top: 80px; }

.section { padding: 3.5rem 0; }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700; color: var(--foreground);
  margin-bottom: .4rem;
}
.section-header p { color: var(--muted-fg); font-size: .95rem; max-width: 500px; margin: 0 auto; }

.section-header-left { text-align: left; margin-bottom: 1.75rem; }
.section-header-left h2 {
  font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700;
}
.section-header-left p { color: var(--muted-fg); font-size: .9rem; margin-top: .25rem; }

/* ═══════════════════════════════════════════════════════════
   ROUTE CARDS
   ═══════════════════════════════════════════════════════════ */
.routes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}
.route-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all .25s; cursor: pointer;
}
.route-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.route-card-img {
  height: 180px;
  background: linear-gradient(135deg, #0ea5e9, #0369a1);
  background-size: cover;
  background-position: center;
  position: relative; overflow: hidden;
}
.route-card-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,0.25) 100%);
}
.route-card-body { padding: 1.25rem; }
.route-card-body h3 { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; margin-bottom: .4rem; }
.route-card-body p { font-size: .85rem; color: var(--muted-fg); line-height: 1.5; margin-bottom: .75rem; }
.route-card-meta {
  display: flex; gap: 1rem; flex-wrap: wrap;
}
.route-meta-item {
  display: flex; align-items: center; gap: .35rem;
  font-size: .78rem; color: var(--muted-fg); font-weight: 500;
}
.route-meta-item svg { width: 14px; height: 14px; color: var(--primary); }
.route-meta-item strong { color: var(--foreground); }
.route-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--muted);
}
.route-price { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: var(--primary); }
.route-price small { font-size: .7rem; font-weight: 400; color: var(--muted-fg); font-family: var(--font-body); }

/* ═══════════════════════════════════════════════════════════
   SAILING CARDS (timetable)
   ═══════════════════════════════════════════════════════════ */
.sailings-list { display: flex; flex-direction: column; gap: .75rem; }

.sailing-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.5rem;
  display: grid;
  grid-template-columns: 90px 80px 1fr auto 100px 110px;
  align-items: center; gap: 1rem;
  transition: all .2s; cursor: pointer;
}
.sailing-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-1px); }

.sailing-time { text-align: center; }
.sailing-time .depart { font-size: 1.2rem; font-weight: 700; font-family: var(--font-heading); color: var(--foreground); }
.sailing-time .arrive { font-size: .82rem; color: var(--muted-fg); margin-top: 1px; }

.sailing-divider { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.sailing-divider .dur-label { font-size: .65rem; font-weight: 600; color: var(--muted-fg); text-transform: uppercase; letter-spacing: .4px; }
.sailing-divider .dur-line { width: 50px; height: 2px; background: var(--border); position: relative; }
.sailing-divider .dur-line::before { content:''; position:absolute; left:-3px; top:-3px; width:8px; height:8px; border-radius:50%; border:2px solid var(--primary); background:var(--card); }
.sailing-divider .dur-line::after { content:''; position:absolute; right:-3px; top:-3px; width:8px; height:8px; border-radius:50%; background:var(--primary); }
.sailing-divider .dur-val { font-size: .78rem; color: var(--muted-fg); }

.sailing-info { min-width: 0; }
.sailing-info .route-name { font-weight: 600; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sailing-info .vessel-name { font-size: .78rem; color: var(--muted-fg); margin-top: 2px; display: flex; align-items: center; gap: .3rem; }
.sailing-info .vessel-name svg { width: 12px; height: 12px; }

.sailing-tags { display: flex; gap: .4rem; flex-wrap: wrap; }
.tag { display:inline-flex; align-items:center; gap:.25rem; padding:.2rem .55rem; background:var(--muted); border-radius:20px; font-size:.68rem; color:var(--muted-fg); font-weight:500; white-space:nowrap; }
.tag svg { width:11px; height:11px; }

.sailing-price { text-align: right; }
.sailing-price .price-label { font-size: .65rem; color: var(--muted-fg); text-transform: uppercase; letter-spacing: .4px; }
.sailing-price .price-val { font-size: 1.3rem; font-weight: 700; color: var(--primary); font-family: var(--font-heading); }
.sailing-price .seats-left { font-size: .72rem; margin-top: 2px; font-weight: 500; }
.seats-left.green { color: var(--success); }
.seats-left.yellow { color: var(--warning); }
.seats-left.red { color: var(--danger); }

.sailing-action { justify-self: end; }

/* ═══════════════════════════════════════════════════════════
   FEATURES / INFO BOXES
   ═══════════════════════════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.feature-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  text-align: center; transition: all .25s;
}
.feature-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-card-img {
  height: 160px;
  background: var(--muted);
  background-size: cover;
  background-position: center;
  position: relative;
}
.feature-card-img::after {
  content: none;
}
.feature-card-body { padding: 1.25rem 1.25rem 1.25rem; padding-top: .75rem; }
.feature-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin: .5rem auto .6rem;
  border: none;
  box-shadow: none;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-family: var(--font-heading); font-size: 1.05rem; margin-bottom: .4rem; }
.feature-card p { font-size: .85rem; color: var(--muted-fg); line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════
   FORM CONTROLS
   ═══════════════════════════════════════════════════════════ */
input, select, textarea {
  font-family: var(--font-body); font-size: .9rem;
  padding: .65rem .85rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--card); color: var(--foreground);
  transition: all var(--transition); outline: none; width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
textarea { resize: vertical; min-height: 100px; }

.form-group { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .85rem; }
.form-group label { font-size: .82rem; font-weight: 600; color: var(--foreground); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full-width { grid-column: 1 / -1; }

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .65rem 1.3rem; border: none; border-radius: var(--radius-sm);
  font-size: .88rem; font-weight: 600; cursor: pointer;
  transition: all var(--transition); font-family: var(--font-body); white-space: nowrap;
  text-decoration: none;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); box-shadow: 0 4px 14px rgba(3,105,161,0.3); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--foreground); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.btn-ghost { background: transparent; color: var(--primary); padding: .5rem .75rem; }
.btn-ghost:hover { background: var(--primary-light); }
.btn-sm { padding: .38rem .75rem; font-size: .8rem; }
.btn-lg { padding: .8rem 2rem; font-size: 1rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* ═══════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════ */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.25rem;
}
.card h2 {
  font-family: var(--font-heading); font-size: 1.15rem;
  font-weight: 600; margin-bottom: 1rem; color: var(--foreground);
}

/* ═══════════════════════════════════════════════════════════
   TABLE (admin)
   ═══════════════════════════════════════════════════════════ */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .85rem; }
thead { background: var(--muted); }
th {
  padding: .6rem .85rem; text-align: left; font-weight: 600;
  color: var(--muted-fg); font-size: .72rem; text-transform: uppercase;
  letter-spacing: .5px; white-space: nowrap; user-select: none;
  border-bottom: 1px solid var(--border);
}
td { padding: .6rem .85rem; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--muted); }

.badge {
  display:inline-block; padding:.18rem .5rem; border-radius:20px;
  font-size:.68rem; font-weight:600; letter-spacing:.3px;
}
.badge-success { background: var(--success-light); color: #166534; }
.badge-warning { background: var(--warning-light); color: #854d0e; }
.badge-danger { background: var(--danger-light); color: #991b1b; }
.badge-info { background: var(--primary-soft); color: var(--primary); }

/* ═══════════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════════ */
.modal-overlay {
  position:fixed; inset:0; background:rgba(0,0,0,0.4);
  backdrop-filter:blur(4px); display:flex; align-items:center; justify-content:center;
  z-index:1000; opacity:0; pointer-events:none; transition:opacity .3s;
}
.modal-overlay.active { opacity:1; pointer-events:all; }
.modal {
  position:relative; background:var(--card); border-radius:var(--radius);
  box-shadow:var(--shadow-lg); width:90%; max-width:560px;
  max-height:90vh; overflow-y:auto; padding:2rem;
  transform:translateY(16px) scale(.98); transition:transform .3s;
}
.modal-overlay.active .modal { transform:translateY(0) scale(1); }
.modal h2 { font-family:var(--font-heading); margin-bottom:1.25rem; font-size:1.35rem; }
.modal .close-btn {
  position:absolute; top:1rem; right:1rem; background:var(--muted); border:none;
  font-size:1.1rem; width:32px; height:32px; border-radius:50%; cursor:pointer;
  color:var(--muted-fg); display:flex; align-items:center; justify-content:center;
  transition:all var(--transition); line-height: 1;
}
.modal .close-btn:hover { background:var(--border); color:var(--foreground); }

.route-info-bar {
  color:var(--muted-fg); margin-bottom:1rem; padding:.75rem 1rem;
  background:var(--muted); border-radius:var(--radius-sm); font-size:.88rem;
}

/* ═══════════════════════════════════════════════════════════
   BOOKING FLOW
   ═══════════════════════════════════════════════════════════ */
.class-selector { display:grid; grid-template-columns:repeat(3,1fr); gap:.75rem; margin-bottom:1.25rem; }
.class-card {
  border:1px solid var(--border); border-radius:var(--radius);
  padding:1rem; text-align:center; cursor:pointer;
  transition:all var(--transition); background:var(--card);
}
.class-card:hover { border-color:var(--primary); background:var(--primary-light); }
.class-card.selected { border-color:var(--primary); background:var(--primary-light); box-shadow:0 0 0 2px var(--primary); }
.class-card .class-name { font-weight:700; font-size:.88rem; margin-bottom:.2rem; }
.class-card .class-price { font-size:1.25rem; font-weight:700; color:var(--primary); font-family:var(--font-heading); }
.class-card .class-seats { font-size:.72rem; color:var(--muted-fg); margin-top:.25rem; }

.extras-list { display:flex; flex-direction:column; gap:.4rem; margin-bottom:1rem; }
.extra-item {
  display:flex; align-items:center; gap:.7rem; padding:.55rem .75rem;
  border:1px solid var(--border); border-radius:var(--radius-sm);
  transition:border-color var(--transition); cursor:pointer;
}
.extra-item:hover { border-color:var(--primary); }
.extra-item input[type="checkbox"] { width:16px; height:16px; accent-color:var(--primary); }
.extra-item .extra-price { margin-left:auto; font-weight:600; color:var(--primary); font-size:.88rem; }

.promo-row { display:flex; gap:.5rem; }
.promo-row input { flex:1; }
.promo-msg { color:var(--success); display:none; font-size:.78rem; margin-top:.2rem; }

.booking-summary { background:var(--muted); border-radius:var(--radius-sm); padding:1rem; margin:1rem 0; }
.summary-row { display:flex; justify-content:space-between; padding:.25rem 0; font-size:.88rem; }
.summary-row.total { font-weight:700; font-size:1.02rem; border-top:2px solid var(--border); padding-top:.5rem; margin-top:.25rem; }

.step-label { font-size:.88rem; font-weight:600; margin-bottom:.5rem; }
.step-actions { display:flex; gap:1rem; margin-top:1.5rem; }

.confirmation { text-align:center; padding:1.5rem 0; }
.confirmation .check-icon {
  width:64px; height:64px; margin:0 auto 1rem; background:var(--success-light);
  border-radius:50%; display:flex; align-items:center; justify-content:center; color:var(--success);
}
.confirmation h2 { font-family:var(--font-heading); }
.ref-code {
  font-size:1.4rem; font-weight:700; font-family:var(--font-heading);
  color:var(--primary); background:var(--primary-soft);
  padding:.5rem 1.2rem; border-radius:var(--radius-sm);
  display:inline-block; margin:.5rem 0; letter-spacing:2px;
}

/* ═══════════════════════════════════════════════════════════
   FAQ ACCORDION
   ═══════════════════════════════════════════════════════════ */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-category { margin-bottom: 2rem; }
.faq-category h3 { font-family:var(--font-heading); font-size:1.15rem; margin-bottom:.75rem; padding-bottom:.5rem; border-bottom:1px solid var(--border); }

.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: .5rem; overflow: hidden; background: var(--card);
  transition: border-color var(--transition);
}
.faq-item:hover { border-color: var(--primary); }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.25rem; cursor: pointer;
  font-weight: 600; font-size: .92rem; color: var(--foreground);
  background: none; border: none; width: 100%; text-align: left;
  font-family: var(--font-body); transition: all var(--transition);
}
.faq-question:hover { color: var(--primary); }
.faq-chevron {
  width: 20px; height: 20px; transition: transform .3s; flex-shrink: 0;
  color: var(--muted-fg);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--primary); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height .35s ease;
}
.faq-answer-inner {
  padding: 0 1.25rem 1rem;
  font-size: .88rem; color: var(--muted-fg); line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.contact-info-cards { display: flex; flex-direction: column; gap: 1rem; }
.contact-info-card {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.25rem; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.contact-info-card .ci-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info-card .ci-icon svg { width: 20px; height: 20px; }
.contact-info-card h4 { font-size: .88rem; margin-bottom: .2rem; }
.contact-info-card p { font-size: .82rem; color: var(--muted-fg); line-height: 1.5; }
.contact-form-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; }
.contact-form-card h3 { font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 1.25rem; }

/* ═══════════════════════════════════════════════════════════
   PAGE HEADER (routes, faq, contact)
   ═══════════════════════════════════════════════════════════ */
.page-header {
  background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 60%, #0ea5e9 100%);
  padding: 3.5rem 1.5rem 3rem;
  text-align: center; margin-top: 80px;
}
.page-header h1 { font-family:var(--font-heading); font-size:2rem; color:#fff; margin-bottom:.4rem; }
.page-header p { color:rgba(255,255,255,0.8); font-size:.95rem; }

/* ═══════════════════════════════════════════════════════════
   POPULAR ROUTES (homepage, 3-card premium grid)
   ═══════════════════════════════════════════════════════════ */
.popular-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.pop-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: all .3s cubic-bezier(.25,.8,.25,1);
  cursor: pointer;
}
.pop-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,.1);
  border-color: var(--primary);
}
.pop-card-img {
  position: relative; height: 220px; overflow: hidden;
}
.pop-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s;
}
.pop-card:hover .pop-card-img img { transform: scale(1.06); }
.pop-card-img::after {
  content:''; position:absolute; inset:0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,.3) 100%);
}
.pop-card-img .pop-badge {
  position: absolute; top: .85rem; left: .85rem; z-index: 2;
  background: var(--primary); color: #fff;
  padding: .25rem .65rem; border-radius: 20px;
  font-size: .68rem; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
}

.pop-card-body { padding: 1.35rem; flex: 1; display: flex; flex-direction: column; }
.pop-card-body h3 {
  font-family: var(--font-heading); font-size: 1.15rem;
  font-weight: 700; margin-bottom: .5rem; line-height: 1.3;
}
.pop-card-body .pop-desc {
  font-size: .86rem; color: var(--muted-fg); line-height: 1.65;
  margin-bottom: 1rem; flex: 1;
}
.pop-card-meta {
  display: flex; gap: 1rem; margin-bottom: .75rem; flex-wrap: wrap;
}
.pop-card-meta span {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .78rem; color: var(--muted-fg); font-weight: 500;
}
.pop-card-meta span svg { width: 14px; height: 14px; color: var(--primary); flex-shrink: 0; }
.pop-card-meta span strong { color: var(--foreground); }

.pop-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1.35rem; border-top: 1px solid var(--border); background: var(--muted);
}
.pop-card-price { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: var(--primary); }
.pop-card-price small { display: block; font-size: .68rem; font-weight: 400; color: var(--muted-fg); font-family: var(--font-body); }

@media (max-width: 900px) { .popular-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; } }
@media (max-width: 480px) { .pop-card-img { height: 180px; } }

/* ═══════════════════════════════════════════════════════════
   TOP ROUTES PAGE (premium cards)
   ═══════════════════════════════════════════════════════════ */
.top-routes-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  max-width: var(--max-w); margin: 0 auto;
}
.top-route-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all .3s; cursor: pointer;
  display: flex; flex-direction: column;
}
.top-route-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,.12);
  border-color: var(--primary);
}
.top-route-img {
  height: 220px; background-size: cover; background-position: center;
  position: relative;
}
.top-route-img::after {
  content:''; position:absolute; inset:0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.35) 100%);
}
.top-route-badge {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  background: var(--primary); color: #fff;
  padding: .3rem .7rem; border-radius: 20px;
  font-size: .72rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
}
.top-route-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.top-route-body h3 {
  font-family: var(--font-heading); font-size: 1.25rem;
  font-weight: 700; margin-bottom: .5rem; color: var(--foreground);
}
.top-route-body .desc {
  font-size: .88rem; color: var(--muted-fg); line-height: 1.65;
  margin-bottom: 1rem; flex: 1;
}
.top-route-meta {
  display: flex; gap: 1.25rem; margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.top-route-meta-item {
  display: flex; align-items: center; gap: .4rem;
  font-size: .82rem; color: var(--muted-fg);
}
.top-route-meta-item svg { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; }
.top-route-meta-item strong { color: var(--foreground); }

.top-route-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem; border-top: 1px solid var(--border);
  background: var(--muted);
}
.top-route-price {
  font-family: var(--font-heading); font-size: 1.35rem;
  font-weight: 700; color: var(--primary);
}
.top-route-price small { font-size: .7rem; font-weight: 400; color: var(--muted-fg); font-family: var(--font-body); display: block; }

/* Route article pages */
.route-article { max-width: 820px; margin: 0 auto; padding: 2.5rem 1.5rem 3rem; }
.route-article h1 { font-family: var(--font-heading); font-size: clamp(1.6rem,4vw,2.2rem); font-weight: 700; margin-bottom: .5rem; }
.route-article .route-sub { color: var(--muted-fg); font-size: 1rem; margin-bottom: 2rem; }

.route-article h2 { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 700; margin: 2.5rem 0 .75rem; color: var(--foreground); }
.route-article p { font-size: .95rem; color: var(--muted-fg); line-height: 1.8; margin-bottom: 1rem; }

.route-photo { border-radius: var(--radius); overflow: hidden; margin: 1.5rem 0; }
.route-photo img { width: 100%; display: block; height: auto; }
.route-photo.tall { max-height: 400px; }
.route-photo.tall img { height: 400px; object-fit: cover; }
.route-photo-caption { font-size: .78rem; color: var(--muted-fg); text-align: center; padding: .5rem 0; font-style: italic; }

.route-photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.route-photo-grid .route-photo { margin: 0; }
.route-photo-grid .route-photo img { height: 220px; object-fit: cover; }

.route-info-box {
  background: var(--muted); border-radius: var(--radius); padding: 1.5rem;
  margin: 1.5rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem;
}
.route-info-item { text-align: center; }
.route-info-item .info-val { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: var(--primary); }
.route-info-item .info-label { font-size: .78rem; color: var(--muted-fg); margin-top: .15rem; }

.route-book-cta {
  background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 100%);
  border-radius: var(--radius); padding: 2rem; text-align: center;
  margin: 2.5rem 0 0; color: #fff;
}
.route-book-cta h3 { font-family: var(--font-heading); font-size: 1.3rem; margin-bottom: .5rem; }
.route-book-cta p { color: rgba(255,255,255,.8); margin-bottom: 1.25rem; font-size: .92rem; }
.route-book-cta .btn { background: #fff; color: var(--primary); font-weight: 700; }
.route-book-cta .btn:hover { background: #f0f7ff; }

@media (max-width: 768px) {
  .route-article { padding: 1.5rem .75rem 2rem; }
  .route-photo-grid { grid-template-columns: 1fr; }
  .route-photo-grid .route-photo img { height: 200px; }
  .route-photo.tall img { height: 280px; }
  .route-info-box { grid-template-columns: 1fr 1fr; }
}

/* Route detail sections */
.route-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem;
  align-items: center; padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}
.route-detail:last-child { border-bottom: none; }
.route-detail.reverse { direction: rtl; }
.route-detail.reverse > * { direction: ltr; }

.route-detail-img {
  border-radius: var(--radius); overflow: hidden;
  height: 320px; position: relative;
}
.route-detail-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s;
}
.route-detail:hover .route-detail-img img { transform: scale(1.03); }

.route-detail-content {}
.route-detail-content .route-tag {
  display: inline-block; padding: .25rem .7rem; border-radius: 20px;
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; margin-bottom: .75rem;
  background: var(--primary-light); color: var(--primary);
}
.route-detail-content h2 {
  font-family: var(--font-heading); font-size: 1.6rem;
  font-weight: 700; margin-bottom: .75rem; line-height: 1.25;
}
.route-detail-content .vessel-label {
  font-size: .85rem; font-weight: 600; color: var(--primary);
  margin-bottom: .75rem; display: flex; align-items: center; gap: .4rem;
}
.route-detail-content .vessel-label svg { width: 16px; height: 16px; }
.route-detail-content p {
  font-size: .92rem; color: var(--muted-fg); line-height: 1.75;
  margin-bottom: .75rem;
}
.route-detail-content .highlights {
  display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0;
}
.route-detail-content .highlight-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .35rem .7rem; background: var(--muted);
  border-radius: 20px; font-size: .78rem; font-weight: 500;
  color: var(--foreground);
}
.route-detail-content .highlight-chip svg { width: 14px; height: 14px; color: var(--primary); }

.route-detail-content .price-line {
  font-family: var(--font-heading); font-size: 1.3rem;
  font-weight: 700; color: var(--primary); margin: 1rem 0 .5rem;
}
.route-detail-content .price-line small {
  font-size: .75rem; font-weight: 400; color: var(--muted-fg);
  font-family: var(--font-body);
}

@media (max-width: 900px) {
  .top-routes-grid { grid-template-columns: 1fr; max-width: 480px; }
  .top-route-img { height: 200px; }
  .route-detail { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem 0; }
  .route-detail.reverse { direction: ltr; }
  .route-detail-img { height: 240px; }
  .route-detail-content h2 { font-size: 1.3rem; }
}

/* ═══════════════════════════════════════════════════════════
   LOCATION SELECTOR (grouped dropdown)
   ═══════════════════════════════════════════════════════════ */
.loc-selector { position: relative; }
.loc-trigger {
  display: flex; align-items: center; justify-content: space-between;
  padding: .65rem .85rem; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--card);
  cursor: pointer; font-size: .9rem; color: var(--foreground);
  transition: border-color .2s; width: 100;
  user-select: none;
}
.loc-trigger:hover, .loc-selector.open .loc-trigger { border-color: var(--primary); }
.loc-trigger .loc-placeholder { color: var(--muted-fg); }
.loc-trigger .loc-arrow { width: 16px; height: 16px; color: var(--muted-fg); transition: transform .2s; flex-shrink: 0; }
.loc-selector.open .loc-arrow { transform: rotate(180deg); }

.loc-panel {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  z-index: 50; max-height: 320px; overflow-y: auto;
  display: none;
}
.loc-selector.open .loc-panel { display: block; }

.loc-group-label {
  padding: .5rem .85rem .25rem; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .7px;
  color: var(--muted-fg); background: var(--muted);
  position: sticky; top: 0;
}
.loc-item {
  padding: .55rem .85rem; font-size: .88rem; cursor: pointer;
  color: var(--foreground); transition: background .15s;
  display: flex; align-items: center; gap: .5rem;
}
.loc-item:hover { background: var(--primary-light); color: var(--primary); }
.loc-item.selected { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.loc-item.disabled { opacity: .35; pointer-events: none; }
.loc-item .loc-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--primary); flex-shrink: 0; opacity: 0;
}
.loc-item.selected .loc-dot { opacity: 1; }

/* ═══════════════════════════════════════════════════════════
   VEHICLE SELECTOR
   ═══════════════════════════════════════════════════════════ */
.vehicle-list { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }

.vehicle-row {
  display: flex; align-items: center; gap: .75rem;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background .2s;
  user-select: none;
}
.vehicle-row:last-child { border-bottom: none; }
.vehicle-row:hover { background: #f0f7ff; }
.vehicle-row.selected { background: #dbeafe; }

.vehicle-row .vr-radio {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2.5px solid #94a3b8; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.vehicle-row.selected .vr-radio {
  border-color: #1e40af;
  background: #1e40af;
}
.vehicle-row.selected .vr-radio::after {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff;
}

.vehicle-row .vr-label { flex: 1; font-size: .92rem; font-weight: 500; color: var(--foreground); }

.vehicle-row .vr-icon {
  width: 72px; height: 30px; color: #003861;
  display: flex; align-items: center; justify-content: flex-end;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
  flex-shrink: 0;
}
.vehicle-row.selected .vr-icon { transform: scale(1.05); }
.vehicle-row .vr-icon svg { width: auto; max-width: 72px; height: auto; max-height: 28px; }

/* ═══════════════════════════════════════════════════════════
   VIEW TOP ROUTES CTA BANNER
   ═══════════════════════════════════════════════════════════ */
.route-cta-banner {
  display: block; position: relative; width: 100%;
  height: 280px; overflow: hidden; cursor: pointer;
  text-decoration: none; margin-top: 1rem;
}
.route-cta-banner img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.25,.8,.25,1);
}
.route-cta-banner:hover img { transform: scale(1.05); }
.route-cta-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(12,74,110,.55) 0%, rgba(3,105,161,.45) 50%, rgba(14,165,233,.35) 100%);
  transition: background .3s;
}
.route-cta-banner:hover .route-cta-overlay {
  background: linear-gradient(135deg, rgba(12,74,110,.65) 0%, rgba(3,105,161,.55) 50%, rgba(14,165,233,.45) 100%);
}
.route-cta-content {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  color: #fff; font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700;
  letter-spacing: .5px; z-index: 2;
}
.route-cta-content svg { transition: transform .3s; }
.route-cta-banner:hover .route-cta-content svg { transform: translateX(4px); }

@media (max-width: 768px) { .route-cta-banner { height: 200px; } }

/* ═══════════════════════════════════════════════════════════
   CUSTOM DATE PICKER (English-only)
   ═══════════════════════════════════════════════════════════ */
.date-picker-wrap { position: relative; }
.date-picker-trigger {
  display: flex; align-items: center; gap: .5rem;
  padding: .65rem .85rem; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--card);
  cursor: pointer; font-size: .9rem; color: var(--foreground);
  transition: border-color .2s; width: 100%; user-select: none;
  min-height: 42px;
}
.date-picker-trigger:hover { border-color: var(--primary); }
.date-picker-trigger .dp-label { flex: 1; text-align: left; }
.date-picker-trigger .dp-placeholder { color: var(--muted-fg); }
.date-picker-trigger svg { color: var(--muted-fg); flex-shrink: 0; }

.dp-dropdown {
  display: none; position: absolute; top: calc(100% + 4px); left: 0;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  z-index: 200; width: 280px; padding: .75rem;
  animation: dpFadeIn .15s ease;
}
.dp-dropdown.open { display: block; }
@keyframes dpFadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.dp-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: .6rem;
}
.dp-header button {
  background: none; border: none; cursor: pointer; padding: .3rem;
  color: var(--foreground); font-size: 1rem; border-radius: 4px;
  transition: background .15s;
}
.dp-header button:hover { background: var(--muted); }
.dp-header .dp-month-year { font-weight: 700; font-size: .88rem; }

.dp-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 0;
  margin-bottom: .25rem;
}
.dp-weekdays span {
  text-align: center; font-size: .68rem; font-weight: 600;
  color: var(--muted-fg); padding: .2rem 0; text-transform: uppercase;
}

.dp-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-day {
  text-align: center; padding: .4rem 0; font-size: .82rem;
  border-radius: 6px; cursor: pointer; transition: all .12s;
  color: var(--foreground); font-weight: 500;
}
.dp-day:hover { background: var(--primary-light); color: var(--primary); }
.dp-day.today { border: 1.5px solid var(--primary); }
.dp-day.selected { background: var(--primary); color: #fff; font-weight: 700; }
.dp-day.disabled { color: var(--border); pointer-events: none; }
.dp-day.empty { pointer-events: none; }

@media (max-width: 480px) {
  .dp-dropdown { width: 260px; }
}

/* ═══════════════════════════════════════════════════════════
   REFUND BADGE & TOOLTIP
   ═══════════════════════════════════════════════════════════ */
.refund-badge {
  display: inline-flex; align-items: center; gap: .45rem;
  background: #eff6ff; border: 1px solid #bfdbfe;
  border-radius: 20px; padding: .4rem .85rem;
  font-size: .78rem; font-weight: 600; color: #1e40af;
  margin-top: .75rem;
}
.refund-badge svg { flex-shrink: 0; }
.refund-help {
  position: relative; display: inline-flex; cursor: help;
}
.refund-help .help-dot {
  width: 18px; height: 18px; border-radius: 50%;
  background: #1e40af; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700; line-height: 1;
}
.refund-help .help-tooltip {
  display: none; position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%); width: 320px;
  background: var(--foreground); color: #fff; border-radius: var(--radius-sm);
  padding: 1rem 1.15rem; font-size: .8rem; line-height: 1.65;
  box-shadow: var(--shadow-lg); z-index: 100; font-weight: 400;
}
.refund-help .help-tooltip::after {
  content: ''; position: absolute; bottom: 100%; left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent; border-bottom-color: var(--foreground);
}
.refund-help .help-tooltip ul { padding-left: 1rem; margin: .4rem 0 0; }
.refund-help .help-tooltip li { margin-bottom: .35rem; }
.refund-help:hover .help-tooltip { display: block; }

@media (max-width: 480px) {
  .refund-help .help-tooltip { width: 260px; left: auto; right: -10px; transform: none; }
  .refund-help .help-tooltip::after { left: auto; right: 14px; transform: none; }
}

/* ═══════════════════════════════════════════════════════════
   UPGRADE ROWS
   ═══════════════════════════════════════════════════════════ */
.upgrade-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 0; border-bottom: 1px solid var(--border);
}
.upgrade-row:last-child { border-bottom: none; }
.upgrade-info { flex: 1; }
.upgrade-info .upgrade-title { font-weight: 600; font-size: .92rem; color: var(--foreground); }
.upgrade-info .upgrade-price { font-size: .8rem; color: var(--primary); font-weight: 600; margin-top: .1rem; }
.upgrade-info .upgrade-desc { font-size: .78rem; color: var(--muted-fg); margin-top: .15rem; }
.upgrade-controls { display: flex; align-items: center; gap: .5rem; }
.upgrade-controls .sold-out {
  display: inline-block; padding: .2rem .5rem; border-radius: 4px;
  background: #fee2e2; color: #991b1b; font-size: .7rem; font-weight: 700;
  margin-right: .35rem;
}
.upgrade-controls .uq-btn {
  width: 32px; height: 32px; border-radius: 50%; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; cursor: pointer; transition: all .15s;
}
.upgrade-controls .uq-btn.minus { background: #e2e8f0; color: var(--foreground); }
.upgrade-controls .uq-btn.minus:hover { background: #cbd5e1; }
.upgrade-controls .uq-btn.plus { background: var(--primary); color: #fff; }
.upgrade-controls .uq-btn.plus:hover { background: var(--primary-hover); }
.upgrade-controls .uq-btn:disabled { opacity: .4; cursor: not-allowed; }
.upgrade-controls .uq-num { font-size: 1rem; font-weight: 700; min-width: 24px; text-align: center; }

/* ═══════════════════════════════════════════════════════════
   TIME SLOT GRID (sailing selection)
   ═══════════════════════════════════════════════════════════ */
.time-section { margin-bottom: 2rem; }
.time-section-title {
  font-family: var(--font-heading);
  font-size: 1.1rem; font-weight: 600;
  color: var(--foreground); margin-bottom: .25rem;
}
.time-section-sub {
  font-size: .88rem; font-weight: 600;
  color: var(--danger); margin-bottom: .75rem;
}
.time-grid {
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.time-pill {
  display: flex; align-items: center; gap: .5rem;
  padding: .55rem .85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  cursor: pointer;
  transition: all .15s;
  font-size: .84rem;
  font-weight: 500;
  color: var(--foreground);
  user-select: none;
  white-space: nowrap;
}
.time-pill:hover { border-color: var(--primary); }
.time-pill.selected { border-color: var(--primary); background: var(--primary-light); }
.time-pill .radio {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--border); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.time-pill.selected .radio {
  border-color: var(--primary);
}
.time-pill.selected .radio::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

@media (max-width: 480px) {
  .time-pill { padding: .45rem .65rem; font-size: .78rem; }
  .time-grid { gap: .35rem; }
}

/* ═══════════════════════════════════════════════════════════
   BOOKING FLOW (step-based)
   ═══════════════════════════════════════════════════════════ */
.book-layout { max-width: 860px; margin: 0 auto; padding: 2rem 1.5rem 3rem; }

/* Progress steps */
.book-steps { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 2rem; }
.book-step {
  display: flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 600; color: var(--muted-fg);
  padding: .5rem 1rem; border-radius: 20px;
  transition: all .2s; white-space: nowrap;
}
.book-step.active { color: var(--primary); background: var(--primary-light); }
.book-step.done { color: var(--success); }
.book-step .step-num {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700;
  background: var(--border); color: var(--muted-fg);
}
.book-step.active .step-num { background: var(--primary); color: #fff; }
.book-step.done .step-num { background: var(--success); color: #fff; }
.book-step-divider { width: 30px; height: 2px; background: var(--border); flex-shrink: 0; }

.book-panel { display: none; }
.book-panel.active { display: block; }

/* Sailing select cards */
.sailing-select { cursor: pointer; transition: all .2s; }
.sailing-select:hover { border-color: var(--primary); }
.sailing-select.selected { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); background: var(--primary-light); }

/* Vehicle toggle */
.vehicle-toggle { display: flex; gap: .5rem; margin-bottom: 1rem; }
.vehicle-toggle-btn {
  flex: 1; padding: .75rem 1rem; border: 1px solid var(--border);
  border-radius: var(--radius-sm); text-align: center; cursor: pointer;
  font-weight: 600; font-size: .88rem; font-family: var(--font-body);
  background: var(--card); color: var(--foreground); transition: all .2s;
}
.vehicle-toggle-btn:hover { border-color: var(--primary); }
.vehicle-toggle-btn.active { border-color: var(--primary); background: var(--primary-light); color: var(--primary); box-shadow: 0 0 0 2px var(--primary); }

.vehicle-select { margin-top: .75rem; }

/* Passenger counter */
.pax-counter { display: flex; align-items: center; gap: .75rem; }
.pax-counter button {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--card);
  font-size: 1.1rem; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--foreground); transition: all .2s;
}
.pax-counter button:hover { border-color: var(--primary); color: var(--primary); }
.pax-counter .pax-num { font-size: 1.1rem; font-weight: 700; min-width: 30px; text-align: center; }

/* Booking summary sidebar */
.book-summary {
  background: var(--muted); border-radius: var(--radius);
  padding: 1.25rem; margin-top: 1.5rem;
}
.book-summary h3 { font-family: var(--font-heading); font-size: 1rem; margin-bottom: .75rem; }

/* ═══════════════════════════════════════════════════════════
   STATS (admin)
   ═══════════════════════════════════════════════════════════ */
.stats-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:1rem; margin-bottom:1.5rem; }
.stat-card {
  background:var(--card); border:1px solid var(--border); border-radius:var(--radius);
  padding:1.25rem; display:flex; align-items:center; gap:1rem;
}
.stat-icon {
  width:48px; height:48px; border-radius:var(--radius-sm);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.stat-icon.blue { background:var(--primary-soft); color:var(--primary); }
.stat-icon.green { background:var(--success-light); color:var(--success); }
.stat-icon.amber { background:var(--warning-light); color:var(--warning); }
.stat-icon.red { background:var(--danger-light); color:var(--danger); }
.stat-icon svg { width:22px; height:22px; }
.stat-info .stat-value { font-size:1.5rem; font-weight:700; font-family:var(--font-heading); color:var(--foreground); line-height:1.2; }
.stat-info .stat-label { font-size:.78rem; color:var(--muted-fg); font-weight:500; }

/* ═══════════════════════════════════════════════════════════
   TABS (admin)
   ═══════════════════════════════════════════════════════════ */
.tabs { display:flex; gap:0; border-bottom:1px solid var(--border); margin-bottom:1.5rem; overflow-x:auto; }
.tab {
  padding:.6rem 1.15rem; cursor:pointer; font-weight:500; color:var(--muted-fg);
  border-bottom:2px solid transparent; margin-bottom:-1px;
  transition:all var(--transition); background:none; border-top:none; border-left:none; border-right:none;
  font-size:.88rem; font-family:var(--font-body); white-space:nowrap;
}
.tab:hover { color:var(--foreground); }
.tab.active { color:var(--primary); border-bottom-color:var(--primary); }
.tab-content { display:none; }
.tab-content.active { display:block; }

/* ═══════════════════════════════════════════════════════════
   LOGIN
   ═══════════════════════════════════════════════════════════ */
.login-container { display:flex; align-items:center; justify-content:center; min-height:calc(100vh - 68px); }
.login-card {
  background:var(--card); border:1px solid var(--border); border-radius:var(--radius);
  box-shadow:var(--shadow-md); padding:2.5rem; width:100%; max-width:400px;
}
.login-card h2 { font-family:var(--font-heading); text-align:center; margin-bottom:1.5rem; font-size:1.4rem; }

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer { background:var(--card); border-top:1px solid var(--border); }
.footer-inner { max-width:var(--max-w); margin:0 auto; padding:2.5rem 1.5rem 1.5rem; text-align:center; }

.footer-brand { margin-bottom:1.5rem; }
.footer-brand .footer-logo {
  font-family:var(--font-heading); font-size:1.6rem; font-weight:700;
  color:var(--foreground); display:flex; align-items:center; justify-content:center; gap:.5rem; margin-bottom:.3rem;
}
.footer-brand .footer-logo img { height: 64px; width: auto; }
.footer-brand .footer-tagline {
  font-size:.85rem; color:var(--primary); font-style:italic; font-weight:500;
}

.footer-links {
  display:flex; justify-content:center; gap:1.5rem; flex-wrap:wrap;
  margin-bottom:1.5rem;
}
.footer-links a {
  font-size:.9rem; color:var(--foreground); font-weight:500;
  transition:color var(--transition);
}
.footer-links a:hover { color:var(--primary); }

.footer-bottom {
  padding-top:1.25rem; border-top:1px solid var(--border); text-align:center;
}
.footer-bottom p { font-size:.78rem; color:var(--muted-fg); line-height:1.7; }


/* ═══════════════════════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════════════════════ */
.toast-container { position:fixed; top:84px; right:1.5rem; z-index:2000; display:flex; flex-direction:column; gap:.5rem; }
.toast {
  padding:.7rem 1.15rem; border-radius:var(--radius-sm); color:#fff;
  font-weight:500; font-size:.85rem; box-shadow:var(--shadow-md);
  animation:slideIn .3s ease; max-width:340px;
}
.toast.success { background:var(--success); }
.toast.error { background:var(--danger); }
.toast.info { background:var(--primary); }
@keyframes slideIn { from{transform:translateX(100%);opacity:0} to{transform:translateX(0);opacity:1} }

/* ═══════════════════════════════════════════════════════════
   LOADING / EMPTY
   ═══════════════════════════════════════════════════════════ */
.spinner { display:inline-block; width:18px; height:18px; border:2px solid var(--border); border-top-color:var(--primary); border-radius:50%; animation:spin .6s linear infinite; }
@keyframes spin { to{transform:rotate(360deg)} }
.loading-state { text-align:center; padding:3rem; color:var(--muted-fg); display:flex; align-items:center; justify-content:center; gap:.7rem; font-size:.9rem; }
.loading-overlay { text-align:center; padding:3rem; color:var(--muted-fg); }
.empty-state { text-align:center; padding:3rem; color:var(--muted-fg); font-size:.9rem; }

/* legacy compat */
.filters { display:flex; gap:1rem; flex-wrap:wrap; align-items:end; }
.filter-group { display:flex; flex-direction:column; gap:.3rem; }
.filter-group label { font-size:.72rem; font-weight:600; color:var(--muted-fg); text-transform:uppercase; letter-spacing:.5px; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
/* Booking flow mobile */
@media (max-width: 768px) {
  .book-layout { padding: 1.25rem .75rem 2rem; }
  .book-steps { gap: 0; flex-wrap: wrap; justify-content: center; }
  .book-step { padding: .4rem .6rem; font-size: .75rem; }
  .book-step .step-num { width: 22px; height: 22px; font-size: .68rem; }
  .book-step-divider { width: 16px; }
  .vehicle-toggle { flex-direction: column; }
  .vehicle-row { padding: .7rem .75rem; gap: .6rem; }
  .vehicle-row .vr-label { font-size: .85rem; }
  .vehicle-row .vr-icon { width: 56px; }
  .vehicle-row .vr-icon svg { max-width: 56px; max-height: 22px; }
}

/* ═══ Tablet (max 900px) ═══ */
@media (max-width: 900px) {
  .sailing-card {
    grid-template-columns: 1fr;
    gap: .5rem; padding: 1rem;
  }
  .sailing-card > * { justify-self: start; }
  .sailing-time { display: flex; gap: .75rem; align-items: baseline; }
  .sailing-divider { flex-direction: row; gap: .5rem; }
  .sailing-price { text-align: left; display: flex; align-items: center; gap: .75rem; }
  .sailing-action { justify-self: stretch; }
  .sailing-action .btn { width: 100%; }
  .sailing-tags { display: none; }
}

/* ═══ Mobile (max 768px) ═══ */
@media (max-width: 768px) {
  /* Nav */
  .nav-inner { height: 68px; padding: 0 1rem; }
  .logo { font-size: 1.2rem; }
  .logo img { height: 58px; width: auto; max-height: calc(100% - 6px); }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; position: fixed; top: 68px; left: 0; right: 0; bottom: 0;
    flex-direction: column; background: var(--card);
    padding: 1rem; box-shadow: var(--shadow-lg);
    overflow-y: auto; z-index: 200;
  }
  .nav-links.open a { padding: .75rem 1rem; font-size: 1rem; border-radius: var(--radius-sm); }
  .nav-links.open .nav-cta { margin-top: .5rem; text-align: center; }
  .mobile-toggle { display: block; }

  /* Nav dropdown on mobile */
  .nav-dropdown-menu { position: static; box-shadow: none; border: none; padding: 0 0 0 1rem; opacity: 1; visibility: visible; transform: none; display: none; min-width: auto; }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }

  /* Hero */
  .hero { min-height: 320px; margin-top: 68px; }
  .hero-content { padding: 2rem 1rem 3.5rem; }
  .hero-content h1 { font-size: 1.6rem; }
  .hero-content p { font-size: .9rem; }

  /* Search */
  .search-section { margin-top: -2rem; padding: 0 .75rem; }
  .search-bar { padding: 1rem; }
  .search-fields { flex-direction: column; gap: .75rem; }
  .search-group { min-width: 100%; }
  .search-tabs { gap: .35rem; }
  .search-tab { padding: .35rem .75rem; font-size: .78rem; }
  .btn-lg { padding: .65rem 1.5rem; font-size: .9rem; width: 100%; }

  /* Container */
  .container { padding: 0 .75rem; }
  .section { padding: 2rem 0; }
  .section-header h2 { font-size: 1.3rem; }
  .section-header-left h2 { font-size: 1.3rem; }

  /* Route cards */
  .routes-grid { grid-template-columns: 1fr; gap: 1rem; }
  .route-card-img { height: 140px; }
  .route-card-body h3 { font-size: 1rem; }

  /* Feature cards */
  .features-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .feature-card-img { height: 120px; }
  .feature-card-body { padding: .75rem 1rem 1rem; }
  .feature-icon { width: 38px; height: 38px; margin: .4rem auto .5rem; }
  .feature-icon svg { width: 18px; height: 18px; }
  .feature-card h3 { font-size: .92rem; }
  .feature-card p { font-size: .8rem; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }

  /* Forms & Modals */
  .form-grid { grid-template-columns: 1fr; }
  .class-selector { grid-template-columns: 1fr; gap: .5rem; }
  .modal { padding: 1.25rem; width: 96%; max-height: 95vh; }
  .modal h2 { font-size: 1.15rem; }

  /* Booking summary */
  .booking-summary { padding: .75rem; }
  .summary-row { font-size: .84rem; }

  /* Sailing cards mobile */
  .sailing-card { padding: .85rem; gap: .4rem; }
  .sailing-time .depart { font-size: 1.05rem; }
  .sailing-price .price-val { font-size: 1.1rem; }

  /* Tables */
  table { font-size: .75rem; }
  th, td { padding: .4rem .5rem; }

  /* Pages */
  .page-top { margin-top: 68px; }
  .page-header { padding: 2rem 1rem 1.5rem; margin-top: 68px; }
  .page-header h1 { font-size: 1.4rem; }
  .page-header p { font-size: .85rem; }

  /* FAQ */
  .faq-question { padding: .8rem 1rem; font-size: .88rem; }
  .faq-answer-inner { padding: 0 1rem .8rem; font-size: .84rem; }

  /* Footer */
  .footer-inner { padding: 2rem 1rem 1.25rem; }
  .footer-brand .footer-logo { font-size: 1.3rem; }
  .footer-brand .footer-logo img { height: 52px; width: auto; }
  .footer-links { gap: .75rem; flex-direction: column; }
  .footer-links a { font-size: .85rem; }
  .footer-bottom p { font-size: .72rem; }

  /* Admin stats */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .stat-card { padding: .85rem; gap: .6rem; }
  .stat-info .stat-value { font-size: 1.2rem; }

  /* Tabs */
  .tabs { gap: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tab { padding: .5rem .8rem; font-size: .8rem; }
}

/* ═══ Small phone (max 480px) ═══ */
@media (max-width: 480px) {
  .hero { min-height: 280px; }
  .hero-content h1 { font-size: 1.35rem; }
  .hero-content p { font-size: .85rem; }

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

  .search-tabs { flex-wrap: wrap; }
  .footer-links { gap: .6rem; }

  .logo img { height: 48px; width: auto; max-height: calc(100% - 6px); }
  .logo span { font-size: 1.1rem; }

  .class-card .class-price { font-size: 1.1rem; }
  .class-card .class-name { font-size: .82rem; }

  .sailing-card { border-radius: var(--radius-sm); }
  .route-card { border-radius: var(--radius-sm); }
  .route-card-img { height: 120px; }

  /* Extra items */
  .extra-item { padding: .45rem .6rem; font-size: .85rem; }
  .extra-item .extra-price { font-size: .82rem; }

  /* Promo */
  .promo-row { flex-direction: column; }
  .promo-row input { width: 100%; }

  /* Step actions */
  .step-actions { flex-direction: column; }
  .step-actions .btn { width: 100%; }

  /* Contact cards */
  .contact-info-card { padding: 1rem; }
  .ci-icon { width: 38px; height: 38px; }
}
