/* wonders.css â€” prefix: wm- (Wonder Map) */

/* â”€â”€ Shell dimensions â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* Single source of truth for the chrome heights the map must subtract, so this
   page doesn't hardcode NavBar / bottom-nav magic numbers in every calc(). */
:root {
    --wm-nav-height: 6rem;          /* top NavBar */
    /* Prefer shared chrome; fall back to 0 when unset (desktop) */
    --wm-bottom-nav-height: var(--bottom-nav-height, 0px);
}

/* â”€â”€ Page shell â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.wm-page {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - var(--wm-nav-height) - var(--wm-bottom-nav-height));
    overflow: hidden;
    background: var(--antologa-surface-cool);
}

/* When traveler bottom nav is present, reserve real chrome height even if
   --bottom-nav-height cascade glitches (matches HCW resilient floors). */
@media (max-width: 1280px) {
    body:has(.nb-bottom-nav) .wm-page {
        --wm-bottom-nav-height: max(5rem, var(--bottom-nav-height, 5rem));
    }
}

@media (max-width: 600px) {
    body:has(.nb-bottom-nav) .wm-page {
        --wm-bottom-nav-height: max(4.5rem, var(--bottom-nav-height, 4.5rem));
    }
}

/* â”€â”€ Top bar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.wm-header {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: var(--antologa-pure-white);
    border-bottom: 1px solid var(--antologa-border);
    z-index: 10;
}

.wm-header__title {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--antologa-secondary);
    margin: 0;
    padding: 0.65rem 1.25rem 0.35rem;
    white-space: nowrap;
    line-height: 1.2;
    text-align: center;
    width: 100%;
}

.wm-topbar {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding: 0 1.25rem 0.55rem;
    background: transparent;
    border-bottom: none;
    z-index: auto;
}

.wm-header .wm-legend {
    border-top: 1px solid var(--antologa-border);
}

.wm-topbar__filter-groups {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
}

.wm-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.75rem 1.5rem;
    min-width: 0;
}

.wm-filter-row--primary {
    align-items: center;
}

.wm-filter-group {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    min-width: 0;
}

.wm-filter-group--scroll {
    align-items: center;
}

.wm-filter-group__chips {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.wm-filter-group__chips--scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 0.15rem;
}

.wm-filter-group__chips--scroll::-webkit-scrollbar {
    height: 0.25rem;
}

.wm-filter-group__chips--scroll::-webkit-scrollbar-thumb {
    background: var(--antologa-light-gray);
    border-radius: 999rem;
}

.wm-topbar__filters {
    flex: 1;
    min-width: 0;
    width: 100%;
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 1px;
}

.wm-topbar__filters::-webkit-scrollbar {
    display: none;
}

.wm-filter-label {
    font-size: 0.6875rem;
    font-weight: 800;
    color: var(--antologa-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: center;
    min-width: 5.5rem;
    padding-top: 0.15rem;
}

.wm-topbar__search {
    display: none;
}

.wm-filter-chip {
    appearance: none;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    min-height: 2rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999rem;
    border: 1.5px solid var(--antologa-border);
    background: var(--antologa-pure-white);
    color: var(--antologa-slate-700);
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: none;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    line-height: 1.2;
}

.wm-filter-chip__icon {
    font-size: 1.1rem !important;
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
}

.wm-filter-chip__dot {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wm-filter-chip__label {
    font-size: inherit;
    font-weight: inherit;
}

.wm-filter-chip .mud-button-label {
    font-size: inherit;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.wm-filter-chip:hover {
    border-color: var(--antologa-primary);
    color: var(--antologa-primary);
}

.wm-filter-chip--on {
    background: var(--antologa-primary);
    border-color: var(--antologa-primary);
    color: var(--antologa-pure-white);
}

.wm-filter-chip--on .wm-filter-chip__icon {
    color: var(--antologa-pure-white) !important;
}

/* Mobile bar still uses MudButton — keep pill styling in sync */
.mud-button-root.wm-filter-chip {
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    min-height: 2rem !important;
    padding: 0.35rem 0.65rem !important;
    border-radius: 999rem !important;
    border: 1.5px solid var(--antologa-border) !important;
    background: var(--antologa-pure-white) !important;
    color: var(--antologa-slate-700) !important;
    text-transform: none !important;
    box-shadow: none !important;
}

.mud-button-root.wm-filter-chip .mud-icon-root {
    font-size: 0.95rem !important;
    margin-right: 0.15rem;
}

.mud-button-root.wm-filter-chip--on {
    background: var(--antologa-primary) !important;
    border-color: var(--antologa-primary) !important;
    color: var(--antologa-pure-white) !important;
}

.mud-button-root.wm-filter-chip--on .mud-icon-root {
    color: var(--antologa-pure-white) !important;
}

.wm-filter-separator {
    width: 1px;
    height: 1.25rem;
    background: var(--antologa-border);
    flex-shrink: 0;
    align-self: center;
    margin: 0 0.25rem;
}

/* ── Type legend bar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* ── Pin-family key ───────────────────────────────────────────────────────────
   Wonders and affiliated businesses share the map. They are told apart by pin
   SHAPE (teardrop vs. chip), not hue — the listing palette overlaps the wonder
   palette. These glyphs mirror PIN_SHAPES in antologa-maps.js. */

