/* ===========================
   TN Tourist Bus Finder Styles
   =========================== */

:root {
  --saffron: #0D9488;
  --saffron-light: #14B8A6;
  --saffron-pale: #CCFBF1;
  --gold: #F59E0B;
  --gold-light: #FBBF24;
  --temple-maroon: #0D9488;
  --teal: #0EA5E9;
  --teal-light: #38BDF8;
  --teal-pale: #E0F2FE;
  --dark: #071A2B;
  --dark-2: #0F2A3F;
  --mid: #55606E;
  --light: #F6FAF9;
  --white: #FFFFFF;
  --border: #E1E8E6;
  --shadow: 0 4px 24px rgba(7,26,43,0.08);
  --shadow-lg: 0 12px 48px rgba(7,26,43,0.14);
  --radius: 20px;
  --radius-sm: 12px;
  --brand-gradient: linear-gradient(135deg, var(--saffron) 0%, var(--gold) 100%);
}

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

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--light);
  color: var(--dark);
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  background: var(--dark);
  overflow: hidden;
  padding: 72px 24px 80px;
  text-align: center;
}

.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-pattern {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(99,102,241,0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(6,182,212,0.15) 0%, transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(236,72,153,0.12) 0%, transparent 40%);
}

.temple-silhouette {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 120px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath d='M0,80 L100,80 L100,60 L120,40 L130,20 L135,5 L140,20 L145,40 L155,60 L155,80 L180,80 L180,65 L190,50 L195,35 L200,50 L205,65 L205,80 L280,80 L280,70 L295,55 L305,70 L305,80 L600,80 L600,70 L615,55 L625,70 L625,80 L900,80 L900,70 L910,55 L920,70 L920,80 L1200,80 L1200,120 L0,120 Z' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E") center bottom / cover no-repeat;
}

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

.brand-badge {
  display: inline-block;
  background: rgba(212,160,23,0.15);
  border: 1px solid rgba(212,160,23,0.4);
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.title-tamil {
  display: block;
  font-family: 'Tiro Tamil', serif;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--gold-light);
  line-height: 1.2;
  margin-bottom: 6px;
}

.title-main {
  display: block;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-sub {
  color: rgba(255,255,255,0.55);
  font-size: 16px;
  font-weight: 400;
  margin-top: 16px;
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}

@media (max-width: 480px) {
  .stats-row { gap: 12px 16px; }
  .stat span { font-size: 22px; }
}

.stat {
  text-align: center;
}

.stat span {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--saffron-light);
  line-height: 1;
}

.stat label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-sep {
  color: rgba(255,255,255,0.2);
  font-size: 24px;
}

/* ========== SEARCH SECTION ========== */
.search-section {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(15,23,42,0.06);
}

/* Compact mini bar shown when filters are collapsed on small screens */
.search-mini {
  display: none;
  padding: 8px 0;
}
.search-mini .mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.search-mini .mini-left { display:flex; align-items:center; gap:8px; }
.search-mini .mini-right { display:flex; align-items:center; }
.search-section.collapsed { padding: 8px 0; height: auto; position: static; }
.search-section.collapsed .search-card { display: none !important; }
.search-section.collapsed .search-mini { display: block; }

/* Mobile expanded state: occupies 75% of viewport and is scrollable */
.search-section.mobile-expanded {
  position: sticky;
  top: 0;
  height: 75vh;
  padding: 0;
  z-index: 120;
}
.search-section.mobile-expanded .search-card {
  height: 100%;
  display: block;
  overflow-y: auto;
  padding: 16px 0;
}
.mobile-close {
  display: none;
}

@media (max-width: 580px) {
  .search-section.mobile-expanded { box-shadow: 0 8px 30px rgba(15,23,42,0.16); }
  .mobile-close { display: inline-flex; position: absolute; top: 10px; right: 16px; z-index: 130; height: 36px; align-items: center; justify-content: center; padding: 0 10px; border-radius: 8px; }
}

.search-card {
  background: var(--white);
}

.search-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  align-items: end;
}

