
  /* the map is the whole page: it fills the screen under the header, edge to edge */
  .map-page { padding: 0; }
  /* isolation: Leaflet's panes and controls (z-index up to 1000) stay inside the map and no longer cover the header's account menu */
  .map-canvas { position: relative; margin: 0; overflow: hidden; border-bottom: 1px solid var(--border); isolation: isolate; }
  /* University, Trip planner and Log in as one box, like the home header (hero.css) but dark ink on the white header; same cell sizes, radius and weight */
  header.site .hero-pill { display: inline-flex; align-items: stretch; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
  header.site .hero-pill a { border: 0; border-radius: var(--radius-md); background: transparent; color: var(--ink); font-weight: 500; }
  @media (min-width: 481px) { header.site .hero-pill a { padding: 7px 14px; font-size: 0.8rem; } }
  header.site .hero-pill a + a, header.site .hero-pill .hdr-chips + a { position: relative; }
  header.site .hero-pill a + a::before, header.site .hero-pill .hdr-chips + a::before { content: ""; position: absolute; inset-block: 9px; inset-inline-start: -1px; width: 1px; background: var(--border); }
  header.site .hero-pill a:hover { background: rgba(0, 0, 0, 0.05); color: var(--accent-text); }
  /* 320 px: the two cells and the logo need to fit with the gutter */
  @media (max-width: 360px) { header.site .hero-pill a { padding: 8px 6px; font-size: 0.74rem; } }
  /* phones: the chips leave the box (chrome.css) and sit on their own row, so each is a pill of its own */
  @media (max-width: 480px) { header.site .hero-pill .hdr-chips a { border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); } }
  header.site .hero-pill a:active { scale: 0.97; }
  header.site .hero-pill a:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: -2px; }
  /* The header search (ui/header.tsx HeaderSearch, owner 2026-11-10, option C of design-options/map-header-search/): a grid of three columns keeps the logo at
     the left and the links at the right exactly where the flex row had them, with the field centred between them. The suggestions are the shared .sg-list
     (components.css) that client/lib/combobox.ts adds to the form. */
  header.site .wrap { display: grid; grid-template-columns: 1fr auto 1fr; }
  header.site .logo { justify-self: start; }
  header.site .header-actions { justify-self: end; margin-left: 0; }
  header.site .hdr-search { --hs-fill: #faf8f3; width: clamp(220px, 28vw, 440px); justify-self: center; margin: 0; }
  .hs-field {
    display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; min-width: 0;
    background: var(--hs-fill); border: 1px solid transparent; border-radius: var(--radius-pill);
  }
  .hs-field:hover { border-color: var(--border); }
  .hs-field:focus-within, .hdr-search.sg-open .hs-field { background: var(--white); border-color: var(--accent); }
  /* the ring of the field stands in for the input's own (the input fills the field) */
  .hs-field:focus-within { outline: 2px solid var(--accent-dark); outline-offset: 2px; }
  .hs-field input {
    flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent;
    font: 0.9rem var(--font-sans); color: var(--ink); text-overflow: ellipsis;
  }
  .hs-field input::placeholder { color: var(--ink-soft); opacity: 1; }
  .hs-field input::-webkit-search-cancel-button { display: none; }
  .hs-ico { width: 18px; height: 18px; flex: none; color: var(--ink-soft); }
  .hs-key { flex: none; font: 600 0.72rem/1 var(--font-sans); color: var(--ink-soft); border: 1px solid var(--border); border-radius: 6px; padding: 3px 6px; background: var(--white); }
  @media (hover: none) { .hs-key { display: none; } }
  .hs-btn {
    display: none; width: 40px; height: 40px; padding: 0; place-items: center; justify-self: center; cursor: pointer;
    border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--ink);
    touch-action: manipulation; -webkit-tap-highlight-color: rgba(var(--navy-rgb), 0.08);
  }
  .hs-btn .hs-ico { color: currentColor; }
  .hs-btn:hover, .hs-btn[aria-expanded="true"] { border-color: var(--accent); color: var(--accent-text); }
  .hs-btn:active { scale: 0.95; }
  .hs-btn:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 2px; }
  /* below 860 px the field steps aside for the round button; the button opens it full width under the header (client/site.ts sets .hs-open) */
  @media (max-width: 859px) {
    header.site .wrap { position: relative; grid-template-columns: 1fr auto auto; }
    .hs-btn { display: grid; grid-column: 2; grid-row: 1; }
    header.site .header-actions { grid-column: 3; grid-row: 1; }
    header.site .hdr-search {
      display: none; position: absolute; z-index: var(--z-panel); left: 0; right: 0; top: 100%; width: auto;
      padding: 10px var(--gutter) 12px; background: var(--surface); border-bottom: 1px solid var(--border);
    }
    header.site .hdr-search.hs-open { display: block; }
    .hs-field { height: 46px; background: var(--white); border-color: var(--border); }
    .hs-key { display: none; }
    header.site .hdr-search .sg-list { position: static; margin-top: 8px; min-width: 0; padding: 0; border-color: transparent; box-shadow: none; }
  }
  /* phones: tighter gaps so the logo, the search button and the links fit on one line */
  @media (max-width: 480px) { header.site .wrap { gap: 8px; } header.site .header-actions { gap: 6px; } }
  #wildock-map { height: calc(100vh - 72px); height: calc(100dvh - 72px); min-height: 420px; width: 100%; background: var(--navy); }
  /* the chips row under the logo adds 46 px to the phone header */
  @media (max-width: 480px) { #wildock-map { height: calc(100vh - 118px); height: calc(100dvh - 118px); } }
