/* Bee Ride Share — Triforce Labs theme (night navy, Hylian gold, Cinzel + Montserrat) with honey gold up front.
   Mobile first (Ashleigh drives with a Pixel 8a; riders mostly on phones). Fonts are self-hosted (OFL). */
@font-face { font-family: "Cinzel"; src: url("/fonts/cinzel-latin.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/fonts/montserrat-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  color-scheme: dark;
  --honey: #ffc21a; --honey-l: #ffd75e; --honey-d: #c98f00; --gold: #c6a052; --gold-l: #f3dfae; --sky: #4cc3f0;
  --bg: #050814; --card: #0d1428; --card-2: #111a33; --field: #0a1022;
  --ink: #e9edf5; --muted: #a9b3c7; --line: rgba(198, 160, 82, .28); --line-2: rgba(198, 160, 82, .5);
  --ok: #22c55e; --warn: #f59e0b; --bad: #ef4444; --blue: #4cc3f0;
  --r: 16px; --shadow: 0 14px 30px rgba(2, 4, 12, .6);
  font-family: Montserrat, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); }
body { margin: 0; color: var(--ink); -webkit-tap-highlight-color: transparent; min-height: 100dvh;
  background: radial-gradient(ellipse 90% 50% at 50% -10%, rgba(255, 194, 26, .16), transparent 70%), var(--bg); }