@media (max-width: 900px) {
  .search-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
  .search-grid { grid-template-columns: 1fr; }
  .search-actions { flex-direction: column; }
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.field-group select,
.field-group input {
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  background: var(--light);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235C4A3D' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.field-group input {
  background-image: none;
  padding-right: 14px;
}

.field-group select:focus,
.field-group input:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(232,82,26,0.12);
  background-color: var(--white);
}

.search-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  justify-content: flex-end;
}

.btn-search {
  height: 48px;
  padding: 0 28px;
  background: linear-gradient(135deg, var(--saffron) 0%, var(--gold) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(99,102,241,0.35);
}

.btn-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(99,102,241,0.45);
}
}

.btn-search:active { transform: translateY(0); }

.btn-reset {
  height: 48px;
  padding: 0 20px;
  background: transparent;
  color: var(--mid);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-reset:hover {
  border-color: var(--saffron);
  color: var(--saffron);
  background: var(--saffron-pale);
}

/* ========== RESULTS SECTION ========== */
.results-section {
  padding: 40px 0 80px;
  min-height: 400px;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.results-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
}

.sort-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--mid);
}

.sort-btn {
  padding: 6px 12px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--mid);
  cursor: pointer;
  transition: all 0.15s;
}

.sort-btn:hover, .sort-btn.active {
  background: var(--saffron);
  border-color: var(--saffron);
  color: white;
}

/* ========== CARDS ========== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

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

.bus-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
  animation: fadeUp 0.4s ease both;
}

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

.bus-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--saffron);
}

.bus-card:focus-visible {
  outline: 3px solid rgba(232,82,26,0.25);
  outline-offset: 3px;
}

.card-header {
  padding: 22px 20px 18px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  position: relative;
  overflow: hidden;
}

.card-header::before {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(232,82,26,0.15);
}

.card-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}

.bus-icon {
  font-size: 32px;
  line-height: 1;
}

.availability-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.available {
  background: rgba(34,197,94,0.15);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,0.3);
}

.unavailable {
  background: rgba(239,68,68,0.15);
  color: #ef4444;
  border: 1px solid rgba(239,68,68,0.3);
}

.card-operator {
  position: relative;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin: 0;
  padding-right: 16px;
}

.operator-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.status-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.status-tag {
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.25);
  color: #2563eb;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  text-transform: none;
  letter-spacing: 0.02em;
}

.status-tag.verified {
  background: rgba(16,185,129,0.12);
  border-color: rgba(16,185,129,0.25);
  color: #10b981;
}

.status-tag.paid-customer {
  background: rgba(59,130,246,0.12);
  border-color: rgba(59,130,246,0.25);
  color: #2563eb;
}

.card-type-row {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.type-tag {
  background: rgba(232,82,26,0.2);
  border: 1px solid rgba(232,82,26,0.4);
  color: var(--saffron-light);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status-tag {
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.25);
  color: #2563eb;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-tag.verified {
  background: rgba(16,185,129,0.12);
  border-color: rgba(16,185,129,0.25);
  color: #10b981;
}

.status-tag.paid-customer {
  background: rgba(59,130,246,0.12);
  border-color: rgba(59,130,246,0.25);
  color: #2563eb;
}

.card-id {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  font-weight: 500;
}

.card-rating {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-light);
  margin-top: 6px;
}

/* Card Body */
.card-body {
  padding: 18px 20px 20px;
}

.info-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--mid);
  font-weight: 400;
}

.info-icon { font-size: 15px; flex-shrink: 0; margin-top: 1px; }

.info-text { color: var(--dark); font-weight: 500; }

.info-row:last-of-type { margin-bottom: 0; }

.card-divider {
  height: 1px;
  background: var(--border);
  margin: 14px 0;
}

.card-stats-row {
  display: flex;
  gap: 0;
  min-width: 0;
}

.card-stat {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  background: var(--light);
}

.card-stat:first-child {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  border-right: 1px solid var(--border);
}

