/* Shotgun — Penn State palette (Nittany Navy, Beaver Blue, Pugh Blue) with Roboto type. */
:root {
  --navy: #001E44;        /* Nittany Navy */
  --beaver: #1E407C;      /* Beaver Blue */
  --pugh: #96BEE6;        /* Pugh Blue */
  --pugh-soft: #E4EEF9;
  --white: #FFFFFF;
  --bg: #F2F4F7;
  --line: #DCE1E8;
  --ink: #0B1730;
  --muted: #5A6578;
  --creek: #2D8A86;       /* success */
  --creek-soft: #DFF1EF;
  --opportunity: #E2554C; /* warning / alerts */
  --original: #BC204B;    /* danger */
  --original-soft: #FBE7EC;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 30, 68, .06), 0 4px 16px rgba(0, 30, 68, .06);
  --font: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --slab: "Roboto Slab", Georgia, serif;
  --cond: "Roboto Condensed", "Roboto", system-ui, sans-serif;
  --nav-h: 64px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--beaver); }
h1, h2, h3 { font-family: var(--slab); color: var(--navy); margin: 0; line-height: 1.15; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.eyebrow {
  font-family: var(--cond); font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; font-size: 12px; color: var(--beaver);
}
.hidden { display: none !important; }

/* ---------------------------------------------------------- shell */
.topbar {
  position: sticky; top: 0; z-index: 1000;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; gap: 24px;
  padding: 0 20px; height: 60px;
}
.wordmark {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--slab); font-weight: 800; font-size: 22px; letter-spacing: .01em;
  color: var(--white); text-decoration: none;
}
.wordmark svg { width: 30px; height: 30px; }
.wordmark small {
  font-family: var(--cond); font-weight: 500; font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--pugh); margin-left: 2px;
}
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  position: relative; display: flex; align-items: center; gap: 8px;
  color: rgba(255, 255, 255, .78); text-decoration: none;
  font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 14px;
  padding: 8px 14px; border-radius: 999px;
}
.nav a:hover { color: var(--white); background: rgba(255, 255, 255, .08); }
.nav a.active { color: var(--navy); background: var(--white); }
.nav svg { width: 20px; height: 20px; flex: none; }
.badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--opportunity); color: var(--white);
  font: 700 11px/18px var(--font); text-align: center;
}

main { max-width: 1100px; margin: 0 auto; padding: 24px 20px 40px; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; }

.grid-2 { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 20px; align-items: start; }

.footer {
  max-width: 1100px; margin: 0 auto; padding: 0 20px 32px;
  font-size: 12px; color: var(--muted);
}

/* ---------------------------------------------------------- cards & forms */
.card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; border: 1px solid rgba(0, 30, 68, .04);
}
.card + .card { margin-top: 16px; }
.card h3 + p { margin-top: 4px; }
.stack > * + * { margin-top: 14px; }

label.field { display: block; }
label.field > span {
  display: block; margin-bottom: 6px;
  font-family: var(--cond); font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
}
input[type=text], input[type=email], input[type=password], input[type=number], input[type=datetime-local], select, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--beaver); box-shadow: 0 0 0 3px rgba(30, 64, 124, .15); }
textarea { resize: vertical; min-height: 70px; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; min-width: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 11px 20px; cursor: pointer;
  font-family: var(--cond); font-weight: 700; font-size: 15px; letter-spacing: .05em; text-transform: uppercase;
  background: var(--navy); color: var(--white); transition: background .15s, transform .05s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--beaver); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { background: var(--pugh-soft); box-shadow: inset 0 0 0 1.5px var(--pugh); }