.wm-pinkey {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 0.3rem 1.25rem;
    background: var(--antologa-surface-50);
    border-bottom: 1px solid var(--antologa-border);
    z-index: 9;
}

.wm-pinkey__item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--antologa-slate-600);
    white-space: nowrap;
}

.wm-pinkey__text {
    letter-spacing: 0.01em;
}

.wm-pinkey__glyph {
    width: 0.75rem;
    height: 0.9rem;
    flex-shrink: 0;
    background: currentColor;
}

/* Teardrop: round head tapering to a bottom point. */
.wm-pinkey__glyph--wonder {
    color: var(--antologa-primary);
    border-radius: 50% 50% 50% 50% / 42% 42% 62% 62%;
    clip-path: polygon(50% 100%, 0 62%, 0 0, 100% 0, 100% 62%);
}

/* Chip: rounded square with a squared-off base, matching the business marker. */
.wm-pinkey__glyph--business {
    color: var(--antologa-tertiary);
    border-radius: 3px;
    clip-path: polygon(0 0, 100% 0, 100% 72%, 62% 72%, 50% 100%, 38% 72%, 0 72%);
}

.wm-legend {
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.45rem 1.25rem 0.65rem;
    background: var(--antologa-surface-50);
    border-bottom: none;
    z-index: auto;
    min-width: 0;
}

.wm-legend__items {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    align-items: stretch;
    justify-content: space-between;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 0.15rem;
}

.wm-legend__items::-webkit-scrollbar {
    height: 0.25rem;
}

.wm-legend__items::-webkit-scrollbar-thumb {
    background: var(--antologa-light-gray);
    border-radius: 999rem;
}

.wm-legend::-webkit-scrollbar {
    display: none;
}

.wm-legend__label {
    margin: 0;
    padding-top: 0;
    text-align: left;
    flex-shrink: 0;
}

.wm-legend-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.25rem;
    white-space: nowrap;
    flex: 1 1 0;
    width: 0;
    min-width: 3.25rem;
    max-width: 4.75rem;
    cursor: pointer;
    transition: opacity 0.15s, background 0.15s;
    padding: 0.2rem 0.15rem;
    border-radius: 0.375rem;
    text-align: center;
    box-sizing: border-box;
}

.wm-legend-item:hover {
    opacity: 0.75;
    background: rgba(7, 130, 130, 0.06);
}

/* Active state adds NO layout width (ring via box-shadow, bold label — no
   padding/border) so the full 20-type row keeps fitting on one line. */
.wm-legend-item--on .wm-legend-item__name {
    color: var(--antologa-primary);
    font-weight: 800;
}

.wm-legend-item--on .wm-legend-item__dot {
    box-shadow: 0 0 0 2px var(--antologa-pure-white), 0 0 0 2.625px var(--antologa-primary);
}

.wm-legend-item--reset {
    padding-right: 0.15rem;
    margin-right: 0;
    border-right: none;
}

.wm-legend-item--reset .wm-legend-item__name {
    font-weight: 700;
    font-size: 0.6875rem;
    color: var(--antologa-slate-600);
}

.wm-legend-item--reset.wm-legend-item--on .wm-legend-item__name {
    color: var(--antologa-primary);
}

.wm-legend-item__icon {
    width: 1.75rem;
    height: 1.75rem;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem !important;
    color: var(--antologa-slate-500);
    flex-shrink: 0;
}

.wm-legend-item--on .wm-legend-item__icon {
    color: var(--antologa-primary);
}

.wm-legend-item__dot {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wm-legend-item__dot svg {
    width: 14px;
    height: 14px;
}

.wm-legend-item__name {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--antologa-slate-700);
    width: 100%;
    max-width: none;
    line-height: 1.15;
    white-space: normal;
    text-align: center;
    overflow-wrap: anywhere;
}

