  body { background: var(--sand-50); min-height: 100vh; }

  .book-wrap {
    padding: 32px 0 120px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 32px;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
  }
  @media (max-width: 960px) { .book-wrap { grid-template-columns: 1fr; } }

  /* MAP PANEL */
  .map-panel {
    position: relative;
    height: 720px;
    border-radius: var(--r-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: linear-gradient(180deg, #c8ebe8 0%, #9ee8e0 40%, #2cd4c4 100%);
  }
  .map-panel::before {
    content: '';
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60'><path d='M0 30 Q15 25 30 30 T60 30' stroke='%23ffffff22' fill='none' stroke-width='1'/><path d='M0 10 Q15 5 30 10 T60 10' stroke='%23ffffff15' fill='none' stroke-width='1'/><path d='M0 50 Q15 45 30 50 T60 50' stroke='%23ffffff18' fill='none' stroke-width='1'/></svg>");
    opacity: 0.8;
  }

  /* Stylized island on map */
  .map-island {
    position: absolute; top: 50%; left: 50%;
    width: 340px; height: 440px;
    transform: translate(-50%, -50%);
  }
  .map-island-shape {
    position: absolute; inset: 0;
    background: linear-gradient(145deg, #f4ecd8 0%, #c8b890 50%, #7d8e6f 100%);
    border-radius: 48% 52% 55% 45% / 55% 45% 50% 50%;
    box-shadow:
      0 2px 0 rgba(255,255,255,0.4) inset,
      0 -10px 30px rgba(61, 88, 69, 0.3) inset,
      0 30px 60px rgba(10, 72, 67, 0.25);
  }
  .map-island-shape::after {
    content: '';
    position: absolute; inset: -16px;
    border-radius: 48% 52% 55% 45% / 55% 45% 50% 50%;
    background: radial-gradient(ellipse at center, transparent 60%, rgba(158, 232, 224, 0.5) 75%, transparent 85%);
    pointer-events: none;
    filter: blur(8px);
  }

  /* Roads */
  .map-roads {
    position: absolute; inset: 0;
    pointer-events: none;
  }
  .map-roads svg { width: 100%; height: 100%; }

  /* Location markers */
  .loc-pin {
    position: absolute;
    transform: translate(-50%, -100%);
  }
  .loc-pin .mk {
    position: relative;
    width: 36px; height: 44px;
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.25));
  }
  .loc-pin .mk::before {
    content: '';
    position: absolute; inset: 0;
    clip-path: path('M18 0 C8 0 0 8 0 18 C0 32 18 44 18 44 C18 44 36 32 36 18 C36 8 28 0 18 0 Z');
    background: var(--grad-sunset);
  }
  .loc-pin.drop .mk::before { background: var(--grad-lagoon); }
  .loc-pin .mk::after {
    content: '';
    position: absolute; top: 11px; left: 11px;
    width: 14px; height: 14px; border-radius: 50%;
    background: #fff;
  }
  .loc-pin .label {
    margin-top: 6px;
    padding: 6px 10px;
    background: #fff;
    border-radius: var(--r-sm);
    font-size: 11px; font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    transform: translateX(-50%);
    margin-left: 18px;
  }
  .loc-pin.drop .label { color: var(--lagoon-600); }

  .route-line {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }

  /* Legend on map */
  .map-legend {
    position: absolute; top: 24px; left: 24px; right: 24px;
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px;
  }
  .map-tag {
    padding: 10px 14px;
    border-radius: var(--r-pill);
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
    font-size: 13px; font-weight: 600;
    box-shadow: var(--shadow-sm);
    display: inline-flex; align-items: center; gap: 8px;
  }
  .map-tag .d { width: 8px; height: 8px; border-radius: 50%; }
  .map-tag .d.g { background: var(--lagoon-500); box-shadow: 0 0 0 3px rgba(11,184,173,0.25); }
  .map-tools { display: flex; gap: 8px; }
  .map-tool-btn {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.9);
    box-shadow: var(--shadow-sm);
    display: grid; place-items: center;
    color: var(--fg);
  }

  /* Trip summary on map */
  .trip-summary {
    position: absolute; bottom: 24px; left: 24px; right: 24px;
    padding: 18px 22px;
    border-radius: var(--r-lg);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    display: flex; justify-content: space-between; align-items: center;
    gap: 20px;
  }
  .ts-item { display: flex; flex-direction: column; gap: 2px; }
  .ts-item .k { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
  .ts-item .v { font-family: var(--font-display); font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
  .ts-sep { width: 1px; height: 36px; background: var(--line-strong); }

  /* -------- RIGHT PANEL — STEPPER -------- */
  .form-panel {
    background: #fff;
    border-radius: var(--r-2xl);
    padding: 32px;
    box-shadow: var(--shadow-md);
    height: fit-content;
  }
  .step-top { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
  .step-dots { display: flex; gap: 6px; }
  .step-dots span {
    width: 24px; height: 4px; border-radius: 2px; background: var(--line-strong);
    transition: background .2s;
  }
  .step-dots span.on { background: var(--coral-500); }
  .step-dots span.done { background: var(--lagoon-500); }
  .step-top .label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

  h1.title { font-size: 36px; font-weight: 400; letter-spacing: -0.02em; margin-bottom: 6px; }
  h1.title em { font-style: italic; color: var(--coral-500); }
  .step-sub { font-size: 15px; color: var(--fg-soft); margin-bottom: 24px; line-height: 1.5; }

  /* Step containers */
  .step-body { display: none; }
  .step-body.active { display: block; animation: fadein .3s ease; }
  @keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

  /* Inputs */
  .field-group { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; position: relative; }
  .field {
    position: relative;
    display: flex; align-items: center; gap: 14px;
    padding: 16px 18px;
    border-radius: var(--r-md);
    background: var(--sand-50);
    border: 1.5px solid var(--line);
    transition: all .2s;
  }
  .field:focus-within { border-color: var(--coral-500); background: #fff; box-shadow: 0 0 0 4px rgba(255,122,84,0.12); }
  .field .dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
  .field .dot.a { background: var(--coral-500); box-shadow: 0 0 0 3px rgba(255,122,84,0.2); }
  .field .dot.b { background: var(--lagoon-500); box-shadow: 0 0 0 3px rgba(11,184,173,0.2); }
  .field .content { flex: 1; }
  .field .content .lbl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
  .field .content input, .field .content select {
    width: 100%; border: none; background: transparent;
    padding: 2px 0 0; font-family: inherit; font-size: 15px; font-weight: 600;
    outline: none; color: var(--fg);
  }
  .field .pick-btn {
    font-size: 11px; color: var(--lagoon-600); font-weight: 600;
    padding: 4px 10px;
    background: rgba(11,184,173,0.12);
    border-radius: var(--r-pill);
  }
  .vert-link {
    width: 2px; height: 14px;
    background: repeating-linear-gradient(180deg, var(--ink-300) 0, var(--ink-300) 3px, transparent 3px, transparent 6px);
    margin-left: 23px;
  }

  .suggest-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; margin-bottom: 20px; }
  .chip-sug {
    padding: 6px 12px; border-radius: var(--r-pill);
    background: var(--sand-100);
    font-size: 12px; font-weight: 500;
    color: var(--fg-soft); cursor: pointer;
    transition: background .15s;
  }
  .chip-sug:hover { background: var(--sand-200); }

  /* Time + pax */
  .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
  .tile-opt {
    padding: 16px;
    border-radius: var(--r-md);
    background: var(--sand-50);
    border: 1.5px solid var(--line);
    cursor: pointer;
    transition: all .15s;
    display: flex; align-items: center; gap: 12px;
  }
  .tile-opt:hover { border-color: var(--line-strong); }
  .tile-opt.on { border-color: var(--coral-500); background: #fff; box-shadow: 0 0 0 4px rgba(255,122,84,0.1); }
  .tile-opt .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--grad-sunset); color:#fff; display: grid; place-items: center; flex-shrink: 0; }
  .tile-opt.on .ic, .tile-opt .ic { box-shadow: inset 0 1px 0 rgba(255,255,255,0.3); }
  .tile-opt .t { font-weight: 600; font-size: 14px; }
  .tile-opt .d { font-size: 12px; color: var(--muted); }

  /* Submit error banner — shown when POST /bookings fails */
  .mr-submit-error {
    margin: 14px 0;
    padding: 12px 14px;
    border-radius: var(--r-md, 14px);
    background: rgba(238, 90, 48, 0.08);
    border-left: 3px solid var(--coral-500, #ee5a30);
    color: var(--coral-700, #b13a18);
    font-size: 13px;
    line-height: 1.4;
  }

  /* Contact info */
  .input-basic {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--r-md);
    background: var(--sand-50);
    border: 1.5px solid var(--line);
    font-family: inherit; font-size: 15px;
    outline: none;
    transition: all .2s;
  }
  .input-basic:focus { border-color: var(--coral-500); background: #fff; box-shadow: 0 0 0 4px rgba(255,122,84,0.12); }
  .input-basic::placeholder { color: var(--ink-400); }

  /* Summary step */
  .summary-card {
    padding: 24px;
    border-radius: var(--r-lg);
    background: var(--sand-50);
    border: 1px solid var(--line);
    margin-bottom: 16px;
  }
  .summary-card .hdr { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
  .summary-card .hdr h4 { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
  .summary-card .hdr .edit { font-size: 12px; color: var(--lagoon-600); font-weight: 600; cursor: pointer; }
  .sum-row { display: flex; align-items: flex-start; gap: 14px; padding: 6px 0; }
  .sum-row .dt { width: 12px; height: 12px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
  .sum-row .dt.a { background: var(--coral-500); }
  .sum-row .dt.b { background: var(--lagoon-500); }
  .sum-row .body { flex: 1; }
  .sum-row .body .k { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
  .sum-row .body .v { font-size: 15px; font-weight: 600; margin-top: 1px; }

  .action-row { display: flex; gap: 10px; margin-top: 24px; }
  .action-row .btn { flex: 1; }

  /* SUCCESS state */
  .success-state {
    display: none;
    text-align: center;
    padding: 20px 0;
  }
  .success-state.active { display: block; animation: fadein .4s ease; }
  .success-icon {
    width: 96px; height: 96px; border-radius: 50%;
    margin: 0 auto 24px;
    background: var(--grad-lagoon);
    display: grid; place-items: center;
    color: #fff;
    box-shadow: var(--shadow-lagoon), inset 0 1px 0 rgba(255,255,255,0.3);
    position: relative;
  }
  .success-icon::after {
    content: ''; position: absolute; inset: -14px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(44,212,196,0.25), transparent 65%);
    z-index: -1;
  }
  .success-state h2 { font-size: 36px; font-weight: 400; letter-spacing: -0.02em; margin-bottom: 10px; }
  .success-state h2 em { font-style: italic; color: var(--lagoon-600); }
  .success-state p { color: var(--fg-soft); margin-bottom: 24px; }

  .booking-id {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 16px;
    border-radius: var(--r-pill);
    background: var(--basalt-900);
    color: #fff; font-family: var(--font-mono); font-size: 13px;
    margin-bottom: 24px;
  }
  .booking-id .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sunset-400); box-shadow: 0 0 0 3px rgba(255,178,74,0.25); animation: pulse 1.5s infinite; }
  @keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(255,178,74,0.25); } 50% { box-shadow: 0 0 0 6px rgba(255,178,74,0.05); } }

  .matching-state {
    display: flex; flex-direction: column; gap: 16px;
    margin-bottom: 24px;
    text-align: left;
  }
  .match-line {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 18px;
    border-radius: var(--r-md);
    background: var(--sand-50);
    font-size: 14px;
  }
  .match-line .ic {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--grad-lagoon); color: #fff;
    display: grid; place-items: center;
  }
  .match-line.pending .ic { background: rgba(10,15,20,0.1); color: var(--muted); }
  .match-line.pending { opacity: 0.5; }

/* ──────────────────────────────────────────────────────────────
 * P0 #3 — Mobile fix: stack form first, shrink map to trip-summary chip
 * ────────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .book-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .form-panel {
    order: 1;
    padding: 24px 20px;
    border-radius: var(--r-xl);
  }
  .map-panel {
    order: 2;
    height: 280px;
    border-radius: var(--r-xl);
  }
  .map-panel .map-island {
    width: 220px;
    height: 280px;
  }
  .trip-summary {
    padding: 14px 18px;
  }
  .ts-item .v {
    font-size: 18px;
  }
}
@media (max-width: 540px) {
  .map-panel { height: 220px; }
  .map-panel .map-island { width: 170px; height: 220px; }
  .map-panel .map-legend { top: 14px; left: 14px; right: 14px; }
  .map-tag { font-size: 11px; padding: 6px 10px; }
  .map-tool-btn { width: 36px; height: 36px; }
  .trip-summary { bottom: 14px; left: 14px; right: 14px; padding: 12px 14px; }
  .ts-item .v { font-size: 16px; }
  .ts-item .k { font-size: 10px; }
  .ts-sep { height: 28px; }
}

/* ──────────────────────────────────────────────────────────────
 * Form labels (P0 #5 fix) — visible labels above inputs
 * ────────────────────────────────────────────────────────────── */
.mr-field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.mr-required {
  color: var(--coral-600);
  margin-left: 2px;
}
.mr-optional {
  color: var(--muted);
  font-weight: 500;
  font-size: 11px;
  margin-left: 4px;
}

/* Tile-opt as <label> wrapping radio — make it block-styled like the old div */
label.tile-opt { cursor: pointer; }

/* Step 4 summary sub-keys */
.sum-sub-k {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.sum-sub-v {
  font-weight: 600;
  margin-top: 3px;
}

/* ──────────────────────────────────────────────────────────────
 * Zero-fee trust notice — anchored at the bottom of form-panel,
 * visible on both steps. Compact: lagoon-tinted bar, check icon,
 * bold lead-in.
 * ────────────────────────────────────────────────────────────── */
.mr-fee-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 12px 16px;
  margin-top: 22px;
  border-radius: var(--r-md);
  background: rgba(11, 184, 173, 0.08);
  border-left: 3px solid var(--lagoon-500);
  line-height: 1.4;
}
.mr-fee-notice__ic {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--grad-lagoon);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(11, 184, 173, 0.35);
}
.mr-fee-notice__txt {
  font-size: 13px;
  color: var(--fg);
}
.mr-fee-notice__txt strong {
  display: inline;
  font-weight: 700;
  margin-right: 4px;
}


/* Driver card after match (replaces inline-styled section) */
.mr-driver-card { text-align: left; }
.mr-driver-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.mr-driver-av {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #ffc0a0, #ee5a30);
  flex-shrink: 0;
}
.mr-driver-info { flex: 1; min-width: 0; }
.mr-driver-name { font-weight: 600; font-size: 16px; }
.mr-driver-meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.mr-driver-stars {
  color: var(--sunset-500);
  letter-spacing: 2px;
  font-size: 12px;
  margin-top: 4px;
}
.mr-driver-actions { display: flex; gap: 8px; }

/* Edit button in summary header (was <span>, now <button>) */
.summary-card .hdr .edit {
  font-size: 12px;
  color: var(--lagoon-600);
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 8px;
  border-radius: var(--r-pill);
  min-height: 28px;
}
.summary-card .hdr .edit:hover { background: rgba(11, 184, 173, 0.08); }


/* ─────────────────────────────────────────────────────────────────
   Pickup/Dropoff inputs + autocomplete dropdown + real Google Map
   ───────────────────────────────────────────────────────────────── */

.mr-ac-field { position: relative; }
.mr-ac-field .content input[type="text"] {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--fg, #1a232b);
  padding: 4px 0 2px;
  line-height: 1.3;
  outline: none;
  caret-color: var(--coral-500, #ff7a54);
}
.mr-ac-field .content input[type="text"]::placeholder {
  color: rgba(74, 91, 102, 0.55);
  font-weight: 400;
  font-size: 14px;
}
.mr-ac-field .content input[type="text"]:focus {
  /* Subtle bottom hairline on focus — keeps the field reading as an
     input without forcing a heavy border around the pill-shaped wrap. */
  box-shadow: inset 0 -1px 0 var(--coral-500, #ff7a54);
}

.mr-ac-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 60;
  max-height: 320px;
  overflow: auto;
  background: #fff;
  border-radius: var(--r-sm, 12px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
  padding: 6px;
  display: none;
}
.mr-ac-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  border-radius: var(--r-xs, 8px);
  font-size: 14px;
  color: var(--fg, #1a232b);
  transition: background 0.12s ease;
}
.mr-ac-row:hover,
.mr-ac-row:focus { background: rgba(11, 184, 173, 0.08); outline: none; }
.mr-ac-row.is-default .mr-ac-icon { color: var(--coral-500, #ff7a54); }
.mr-ac-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.mr-ac-label {
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mr-ac-empty {
  padding: 14px 12px;
  font-size: 13px;
  color: var(--fg-soft, #94a3b1);
  text-align: center;
}

/* Real Google Map canvas — replaces decorative .map-island when key set.
   Absolute-positioned so the map-panel's overlay chrome (legend, trip
   summary) stays on top without fighting Google's own DOM layers. */
.mr-map-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 184, 173, 0.08);
}

/* Lift the map-panel's legend chip + trip-summary above the map canvas
   and add a subtle glassy backing so they read against any tile style. */
.map-panel .map-legend { z-index: 2; }
.map-panel .trip-summary {
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Soft inner ring on the map canvas — gives the panel a finished, framed
   look so the Google tiles don't bleed flat against the panel edge. */
.map-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(10, 15, 20, 0.08), inset 0 8px 24px rgba(10, 15, 20, 0.06);
  z-index: 3;
}

/* Polish Google's stock zoom control: pill shape, neutral fill, soft
   shadow that matches the rest of the site. Selectors target the
   default DOM Google emits when `zoomControl: true`. */
.map-panel .gm-bundled-control {
  margin: 0 16px 88px 0 !important;
}
.map-panel .gm-bundled-control > div,
.map-panel .gm-bundled-control-on-bottom > div {
  border-radius: var(--r-pill, 999px) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: var(--shadow-sm) !important;
  overflow: hidden !important;
}
.map-panel .gm-bundled-control button {
  background: transparent !important;
  width: 40px !important;
  height: 40px !important;
}
.map-panel .gm-bundled-control button:hover {
  background: rgba(11, 184, 173, 0.08) !important;
}