a { color: var(--honey); }
h1, h2, h3 { margin: 0 0 .4em; font-family: Cinzel, Georgia, serif; font-weight: 700; color: var(--gold-l); letter-spacing: .02em; }
h1 { font-size: 1.7rem; color: var(--honey); } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
p { line-height: 1.55; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .tiny { font-size: .75rem; }
.hex-bg { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0 32L0 82V66l28 16 28-16v16L28 98z' fill='none' stroke='%23ffc21a' stroke-opacity='.07' stroke-width='1.2'/%3E%3C/svg%3E"),
  radial-gradient(ellipse 90% 50% at 50% -10%, rgba(255, 194, 26, .16), transparent 70%); background-color: var(--bg); }

/* top bar */
.bar { position: sticky; top: 0; z-index: 1000; display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: rgba(7, 11, 24, .94); backdrop-filter: blur(8px); border-bottom: 2px solid var(--honey); color: var(--ink); }
.bar .brand { display: flex; align-items: center; gap: 9px; font: 700 1.05rem Cinzel, Georgia, serif; letter-spacing: .04em; text-decoration: none; color: var(--honey); }
.bar .brand img { width: 34px; height: 34px; border-radius: 50%; }
.bar .grow { flex: 1; }
.bar a.lnk { color: var(--honey); font-size: .85rem; text-decoration: none; font-weight: 700; }
.staging { background: repeating-linear-gradient(45deg, var(--honey), var(--honey) 10px, #e0a800 10px, #e0a800 20px); color: #17140f;
  font: 700 .72rem/1 Montserrat, system-ui; text-align: center; padding: 5px; letter-spacing: .06em; }

/* layout */
.wrap { max-width: 720px; margin: 0 auto; padding: 16px; }
.card { background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.card + .card { margin-top: 14px; }
.card.gold { border-color: var(--honey); box-shadow: var(--shadow), 0 0 0 1px rgba(255, 194, 26, .25), 0 0 28px rgba(255, 194, 26, .12); }
.row { display: flex; gap: 10px; align-items: center; } .row.wrapx { flex-wrap: wrap; } .between { justify-content: space-between; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stack > * + * { margin-top: 10px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
details summary { cursor: pointer; }

/* buttons */
button, .btn { font: inherit; font-weight: 700; border: 0; border-radius: 12px; padding: 12px 16px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--card-2); color: var(--ink); min-height: 46px; border: 1px solid var(--line); }
button:disabled { opacity: .5; cursor: not-allowed; }
.honey { background: linear-gradient(180deg, var(--honey-l), var(--honey)); color: #17140f; border: 0; box-shadow: 0 4px 0 var(--honey-d), 0 0 18px rgba(255, 194, 26, .25); }
.honey:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--honey-d); }
.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line-2); }
.ghost:hover { border-color: var(--honey); }
.ok { background: var(--ok); color: #04130a; border: 0; } .danger { background: var(--bad); color: #fff; border: 0; }
.wide { width: 100%; } .big { font-size: 1.1rem; min-height: 56px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--card-2); border: 1px solid var(--line); color: var(--ink); }
.chip.ok { background: rgba(34, 197, 94, .15); color: #86efac; border-color: rgba(34, 197, 94, .4); }
.chip.warn { background: rgba(245, 158, 11, .15); color: #fcd34d; border-color: rgba(245, 158, 11, .4); }
.chip.bad { background: rgba(239, 68, 68, .15); color: #fca5a5; border-color: rgba(239, 68, 68, .4); }
.chip.honeyc { background: var(--honey); border-color: var(--honey-d); color: #17140f; }

/* forms */
label { display: block; font-weight: 700; font-size: .9rem; color: var(--gold-l); }
input, textarea, select { font: inherit; width: 100%; margin-top: 6px; padding: 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--field); color: var(--ink); }
input::placeholder, textarea::placeholder { color: #6f7a91; }
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(255, 194, 26, .35); border-color: var(--honey); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--ink); }
.check input { width: auto; margin-top: 3px; accent-color: var(--honey); }

/* map */
.map { height: 46vh; min-height: 280px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-2); }
.map.tall { height: calc(100dvh - 120px); border-radius: 0; border: 0; }
.leaflet-container { font-family: inherit; background: #1a2238; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--card); color: var(--ink); }
.leaflet-control-attribution { background: rgba(5, 8, 20, .7) !important; color: var(--muted) !important; }
.leaflet-control-attribution a { color: var(--gold-l) !important; }
.pin { width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 3px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,.45); }
.pin.pick { background: var(--ok); } .pin.drop { background: #17140f; } .pin.safe { background: var(--blue); }
.car { width: 40px; height: 40px; border-radius: 50%; background: var(--honey); border: 3px solid #17140f; display: grid; place-items: center; font-size: 22px; box-shadow: 0 4px 10px rgba(0,0,0,.45); }

/* search results */
.results { margin: 6px 0 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--field); }
.results li { padding: 10px 12px; border-top: 1px solid var(--line); cursor: pointer; }
.results li:first-child { border-top: 0; }
.results li:hover, .results li:focus { background: var(--card-2); }
.results b { display: block; } .results span { font-size: .8rem; color: var(--muted); }

/* misc */
.price { font: 900 2rem Montserrat, sans-serif; color: var(--honey); } .price small { font-size: .9rem; font-weight: 600; color: var(--muted); }
.steps { display: flex; gap: 6px; } .steps i { flex: 1; height: 6px; border-radius: 9px; background: var(--card-2); border: 1px solid var(--line); } .steps i.on { background: var(--honey); border-color: var(--honey); }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--card-2); color: var(--ink); border: 1px solid var(--honey); padding: 12px 16px; border-radius: 12px;
  z-index: 5000; box-shadow: var(--shadow); max-width: 92vw; font-weight: 600; }
.toast.bad { background: var(--bad); border-color: var(--bad); color: #fff; }
.tabs { display: flex; gap: 4px; background: rgba(7, 11, 24, .94); padding: 8px; position: sticky; top: 56px; z-index: 999; overflow-x: auto; border-bottom: 1px solid var(--line); }
.tabs button { background: transparent; border: 0; color: var(--muted); min-height: 38px; padding: 8px 10px; border-radius: 10px; font-size: .9rem; white-space: nowrap; }
.tabs button.on { background: var(--honey); color: #17140f; }
.badge { background: var(--bad); color: #fff; border-radius: 999px; padding: 1px 7px; font-size: .72rem; }
.list > div { padding: 12px 0; border-top: 1px solid var(--line); } .list > div:first-child { border-top: 0; }
.sos { position: fixed; right: 14px; bottom: 16px; z-index: 2000; width: 68px; height: 68px; border-radius: 50%; background: var(--bad); color: #fff;
  font-weight: 900; font-size: .9rem; box-shadow: 0 6px 18px rgba(239, 68, 68, .55); border: 4px solid #fff; }
.switch { position: relative; width: 64px; height: 36px; border-radius: 999px; background: #2a3350; border: 0; padding: 0; min-height: 0; }
.switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 28px; height: 28px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch.on { background: var(--ok); } .switch.on::after { left: 32px; }
.hero { text-align: center; padding: 10px 0 8px; }
.hero .logo { width: 100%; max-width: 560px; border-radius: var(--r); display: block; margin: 0 auto 14px; border: 1px solid var(--line); box-shadow: var(--shadow), 0 0 40px rgba(255, 194, 26, .12); }
.hero h1 { font-size: 1.55rem; }
.alert-item { border-left: 5px solid var(--warn); padding: 10px 12px; background: rgba(245, 158, 11, .1); border-radius: 10px; margin-top: 8px; }
.alert-item.emergency { border-color: var(--bad); background: rgba(239, 68, 68, .12); }
.alert-item.acked { opacity: .55; }
dialog { border: 1px solid var(--honey); border-radius: var(--r); padding: 18px; max-width: 92vw; width: 440px; box-shadow: var(--shadow); background: var(--card); color: var(--ink); }
dialog::backdrop { background: rgba(2, 4, 12, .75); }
@media (min-width: 900px) { .split { display: grid; grid-template-columns: 1fr 380px; } .split .side { height: calc(100dvh - 92px); overflow: auto; } }

/* payment */
.pay { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pay .opt { background: var(--field); border: 1px solid var(--line-2); border-radius: 14px; padding: 12px; text-align: center; }
.pay .qr { width: 100%; max-width: 220px; aspect-ratio: 1; object-fit: contain; height: auto; background: #fff; border-radius: 12px; padding: 8px; display: block; margin: 0 auto 8px; }
.pay .name { font-weight: 800; color: var(--ink); } .pay .handle { font-size: .78rem; color: var(--honey); word-break: break-all; }
.pay .btn { width: 100%; margin-top: 8px; min-height: 42px; }
.pay .cash .btn { background: #00d632; color: #04130a; border: 0; } .pay .venmo .btn { background: #3d95ce; color: #fff; border: 0; }
@media (max-width: 380px) { .pay { grid-template-columns: 1fr; } }
