/* ============================================================
   BaliGoat — Glassmorphic Design System v2.0
   World-class glass morphic PWA design
   Ocean theme | Mobile-first | Large comfortable UI
   ============================================================ */

/* ─── 1. CSS Variables ─── */
:root {
  --bg-primary: #0A1628;
  --bg-secondary: #152238;
  --bg-gradient: linear-gradient(135deg, #0A1628 0%, #1A2A4A 50%, #0F1F38 100%);
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-bg-hover: rgba(255, 255, 255, 0.10);
  --glass-bg-strong: rgba(255, 255, 255, 0.10);
  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-border-hover: rgba(255, 255, 255, 0.18);
  --glass-blur: blur(24px);
  --accent: #F47521;
  --accent-hover: #FF8A3C;
  --accent-gradient: linear-gradient(135deg, #F47521 0%, #FF8A3C 100%);
  --ocean: #006B7F;
  --ocean-light: #0A8BA8;
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.80);
  --text-tertiary: rgba(255, 255, 255, 0.55);
  --text-on-accent: #FFFFFF;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 80px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.25);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.3);
  --shadow-glow: 0 0 30px rgba(244, 117, 33, 0.25);
  --shadow-glass: 0 8px 32px rgba(0,0,0,0.3);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max: 1200px;
  --nav-height: 70px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, sans-serif;
  background: var(--bg-gradient);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  padding-top: var(--nav-height);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

::selection { background: var(--accent); color: var(--text-on-accent); }

/* ─── 3. Typography ─── */
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); font-weight: 600; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 600; line-height: 1.4; }
p { font-size: 1rem; line-height: 1.7; color: var(--text-secondary); }
small { font-size: 0.875rem; color: var(--text-tertiary); }
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-hover); }

/* ─── 4. Layout ─── */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-lg); }
.section { padding: var(--space-3xl) 0; }
.section-title { text-align: center; margin-bottom: var(--space-xl); }
.section-sub { text-align: center; color: var(--text-tertiary); margin-top: -16px; margin-bottom: var(--space-2xl); }
.grid-2, .grid-3 { display: grid; gap: var(--space-lg); }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* ─── 5. Glassmorphism ─── */
.glass-card {
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: var(--transition);
  box-shadow: var(--shadow-glass);
}
.glass-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
/* ─── 6. Navigation ─── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-height); z-index: 1000;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0 var(--space-lg);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 100%; padding: 0; max-width: var(--container-max); }
.logo { display: flex; align-items: center; gap: var(--space-sm); flex-shrink: 0; }
.logo-img { width: 40px; height: 40px; border-radius: var(--radius-sm); }
.logo-text { font-size: 1.25rem; font-weight: 800; color: var(--text-primary); letter-spacing: -0.02em; }
.logo-text span { color: var(--accent); }
.nav-links { display: none; list-style: none; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--text-secondary); padding: 8px var(--space-md);
  border-radius: var(--radius-md); font-size: 0.9rem; font-weight: 500;
  transition: var(--transition); white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { background: var(--glass-bg); color: var(--text-primary); }

/* Nav toggle */
.nav-toggle {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: var(--space-sm); z-index: 1001;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: var(--transition); }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav panel */
.nav-panel {
  position: fixed; top: var(--nav-height); left: 0; right: 0; bottom: 0;
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-lg);
  z-index: 999; opacity: 0; pointer-events: none; transition: var(--transition);
}
.nav-panel.open { opacity: 1; pointer-events: all; }
.nav-panel a { font-size: 1.25rem; color: var(--text-secondary); padding: var(--space-md) var(--space-xl); border-radius: var(--radius-md); }
.nav-panel a:hover { color: var(--text-primary); background: var(--glass-bg); }
@media (min-width: 768px) { .nav-toggle { display: none; } .nav-panel { display: none; } .nav-links { display: flex; } }

