.explore-page { background: #fbfdff; padding-bottom: 28px; }
.primary-nav a[aria-current="page"] { background: #eef8fc; color: var(--teal-dark); border-radius: 20px; padding-inline: 16px; }
.explore-page .container { width: min(1500px, calc(100% - 64px)); }
.explore-page h1, .explore-page h2 { font-family: var(--font-body); font-weight: 700; }
.explore-hero { position: relative; isolation: isolate; padding-bottom: 24px; color: #fff; overflow: hidden; }
.explore-hero>.hero-image { object-position: center 58%; z-index: -2; }
.explore-hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #00334ab5, #00334a30), linear-gradient(0deg, #00677b3b, transparent); }
.explore-hero .breadcrumbs { padding: 24px 0 10px; font-size: 15px; color: #fff; }
.explore-hero .breadcrumbs a { color: #fff; }
.explore-hero h1 { font-size: clamp(32px, 3vw, 46px); letter-spacing: -.8px; }
.explore-hero .container>p { color: #fff; font-size: 18px; margin-top: 5px; }
.explore-search { display: flex; align-items: center; gap: 14px; max-width: 780px; margin: 22px auto 18px; background: #fff; border: 1px solid white; border-radius: 40px; padding: 5px 6px 5px 20px; box-shadow: 0 6px 24px #00263825; color: var(--ink); }
.explore-search>.icon { color: #006680; }
.explore-search input { width: 100%; min-width: 0; height: 44px; border: 0; background: transparent; font-size: 16px; color: var(--ink); outline: none; }
.explore-search:focus-within { outline: 3px solid #98dae9; outline-offset: 3px; }
.explore-search .button { flex-shrink: 0; min-width: 140px; min-height: 44px; padding: 8px 20px; }
.explore-categories { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
.category-pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 20px; padding: 10px 15px; background: #fff; border: 2px solid #fff; color: var(--ink); font-size: 14px; font-weight: 600; box-shadow: 0 4px 10px #00374e10; }
.category-pill .icon { color: var(--teal); width: 20px; height: 20px; }
.category-pill:nth-child(3n) .icon { color: #1880ee; }
.category-pill:nth-child(4n) .icon { color: #ae54d6; }
.category-pill:hover { background: #e8f8fc; }
.category-pill.is-active { background: var(--teal); color: white; outline: 2px solid #ffffffa3; }
.category-pill.is-active .icon { color: white; }
.explore-layout { display: grid; grid-template-columns: 245px minmax(0, 1fr) 340px; grid-template-rows: auto 1fr; gap: 18px 22px; padding-top: 22px; align-items: start; }
.explore-sidebar { grid-column: 1; grid-row: 1 / 3; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); min-width: 0; }
.filter-disclosure>summary { display: none; }
#explore-filter-form { padding: 16px; }
.filter-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.filter-heading h2 { font-size: 20px; }
.filter-heading a { font-size: 13px; font-weight: 600; color: var(--teal-dark); }
#explore-filter-form fieldset { min-width: 0; margin: 0 0 15px; padding: 0 0 14px; border: 0; border-bottom: 1px solid var(--line); }
#explore-filter-form legend { margin: 0 0 8px; padding: 0; font-size: 16px; font-weight: 700; }
.filter-choice { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 8px; line-height: 1.5; font-size: 14px; cursor: pointer; }
.filter-choice input { margin: 4px 0 0; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--teal); }
.filter-choice .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--teal); }
.filter-choice small { color: var(--muted); font-size: 13px; }
.filter-note { font-size: 13px; }
.filter-apply { width: 100%; min-height: 44px; padding: 9px; font-size: 15px; border-radius: 12px; }
.explore-toolbar { grid-column: 2 / 4; grid-row: 1; display: flex; align-items: center; gap: 16px; min-width: 0; }
.explore-toolbar>p { font-size: 15px; color: var(--ink); flex: 1; }
.sort-control { display: flex; align-items: center; gap: 8px; font-size: 14px; white-space: nowrap; }
.sort-control select { border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: #fff; color: var(--ink); min-height: 42px; font-size: 15px; max-width: 170px; }
.view-switch { display: flex; gap: 8px; }
.view-switch button { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 12px; padding: 10px 16px; font-size: 14px; min-height: 42px; }
.view-switch .icon { width: 18px; }
.view-switch button[aria-pressed="true"] { background: var(--teal); color: #fff; border-color: var(--teal); }
.explore-results { grid-column: 2; grid-row: 2; min-width: 0; }
.explore-list { display: grid; gap: 14px; }
.explore-page .explore-card { display: grid; grid-template-columns: 32% minmax(0, 1fr); gap: 16px; padding: 7px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.explore-page .explore-card:hover { transform: none; box-shadow: 0 5px 20px #164d7217; }
.explore-photo { position: relative; min-height: 170px; }
.explore-photo>a { display: block; height: 100%; border-radius: 10px; overflow: hidden; }
.explore-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; border-radius: 10px; }
.explore-photo .image-tag { top: 10px; left: 10px; max-width: calc(100% - 52px); border: 1px solid white; background: #007f9de8; color: white; font-size: 12px; padding: 4px 10px; border-radius: 18px; }
.save-place { position: absolute; top: 7px; right: 7px; border: 0; background: #003e5a45; color: white; border-radius: 50%; width: 32px; height: 32px; display: grid; place-items: center; padding: 5px; }
.save-place .icon { width: 22px; height: 22px; }
.save-place[aria-pressed="true"] { color: #ee517e; background: #fff; }
.save-place[aria-pressed="true"] svg { fill: currentColor; }
.explore-card-body { min-width: 0; padding: 6px 5px 6px 0; display: flex; flex-direction: column; gap: 5px; }
.explore-page .explore-card h3 { font-size: 21px; line-height: 1.35; }
.explore-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; font-size: 14px; color: var(--muted); }
.explore-meta .icon { width: 15px; height: 15px; }
.explore-page .card-description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 16px; line-height: 1.5; margin: 2px 0 4px; min-height: 0; }
.explore-card-bottom { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-top: auto; }
.place-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.place-tags>span { display: inline-block; background: #eef5fd; border-radius: 9px; padding: 3px 8px; color: #375a7b; font-size: 12px; }
.detail-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 5px 12px; border: 1px solid #9bd7e6; color: #007995; border-radius: 22px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.detail-link .icon { width: 16px; }
.bounds-notice { font-size: 14px; padding: 10px 14px; margin-bottom: 12px; border-radius: 10px; background: #e9f6fc; }
.bounds-notice a { color: var(--teal-dark); text-decoration: underline; }
.explore-map-panel { grid-column: 3; grid-row: 2; position: sticky; top: 95px; border: 1px solid var(--line); border-radius: 14px; background: #e3f3f8; overflow: hidden; min-width: 0; box-shadow: var(--shadow); }
.admin-bar .explore-map-panel { top: 127px; }
.explore-map-shell { position: relative; height: min(66vh, 660px); min-height: 380px; }
#explore-map { position: absolute; inset: 0; background: #d9eff7; font-family: var(--font-body); }
.explore-map-status { position: absolute; top: 45%; left: 20px; right: 20px; transform: translateY(-50%); border-radius: 14px; background: #ffffffed; padding: 20px; text-align: center; font-size: 15px; pointer-events: none; }
.explore-map-tools { position: absolute; top: 12px; left: 12px; right: 54px; display: flex; flex-direction: column; align-items: start; gap: 8px; }
.explore-map-tools label, .explore-map-tools button { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border: 0; border-radius: 16px; background: #fffffff2; color: #164264; font-size: 12px; box-shadow: var(--shadow); }
.explore-map-tools input { accent-color: var(--teal); }
.map-locate { position: absolute; right: 10px; bottom: 36px; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--teal); box-shadow: var(--shadow); }
.map-caption { padding: 16px; margin: 0 10px 10px; background: white; border-radius: 12px; }
.map-caption strong { font-size: 17px; }
.map-caption p { font-size: 14px; line-height: 1.5; margin-top: 5px; }
.explore-marker { width: 30px; height: 30px; border: 2px solid white; border-radius: 50%; color: white; background: var(--teal); box-shadow: 0 3px 8px #123e5c40; cursor: pointer; }
.explore-popup { color: var(--ink); padding: 8px; font: 15px/1.5 var(--font-body); }
.explore-popup a { display: block; color: var(--teal-dark); text-decoration: underline; margin-top: 5px; }
.explore-layout.is-map-view .explore-map-panel { grid-column: 2 / 4; }
.explore-layout.is-map-view .explore-results { display: none; }
.explore-layout.is-map-view .explore-map-shell { height: 68vh; }
@media (max-width: 1250px) {
    .explore-layout { grid-template-columns: 210px minmax(0, 1fr) 285px; gap: 16px; }
    .explore-page .container { width: calc(100% - 40px); }
    #explore-filter-form { padding: 14px; }
    .explore-page .explore-card { gap: 12px; grid-template-columns: 34% minmax(0, 1fr); }
    .explore-page .explore-card h3 { font-size: 19px; }
    .view-switch button { padding-inline: 11px; }
}
@media (max-width: 1050px) {
    .explore-layout { grid-template-columns: 220px minmax(0, 1fr); }
    .explore-toolbar { grid-column: 2; flex-wrap: wrap; }
    .explore-toolbar>p { flex-basis: 100%; }
    .view-switch { margin-left: auto; }
    .explore-map-panel { grid-column: 2; grid-row: 3; position: static; }
    .explore-layout.is-map-view .explore-map-panel { grid-column: 2; grid-row: 2; }
    .explore-page .explore-card { grid-template-columns: 34% minmax(0, 1fr); }
}
@media (max-width: 700px) {
    .explore-page .container { width: calc(100% - 32px); }
    .explore-hero { padding-bottom: 20px; }
    .explore-hero .breadcrumbs { padding-top: 18px; font-size: 14px; }
    .explore-hero h1 { font-size: 33px; }
    .explore-hero .container>p { font-size: 16px; line-height: 1.6; }
    .explore-search { gap: 8px; padding-left: 13px; margin-top: 18px; }
    .explore-search .button { min-width: 78px; padding: 8px 11px; font-size: 14px; }
    .explore-search>.icon { width: 18px; }
    .explore-categories { justify-content: start; flex-wrap: nowrap; overflow-x: auto; padding: 3px 2px 8px; }
    .category-pill { flex-shrink: 0; font-size: 13px; padding: 9px 12px; }
    .explore-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 18px; }
    .explore-sidebar, .explore-toolbar, .explore-results, .explore-map-panel, .explore-layout.is-map-view .explore-map-panel { grid-column: 1; grid-row: auto; }
    .filter-disclosure>summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; cursor: pointer; font-weight: 700; list-style: none; }
    .filter-heading h2 { display: none; }
    .filter-heading { justify-content: flex-end; margin-bottom: 8px; }
    .explore-toolbar { gap: 10px; }
    .explore-toolbar>p { flex-basis: 100%; }
    .sort-control { font-size: 13px; gap: 5px; }
    .sort-control select { font-size: 14px; max-width: 145px; }
    .view-switch { gap: 5px; }
    .view-switch button { font-size: 13px; padding: 8px; }
    .view-switch .icon { display: none; }
    .explore-page .explore-card { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .explore-photo { min-height: 0; aspect-ratio: 1.9; }
    .explore-card-body { padding: 12px; gap: 7px; }
    .explore-page .explore-card h3 { font-size: 22px; }
    .explore-page .card-description { -webkit-line-clamp: 3; font-size: 16px; }
    .place-tags>span { font-size: 13px; }
    .detail-link { min-height: 38px; }
    .explore-map-shell { min-height: 380px; height: 55vh; }
}