.card-stat:last-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.stat-val {
  font-size: 17px;
  font-weight: 800;
  color: var(--saffron);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.stat-lbl {
  font-size: 11px;
  color: var(--mid);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.amenities-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.amenity-tag {
  background: var(--teal-pale);
  color: var(--teal);
  border: 1px solid rgba(15,123,123,0.2);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
}

.card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: var(--light);
}

.btn-details {
  flex: 1;
  height: 38px;
  background: linear-gradient(135deg, var(--saffron), var(--saffron-light));
  color: white;
  border: none;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 2px 8px rgba(232,82,26,0.3);
}

.btn-details:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(232,82,26,0.4);
}

.btn-call {
  height: 38px;
  padding: 0 14px;
  background: white;
  border: 1.5px solid var(--teal);
  color: var(--teal);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.btn-call:hover {
  background: var(--teal);
  color: white;
}

/* ========== EMPTY / LANDING STATES ========== */
.empty-state, .landing-state {
  text-align: center;
  padding: 80px 24px;
}

.empty-icon, .landing-icon {
  font-size: 64px;
  margin-bottom: 20px;
  display: block;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.empty-state h3, .landing-state h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.empty-state p, .landing-state p {
  font-size: 15px;
  color: var(--mid);
  max-width: 420px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.featured-districts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.chip {
  padding: 8px 20px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  transition: all 0.15s;
}

.chip:hover {
  background: var(--saffron);
  border-color: var(--saffron);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232,82,26,0.3);
}

/* ========== MODAL ========== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(26,21,18,0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: var(--white);
  border-radius: 20px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.96) translateY(16px);
  transition: transform 0.25s ease;
  box-shadow: var(--shadow-lg);
}

.modal-overlay.open .modal-card {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  background: var(--light);
  border: none;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--mid);
  z-index: 10;
  transition: background 0.15s, color 0.15s;
}

.modal-close:hover {
  background: var(--saffron);
  color: white;
}

.modal-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  padding: 28px 24px 24px;
  border-radius: 20px 20px 0 0;
}

.modal-hero-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.modal-bus-icon { font-size: 48px; }

.modal-operator {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}

.modal-type {
  display: inline-block;
  background: rgba(232,82,26,0.2);
  border: 1px solid rgba(232,82,26,0.4);
  color: var(--saffron-light);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.modal-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-light);
  margin-top: 6px;
}

.modal-stats {
  display: flex;
  gap: 12px;
}

.modal-stat {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.modal-stat .val {
  font-size: 22px;
  font-weight: 800;
  color: var(--saffron-light);
}

.modal-stat .lbl {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.modal-body {
  padding: 24px;
}

.modal-section-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 8px 0 12px;
}

.modal-section-title:not(:first-child) {
  margin-top: 24px;
}

.modal-info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.modal-info-item:last-child { border-bottom: none; }

.modal-info-icon {
  width: 36px; height: 36px;
  background: var(--saffron-pale);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.modal-info-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.modal-info-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  overflow-wrap: anywhere;
}

.modal-info-value a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 700;
}

.modal-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.modal-amenity {
  background: var(--teal-pale);
  color: var(--teal);
  border: 1px solid rgba(15,123,123,0.2);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
}

.modal-actions {
  display: flex;
  gap: 12px;
}

.modal-btn-primary {
  flex: 1;
  height: 48px;
  background: linear-gradient(135deg, var(--saffron), var(--saffron-light));
  color: white;
  border: none;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: flex; align-items: center; justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(232,82,26,0.35);
  transition: all 0.15s;
}

.modal-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232,82,26,0.45);
}

.modal-btn-secondary {
  height: 48px;
  padding: 0 20px;
  background: white;
  border: 1.5px solid var(--teal);
  color: var(--teal);
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: flex; align-items: center; justify-content: center;
  gap: 6px;
  transition: all 0.15s;
}

.modal-btn-secondary:hover {
  background: var(--teal);
  color: white;
}

@media (max-width: 520px) {
  .card-footer,
  .modal-actions {
    flex-direction: column;
  }

  .btn-details,
  .btn-call,
  .modal-btn-secondary {
    width: 100%;
  }

  .btn-call {
    justify-content: center;
  }

  .modal-stats {
    flex-direction: column;
  }
}

/* ========== FOOTER ========== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.45);
  text-align: center;
  padding: 32px 24px;
  font-size: 13px;
  line-height: 1.8;
}

.footer-sub {
  font-size: 12px;
  opacity: 0.6;
  margin-top: 4px;
}

.footer-sub a {
  color: rgba(255,255,255,0.85);
  text-decoration: underline;
  font-weight: 600;
}

.footer-sub a:hover {
  color: var(--white);
}

.footer-link {
  margin: 10px 0 0;
}

.footer-link a {
  color: rgba(255,255,255,0.85);
  text-decoration: underline;
  font-weight: 600;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 14px;
}

.footer-nav a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
}

.footer-nav a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* ========== LEGAL CONTENT PAGES ========== */
.legal-content {
  color: var(--mid);
  font-size: 15px;
  line-height: 1.7;
}

.legal-content h2 {
  color: var(--dark);
  font-size: 20px;
  font-weight: 700;
  margin: 28px 0 12px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  color: var(--dark);
  font-size: 16px;
  font-weight: 700;
  margin: 20px 0 8px;
}

.legal-content p {
  margin: 0 0 14px;
}

.legal-content ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-content a {
  color: var(--saffron);
  font-weight: 600;
}

.legal-content .legal-meta {
  color: var(--mid);
  opacity: 0.75;
  font-size: 13px;
  margin-bottom: 24px;
}

.legal-content strong {
  color: var(--dark);
}

/* ========== BOOKING CONSENT ========== */
.modal-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--mid);
  margin: 16px 0 4px;
}

