/**
 * ZUMA design tokens and application styles.
 *
 * Colour system derived from the supplied ZUMA artwork, which uses TWO
 * greens rather than the single --color-brand in the design brief:
 *
 *   --zuma-green  vivid grass green  — display type, wordmark, accents
 *   --zuma-lime   yellow-lime        — primary action surfaces
 *
 * Both take near-black foreground text. Neither passes AA against white,
 * which is why every lime button in this sheet uses #050505 text.
 */

:root {
  /* Surfaces */
  --zuma-bg: #050505;
  --zuma-bg-2: #0d0d0d;
  --zuma-surface: #131313;
  --zuma-surface-raised: #1b1b1b;
  --zuma-surface-muted: #25251f;

  /* Brand: two greens, distinct roles */
  --zuma-green: #74dc1a;
  --zuma-green-strong: #5cb412;
  --zuma-lime: #cbf73c;
  --zuma-lime-hover: #d8ff5c;
  --zuma-lime-press: #b6e024;

  /* Text */
  --zuma-text: #ffffff;
  --zuma-text-2: #c7c7c7;
  --zuma-text-3: #8d8d8d;
  --zuma-on-lime: #050505;

  /* Lines */
  --zuma-border: #343434;
  --zuma-border-soft: rgba(255, 255, 255, 0.09);

  /* Status */
  --zuma-success: #35c96f;
  --zuma-warning: #ffbf3f;
  --zuma-danger: #ff5b5b;
  --zuma-info: #55a7ff;
  --zuma-route: #6d63ff;

  /* Type */
  --zuma-font-display: "Archivo Black", "Arial Black", system-ui, sans-serif;
  --zuma-font-condensed: "Anton", "Archivo Black", Impact, sans-serif;
  --zuma-font-ui: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Shape */
  --zuma-r-card: 20px;
  --zuma-r-control: 12px;
  --zuma-r-input: 14px;
  --zuma-r-button: 16px;
  --zuma-r-sheet: 24px;

  /* Motion — brief section 21: 150–300ms */
  --zuma-t-fast: 150ms;
  --zuma-t-base: 220ms;
  --zuma-t-slow: 300ms;
  --zuma-ease: cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --zuma-sheet-max: 460px;
  --zuma-safe-b: env(safe-area-inset-bottom, 0px);
  --zuma-safe-t: env(safe-area-inset-top, 0px);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --zuma-t-fast: 1ms;
    --zuma-t-base: 1ms;
    --zuma-t-slow: 1ms;
  }
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------------------------------------------------------ *
 * Reset scoped to the app shell
 * ------------------------------------------------------------------ */

html.zuma-html {
  background: var(--zuma-bg);
  /* Lock the viewport: the app manages its own scroll regions so the
     map never rubber-bands on iOS. */
  height: 100%;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
}

body.zuma-body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: var(--zuma-bg);
  color: var(--zuma-text);
  font-family: var(--zuma-font-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

body.zuma-body * {
  box-sizing: border-box;
}

/* WordPress admin bar would break the full-height map. */
body.zuma-body #wpadminbar {
  display: none !important;
}
html.zuma-html {
  margin-top: 0 !important;
}

#zuma-root {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.zuma-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 18px;
  background: var(--zuma-lime);
  color: var(--zuma-on-lime);
  font-weight: 700;
  border-radius: 0 0 var(--zuma-r-control) 0;
}
.zuma-skip-link:focus {
  left: 0;
}

