/* ============================================================
   SHU-HAUL — Stylesheet
   Theme: U-Haul orange meets Silicon Valley polish
   ============================================================ */

/* ---- Design tokens ---------------------------------------- */
:root {
  --orange:        #E54A19;
  --orange-dark:   #C33E14;
  --orange-light:  #FFF0EB;
  --orange-mid:    #FFDED4;

  --white:         #FFFFFF;
  --charcoal:      #1A1A1A;
  --charcoal-soft: #2C2C2C;

  --gray-1:        #F7F7F7;
  --gray-2:        #EBEBEB;
  --gray-3:        #CACACA;
  --gray-4:        #888888;
  --gray-5:        #555555;

  --green:         #22C55E;

  --shadow-sm:  0 1px 4px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.18), 0 16px 48px rgba(0,0,0,0.10);
  --shadow-xl:  0 20px 60px rgba(0,0,0,0.22);

  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   22px;
  --r-xl:   28px;
  --r-pill: 100px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --transition-fast:   0.15s ease;
  --transition-base:   0.25s ease;
  --transition-slow:   0.45s cubic-bezier(0.32, 0.72, 0, 1);
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html, body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  font-family: var(--font);
  background: var(--charcoal);
  color: var(--charcoal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Prevent text size adjustment on orientation change */
  -webkit-text-size-adjust: 100%;
}

button, input {
  font-family: var(--font);
}

/* ============================================================
   APP SHELL
   ============================================================ */

#app {
  position: relative;
  height: 100dvh;
  width: 100vw;
  overflow: hidden;
}

/* ---- Screen base ------------------------------------------ */
.screen {
  position: absolute;
  inset: 0;
  transition: opacity var(--transition-slow), transform var(--transition-slow);
  will-change: opacity, transform;
}

.screen.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.99);
}

.screen.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}


/* ============================================================
   SCREEN 1 — MAP + WHERE TO
   ============================================================ */

/* Leaflet map fills the entire screen */
#map {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Kill the default Leaflet focus ring */
.leaflet-container {
  outline: none;
  font-family: var(--font) !important;
}

.leaflet-attribution-flag {
  display: none !important;
}

/* ---- App header (floats over map) ------------------------- */
.app-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: env(safe-area-inset-top, 0px) 20px 20px;
  padding-top: calc(env(safe-area-inset-top, 0px) + 16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Gradient mask so the header doesn't fully block the map */
  background: linear-gradient(to bottom,
    rgba(0,0,0,0.65) 0%,
    rgba(0,0,0,0.20) 70%,
    transparent 100%);
}

/* ---- Logo ------------------------------------------------- */
.logo {
  font-size: 22px;
  font-weight: 900;
  color: var(--orange);
  letter-spacing: -0.5px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  line-height: 1;
}

.logo span {
  color: var(--white);
}

/* Logo on white background (ride screen header) */
.logo-white {
  text-shadow: none;
}
.logo-white span {
  color: rgba(255,255,255,0.65);
}

/* ---- BETA badge ------------------------------------------- */
.header-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--white);
  background: var(--orange);
  padding: 4px 9px;
  border-radius: var(--r-pill);
  text-transform: uppercase;
}

/* ---- Bottom card (Where To?) ------------------------------ */
.bottom-card {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: var(--white);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 24px 20px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  box-shadow: var(--shadow-xl);
}

.card-eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-3);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ---- "Where to?" input row -------------------------------- */
.where-to-wrapper {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--gray-1);
  border: 2px solid var(--gray-2);
  border-radius: var(--r-md);
  padding: 0 6px 0 14px;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.where-to-wrapper:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(229,74,25,0.12);
}

.where-to-icon {
  font-size: 15px;
  margin-right: 8px;
  flex-shrink: 0;
  opacity: 0.5;
}

.where-to-input {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--charcoal);
  background: transparent;
  border: none;
  outline: none;
  padding: 13px 0;
  caret-color: var(--orange);
}

.where-to-input::placeholder {
  color: var(--gray-3);
  font-weight: 400;
}

.where-to-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: var(--r-sm);
  width: 42px;
  height: 42px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.where-to-btn:hover {
  background: var(--orange-dark);
}

