@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  /* Keep custom theme variables, override bootstrap primary */
  --bs-primary: #1177ee;
  --bs-primary-rgb: 17, 119, 238;
  
  --blue: #1177ee;
  --blue-hover: #0968dd;
  --ink: #1c2f4a;
  --muted: #718096;
  --line: #e0e8f1;
  --bg: #f5f8fc;
  --white: #fff;
  --shadow: 0 18px 45px rgba(25, 60, 105, 0.12);
  
  --bs-body-font-family: 'Manrope', Arial, sans-serif;
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--ink);
}

/* Base overrides */
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--bs-body-font-family);
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
}
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.main-wrap {
  width: 100%;
  flex: 1;
}

/* =========================================================================
   Top Bar Overrides
   ========================================================================= */
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(145deg, #19c3d1, #0c86e8);
  font-weight: 900;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(12, 134, 232, 0.25);
  font-size: 20px;
}
.brand-copy strong {
  display: block;
  color: #0b78e5;
  font-size: 17px;
}
.brand-copy small {
  display: block;
  font-size: 9px;
  color: #8a98a8;
  margin-top: 2px;
}
.service-pill {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  background: transparent;
  text-decoration: none;
  transition: all 0.2s;
}
.service-pill.active {
  background: #edf6ff;
  color: var(--blue);
}
.service-pill:hover:not(.active) {
  background: #f1f5f9;
  color: var(--ink);
}
.avatar {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #eaf3ff;
  color: #176fd3;
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* =========================================================================
   Hero Section
   ========================================================================= */
.hero {
  position: relative;
  background: linear-gradient(105deg, rgba(9, 100, 213, 0.94), rgba(13, 118, 231, 0.84) 52%, rgba(20, 120, 224, 0.66)),
    url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?auto=format&fit=crop&w=2200&q=80') center/cover;
  min-height: 400px;
  color: white;
  overflow: visible;
}
.hero-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(61, 214, 236, 0.27), transparent 63%);
  right: 2%;
  top: -170px;
}
.hero-content {
  position: relative;
  padding: 56px 0 96px;
}
.hero-kicker, .step-kicker, .aside-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.hero h1 {
  font-size: 45px;
  letter-spacing: -0.035em;
  margin: 7px 0 10px;
}
.hero p {
  margin: 0;
  color: #e3efff;
  font-size: 15px;
}

/* =========================================================================
   Search Form (Custom Place Fields)
   ========================================================================= */
.service-panel {
  margin-top: 34px;
  background: #fff;
  border-radius: 18px;
  color: var(--ink);
  box-shadow: 0 20px 48px rgba(4, 55, 114, 0.25);
  overflow: visible;
}
.transfer-search {
  padding: 24px;
}
.field-control, .time-controls {
  height: 42px;
  border: 1px solid #dbe4ed;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  background: #fff;
  transition: 0.18s;
}
.field-control:focus-within, .time-controls:focus-within {
  border-color: #8abcf6;
  box-shadow: 0 0 0 3px rgba(17, 119, 238, 0.08);
}
.field-control input {
  border: 0;
  outline: 0;
  width: 100%;
  min-width: 0;
  color: var(--ink);
  background: transparent;
  font-size: 12px;
  font-weight: 600;
}
.field-icon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.pickup-dot { background: #19b36b; }
.destination-dot { background: #ef5d63; }
.time-controls select {
  border: 0;
  background: transparent;
  outline: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  appearance: none;
  padding: 6px;
}

/* Passenger Popover */
.passenger-trigger {
  height: 42px;
  width: 100%;
  border: 1px solid #dbe4ed;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  padding: 0 10px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 650;
}
.passenger-trigger > span:nth-child(2) {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.passenger-field { position: relative; }
.passenger-popover {
  display: none;
  position: absolute;
  right: 15px; /* offset inside col */
  top: 70px;
  width: 285px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow);
  padding: 9px;
  z-index: 40;
}
.passenger-popover.open { display: block; }
.counter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 7px;
  border-bottom: 1px solid #edf1f5;
}
.counter-row strong { font-size: 11px; }
.counter-row small { font-size: 8px; color: #9aa5b1; margin-top: 2px; }
.counter { display: flex; align-items: center; gap: 9px; }
.counter button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #cfe0f2;
  background: #fff;
  color: var(--blue);
  font-weight: 800;
}
.counter span { min-width: 16px; text-align: center; font-size: 12px; font-weight: 800; }

/* Status dot / Suggestions */
.status-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #91a0af; display: inline-block;
}
.status-dot.loading { background: #ffb342; }
.status-dot.ok { background: #17aa6a; }
.status-dot.error { background: #e45b63; }
.place-field { position: relative; }
.suggestions {
  display: none;
  position: absolute;
  left: 15px; right: 15px; top: 70px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  z-index: 50;
  max-height: 280px;
  overflow: auto;
}
.suggestions.open { display: block; }
.suggestion-btn {
  display: block; width: 100%; border: 0; background: #fff; text-align: left;
  padding: 10px 12px; border-bottom: 1px solid #edf1f4;
}
.suggestion-btn:hover { background: #f5f9ff; }
.suggestion-main { display: block; font-size: 11px; color: #223b57; font-weight: 700; }
.suggestion-secondary { display: block; font-size: 9px; color: #8a99a8; margin-top: 2px; }

/* Search bottom note */
.search-note {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #8b98a6;
  font-size: 9px;
  padding: 12px 3px 0;
}
.search-note-spacer { flex: 1; }

/* Benefits strip overlap */
.benefits {
  background: #fff;
  margin-top: -48px;
  position: relative;
  z-index: 10;
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 40px;
}

/* =========================================================================
   Vehicle Cards
   ========================================================================= */
.vehicle-visual {
  height: 140px;
  background: linear-gradient(145deg, #e9f2fb, #f8fbff);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border-radius: 6px 6px 0 0;
}
.vehicle-visual .car-shape {
  font-size: 72px;
  filter: drop-shadow(0 9px 7px rgba(36, 65, 97, 0.14));
}
.class-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  background: #fff;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 8px;
  font-weight: 800;
  color: #617589;
}
.vehicle-card.unavailable {
  opacity: 0.45;
  filter: grayscale(0.6);
}
.vehicle-features {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 12px 0 auto;
  padding-bottom: 12px;
}
.vehicle-features span {
  font-size: 8px;
  background: #f3f7fa;
  padding: 5px 7px;
  border-radius: 6px;
  color: #617487;
}

/* =========================================================================
   Custom Toast
   ========================================================================= */
.toast-custom {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: #18344f;
  color: #fff;
  padding: 11px 16px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 600;
  box-shadow: var(--shadow);
  z-index: 1050; /* bootstrap offcanvas/modal index */
  transition: 0.22s;
}
.toast-custom.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Utilities used by old JS that BS doesn't have an exact match for */
.hidden {
  display: none !important;
}

/* =========================================================================
   Responsive tweaks
   ========================================================================= */
@media (max-width: 660px) {
  .hero-content { padding-top: 38px; }
  .hero h1 { font-size: 32px; }
  .search-note-spacer { display: none; }
  .search-note { flex-wrap: wrap; }
  .benefits { margin-top: -38px; }
}