.modal-consent input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}

.modal-consent a {
  color: var(--saffron);
  font-weight: 600;
}

.consent-warning {
  display: none;
  color: #ef4444;
  font-size: 13px;
  margin: 6px 0 0;
}

.consent-warning.show {
  display: block;
}

.modal-actions a.disabled-link {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========== PHONE AUTH GATE ========== */
.auth-gate {
  max-width: 420px;
  margin: 0 auto;
}

.auth-gate h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.auth-gate p {
  color: var(--mid);
  font-size: 14px;
  margin-bottom: 20px;
}

.auth-gate .field-group {
  margin-bottom: 16px;
  text-align: left;
}

.auth-gate label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.auth-gate input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}

.auth-gate .admin-message {
  margin-bottom: 12px;
}

.auth-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--mid);
  background: var(--white);
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-google:hover {
  border-color: var(--saffron);
  box-shadow: var(--shadow);
}

.btn-google:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--mid);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ========== SITE LOGIN SCREEN ========== */
.auth-screen {
  background: linear-gradient(180deg, var(--saffron-pale) 0%, var(--light) 55%);
  padding: 56px 24px 64px;
  display: flex;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 40px 36px;
  text-align: center;
  animation: authCardIn 0.4s ease;
}

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

.auth-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron) 0%, var(--gold) 100%);
  box-shadow: 0 8px 20px rgba(99,102,241,0.35);
}

.auth-card-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
}

.auth-card-subtitle {
  color: var(--mid);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.auth-alert {
  font-size: 13px;
  line-height: 1.5;
  border-radius: 12px;
  text-align: left;
}

.auth-alert:empty {
  display: none;
}

.auth-alert.error {
  background: #FEF2F2;
  color: #B91C1C;
  border: 1px solid #FECACA;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.auth-alert.success {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.auth-step {
  text-align: left;
}

.auth-input-group {
  position: relative;
  margin-bottom: 14px;
}

.auth-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  pointer-events: none;
}

.auth-input-group input {
  width: 100%;
  height: 48px;
  padding: 0 14px 0 40px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-input-group input:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 4px var(--saffron-pale);
}

.auth-otp-group input {
  padding-left: 14px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
}

.auth-submit {
  width: 100%;
  margin-bottom: 4px;
}

.auth-link-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 6px;
  background: none;
  border: none;
  color: var(--saffron);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

.auth-link-btn:hover {
  text-decoration: underline;
}

.auth-fineprint {
  margin-top: 22px;
  font-size: 12px;
  color: var(--mid);
  opacity: 0.85;
  line-height: 1.5;
}

.auth-fineprint a {
  color: var(--saffron);
  font-weight: 600;
}