/* â”€â”€ Body (sidebar + map) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.wm-body {
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
}

/* â”€â”€ Desktop sidebar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.wm-sidebar {
    width: 360px;
    flex-shrink: 0;
    background: var(--antologa-pure-white);
    border-right: 1px solid var(--antologa-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: width 0.25s ease;
    z-index: 5;
}

.wm-sidebar--collapsed {
    width: 0;
    border-right: none;
}

.wm-sidebar__search {
    flex-shrink: 0;
    padding: 0.75rem 1rem 0.35rem;
    border-bottom: 1px solid var(--antologa-surface-cool2);
}

.wm-sidebar__search .mud-input-control,
.wm-sidebar__search-field {
    width: 100%;
}

.wm-sidebar__count {
    font-size: 0.75rem;
    color: var(--antologa-slate-400b);
    padding: 0.625rem 1.25rem 0.5rem;
    flex-shrink: 0;
    border-bottom: 1px solid var(--antologa-surface-cool2);
}

.wm-sidebar__list {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.wm-sidebar__list::-webkit-scrollbar {
    width: 4px;
}

.wm-sidebar__list::-webkit-scrollbar-thumb {
    background: var(--antologa-border);
    border-radius: 4px;
}

/* â”€â”€ Province header (sidebar + sheet grouping) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.wm-province-header {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--antologa-primary);
    padding: 0.625rem 1.25rem 0.25rem;
    background: var(--antologa-surface-cool);
    border-bottom: 1px solid var(--antologa-surface-cool2);
    position: sticky;
    top: 0;
    z-index: 1;
}

/* â”€â”€ Wonder card (sidebar) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.wm-card {
    display: flex;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    border-bottom: 1px solid var(--antologa-surface-cool2);
    transition: background 0.15s;
}

.wm-card:hover {
    background: var(--antologa-surface-cool);
}

.wm-card--active {
    background: #eff6ff;
    border-left: 3px solid var(--antologa-primary);
}

.wm-card__thumb {
    width: 70px;
    height: 70px;
    border-radius: 0.625rem;
    flex-shrink: 0;
    background: var(--antologa-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.wm-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wm-card__thumb > svg {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

.wm-card__body {
    flex: 1;
    min-width: 0;
}

.wm-card__name {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--antologa-slate-900);
    margin: 0 0 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wm-card__location {
    font-size: 0.75rem;
    color: var(--antologa-slate-500);
    display: flex;
    align-items: center;
    gap: 0.2rem;
    margin-bottom: 0.4rem;
}

.wm-card__tags {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.wm-tag {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15em 0.6em;
    border-radius: 999rem;
}

.wm-tag--type     { background: var(--antologa-primary-tint); color: var(--antologa-primary); }
.wm-tag--diff     { background: var(--antologa-warning-bg); color: var(--antologa-gold-700); }
.wm-tag--swim     { background: var(--antologa-primary-tint); color: var(--antologa-primary); }
.wm-tag--guide    { background: var(--antologa-warning-bg); color: var(--antologa-gold-700); }
.wm-tag--easy     { background: var(--antologa-primary-tint); color: var(--antologa-primary); }
.wm-tag--moderate { background: var(--antologa-warning-bg); color: var(--antologa-gold-700); }
.wm-tag--hard     { background: #fbe8e1; color: var(--antologa-tertiary); }
.wm-tag--expert   { background: #d8eaf2; color: var(--antologa-secondary); }

/* â”€â”€ Map container â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.wm-map-wrap {
    flex: 1;
    position: relative;
    min-width: 0;
}

#wm-map {
    width: 100%;
    height: 100%;
}

/* Center +/− glyphs inside Google's zoom control (default is top-aligned). */
.wm-map-wrap .gm-bundled-control button:not(.gm-fullscreen-control),
.wm-map-wrap .gmnoprint button:not(.gm-fullscreen-control),
.wm-map-wrap button.gm-control-active:not(.gm-fullscreen-control) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

/* Google’s native fullscreen control is disabled — hide any leftover chrome.
   Must beat button.gm-control-active { display:inline-flex } above. */
.wm-map-wrap .gm-fullscreen-control,
.wm-map-wrap button.gm-fullscreen-control,
.wm-map-wrap .gm-fullscreen-control.gm-control-active,
.wm-map-wrap button[title="Toggle fullscreen view"],
.wm-map-wrap button[aria-label="Toggle fullscreen view"] {
    display: none !important;
}

.wm-map-wrap .gm-bundled-control button img,
.wm-map-wrap .gmnoprint button img,
.wm-map-wrap button.gm-control-active img {
    display: block;
    margin: 0 auto;
}

/* â”€â”€ MapLibre popup (replaces Leaflet tooltip) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.wm-ml-popup .maplibregl-popup-content {
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0.75rem !important;
    box-shadow: none !important;
}

.wm-ml-popup .maplibregl-popup-tip {
    display: none !important;
}

/* â”€â”€ Fit-all reset button â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.wm-fitall-btn {
    position: absolute;
    /* Clear Google logo + bottom-center scale bar */
    bottom: 3.5rem;
    left: 1rem;
    z-index: 20;
    background: var(--antologa-pure-white);
    border: 1px solid var(--antologa-border);
    border-radius: 0.5rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--antologa-slate-700);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    transition: background 0.15s, box-shadow 0.15s;
}