.where-to-btn:active {
  transform: scale(0.93);
}

/* ---- Recent / quick destinations -------------------------- */
.recent-destinations {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
}

.recent-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 8px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.recent-item:hover,
.recent-item:active {
  background: var(--gray-1);
}

.recent-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
}

.recent-text {
  flex: 1;
  min-width: 0;
}

.recent-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-sub {
  font-size: 12px;
  color: var(--gray-4);
  margin-top: 1px;
}

.recent-arrow {
  font-size: 18px;
  color: var(--gray-3);
  flex-shrink: 0;
}

/* ============================================================
   CUSTOM MAP MARKERS
   ============================================================ */

/* User location: pulsing orange dot */
.user-marker {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-marker-dot {
  width: 16px;
  height: 16px;
  background: var(--orange);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(229,74,25,0.55);
  position: relative;
  z-index: 2;
}

.user-marker-pulse {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: rgba(229,74,25,0.3);
  animation: pulse-ring 2.2s cubic-bezier(0.4,0,0.6,1) infinite;
}

@keyframes pulse-ring {
  0%   { transform: scale(0.8);  opacity: 0.9; }
  60%  { transform: scale(1.8);  opacity: 0; }
  100% { transform: scale(0.8);  opacity: 0; }
}

/* Fake driver truck */
.truck-marker-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: default;
  animation: truck-float 3s ease-in-out infinite;
}

.truck-marker {
  font-size: 28px;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
  line-height: 1;
}

/* Coloured dot below each truck — set via inline style in JS */
.truck-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  flex-shrink: 0;
}

@keyframes truck-float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%       { transform: translateY(-4px) rotate(3deg); }
}

/* ============================================================
   BOTTOM SHEET — TIER SELECTION
   ============================================================ */

.sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-end;
  /* Hidden by default via opacity + pointer-events */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sheet-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* The sheet itself slides up */
.bottom-sheet {
  background: var(--white);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  width: 100%;
  padding: 16px 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  max-height: 92dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  /* Start offscreen */
  transform: translateY(100%);
  transition: transform var(--transition-slow);
  will-change: transform;
}

.sheet-overlay.active .bottom-sheet {
  transform: translateY(0);
}

/* Grab handle */
.sheet-handle {
  width: 40px;
  height: 4px;
  background: var(--gray-2);
  border-radius: 2px;
  margin: 0 auto 20px;
}

/* Sheet header row */
.sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.sheet-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--charcoal);
  line-height: 1.2;
}

.sheet-subtitle {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-4);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.sheet-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--gray-1);
  border-radius: 50%;
  font-size: 14px;
  color: var(--gray-5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 12px;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.sheet-close:hover {
  background: var(--gray-2);
  color: var(--charcoal);
}

/* ---- Tier cards ------------------------------------------- */
.tier-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.tier-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 2px solid var(--gray-2);
  border-radius: var(--r-md);
  cursor: pointer;
  transition:
    border-color var(--transition-base),
    background var(--transition-base),
    transform var(--transition-fast);
  position: relative;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.tier-card:hover {
  border-color: var(--gray-3);
  background: var(--gray-1);
}

.tier-card:active {
  transform: scale(0.99);
}

/* Selected state */
.tier-card.selected {
  border-color: var(--orange);
  background: var(--orange-light);
}

/* Checkmark badge on selected card */
.tier-card.selected::after {
  content: '✓';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: check-pop var(--transition-spring);
}

@keyframes check-pop {
  0%   { transform: scale(0); }
  100% { transform: scale(1); }
}

/* Tier icon container */
.tier-icon-wrap {
  width: 48px;
  height: 48px;
  background: var(--gray-1);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition-base);
}

.tier-card.selected .tier-icon-wrap {
  background: var(--orange-mid);
}

.tier-icon-dark {
  background: var(--charcoal-soft);
}

.tier-card.selected .tier-icon-dark {
  background: #444;
}

.tier-icon-pool {
  background: #EDE9FE;
}

.tier-emoji {
  font-size: 26px;
  line-height: 1;
}

/* Tier text */
.tier-info {
  flex: 1;
  min-width: 0;
}

.tier-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--charcoal);
}