/* ─── 7. Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm);
  padding: 14px 28px; font-size: 1rem; font-weight: 600;
  border-radius: var(--radius-full); border: none; cursor: pointer;
  transition: var(--transition); text-decoration: none; white-space: nowrap; line-height: 1.2; min-height: 52px;
}
.btn-lg { padding: 18px 36px; font-size: 1.1rem; min-height: 60px; }
.btn-primary {
  background: var(--accent-gradient); color: var(--text-on-accent);
  box-shadow: 0 4px 20px rgba(244, 117, 33, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(244, 117, 33, 0.5); color: var(--text-on-accent); }
.btn-secondary { background: var(--glass-bg-strong); color: var(--text-primary); border: 1px solid var(--glass-border); }
.btn-secondary:hover { background: var(--glass-bg-hover); border-color: var(--glass-border-hover); }
.btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid rgba(255,255,255,0.15); }
.btn-ghost:hover { background: var(--glass-bg); color: var(--text-primary); }

/* ─── 8. Booking Top Section ─── */
/* Booking section sits above hero, always visible */
.booking-top {
  padding: var(--space-xl) 0 var(--space-md);
  position: relative; overflow: hidden;
}
.booking-top .container {
  max-width: 780px;
}
.booking-card {
  background: var(--glass-bg); backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); border-radius: var(--radius-xl);
  padding: var(--space-xl); box-shadow: var(--shadow-glass);
  margin: 0 auto; max-width: 100%;
  position: relative;
  transition: min-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              margin 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.booking-card.slide-up {
  transform: translateY(-8px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
  border-color: rgba(244, 117, 33, 0.2);
}
.booking-card.step-active {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}
.hero-form { display: flex; flex-direction: column; gap: var(--space-lg); }

/* Form fields slide transition */
.form-row.search-compact {
  max-height: 0; overflow: hidden; opacity: 0;
  padding-top: 0; padding-bottom: 0; margin-top: 0; margin-bottom: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              margin 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.form-row.search-compact.show {
  max-height: 200px; opacity: 1;
}
.form-row.search-compact.hide {
  max-height: 0; opacity: 0; margin: 0;
}

/* Step content smooth transitions */
#search-results > div {
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
#search-results > div.slide-step-in {
  animation: slideStepIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}
#search-results > div.slide-step-out {
  animation: slideStepOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes slideStepIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideStepOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-12px); }
}

/* ─── 9. Hero Section ─── */
.hero {
  padding: 0 0 var(--space-3xl);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(244, 117, 33, 0.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -30%; left: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0, 107, 127, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-content.hero-fade {
  opacity: 0.5;
  transform: scale(0.97);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: var(--space-sm);
  background: rgba(244, 117, 33, 0.12); border: 1px solid rgba(244, 117, 33, 0.25);
  color: var(--accent); padding: 6px 16px; border-radius: var(--radius-full);
  font-size: 0.85rem; font-weight: 600; margin-bottom: var(--space-lg);
}
.hero-badge svg { width: 14px; height: 14px; }
.hero-heading { margin-bottom: var(--space-md); }
.hero-heading-accent {
  background: var(--accent-gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub {
  font-size: 1.1rem; margin-bottom: var(--space-lg);
  max-width: 600px; margin-left: auto; margin-right: auto;
}

/* Trust badges */
.trust-bar {
  display: flex; flex-wrap: wrap; gap: var(--space-sm);
  justify-content: center;
  margin-bottom: 0;
}
.trust-item {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--glass-bg); border: 1px solid rgba(255,255,255,0.06);
  padding: 6px 14px; border-radius: var(--radius-full);
  font-size: 0.82rem; color: var(--text-secondary); font-weight: 500;
}
.trust-item svg { width: 13px; height: 13px; flex-shrink: 0; }

/* Trip type toggle */
.trip-toggle {
  display: flex; background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-full); padding: 4px; gap: 4px;
}
.trip-btn {
  flex: 1; padding: 12px 20px; border: none;
  background: transparent; color: var(--text-tertiary);
  font-size: 0.95rem; font-weight: 600; border-radius: var(--radius-full);
  cursor: pointer; transition: var(--transition);
}
.trip-btn.active { background: var(--accent-gradient); color: var(--text-on-accent); box-shadow: var(--shadow-glow); }
.trip-btn:hover:not(.active) { color: var(--text-secondary); }

.form-row { display: flex; flex-direction: column; gap: var(--space-md); }
@media (min-width: 600px) { .form-row { flex-direction: row; } .form-row > * { flex: 1; } }
.form-group { display: flex; flex-direction: column; gap: 6px; }
#step-customer .form-row { margin-bottom: var(--space-md); }
.form-group label {
  font-size: 0.8rem; font-weight: 600; color: var(--text-tertiary);
  text-transform: uppercase; letter-spacing: 0.05em;
}

/* ─── 9. Form Inputs ─── */
.form-input, .form-select {
  width: 100%; padding: 16px 18px; font-size: 1rem;
  color: var(--text-primary); background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md); outline: none; transition: var(--transition);
  min-height: 56px; font-family: inherit; line-height: 1.4;
  -webkit-appearance: none; appearance: none;
}
.form-input:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(244, 117, 33, 0.15);
  background: rgba(255,255,255,0.08);
}
.form-input::placeholder { color: var(--text-tertiary); }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ffffff' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  padding-right: 44px; cursor: pointer;
}
.form-select option { background: #1A2A4A; color: var(--text-primary); }
input[type="date"].form-input::-webkit-calendar-picker-indicator { filter: invert(1); opacity: 0.6; cursor: pointer; }
input[type="number"].form-input { -moz-appearance: textfield; }
input[type="number"].form-input::-webkit-inner-spin-button,
input[type="number"].form-input::-webkit-outer-spin-button { opacity: 1; height: 32px; }

/* Search CTA */
.btn-search {
  display: flex; align-items: center; justify-content: center; gap: var(--space-sm);
  width: 100%; padding: 18px 24px; font-size: 1.1rem; font-weight: 700;
  background: var(--accent-gradient); color: var(--text-on-accent);
  border: none; border-radius: var(--radius-full); cursor: pointer;
  transition: var(--transition); min-height: 60px;
  box-shadow: 0 4px 20px rgba(244, 117, 33, 0.35);
}
.btn-search:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(244, 117, 33, 0.5); }
.btn-search:active { transform: translateY(0); }