.wm-fitall-btn:hover {
    background: var(--antologa-surface-cool2);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Custom fullscreen — matches Fit All / zoom stack chrome (replaces Google’s). */
.wm-fullscreen-btn.mud-button-root,
.wm-fullscreen-btn {
    position: absolute;
    top: 1rem;
    right: 0.75rem;
    z-index: 20;
    width: 2.35rem !important;
    height: 2.35rem !important;
    min-width: 2.35rem !important;
    padding: 0 !important;
    background: var(--antologa-pure-white) !important;
    border: 1px solid var(--antologa-border) !important;
    border-radius: 0.5rem !important;
    color: var(--antologa-slate-700) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, box-shadow 0.15s;
}

.wm-fullscreen-btn:hover {
    background: var(--antologa-surface-cool2) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.wm-fullscreen-btn .mud-icon-root {
    font-size: 1.25rem !important;
}

.wm-map-wrap:fullscreen,
.wm-map-wrap:-webkit-full-screen {
    width: 100%;
    height: 100%;
    background: var(--antologa-pure-white);
}

.wm-mapview-controls {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: auto;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

/* Unified zoom stack (+ / % bar / −) — replaces Google’s native zoom control. */
.wm-zoom-stack {
    position: absolute;
    right: 0.75rem;
    bottom: 1.25rem;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 2.35rem;
    background: var(--antologa-pure-white);
    border: 1px solid var(--antologa-border);
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.wm-zoom-stack__btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--antologa-slate-700);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1;
    height: 2.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.wm-zoom-stack__btn:hover {
    background: var(--antologa-surface-cool2);
}

.wm-zoom-stack__btn:focus-visible {
    outline: 2px solid var(--antologa-primary);
    outline-offset: -2px;
}

.wm-zoom-meter {
    position: relative;
    right: auto;
    bottom: auto;
    z-index: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    width: 100%;
    padding: 0.2rem 0.25rem 0.35rem;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--antologa-border);
    border-bottom: 1px solid var(--antologa-border);
    border-radius: 0;
    box-shadow: none;
    pointer-events: none;
    box-sizing: border-box;
}

.wm-zoom-meter__track {
    position: relative;
    width: 0.35rem;
    height: 3.25rem;
    border-radius: 999rem;
    background: var(--antologa-surface-cool2, #f3f4f6);
    overflow: hidden;
}

.wm-zoom-meter__fill {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 0%;
    border-radius: inherit;
    background: var(--antologa-primary, #078282);
    transition: height 0.15s ease;
}

.wm-zoom-meter__label {
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--antologa-slate-700, #334155);
    line-height: 1;
    min-height: 0.75rem;
    text-align: center;
    width: 100%;
}

.wm-mapview-btn {
    background: var(--antologa-pure-white);
    border: 1px solid var(--antologa-border);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--antologa-slate-700);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: background 0.15s, box-shadow 0.15s;
}

.wm-mapview-btn:hover {
    background: var(--antologa-surface-cool2);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.wm-mapview-btn--on {
    background: var(--antologa-primary);
    border-color: var(--antologa-primary);
    color: var(--antologa-pure-white);
}

/* â”€â”€ Map loading overlay â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.wm-map-loading {
    position: absolute;
    inset: 0;
    background: rgba(248,250,252,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

/* â”€â”€ Sidebar toggle button (desktop) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.wm-toggle-btn {
    position: absolute;
    top: 50%;
    left: 360px;   /* matches sidebar width */
    transform: translate(-50%, -50%);
    z-index: 20;
    background: var(--antologa-pure-white);
    border: 1px solid var(--antologa-border);
    border-left: none;
    border-radius: 0 8px 8px 0;
    padding: 0.75rem 0.4rem;
    cursor: pointer;
    box-shadow: 2px 0 8px rgba(0,0,0,0.08);
    transition: left 0.25s ease, transform 0.25s ease, background 0.15s;
}

/* When the sidebar collapses, the toggle moves to the map edge */
.wm-sidebar--collapsed ~ .wm-toggle-btn {
    left: 0;
    transform: translate(0, -50%);
}

.wm-toggle-btn:hover {
    background: var(--antologa-surface-cool2);
}

/* â”€â”€ Detail drawer (slides over map on desktop) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.wm-detail {
    position: absolute;
    top: 0;
    right: 0;
    width: 380px;
    height: 100%;
    background: var(--antologa-pure-white);
    box-shadow: -4px 0 20px rgba(0,0,0,0.12);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    /* Stop the browser's pull-to-refresh from firing when the user swipes
       down to dismiss the drawer on mobile. */
    overscroll-behavior: none;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
    /* Promote to its own compositor layer so the slide stays smooth even when
       nearby-pin DOM work happens right after opening. */
    will-change: transform;
}

.wm-detail--open {
    transform: translateX(0);
}

.wm-detail__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 5;
}

.wm-detail__hero {
    width: 100%;
    height: 200px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--antologa-border); /* fallback; overridden by inline type colour */
}

.wm-detail__hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wm-detail__body {
    padding: 1rem 1.5rem 2rem;
    flex: 1;
}

.wm-detail__province {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--antologa-primary);
    margin-bottom: 0.35rem;
}

.wm-detail__name {
    font-family: 'Inter', sans-serif;
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--antologa-slate-900);
    margin: 0;
    line-height: 1.2;
}

.wm-detail__head {
    padding: 0.85rem 1.5rem 0.35rem;
}

.wm-detail__head .wm-detail__desc {
    margin: 0.55rem 0 0;
}

.wm-detail__head .wm-more {
    margin: 0.15rem 0 0;
}

.wm-detail__desc {
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #4b5563;
    margin: 0 0 0.5rem;
}

.wm-detail__desc--clamp {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wm-more {
    display: inline-block;
    margin: 0 0 1rem;
    padding: 0.25rem 0;
    border: 0;
    background: none;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--antologa-primary);
    cursor: pointer;
    min-height: 2rem;
}

.wm-detail__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(6rem, 1fr));
    gap: 0.5rem;
    margin-bottom: 1.15rem;
}

.wm-stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    padding: 0.55rem 0.65rem;
    border-radius: 0.6rem;
    background: var(--antologa-surface-cool2, #eef6f6);
}

.wm-stat__label {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--antologa-slate-400b);
}

.wm-stat__value {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    min-width: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--antologa-slate-900);
    line-height: 1.25;
}

.wm-meta-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.4rem;
}

.wm-meta-item__icon {
    flex-shrink: 0;
    width: 1.15rem;
    height: 1.15rem;
    font-size: 1.15rem;
    color: var(--antologa-primary);
    margin-top: 0.15rem;
}