/* Visible focus everywhere — brief section 22. */
body.zuma-body :focus-visible {
  outline: 3px solid var(--zuma-lime);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ------------------------------------------------------------------ *
 * Boot / noscript
 * ------------------------------------------------------------------ */

.zuma-boot {
  height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 20px;
  background: var(--zuma-bg);
}
.zuma-boot__mark {
  font-family: var(--zuma-font-display);
  font-size: clamp(44px, 14vw, 72px);
  letter-spacing: -0.02em;
  color: var(--zuma-green);
}
.zuma-boot__bar {
  width: 180px;
  height: 4px;
  border-radius: 99px;
  background: var(--zuma-surface-raised);
  overflow: hidden;
}
.zuma-boot__bar span {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 99px;
  background: var(--zuma-lime);
  animation: zuma-indeterminate 1.1s var(--zuma-ease) infinite;
}
@keyframes zuma-indeterminate {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}
.zuma-boot__text {
  margin: 0;
  color: var(--zuma-text-3);
  font-size: 14px;
}

.zuma-noscript {
  padding: 32px 24px;
  max-width: 34em;
  margin: 0 auto;
}
.zuma-noscript h1 {
  font-family: var(--zuma-font-condensed);
  font-size: 34px;
  color: var(--zuma-green);
  text-transform: uppercase;
}
.zuma-noscript a {
  color: var(--zuma-lime);
}

/* ------------------------------------------------------------------ *
 * Topographic backdrop
 * ------------------------------------------------------------------ */

.zuma-topo {
  position: absolute;
  inset: 0;
  background-image: url("../img/topo.svg");
  background-size: 900px;
  background-position: center;
  background-repeat: repeat;
  opacity: 0.85;
  pointer-events: none;
}

/* Map label text, used by the stylised basemap. */
.zuma-map-label {
  font-family: var(--zuma-font-ui);
  font-size: 11px;
  font-weight: 600;
  fill: var(--zuma-text-2);
  paint-order: stroke;
  stroke: #050505;
  stroke-width: 3px;
  stroke-linejoin: round;
}

/* ------------------------------------------------------------------ *
 * Typography primitives
 * ------------------------------------------------------------------ */

.zuma-display {
  font-family: var(--zuma-font-display);
  letter-spacing: -0.02em;
  line-height: 0.94;
  text-transform: uppercase;
  margin: 0;
}
.zuma-condensed {
  font-family: var(--zuma-font-condensed);
  letter-spacing: 0.005em;
  line-height: 0.9;
  text-transform: uppercase;
  margin: 0;
}
.zuma-h1 {
  font-size: clamp(34px, 11vw, 56px);
}
.zuma-h2 {
  font-size: clamp(24px, 6vw, 32px);
}
.zuma-screen-title {
  font-size: clamp(20px, 5vw, 26px);
  font-weight: 700;
  font-family: var(--zuma-font-ui);
  margin: 0;
}
.zuma-muted {
  color: var(--zuma-text-3);
}
.zuma-secondary {
  color: var(--zuma-text-2);
}
.zuma-green-text {
  color: var(--zuma-green);
}

/* ------------------------------------------------------------------ *
 * Buttons — 44px minimum target (brief section 22)
 * ------------------------------------------------------------------ */

.zuma-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: var(--zuma-font-ui);
  font-size: 16px;
  font-weight: 700;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: var(--zuma-r-button);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background var(--zuma-t-fast) var(--zuma-ease),
              transform var(--zuma-t-fast) var(--zuma-ease),
              opacity var(--zuma-t-fast) var(--zuma-ease);
  text-decoration: none;
  width: 100%;
}
.zuma-btn:active:not(:disabled) {
  transform: scale(0.985);
}
.zuma-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.zuma-btn--primary {
  background: var(--zuma-lime);
  color: var(--zuma-on-lime);
}
.zuma-btn--primary:hover:not(:disabled) {
  background: var(--zuma-lime-hover);
}
.zuma-btn--primary:active:not(:disabled) {
  background: var(--zuma-lime-press);
}

.zuma-btn--dark {
  background: var(--zuma-surface-raised);
  color: var(--zuma-text);
}
.zuma-btn--dark:hover:not(:disabled) {
  background: #242424;
}

.zuma-btn--outline {
  background: transparent;
  color: var(--zuma-text);
  box-shadow: inset 0 0 0 1px var(--zuma-border);
}
.zuma-btn--outline:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.04);
}

.zuma-btn--ghost {
  background: transparent;
  color: var(--zuma-text-2);
  min-height: 44px;
  width: auto;
  padding: 10px 14px;
  font-weight: 600;
}
.zuma-btn--ghost:hover:not(:disabled) {
  color: var(--zuma-text);
}

.zuma-btn--danger {
  background: transparent;
  color: var(--zuma-danger);
  box-shadow: inset 0 0 0 1px rgba(255, 91, 91, 0.4);
}
.zuma-btn--danger:hover:not(:disabled) {
  background: rgba(255, 91, 91, 0.09);
}