/* ─── 10. Features Section ─── */
.features-grid { display: grid; gap: var(--space-lg); }
@media (min-width: 600px) { .features-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 900px) { .features-grid { grid-template-columns: repeat(4,1fr); } }
.feature-card { text-align: center; padding: var(--space-xl) var(--space-lg); }
.feature-icon {
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--space-lg); background: rgba(244, 117, 33, 0.12);
  border-radius: var(--radius-lg); font-size: 1.5rem;
}
.feature-card h3 { margin-bottom: var(--space-sm); }
.feature-card p { font-size: 0.9rem; margin: 0; }

.payment-bar {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: var(--space-md); margin-top: var(--space-lg); padding: var(--space-lg);
  background: var(--glass-bg); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
}
.payment-label { font-size: 0.8rem; color: var(--text-tertiary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.payment-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.08); padding: 6px 14px;
  border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 600; color: var(--text-secondary);
}
.pay-logo { height: 18px; width: auto; display: block; }
.badge-visa { padding: 4px 10px; }
.badge-visa .pay-logo { height: 14px; }
.badge-mastercard { padding: 4px 8px; }
.badge-mastercard .pay-logo { height: 16px; }
.badge-applepay { padding: 4px 10px; }
.badge-applepay .pay-logo { height: 16px; }
.badge-googlepay { padding: 4px 8px; }
.badge-googlepay .pay-logo { height: 16px; }
.badge-bank { padding: 4px 10px; }
.badge-bank .pay-logo { height: 16px; }

/* ─── 11. Operators ─── */
.operators-grid { display: grid; gap: var(--space-lg); }
@media (min-width: 600px) { .operators-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 900px) { .operators-grid { grid-template-columns: repeat(3,1fr); } }
.operator-card {
  display: flex; flex-direction: column; gap: var(--space-sm);
  padding: var(--space-lg); text-decoration: none; color: var(--text-primary);
}
.operator-card:hover { color: var(--text-primary); }
.operator-name { font-size: 1.15rem; font-weight: 700; display: flex; align-items: center; gap: var(--space-sm); }
.operator-badge { font-size: 0.7rem; background: var(--accent); color: var(--text-on-accent); padding: 2px 10px; border-radius: var(--radius-full); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.operator-desc { font-size: 0.85rem; color: var(--text-tertiary); margin: 0; }

/* ─── 12. Routes ─── */
.routes-grid { display: grid; gap: var(--space-md); }
@media (min-width: 600px) { .routes-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 900px) { .routes-grid { grid-template-columns: repeat(3,1fr); } }
.route-card { display: flex; flex-direction: column; gap: var(--space-sm); padding: var(--space-lg); cursor: pointer; }
.route-route { font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: var(--space-sm); }
.route-route svg { width: 16px; height: 16px; flex-shrink: 0; }
.route-meta { display: flex; justify-content: space-between; align-items: center; }
.route-price { font-size: 1.1rem; font-weight: 800; color: var(--accent); }
.route-duration { font-size: 0.85rem; color: var(--text-tertiary); }

/* ─── 13. Steps ─── */
.steps-grid { display: grid; gap: var(--space-lg); counter-reset: step; }
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(3,1fr); } }
.step-card { position: relative; padding: var(--space-xl); text-align: center; }
.step-card::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin: 0 auto var(--space-lg);
  background: var(--accent-gradient); border-radius: 50%;
  font-size: 1.1rem; font-weight: 800; color: var(--text-on-accent);
  box-shadow: var(--shadow-glow);
}
.step-card h3 { margin-bottom: var(--space-sm); }
.step-card p { font-size: 0.9rem; margin: 0; }