.wm-meta-item__label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--antologa-slate-400b);
}

.wm-meta-item__value {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--antologa-slate-900);
}

/* Type value: small colored icon chip beside the label */
.wm-meta-item__value--type {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.wm-type-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wm-detail__cta {
    margin-top: 0.5rem;
}

/* ── Weather chip (detail drawer) ─────────────────────────────────────────── */

.wm-weather {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--antologa-surface-cool2);
    border-radius: 0.6rem;
    padding: 0.55rem 0.8rem;
    margin-bottom: 0.45rem;
}

.wm-season {
    margin: 0 0 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--antologa-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wm-weather__icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.wm-weather__temp {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--antologa-slate-900);
}

.wm-weather__desc {
    font-size: 0.75rem;
    color: var(--antologa-slate-500);
}

.wm-weather--loading {
    font-size: 0.75rem;
    color: var(--antologa-slate-500);
}

/* ── Directions / drive-time (detail drawer) ─────────────────────────────── */

.wm-directions {
    margin-bottom: 0.75rem;
}

.wm-go {
    margin-bottom: 0.75rem;
}

.wm-go__row {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1.25rem;
}

.wm-go__modes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wm-go__mode,
.wm-go__signal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0.2rem;
    min-width: 2.4rem;
    color: var(--antologa-secondary);
}

.wm-go__mode-icon {
    width: 1.35rem;
    height: 1.35rem;
    font-size: 1.35rem;
}

.wm-go__mode-label {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wm-signal {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 18px;
    flex-shrink: 0;
}

.wm-signal__bar {
    width: 4px;
    border-radius: 1px;
    background: var(--antologa-slate-300, #d1d5db);
}

.wm-signal__bar:nth-child(1) { height: 6px; }
.wm-signal__bar:nth-child(2) { height: 10px; }
.wm-signal__bar:nth-child(3) { height: 14px; }
.wm-signal__bar:nth-child(4) { height: 18px; }

.wm-signal--spotty .wm-signal__bar:nth-child(1),
.wm-signal--fair .wm-signal__bar:nth-child(-n+2),
.wm-signal--good .wm-signal__bar {
    background: var(--antologa-primary);
}

.wm-signal--none .wm-signal__bar {
    background: var(--antologa-slate-300, #d1d5db);
}

.wm-drivetime-container {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 10px 12px;
    background: rgba(var(--primary-rgb), 0.05);
    border-radius: 8px;
    margin: 16px 0;
    overflow: hidden;
}

.wm-drivetime-item {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
    flex: 0 1 auto;
}

.wm-drivetime-icon {
    font-size: 16px;
    color: var(--antologa-primary);
    flex-shrink: 0;
    align-self: center;
}

.wm-drivetime-content {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 4px;
    line-height: 1;
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wm-drivetime-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--antologa-text-primary);
    white-space: nowrap;
}

.wm-drivetime-unit {
    font-size: 11px;
    color: var(--antologa-text-secondary);
    white-space: nowrap;
}

.wm-drivetime-separator {
    color: var(--antologa-divider);
    flex-shrink: 0;
}

/* â”€â”€ Nearby load status (detail drawer) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.wm-nearby-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--antologa-slate-500);
    margin-bottom: 1rem;
}

/* â”€â”€ Linked tours & guides (detail drawer) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.wm-linked {
    margin-bottom: 1.25rem;
}

.wm-linked__title {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--antologa-slate-400b);
    margin: 0 0 0.5rem;
}

.wm-listing-card {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.5rem;
    border: 1px solid var(--antologa-surface-cool2);
    border-radius: 0.75rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.wm-listing-card:hover {
    background: var(--antologa-surface-cool);
    border-color: var(--antologa-border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.wm-listing-card__thumb {
    width: 54px;
    height: 54px;
    border-radius: 0.5rem;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--antologa-border);
}

.wm-listing-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wm-listing-card__body {
    flex: 1;
    min-width: 0;
}

.wm-listing-card__title {
    font-weight: 700;
    font-size: 0.8125rem;
    color: var(--antologa-slate-900);
    margin: 0 0 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wm-listing-card__meta {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.75rem;
}

.wm-listing-card__rating {
    color: #f59e0b;
    font-weight: 700;
}

.wm-listing-card__price {
    color: var(--antologa-primary);
    font-weight: 800;
}

/* Skeleton placeholders while linked listings load */
.wm-listing-card--skeleton {
    cursor: default;
    pointer-events: none;
}

.wm-listing-card--skeleton .wm-listing-card__thumb {
    background: var(--antologa-surface-cool4);
    animation: wm-pulse 1.2s ease-in-out infinite;
}

.wm-skel-line {
    height: 0.6rem;
    border-radius: 999rem;
    background: var(--antologa-surface-cool4);
    margin-bottom: 0.4rem;
    animation: wm-pulse 1.2s ease-in-out infinite;
}

.wm-skel-line--w80 { width: 80%; }
.wm-skel-line--w40 { width: 40%; }

@keyframes wm-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.5; }
}

/* â”€â”€ Mobile type filter chips (inside bottom sheet) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.wm-sheet__types {
    display: none; /* shown on mobile only */
    gap: 0.4rem;
    padding: 0 1rem 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-shrink: 0;
}

