/* WO-MAP-2.1: clean Trip first, optional Google POIs, compact phone controls and a low-peek sheet. */
body[data-view="map"] .ux-rooster-fab{display:none}
.rm-stage{position:relative;width:100%;overflow:hidden;background:#dfe9ec;
  --rm-hotel:#0a6c73;--rm-search:#5a3d9e;--rm-saved:#0f3a52;--rm-crew:#24508f;--rm-device:#1a73e8;
  --rm-fishing:#1565c0;--rm-golf:#2e7d32;--rm-meal:#d35400;--rm-tour:#7b2fa0;--rm-travel:#4a5a63;--rm-other:#8a6a00}
/* WO-MAP-2 layout correction: the Map tab uses the whole browser window. ux.css keeps every other tab in a 480px
   phone column (max-width:480px; 28px margins from 600px); that column made the desktop map a narrow strip. */
body[data-view="map"] .ux-app-shell{max-width:none;margin:0;min-height:100dvh;border-radius:0;box-shadow:none}
body[data-view="map"] .ux-app-shell .bar.ux-header{border-radius:0}
body[data-view="map"] .ux-app-shell .tabs{width:100%;bottom:0;border-radius:0;
  padding-left:max(12px,calc(50% - 228px));padding-right:max(12px,calc(50% - 228px))}
body[data-view="map"] .ux-app-shell main{padding:0!important;margin:0;width:100%;max-width:none;
  height:calc(100dvh - 72px - 75px - env(safe-area-inset-bottom,0px));min-height:360px;overflow:hidden}
body[data-view="map"].ux-nav-hidden .ux-app-shell main{height:calc(100dvh - 72px)}
/* Layout follows the map's own container (container query), not the browser viewport. */
body[data-view="map"] .rm-stage{height:100%;container:rm-stage/size}
/* The map never sits under the sheet: it ends where the sheet begins, so the selected pin and Google's logo and
   attribution stay visible, and the map re-frames itself when the sheet opens or closes. */
.rm-stage>#map{position:absolute;top:0;left:0;right:0;bottom:var(--rm-sheet-h,66px);z-index:0;isolation:isolate;width:auto;height:auto!important;
  min-height:0!important;margin:0;border:0;border-radius:0;box-shadow:none;transition:bottom .22s ease,left .22s ease}
.rm-loading,.rm-map-error{margin:90px 20px 0;padding:14px;border-radius:14px;background:var(--card);color:var(--ink)}

