/* =====================================================================
   shuttle-map.css — Live Shuttle Tracker overlay for bookingSetupMap.html
   Scoped under .vs- prefix to avoid colliding with existing booking CSS.
   ===================================================================== */

/* Make the hero stretch evenly on desktop so the map column matches the
   booking card height. */
.booking-hero .row.align-items-stretch {
  align-items: stretch;
}

.vs-tracker-col {
  display: flex;
  flex-direction: column;
}

.vs-tracker-panel {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.vs-tracker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.vs-tracker-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #b58c1c;
}

.vs-tracker-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.2;
}

.vs-tracker-headline {
  display: flex;
  align-items: baseline;
  gap: 8px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  padding: 6px 12px;
}

.vs-headline-eta {
  font-size: 1.15rem;
  font-weight: 800;
  color: #b45309;
}

.vs-headline-lot {
  font-size: 0.8rem;
  color: #7c2d12;
}

.vs-map {
  width: 100%;
  height: 320px;
  border-radius: 10px;
  background: #e5e7eb url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40'><circle cx='20' cy='20' r='2' fill='%239ca3af'/></svg>") repeat;
  overflow: hidden;
}

.vs-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.vs-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.vs-card.is-available {
  background: #ecfdf5;
  border-color: #6ee7b7;
}

.vs-card.is-soon {
  background: #fff7ed;
  border-color: #fed7aa;
}

.vs-card.is-far {
  background: #f9fafb;
  border-color: #e5e7eb;
}

.vs-card-lot {
  font-size: 0.78rem;
  color: #6b7280;
  font-weight: 600;
  margin-bottom: 4px;
}

.vs-card-eta {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.vs-card-eta-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1f2937;
  line-height: 1;
}

.vs-card.is-available .vs-card-eta-num,
.vs-card.is-available .vs-card-status {
  color: #047857;
}

.vs-card-eta-unit {
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 600;
}

.vs-card-status {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 2px;
}
.vs-card-trip {
  font-size: 0.7rem;
  color: #6b7280;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed #e5e7eb;
  font-weight: 500;
}
.vs-card-trip[hidden] { display: none; }

.vs-foot {
  font-size: 0.78rem;
  color: #6b7280;
  margin: 0;
  text-align: center;
}

/* ─── Mobile collapsed pill ─────────────────────────────────────────── */

.vs-pill {
  display: none;
}

@media (max-width: 991.98px) {
  .vs-tracker-col {
    /* On mobile, ensure tracker is at top of stack */
    margin-bottom: 12px;
  }

  .vs-pill {
    display: flex;
    align-items: center;
    width: 100%;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1f2937;
    border: none;
    border-radius: 12px;
    padding: 10px 14px;
    text-align: left;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
    cursor: pointer;
    font-family: inherit;
    position: sticky;
    top: 8px;
    z-index: 50;
  }

  .vs-pill-icon {
    font-size: 1.6rem;
    margin-right: 10px;
  }

  .vs-pill-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
  }

  .vs-pill-eta {
    font-weight: 800;
    font-size: 0.95rem;
  }

  .vs-pill-sub {
    font-size: 0.72rem;
    color: rgba(31, 41, 55, 0.75);
  }

  .vs-pill-chev {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
  }

  .vs-pill[aria-expanded="true"] .vs-pill-chev {
    transform: rotate(180deg);
  }

  .vs-tracker-panel {
    display: none;
    margin-top: 10px;
  }

  .vs-tracker-panel.vs-open {
    display: flex;
  }

  .vs-map {
    height: 240px;
  }

  .vs-tracker-headline {
    width: 100%;
  }
}

/* ─── Desktop refinements ───────────────────────────────────────────── */

@media (min-width: 992px) {
  .vs-tracker-panel {
    /* Stick the map alongside the booking form so it stays visible while
       the user scrolls through the booking phases. */
    position: sticky;
    top: 88px; /* clears the existing site nav */
  }
}