@media (max-width: 480px) {
  .auth-screen { padding: 40px 16px 48px; }
  .auth-card { padding: 32px 24px; border-radius: 20px; }
}

.analytics-section {
  padding: 40px 0 80px;
}

.analytics-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 24px;
}

.analytics-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.analytics-summary {
  color: var(--mid);
  font-size: 14px;
  line-height: 1.8;
}

.analytics-table-wrapper {
  overflow-x: auto;
}

.analytics-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
}

.analytics-table th,
.analytics-table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.analytics-table th {
  color: var(--dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.analytics-table tbody tr:hover {
  background: var(--light);
}

.analytics-table .card-id {
  color: var(--mid);
  opacity: 0.7;
}

/* ---- Manage Buses: filter bar, status badges, row actions ---- */
.bus-filter-bar {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

@media (max-width: 780px) {
  .bus-filter-bar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .bus-filter-bar { grid-template-columns: 1fr; }
}

.bus-filter-bar input,
.bus-filter-bar select {
  height: 44px;
  padding: 0 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--dark);
  background: var(--light);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.bus-filter-bar input:focus,
.bus-filter-bar select:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(13,148,136,0.12);
  background-color: var(--white);
}

.status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.status-badge.status-available {
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.3);
  color: #0f9d6e;
}

.status-badge.status-unavailable {
  background: rgba(148,163,184,0.15);
  border: 1px solid rgba(148,163,184,0.35);
  color: var(--mid);
}

.status-badge.status-deleted {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.3);
  color: #dc2626;
}

