.explore-reference-page {
    --ex-bg: var(--bg);
    --ex-panel: rgba(255, 255, 255, .9);
    --ex-solid: #fff;
    --ex-text: #0a1735;
    --ex-muted: #61708a;
    --ex-subtle: #94a0b7;
    --ex-line: rgba(23, 46, 84, .12);
    --ex-blue: #1677ff;
    --ex-violet: #7348ff;
    --ex-pink: #ff4fa0;
    --ex-orange: #ff9017;
    --ex-shadow-sm: 0 10px 24px rgba(25, 49, 90, .08);
    --ex-shadow-md: 0 20px 56px rgba(31, 65, 116, .14);
    --ex-shadow-lg: 0 30px 70px rgba(45, 71, 133, .2);
    --ex-container: min(100% - 48px, 1210px);
    min-height: 100vh;
    padding-bottom: 48px;
    overflow: hidden;
    color: var(--ex-text);
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    background: transparent;
    margin-top: 60px;
}

[data-theme="dark"] .explore-reference-page {
    --ex-bg: #07142d;
    --ex-panel: rgba(13, 29, 59, .88);
    --ex-solid: #102244;
    --ex-text: #f8fbff;
    --ex-muted: #aebbd1;
    --ex-subtle: #7888a8;
    --ex-line: rgba(156, 185, 229, .16);
    --ex-shadow-sm: 0 10px 24px rgba(0, 0, 0, .2);
    --ex-shadow-md: 0 22px 62px rgba(0, 0, 0, .34);
    --ex-shadow-lg: 0 30px 70px rgba(0, 0, 0, .4);
}

.explore-reference-page *, .explore-reference-page *::before, .explore-reference-page *::after { box-sizing: border-box; }
.explore-reference-page a { color: inherit; text-decoration: none; }
.explore-reference-page button, .explore-reference-page input { font: inherit; }
.explore-reference-wrap, .explore-reference-page .container, .category-container { width: var(--ex-container); margin-inline: auto; }

