/* City HUD tokens from Figma 71:133. Live maps and user imagery stay dynamic. */
.city-hud {
  --ink: #0f1211;
  --paper: #f2f0e5;
  --acid: #f4cc39;
  --muted: #b4bcae;
  --surface: #181d19;
  --raised: #252c25;
  --line: #444d42;
  --friend: #9cc985;
  background: var(--ink);
  color: var(--paper);
  font-family: Inter, sans-serif;
}
.city-hud button { cursor: pointer; font-family: Inter, sans-serif; letter-spacing: 0; }
.city-hud [hidden] { display: none !important; }
.city-hud .location-card { animation: none; }
.city-hud .search input#search { border: 0; border-radius: 0; background: transparent; }
.city-hud button:active:not(:disabled) { transform: none; background-color: var(--raised); color: var(--paper); }
.city-hud :is(button,a,input,select,textarea):focus-visible { outline: 2px solid var(--acid); outline-offset: 4px; }
.city-hud .search:focus-within { outline: 2px solid var(--acid); outline-offset: 3px; }
.city-hud .search input#search:focus-visible { outline: none; }
.city-hud h1, .city-hud h2 { font-family: Anton, sans-serif; font-weight: 400; line-height: 1.2; letter-spacing: 0; }
.city-hud h1 { font-size: 28px; }
.city-hud h2 { font-size: 28px; }
.city-hud .topbar { top: 0; left: 0; right: 0; min-height: 96px; padding: 20px 32px; gap: 12px; background: var(--ink); border-bottom: 1px solid var(--line); }
.city-hud .brand { gap: 16px; text-shadow: none; }
.city-hud .brand-mark { box-shadow: none; background: transparent; width: 58px; height: 40px; padding: 0; }
.city-hud .brand small { display: block; color: var(--acid); font: 500 12px/1.5 'Roboto Mono', monospace; margin-bottom: 4px; }
.city-hud .brand b { font: 400 24px/1.2 Anton, sans-serif; letter-spacing: 0; }
.city-hud .search-shell { width: min(340px,30vw); }
.city-hud .search { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: none; height: 48px; color: var(--muted); }
.city-hud .search input { color: var(--paper); font-size: 16px; }
.city-hud .search input::placeholder { color: var(--muted); }
.city-hud kbd { color: var(--muted); border-color: var(--line); background: var(--raised); }
.city-hud .quick-button { display: none; }
.city-hud .host-button { display: block; min-width: 76px; height: 48px; border: 1px solid var(--line); border-radius: 8px; background: var(--ink); color: var(--paper); font: 500 14px Inter; box-shadow: none; }
.city-hud .icon-button, .city-hud .profile-button { min-width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: none; }
.city-hud .profile-button b { display: none; }
.city-hud .side-panel { top: 112px; bottom: auto; left: 32px; right: auto; width: auto; padding: 4px; transform: none; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: none; }
.city-hud .side-panel nav { display: flex; gap: 4px; }
.city-hud .nav-item { min-height: 44px; padding: 10px 14px; display: flex; gap: 7px; border-radius: 7px; }
.city-hud .nav-item[hidden] { display: none; }
.city-hud .nav-icon, .city-hud .nav-icon svg { width: 18px; height: 18px; }
.city-hud .nav-item b { font: 500 13px Inter; text-transform: none; letter-spacing: 0; }
.city-hud .nav-item.active { background: var(--raised); color: var(--acid); }
.primary-navigation { position: fixed; z-index: 920; right: 32px; bottom: 24px; width: 390px; padding: 8px 20px; display: grid; grid-template-columns: repeat(3,1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 0 0 20px 20px; }
.primary-navigation button { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; min-height: 60px; padding: 8px; border: 0; background: transparent; color: var(--muted); font-size: 12px; }
.primary-navigation button.active { color: var(--acid); }
.primary-navigation img { opacity: .8; }
.primary-navigation button.active img { opacity: 1; filter: brightness(0) saturate(100%) invert(81%) sepia(82%) saturate(449%) hue-rotate(349deg) brightness(102%) contrast(91%); }
.discovery-sheet { position: fixed; z-index: 810; right: 32px; bottom: 101px; width: 390px; max-height: calc(100dvh - 220px); padding: 0 24px 24px; color: var(--paper); background: var(--surface); border: 1px solid var(--line); border-bottom: 0; border-radius: 24px 24px 0 0; box-shadow: 0 -6px 18px #0005; }
.discovery-sheet[hidden], .garage-page[hidden], .hud-suppressed { display: none !important; }
.sheet-handle { display: grid; place-items: center; width: 100%; height: 44px; background: none; border: 0; }
.sheet-handle span { width: 32px; height: 4px; background: var(--line); border-radius: 2px; }
.city-hud .meet-date-filter { position: static; transform: none; width: 100%; padding: 4px; background: var(--ink); border-radius: 10px; box-shadow: none; margin-bottom: 16px; }
.city-hud .meet-date-filter button { min-height: 48px; border-radius: 7px; font: 500 15px Inter; text-transform: none; }
.city-hud .meet-date-filter button.active { color: var(--acid); background: var(--raised); }
#discovery-content { max-height: 40dvh; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) var(--surface); }
#discovery-content h2 { margin: 8px 0; }
.eyebrow { display: block; font: 500 12px/1.5 'Roboto Mono',monospace; color: var(--muted); }
.live-label, .friend-context { color: var(--friend) !important; }
.demo-label { color: var(--orange); margin-bottom: 8px; }
.sheet-copy { color: var(--muted); font-size: 15px; line-height: 1.5; margin: 8px 0 12px; }
.sheet-attendance { font-size: 14px; margin: 8px 0 16px; line-height: 1.5; }
.hud-primary { width: 100%; display: flex; align-items: center; justify-content: center; gap: 32px; min-height: 48px; padding: 12px 16px; background: var(--acid); color: var(--ink); border: 0; border-radius: 8px; font-weight: 600; font-size: 17px; }
.hud-text-button { min-height: 44px; border: 0; color: var(--acid); background: transparent; font-size: 14px; }
.agenda-list { display: grid; gap: 4px; }
.agenda-list h3 { margin: 12px 0 2px; }
.agenda-row { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 12px; min-height: 80px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--paper); text-align: left; }
.agenda-row span { min-width: 0; }
.agenda-row strong { display: block; font-size: 18px; line-height: 1.3; }
.agenda-row small { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; margin-top: 5px; overflow-wrap: anywhere; }
.agenda-row img { flex-shrink: 0; }
.agenda-row img { filter: brightness(0) saturate(100%) invert(81%) sepia(82%) saturate(449%) hue-rotate(349deg) brightness(102%) contrast(91%); }
.is-minimized #discovery-content { display: none; }
.is-minimized { padding-bottom: 0; }
.is-minimized .meet-date-filter { margin-bottom: 12px; }
.city-hud .location-card { border: 1px solid var(--line); border-radius: 16px; background: var(--ink); color: var(--paper); padding: 24px; right: 32px; bottom: 112px; width: 390px; max-height: calc(100dvh - 220px); overflow-y: auto; backdrop-filter: none; }
.city-hud .location-card h1 { font-size: 28px; margin: 16px 0; }
.city-hud .location-card p { font-size: 15px; line-height: 1.5; color: var(--muted); }
.city-hud .meet-status { background: transparent; padding: 0; color: var(--friend); font: 500 12px/1.5 'Roboto Mono',monospace; letter-spacing: 0; margin: 8px 0; }
.city-hud .meet-numbers { border-color: var(--line); margin: 20px 0; padding-top: 16px; gap: 24px; font-size: 12px; }
.city-hud .meet-numbers b { font: 400 24px Anton; }
.city-hud .meet-actions { gap: 12px; }
.city-hud .meet-actions button, .city-hud .invite-trigger, .city-hud .navigation-button { min-height: 48px; border-radius: 8px; font: 600 15px Inter; }
.city-hud #route-button { border-color: var(--line); }
.city-hud .invite-trigger { background: var(--surface); color: var(--acid); }
.city-hud .card-links { display: flex; flex-wrap: wrap; gap: 8px; }
.city-hud .card-links button { min-height: 44px; font-size: 12px; }
.city-hud .card-toggle { display: none !important; }
.meet-back { display: block; border: 0; background: none; color: var(--acid); min-height: 44px; padding: 0; font-size: 15px; }
.detail-context { padding: 16px 0; border-top: 1px solid var(--line); }
.detail-context p { margin: 6px 0 16px; color: var(--paper) !important; }
.detail-context small { color: var(--muted); line-height: 1.5; font-size: 13px; display: block; }
.city-hud .meet-cover { border-radius: 8px; margin: 16px 0; height: 180px; }
.city-hud .meet-details-open #meet-card { display: block; top: 112px; bottom: 112px; max-height: none; }
.meet-details-open .discovery-sheet, .meet-details-open .map-filters { display: none; }
.garage-page { position: fixed; z-index: 820; right: 32px; top: 112px; bottom: 101px; width: 390px; padding: 24px; overflow-y: auto; overscroll-behavior: contain; background: var(--ink); border: 1px solid var(--line); border-radius: 20px 20px 0 0; }
.page-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.page-heading h1 { margin: 0; }
.page-heading button { min-height: 44px; background: transparent; border: 0; color: var(--acid); font-size: 14px; }
.garage-identity { display: flex; gap: 12px; align-items: center; margin-bottom: 24px; }
.garage-identity img { border-radius: 50%; object-fit: cover; }
.garage-identity strong { font-size: 18px; }
.garage-identity p { font-size: 12px; color: var(--muted); }
.garage-status { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.garage-status span { color: var(--friend); font-size: 14px; }
.garage-page progress { width: 100%; height: 5px; accent-color: var(--friend); }
.garage-availability { display: grid; gap: 8px; color: var(--muted); font-size: 14px; margin: 24px 0; }
.garage-car { padding: 20px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.garage-car h2 { font-size: 24px; overflow-wrap: anywhere; }
.garage-car p { margin-bottom: 0; }
.city-hud dialog { background: var(--ink); color: var(--paper); border: 1px solid var(--line); border-radius: 16px; max-height: 90dvh; box-shadow: 0 24px 80px #0008; }
.city-hud dialog::backdrop { background: #0009; backdrop-filter: blur(5px); }
.city-hud .dialog-head h2 { font-size: 28px; }
.city-hud .dialog-head button, .city-hud .shop-close, .city-hud .destination-close, .city-hud .directions-head button { width: 44px; height: 44px; border-radius: 8px; background: var(--surface); color: var(--paper); }
.city-hud :is(input:not([type="radio"]):not([type="checkbox"]),select,textarea) { min-height: 48px; background: var(--surface); color: var(--paper); border: 1px solid var(--line); border-radius: 8px; font-family: Inter; font-size: 16px; }
.city-hud .search input { border: 0; background: transparent; min-height: 44px; }
.city-hud :is(form,.form-row,.form-field,.autocomplete-control,form label) { min-width: 0; }
.city-hud :is(input:not([type=radio]):not([type=checkbox]),select,textarea) { min-width: 0; max-width: 100%; box-sizing: border-box; }
.city-hud input:is([type=date],[type=time],[type=datetime-local]) { display: block; width: 100%; min-width: 0; max-width: 100%; appearance: none; -webkit-appearance: none; color-scheme: dark; }
.city-hud input:is([type=date],[type=time],[type=datetime-local])::-webkit-date-and-time-value { min-width: 0; text-align: left; }
.city-hud .form-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
.city-hud .location-pick-button, .city-hud .place-search-retry { min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--acid); font: 500 14px/1.4 Inter,sans-serif; cursor: pointer; }
.city-hud .location-pick-button { justify-self: start; margin-top: 8px; }
.city-hud .place-search-retry { margin: 0 12px 12px; }
.manual-location-picker { position: fixed; inset: 0; z-index: 900; pointer-events: none; }
.manual-location-target { position: absolute; top: 50%; left: 50%; width: 40px; height: 48px; transform: translate(-50%,-100%); }
.manual-location-target svg { width: 100%; height: 100%; fill: var(--acid); stroke: var(--ink); stroke-width: 1.5; }
.manual-location-panel { position: absolute; bottom: calc(24px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: min(400px,calc(100% - 32px)); padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--ink); color: var(--paper); pointer-events: auto; display: grid; gap: 10px; }
.manual-location-panel p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.manual-location-panel label { display: grid; gap: 6px; color: var(--paper); font-size: 14px; }
.manual-location-panel input { width: 100%; padding: 10px 12px; }
.manual-location-panel output { font: 400 14px/1.5 'Roboto Mono',monospace; color: var(--muted); }
.manual-location-actions { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2fr); gap: 12px; }
.manual-location-actions button { min-height: 48px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--paper); font: 600 15px/1.4 Inter,sans-serif; }
.manual-location-actions .hud-primary { background: var(--acid); color: var(--ink); border-color: var(--acid); }
.is-picking-location .app-shell > :not(#map):not(#manual-location-picker):not(.hud-map-attribution) { visibility: hidden; pointer-events: none; }
.city-hud.is-picking-location .hud-map-attribution { bottom: env(safe-area-inset-bottom); }
@media(max-width:700px) {
  .city-hud .form-row { grid-template-columns: minmax(0,1fr); }
  .city-hud dialog { overflow-x: hidden; }
  .city-hud dialog :is(form,section,.account-panel) { max-width: 100%; }
}
.city-hud :is(.create-button,.account-submit,.guest-access,.invite-share,.invite-download) { min-height: 48px; border-radius: 8px; font: 600 16px Inter; letter-spacing: 0; }
.city-hud .account-panel, .city-hud #host-form, .city-hud #shop-form, .city-hud #edit-profile-form { padding: 24px; }
.city-hud :is(form>label,.form-field>label,.profile-status) { font-size: 14px; color: var(--muted); letter-spacing: 0; }
.city-hud .account-panel p, .city-hud form>p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.city-hud .community-tabs { margin-bottom: 24px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.city-hud .community-tabs button { min-height: 44px; font-size: 12px; border: 0; border-radius: 7px; }
.city-hud .community-tabs button.active { color: var(--acid); background: var(--raised); }
.city-hud .member-list { max-height: none; }
.city-hud .member-list>button { min-height: 76px; border: 0; border-bottom: 1px solid var(--line); background: transparent; border-radius: 0; }
.city-hud .member-list strong { font: 600 17px Inter; }
.city-hud .member-list small { color: var(--muted); font-size: 12px; }
.city-hud .member-list img { border-radius: 50%; }
.city-hud .community-panel { top: 112px; bottom: 101px; max-height: none; border-radius: 20px 20px 0 0; }
.city-hud .public-profile-card { top: 112px; bottom: 101px; max-height: none; }
.city-hud .place-suggestions { background: var(--surface); border-color: var(--line); border-radius: 8px; box-shadow: 0 8px 24px #0005; }
.city-hud .place-suggestion strong { font: 600 16px Inter; }
.city-hud .destination-card, .city-hud .directions-panel { left: auto; right: 32px; bottom: 112px; top: auto; width: 390px; max-height: calc(100dvh - 220px); padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: none; overflow-y: auto; }
.city-hud .destination-card h2 { font: 400 28px/1.2 Anton; margin: 0 44px 12px 0; }
.city-hud .destination-card p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.city-hud .destination-actions button { min-height: 48px; border-radius: 8px; font: 600 14px Inter; }
.city-hud .leaflet-control-attribution { background: var(--ink) !important; color: var(--muted); font-size: 11px !important; }
.city-hud .leaflet-control-attribution a { color: var(--muted); }
.city-hud .hud-map-attribution { position: fixed; z-index: 900; left: 0; bottom: 0; margin: 0; padding: 2px 6px; pointer-events: auto; }
.city-hud .custom-marker { width: 44px !important; height: 44px !important; margin: -22px 0 0 -22px !important; border: 0; border-radius: 50%; background: url('assets/redesign/meet-pin.svg') center/44px 44px no-repeat; color: var(--ink); box-shadow: 0 2px 8px #0005; }
.city-hud .custom-marker span { transform: none; font: 400 20px Anton; }
.city-hud .custom-marker.selected-meet { box-shadow: 0 0 0 10px #f4cc3933; }
.city-hud .custom-marker.shop-marker { background: var(--raised); color: var(--paper); border: 2px solid var(--acid); }
.city-hud .custom-marker.shop-marker span { font: 600 10px Inter; }
.city-hud .toast { background: var(--raised); color: var(--paper); border: 1px solid var(--line); border-radius: 8px; font-size: 14px; max-width: calc(100vw - 32px); }
.city-hud [data-page="friends"]~.map-filters { display: none; }
.city-hud .app-shell[data-page="friends"] .map-filters, .city-hud .app-shell[data-page="garage"] .map-filters { display: none; }

@media(max-width:700px) {
  .city-hud .topbar { padding: calc(16px + env(safe-area-inset-top)) 24px 16px; min-height: 96px; gap: 8px; align-items: center; }
  .city-hud .brand { flex: 1; min-width: 0; }
  .city-hud .brand-mark { display: none; }
  .city-hud .brand>span:last-child { display: block; }
  .city-hud .brand small { font-size: 11px; }
  .city-hud .brand b { font-size: 22px; }
  .city-hud .host-button { min-width: 64px; padding: 0 10px; flex: none; height: 48px; display: block; }
  .city-hud .topbar .profile-button { display: flex; flex: none; width: 48px; }
  .city-hud .topbar .search-shell { position: fixed; top: calc(108px + env(safe-area-inset-top)); left: 24px; width: calc(100% - 104px); margin: 0; }
  .city-hud .search { height: 48px; background: var(--ink); }
  .city-hud .icon-button { position: fixed; top: calc(108px + env(safe-area-inset-top)); right: 24px; width: 48px; height: 48px; background: var(--ink); }
  .city-hud .side-panel { top: calc(168px + env(safe-area-inset-top)); left: 24px; right: auto; bottom: auto; padding: 3px; width: auto; }
  .city-hud .nav-item { min-height: 44px; padding: 8px 10px; gap: 6px; }
  .city-hud .nav-item b { font-size: 12px; }
  .city-hud .nav-icon { display: none; }
  .primary-navigation { right: 0; left: 0; bottom: 0; width: 100%; padding: 4px 24px calc(12px + env(safe-area-inset-bottom)); border-radius: 0; border: 0; background: var(--surface); }
  .primary-navigation button { min-height: 60px; }
  .discovery-sheet { right: 0; left: 0; bottom: calc(94px + env(safe-area-inset-bottom)); width: 100%; max-height: calc(100dvh - 278px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); border-left: 0; border-right: 0; padding: 0 24px 16px; }
  .city-hud .hud-map-attribution { bottom: calc(76px + env(safe-area-inset-bottom)); width: 100%; text-align: center; min-height: 18px; }
  #discovery-content { max-height: 32dvh; }
  .city-hud .meet-date-filter { position: static; width: 100%; transform: none; }
  .city-hud .meet-date-filter button { min-height: 48px; }
  .city-hud .location-card { left: 0; right: 0; bottom: calc(94px + env(safe-area-inset-bottom)); width: 100%; max-height: 60dvh; padding: 24px; border-radius: 24px 24px 0 0; }
  .city-hud .destination-card, .city-hud .directions-panel { left: 0; right: 0; bottom: calc(94px + env(safe-area-inset-bottom)); top: auto; width: 100%; max-height: 55dvh; border-radius: 24px 24px 0 0; }
  .city-hud .meet-details-open #meet-card { top: 0; bottom: calc(76px + env(safe-area-inset-bottom)); padding-top: calc(16px + env(safe-area-inset-top)); width: 100%; max-height: none; border-radius: 0; border: 0; z-index: 915; }
  .city-hud .meet-details-open #meet-card>:is(.meet-cover,.meet-numbers,.meet-actions,.invite-trigger,.card-links,.lock-note,.detail-context) { display: block; }
  .city-hud .meet-details-open #meet-card .meet-numbers { display: flex; }
  .city-hud .meet-details-open #meet-card .meet-actions { display: grid; }
  .city-hud .meet-details-open #meet-card .meet-cover[hidden], .city-hud .meet-details-open #meet-card .lock-note[hidden] { display: none; }
  .city-hud .meet-details-open #meet-card h1 { font-size: 28px; max-width: none; }
  .city-hud .meet-details-open #meet-card #meet-location { white-space: normal; max-width: none; font-size: 16px; }
  .garage-page, .city-hud .community-panel, .city-hud .public-profile-card { left: 0; right: 0; top: 0; bottom: calc(76px + env(safe-area-inset-bottom)); width: 100%; padding: calc(24px + env(safe-area-inset-top)) 24px 24px; max-height: none; border-radius: 0; border: 0; z-index: 910; }
  .city-hud .app-shell[data-page="garage"] .topbar, .city-hud .app-shell[data-page="friends"] .topbar { visibility: hidden; }
  .city-hud dialog[id], .city-hud #account-dialog, .city-hud #invite-dialog, .city-hud #friend-invite-dialog, .city-hud #tutorial-dialog { width: 100%; max-width: 100%; max-height: 100dvh; height: 100dvh; margin: 0; border: 0; border-radius: 0; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); overflow-y: auto; }
  .city-hud .dialog-head h2 { font-size: 28px; }
  .city-hud .form-row { gap: 12px; }
  .city-hud .toast { bottom: calc(88px + env(safe-area-inset-bottom)); left: 16px; right: 16px; width: auto; transform: none; }
}
@media(max-height:600px) and (max-width:700px) {
  .city-hud .topbar { min-height: 76px; padding-top: 12px; padding-bottom: 12px; }
  .city-hud .topbar .search-shell { top: 84px; width: calc(48% - 92px); }
  .city-hud .icon-button { top: 84px; left: calc(48% - 60px); right: auto; }
  .city-hud .side-panel { top: 140px; }
  .discovery-sheet { left: auto; width: 52%; height: calc(100dvh - 178px); max-height: calc(100dvh - 178px); padding-inline: 16px; display: flex; flex-direction: column; }
  .discovery-sheet .sheet-handle, .discovery-sheet .meet-date-filter { flex-shrink: 0; }
  .discovery-sheet .sheet-handle { position: absolute; top: 6px; right: 0; width: 44px; }
  .discovery-sheet .meet-date-filter { width: calc(100% - 36px); margin: 8px 0; }
  .discovery-sheet.is-minimized { height: auto; }
  #discovery-content { flex: 1; min-height: 0; max-height: none; }
  #discovery-content :is(.demo-label,.sheet-copy,.sheet-attendance,.hud-text-button) { display: none; }
  .discovery-sheet h2 { font-size: 22px; }
}
@media(prefers-reduced-motion:reduce) { .city-hud *, .city-hud *::before, .city-hud *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