.tier-desc {
  font-size: 12px;
  color: var(--gray-4);
  margin-top: 3px;
  line-height: 1.4;
}

.tier-eta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  margin-top: 6px;
}

.tier-eta-pool {
  color: var(--gray-4);
}

.eta-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
}

.eta-dot-gray {
  background: var(--gray-3);
}

/* Tier price / badge column */
.tier-price-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
  margin-right: 28px; /* make room for checkmark */
}

.tier-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--charcoal);
}

.tier-premium-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--charcoal);
  background: #FFC107;
  padding: 2px 6px;
  border-radius: var(--r-pill);
}

.tier-pool-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--white);
  background: #8B5CF6;
  padding: 2px 6px;
  border-radius: var(--r-pill);
}

/* ---- Name field ------------------------------------------- */
.name-field-wrapper {
  margin-bottom: 16px;
}

.name-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--gray-4);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.name-input {
  width: 100%;
  font-size: 16px;
  font-weight: 500;
  color: var(--charcoal);
  background: var(--gray-1);
  border: 2px solid var(--gray-2);
  border-radius: var(--r-md);
  padding: 13px 16px;
  outline: none;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  caret-color: var(--orange);
}

.name-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(229,74,25,0.12);
}

.name-input::placeholder {
  color: var(--gray-3);
  font-weight: 400;
}

/* ---- Confirm / CTA button --------------------------------- */
.btn-confirm {
  width: 100%;
  font-size: 15px;
  font-weight: 800;
  color: var(--white);
  background: var(--orange);
  border: none;
  border-radius: var(--r-md);
  padding: 17px;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition:
    background var(--transition-fast),
    transform var(--transition-fast),
    opacity var(--transition-fast);
  margin-bottom: 12px;
}

.btn-confirm:hover:not(:disabled) {
  background: var(--orange-dark);
}

.btn-confirm:active:not(:disabled) {
  transform: scale(0.99);
}

.btn-confirm:disabled {
  background: var(--gray-2);
  color: var(--gray-3);
  cursor: not-allowed;
}

/* Fine print */
.sheet-fine-print {
  font-size: 11px;
  color: var(--gray-3);
  text-align: center;
  line-height: 1.5;
  padding: 0 8px;
}


/* ============================================================
   SCREEN 2 — CONNECTING
   ============================================================ */

#screen-connecting {
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
}

.connecting-content {
  text-align: center;
  color: var(--white);
  padding: 40px 20px;
}

/* Big logo */
.connecting-logo {
  font-size: 38px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -1px;
  margin-bottom: 48px;
}
.connecting-logo span {
  opacity: 0.6;
}

/* Animated truck on a road */
.connecting-anim {
  position: relative;
  width: 200px;
  height: 60px;
  margin: 0 auto 32px;
  overflow: hidden;
}

.connecting-road {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  gap: 16px;
}

.road-line {
  flex-shrink: 0;
  width: 30px;
  height: 100%;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
  animation: road-scroll 0.8s linear infinite;
}

.road-line:nth-child(2) { animation-delay: -0.27s; }
.road-line:nth-child(3) { animation-delay: -0.53s; }

@keyframes road-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-46px); }
}

.connecting-truck {
  font-size: 48px;
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  animation: truck-bounce 0.5s ease-in-out infinite alternate;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25));
}

@keyframes truck-bounce {
  from { transform: translateX(-50%) translateY(0); }
  to   { transform: translateX(-50%) translateY(-5px); }
}

.connecting-text {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.connecting-sub {
  font-size: 14px;
  opacity: 0.75;
  font-weight: 500;
  margin-bottom: 32px;
}

/* Animated dots */
.connecting-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.connecting-dots span {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  animation: dot-pulse 1.4s ease-in-out infinite;
}

.connecting-dots span:nth-child(2) { animation-delay: 0.2s; }
.connecting-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot-pulse {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; }
  40%           { transform: scale(1);   opacity: 1; }
}


/* ============================================================
   SCREEN 3 — ACTIVE RIDE
   ============================================================ */

#screen-ride {
  background: var(--gray-1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ---- Dark top section (header + ETA) ---------------------- */
.ride-top {
  background: var(--charcoal);
  flex-shrink: 0;
}

.ride-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 16px) 20px 16px;
}