.zuma-btn--sm {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 15px;
  width: auto;
}

.zuma-iconbtn {
  appearance: none;
  border: 0;
  cursor: pointer;
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(10, 10, 10, 0.82);
  color: var(--zuma-text);
  box-shadow: inset 0 0 0 1px var(--zuma-border-soft);
  backdrop-filter: blur(8px);
  transition: background var(--zuma-t-fast) var(--zuma-ease);
}
.zuma-iconbtn:hover {
  background: rgba(30, 30, 30, 0.9);
}

/* Spinner inside buttons */
.zuma-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  animation: zuma-spin 0.7s linear infinite;
  flex: none;
}
@keyframes zuma-spin {
  to { transform: rotate(360deg); }
}

/* ------------------------------------------------------------------ *
 * Inputs — mirrors the boxed, icon-led fields in the login artwork
 * ------------------------------------------------------------------ */

.zuma-field {
  display: block;
  margin-bottom: 14px;
}
.zuma-field__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--zuma-text-2);
  margin-bottom: 7px;
}
.zuma-inputwrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--zuma-r-input);
  box-shadow: inset 0 0 0 1px var(--zuma-border);
  padding: 0 14px;
  min-height: 56px;
  transition: box-shadow var(--zuma-t-fast) var(--zuma-ease);
}
.zuma-inputwrap:focus-within {
  box-shadow: inset 0 0 0 2px var(--zuma-lime);
}
.zuma-inputwrap--error {
  box-shadow: inset 0 0 0 2px var(--zuma-danger);
}
.zuma-inputwrap__icon {
  color: var(--zuma-text-3);
  flex: none;
  display: grid;
  place-items: center;
}
.zuma-inputwrap input {
  flex: 1;
  min-width: 0;
  appearance: none;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--zuma-text);
  font-family: var(--zuma-font-ui);
  font-size: 16px; /* 16px prevents iOS zoom-on-focus */
  padding: 15px 0;
}
.zuma-inputwrap input::placeholder {
  color: var(--zuma-text-3);
}
.zuma-reveal {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--zuma-text-3);
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
}
.zuma-reveal:hover {
  color: var(--zuma-text);
}
.zuma-field__error {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  font-size: 13px;
  color: var(--zuma-danger);
}

/* ------------------------------------------------------------------ *
 * Cards, chips, sheets
 * ------------------------------------------------------------------ */

.zuma-card {
  background: var(--zuma-surface);
  border-radius: var(--zuma-r-card);
  box-shadow: inset 0 0 0 1px var(--zuma-border-soft);
}

.zuma-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--zuma-surface-raised);
  color: var(--zuma-text-2);
  white-space: nowrap;
}
.zuma-chip--demo {
  background: rgba(255, 191, 63, 0.14);
  color: var(--zuma-warning);
  box-shadow: inset 0 0 0 1px rgba(255, 191, 63, 0.3);
}
.zuma-chip--lime {
  background: var(--zuma-lime);
  color: var(--zuma-on-lime);
}
.zuma-chip--live {
  background: rgba(116, 220, 26, 0.14);
  color: var(--zuma-green);
  box-shadow: inset 0 0 0 1px rgba(116, 220, 26, 0.3);
}
.zuma-chip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: zuma-pulse 1.8s ease-in-out infinite;
}
@keyframes zuma-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* Bottom sheet: dark, per the login/rental artwork rather than the
   light Google-Maps sheet in the booking mock. */
.zuma-sheet {
  position: relative;
  z-index: 20;
  background: var(--zuma-bg-2);
  border-radius: var(--zuma-r-sheet) var(--zuma-r-sheet) 0 0;
  box-shadow: 0 -1px 0 var(--zuma-border-soft), 0 -24px 48px rgba(0, 0, 0, 0.55);
  padding: 10px 16px calc(16px + var(--zuma-safe-b));
  max-height: 78%;
  display: flex;
  flex-direction: column;
  animation: zuma-sheet-in var(--zuma-t-slow) var(--zuma-ease);
}
@keyframes zuma-sheet-in {
  from { transform: translateY(22px); opacity: 0.4; }
  to { transform: translateY(0); opacity: 1; }
}
.zuma-sheet__grip {
  width: 44px;
  height: 4px;
  border-radius: 99px;
  background: var(--zuma-border);
  margin: 4px auto 12px;
  flex: none;
}
.zuma-sheet__scroll {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  margin: 0 -16px;
  padding: 0 16px;
}
.zuma-sheet__hint {
  text-align: center;
  font-size: 13px;
  color: var(--zuma-text-3);
  margin: 0 0 12px;
}

