/* Geographic destination explorer. Leaflet owns marker projection and positioning. */
.location-map { height: clamp(240px, 40vw, 340px); isolation: isolate; border: 1px solid #CBD5E1; border-radius: 14px; background: #E7EFF1; }
.location-map[hidden], #coordinateGoogle[hidden] { display: none !important; }
.map-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 30px; }
.map-section-head > div { max-width: 730px; }
.map-section-head .section-title { font-size: clamp(1.8rem, 2.7vw, 2.5rem); }
.map-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--ocean-deep); font-size: .875rem; letter-spacing: .1em; font-weight: 700; }
.map-region { flex-shrink: 0; display: flex; align-items: center; gap: 8px; margin-bottom: 5px; padding: 10px 14px; border-radius: 12px; background: var(--very-light); font-size: .875rem; color: var(--ocean-deep); }
.explore-map { overflow: hidden; border: 1px solid #D8E3EB; border-radius: 24px; background: #fff; box-shadow: 0 16px 48px rgba(15, 52, 77, .09); }
.explore-map [hidden] { display: none !important; }
.explore-toolbar { display: flex; align-items: center; gap: 16px; padding: 20px 24px 12px; }
.map-search { flex: 1; position: relative; }
.map-search > .bi { position: absolute; top: 50%; left: 16px; transform: translateY(-50%); color: var(--ocean-deep); pointer-events: none; }
.map-search input { width: 100%; min-height: 48px; padding: 10px 16px 10px 44px; border: 1px solid #D8E3EB; border-radius: 12px; background: #F8FAFC; font: inherit; color: var(--navy); }
.map-search input::placeholder { color: #64748B; }
.map-fit { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 10px 16px; border: 1px solid #CEE4F0; border-radius: 12px; background: #F0F9FF; font-weight: 700; color: var(--ocean-deep); }
.map-fit:hover { background: #E0F2FE; }
.map-filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 24px 18px; }
.map-filter { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 14px; border: 1px solid #D8E3EB; border-radius: 999px; background: #fff; color: #475569; font-size: .875rem; font-weight: 600; }
.map-filter > .bi { color: var(--category-color, var(--ocean-deep)); }
.map-filter > span { min-width: 22px; padding: 0 6px; border-radius: 8px; background: #F1F5F9; font-size: .8rem; }
.map-filter:hover { border-color: var(--ocean-deep); }
.map-filter[aria-pressed="true"] { color: #fff; background: var(--ocean-deep); border-color: var(--ocean-deep); }
.map-filter[aria-pressed="true"] > .bi { color: #fff; }
.map-filter[aria-pressed="true"] > span { background: rgba(255, 255, 255, .18); }
.explore-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); border-top: 1px solid #E2E8F0; }
.map-sidebar { display: flex; flex-direction: column; min-width: 0; height: 560px; border-right: 1px solid #E2E8F0; }
.map-results-heading { padding: 20px 20px 14px; }
.map-results-heading h3 { font-size: 1.125rem; margin: 0 0 6px; }
.map-results-heading p { margin: 0; font-size: .875rem; color: var(--muted); }
.map-results { min-height: 100px; overflow-y: auto; flex: 1; overscroll-behavior: contain; padding: 0 10px 12px; scrollbar-width: thin; }
.map-result { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 14px 10px; border: 1px solid transparent; border-radius: 14px; color: var(--navy); }
.map-result + .map-result { margin-top: 4px; }
.map-result:hover, .map-result.is-selected { background: #F0F9FF; border-color: #BAE6FD; color: var(--navy); }
.map-result:focus-visible { outline-offset: -3px; }
.map-result img { width: 64px; height: 72px; object-fit: cover; border-radius: 10px; flex: none; }
.map-result-copy { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 3px; line-height: 1.35; }
.map-result-copy strong { font-size: 1rem; overflow-wrap: anywhere; }
.map-result-category { color: var(--ocean-deep); font-size: .8rem; font-weight: 700; }
.map-result-region { font-size: .875rem; color: #64748B; }
.map-result-rating { font-size: .8rem; color: #475569; }
.map-result-rating .bi { color: #B77908; }
.map-result-pin { color: var(--ocean-deep); font-size: 1rem; }
.explore-canvas { position: relative; min-width: 0; isolation: isolate; background: #E7EFF1; }
.geographic-map { height: 560px; width: 100%; z-index: 0; font-family: var(--font-body); background: #E7EFF1; }
.geographic-map:focus-visible { outline-offset: -4px; }
.geographic-map .leaflet-control-attribution { font-size: .75rem; max-width: 100%; }
.geographic-map .leaflet-control-scale { margin-bottom: 8px; }
.geographic-map .leaflet-tooltip { padding: 7px 11px; border-radius: 8px; font-family: var(--font-body); font-size: .875rem; font-weight: 600; }
.destination-marker { background: transparent; border: 0; }
.destination-marker-symbol { position: absolute; left: 6px; top: 2px; width: 32px; height: 32px; border: 3px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--marker-color, #0369A1); box-shadow: 0 3px 9px rgba(15, 23, 42, .35); }
.destination-marker-symbol::after { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: #fff; }
.destination-marker.is-selected .destination-marker-symbol { background: #0F172A; box-shadow: 0 0 0 5px rgba(3, 105, 161, .25), 0 3px 9px rgba(15, 23, 42, .35); }
.destination-marker:focus-visible { outline: 3px solid #0F172A; border-radius: 12px; }
.explore-controls { position: absolute; z-index: 2; top: 16px; right: 16px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #CBD5E1; border-radius: 12px; box-shadow: var(--shadow-sm); }
.explore-controls button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; color: var(--navy); background: #fff; font-size: 1.125rem; }
.explore-controls button + button { border-top: 1px solid #E2E8F0; }
.explore-controls button:hover:not(:disabled) { color: var(--ocean-deep); background: var(--very-light); }
.explore-controls button:focus-visible { outline-offset: -3px; }
.explore-map button:disabled { cursor: not-allowed; opacity: .5; }
.map-notice { position: absolute; z-index: 2; top: 16px; left: 16px; max-width: calc(100% - 92px); padding: 10px 14px; border: 1px solid #D8E3EB; border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); font-size: .875rem; }
.map-notice button { display: block; margin-top: 6px; padding: 8px 0; border: 0; background: transparent; color: var(--ocean-deep); font-weight: 700; text-decoration: underline; }
.place-preview { position: relative; flex-shrink: 0; margin: 0 14px 12px; padding: 16px; border: 1px solid #BAE6FD; border-radius: 14px; background: #F0F9FF; }
.place-category { display: block; padding-right: 30px; color: var(--ocean-deep); font-size: .8rem; font-weight: 700; }
.place-preview h3 { margin: 7px 24px 8px 0; font-size: 1.125rem; overflow-wrap: anywhere; }
.place-address { margin-bottom: 8px; font-size: .875rem; line-height: 1.45; max-height: 3.9em; overflow-y: auto; overflow-wrap: anywhere; }
.place-coordinates { margin: 0 0 12px; font-size: .8rem; color: #475569; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.place-actions { display: grid; gap: 4px; text-align: center; }
.place-actions .btn { min-height: 44px; font-size: .875rem; padding: 9px; border-radius: 10px; }
.place-detail, .place-google { min-height: 36px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .875rem; font-weight: 600; }
.place-detail:hover, .place-google:hover { text-decoration: underline; }
.place-close { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; border: 0; border-radius: 12px; color: #475569; background: transparent; }
.place-close:hover { color: var(--navy); background: #E0F2FE; }
.map-empty { padding: 28px 20px; text-align: center; color: #64748B; }
.map-empty > .bi { display: block; margin-bottom: 12px; font-size: 2rem; color: var(--ocean-deep); }
.map-empty strong { display: block; margin-bottom: 8px; color: var(--navy); }
.map-empty p { font-size: .875rem; }
.map-empty a { display: block; margin-top: 12px; font-size: .875rem; }
.map-missing-note { padding: 12px 20px; margin: 0; border-top: 1px solid #E2E8F0; font-size: .8rem; color: var(--muted); }
.explore-footer { display: flex; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid #E2E8F0; font-size: .875rem; color: #64748B; }
.explore-footer .bi { color: var(--ocean-deep); margin-right: 5px; }
.map-no-script { margin: 0; padding: 16px 24px; background: #FFF7ED; }
@media (max-width: 1199.98px) {
    .map-section-head { display: block; }
    .map-region { display: inline-flex; margin-top: 18px; }
    .explore-layout { grid-template-columns: 300px minmax(0, 1fr); }
    .explore-footer { flex-direction: column; gap: 4px; }
}
@media (max-width: 767.98px) {
    .explore-map { border-radius: 18px; }
    .explore-toolbar { flex-wrap: wrap; gap: 10px; padding: 16px 14px 12px; }
    .map-search { flex-basis: 100%; }
    .map-fit { width: 100%; min-height: 44px; }
    .map-filters { padding: 0 14px 14px; flex-wrap: nowrap; overflow-x: auto; }
    .map-filter { flex-shrink: 0; }
    .explore-layout { display: flex; flex-direction: column; }
    .explore-canvas { order: -1; }
    .geographic-map { height: 360px; }
    .map-sidebar { height: auto; border-right: 0; border-top: 1px solid #E2E8F0; }
    .map-results { max-height: 265px; min-height: 0; flex: auto; }
    .map-results-heading { padding: 18px 20px 12px; }
    .place-preview { margin: 0 14px 12px; }
    .place-actions { grid-template-columns: 1fr 1fr; gap: 8px; }
    .place-google { grid-column: 1 / -1; }
    .place-detail { border: 1px solid #BAE6FD; border-radius: 10px; padding: 6px; }
    .explore-footer { padding: 12px 16px; }
}