.explore-reference-hero { position: relative; min-height: 390px; padding: 28px 0 24px; overflow: hidden; }
.explore-reference-hero::before {
    position: absolute;
    inset: 0 0 0 37%;
    background:
        linear-gradient(90deg, var(--ex-bg) 0%, color-mix(in srgb, var(--ex-bg) 78%, transparent) 23%, transparent 58%),
        linear-gradient(180deg, transparent, color-mix(in srgb, var(--ex-bg) 45%, transparent)),
        var(--explore-hero-image, linear-gradient(135deg,#b9d9ee,#557ca7)) center/cover no-repeat;
    filter: saturate(1.08);
    content: "";
}
[data-theme="dark"] .explore-reference-hero::before { opacity: .6; }
.explore-reference-breadcrumb { position: relative; z-index: 1; display: flex; gap: 12px; align-items: center; padding: 8px 0 32px; color: var(--ex-subtle); font-size: .8rem; font-weight: 700; }
.explore-reference-breadcrumb b { color: var(--ex-text); }
.explore-reference-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,510px) 1fr 230px; gap: 2rem; align-items: center; }
.explore-reference-copy h1 { margin: 0 0 20px 0; font-size: clamp(2.8rem,6vw,4.8rem); line-height: .98; font-weight: 800; letter-spacing: -.045em; }
.explore-title-gradient { display: block; color: transparent; background: linear-gradient(100deg,#05b9ff 2%,#5466ff 38%,#b14fff 68%,#ff8b14 96%); background-clip: text; -webkit-background-clip: text; margin-bottom:10px; height:100px }
.explore-reference-copy .spark { display: inline-grid; margin-left: .4rem; color: var(--ex-violet); font-size: 1.3rem; vertical-align: 2rem; animation: ex-twinkle 2.8s ease-in-out infinite; }
.explore-reference-copy p { max-width: 520px; margin: 0 0 1.5rem; color: var(--ex-muted); font-size: .94rem; line-height: 1.8; font-weight: 600; }
.explore-reference-search { max-width: 520px; }
.explore-reference-search-box { display: flex; min-height: 52px; align-items: center; border: 1px solid var(--ex-line); border-radius: 999px; background: var(--ex-panel); box-shadow: var(--ex-shadow-sm); backdrop-filter: blur(18px); }
.explore-reference-search-box:focus-within { border-color: rgba(22,119,255,.42); box-shadow: var(--ex-shadow-md); }
.explore-reference-search-box input { flex: 1; min-width: 0; padding: 0 22px; border: 0; outline: 0; color: var(--ex-text); background: transparent; }
.explore-reference-search-box button { display: grid; width: 48px; height: 48px; margin-right: 3px; place-items: center; border: 0; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--ex-blue), var(--ex-violet)); }
.explore-hero-info { grid-column: 3; padding: 1.35rem; border: 1px solid rgba(255,255,255,.2); border-radius: 18px; color: #fff; background: rgba(9,19,42,.84); box-shadow: 0 34px 90px rgba(35,57,106,.25); backdrop-filter: blur(18px); }
.explore-hero-info>span { color: #63dcff; font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.explore-hero-info h2 { margin: .65rem 0; color: #fff; font-size: 1.05rem; line-height: 1.35; }
.explore-hero-info p { margin: 0 0 .9rem; color: rgba(255,255,255,.78); font-size: .72rem; line-height: 1.7; }
.explore-hero-info a { color: #c998ff; font-size: .72rem; font-weight: 800; }

.category-shell { position: relative; z-index: 5; margin-top: -3px; }
.category-container { position:relative; padding:18px 20px 20px; overflow:hidden; border:1px solid var(--ex-line); border-radius:22px; background:linear-gradient(135deg,var(--ex-panel),color-mix(in srgb,var(--ex-violet) 5%,var(--ex-panel))); box-shadow:var(--ex-shadow-md); backdrop-filter:blur(24px); }
.category-container::before { position:absolute; inset:0 0 auto; height:3px; background:linear-gradient(90deg,#168cff,#704aff,#ee4d91,#ff9017); content:""; }
.category-heading { display:flex; align-items:end; justify-content:space-between; gap:1rem; margin-bottom:14px; }
.category-heading span { color:var(--ex-violet); font-size:.58rem; font-weight:900; letter-spacing:.09em; text-transform:uppercase; }
.category-heading h2 { margin:.2rem 0 0; color:var(--ex-text); font-size:1rem; }
.category-heading>small { color:var(--ex-muted); font-size:.62rem; font-weight:700; }
.category-row { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:10px; }
.category-chip { position:relative; display:grid; grid-template-columns:46px minmax(0,1fr); min-height:76px; padding:11px 12px; align-items:center; gap:10px; border:1px solid var(--ex-line); border-radius:15px; color:var(--ex-text); text-align:left; background:var(--ex-solid); cursor:pointer; transition:.22s ease; }
.category-chip .chip-icon { display:grid; width:46px; height:46px; place-items:center; border-radius:13px; color:var(--cat,#5665ff); font-size:1.15rem; background:color-mix(in srgb,var(--cat,#5665ff) 13%,transparent); box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--cat,#5665ff) 15%,transparent); }
.category-chip .chip-copy { min-width:0; }
.category-chip .chip-copy b,.category-chip .chip-copy small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.category-chip .chip-copy b { font-size:.7rem; }
.category-chip .chip-copy small { margin-top:.2rem; color:var(--ex-muted); font-size:.53rem; }
.category-chip>em { position:absolute; top:7px; right:8px; min-width:19px; padding:2px 5px; border-radius:999px; color:var(--cat); text-align:center; font-size:.48rem; font-style:normal; font-weight:900; background:color-mix(in srgb,var(--cat) 12%,transparent); }
.category-chip:hover, .category-chip.active { border-color: color-mix(in srgb, var(--cat, #5665ff) 45%, var(--ex-line)); background: color-mix(in srgb, var(--cat, #5665ff) 7%, transparent); box-shadow: 0 14px 30px color-mix(in srgb, var(--cat, #5665ff) 14%, transparent); transform: translateY(-3px); }
.category-chip:hover .chip-icon,.category-chip.active .chip-icon { color:#fff; background:var(--cat); transform:scale(1.04); }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 424px; gap: 22px; align-items: start; margin-top: 28px !important; }
.panel { border: 1px solid var(--ex-line); border-radius: 20px; background: var(--ex-panel); box-shadow: var(--ex-shadow-md); backdrop-filter: blur(24px); }
.destinations, .map-panel { padding: 22px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { margin: 0; color: var(--ex-text); font-size: clamp(1.12rem, 1.7vw, 1.42rem); font-weight: 800; }
.section-head a { color: var(--ex-violet); font-size: .78rem; font-weight: 800; }
.cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.destination-card { min-width: 0; overflow: hidden; border: 1px solid var(--ex-line); border-radius: 14px; background: var(--ex-solid); box-shadow: var(--ex-shadow-sm); cursor: pointer; transition: .25s ease; }
.destination-card:hover { border-color: rgba(22,119,255,.28); box-shadow: var(--ex-shadow-lg); transform: translateY(-6px); }
.card-media { position: relative; aspect-ratio: 1.52/1; overflow: hidden; background: #dbe6f4; }
.card-media::after { position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.38)); content: ""; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.destination-card:hover .card-media img { transform: scale(1.06); }
.tag { position: absolute; z-index: 2; bottom: 12px; left: 12px; padding: 5px 9px; border-radius: 999px; color: #fff; font-size: .65rem; font-weight: 800; background: var(--tag, #2fba6e); }
.favorite { position: absolute; z-index: 2; top: 10px; right: 10px; display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 50%; color: #62708a; background: rgba(255,255,255,.94); box-shadow: 0 8px 18px rgba(17,35,65,.17); }
.favorite.is-active { color: #fff; background: var(--ex-pink); }
.card-body { padding: 13px 14px 16px; }
.card-body h3 { overflow: hidden; margin: 0 0 9px; color: var(--ex-text); font-size: .95rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.meta { display: flex; align-items: center; gap: 12px; color: var(--ex-muted); font-size: .68rem; font-weight: 700; }
.meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta i { color: var(--ex-orange); }
.meta span:last-child i { color: var(--ex-subtle); }
.card-body p { min-height: 42px; margin: 11px 0; color: var(--ex-muted); font-size: .73rem; line-height: 1.55; }
.pill-row { display: flex; gap: 6px; }
.mini-pill { padding: 4px 9px; border-radius: 999px; color: var(--tone); font-size: .64rem; font-weight: 800; background: color-mix(in srgb, var(--tone) 12%, transparent); }
.pagination-wrapper { display: flex; justify-content: center; margin-top: 24px; }
.pagination-wrapper .pagination { margin: 0; }
.pagination-wrapper .page-link { border-color: var(--ex-line); color: var(--ex-text); background: var(--ex-solid); }
.pagination-wrapper .page-item.active .page-link { border-color: var(--ex-violet); color: #fff; background: var(--ex-violet); }
.pagination-wrapper .page-item.disabled .page-link { color: var(--ex-subtle); background: var(--ex-panel); }
.explore-load-more-wrap { display: grid; justify-items: center; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--ex-line); }
.explore-load-more { position: relative; width: min(100%, 320px); min-height: 62px; padding: 7px 9px; display: grid; grid-template-columns: 46px 1fr 38px; gap: 12px; align-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.22); border-radius: 18px; color: #fff; background: linear-gradient(120deg,#168bff 0%,#5966ff 38%,#794cff 70%,#b64ee9 100%); box-shadow: 0 15px 34px rgba(86,82,240,.27); cursor: pointer; text-align: left; transition: transform .25s ease,box-shadow .25s ease,filter .25s ease; }
.explore-load-more::before { position: absolute; inset: -100% -35%; background: linear-gradient(110deg,transparent 42%,rgba(255,255,255,.24) 50%,transparent 58%); transform: translateX(-45%); transition: transform .65s ease; content: ""; }
.explore-load-more:hover { transform: translateY(-3px); filter: saturate(1.08); box-shadow: 0 20px 44px rgba(86,82,240,.36); }
.explore-load-more:hover::before { transform: translateX(45%); }
.explore-load-icon,.explore-load-copy,.explore-load-action { position: relative; z-index: 1; }
.explore-load-icon { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.24); border-radius: 14px; background: rgba(255,255,255,.15); font-size: 1.08rem; }
.explore-load-copy { display: grid; gap: 3px; }.explore-load-copy b { font-size: .76rem; line-height: 1.3; }.explore-load-copy small { color: rgba(255,255,255,.76); font-size: .56rem; font-weight: 650; }
.explore-load-action { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.17); font-size: .72rem; transition: transform .25s; }.explore-load-more:hover .explore-load-action { transform: translateY(3px); }
.explore-load-more:focus-visible { outline: 3px solid color-mix(in srgb,var(--ex-violet) 38%,transparent); outline-offset: 4px; }.explore-load-more:disabled { cursor: wait; opacity: .82; filter: saturate(.7); }.explore-load-more.is-loading .explore-load-icon { animation: explore-load-pulse 1s ease-in-out infinite; }
.explore-load-status { min-height: 16px; margin: 9px 0 0; color: var(--ex-muted); font-size: .62rem; font-weight: 700; text-align: center; }.explore-card-loaded { animation: explore-card-in .48s ease both; animation-delay: calc(var(--load-index,0) * 60ms); }
@keyframes explore-card-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } } @keyframes explore-load-pulse { 50% { transform: scale(.9); opacity: .72; } }

.map-panel { position: sticky; top: 100px; min-width: 0; overflow: hidden; }
.map-panel > div { min-width: 0; }
.map-panel .section-head { flex-wrap: wrap; }
.map-subtitle { margin: 6px 0 0; color: var(--ex-muted); font-size: .73rem; }
.section-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--ex-line); border-radius: 50%; color: var(--ex-blue); background: var(--ex-solid); }
.text-link { white-space: nowrap; }
.map-frame { position: relative; isolation: isolate; width: 100%; max-width: 100%; height: 430px; overflow: hidden; border: 1px solid var(--ex-line); border-radius: 16px; background: #dfeaf4; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
#semarang-map { width: 100%; max-width: 100%; height: 100%; border-radius: inherit; }
.map-frame .leaflet-container { max-width: 100%; border-radius: inherit; }
.map-loading, .map-error { position: absolute; z-index: 700; inset: 50% auto auto 50%; display: grid; min-width: 180px; padding: 16px; place-items: center; gap: 7px; border-radius: 12px; color: var(--ex-muted); font-size: .73rem; background: var(--ex-solid); box-shadow: var(--ex-shadow-md); transform: translate(-50%,-50%); }
.map-loading[hidden], .map-error[hidden] { display: none !important; }
.map-error { width: min(280px, calc(100% - 32px)); text-align: center; }
.map-loading-spinner { width: 24px; height: 24px; border: 3px solid #dce9f5; border-top-color: var(--ex-blue); border-radius: 50%; animation: ex-spin .8s linear infinite; }
.map-error i { color: #ef5364; font-size: 1.25rem; }
.map-error button { padding: 7px 12px; border: 0; border-radius: 8px; color: #fff; background: var(--ex-blue); }
.map-search-box { position: absolute; z-index: 650; top: 14px; left: 14px; width: calc(100% - 82px); }
.search-input-group { display: flex; height: 44px; align-items: center; padding: 0 8px 0 13px; border: 1px solid var(--ex-line); border-radius: 11px; background: var(--ex-solid); box-shadow: var(--ex-shadow-sm); }
.search-input-group .search-icon { color: var(--ex-subtle); }
.map-search-input { flex: 1; min-width: 0; padding: 0 10px; border: 0; outline: 0; color: var(--ex-text); font-size: .74rem; background: transparent; }
.search-btn { border: 0; color: var(--ex-muted); background: transparent; }
.search-results-dropdown { display: none; max-height: 230px; margin-top: 6px; overflow-y: auto; border: 1px solid var(--ex-line); border-radius: 10px; background: var(--ex-solid); box-shadow: var(--ex-shadow-md); }
.search-results-dropdown.visible { display: block; }
.sitem { display: flex; gap: 10px; width: 100%; padding: 11px 13px; border: 0; border-bottom: 1px solid var(--ex-line); color: var(--ex-text); text-align: left; background: var(--ex-solid); }
.sitem i { color: var(--ex-blue); }
.sitem span { display: grid; }
.sitem b { color: var(--ex-text); font-size: .72rem; }
.sitem small { color: var(--ex-muted); font-size: .63rem; }
.sempty { padding: 18px; color: var(--ex-muted); text-align: center; font-size: .72rem; }
.map-controls { position: absolute; z-index: 650; top: 14px; right: 14px; display: grid; gap: 7px; }
.map-control-btn { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--ex-line); border-radius: 10px; color: var(--ex-text); background: var(--ex-solid); box-shadow: var(--ex-shadow-sm); }
.map-control-btn.active { color: #fff; background: var(--ex-blue); }
.map-legend { position: absolute; z-index: 650; right: 14px; bottom: 14px; display: flex; gap: 11px; padding: 8px 11px; border: 1px solid var(--ex-line); border-radius: 9px; color: var(--ex-muted); font-size: .62rem; background: var(--ex-solid); box-shadow: var(--ex-shadow-sm); }
.legend-dot { display: inline-block; width: 8px; height: 8px; margin-right: 4px; border-radius: 50%; background: var(--ex-violet); }
.legend-dot.user { background: #11b7ff; }
.route-panel { position: absolute; z-index: 680; right: 12px; bottom: 12px; left: 12px; display: none; padding: 15px; border: 1px solid var(--ex-line); border-radius: 13px; background: var(--ex-solid); box-shadow: var(--ex-shadow-lg); }
.route-panel.active { display: block; }
.route-panel-title { margin-bottom: 12px; font-size: .8rem; font-weight: 800; }
.route-input-group { display: grid; gap: 4px; margin-bottom: 8px; }
.route-input-label { color: var(--ex-muted); font-size: .62rem; font-weight: 800; }
.route-input { padding: 9px 11px; border: 1px solid var(--ex-line); border-radius: 8px; outline: 0; color: var(--ex-text); font-size: .72rem; background: var(--ex-panel); }
.route-actions { display: flex; gap: 8px; justify-content: end; }
.route-btn { padding: 8px 12px; border: 0; border-radius: 8px; font-size: .68rem; font-weight: 800; }
.route-btn.secondary { color: var(--ex-muted); background: var(--ex-panel); }
.route-btn.primary { color: #fff; background: var(--ex-blue); }
.map-stats { margin-top: 18px; }
.map-stat { display: grid; grid-template-columns: 28px 1fr auto 14px; gap: 8px; align-items: center; color: var(--ex-muted); font-size: .73rem; font-weight: 800; }
.map-stat i:first-child { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; color: #fff; background: var(--stat); }
.map-stat strong { color: var(--ex-text); }
.map-frame:fullscreen { width: 100vw; max-width: none; height: 100vh; border: 0; border-radius: 0; }

.leaflet-popup-content-wrapper, .leaflet-popup-tip { color: var(--ex-text); background: var(--ex-solid); }
.leaflet-popup-content-wrapper { border-radius: 13px; box-shadow: var(--ex-shadow-md); }
.leaflet-popup-content { margin: 0 !important; width: 245px !important; }
.mpopup { overflow: hidden; border-radius: 13px; }
.popup-img { height: 110px; }
.popup-img img { width: 100%; height: 100%; object-fit: cover; }
.p-pop { display: grid; height: 95px; place-items: center; color: #fff; font-size: 1.4rem; background: linear-gradient(135deg,var(--ex-blue),var(--ex-violet)); }
.mp-body { padding: 12px; }
.mp-cat { font-size: .62rem; font-weight: 900; text-transform: uppercase; }
.mp-body h3 { margin: 4px 0 6px; color: var(--ex-text); font-size: .88rem; }
.mp-body p { overflow: hidden; margin: 0 0 7px; color: var(--ex-muted); font-size: .65rem; text-overflow: ellipsis; white-space: nowrap; }
.p-rating { color: var(--ex-orange); font-size: .68rem; }
.mp-btn { display: block; margin-top: 9px; padding: 8px; border-radius: 7px; color: #fff !important; text-align: center; font-size: .66rem; font-weight: 800; background: var(--ex-blue); }

.lower-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(360px,1.06fr); gap: 22px; margin-top: 24px !important; }
.collection-panel { padding: 20px; }
.collection-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.collection-card { position: relative; min-height: 134px; overflow: hidden; border-radius: 13px; color: #fff !important; box-shadow: var(--ex-shadow-sm); }
.collection-card::after { position: absolute; inset: 0; background: linear-gradient(transparent,rgba(5,12,30,.82)); content: ""; }
.collection-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: .45s ease; }
.collection-card:hover img { transform: scale(1.08); }
.collection-card div { position: absolute; z-index: 2; right: 12px; bottom: 12px; left: 12px; }
.collection-card h3 { margin: 0 0 4px; color: #fff; font-size: .75rem; }
.collection-card span { font-size: .62rem; }
.planner { position: relative; display: grid; min-height: 210px; padding: 32px; align-items: center; overflow: hidden; }
.planner::before { position: absolute; inset: 0; background: linear-gradient(105deg,var(--ex-solid) 0 48%,color-mix(in srgb,var(--ex-violet) 16%,transparent)),var(--explore-planner-image, linear-gradient(135deg,#d9eaff,#8ca9d5)) right center/contain no-repeat; content: ""; }
.planner-copy { position: relative; z-index: 1; max-width: 58%; }
.planner h2 { margin: 0 0 10px; color: var(--ex-text); font-size: 1.4rem; }
.planner p { margin: 0 0 20px; color: var(--ex-muted); font-size: .8rem; line-height: 1.65; }
.primary-cta { display: inline-flex; min-height: 46px; padding: 0 22px; align-items: center; gap: 10px; border-radius: 999px; color: #fff !important; font-size: .76rem; font-weight: 800; background: linear-gradient(115deg,var(--ex-blue),var(--ex-violet) 55%,#b542ff); box-shadow: 0 16px 32px rgba(94,82,255,.3); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes ex-spin { to { transform: rotate(360deg); } }
@keyframes ex-twinkle { 50% { transform: scale(1.16) rotate(16deg); } }

@media (max-width: 1180px) {
    .explore-reference-hero-grid { grid-template-columns:minmax(0,1fr) 230px; }
    .explore-hero-info { grid-column:2; }
    .content-grid { grid-template-columns: 1fr; }
    .map-panel { position: static; display: grid; grid-template-columns: minmax(0,1fr) 250px; gap: 18px; }
    .map-stats { margin: 55px 0 0; }
    .lower-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .explore-reference-page { --ex-container:min(100% - 32px,1210px); }
    .explore-reference-hero::before { inset-left: 25%; opacity: .55; }
    .explore-reference-hero-grid { grid-template-columns:1fr; }
    .explore-hero-info { display:none; }
    .category-container { overflow-x:auto; }
    .category-row { display:flex; min-width:max-content; }
    .category-chip { min-width:180px; }
    .cards-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .map-panel { display:block; }
    .map-stats { margin-top:18px; }
}
@media (max-width: 620px) {
    .explore-reference-page { --ex-container:min(100% - 22px,1210px); }
    .explore-reference-hero { min-height:auto; }
    .explore-reference-hero::before { inset:85px 0 auto; height:250px; opacity:.2; }
    .explore-reference-copy h1 { font-size:2.65rem; }
    .category-container,.destinations,.map-panel { padding:14px; }
    .cards-grid { grid-template-columns:1fr; }
    .map-frame { height:390px; }
    .section-head { align-items:flex-start; flex-direction:column; }
    .section-actions { width:100%; justify-content:space-between; }
    .collection-grid { grid-template-columns:repeat(2,1fr); }
    .planner { padding:24px; }
    .planner-copy { max-width:72%; }
    .meta { align-items:flex-start; flex-direction:column; gap:5px; }
}
@media (prefers-reduced-motion: reduce) { .reveal { opacity:1; transform:none; transition:none; } }

/* Responsive hardening: tablet, phone, and narrow phone layouts. */
@media (max-width: 900px) {
    .explore-reference-hero { padding-top: 22px; }
    .explore-reference-breadcrumb { padding-bottom: 24px; }
    .explore-title-gradient { height: auto; min-height: 1.05em; margin-bottom: 8px; }
    .category-container { overflow: hidden; }
    .category-row { max-width: 100%; padding: 2px 2px 8px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; scroll-snap-type: x proximity; }
    .category-chip { scroll-snap-align: start; }
    .content-grid { margin-top: 20px !important; }
    .map-panel { width: 100%; }
}

@media (max-width: 620px) {
    .explore-reference-page { margin-top: 56px; padding-bottom: 32px; overflow-x: clip; }
    .explore-reference-hero { padding: 18px 0 20px; }
    .explore-reference-hero::before { inset: 68px 0 auto; height: 230px; background-position: 58% center; }
    .explore-reference-breadcrumb { gap: 8px; padding: 4px 0 20px; font-size: .7rem; }
    .explore-reference-copy h1 { margin-bottom: 14px; font-size: clamp(2.25rem, 12vw, 2.9rem); line-height: 1.02; overflow-wrap: anywhere; }
    .explore-reference-copy .spark { font-size: 1rem; vertical-align: 1.25rem; }
    .explore-reference-copy p { margin-bottom: 1.1rem; font-size: .82rem; line-height: 1.7; }
    .explore-reference-search-box { min-height: 48px; }
    .explore-reference-search-box input { width: 100%; padding: 0 14px; font-size: .76rem; }
    .explore-reference-search-box button { flex: 0 0 42px; width: 42px; height: 42px; }
    .category-shell { margin-top: 4px; }
    .category-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
    .category-heading h2 { font-size: .92rem; }
    .category-row { margin-inline: -2px; }
    .category-chip { min-width: 156px; min-height: 68px; grid-template-columns: 40px minmax(0,1fr); padding: 9px; }
    .category-chip .chip-icon { width: 40px; height: 40px; border-radius: 11px; font-size: 1rem; }
    .destinations, .map-panel { border-radius: 16px; }
    .section-head { gap: 9px; margin-bottom: 14px; }
    .section-head h2 { font-size: 1.05rem; line-height: 1.35; }
    .destination-card { border-radius: 13px; }
    .card-media { aspect-ratio: 16/10; }
    .card-body h3 { white-space: normal; line-height: 1.35; }
    .card-body p { min-height: 0; }
    .meta { flex-flow: row wrap; }
    .map-frame { height: min(410px, 72vh); min-height: 340px; border-radius: 13px; }
    .map-search-box { top: 10px; left: 10px; width: calc(100% - 66px); }
    .search-input-group { height: 40px; padding-inline: 10px 5px; }
    .map-search-input { padding-inline: 8px; font-size: .68rem; }
    .map-controls { top: 10px; right: 10px; gap: 6px; }
    .map-control-btn { width: 38px; height: 38px; }
    .map-legend { right: 10px; bottom: 10px; left: 10px; justify-content: center; gap: 8px; font-size: .56rem; }
    .route-panel { inset: auto 8px 8px; max-height: calc(100% - 20px); padding: 12px; overflow-y: auto; }
    .route-actions { flex-wrap: wrap; }
    .route-btn { flex: 1; min-height: 38px; }
    .map-stat { grid-template-columns: 28px minmax(0,1fr) auto; }
    .map-stat > i:last-child { display: none; }
    .collection-panel { padding: 14px; }
    .collection-grid { gap: 9px; }
    .planner { min-height: 240px; padding: 22px; }
    .planner::before { background: linear-gradient(90deg,var(--ex-solid) 0 58%,color-mix(in srgb,var(--ex-solid) 82%,transparent)),var(--explore-planner-image,linear-gradient(135deg,#d9eaff,#8ca9d5)) 72% center/cover no-repeat; }
    .planner-copy { max-width: 82%; }
    .planner h2 { font-size: 1.18rem; }
    .planner p { font-size: .72rem; }
}

@media (max-width: 390px) {
    .explore-reference-page { --ex-container: min(100% - 18px,1210px); }
    .explore-reference-copy h1 { font-size: 2.15rem; }
    .category-container, .destinations, .map-panel { padding: 11px; }
    .category-heading > small { font-size: .56rem; }
    .explore-load-more { grid-template-columns: 40px minmax(0,1fr) 30px; gap: 8px; border-radius: 15px; }
    .explore-load-icon { width: 40px; height: 40px; }
    .explore-load-action { width: 29px; height: 29px; }
    .collection-grid { grid-template-columns: 1fr; }
    .collection-card { min-height: 155px; }
    .planner-copy { max-width: 100%; }
    .planner::before { background: linear-gradient(90deg,color-mix(in srgb,var(--ex-solid) 96%,transparent),color-mix(in srgb,var(--ex-solid) 78%,transparent)),var(--explore-planner-image,linear-gradient(135deg,#d9eaff,#8ca9d5)) center/cover no-repeat; }
}
/* AJAX search states */
.explore-search-feedback{min-height:1.25rem;margin:-.25rem 0 .65rem;color:#64748b;font-size:.82rem}
.cards-grid.is-searching{opacity:.48;pointer-events:none;transition:opacity .2s ease}
.explore-reference-search.is-searching button i{animation:explore-search-spin .75s linear infinite}
@keyframes explore-search-spin{to{transform:rotate(360deg)}}