/* ------------------------------------------------------------------ *
 * Category option rows
 * ------------------------------------------------------------------ */

.zuma-option {
  width: 100%;
  appearance: none;
  cursor: pointer;
  text-align: left;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  margin-bottom: 8px;
  background: var(--zuma-surface);
  border: 0;
  border-radius: var(--zuma-r-control);
  box-shadow: inset 0 0 0 1px var(--zuma-border-soft);
  color: var(--zuma-text);
  transition: box-shadow var(--zuma-t-fast) var(--zuma-ease),
              background var(--zuma-t-fast) var(--zuma-ease);
}
.zuma-option:hover {
  background: var(--zuma-surface-raised);
}
.zuma-option[aria-pressed="true"] {
  background: var(--zuma-surface-raised);
  box-shadow: inset 0 0 0 2px var(--zuma-lime);
}
.zuma-option__art {
  width: 60px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--zuma-text);
}
.zuma-option__name {
  font-family: var(--zuma-font-ui);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.zuma-option__name b {
  font-family: var(--zuma-font-condensed);
  font-size: 19px;
  letter-spacing: 0.02em;
  font-weight: 400;
}
.zuma-option__meta {
  display: block;
  font-size: 13px;
  color: var(--zuma-text-3);
  margin-top: 2px;
}
.zuma-option__seats {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 13px;
  color: var(--zuma-text-2);
  font-weight: 600;
}
.zuma-option__price {
  text-align: right;
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.zuma-option__price small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--zuma-text-3);
  margin-top: 1px;
}

/* ------------------------------------------------------------------ *
 * Location rows and the pickup→destination connector
 * ------------------------------------------------------------------ */

.zuma-locrow {
  width: 100%;
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  padding: 11px 4px;
  color: var(--zuma-text);
  min-height: 56px;
  border-radius: var(--zuma-r-control);
  transition: background var(--zuma-t-fast) var(--zuma-ease);
}
.zuma-locrow:hover {
  background: rgba(255, 255, 255, 0.035);
}
.zuma-locrow__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--zuma-surface-raised);
  color: var(--zuma-text-2);
  flex: none;
}
/* display:block is load-bearing here — these live inside a wrapper span,
   and text-overflow:ellipsis has no effect on an inline box. Without it
   the name and detail collide on one line and overflow the panel. */
.zuma-locrow__name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.zuma-locrow__detail {
  display: block;
  font-size: 13px;
  color: var(--zuma-text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zuma-endpoints {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  padding: 4px 0;
}
.zuma-endpoints__rail {
  display: grid;
  grid-template-rows: 12px 1fr 12px;
  justify-items: center;
  padding: 16px 0;
}
.zuma-endpoints__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--zuma-green);
}
.zuma-endpoints__dot--dest {
  border-radius: 2px;
  background: var(--zuma-lime);
}
.zuma-endpoints__line {
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--zuma-border) 0 4px,
    transparent 4px 8px
  );
  min-height: 22px;
}
.zuma-endpoints__fields > * + * {
  margin-top: 8px;
}

.zuma-endpoint-btn {
  width: 100%;
  appearance: none;
  cursor: pointer;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px var(--zuma-border);
  border: 0;
  border-radius: var(--zuma-r-input);
  color: var(--zuma-text);
  padding: 13px 15px;
  min-height: 56px;
  font-family: var(--zuma-font-ui);
  font-size: 15px;
  transition: box-shadow var(--zuma-t-fast) var(--zuma-ease);
}
.zuma-endpoint-btn:hover {
  box-shadow: inset 0 0 0 1px var(--zuma-text-3);
}
.zuma-endpoint-btn small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--zuma-text-3);
  margin-bottom: 3px;
}
.zuma-endpoint-btn span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.zuma-endpoint-btn--empty span {
  color: var(--zuma-text-3);
  font-weight: 500;
}

/* ------------------------------------------------------------------ *
 * Fare breakdown
 * ------------------------------------------------------------------ */

