/* Taxi Yami — shared design tokens (colours taken from the proposal deck) */
:root {
  --navy: #0D47A1;
  --navy-700: #0A3A85;
  --navy-900: #082E6B;
  --ink: #1A1D24;
  --muted: #6B7280;
  --muted-2: #9AA5B1;
  --yellow: #FFC107;
  --yellow-600: #E0A800;
  --yellow-100: #FFF4D1;
  --green: #1BAF7A;
  --green-100: #DDF5EC;
  --red: #D03B3B;
  --red-100: #FBE4E4;
  --bg: #F2F4F8;
  --card: #FFFFFF;
  --line: #E7E9EE;
  --tint: #E4ECFB;
  --tint-2: #CADCFC;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 16px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 40px rgba(8, 46, 107, .22);
  --serif: Cambria, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: Calibri, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; margin: 0; }
p { margin: 0; }
a { color: var(--navy); }
button, input, select, textarea { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow-600); }
.eyebrow.blue { color: var(--navy); }
.hidden { display: none !important; }

/* Wordmark: "My" + "Taxi" in yellow, like the deck */
.wordmark { font-family: var(--serif); font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.wordmark b { color: var(--yellow); font-weight: 700; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; padding: 13px 18px; font-weight: 700; font-size: 15px;
  cursor: pointer; text-decoration: none; transition: transform .08s ease, background .15s ease, opacity .15s;
  user-select: none; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-700); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #FFCA2C; }
.btn-green { background: var(--green); color: #fff; }
.btn-red { background: var(--red); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--tint); }
.btn-light { background: var(--tint); color: var(--navy); }
.btn-outline { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 12px; font-size: 13px; border-radius: 9px; }
.btn-lg { padding: 16px 20px; font-size: 16px; border-radius: 14px; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink); }
.input {
  width: 100%; border: 1.5px solid var(--line); background: #fff; border-radius: 12px;
  padding: 12px 14px; font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(13, 71, 161, .12); }
.input.mono { font-family: var(--mono); letter-spacing: .08em; }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; min-width: 0; }

/* Cards */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 16px; }

/* Status pills */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.searching { background: var(--yellow-100); color: #9A6B00; }
.pill.accepted, .pill.arrived { background: var(--tint); color: var(--navy); }
.pill.onboard { background: #E8E3FF; color: #5B3FD0; }
.pill.completed { background: var(--green-100); color: #12805A; }
.pill.cancelled, .pill.no_driver { background: #EEF0F3; color: var(--muted); }
.pill.online { background: var(--green-100); color: #12805A; }
.pill.on_trip { background: var(--tint); color: var(--navy); }
.pill.offline { background: #EEF0F3; color: var(--muted); }

/* Toasts */
.toasts { position: fixed; left: 50%; top: calc(12px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 600; font-size: 14px; animation: toastIn .25s ease; pointer-events: auto; }
.toast.ok { background: #0F7A55; }
.toast.err { background: var(--red); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Spinner */
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }
.spinner.dark { border-color: var(--tint-2); border-top-color: var(--navy); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Leaflet markers */
.mk { display: grid; place-items: center; border-radius: 50%; font-weight: 800; font-size: 12px; color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.3); border: 3px solid #fff; }
.mk-a { width: 30px; height: 30px; background: var(--green); }
.mk-b { width: 30px; height: 30px; background: var(--navy); }
.mk-taxi { width: 38px; height: 38px; background: var(--yellow); color: var(--ink); border-color: var(--navy); }
.mk-taxi svg { width: 20px; height: 20px; }
.mk-taxi.offline { background: #D5DAE1; border-color: #9AA5B1; }
.mk-taxi.on_trip { background: var(--yellow); border-color: var(--green); }
.mk-taxi-label { position: absolute; top: 38px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
.mk-pulse::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 3px solid var(--yellow); animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.leaflet-container { font-family: var(--sans); background: #E9EEF5; }
.map-offline-note { position: absolute; z-index: 500; left: 8px; bottom: 8px; background: rgba(255,255,255,.9); font-size: 11px; padding: 3px 8px; border-radius: 6px; color: var(--muted); }