.btn.pugh { background: var(--pugh); color: var(--navy); }
.btn.pugh:hover { background: #B4D1EF; }
.btn.danger { background: transparent; color: var(--original); box-shadow: inset 0 0 0 1.5px #EBC3CE; }
.btn.danger:hover { background: var(--original-soft); }
.btn.sm { padding: 7px 14px; font-size: 13px; }

.seg { display: inline-flex; background: var(--bg); border-radius: 999px; padding: 4px; gap: 2px; }
.seg button {
  border: 0; background: transparent; border-radius: 999px; padding: 7px 14px; cursor: pointer;
  font-family: var(--cond); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
}
.seg button.on { background: var(--white); color: var(--navy); box-shadow: var(--shadow); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 500;
  background: var(--bg); color: var(--muted);
}
.chip.way { background: var(--creek-soft); color: var(--creek); }
.chip.want { background: var(--pugh-soft); color: var(--beaver); }
.chip.warn { background: var(--original-soft); color: var(--original); }

.error { color: var(--original); font-size: 14px; min-height: 0; }
.error:empty { display: none; }

/* ---------------------------------------------------------- place picker + map */
.place {
  display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start;
}
.dot { width: 14px; height: 14px; border-radius: 50%; margin: 13px 6px 0; }
.dot.a { background: var(--white); box-shadow: inset 0 0 0 4px var(--navy); }
.dot.b { background: var(--opportunity); }
.search { position: relative; min-width: 0; }
.search-box { position: relative; }
.search-box .search-icon { position: absolute; left: 12px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-box input { padding-left: 38px; padding-right: 36px; }
.search-clear {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; cursor: pointer;
  color: var(--muted); font-size: 20px; line-height: 1;
}
.search-clear:hover { background: var(--bg); color: var(--navy); }
.suggest {
  position: absolute; left: 0; right: 0; top: 48px; z-index: 1100;
  margin: 0; padding: 6px 0; list-style: none;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 30, 68, .16);
  max-height: 320px; overflow-y: auto;
}
.suggest-head {
  padding: 8px 14px 4px; font-family: var(--cond); font-weight: 700; font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.suggest-status { padding: 8px 14px; font-size: 13px; color: var(--muted); }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 8px 14px; cursor: pointer; }
.opt:hover, .opt.active { background: var(--pugh-soft); }
.opt-icon { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--beaver); }
.opt-icon svg { width: 16px; height: 16px; display: block; }
.opt-text { min-width: 0; display: flex; flex-direction: column; }
.opt .t { font-weight: 500; color: var(--ink); }
.opt .d { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.place .tools { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.linkbtn {
  border: 0; background: none; padding: 0; cursor: pointer; color: var(--beaver);
  font-size: 13px; font-weight: 500;
}
.linkbtn.on { color: var(--opportunity); }
.map { height: 260px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); z-index: 0; }
.map.tall { height: 340px; }
.map-hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.pin {
  width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}
.pin.a { background: var(--navy); }
.pin.b { background: var(--opportunity); }

/* ---------------------------------------------------------- people cards */
.list { display: grid; gap: 12px; }
.person {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: start;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px;
  border: 1.5px solid transparent;
}
.person.hot { border-color: var(--pugh); background: linear-gradient(0deg, var(--white), var(--white)) padding-box; }
.avatar {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--slab); font-weight: 800; font-size: 19px;
  background: var(--navy); color: var(--white);
}
.avatar.sm { width: 38px; height: 38px; font-size: 14px; }
.person .name { font-weight: 700; font-size: 16px; color: var(--navy); }
.person .meta { color: var(--muted); font-size: 13px; margin-top: 2px; }
.person .chips { margin-top: 8px; }
.person .note { margin-top: 8px; font-size: 14px; }
.person .actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.stars { color: #C98A00; font-weight: 700; }
.route { display: grid; grid-template-columns: 14px 1fr; column-gap: 8px; row-gap: 2px; font-size: 14px; margin-top: 6px; }
.route .dot { width: 10px; height: 10px; margin: 5px 2px 0; }

.empty {
  text-align: center; padding: 36px 20px; color: var(--muted);
  background: var(--white); border-radius: var(--radius); border: 1.5px dashed var(--line);
}
.empty h3 { margin-bottom: 6px; }

.status-card { background: var(--navy); color: var(--white); }
.status-card h3, .status-card .eyebrow { color: var(--white); }
.status-card .eyebrow { color: var(--pugh); }
.status-card .muted { color: rgba(255, 255, 255, .72); }
.status-card .route .dot.a { box-shadow: inset 0 0 0 3px var(--pugh); background: var(--navy); }
.live { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #5BE0A0; margin-right: 6px; box-shadow: 0 0 0 0 rgba(91, 224, 160, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(91, 224, 160, 0); } 100% { box-shadow: 0 0 0 0 rgba(91, 224, 160, 0); } }

/* live location */
.loc-status { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: rgba(255, 255, 255, .82); }
.loc-status svg { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--pugh); }
.loc-status.warn { color: #FFC9C4; }
.loc-status.warn svg { color: #FF9A92; }
.loc-explain {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px;
  background: var(--pugh-soft); color: var(--navy);
}
.loc-explain svg { flex: none; width: 22px; height: 22px; color: var(--beaver); margin-top: 1px; }
.loc-explain strong { display: block; margin-bottom: 3px; }
.loc-explain span { font-size: 13px; color: var(--muted); }
.loc-explain.warn { background: var(--original-soft); }
.loc-explain.warn svg { color: var(--original); }

/* ---------------------------------------------------------- matches + chat */
.thread {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center;
  padding: 14px 16px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  text-decoration: none; color: inherit;
}
.thread:hover { box-shadow: inset 0 0 0 1.5px var(--pugh), var(--shadow); }
.thread .avatar { width: 44px; height: 44px; font-size: 16px; }
.thread .preview { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread .name { font-weight: 700; color: var(--navy); }

.chat { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.chat-main {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; flex-direction: column; height: calc(100vh - 60px - 48px - 40px); min-height: 460px; overflow: hidden;
}
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat-head .back { display: none; }
.msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 6px; background: #FAFBFD; }
.msg { max-width: 75%; padding: 9px 13px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); white-space: pre-wrap; word-wrap: break-word; }
.msg.mine { align-self: flex-end; background: var(--navy); color: var(--white); border-color: var(--navy); border-bottom-right-radius: 5px; }
.msg.theirs { align-self: flex-start; border-bottom-left-radius: 5px; }
.msg.sys {
  align-self: center; max-width: 90%; text-align: center; font-size: 13px;
  background: var(--pugh-soft); border-color: transparent; color: var(--beaver);
}
.msg time { display: block; font-size: 11px; opacity: .6; margin-top: 2px; }
.composer { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--white); }
.composer textarea { min-height: 44px; height: 44px; max-height: 120px; border-radius: 22px; padding: 11px 16px; resize: none; overflow: hidden; }
.no-pay {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 10px;
  background: var(--bg); font-size: 13px; color: var(--muted);
}
.no-pay svg { flex: none; width: 18px; height: 18px; color: var(--beaver); margin-top: 1px; }

.star-input { display: flex; gap: 4px; }
.star-input button { border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--line); padding: 0 2px; }
.star-input button.on { color: #E0A100; }

/* ---------------------------------------------------------- notifications */
.setting {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0 0; margin-top: 14px; border-top: 1px solid var(--line); cursor: default;
}
label.setting { cursor: pointer; }
.setting-title { font-weight: 500; color: var(--navy); }
.setting-actions { display: flex; gap: 6px; flex: none; flex-wrap: wrap; justify-content: flex-end; }
.switch {
  appearance: none; -webkit-appearance: none; flex: none; margin: 0; cursor: pointer;
  width: 44px; height: 26px; border-radius: 13px; background: var(--line); position: relative; transition: background .15s;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--white); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s;
}
.switch:checked { background: var(--beaver); }
.switch:checked::after { transform: translateX(18px); }
.switch:focus-visible { outline: 3px solid rgba(30, 64, 124, .35); outline-offset: 2px; }

.nudge {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
  padding: 12px 12px 12px 16px; border-radius: var(--radius);
  background: var(--pugh-soft); border: 1px solid #C9DCF1; color: var(--navy); font-size: 14px;
}
.nudge-icon svg { width: 20px; height: 20px; display: block; color: var(--beaver); }
.nudge-text { flex: 1; min-width: 0; }
.nudge-x { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }
@media (max-width: 640px) {
  .nudge { flex-wrap: wrap; }
  .nudge-text { flex-basis: calc(100% - 60px); }
  .nudge .btn { margin-left: 32px; }
}

/* ---------------------------------------------------------- auth */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-hero {
  background: var(--navy); color: var(--white); padding: 48px 56px; position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.auth-hero::after {
  /* abstract mountain ridge for Happy Valley */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18%;
  background:
    linear-gradient(170deg, transparent 49.5%, rgba(150, 190, 230, .16) 50%) 0 0 / 55% 100% no-repeat,
    linear-gradient(190deg, transparent 49.5%, rgba(150, 190, 230, .16) 50%) 100% 0 / 55% 100% no-repeat,
    linear-gradient(175deg, transparent 60%, rgba(30, 64, 124, .9) 60.4%);
}
.auth-hero .wordmark { font-size: 28px; }
.auth-hero h1 { color: var(--white); font-size: clamp(34px, 4.4vw, 54px); margin-top: auto; max-width: 13ch; }
.auth-hero h1 em { font-style: normal; color: var(--pugh); }
.auth-hero p { font-size: 18px; color: rgba(255, 255, 255, .8); max-width: 34ch; margin: 18px 0 0; }
.auth-points { list-style: none; padding: 0; margin: 28px 0 auto; display: grid; gap: 10px; position: relative; z-index: 1; }
.auth-points li { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.auth-points svg { width: 20px; height: 20px; color: var(--pugh); flex: none; }
.auth-side { display: flex; flex-direction: column; justify-content: center; padding: 48px; background: var(--white); }
.auth-form { width: 100%; max-width: 380px; margin: 0 auto; }
.auth-form .seg { margin-bottom: 22px; }
.auth-form .disclaimer { margin-top: 28px; font-size: 12px; color: var(--muted); }

/* ---------------------------------------------------------- toast */
#toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--navy); color: var(--white); padding: 12px 18px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  transition: opacity .2s, transform .2s; z-index: 3000; font-weight: 500; max-width: calc(100vw - 32px);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

.match-pop {
  position: fixed; inset: 0; z-index: 2500; display: grid; place-items: center; padding: 16px;
  background: rgba(0, 30, 68, .82);
}
.match-pop .inner { text-align: center; color: var(--white); max-width: 360px; }
.match-pop h2 { color: var(--white); font-size: 40px; }
.match-pop h2 em { font-style: normal; color: var(--pugh); }
.match-pop p { color: rgba(255, 255, 255, .8); margin: 10px 0 22px; }

/* ---------------------------------------------------------- responsive */
@media (max-width: 860px) {
  .grid-2, .chat { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-hero { padding: 28px 20px 120px; }
  .auth-hero h1 { margin-top: 36px; }
  .auth-side { padding: 28px 16px 40px; }
}
@media (max-width: 640px) {
  main { padding: 16px 16px calc(var(--nav-h) + 24px); }
  .footer { padding: 0 16px calc(var(--nav-h) + 20px); }
  .topbar { padding: 0 16px; height: 54px; }
  .wordmark small { display: none; }
  .nav {
    position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--nav-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--white); border-top: 1px solid var(--line); margin: 0; gap: 0; z-index: 1000;
  }
  .nav a {
    flex: 1; flex-direction: column; gap: 3px; justify-content: center; border-radius: 0;
    color: var(--muted); font-size: 11px; padding: 6px 0;
  }
  .nav a.active { background: transparent; color: var(--navy); }
  .nav a.active svg { color: var(--beaver); }
  .nav a:hover { background: transparent; }
  .nav .badge { position: absolute; top: 6px; left: calc(50% + 6px); }
  .person { grid-template-columns: 44px 1fr; }
  .person .avatar { width: 44px; height: 44px; font-size: 16px; }
  .person .actions { grid-column: 1 / -1; flex-direction: row; }
  .person .actions .btn { flex: 1; }
  .chat-main { height: calc(100vh - 54px - var(--nav-h) - 32px); min-height: 380px; }
  .chat-head .back { display: inline-flex; }
  .msg { max-width: 85%; }
}

.place-error {
  margin-top: 6px; padding: 8px 10px; border-radius: 8px;
  background: var(--original-soft); color: var(--original); font-size: 13px; line-height: 1.4;
}

/* ---------------------------------------------------------- profile photo */
img.avatar { object-fit: cover; background: var(--bg); display: block; }
.photo-picker { display: flex; gap: 16px; align-items: center; }
.photo-preview {
  position: relative; flex: none; width: 96px; height: 96px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; background: var(--pugh-soft); color: var(--beaver);
  box-shadow: inset 0 0 0 1px rgba(0, 30, 68, .08);
}
.photo-preview svg { width: 34px; height: 34px; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-busy {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0, 30, 68, .55); color: var(--white); font-size: 12px; font-weight: 700;
}
.photo-body { min-width: 0; flex: 1; }
.photo-body p { margin: 4px 0 10px; }
.photo-body .error { margin: 8px 0 0; }
.photo-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.photo-actions .disabled, .photo-actions label.disabled { opacity: .5; pointer-events: none; }
.driver-check { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; background: var(--bg); }
.driver-check img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }

.step { display: flex; gap: 12px; align-items: center; }
.step-num {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--cond); font-weight: 700; background: var(--pugh-soft); color: var(--beaver);
}
.step.done .step-num { background: var(--creek-soft); color: var(--creek); }
.step-num svg { width: 16px; height: 16px; }
@media (max-width: 420px) {
  .photo-picker { flex-direction: column; align-items: flex-start; }
}

/* ---------------------------------------------------------- drivers-online map + terms */
.areas-card { margin-bottom: 20px; padding: 16px; }
.areas-head { display: flex; gap: 20px; align-items: flex-end; justify-content: space-between; margin-bottom: 12px; flex-wrap: wrap; }
.areas-head p { margin: 0; max-width: 460px; }
.areas-count { font-family: var(--slab); font-size: 22px; color: var(--navy); margin-top: 2px; }
.areas-count strong { font-weight: 800; }
.areas-map { height: 240px; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); cursor: pointer; }
.agree input { margin-top: 2px; width: 18px; height: 18px; flex: none; accent-color: var(--beaver); }
.terms-points { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.footer p strong { color: var(--ink); font-weight: 500; }
.auth-form .disclaimer strong { color: var(--ink); font-weight: 500; }
@media (max-width: 640px) { .areas-map { height: 200px; } }

/* live drivers map on the sign-in page */
.hero-live {
  position: relative; z-index: 1; margin-top: 24px; max-width: 460px;
  padding: 12px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(150, 190, 230, .25);
}
.hero-live-head { display: flex; align-items: center; gap: 2px; margin: 0 2px 10px; font-family: var(--slab); font-size: 18px; color: var(--white); }
.hero-live-head strong { font-weight: 800; color: var(--pugh); }
.hero-map { height: 210px; border: 0; }
.auth-hero .hero-live-note { font-size: 12px; margin: 8px 2px 0; max-width: none; color: rgba(255, 255, 255, .65); }
@media (max-width: 860px) { .hero-live { max-width: none; } .hero-map { height: 190px; } }

/* ---------------------------------------------------------- ride now / plan ahead */
.subtabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 18px; border-radius: 999px; background: var(--white); box-shadow: var(--shadow); }
.subtabs a {
  padding: 8px 16px; border-radius: 999px; text-decoration: none; color: var(--muted);
  font-family: var(--cond); font-weight: 700; font-size: 14px; letter-spacing: .05em; text-transform: uppercase;
}
.subtabs a:hover { color: var(--navy); }
.subtabs a.on { background: var(--navy); color: var(--white); }
.trip { padding: 16px; display: grid; gap: 12px; border: 1.5px solid transparent; }
.trip.hot { border-color: var(--pugh); }
.trip-head { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; }
.trip-when { font-family: var(--slab); font-weight: 800; color: var(--beaver); font-size: 15px; margin-bottom: 2px; }
.trip-match, .offer { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; background: var(--bg); }
.trip-match > div, .offer > div:nth-child(2) { flex: 1; }
.offer-actions { display: flex; gap: 6px; flex: none; }
.person .trip-when { margin-bottom: 4px; }
@media (max-width: 640px) {
  .subtabs { display: flex; }
  .subtabs a { flex: 1; text-align: center; padding: 8px 6px; font-size: 13px; }
  .offer { flex-wrap: wrap; }
  .offer-actions { width: 100%; }
  .offer-actions .btn { flex: 1; }
}