.zuma-fare {
  font-size: 14px;
}
.zuma-fare__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  color: var(--zuma-text-2);
}
.zuma-fare__row--total {
  border-top: 1px solid var(--zuma-border);
  margin-top: 6px;
  padding-top: 12px;
  color: var(--zuma-text);
  font-weight: 700;
  font-size: 16px;
}
.zuma-fare__row span:last-child {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.zuma-fare__row--credit span:last-child {
  color: var(--zuma-green);
}

/* ------------------------------------------------------------------ *
 * Driver card
 * ------------------------------------------------------------------ */

.zuma-driver {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: var(--zuma-surface);
  border-radius: var(--zuma-r-card);
  box-shadow: inset 0 0 0 1px var(--zuma-border-soft);
}
.zuma-driver__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--zuma-green);
  color: var(--zuma-on-lime);
  font-family: var(--zuma-font-display);
  font-size: 20px;
}
.zuma-driver__name {
  display: block;
  font-size: 17px;
  font-weight: 700;
}
.zuma-driver__rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--zuma-text-2);
  font-weight: 600;
}
.zuma-driver__vehicle {
  display: block;
  font-size: 13px;
  color: var(--zuma-text-3);
  margin-top: 2px;
}
.zuma-plate {
  display: inline-block;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--zuma-text);
  color: var(--zuma-bg);
  margin-left: 6px;
}

.zuma-actionrow {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
}
.zuma-actionrow .zuma-btn {
  min-height: 48px;
  font-size: 14px;
  padding: 12px 10px;
}

/* ------------------------------------------------------------------ *
 * Status banner
 * ------------------------------------------------------------------ */

.zuma-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: var(--zuma-r-control);
  background: var(--zuma-surface-raised);
  margin-bottom: 12px;
}
.zuma-status__pip {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--zuma-green);
  flex: none;
  box-shadow: 0 0 0 4px rgba(116, 220, 26, 0.18);
}
.zuma-status__text strong {
  display: block;
  font-size: 15px;
}
.zuma-status__text span {
  font-size: 13px;
  color: var(--zuma-text-3);
}

/* ------------------------------------------------------------------ *
 * Map area
 * ------------------------------------------------------------------ */

.zuma-mapwrap {
  position: relative;
  flex: 1;
  min-height: 0;
  background: var(--zuma-bg-2);
  overflow: hidden;
}
/* Scoped to the stylised map only. Mapbox sizes its own canvas from the
   container and device pixel ratio; forcing 100% here made it render at the
   wrong scale. */
.zuma-mapwrap svg.zuma-canvasmap {
  display: block;
  width: 100%;
  height: 100%;
}
.zuma-map-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.zuma-map-controls {
  position: absolute;
  right: 14px;
  bottom: 16px;
  display: grid;
  gap: 8px;
  pointer-events: auto;
}
.zuma-map-topbar {
  position: absolute;
  top: calc(12px + var(--zuma-safe-t));
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}
.zuma-map-attrib {
  position: absolute;
  left: 8px;
  bottom: 6px;
  font-size: 10px;
  color: var(--zuma-text-3);
  background: rgba(5, 5, 5, 0.6);
  padding: 2px 6px;
  border-radius: 4px;
  pointer-events: auto;
}
.zuma-map-attrib a {
  color: var(--zuma-text-2);
}

/* Mapbox renderer
 *
 * SPECIFICITY WARNING: mapbox-gl.css is injected into <head> at runtime,
 * so it lands AFTER this stylesheet. Its `.mapboxgl-map { position: relative }`
 * beats a bare `.zuma-mb-holder` on source order at equal specificity, which
 * collapses the container to zero height and hides a perfectly working map.
 * The descendant selector below (0,2,0) outranks it without needing
 * !important. Explicit width/height are belt and braces.
 */
.zuma-mapwrap .zuma-mb-holder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.zuma-mb-holder .mapboxgl-ctrl-logo,
.zuma-mb-holder .mapboxgl-ctrl-attrib {
  /* Mapbox terms require attribution, so this is toned down, not hidden. */
  opacity: 0.55;
  font-size: 10px;
}
.zuma-mb-holder .mapboxgl-ctrl-attrib {
  background: rgba(5, 5, 5, 0.6) !important;
}
.zuma-mb-holder .mapboxgl-ctrl-attrib a {
  color: var(--zuma-text-2) !important;
}