/* Floating search and modes */
.rm-top{position:absolute;z-index:30;top:8px;left:8px;right:8px;display:flex;align-items:center;gap:5px;pointer-events:none}
.rm-top>*{pointer-events:auto}
.rm-find{display:none;flex:1;align-items:center;gap:5px;min-height:44px;padding:3px 5px 3px 10px;border-radius:22px;
  background:var(--card);border:1px solid var(--line);box-shadow:0 3px 16px #0f2a3a30}
.rm-find:focus-within{outline:3px solid var(--focus);outline-offset:1px}
.rm-find-icon{font-size:22px;line-height:1;color:var(--muted)}
.rm-stage .rm-find input{appearance:none;-webkit-appearance:none;flex:1;min-width:0;min-height:38px;padding:4px;border:0;background:transparent;color:var(--ink);font-size:16px;outline:none;box-shadow:none;border-radius:0}
.rm-find button{flex:none;min-height:38px;padding:5px 10px;border-radius:20px}
.rm-search-toggle{flex:none;display:grid;place-items:center;width:42px;height:42px;border-radius:50%;border:1px solid var(--line);background:var(--card);
  color:var(--ink);font-size:27px;line-height:1;box-shadow:0 3px 12px #0f2a3a30}
.rm-search-close{background:transparent;border:0;color:var(--ink);font-size:22px;min-width:38px}
.rm-top.search-open .rm-find{display:flex}
.rm-top.search-open .rm-search-toggle,.rm-top.search-open .rm-top-row{display:none}
.rm-top-row{flex:1;min-width:0;display:flex;align-items:center;gap:5px;overflow-x:auto;scrollbar-width:none;padding:4px 4px 10px;margin:-4px -4px -10px}
.rm-top-row::-webkit-scrollbar{display:none}
.rm-modes{flex:none;display:flex;padding:3px;border-radius:999px;background:var(--card);border:1px solid var(--line);box-shadow:0 2px 9px #0f2a3a26}
.rm-mode{min-height:38px;min-width:56px;padding:4px 9px;border:0;border-radius:999px;background:transparent;color:var(--ink);font-weight:700;font-size:13px}
.rm-mode.on{background:var(--brand);color:#fff}
.rm-search-toggle:focus-visible,.rm-search-close:focus-visible,.rm-google-toggle:focus-visible,.rm-mode:focus-visible,.rm-chip:focus-visible,.rm-fab:focus-visible,.rm-row:focus-visible,.rm-handle:focus-visible,.rm-close:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.rm-quick{display:flex;gap:6px}
.rm-chip{flex:none;min-height:38px;padding:5px 10px;border-radius:999px;border:1px solid var(--line);background:var(--card);color:var(--ink);
  font-size:13px;font-weight:600;box-shadow:0 2px 9px #0f2a3a22;white-space:nowrap}

.rm-google-layer{margin:10px 0 14px}
.rm-google-toggle{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:48px;
  padding:10px 12px;border:1px solid var(--line);border-radius:13px;background:var(--bg);color:var(--ink);text-align:left;font-size:15px;font-weight:600;line-height:1.3;font-family:inherit}
.rm-google-toggle[disabled]{opacity:.6;cursor:not-allowed}
.rm-google-toggle-state{flex:none;min-width:45px;padding:5px 10px;border-radius:99px;background:var(--chip);color:var(--ink);text-align:center;font-size:13px;font-weight:700}
.rm-google-toggle[aria-checked="true"] .rm-google-toggle-state{background:var(--brand);color:#fff}
.rm-google-layer p{margin:7px 2px 0}
/* Right-side button sits above the sheet and never over the bottom navigation */
.rm-fabs{position:absolute;z-index:30;right:12px;bottom:calc(var(--rm-sheet-h,66px) + 36px);display:grid;gap:8px;transition:bottom .2s ease}
.rm-fab{width:46px;height:46px;border-radius:50%;border:1px solid var(--line);background:var(--card);color:var(--ink);font-size:22px;box-shadow:0 3px 12px #0f2a3a33}

/* Bottom sheet: peek, half, full */
.rm-sheet{position:absolute;z-index:40;left:0;right:0;bottom:0;display:flex;flex-direction:column;
  height:var(--rm-sheet-h);background:var(--card);color:var(--ink);border-radius:20px 20px 0 0;
  box-shadow:0 -4px 24px #0f2a3a38;border-top:1px solid var(--line);transition:height .22s ease}
.rm-stage:has(.rm-sheet[data-state="peek"]){--rm-sheet-h:66px}
.rm-stage:has(.rm-sheet[data-state="half"]){--rm-sheet-h:46%}
.rm-stage:has(.rm-sheet[data-state="full"]){--rm-sheet-h:calc(100% - 70px)}
.rm-sheet[data-state="peek"]{height:66px}.rm-sheet[data-state="half"]{height:46%}.rm-sheet[data-state="full"]{height:calc(100% - 70px)}
.rm-stage:has(.rm-sheet[data-state="full"]) .rm-fabs{display:none}
.rm-handle{flex:none;display:grid;justify-items:center;gap:4px;width:100%;min-height:44px;padding:7px 14px 5px;border:0;background:transparent;
  color:var(--muted);cursor:grab;touch-action:none;border-radius:20px 20px 0 0}
.rm-grip{width:42px;height:5px;border-radius:3px;background:var(--line)}
.rm-handle-action{display:none}
.rm-sheet[data-state="peek"] .rm-handle{min-height:66px}
.rm-sheet[data-state="peek"] .rm-sheet-body{display:none}
.rm-sheet-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 16px 18px;-webkit-overflow-scrolling:touch}
.rm-h{margin:14px 0 6px;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.rm-list{list-style:none;margin:0;padding:0}
.rm-row{display:flex;align-items:center;gap:11px;width:100%;min-height:52px;padding:7px 4px;border:0;border-bottom:1px solid var(--line);
  background:transparent;color:var(--ink);text-align:left;font:inherit;cursor:pointer}
.rm-row[disabled]{cursor:default;opacity:.8}
.rm-row-static{cursor:default}
.rm-row-text{display:grid;gap:1px;min-width:0;flex:1}
.rm-row-text b{font-size:15px;overflow-wrap:anywhere}
.rm-row-text .small{overflow:hidden;text-overflow:ellipsis}
.rm-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin:2px 0 6px}
.rm-detail-head h2{margin:0;font-size:19px;line-height:1.25}
.rm-detail-head p{margin:3px 0 0}
.rm-close{flex:none;width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:var(--bg);color:var(--ink);font-size:22px;line-height:1}
.rm-actions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.rm-actions button,.rm-btn{min-height:40px;padding:8px 13px;border-radius:11px;font-size:13px}
.rm-btn{display:inline-flex;align-items:center;border:1px solid var(--line);background:var(--bg);color:var(--ink);text-decoration:none;font-weight:600}
.rm-route{margin:8px 0;padding:10px 12px;border-radius:13px;background:var(--bg);border:1px solid var(--line)}
.rm-route .rm-actions{margin:0 0 6px}
.rm-notice{margin:10px 0;padding:10px 12px;border-radius:12px;border:1px solid color-mix(in srgb,#d98b00 60%,var(--line));background:color-mix(in srgb,#ffb300 12%,var(--card))}
.rm-notice p{margin:4px 0 0}
.rm-notice button{margin-top:7px}
.rm-filter{width:100%;min-height:40px;margin:0 0 6px}
.rm-foot{margin-top:16px}.rm-foot p{margin:4px 0}
.rm-attrib{margin:4px 0}
/* The mobile map overlay uses a white pill and hides its description.
   Inside the sheet, restore theme-aware colors and the full consent copy. */
.ux-map-stage .rm-sheet .ux-map-share{margin:10px 0 0;padding:12px 14px;gap:12px;
  background:var(--card-raised);color:var(--ink);border:1px solid var(--line);
  border-radius:14px;box-shadow:none}
.ux-map-stage .rm-sheet .ux-map-share-copy>b{display:block;color:var(--ink);font-size:15px;white-space:normal}
.ux-map-stage .rm-sheet .ux-map-share-copy p{display:block;color:var(--muted);font-size:12px;line-height:1.45}
.ux-map-stage .rm-sheet .ux-map-switch{width:58px;height:34px;min-height:34px}
.ux-map-stage .rm-sheet .ux-map-switch-thumb{width:30px;height:30px}
.ux-map-stage .rm-sheet .ux-map-switch.on .ux-map-switch-thumb{transform:translateX(24px)}
.rm-sheet .filters{flex-wrap:wrap;margin:0;padding:0}

/* List badges mirror the pins */
.rm-badge{flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;color:#fff;font:800 12px/1 system-ui,sans-serif;border:2px solid #fff;box-shadow:0 1px 4px #0003}
.rm-badge-hotel{background:var(--rm-hotel);border-radius:9px}
.rm-badge-off{background:#8b9aa0}
.rm-badge-saved{background:#fff;border:3px solid var(--rm-saved)}
.rm-badge-search{background:var(--rm-search);border-style:dashed}
.rm-badge-crew{background:var(--rm-crew)}
.rm-badge-activity.rm-cat-fishing{background:var(--rm-fishing)}.rm-badge-activity.rm-cat-golf{background:var(--rm-golf)}
.rm-badge-activity.rm-cat-meal{background:var(--rm-meal)}.rm-badge-activity.rm-cat-tour{background:var(--rm-tour)}
.rm-badge-activity.rm-cat-travel{background:var(--rm-travel)}.rm-badge-activity.rm-cat-other{background:var(--rm-other)}
.rm-badge-crew.rm-current{box-shadow:0 0 0 3px #1fa463}.rm-badge-crew.rm-recent{box-shadow:0 0 0 3px #e3a008}
.rm-badge-crew.rm-stale,.rm-badge-crew.rm-unavailable{box-shadow:0 0 0 3px #8b9aa0;opacity:.85}
.rm-badge-crew.rm-not-sharing,.rm-badge-crew.rm-expired,.rm-badge-crew.rm-stopped{background:#8b9aa0}

/* Map pins (Google Advanced Markers and the OpenStreetMap fallback use the same element) */
.rm-pin{position:relative;display:flex;flex-direction:column;align-items:center;cursor:pointer;transform-origin:50% 100%;
  font:800 12px/1 system-ui,-apple-system,sans-serif;color:#fff;transition:transform .12s ease;--c:#555}
.rm-pin-head{display:flex;align-items:center;gap:4px;min-width:28px;height:28px;justify-content:center;padding:0 7px;border-radius:999px;
  background:var(--c);border:2px solid #fff;box-shadow:0 2px 7px #0b1f2b66}
.rm-pin-tail{width:0;height:0;margin-top:-2px;border-left:7px solid transparent;border-right:7px solid transparent;border-top:9px solid var(--c);
  filter:drop-shadow(0 2px 1px #0b1f2b40)}
.rm-ico{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.rm-pin.rm-selected{transform:scale(1.18);z-index:5}
.rm-pin.rm-selected .rm-pin-head{outline:3px solid #ffd54a;outline-offset:1px}
/* Hotel stays distinct but no longer dominates the mobile map. */
.rm-hotel{--c:var(--rm-hotel)}
.rm-hotel .rm-pin-head{height:30px;padding:0 8px;gap:4px;border-width:2px;font-size:11px;letter-spacing:.035em;
  box-shadow:0 0 0 2px #fff,0 0 0 4px var(--rm-hotel),0 3px 10px #0b1f2b70}
.rm-hotel .rm-ico{width:16px;height:16px}
.rm-hotel .rm-pin-tail{border-left-width:7px;border-right-width:7px;border-top-width:9px;margin-top:1px}
.rm-hotel.rm-unconfirmed .rm-pin-head{background:#5f7c81}
/* Itinerary stops: numbered, category colour and icon */
.rm-activity{--c:var(--rm-other)}
.rm-activity.rm-cat-fishing{--c:var(--rm-fishing)}.rm-activity.rm-cat-golf{--c:var(--rm-golf)}.rm-activity.rm-cat-meal{--c:var(--rm-meal)}
.rm-activity.rm-cat-tour{--c:var(--rm-tour)}.rm-activity.rm-cat-travel{--c:var(--rm-travel)}
.rm-activity .rm-pin-head{height:32px;padding:0 8px 0 6px;font-size:14px}
/* Saved places: white body, dark ring and bookmark (unlike Google's filled POI icons) */
.rm-saved{--c:var(--rm-saved);color:var(--rm-saved)}
.rm-saved .rm-pin-head{background:#fff;border:3px solid var(--rm-saved);min-width:28px;padding:0 5px}
/* Search results: temporary, dashed, numbered in result order */
.rm-pin.rm-search{--c:var(--rm-search)}
.rm-pin.rm-search .rm-pin-head{border-style:dashed;border-color:#fff;opacity:.95}
/* Crew: round initials, ring shows freshness; separate from place pins and from this device's dot */
.rm-crew{--c:var(--rm-crew);transform:translateY(50%)}
.rm-crew .rm-pin-head{width:36px;height:36px;padding:0;border-width:3px;font-size:13px}
.rm-crew.rm-current .rm-pin-head{box-shadow:0 0 0 3px #1fa463,0 2px 8px #0b1f2b66}
.rm-crew.rm-recent .rm-pin-head{box-shadow:0 0 0 3px #e3a008,0 2px 8px #0b1f2b66}
.rm-crew.rm-stale .rm-pin-head{box-shadow:0 0 0 3px #8b9aa0,0 2px 8px #0b1f2b66;opacity:.8}
.rm-crew.rm-me .rm-pin-head{background:#0f3a52}
.rm-crew.rm-approx .rm-pin-head{border-style:dotted}
.rm-crew.rm-selected{transform:translateY(50%) scale(1.18)}
/* This device only (never shared): the familiar blue dot */
.rm-device{transform:translateY(50%)}
.rm-device .rm-pin-head{width:18px;height:18px;min-width:18px;padding:0;background:var(--rm-device);border:3px solid #fff;box-shadow:0 0 0 6px #1a73e833,0 1px 4px #0006}
/* Community listings give way to everything */
.rm-nearby{transform:translateY(50%)}
.rm-nearby .rm-pin-head{width:13px;height:13px;min-width:13px;padding:0;background:#6f8580;border-width:2px}
/* OpenStreetMap fallback: anchor tailed pins at their tip and round pins at their centre */
.leaflet-marker-icon.rm-leaflet{background:none;border:0;width:auto!important;height:auto!important}
.rm-leaflet>.rm-pin{position:absolute;left:0;top:0;transform:translate(-50%,-100%)}
.rm-leaflet>.rm-pin.rm-crew,.rm-leaflet>.rm-pin.rm-device,.rm-leaflet>.rm-pin.rm-nearby{transform:translate(-50%,-50%)}

/* Legend */
.rm-legend{display:grid;gap:6px;margin:12px 0}
.rm-legend-item{display:flex;align-items:center;gap:9px;font-size:13px}
.rm-legend-dot{width:20px;height:20px;border-radius:50%;border:2px solid #fff;box-shadow:0 1px 3px #0005}
.rm-legend-hotel{background:var(--rm-hotel);border-radius:6px}.rm-legend-activity{background:var(--rm-fishing)}
.rm-legend-saved{background:#fff;border:3px solid var(--rm-saved)}.rm-legend-search{background:var(--rm-search);border-style:dashed}
.rm-legend-crew{background:var(--rm-crew)}.rm-legend-device{background:var(--rm-device);width:14px;height:14px}

/* Wide map container (desktop, tablet landscape): a collapsible side panel BESIDE the map, at most ~30% of the
   width (280-380px). The map fills the rest and re-frames when the panel opens or closes; collapsed, the panel is a
   small "Show list" button and the map takes the full width. */
@container rm-stage (min-width:720px){
  .rm-stage>*{--rm-panel-w:clamp(280px,30cqw,380px)}
  .rm-stage>#map{bottom:0;left:calc(var(--rm-panel-w) + 24px)}
  .rm-sheet,.rm-sheet[data-state]{top:12px;left:12px;bottom:12px;right:auto;width:var(--rm-panel-w);height:auto;border-radius:18px;
    border:1px solid var(--line);box-shadow:0 4px 22px #0f2a3a30}
  .rm-handle{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:10px;min-height:48px;padding:6px 8px 6px 16px;
    cursor:pointer;touch-action:auto;border-bottom:1px solid var(--line);border-radius:18px 18px 0 0;text-align:left;color:var(--ink)}
  .rm-handle .rm-grip{display:none}
  .rm-handle-action{display:inline-flex;align-items:center;min-height:34px;padding:4px 12px;border-radius:999px;background:var(--chip);color:var(--brand);font-weight:700;font-size:13px;white-space:nowrap}
  .rm-top{left:calc(var(--rm-panel-w) + 36px);right:12px;max-width:760px;display:grid;gap:7px}
  .rm-search-toggle,.rm-search-close{display:none}
  .rm-find,.rm-top.search-open .rm-find{display:flex}
  .rm-top.search-open .rm-top-row{display:flex}
  .rm-top-row{flex:none}
  .rm-fabs{bottom:40px}
  .rm-stage:has(.rm-sheet[data-state="full"]) .rm-fabs{display:grid}
  /* Collapsed: the map takes the full width; the panel is a small button above Google's logo. */
  .rm-stage:has(.rm-sheet[data-state="peek"])>#map{left:0}
  .rm-stage:has(.rm-sheet[data-state="peek"]) .rm-top{left:12px}
  .rm-sheet[data-state="peek"]{top:auto;bottom:40px;width:auto;max-width:min(420px,calc(100% - 24px));height:auto;border-radius:999px}
  .rm-sheet[data-state="peek"] .rm-handle{border-bottom:0;border-radius:999px}
  .rm-sheet[data-state="peek"] .rm-sheet-body{display:none}
}
html[data-theme="dark"] .rm-stage{background:#0d1f29}
html[data-theme="dark"] .rm-sheet,html[data-theme="dark"] .rm-find,html[data-theme="dark"] .rm-chip,html[data-theme="dark"] .rm-modes,
html[data-theme="dark"] .rm-fab{box-shadow:0 3px 18px #000a}
@media(prefers-reduced-motion:reduce){.rm-sheet,.rm-fabs,.rm-pin{transition:none}}
/* In-app notices sit just below the floating map controls, never over search or the mode switch */
body[data-view="map"] .reminder-banner:not([hidden]){top:calc(72px + 122px);display:flex;align-items:center;gap:8px;padding:6px 6px 6px 12px;border-radius:16px;max-height:64px}
body[data-view="map"] .reminder-banner>.small{flex:1;min-width:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;line-height:1.3}
body[data-view="map"] .reminder-banner>.action-row{flex:none;margin:0}
body[data-view="map"] .reminder-banner button{min-height:36px;padding:4px 10px;white-space:nowrap}
@media(min-width:720px){body[data-view="map"] .reminder-banner:not([hidden]){left:auto;right:16px;transform:none;width:min(440px,calc(100vw - 32px))}}


/* Map immersive mode (WO-MAP-3): no persistent chrome, map controls only through a drawer. */
body[data-view="map"]{overflow:hidden}
body[data-view="map"] .ux-app-shell{height:100dvh;min-height:0;overflow:hidden}
body[data-view="map"] .ux-app-shell .bar.ux-header,
body[data-view="map"] .ux-app-shell #tabs{display:none!important}
body[data-view="map"] .ux-app-shell main,
body[data-view="map"].ux-nav-hidden .ux-app-shell main{
  height:100dvh!important;min-height:0!important;padding:0!important;margin:0!important;overflow:hidden
}
body[data-view="map"] .rm-stage{height:100%;--rm-sheet-h:0px}
body[data-view="map"] .rm-stage:has(.rm-sheet[data-state="peek"]){--rm-sheet-h:0px}
body[data-view="map"] .rm-stage>#map{bottom:var(--rm-sheet-h,0px)}
body[data-view="map"] .rm-sheet[data-state="peek"]{display:none!important}
body[data-view="map"] .rm-stage:has(.rm-sheet[data-state="peek"]) .rm-fabs{display:none}
body[data-view="map"] .rm-top{
  top:calc(10px + env(safe-area-inset-top,0px));left:12px;right:12px;
  max-width:440px;display:flex;align-items:center;gap:8px;pointer-events:none
}
body[data-view="map"] .rm-top>*{pointer-events:auto}
body[data-view="map"] .rm-menu-button{
  flex:none;width:44px;height:44px;display:grid;place-items:center;
  padding:0;border-radius:14px;border:1px solid var(--line);background:var(--card);
  color:var(--ink);font-size:22px;box-shadow:0 3px 16px #0f2a3a35
}
body[data-view="map"] .rm-find{
  display:flex!important;flex:1;min-width:0;min-height:44px;padding:3px 4px 3px 12px;
  border-radius:14px;gap:3px;background:var(--card)
}
body[data-view="map"] .rm-find input{min-height:38px;font-size:16px}
body[data-view="map"] .rm-find button{
  min-width:40px;min-height:38px;padding:0 5px;border:0;border-radius:10px;
  color:var(--brand);background:transparent;font-size:25px;line-height:1
}
body[data-view="map"] .rm-menu-button:focus-visible,
body[data-view="map"] .rm-drawer button:focus-visible,
body[data-view="map"] .rm-find button:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
body[data-view="map"] .rm-menu-overlay[hidden]{display:none!important}
body[data-view="map"] .rm-menu-overlay{
  position:absolute;z-index:90;inset:0;display:flex;align-items:stretch
}
body[data-view="map"] .rm-menu-scrim{
  position:absolute;inset:0;border:0;padding:0;border-radius:0;background:#061a29a8
}
body[data-view="map"] .rm-drawer{
  position:relative;z-index:1;width:min(340px,88vw);height:100%;overflow-y:auto;
  overscroll-behavior:contain;padding:calc(14px + env(safe-area-inset-top,0px)) 16px calc(24px + env(safe-area-inset-bottom,0px));
  border-right:1px solid var(--line);background:var(--card);color:var(--ink);
  box-shadow:8px 0 26px #061a2945
}
body[data-view="map"] .rm-drawer-head{
  display:flex;justify-content:space-between;align-items:flex-start;gap:12px;
  padding:2px 0 14px;border-bottom:1px solid var(--line)
}
body[data-view="map"] .rm-drawer-head b{font-size:21px}
body[data-view="map"] .rm-drawer-head p{margin:3px 0 0}
body[data-view="map"] .rm-drawer-close{
  flex:none;min-width:40px;height:40px;padding:0;border:1px solid var(--line);
  border-radius:12px;color:var(--ink);background:var(--bg);font-size:26px
}
body[data-view="map"] .rm-drawer-group{padding:13px 0;border-bottom:1px solid var(--line)}
body[data-view="map"] .rm-drawer-group h3{
  margin:0 0 7px;padding:0 9px;font-size:11px;font-weight:800;
  letter-spacing:.09em;text-transform:uppercase;color:var(--muted)
}
body[data-view="map"] .rm-drawer-item{
  display:block;width:100%;min-height:44px;padding:10px 12px;
  border:0;border-radius:10px;background:transparent;color:var(--ink);
  text-align:left;font-family:inherit;font-size:15px;font-weight:600
}
body[data-view="map"] .rm-drawer-item.current{background:var(--chip);color:var(--brand)}
body[data-view="map"] .rm-drawer-item:hover{background:var(--chip)}
/* The map has no tray until there is a result, selected pin or deliberately opened list. */
body[data-view="map"] .rm-sheet{bottom:0}
body[data-view="map"] .reminder-banner:not([hidden]){
  top:calc(60px + env(safe-area-inset-top,0px));max-width:calc(100vw - 24px)
}
@container rm-stage (min-width:720px){
  body[data-view="map"] .rm-top{left:12px;right:12px}
  body[data-view="map"] .rm-stage:has(.rm-sheet:not([data-state="peek"])) .rm-top{
    left:calc(var(--rm-panel-w,360px) + 36px)
  }
  body[data-view="map"] .rm-stage:has(.rm-sheet[data-state="peek"])>#map{left:0}
  body[data-view="map"] .rm-sheet[data-state="half"],
  body[data-view="map"] .rm-sheet[data-state="full"]{top:12px;bottom:12px}
}
@media(max-width:480px){
  body[data-view="map"] .rm-top{left:10px;right:10px;gap:7px}
  body[data-view="map"] .rm-menu-button{width:42px;height:42px}
}


/* WO-MAP-3 follow-up: preview cards and deliberate navigation only. */
body[data-view="map"] .rm-stage:has(.rm-sheet[data-state="card"]){--rm-sheet-h:152px}
body[data-view="map"] .rm-sheet[data-state="card"]{
  height:152px;min-height:152px;max-height:152px;transition:none
}
body[data-view="map"] .rm-sheet[data-state="card"] .rm-handle{display:none}
body[data-view="map"] .rm-sheet[data-state="card"] .rm-sheet-body{
  overflow:hidden;padding:14px 16px calc(12px + env(safe-area-inset-bottom,0px))
}
body[data-view="map"] .rm-place-card{display:flex;align-items:flex-start;gap:10px;height:100%}
body[data-view="map"] .rm-card-main{
  flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;
  justify-content:center;gap:4px;height:100%;padding:0;border:0;background:transparent;
  color:var(--ink);text-align:left;box-shadow:none;touch-action:manipulation
}
body[data-view="map"] .rm-card-title{
  max-width:100%;font-size:17px;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap
}
body[data-view="map"] .rm-card-sub{
  max-width:100%;font-size:12px;line-height:1.3;color:var(--muted);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden
}
body[data-view="map"] .rm-card-hint{font-size:12px;line-height:1.3;font-weight:800;color:var(--brand)}
body[data-view="map"] .rm-card-close{
  flex:none;width:36px;height:36px;padding:0;border:1px solid var(--line);
  border-radius:50%;background:var(--bg);color:var(--ink);font-size:23px;line-height:1;
  touch-action:manipulation
}
body[data-view="map"] .rm-card-main:focus-visible,
body[data-view="map"] .rm-card-close:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
body[data-view="map"] .rm-drawer-mode{
  display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:0 8px
}
body[data-view="map"] .rm-drawer-mode-button{
  min-height:42px;padding:8px 10px;border:1px solid var(--line);
  border-radius:11px;background:var(--bg);color:var(--ink);font-family:inherit;font-size:14px;font-weight:700;line-height:1.2
}
body[data-view="map"] .rm-drawer-mode-button[aria-pressed="true"]{
  background:var(--chip);border-color:var(--brand);color:var(--brand)
}
@container rm-stage (min-width:720px){
  body[data-view="map"] .rm-stage:has(.rm-sheet[data-state="card"]){--rm-sheet-h:0px}
  body[data-view="map"] .rm-stage:has(.rm-sheet[data-state="card"])>#map{left:0;bottom:0}
  body[data-view="map"] .rm-sheet[data-state="card"]{
    top:auto;left:12px;bottom:22px;right:auto;
    width:min(360px,calc(100% - 24px));height:148px;min-height:148px;max-height:148px;
    border:1px solid var(--line);border-radius:18px
  }
}

/* Numbered Roostr research prospects: visually distinct from confirmed trip/saved pins. */
.rm-pin.rm-fishing{--c:#007983}
.rm-pin.rm-fishing .rm-pin-head{border-style:dashed;border-color:#d9fff5;box-shadow:0 0 0 2px #004958,0 2px 9px #0b1f2b66}
/* Crew: one color per person (the same on every phone), side by side when standing together. */
.rm-map,.map,body{--crew-0:#e4572e;--crew-1:#2e86ab;--crew-2:#7a5195;--crew-3:#d99a1e;--crew-4:#2f9e5b;--crew-5:#c2185b;--crew-6:#00838f;--crew-7:#6d4c41;--crew-8:#5c6bc0;--crew-9:#8cb336}
.rm-crew .rm-pin-head{background:var(--crew,var(--rm-crew));color:#fff}
.rm-crew.rm-me .rm-pin-head{background:var(--crew,#0f3a52)}
.rm-pin.rm-crew{margin-left:calc(var(--stack,0) * 30px)}
.rm-badge-crew{background:var(--crew,var(--rm-crew));color:#fff}
/* The strip takes touches only where the names are (it is only as wide as they are), so it swipes sideways when
   there are more names than fit, and the map still drags everywhere else. */
.rm-crew-key{position:absolute;left:10px;bottom:calc(96px + env(safe-area-inset-bottom));z-index:6;display:flex;gap:6px;width:max-content;max-width:calc(100% - 20px);
  overflow-x:auto;overscroll-behavior-x:contain;touch-action:pan-x;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:4px 0}
.rm-crew-key::-webkit-scrollbar{display:none}
.rm-key-item{pointer-events:auto;flex:none;display:inline-flex;align-items:center;gap:6px;padding:6px 10px 6px 8px;border:0;border-radius:999px;background:#fffffff0;color:#102d3e;
  font:600 13px/1 "DM Sans",system-ui,sans-serif;box-shadow:0 4px 14px -6px #0b1f2b88}
.rm-key-item i{width:12px;height:12px;border-radius:50%;background:var(--crew);box-shadow:0 0 0 2px #fff}
.rm-key-item.off{opacity:.55}
.rm-key-item.off i{background:#b8c4c9}
/* Your name remains an active control even when you have not shared your location. */
.rm-key-item.mine.off{opacity:1;box-shadow:0 3px 12px #071e3280,inset 0 0 0 1px #68c2b7}
/* Prevent iOS Safari from selecting the nested "You" label or showing Copy/Paste
   during the 500ms hold. Keep horizontal swipe on the chip strip functional. */
.rm-key-item.mine,.rm-key-item.mine *{touch-action:pan-x;-webkit-touch-callout:none!important;-webkit-user-select:none!important;user-select:none!important}
.rm-key-item.mine span{pointer-events:none}
.rm-key-item.mine:focus-visible{outline:3px solid #68c2b7;outline-offset:2px}
/* A rough one-off reading: a wide pale halo, so it doesn't look like a precise "you are here". */
.rm-device.rm-approx .rm-pin-head{opacity:.75;box-shadow:0 0 0 28px #1a73e81f,0 1px 4px #0006}