.wm-sheet__types::-webkit-scrollbar { display: none; }

.wm-sheet__types--businesses {
    border-top: 1px solid var(--antologa-border);
    padding-top: 0.5rem;
}

.wm-type-chip {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3em 0.75em;
    border-radius: 999rem;
    border: 1.5px solid var(--antologa-border);
    background: var(--antologa-pure-white);
    color: var(--antologa-slate-500);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.wm-type-chip--on {
    background: var(--chip-color, var(--antologa-primary));
    border-color: var(--chip-color, var(--antologa-primary));
    color: var(--antologa-pure-white);
}

/* â”€â”€ Mobile filter bar (chips + search icon, sits below the map) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.wm-mobile-bar {
    display: none; /* unhidden in mobile media query */
    flex-shrink: 0;
    align-items: center;
    height: 3.25rem;
    background: var(--antologa-pure-white);
    border-top: 1px solid var(--antologa-border);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
}

.wm-mobile-search-btn,
.wm-mobile-list-btn {
    flex-shrink: 0;
    width: 3.25rem;
    height: 3.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--antologa-slate-500);
    transition: color 0.15s;
}

.wm-mobile-search-btn { border-right: 1px solid var(--antologa-surface-cool2); }
.wm-mobile-list-btn   { border-left:  1px solid var(--antologa-surface-cool2); }

.wm-mobile-search-btn:active,
.wm-mobile-list-btn:active { color: var(--antologa-primary); }

.wm-mobile-bar__chips {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 0.625rem;
    /* Right-edge fade so users see the chip row scrolls on narrow screens */
    -webkit-mask-image: linear-gradient(to right, var(--antologa-black) calc(100% - 1.5rem), transparent);
            mask-image: linear-gradient(to right, var(--antologa-black) calc(100% - 1.5rem), transparent);
}

.wm-mobile-bar__chips::-webkit-scrollbar { display: none; }

/* Icon-only filter chips on mobile — labels live in title/aria-label tooltips */
.wm-mobile-bar .wm-mobile-chip.mud-button-root,
.wm-mobile-bar .wm-mobile-chip.wm-filter-chip {
    width: 2.25rem;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 !important;
    border-radius: 999rem !important;
    flex-shrink: 0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.wm-mobile-bar .wm-mobile-chip .mud-icon-root {
    font-size: 1.15rem !important;
    margin: 0 !important;
}

.wm-mobile-bar .wm-mobile-chip.wm-filter-chip--on {
    background: var(--antologa-primary) !important;
    border-color: var(--antologa-primary) !important;
    color: var(--antologa-pure-white) !important;
}

.wm-mobile-bar .wm-mobile-chip.wm-filter-chip--on .mud-icon-root {
    color: var(--antologa-pure-white) !important;
}

/* â”€â”€ Mobile floating search overlay (over map) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.wm-mobile-search-bar {
    display: none; /* desktop: hidden regardless of Blazor state */
    position: absolute;
    top: 0.625rem;
    left: 0.625rem;
    right: 0.625rem;
    z-index: 50;
    align-items: center;
    gap: 0.375rem;
    background: var(--antologa-pure-white);
    border-radius: 0.875rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    padding: 0.25rem 0.375rem 0.25rem 0.75rem;
}

/* â”€â”€ Mobile bottom sheet â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.wm-sheet {
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    background: var(--antologa-pure-white);
    border-radius: 1.25rem 1.25rem 0 0;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
    z-index: 40;
    max-height: 70dvh;
    overflow: hidden;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}

.wm-sheet--open {
    transform: translateY(0);
}

/* Large tap-friendly handle area */
.wm-sheet__handle {
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.wm-sheet__handle::after {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--antologa-slate-300);
    border-radius: 2px;
}

.wm-sheet__list {
    padding: 0 0 1.5rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-height: 0;
}

/* â”€â”€ Pin hover tooltip (our own card, anchored to .amap-pin â€” no Google InfoWindow) â”€â”€ */

.wm-tooltip-card {
    background: var(--antologa-pure-white);
    border-radius: 0.75rem;
    box-shadow: 0 6px 24px rgba(0,0,0,0.16);
    padding: 0.75rem 0.875rem;
    min-width: 180px;
    max-width: 240px;
    font-family: 'Inter', sans-serif;
    pointer-events: none;

    /* Anchored to .amap-pin (position: relative; overflow: visible in map-pins.css) */
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-6px) scale(0.96);
    opacity: 0;
    transition: opacity .15s ease, transform .15s ease;
    z-index: 20;
}

.amap-pin--tooltip-open .wm-tooltip-card {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px) scale(1);
}

.amap-pin--tooltip-open {
    z-index: 30;   /* stack the hovered pin (and its card) above its neighbors */
}