.zuma-mb-marker {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}
.zuma-mb-marker--pickup {
  border-radius: 50%;
  background: var(--zuma-green);
  border: 2.5px solid #050505;
  box-shadow: 0 0 0 6px rgba(116, 220, 26, 0.22);
}
.zuma-mb-marker--dest {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: var(--zuma-lime);
  border: 2.5px solid #050505;
  box-shadow: 0 0 0 6px rgba(203, 247, 60, 0.2);
}
.zuma-mb-marker--driver {
  width: 30px;
  height: 30px;
}
.zuma-mb-marker--driver svg {
  transition: transform var(--zuma-t-base) var(--zuma-ease);
}

.zuma-map-skeleton {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--zuma-bg-2);
}
.zuma-map-skeleton__label {
  position: relative;
  z-index: 1;
  font-size: 13px;
  color: var(--zuma-text-3);
}

.zuma-map-fallback {
  position: absolute;
  left: 14px;
  right: 14px;
  top: calc(68px + var(--zuma-safe-t));
  margin: 0;
  z-index: 5;
  font-size: 12px;
  color: var(--zuma-warning);
  background: rgba(5, 5, 5, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 191, 63, 0.3);
  padding: 8px 12px;
  border-radius: var(--zuma-r-control);
  text-align: center;
}

/* Crosshair shown while placing a pin */
.zuma-crosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -100%);
  pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.6));
}

/* ------------------------------------------------------------------ *
 * Auth screen
 * ------------------------------------------------------------------ */

.zuma-auth {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: var(--zuma-bg);
}
.zuma-auth__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: calc(28px + var(--zuma-safe-t)) 22px calc(28px + var(--zuma-safe-b));
  flex: 1;
  display: flex;
  flex-direction: column;
}
.zuma-auth__brand {
  font-family: var(--zuma-font-display);
  font-size: 22px;
  letter-spacing: 0.16em;
  color: var(--zuma-green);
  text-align: center;
  margin-bottom: 30px;
}
.zuma-auth__greet {
  font-family: var(--zuma-font-condensed);
  font-size: clamp(46px, 16vw, 76px);
  line-height: 0.86;
  text-transform: uppercase;
  color: var(--zuma-green);
  margin: 0 0 6px;
}
.zuma-auth__sub {
  color: var(--zuma-text-2);
  font-size: 15px;
  margin: 0 0 26px;
}
.zuma-auth__form {
  margin-top: auto;
}
.zuma-auth__foot {
  text-align: center;
  margin-top: 18px;
  font-size: 14px;
  color: var(--zuma-text-2);
}
.zuma-auth__foot a,
.zuma-auth__link {
  color: var(--zuma-lime);
  text-decoration: none;
  font-weight: 600;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  padding: 4px;
}
.zuma-auth__foot a:hover,
.zuma-auth__link:hover {
  text-decoration: underline;
}

/* The struck-through "LOGIN" gag from the artwork, kept as a small
   flourish above the button label. */
.zuma-auth__gag {
  display: block;
  text-align: center;
  font-size: 12px;
  color: var(--zuma-text-3);
  text-decoration: line-through;
  letter-spacing: 0.2em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------ *
 * Alerts / empty states
 * ------------------------------------------------------------------ */

.zuma-alert {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 13px 15px;
  border-radius: var(--zuma-r-control);
  font-size: 14px;
  margin-bottom: 14px;
  line-height: 1.45;
}
.zuma-alert--error {
  background: rgba(255, 91, 91, 0.11);
  color: #ffc9c9;
  box-shadow: inset 0 0 0 1px rgba(255, 91, 91, 0.28);
}
.zuma-alert--success {
  background: rgba(53, 201, 111, 0.11);
  color: #b6f3cf;
  box-shadow: inset 0 0 0 1px rgba(53, 201, 111, 0.28);
}
.zuma-alert--info {
  background: rgba(85, 167, 255, 0.1);
  color: #cfe5ff;
  box-shadow: inset 0 0 0 1px rgba(85, 167, 255, 0.25);
}
.zuma-alert--warn {
  background: rgba(255, 191, 63, 0.1);
  color: #ffe4ad;
  box-shadow: inset 0 0 0 1px rgba(255, 191, 63, 0.25);
}
.zuma-alert__icon {
  flex: none;
  margin-top: 1px;
}

.zuma-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--zuma-text-3);
}
.zuma-empty__title {
  font-family: var(--zuma-font-condensed);
  font-size: 26px;
  text-transform: uppercase;
  color: var(--zuma-text-2);
  margin: 0 0 6px;
}