.bus-manager-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-sm {
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.btn-danger {
  color: #dc2626;
  border-color: rgba(239,68,68,0.35);
}

.btn-danger:hover {
  background: rgba(239,68,68,0.08);
  border-color: #dc2626;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.hero-actions a.btn-search,
.hero-actions a.btn-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.hero-actions a.btn-reset {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-actions a.btn-reset:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ---- Monthly visits chart ---- */
.analytics-chart-wrapper {
  margin: 24px 0 8px;
}

.month-chart {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 28px;
  height: 220px;
  padding: 16px 8px 0;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.month-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  flex: 1;
  max-width: 120px;
}

.month-bar-track {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.month-bar-fill {
  position: relative;
  width: 60%;
  max-width: 64px;
  min-height: 2px;
  background: var(--brand-gradient);
  border-radius: 8px 8px 0 0;
  transition: height 0.5s ease;
}

.month-bar-value {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
}

.month-bar-label {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mid);
  text-align: center;
}

/* ---- Per-row trend sparkline ---- */
.spark {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
  width: 42px;
}

.spark-bar {
  flex: 1;
  min-height: 2px;
  background: var(--saffron);
  border-radius: 2px 2px 0 0;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 16px;
}

.admin-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 500;
  color: var(--dark);
}

.admin-grid input,
.admin-grid select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}

.admin-grid input[readonly] {
  background: var(--light);
  color: var(--muted, #6b7280);
  cursor: not-allowed;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.admin-message {
  margin-top: 10px;
  font-size: 14px;
}

.admin-message.success {
  color: var(--saffron);
}

.admin-message.error {
  color: #ef4444;
}

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

/* ========== LOADING STATE ========== */
.loading-shimmer {
  background: linear-gradient(90deg, var(--border) 25%, var(--light) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* Delay stagger for cards */
.bus-card:nth-child(1) { animation-delay: 0.05s; }
.bus-card:nth-child(2) { animation-delay: 0.10s; }
.bus-card:nth-child(3) { animation-delay: 0.15s; }
.bus-card:nth-child(4) { animation-delay: 0.20s; }
.bus-card:nth-child(5) { animation-delay: 0.25s; }
.bus-card:nth-child(6) { animation-delay: 0.30s; }

/* ============================================================
   SITE NAVBAR
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 24px;
  background: rgba(7,26,43,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.25s, padding 0.25s;
}

.site-nav.solid {
  background: rgba(7,26,43,0.94);
  padding: 10px 24px;
}

.site-nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 800;
  font-size: 26px;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-nav-brand .brand-emoji,
.app-header-brand .brand-emoji {
  font-size: 22px;
}

.brand-logo-img {
  height: 56px;
  width: 56px;
  object-fit: contain;
  flex-shrink: 0;
}

.app-header-brand .brand-logo-img {
  height: 46px;
  width: 46px;
}

.brand-wordmark .accent-zin {
  color: var(--gold-light);
}

.auth-card-logo {
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
  object-fit: contain;
}

/* Full logo lockup (icon + tourzin.com + tagline), used wherever there's room */
.brand-wordmark {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* Centered icon + wordmark lockup for standalone heroes (admin/analytics) */
.hero-brand-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 22px;
}

.hero-brand-lockup .brand-logo-img {
  height: 72px;
  width: 72px;
}

.hero-brand-lockup .brand-wordmark {
  color: var(--white);
  font-size: 40px;
}

/* Dark-on-light variant, used on the login card (white background) */
.auth-card-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 18px;
}

.auth-card-brand .brand-logo-img {
  height: 52px;
  width: 52px;
}

.auth-card-brand .brand-wordmark {
  color: var(--dark);
  font-size: 30px;
}

@media (max-width: 480px) {
  .hero-brand-lockup .brand-logo-img { height: 54px; width: 54px; }
  .hero-brand-lockup .brand-wordmark { font-size: 30px; }
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav-links a {
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.15s;
}

.site-nav-links a:hover {
  color: var(--white);
}

.btn-nav-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: var(--brand-gradient);
  color: white;
  border: none;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(13,148,136,0.4);
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.btn-nav-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(13,148,136,0.5);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 22px;
  cursor: pointer;
}

@media (max-width: 760px) {
  .site-nav-links { display: none; }
  .nav-toggle { display: block; }
  .site-nav.menu-open .site-nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(7,26,43,0.98);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
}

/* ============================================================
   SCROLL-REVEAL ANIMATION SYSTEM
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.in-view > * {
  animation: revealFadeUp 0.7s cubic-bezier(0.16,1,0.3,1) both;
}

.reveal-stagger.in-view > *:nth-child(1) { animation-delay: 0.05s; }
.reveal-stagger.in-view > *:nth-child(2) { animation-delay: 0.12s; }
.reveal-stagger.in-view > *:nth-child(3) { animation-delay: 0.19s; }
.reveal-stagger.in-view > *:nth-child(4) { animation-delay: 0.26s; }
.reveal-stagger.in-view > *:nth-child(5) { animation-delay: 0.33s; }
.reveal-stagger.in-view > *:nth-child(6) { animation-delay: 0.40s; }

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

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   LANDING PAGE
   ============================================================ */
.landing-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at top, #0F2A3F 0%, var(--dark) 60%);
  padding: 90px 24px 120px;
  text-align: center;
  color: var(--white);
}

.landing-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  pointer-events: none;
  animation: blobFloat 14s ease-in-out infinite;
}

.landing-blob.b1 {
  width: 420px; height: 420px;
  background: var(--saffron);
  top: -140px; left: -100px;
}

.landing-blob.b2 {
  width: 360px; height: 360px;
  background: var(--gold);
  bottom: -120px; right: -80px;
  animation-delay: -6s;
}

.landing-blob.b3 {
  width: 260px; height: 260px;
  background: var(--teal);
  top: 40%; left: 60%;
  animation-delay: -3s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.08); }
  66% { transform: translate(-20px, 25px) scale(0.95); }
}

.landing-hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
}

.landing-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(13,148,136,0.18);
  border: 1px solid rgba(20,184,166,0.4);
  color: var(--saffron-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 999px;
  margin-bottom: 26px;
  animation: revealFadeUp 0.8s cubic-bezier(0.16,1,0.3,1) both;
}

.landing-headline {
  font-size: clamp(32px, 5.5vw, 60px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  animation: revealFadeUp 0.8s 0.08s cubic-bezier(0.16,1,0.3,1) both;
}

.landing-headline .accent {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.68);
  line-height: 1.65;
  margin-bottom: 36px;
  animation: revealFadeUp 0.8s 0.16s cubic-bezier(0.16,1,0.3,1) both;
}