.wm-tt-header {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.wm-tt-emoji {
    font-size: 1.375rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.wm-tt-name {
    font-weight: 700;
    font-size: 0.8125rem;
    color: var(--antologa-slate-900);
    margin: 0;
    line-height: 1.25;
}

.wm-tt-loc {
    font-size: 0.7rem;
    color: var(--antologa-slate-500);
    margin: 0.125rem 0 0;
}

.wm-tt-tags {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.wm-tt-tag {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.15em 0.55em;
    border-radius: 999rem;
}

.wm-tt-hint {
    font-size: 0.6rem;
    color: var(--antologa-slate-400b);
    text-align: center;
    margin: 0;
}

/* â”€â”€ Marker cluster badge â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.wm-cluster {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 3px solid var(--antologa-pure-white);
    box-shadow: 0 2px 12px rgba(0,0,0,0.28);
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 0.75rem;
    color: var(--antologa-pure-white);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wm-cluster:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 18px rgba(0,0,0,0.35);
}

.wm-cluster--small  { background: #0ea5e9; }
.wm-cluster--medium { background: var(--antologa-primary); }
.wm-cluster--large  { background: var(--antologa-secondary); }

/* â”€â”€ Detail drag handle (visible on mobile only) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.wm-detail__handle-bar {
    display: none; /* shown only in mobile media query */
    flex-shrink: 0;
    width: 100%;
    min-height: 1.5rem;
    align-items: center;
    justify-content: center;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.wm-detail__handle-bar::after {
    content: '';
    display: block;
    width: 2.75rem;
    height: 0.25rem;
    background: var(--antologa-slate-300);
    border-radius: 999rem;
}

/* â”€â”€ Detail backdrop (mobile only â€” dismisses on tap) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.wm-detail-backdrop {
    display: none;
}

/* ── Empty filter state ───────────────────────────────────────────────────── */

.wm-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.wm-empty__title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--antologa-slate-900);
    margin: 0;
}

.wm-empty__sub {
    font-size: 0.8125rem;
    color: var(--antologa-slate-500);
    margin: 0 0 0.5rem;
    max-width: 16rem;
}

.wm-empty__reset {
    text-transform: none !important;
    font-weight: 700 !important;
    border-radius: 999rem !important;
}

/* ── Compact map chrome (pin key + types + business toggle) ─────────────────
   Desktop: hidden — the top pinkey/legend bars cover this.
   Compact (≤1280): floated over the map so pin literacy survives without the
   desktop chrome bars. */

.wm-map-chrome {
    display: none;
    position: absolute;
    top: 0.625rem;
    left: 0.625rem;
    z-index: 25;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    max-width: calc(100% - 1.25rem);
}

.wm-map-chrome__pinkey {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.35rem 0.65rem;
    background: var(--antologa-pure-white);
    border: 1px solid var(--antologa-border);
    border-radius: 0.625rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.wm-map-chrome__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.wm-map-chrome__btn {
    background: var(--antologa-pure-white);
    border: 1px solid var(--antologa-border);
    border-radius: 0.5rem;
    padding: 0.4rem 0.7rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--antologa-slate-700);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    white-space: nowrap;
}

.wm-map-chrome__btn--on {
    background: var(--antologa-primary);
    border-color: var(--antologa-primary);
    color: var(--antologa-pure-white);
}

.wm-map-chrome__panel {
    display: none;
    flex-wrap: wrap;
    gap: 0.35rem;
    max-width: min(22rem, 92vw);
    max-height: 40dvh;
    overflow-y: auto;
    padding: 0.5rem;
    background: var(--antologa-pure-white);
    border: 1px solid var(--antologa-border);
    border-radius: 0.75rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.14);
}

.wm-map-chrome__panel--open {
    display: flex;
}

.wm-nearby-key {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--antologa-slate-500);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

.wm-nearby-key__item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
    color: var(--antologa-slate-700);
}

.wm-nearby-key__dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.wm-geo-msg {
    font-size: 0.75rem;
    color: var(--antologa-slate-500);
    background: var(--antologa-surface-cool2);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    margin-top: 0.35rem;
}

/* Keyboard focus for interactive legend / type chips / cards */
.wm-legend-item:focus-visible,
.wm-type-chip:focus-visible,
.wm-card:focus-visible,
.wm-map-chrome__btn:focus-visible {
    outline: 2px solid var(--antologa-primary);
    outline-offset: 2px;
}

/* ── Compact / tablet / phone shell (≤1280 — matches site bottom-nav) ───────
   Nav flips to mobile chrome at 1280px. This page must do the same: subtract
   the bottom nav, drop the desktop sidebar, and go map-first with sheets. */

