/* Keep Leaflet panes/controls below the site header without changing their internal order. */
.aggregate-download { margin: 24px 0; padding: 24px; background: #fff; border: 1px solid #dce6ed; border-radius: 14px; }
.aggregate-download h2 { font-size: 22px; line-height: 1.35; margin: 8px 0; color: #12334e; }
.aggregate-download p { font-size: 14px; line-height: 1.65; color: #536a7c; }
.aggregate-download-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 14px; margin: 20px 0 12px; }
.aggregate-download label { display: block; font-size: 13px; font-weight: 600; color: #294b62; }
.aggregate-download select { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #bdcfdb; border-radius: 8px; padding: 8px; background: #fff; color: #17364d; }
.aggregate-download .aggregate-download-note { font-size: 12px; margin: 6px 0; }
.aggregate-download :focus-visible { outline: 3px solid #e6a62b; outline-offset: 2px; }
.map-button:disabled { opacity: .6; cursor: not-allowed; }
@media (max-width: 767.98px) { .aggregate-download-fields { grid-template-columns: minmax(0, 1fr); } .aggregate-download { padding: 18px; } }
.header-in-flow { position: relative; z-index: 9; background: #fff; }
.header-in-flow .mobile_menu { position: relative; }
.infografis-page-header {
    padding: 28px 0;
    background: linear-gradient(115deg, #f2f8fa, #fff);
    border-bottom: 1px solid #e1eaf0;
}
.infografis-header-content { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.infografis-intro { flex: 1 1 0; min-width: 0; }
.infografis-eyebrow { color: #08758d; font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.infografis-page-header h1 { margin: 8px 0 10px; color: #12334e; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.2; font-weight: 700; }
.infografis-page-header p { margin: 0; font-size: 14px; line-height: 1.6; color: #536a7c; }
.infografis-period-form { flex: 0 1 370px; min-width: 0; }
.infografis-period-form label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; color: #294b62; }
.infografis-period-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.infografis-period-controls select { width: 100%; min-width: 0; min-height: 44px; padding: 8px 28px 8px 12px; background: #fff; border: 1px solid #bdcfdb; border-radius: 8px; font-size: 14px; color: #17364d; }
.infografis-period-form p { font-size: 12px; margin-top: 7px; }
.infografis-period-form :focus-visible { outline: 3px solid #e6a62b; outline-offset: 2px; }
.infografis-period-form :disabled { opacity: .6; cursor: not-allowed; }
.infografis-content, .map-page { padding: 28px 0 64px; background: #f8fafc; }
.map-explorer { margin: 20px 0; background: #fff; border: 1px solid #dce6ed; border-radius: 18px; box-shadow: 0 12px 36px rgba(19, 52, 75, .08); overflow: hidden; color: #16334a; }
.map-heading { padding: 26px 28px 22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; background: linear-gradient(110deg, #eff8fa, #fff); border-top: 4px solid #0891b2; }
.map-explorer .map-eyebrow { font-size: 11px; letter-spacing: .12em; font-weight: 700; color: #08758d; }
.map-explorer h3 { font-size: 24px; line-height: 1.3; margin: 8px 0; color: #12334e; }
.map-explorer p { font-size: 14px; line-height: 1.65; color: #536a7c; margin: 0; }
.map-period { padding: 8px 12px; border: 1px solid #cfe3ea; background: #fff; border-radius: 30px; white-space: nowrap; font-size: 12px; font-weight: 600; }
.map-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; padding: 18px 24px; border-block: 1px solid #e3ebf0; }
.map-field { flex: 1 1 145px; min-width: 0; }
.map-field-search { flex-grow: 2; }
.map-explorer label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; color: #405b70; }
.map-explorer select { width: 100%; min-height: 44px; border: 1px solid #c9d7e2; border-radius: 8px; padding: 8px 30px 8px 12px; background: #fff; color: #17364d; font-size: 14px; }
.map-button { display: inline-block; max-width: 100%; box-sizing: border-box; min-height: 44px; padding: 10px 16px; background: #08758d; color: #fff; border: 1px solid #08758d; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; line-height: 22px; text-align: center; white-space: normal; overflow-wrap: anywhere; }
.map-button:hover { background: #075f73; color: #fff; }
.map-button-secondary { background: #fff; border-color: #c9d7e2; color: #27465c; }
.map-button-secondary:hover { background: #eaf4f7; color: #17364d; }
.map-explorer :focus-visible { outline: 3px solid #e6a62b; outline-offset: 3px; }
.map-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 248px; }
.map-canvas-wrap { min-width: 0; padding: 12px; background: #f7fafc; }
.map-explorer #map { width: 100%; height: 500px; background: #e8eef1; border: 1px solid #d6e1e8; border-radius: 10px; box-sizing: border-box; }
.map-message { padding: 12px 18px; background: #f7fafc; font-size: 13px; color: #415c70; display: flex; align-items: center; gap: 12px; min-height: 52px; }
.map-sidebar { padding: 20px 18px; border-left: 1px solid #e3ebf0; min-width: 0; overflow-wrap: anywhere; }
.map-sidebar > * { min-width: 0; max-width: 100%; }
.map-sidebar p { font-size: 13px; line-height: 1.65; }
.map-sidebar .map-button { width: 100%; font-size: 12px; padding: 9px 10px; }
.map-sidebar #infobox > .map-button { margin-top: 12px; }
.map-explorer h4 { font-size: 18px; line-height: 1.45; margin: 10px 0 12px; color: #17364d; }
.map-explorer h5 { font-size: 14px; color: #294b62; margin-bottom: 12px; }
.map-explorer .map-source, .map-tip { font-size: 12px; line-height: 1.7; color: #61788a; margin-top: 18px; padding-top: 16px; border-top: 1px solid #e3ebf0; }
.map-detail-list { padding: 0 4px 0 0; margin: 0; max-height: 330px; overflow-y: auto; scrollbar-gutter: stable; }
.map-detail-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 9ch); align-items: start; gap: 10px; padding: 10px 0; border-bottom: 1px solid #e3ebf0; font-size: 12px; line-height: 1.6; }
.map-detail-list li > * { min-width: 0; overflow-wrap: anywhere; }
.map-detail-list strong { color: #08758d; font-size: 14px; line-height: 1.5; white-space: normal; text-align: right; }
.map-legend { margin-top: 24px; }
#map-legend-items { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.map-legend-item { display: flex; align-items: center; gap: 7px; font-size: 11px; min-width: 0; }
.map-legend-item i { width: 14px; height: 14px; border: 1px solid rgba(0,0,0,.12); border-radius: 4px; flex-shrink: 0; }
.map-legend p { font-size: 11px; }
.map-footnote { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 12px 24px; background: #f7fafc; border-top: 1px solid #e3ebf0; color: #6b8191; font-size: 11px; }
.map-explorer [hidden] { display: none !important; }
@media (max-width: 991.98px) { .map-workspace { grid-template-columns: 1fr; } .map-sidebar { border-left: 0; border-top: 1px solid #e3ebf0; } #map-legend-items { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 991.98px) {
    .infografis-page-header { padding-top: 24px; }
    .infografis-header-content { flex-direction: column; align-items: stretch; gap: 20px; }
    .infografis-period-form { flex-basis: auto; max-width: 440px; width: 100%; }
    .map-sidebar .map-button { width: auto; }
}
@media (max-width: 359.98px) { .infografis-period-controls { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 575.98px) { .map-heading { flex-direction: column; padding: 20px; } .map-explorer h3 { font-size: 21px; } .map-toolbar { padding: 16px; } .map-explorer #map { height: 360px; } .map-page { padding-top: 20px; } .map-message { flex-wrap: wrap; } }
#map {
    position: relative;
    z-index: 0;
    isolation: isolate;
}

.map-explorer #map:focus:not(:focus-visible) {
    outline: none;
}
.map-explorer #map:focus-visible {
    outline: 3px solid #08758d;
    outline-offset: -4px;
}

@media (max-width: 575.98px) {
    #map {
        height: 360px;
        height: min(500px, 65vh);
        min-height: 280px;
    }
}