.landing-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
  animation: revealFadeUp 0.8s 0.24s cubic-bezier(0.16,1,0.3,1) both;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 54px;
  padding: 0 32px;
  background: var(--brand-gradient);
  color: white;
  border: none;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(13,148,136,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-hero-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 36px rgba(13,148,136,0.55);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 54px;
  padding: 0 30px;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-hero-secondary:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.4);
}

.landing-stats-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  animation: revealFadeUp 0.8s 0.32s cubic-bezier(0.16,1,0.3,1) both;
}

/* ---------- Generic landing sections ---------- */
.landing-section {
  padding: 90px 24px;
}

.landing-section.alt {
  background: var(--light);
}

.landing-section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.landing-section-eyebrow {
  color: var(--saffron);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.landing-section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.landing-section-sub {
  color: var(--mid);
  font-size: 16px;
  line-height: 1.65;
}

/* ---------- Booking model cards ---------- */
.model-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.model-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.model-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.model-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  border-radius: 16px;
  background: var(--saffron-pale);
  margin-bottom: 20px;
}

.model-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
}

.model-card p {
  color: var(--mid);
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.model-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.model-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--dark);
  font-size: 14px;
  font-weight: 500;
}

.model-card li::before {
  content: '✓';
  color: var(--saffron);
  font-weight: 800;
  flex-shrink: 0;
}

/* ---------- Value / feature grid ---------- */
.value-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.value-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--saffron-light);
}

.value-card-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: white;
}

.value-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}

.value-card p {
  color: var(--mid);
  font-size: 13.5px;
  line-height: 1.6;
}

/* ---------- How it works steps ---------- */
.steps-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.step-card {
  position: relative;
  text-align: center;
  padding: 8px;
}

.step-number {
  width: 48px;
  height: 48px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  border-radius: 50%;
  background: var(--dark);
  color: var(--saffron-light);
  border: 2px solid var(--saffron);
}

.step-card h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.step-card p {
  color: var(--mid);
  font-size: 13.5px;
  line-height: 1.6;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
  background: radial-gradient(ellipse at top left, #0F2A3F 0%, var(--dark) 70%);
  border-radius: 28px;
  padding: 64px 40px;
  text-align: center;
  color: var(--white);
}

.cta-banner h2 {
  font-size: clamp(24px, 3.6vw, 34px);
  font-weight: 800;
  margin-bottom: 14px;
}

.cta-banner p {
  color: rgba(255,255,255,0.7);
  font-size: 15.5px;
  margin-bottom: 30px;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 22px;
}

.faq-item summary {
  padding: 16px 0;
  cursor: pointer;
  font-weight: 700;
  color: var(--dark);
  font-size: 15.5px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.faq-item summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--saffron);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  color: var(--mid);
  font-size: 14.5px;
  line-height: 1.7;
  padding-bottom: 18px;
  margin: 0;
}

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

@media (max-width: 560px) {
  .steps-grid { grid-template-columns: 1fr; }
  .landing-section { padding: 64px 20px; }
  .cta-banner { padding: 44px 24px; border-radius: 20px; }
}

/* ============================================================
   APP HEADER (bus-listing page)
   ============================================================ */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 24px;
  background: var(--dark);
  color: var(--white);
}

.app-header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 24px;
  text-decoration: none;
  color: var(--white);
}

.app-header-stats {
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  font-weight: 500;
}

.app-header-stats span {
  color: var(--saffron-light);
  font-weight: 700;
}

@media (max-width: 640px) {
  .app-header-stats { display: none; }
}

.app-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

.app-header-actions a,
.app-header-actions button {
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 8px 16px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}

.app-header-actions a:hover,
.app-header-actions button:hover {
  background: rgba(255,255,255,0.16);
}

/* ============================================================
   LOGIN PAGE WRAPPER
   ============================================================ */
.login-screen-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  background: radial-gradient(ellipse at top, #0F2A3F 0%, var(--dark) 65%);
}

.login-back-link {
  position: fixed;
  top: 20px;
  left: 24px;
  z-index: 210;
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.login-back-link:hover {
  color: var(--white);
}