.ride-status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--charcoal);
  background: var(--orange);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  text-transform: uppercase;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--charcoal);
  border-radius: 50%;
  animation: status-blink 1.5s ease-in-out infinite;
}

@keyframes status-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ETA banner */
.eta-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 0 20px 22px;
}

.eta-truck-wrap {
  flex-shrink: 0;
  font-size: 28px;
  animation: eta-truck-rock 2s ease-in-out infinite;
}

@keyframes eta-truck-rock {
  0%, 100% { transform: rotate(-5deg); }
  50%       { transform: rotate(5deg) translateX(4px); }
}

.eta-message {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.55;
  padding-top: 2px;
  transition: opacity 0.35s ease;
}

.eta-message.updating {
  opacity: 0;
}

/* ---- Scrollable body -------------------------------------- */
.ride-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px 14px calc(14px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Generic card in ride screen */
.ride-card {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

/* ---- Driver card ------------------------------------------ */
.driver-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.driver-avatar {
  width: 56px;
  height: 56px;
  background: var(--orange); /* fallback if photo doesn't load */
  color: var(--white);
  border-radius: 50%;
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: -1px;
  overflow: hidden;
}

.driver-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.driver-info {
  flex: 1;
  min-width: 0;
}

.driver-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--charcoal);
}

.driver-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
}

.stars {
  color: #F59E0B;
  font-size: 13px;
  letter-spacing: 1px;
  line-height: 1;
}

.rating-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-5);
}

.rating-trips {
  font-size: 12px;
  color: var(--gray-3);
}

.driver-vehicle {
  font-size: 12px;
  color: var(--gray-4);
  margin-top: 5px;
}

.driver-plate {
  font-size: 11px;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: 1.5px;
  margin-top: 3px;
  text-transform: uppercase;
}

.contact-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gray-1);
  border: 2px solid var(--gray-2);
  color: var(--gray-5);
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.contact-btn:hover {
  background: var(--gray-2);
  color: var(--charcoal);
}

/* ---- Trip details card ------------------------------------ */
.trip-card {
  /* inherits .ride-card */
}

.trip-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.trip-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 3px;
  flex-shrink: 0;
}

.pickup-dot  { background: var(--orange); }
.dropoff-dot { background: var(--charcoal); }

.trip-text {
  flex: 1;
  min-width: 0;
}

.trip-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--gray-3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.trip-addr {
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  margin-top: 2px;
  line-height: 1.4;
}

.trip-connector {
  display: flex;
  align-items: stretch;
  padding: 4px 0 4px 5px;
}

.trip-line {
  width: 2px;
  min-height: 16px;
  background: var(--gray-2);
  border-radius: 1px;
}

/* ---- Tier summary card ------------------------------------ */
.tier-summary-card {
  /* inherits .ride-card */
}

.tier-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
}

.tier-summary-row + .tier-summary-row {
  margin-top: 10px;
}

.tier-summary-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-4);
}

.tier-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--charcoal);
  background: var(--gray-1);
  border: 1.5px solid var(--gray-2);
  padding: 4px 12px;
  border-radius: var(--r-pill);
}

.free-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--white);
  background: var(--green);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  letter-spacing: 0.5px;
}

.tier-summary-note {
  font-size: 12px;
  color: var(--gray-3);
  line-height: 1.6;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-2);
}

/* ---- Footer ----------------------------------------------- */
.ride-footer {
  text-align: center;
  padding: 8px 16px 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ride-footer p {
  font-size: 11px;
  color: var(--gray-3);
  line-height: 1.5;
}


/* ============================================================
   UTILITIES & ACCESSIBILITY
   ============================================================ */

/* Smooth scrollbar in ride body */
.ride-body::-webkit-scrollbar { display: none; }
.ride-body { scrollbar-width: none; }

.bottom-sheet::-webkit-scrollbar { display: none; }
.bottom-sheet { scrollbar-width: none; }

/* Ensure tappable areas are large enough */
@media (hover: none) and (pointer: coarse) {
  .where-to-btn,
  .contact-btn,
  .sheet-close {
    min-width: 44px;
    min-height: 44px;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