/* Skeletons */
.zuma-skel {
  background: linear-gradient(
    90deg,
    var(--zuma-surface) 25%,
    var(--zuma-surface-raised) 37%,
    var(--zuma-surface) 63%
  );
  background-size: 400% 100%;
  animation: zuma-shimmer 1.3s ease-in-out infinite;
  border-radius: var(--zuma-r-control);
}
@keyframes zuma-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}
.zuma-skel--option {
  height: 68px;
  margin-bottom: 8px;
}

/* ------------------------------------------------------------------ *
 * Rating
 * ------------------------------------------------------------------ */

.zuma-stars {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 6px 0 16px;
}
.zuma-star {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px;
  min-width: 48px;
  min-height: 48px;
  color: var(--zuma-border);
  transition: color var(--zuma-t-fast) var(--zuma-ease),
              transform var(--zuma-t-fast) var(--zuma-ease);
}
.zuma-star[data-on="true"] {
  color: var(--zuma-lime);
}
.zuma-star:hover {
  transform: scale(1.12);
}

.zuma-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.zuma-tag {
  appearance: none;
  cursor: pointer;
  border: 0;
  background: var(--zuma-surface);
  box-shadow: inset 0 0 0 1px var(--zuma-border);
  color: var(--zuma-text-2);
  border-radius: 99px;
  padding: 10px 15px;
  min-height: 44px;
  font-family: var(--zuma-font-ui);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--zuma-t-fast) var(--zuma-ease);
}
.zuma-tag[aria-pressed="true"] {
  background: var(--zuma-lime);
  color: var(--zuma-on-lime);
  box-shadow: none;
}

/* ------------------------------------------------------------------ *
 * Receipt
 * ------------------------------------------------------------------ */

.zuma-receipt__amount {
  font-family: var(--zuma-font-display);
  font-size: clamp(40px, 13vw, 60px);
  text-align: center;
  color: var(--zuma-text);
  margin: 4px 0 2px;
  font-variant-numeric: tabular-nums;
}
.zuma-receipt__label {
  text-align: center;
  color: var(--zuma-text-3);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}

/* ------------------------------------------------------------------ *
 * Desktop: split layout per brief section 9.3
 * ------------------------------------------------------------------ */

@media (min-width: 1024px) {
  #zuma-root {
    flex-direction: row-reverse;
  }

  .zuma-mapwrap {
    flex: 1;
  }

  .zuma-sheet {
    width: 420px;
    flex: none;
    max-height: none;
    height: 100%;
    border-radius: 0;
    box-shadow: 1px 0 0 var(--zuma-border-soft);
    padding: 24px 22px calc(24px + var(--zuma-safe-b));
    animation: none;
    overflow: hidden;
  }

  .zuma-sheet__grip {
    display: none;
  }

  .zuma-sheet__hint {
    text-align: left;
  }

  .zuma-map-topbar {
    left: 20px;
    right: 20px;
  }

  .zuma-auth {
    display: grid;
    place-items: center;
  }
  .zuma-auth__inner {
    flex: none;
    padding: 40px;
  }
  .zuma-auth__form {
    margin-top: 0;
  }

  .zuma-actionrow .zuma-btn {
    font-size: 15px;
  }
}

/* Small phones: 320px must not scroll horizontally (brief section 33). */
@media (max-width: 359px) {
  .zuma-option {
    grid-template-columns: 46px 1fr auto;
    gap: 10px;
    padding: 11px 10px;
  }
  .zuma-option__art {
    width: 46px;
    height: 32px;
  }
  .zuma-option__price {
    font-size: 15px;
  }
  .zuma-sheet {
    padding-left: 12px;
    padding-right: 12px;
  }
  .zuma-actionrow {
    grid-auto-flow: row;
  }
}