@media (max-width: 1280px) {
    /* Hide desktop chrome */
    .wm-header    { display: none; }
    .wm-pinkey    { display: none; }
    .wm-sidebar   { display: none; }
    .wm-toggle-btn{ display: none; }

    /* Compact map overlays replace the hidden chrome bars */
    .wm-map-chrome { display: flex; }

    /* map-chrome owns top-left — park Roadmap/Traffic under it */
    .wm-mapview-controls {
        top: 6.75rem;
        left: 0.5rem;
    }

    .wm-mapview-btn {
        padding: 0.4rem 0.55rem;
        font-size: 0.6875rem;
    }

    .wm-fitall-btn {
        bottom: 0.85rem;
        left: 0.5rem;
        right: auto;
        padding: 0.4rem 0.65rem;
        font-size: 0.6875rem;
    }

    .wm-fullscreen-btn {
        top: 0.5rem;
        right: 0.5rem;
        width: 2.15rem;
        height: 2.15rem;
    }

    .wm-zoom-stack {
        right: 0.5rem;
        bottom: 0.85rem;
        width: 2.15rem;
    }

    .wm-zoom-stack__btn {
        height: 1.9rem;
        font-size: 1.05rem;
    }

    .wm-zoom-meter__track {
        height: 2.5rem;
    }

    .wm-zoom-meter__label {
        font-size: 0.5625rem;
    }

    /* Show the bottom filter bar — above map chrome; below site bottom nav (1200) */
    .wm-mobile-bar {
        display: flex;
        z-index: 1100;
        position: relative;
    }

    /* Show the mobile list sheet — match pin detail height: fill map area under topbar */
    .wm-sheet {
        display: flex;
        flex-direction: column;
        top: 0;
        bottom: 0;
        max-height: none;
        height: auto;
        z-index: 900;
    }

    /* Show the in-sheet type filter row */
    .wm-sheet__types {
        display: flex;
        flex-shrink: 0;
    }

    /* Detail drawer: same vertical span as list sheet — top nav edge → above
       site bottom nav + in-page filter bar (3.25rem) */
    .wm-detail {
        position: fixed;
        left: 0;
        right: 0;
        width: 100%;
        top: var(--wm-nav-height, 6rem);
        bottom: calc(max(4.5rem, var(--bottom-nav-height, 4.5rem)) + 3.25rem);
        height: auto;
        border-radius: 1.25rem 1.25rem 0 0;
        box-shadow: 0 -4px 24px rgba(0,0,0,0.18);
        transform: translateY(110%);
        z-index: 900; /* below .nb-bottom-nav (1200) */
        padding-bottom: env(safe-area-inset-bottom, 0px);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .wm-detail--open {
        transform: translateY(0);
    }

    .wm-detail__body {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .wm-sheet__handle {
        min-height: 2.75rem;
    }

    .wm-mobile-search-bar {
        display: flex;
    }

    .wm-detail__handle-bar {
        display: flex;
        min-height: 1.75rem;
        flex-shrink: 0;
    }

    /* Dim backdrop — must sit ABOVE the filter bar so taps dismiss the drawer
       instead of mutating filters underneath. Detail drawer is 1100. */
    .wm-detail-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        top: var(--wm-nav-height, 6rem);
        bottom: calc(max(4.5rem, var(--bottom-nav-height, 4.5rem)) + 3.25rem);
        background: rgba(0, 0, 0, 0.35);
        z-index: 850;
        cursor: pointer;
    }
}

.wm-detail__head {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--antologa-pure-white);
    padding: 0.85rem 1.5rem 0.75rem;
    border-bottom: 1px solid var(--antologa-border);
}

.wm-detail__head .wm-detail__name {
    margin-bottom: 0;
}

.wm-section {
    margin: 0 0 1.25rem;
}

.wm-section__title {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--antologa-primary);
    margin: 0 0 0.5rem;
}

.wm-section__text {
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #4b5563;
    margin: 0 0 0.5rem;
}

.wm-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 0.65rem;
    padding: 0;
    list-style: none;
}

.wm-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    max-width: 100%;
    min-height: 2rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999rem;
    background: var(--antologa-surface-cool2, #eef6f6);
    color: var(--antologa-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.wm-chip__icon {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    font-size: 1rem;
}

.wm-chip--alert {
    background: #fdece8;
    color: var(--antologa-terciary);
}

.wm-safety__place {
    margin: -0.2rem 0 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--antologa-slate-500);
}

.wm-fact {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 0 0 0.65rem;
}

.wm-fact__icon {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    font-size: 1.25rem;
    color: var(--antologa-primary);
    margin-top: 0.1rem;
}

.wm-fact__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.wm-fact__label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--antologa-slate-400b);
}

.wm-fact__value {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--antologa-slate-900);
    line-height: 1.35;
}

.wm-fact__value--clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wm-notes {
    margin: 0.15rem 0 0;
}

.wm-notes__summary {
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--antologa-primary);
    list-style: none;
    min-height: 2rem;
    display: flex;
    align-items: center;
}

.wm-notes__summary::-webkit-details-marker {
    display: none;
}

.wm-notes[open] .wm-notes__summary {
    margin-bottom: 0.4rem;
}

.wm-notes .wm-section__text:last-child {
    margin-bottom: 0;
}

.wm-access {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.wm-access__chip {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 999rem;
    background: #f0fdf4;
    color: #166534;
}

.wm-warn {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    margin: 0 0 0.65rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.5rem;
    background: #fdf4e3;
    color: #7a5414;
}

.wm-warn__icon {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    font-size: 1.25rem;
    margin-top: 0.05rem;
}

.wm-warn__title {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 800;
}

.wm-warn__text {
    margin: 0.15rem 0 0;
    font-size: 0.75rem;
    font-weight: 500;
}

.wm-bizrow {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    text-align: left;
    padding: 0.7rem 0.85rem;
    border: 0;
    border-bottom: 1px solid var(--antologa-border);
    background: transparent;
    cursor: pointer;
}

.wm-bizrow:hover,
.wm-bizrow--on {
    background: #f8fafc;
}

.wm-bizrow__dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 999rem;
    flex-shrink: 0;
}

.wm-bizrow__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.wm-bizrow__name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--antologa-slate-900);
}

.wm-bizrow__meta {
    font-size: 0.7rem;
    color: var(--antologa-slate-500);
}