/* ─── 14. Footer ─── */
.footer {
  background: rgba(0, 0, 0, 0.3); backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: var(--space-3xl) 0 var(--space-2xl); margin-top: var(--space-3xl);
}
.footer-grid { display: grid; gap: var(--space-xl); }
@media (min-width: 600px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand h3 { margin-bottom: var(--space-sm); }
.footer-brand p { font-size: 0.9rem; margin: 0; }
.footer-col h4 { color: var(--text-primary); margin-bottom: var(--space-md); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col a { display: block; color: var(--text-tertiary); padding: 4px 0; font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { text-align: center; padding-top: var(--space-xl); margin-top: var(--space-xl); border-top: 1px solid rgba(255,255,255,0.06); }
.footer-bottom small { color: var(--text-tertiary); font-size: 0.8rem; }

/* ─── 15. Locale Popover ─── */
.locale-popover { position: relative; z-index: 100; }
.locale-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  color: var(--text-secondary); padding: 10px 16px;
  border-radius: var(--radius-full); cursor: pointer;
  font-size: 0.85rem; font-weight: 500; transition: var(--transition); font-family: inherit;
}
.locale-btn:hover { background: var(--glass-bg-hover); color: var(--text-primary); }
.locale-panel {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 320px; max-width: 90vw;
  background: rgba(21, 34, 56, 0.97); backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  padding: var(--space-lg); box-shadow: var(--shadow-lg); display: none;
}
.locale-popover.open .locale-panel { display: block; }
.locale-section { margin-bottom: var(--space-md); }
.locale-section:last-child { margin-bottom: 0; }
.locale-section-title { font-size: 0.75rem; font-weight: 700; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--space-sm); }
.locale-options { display: flex; flex-wrap: wrap; gap: 6px; }
.locale-option {
  padding: 8px 14px; background: var(--glass-bg); border: 1px solid var(--glass-border);
  color: var(--text-secondary); border-radius: var(--radius-sm); cursor: pointer;
  font-size: 0.8rem; font-weight: 500; transition: var(--transition); font-family: inherit;
}
.locale-option:hover { background: var(--glass-bg-hover); color: var(--text-primary); }
.locale-option.active { background: rgba(244, 117, 33, 0.15); border-color: var(--accent); color: var(--accent); }
.locale-divider { height: 1px; background: rgba(255,255,255,0.06); margin: var(--space-md) 0; }

/* ─── 16. WhatsApp Float ─── */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 900;
}
.whatsapp-float a {
  display: flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: white;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
}
.whatsapp-float a:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6); color: white; }
.whatsapp-float svg { width: 28px; height: 28px; }

/* ─── 17. Animations ─── */
@keyframes pulseGlow { 0%,100% { box-shadow: 0 4px 20px rgba(244,117,33,0.35); } 50% { box-shadow: 0 4px 30px rgba(244,117,33,0.6); } }
.btn-search { animation: pulseGlow 3s ease-in-out infinite; }
.btn-search:hover { animation: none; }

