/* Explore's floating workspace. Map data and merchant components stay independent. */
.explore-map-page {
    --explore-gap: 20px;
    --explore-panel-width: 390px;
    --explore-glass: rgba(246, 250, 249, .90);
    --explore-list-glass: rgba(240, 245, 248, .90);
    --explore-line: rgba(199, 213, 221, .80);
    --explore-shadow: 0 16px 48px rgba(22, 49, 58, .16), inset 0 1px 0 #fff;
}
.explore-map-sidebar {
    top: var(--explore-gap);
    bottom: var(--explore-gap);
    left: var(--explore-gap);
    width: var(--explore-panel-width);
    padding: 16px;
    border-color: var(--explore-line);
    background: var(--explore-list-glass);
    border-radius: 22px;
    box-shadow: 0 16px 40px #203b4a2e, 0 2px 8px #203b4a0f;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.explore-map-sidebar-header { gap: 12px; margin: 0 0 14px; }
.explore-map-sidebar-header .explore-kicker { color: #53736e; font-size: 10px; letter-spacing: .12em; }
.explore-map-sidebar-header .explore-back-link { color: #53706d; font-size: 12px; font-weight: 600; }
.explore-sidebar-actions { display: flex; align-items: center; gap: 10px; }
.explore-sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 36px;
    min-height: 36px;
    padding: 8px;
    border: 1px solid #d5e3e2;
    border-radius: 12px;
    background: #fff;
    color: #285a60;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
}
.explore-sidebar-toggle:hover { background: #eaf4f1; border-color: #a3c5be; }
.explore-sidebar-reopen {
    position: absolute;
    z-index: 5;
    top: var(--explore-gap);
    left: var(--explore-gap);
    min-height: 48px;
    padding: 12px 18px;
    border-color: var(--explore-line);
    background: var(--explore-glass);
    box-shadow: var(--explore-shadow);
}
.explore-sidebar-reopen[hidden] { display: none; }
.explore-compact-controls { background: #ffffffe6; border: 1px solid #ffffffb3; border-radius: 16px; }
.explore-compact-btn { min-width: 36px; min-height: 36px; border-radius: 11px; }
.explore-compact-location { min-width: 0; }
#exploreLocationText { overflow-wrap: anywhere; }
.explore-quick-categories button { border-color: #b8cbd5; background: #fff; color: #294b59; box-shadow: 0 2px 3px #183d4b12; }
.explore-quick-categories button.is-active { background: #1e655d; border-color: #1e655d; color: #fff; box-shadow: 0 2px 4px #1e655d26; }
.explore-listing { scrollbar-color: #9ebbb399 transparent; padding: 5px 5px 10px 3px; }
.explore-results-tools { border-bottom-color: #68887b26; }
.explore-map-sidebar .explore-filter-open { border-color: transparent; background: #ffffffe6; }
.explore-map-sidebar .explore-reset-btn { border: 1px solid transparent; background: #ffffffc7; color: #526f69; font-weight: 600; }
.explore-map-sidebar .explore-reset-btn:hover { background: #ffffffa6; color: #205e53; }

/* Quiet reading surfaces inside the glass shell; no per-card blur. */
.explore-listing .explore-place-card {
    padding: 17px;
    margin-bottom: 12px;
    border: 1px solid #cbd9e1;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 2px 4px #183d4b0a, 0 5px 12px #183d4b14;
}
.explore-listing .explore-place-card::before { opacity: 0; inset-block: 18px; }
.explore-listing .explore-place-card:hover,
.explore-listing .explore-place-card.is-hovered { border-color: #91b3ab; background: #fff; box-shadow: 0 3px 6px #183d4b0d, 0 7px 16px #183d4b1c; }
.explore-listing .explore-place-card:is(.is-active, .is-scroll-focused) {
    border-color: #579b8c;
    background: #effaf6;
    box-shadow: 0 0 0 1px #377e7024, 0 5px 12px #183d4b14;
}
.explore-listing .explore-place-card:is(.is-active, .is-scroll-focused)::before { opacity: 1; }
:is(.explore-listing,.ask-explore-results) .explore-merchant-category { margin-bottom: 11px; font-size: 10px; font-weight: 600; letter-spacing: .035em; }
/* Keep the existing merchant image beside the complete reading column. */
:is(.explore-listing,.ask-explore-results) .explore-merchant-heading { grid-template-columns: 72px minmax(0, 1fr) auto; column-gap: 10px; row-gap: 8px; align-items: start; }
:is(.explore-listing,.ask-explore-results) .explore-merchant-heading > .explore-merchant-thumb {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 72px;
    height: 72px;
    padding: 8px;
    object-fit: contain;
    border-radius: 17px;
    border: 1px solid #e8edef;
    background: #fff;
    box-shadow: inset 0 1px 0 #ffffffbf, 0 3px 10px #193d4b06;
}
:is(.explore-listing,.ask-explore-results) .explore-merchant-heading > .explore-merchant-name { grid-column: 2; min-width: 0; }
:is(.explore-listing,.ask-explore-results) .explore-merchant-heading > .explore-heart-btn { grid-column: 3; }
:is(.explore-listing,.ask-explore-results) .explore-merchant-heading > .explore-merchant-facts { grid-column: 2 / -1; min-width: 0; margin: 0; gap: 5px; }
:is(.explore-listing,.ask-explore-results) .explore-merchant-heading > .explore-merchant-facts p { font-size: 11px; grid-template-columns: 13px minmax(0, 1fr); gap: 6px; }
:is(.explore-listing,.ask-explore-results) .explore-merchant-name h3 { font-size: 15px; font-weight: 650; line-height: 1.45; letter-spacing: -.015em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
:is(.explore-listing,.ask-explore-results) .explore-merchant-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
:is(.explore-listing,.ask-explore-results) .explore-merchant-meta .explore-merchant-category { margin: 0; min-width: 0; }
:is(.explore-listing,.ask-explore-results) .explore-merchant-distance { margin: 0 0 0 auto; flex: 0 0 auto; flex-wrap: nowrap; white-space: nowrap; color: #34776a; font-size: 11px; font-weight: 600; }
:is(.explore-listing,.ask-explore-results) .explore-merchant-address > span { display: block; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; -webkit-line-clamp: unset; }
:is(.explore-listing,.ask-explore-results) .explore-merchant-facts { margin-top: 14px; padding: 0; gap: 7px; border: 0; border-radius: 0; background: transparent; }
:is(.explore-listing,.ask-explore-results) .explore-merchant-facts p { font-size: 12px; line-height: 1.55; color: #50655f; }
:is(.explore-listing,.ask-explore-results) .explore-merchant-facts i { color: #6c8980; }
:is(.explore-listing,.ask-explore-results) .explore-merchant-heading .explore-heart-btn { border-color: #e6eeea; background: #fff; color: #627c74; }
:is(.explore-listing,.ask-explore-results) .explore-merchant-heading .explore-heart-btn.is-liked { color: #c73e63; background: #fff1f5; border-color: #f0d3dd; }
:is(.explore-listing,.ask-explore-results) .explore-merchant-heading .explore-heart-btn:focus-visible { color: #d93660; background: #fff0f4; border-color: #eea6b9; outline: 2px solid #d93660; outline-offset: 2px; }
:is(.explore-listing,.ask-explore-results) .explore-merchant-heading .explore-heart-btn:focus-visible .fa-heart { font-weight: 900; }
@media (hover: hover) and (pointer: fine) {
    :is(.explore-listing,.ask-explore-results) .explore-merchant-heading .explore-heart-btn:hover { color: #d93660; background: #fff0f4; border-color: #eea6b9; box-shadow: 0 2px 8px #d936601a; }
    :is(.explore-listing,.ask-explore-results) .explore-merchant-heading .explore-heart-btn:hover .fa-heart { font-weight: 900; }
}
:is(.explore-listing,.ask-explore-results) .explore-place-tags {
    margin-top: 12px;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}
:is(.explore-listing,.ask-explore-results) .explore-place-tags::-webkit-scrollbar { display: none; }
@media (hover: hover) and (pointer: fine) {
    .explore-listing .explore-place-tags { cursor: grab; user-select: none; -webkit-user-select: none; }
    .explore-listing .explore-place-tags.is-dragging { cursor: grabbing; }
}
:is(.explore-listing,.ask-explore-results) .explore-place-tags:focus-visible { outline: 2px solid #318eaa; outline-offset: 2px; border-radius: 12px; }
:is(.explore-listing,.ask-explore-results) .explore-place-tags > span {
    padding: 4px 8px;
    border: 1px solid #dce9ee;
    border-radius: 999px;
    background: linear-gradient(135deg, #f4f9fc, #eaf4f5);
    color: #3d606d;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.4;
    flex: 0 0 auto;
    max-width: none;
    white-space: nowrap;
}
:is(.explore-listing,.ask-explore-results) .explore-place-tags.is-rec > span {
    border-color: #eddfc9;
    background: linear-gradient(135deg, #fffaf1, #f8f0e3);
    color: #7b6038;
}
.explore-listing .explore-offers {
    margin: 14px 0 0;
    padding: 12px 0 0;
    border: 0;
    border-top: 1px solid #ede7dc;
    border-radius: 0;
    background: transparent;
}
.explore-listing .explore-offer-label { color: #8a6540; font-size: 9px; letter-spacing: .04em; }
.explore-map-floating-card {
    left: calc(var(--explore-gap) + var(--explore-panel-width) + 16px);
    top: var(--explore-gap);
    max-width: min(310px, calc(100% - var(--explore-panel-width) - 130px));
    padding: 12px 16px;
    border-color: var(--explore-line);
    border-radius: 18px;
    background: var(--explore-glass);
    box-shadow: var(--explore-shadow);
    color: #28565d;
}
.explore-map-floating-card strong { color: #214d54; font-size: 14px; }
.explore-map-floating-card > span { color: #52776f; }
.explore-map-floating-card .explore-map-legend span { color: #526d70; }
.explore-search-area { top: 126px; left: calc(50% + var(--explore-panel-width) / 2); box-shadow: 0 6px 24px #21434a26; }
.explore-preview { border-color: var(--explore-line); box-shadow: var(--explore-shadow); }
/* Merchant preview: a quiet reading surface with a light blue tint. */
.explore-preview { --preview-space: 22px; background: linear-gradient(155deg, #edf7faf7, #fffffffa 52%); border-radius: 26px; box-shadow: 0 20px 56px #193d4b24, 0 3px 12px #193d4b0d; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.explore-preview .explore-merchant-history { padding: 10px 58px 10px 14px; border-bottom-color: #dbe8ed; }
.explore-preview .explore-merchant-history button { border-color: transparent; background: #ffffff80; color: #426570; border-radius: 12px; font-weight: 500; }
.explore-preview .explore-merchant-history button:not(:disabled):hover { background: #e5f1f5; border-color: #cbdfe6; }
.explore-preview .explore-merchant-history button:disabled { background: transparent; opacity: .4; }
.explore-preview .explore-preview-close { background: #ffffffed; border-color: #dde9ed; box-shadow: 0 2px 8px #193d4b0a; }
.explore-preview .explore-map-popup { padding: var(--preview-space); }
.explore-preview .explore-gallery { margin: calc(-1 * var(--preview-space)) calc(-1 * var(--preview-space)) 20px; border-radius: 0 0 18px 18px; }
.explore-preview .explore-merchant-category { padding: 0; border: 0; background: transparent; margin-bottom: 14px; font-size: 10px; letter-spacing: .05em; }
.explore-preview .explore-map-popup-head { gap: 12px; margin-bottom: 20px; }
.explore-preview .explore-map-popup-head > :is(img, .explore-image-fallback) { width: 50px; height: 50px; border: 1px solid #e4ecef; border-radius: 15px; background: #fff; box-shadow: 0 3px 10px #193d4b08; }
.explore-preview .explore-map-popup-head h4 { font-size: 19px; font-weight: 650; line-height: 1.4; letter-spacing: -.02em; margin-bottom: 10px; }
.explore-preview .explore-map-popup-head > div > span { background: #eaf4f1; border-color: #d9eae4; color: #357267; padding: 5px 9px; font-weight: 600; }
.explore-preview .explore-map-popup > p:not(.explore-route-budget-note) { align-items: baseline; margin: 0; padding: 11px 0; border: 0; border-bottom: 1px solid #e5edef; border-radius: 0; background: transparent; color: #536a73; gap: 12px; font-size: 13px; line-height: 1.65; }
.explore-preview .explore-map-popup > p > i { color: #739397; }
.explore-preview .explore-map-popup-promo { margin-top: 16px; padding: 12px 14px; border-color: #eee2cd; background: #fcf7ed; border-radius: 14px; }
.explore-preview .explore-popup-promo-heading { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: 11px; font-weight: 600; }
.explore-preview .explore-popup-promo-counter { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.explore-preview .explore-popup-promotion { display: flex; align-items: center; gap: 12px; min-width: 0; }
.explore-preview .explore-popup-promotion[hidden] { display: none; }
.explore-preview .explore-map-popup-promo .explore-offer-controls button { width: 36px; height: 36px; }
.explore-preview .explore-popup-promo-image { display: block; flex: 0 0 72px; width: 72px; height: 88px; object-fit: contain; border-radius: 8px; background: #fff; }
.explore-preview .explore-popup-promo-title { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.explore-preview .explore-popup-promo-title > i { flex: 0 0 auto; }
.explore-preview .explore-popup-promo-title > span { min-width: 0; overflow-wrap: anywhere; }
.explore-preview .explore-popup-actions { margin: 20px calc(-1 * var(--preview-space)) calc(-1 * var(--preview-space)); padding: 15px var(--preview-space); border-top-color: #e2ebee; background: #f8fbfcf5; box-shadow: 0 -4px 16px #193d4b04; backdrop-filter: blur(6px); }
.explore-preview .explore-popup-actions :is(button,a) { border-radius: 13px; font-weight: 600; }
.explore-preview .explore-route-start { background: #edf5f4; border-color: #cedfdb; color: #326b62; }
.explore-preview .explore-details-action { background: linear-gradient(135deg, #ed6575, #d94e68); box-shadow: 0 4px 10px #d94e681a; }
[data-map-theme="dark"] .explore-preview .explore-merchant-history button { background: #244452; color: #e5f2f4; }
[data-map-theme="dark"] .explore-preview .explore-merchant-history button:not(:disabled):hover { background: #315766; border-color: #527681; }
.explore-filter-panel { border: 1px solid var(--explore-line); background: #f7faf9; box-shadow: var(--explore-shadow); }
.explore-map-page :is(input, select):focus-visible { outline: 3px solid #318eaa; outline-offset: 2px; }
@media (min-width: 992px) {
    .explore-map-sidebar.is-collapsed-desktop { visibility: hidden; pointer-events: none; }
    .explore-map-page[data-places-collapsed="true"] .explore-map-floating-card { left: var(--explore-gap); top: 84px; }
    .explore-map-page[data-places-collapsed="true"] .explore-search-area { left: 50%; }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .explore-map-page { --explore-gap: 14px; --explore-panel-width: 350px; }
}
@media (max-width: 991px) {
    .explore-map-page { --explore-gap: 12px; }
    .explore-map-sidebar { top: auto; bottom: 0; left: 0; width: 100%; padding: 0 12px env(safe-area-inset-bottom, 0px); border-radius: 20px 20px 0 0; }
    .explore-sidebar-toggle { display: none; }
    .explore-mobile-toolbar { background: var(--explore-list-glass); border-color: var(--explore-line); border-radius: 20px; box-shadow: 0 12px 32px #203b4a24, 0 2px 8px #203b4a0a; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
    .explore-listing .explore-place-card { padding: 14px; margin-bottom: 10px; border-radius: 16px; }
    :is(.explore-listing,.ask-explore-results) .explore-merchant-meta { margin-bottom: 8px; }
    :is(.explore-listing,.ask-explore-results) .explore-merchant-facts { margin-top: 11px; }
    :is(.explore-listing,.ask-explore-results) .explore-merchant-name h3 { font-size: 14px; }
    .explore-mobile-toolbar .explore-compact-btn { min-width: 40px; min-height: 44px; }
    .explore-mobile-toolbar .explore-compact-controls { gap: 12px; background: transparent; border: 0; border-radius: 0; }
    .explore-mobile-toolbar .explore-compact-location { flex: 0 1 auto; max-width: calc(100% - 188px); padding: 0; border: 0; border-radius: 0; background: transparent; }
    .explore-mobile-toolbar .explore-compact-actions { margin-left: auto; }
    .explore-mobile-toolbar .explore-compact-btn:not(.is-primary),
    .explore-ask-host .ask-current-location.explore-compact-btn { background: #f7fbfbd9; border-color: #d8e6ec; color: #496b78; border-radius: 13px; }
    .explore-mobile-toolbar .explore-compact-actions { gap: 4px; }
    .explore-mobile-toolbar .explore-location-main { flex-wrap: nowrap; margin-top: 0; }
    .explore-mobile-toolbar #exploreLocationText { display: block; flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: #365d6b; }
    .explore-mobile-toolbar .explore-location-name { flex: 0 0 24px; min-height: 44px; }
    .explore-map-floating-card { display: none; }
    .explore-search-area { top: calc(var(--explore-toolbar-bottom, 148px) + 12px); left: 50%; max-width: calc(100% - 100px); white-space: normal; text-align: center; }
    .explore-travel-services-fab { top: calc(var(--explore-toolbar-bottom, 148px) + 12px); }
    .explore-map-sidebar[data-sheet="full"] { height: max(120px, calc(100% - var(--explore-toolbar-bottom, 148px) - 12px)); }
    .explore-preview { max-height: max(100px, calc(100% - var(--explore-toolbar-bottom, 148px) - 104px)); }
    .explore-preview { --preview-space: 18px; }
    .explore-preview[data-size="full"] .explore-popup-actions .explore-preview-expand { grid-column: 1 / -1; background: transparent; border-color: transparent; color: #55747d; }
    .explore-filter-panel { top: max(16px, env(safe-area-inset-top)); bottom: max(16px, env(safe-area-inset-bottom)); max-height: none; }
}
/* Mobile merchant previews retain the desktop card hierarchy. */
@media (max-width: 991px) {
    .explore-preview { max-width: 440px; margin-inline: auto; border-radius: 24px; --preview-space: 20px; }
    .explore-preview .explore-map-popup-head > :is(img, .explore-image-fallback) { width: 56px; height: 56px; border-radius: 16px; }
    .explore-preview[data-size="summary"] .explore-map-popup-head { margin-bottom: 12px; }
    .explore-preview[data-size="summary"] .explore-map-popup-head h4 { font-size: 18px; line-height: 1.4; }
    .explore-preview[data-size="summary"] .explore-map-popup > p:not(.explore-route-budget-note) { display: flex; padding-block: 9px; font-size: 12px; }
    .explore-preview[data-size="summary"] .explore-details-action { display: inline-flex; }
    .explore-preview[data-size="summary"] .explore-popup-actions { margin-top: 16px; row-gap: 6px; }
    .explore-preview[data-size="summary"] .explore-popup-actions .explore-preview-expand { grid-column: 1 / -1; order: 3; background: transparent; border-color: transparent; color: #55747d; font-size: 12px; }
    [data-map-theme="dark"] .explore-preview .explore-popup-actions .explore-preview-expand { color: #c0d9df; }
}
/* Align merchant identity and complete details consistently in every preview size. */
.explore-preview .explore-map-popup-head { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: start; gap: 14px; margin-bottom: 16px; }
.explore-preview .explore-map-popup-head > div { min-width: 0; }
.explore-preview .explore-map-popup-head > :is(img, .explore-image-fallback) { width: 64px; height: 64px; padding: 7px; object-fit: contain; background: #fff; border-radius: 17px; }
.explore-preview .explore-popup-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.explore-preview .explore-popup-tags > span { max-width: 100%; padding: 4px 9px; border: 1px solid #dce9ee; border-radius: 999px; background: #eff6f8; color: #466674; font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.explore-preview .explore-map-popup > p:not(.explore-route-budget-note),
.explore-preview[data-size="summary"] .explore-map-popup > p:not(.explore-route-budget-note) { display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: start; gap: 12px; }
.explore-preview .explore-map-popup > p > i { padding-top: 4px; }
.explore-preview .explore-popup-address > span { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.explore-preview .has-route-planner > p:not(.explore-route-budget-note),
.explore-preview .has-route-planner > .explore-popup-tags { display: none; }
[data-map-theme="dark"] .explore-preview .explore-popup-tags > span { background: #294854; border-color: #456470; color: #dcecf0; }
@media (min-width: 576px) and (max-width: 991px) {
    :is(.explore-listing,.ask-explore-results) .explore-merchant-heading { grid-template-columns: 104px minmax(0, 1fr) auto; column-gap: 14px; }
    :is(.explore-listing,.ask-explore-results) .explore-merchant-heading > .explore-merchant-thumb { width: 104px; height: 104px; }
}
@media (max-width: 575px) {
    :is(.explore-listing,.ask-explore-results) .explore-merchant-heading { grid-template-columns: 64px minmax(0, 1fr) auto; column-gap: 9px; }
    :is(.explore-listing,.ask-explore-results) .explore-merchant-heading > .explore-merchant-thumb { width: 64px; height: 64px; padding: 7px; border-radius: 15px; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .explore-map-page { --explore-glass: #f5f9f7; --explore-list-glass: #f5f9f7; }
}
@media (prefers-reduced-transparency: reduce) {
    .explore-map-page { --explore-glass: #f5f9f7; --explore-list-glass: #f5f9f7; }
    .explore-map-sidebar, .explore-mobile-toolbar, .explore-preview, .explore-map-floating-card { backdrop-filter: none; -webkit-backdrop-filter: none; background: #f5f9f7; }
}

/* One type scale and one filter entry across the floating controls. */
.explore-map-page :is(.explore-compact-controls, .explore-category-toolbar, .explore-filter-summary) { font-family: inherit; }
.explore-map-page :is(.explore-compact-btn, .explore-quick-categories button, .explore-filter-open, .explore-reset-btn) { font-family: inherit; letter-spacing: normal; }
.explore-map-page .explore-compact-controls { padding: 6px 0 12px; gap: 10px; background: transparent; border: 0; border-bottom: 1px solid #d3dfe6; border-radius: 0; box-shadow: none; }
.explore-map-page .explore-compact-location { flex: 1; min-width: 0; }
.explore-map-page .explore-compact-location > span { font-size: 11px; line-height: 1.4; font-weight: 500; color: #617985; }
.explore-map-page #exploreLocationText { font-size: 15px; line-height: 1.4; font-weight: 600; color: #233f4b; letter-spacing: normal; }
.explore-map-page .explore-compact-actions { gap: 4px; flex-shrink: 0; }
.explore-map-page .explore-compact-btn { color: #486573; background: #fff9; border-color: #dce7ed; font-size: 14px; }
.explore-map-page .explore-category-toolbar { gap: 6px; margin: 10px 0; }
.explore-map-page .explore-quick-categories { padding: 3px 14px 3px 1px; gap: 6px; scrollbar-width: none; mask-image: linear-gradient(to right, #000 calc(100% - 12px), transparent); }
.explore-map-page .explore-quick-categories::-webkit-scrollbar { display: none; }
.explore-map-page .explore-quick-categories button { min-height: 38px; font-size: 13px; line-height: 1.25; font-weight: 600; padding: 7px 12px; gap: 6px; }
.explore-map-page .explore-quick-categories button:has(.explore-category-art) { padding: 4px 11px 4px 5px; }
.explore-map-page .explore-category-art { width: 28px; height: 28px; flex-basis: 28px; }
.explore-map-page .explore-category-order-icon { height: 36px; width: 36px; border-left: 1px solid #b3cbd4; border-radius: 0; font-size: 15px; }
.explore-map-page .explore-filter-summary { display: flex; align-items: center; gap: 6px; margin: 0; min-width: 0; }
.explore-map-page .explore-filter-open { display: flex; align-items: center; gap: 7px; min-height: 40px; flex: 1; min-width: 0; padding: 9px 10px; border: 1px solid #cddde5; border-radius: 10px; background: #ffffff66; color: #345360; text-align: left; }
.explore-map-page .explore-filter-open .explore-filter-label { flex-shrink: 0; font-size: 13px; line-height: 1.3; font-weight: 600; color: #284c59; }
.explore-map-page .explore-filter-open #exploreFilterSummaryText { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; line-height: 1.4; font-weight: 400; color: #536e7b; }
.explore-map-page .explore-filter-open > i { color: #527888; font-size: 12px; flex-shrink: 0; }
.explore-map-page .explore-filter-open .explore-filter-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #246d65; color: #fff; font-size: 11px; font-weight: 600; }
.explore-map-page .explore-filter-count[hidden], .explore-map-page .explore-reset-btn[hidden] { display: none; }
.explore-map-page .explore-filter-open.has-filters { border-color: #8fbdb7; background: #f0faf7f5; }
.explore-map-page .explore-reset-btn { min-height: 40px; padding: 8px; background: #f8fcfbe6; color: #43645d; border: 1px solid #d6e5e1; font-size: 12px; line-height: 1.4; border-radius: 10px; }
.explore-map-page .explore-filter-open:hover { border-color: #83aaa9; }
@media (min-width: 992px) {
    .explore-map-page .explore-results-tools { grid-template-columns: minmax(0, 1fr); padding-top: 0; }
    .explore-map-page .explore-results-header { display: none; }
}
@media (max-width: 991px) {
    .explore-map-space-button { margin-left: auto; }
    .explore-mobile-toolbar .explore-compact-controls { flex-wrap: nowrap; gap: 6px; margin-bottom: 0; padding: 0; background: transparent; border: 0; box-shadow: none; }
    .explore-mobile-toolbar .explore-compact-location { flex: 1; max-width: none; }
    .explore-mobile-toolbar .explore-compact-actions { width: auto; gap: 2px; }
    .explore-mobile-toolbar .explore-compact-btn { flex: 0 0 34px; width: 34px; min-width: 34px; min-height: 34px; padding: 4px; font-size: 12px; }
    .explore-mobile-toolbar .explore-location-name { min-height: 34px; }
    .explore-mobile-toolbar #exploreLocationText { font-size: 12px; }
    .explore-mobile-toolbar .explore-category-toolbar { margin: 2px 0; }
    .explore-mobile-toolbar .explore-quick-categories { gap: 4px; padding-block: 2px; }
    .explore-mobile-toolbar .explore-quick-categories button { min-height: 32px; padding: 4px 8px; gap: 4px; font-size: 11px; }
    .explore-mobile-toolbar .explore-quick-categories button:has(.explore-category-art) { padding: 3px 8px 3px 4px; }
    .explore-mobile-toolbar .explore-category-art { width: 20px; height: 20px; flex-basis: 20px; }
    .explore-mobile-toolbar .explore-category-order-icon { height: 32px; width: 32px; font-size: 13px; }
    .explore-mobile-toolbar .explore-filter-open, .explore-mobile-toolbar .explore-reset-btn { min-height: 32px; padding: 4px 7px; border-radius: 8px; gap: 5px; font-size: 11px; }
    .explore-mobile-toolbar .explore-filter-open #exploreFilterSummaryText { font-size: 11px; }
    .explore-mobile-toolbar .explore-filter-open > i { font-size: 11px; }
    .explore-mobile-toolbar .explore-filter-open .explore-filter-count { min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; }
}

/* Keep category controls distinct from the panel, including keyboard selection. */
@media (hover: hover) {
    .explore-map-page .explore-quick-categories button:not(.is-active):not([aria-pressed="true"]):hover { background: #e8f3f0; border-color: #679a8e; color: #214f46; }
    .explore-map-page .explore-quick-categories button.is-active:hover { background: #17574f; border-color: #17574f; }
}
.explore-map-page .explore-quick-categories button:focus-visible { outline: 2px solid #1e655d; outline-offset: -4px; }

/* Both disclosures reuse the existing controls and live filter summary. */
.explore-desktop-tools { display: contents; }
.explore-desktop-tools[hidden] { display: none; }
.explore-desktop-tools-toggle { display: none; }
.explore-tools-toggle { flex: 0 0 auto; min-height: 32px; padding: 4px 7px; border: 1px solid #cddde5; border-radius: 8px; background: #f8fcfb; color: #345360; font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; }
.explore-tools-toggle::after { content: '⌄'; display: inline-block; margin-inline-start: 5px; }
.explore-tools-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }
.explore-tools-toggle:focus-visible, #exploreApplyFilters:focus-visible { outline: 2px solid #247e80; outline-offset: 2px; }
@media (min-width: 992px) {
    .explore-desktop-tools-toggle { display: block; min-height: 40px; }
    .explore-filter-summary:has(.explore-desktop-tools-toggle) .explore-filter-label { display: none; }
}
.explore-filter-mobile-footer { display: none; }
@media (max-width: 991px) {
    .explore-mobile-toolbar { padding: 4px 6px; border-radius: 13px; max-height: calc(100% - 76px); overflow-y: auto; overscroll-behavior: contain; }
    .explore-mobile-toolbar .explore-modes { padding: 2px; border-radius: 10px; }
    .explore-mobile-toolbar .explore-modes button { min-height: 32px; padding: 4px 8px; gap: 4px; border-radius: 8px; font-size: 12px; line-height: 1.25; white-space: nowrap; }
    .explore-mobile-toolbar .explore-ask-orb { flex-basis: 18px; width: 18px; height: 18px; }
    .explore-mobile-toolbar .explore-modes::before { inset: 2px auto 2px 2px; width: calc((100% - 8px) / 2); border-radius: 8px; }
    .explore-mobile-toolbar .explore-modes:dir(rtl)::before { left: auto; right: 2px; }
    .explore-mobile-tools[hidden] { display: none; }
    .explore-mobile-tools { padding-top: 4px; }
    .explore-mobile-summary { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
    .explore-mobile-summary .explore-filter-summary { flex: 1; }
    .explore-mobile-summary .explore-filter-label { display: none; }
    .explore-mobile-toolbar[data-expanded="false"] .explore-reset-btn { display: none; }
    .explore-mobile-toolbar[data-expanded="true"] .explore-mobile-summary { position: sticky; bottom: -4px; padding: 2px 0; background: #f5f9f7; }
    .explore-filter-mobile-footer { display: block; position: sticky; bottom: -22px; padding: 12px 0 max(12px, env(safe-area-inset-bottom)); background: #f7faf9; }
    #exploreApplyFilters { width: 100%; min-height: 44px; border: 0; border-radius: 12px; padding: 10px 16px; background: #256d71; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
}
.explore-map-page .explore-quick-categories button.is-active:focus-visible { outline-color: #fff; }