/* ─── 18. Subpages ─── */
.subpage-header { padding: var(--space-2xl) 0 var(--space-xl); text-align: center; }
.subpage-header h1 { margin-bottom: var(--space-sm); }
.subpage-header .back-link {
  display: inline-flex; align-items: center; gap: var(--space-sm);
  color: var(--text-tertiary); font-size: 0.9rem; margin-top: var(--space-md);
}
.subpage-header .back-link:hover { color: var(--accent); }
.content-section { max-width: 800px; margin: 0 auto var(--space-2xl); }
.content-card { padding: var(--space-xl); }
.content-card h2 { margin-bottom: var(--space-lg); font-size: 1.3rem; }
.content-card h3 { margin: var(--space-lg) 0 var(--space-sm); font-size: 1.05rem; }
.content-card p { margin-bottom: var(--space-md); }
.content-card ul, .content-card ol { padding-left: var(--space-lg); margin-bottom: var(--space-md); color: var(--text-secondary); line-height: 1.7; }
.content-card li { margin-bottom: var(--space-sm); }
.content-card table { width: 100%; border-collapse: collapse; margin: var(--space-lg) 0; }
.content-card th, .content-card td { padding: var(--space-sm) var(--space-md); text-align: left; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 0.9rem; }
.content-card th { color: var(--text-tertiary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.75rem; }
.content-card td { color: var(--text-secondary); }

/* Info table (standalone) */
.info-table { width: 100%; border-collapse: collapse; margin: 0; }
.info-table thead th { padding: var(--space-sm) var(--space-md); text-align: left; border-bottom: 2px solid var(--accent); color: var(--accent); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.info-table tbody td { padding: var(--space-md); border-bottom: 1px solid rgba(255,255,255,0.06); color: var(--text-secondary); font-size: 0.9rem; }
.info-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.info-table tbody tr:last-child td { border-bottom: none; }

/* FAQ accordion */
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.06); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--space-lg); cursor: pointer; color: var(--text-primary);
  font-size: 1rem; font-weight: 600; font-family: inherit;
  transition: var(--transition); user-select: none;
}
.faq-q:hover { color: var(--accent); }
.faq-arrow {
  flex-shrink: 0; font-size: 1.4rem; font-weight: 300; line-height: 1;
  color: var(--accent); transition: transform 0.3s ease;
}
.faq-arrow.open { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a.open { max-height: 800px; }
.faq-a p {
  margin: 0; padding: 0 var(--space-lg) var(--space-lg);
  color: var(--text-secondary); line-height: 1.7; font-size: 0.95rem;
}
.faq-a ul, .faq-a ol { padding-left: var(--space-lg); margin-bottom: var(--space-md); color: var(--text-secondary); line-height: 1.7; }

/* ─── 19. Skip Link ─── */
.skip-link {
  position: fixed; top: -100px; left: 8px;
  background: var(--accent); color: var(--text-on-accent);
  padding: 8px 16px; z-index: 9999;
  border-radius: 0 0 4px 4px; font-size: 0.875rem; transition: top 0.15s;
}
.skip-link:focus { top: 0; }

/* ─── 21. PWA Safe Areas ─── */
@supports (padding-top: env(safe-area-inset-top)) {
  .navbar { padding-top: env(safe-area-inset-top,0); height: calc(var(--nav-height) + env(safe-area-inset-top,0)); }
  body { padding-top: calc(var(--nav-height) + env(safe-area-inset-top,0)); }
  .nav-panel { top: calc(var(--nav-height) + env(safe-area-inset-top,0)); }
  .whatsapp-float { bottom: calc(24px + env(safe-area-inset-bottom,0)); }
}

/* ─── 22. Responsive ─── */
@media (max-width: 480px) {
  :root { --space-lg: 16px; --space-xl: 20px; --space-2xl: 32px; --space-3xl: 48px; }
  .hero-card { padding: var(--space-lg); border-radius: var(--radius-lg); }
  .form-input, .form-select { padding: 14px 16px; min-height: 52px; }
  .btn { min-height: 48px; padding: 12px 24px; }
  .btn-search { min-height: 56px; }
  .locale-panel { right: -16px; width: 280px; }
  .whatsapp-float { bottom: 16px; right: 16px; }
  .whatsapp-float a { width: 52px; height: 52px; }
}
@media (max-width: 767px) {
  .content-card { padding: var(--space-lg); }
  .content-card table { display: block; overflow-x: auto; }
  .operator-card, .route-card { padding: var(--space-md) var(--space-lg); }
}
@media (max-width: 1023px) {
  .booking-top { padding-top: var(--space-md); }
  .booking-card { padding: var(--space-lg); }
  .hero-content { text-align: center; max-width: 700px; margin: 0 auto; }
  .hero-sub { max-width: 600px; margin-left: auto; margin-right: auto; }
  .trust-bar { justify-content: center; margin-bottom: var(--space-lg); }
}
@media (min-width: 1024px) {
  .booking-top { padding-top: var(--space-xl); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
