.geographic-panel { color: #374334; min-width: 0; margin-bottom: 16px; }
.geo-title { font-size: 17px; line-height: 1.6; margin: 2px 0 7px; }
.geo-intro, .geo-caution, .geo-base-note, .geo-legend, .geo-status { font-size: 12px; line-height: 1.8; margin: 8px 0 12px; }
.geo-intro, .geo-base-note { color: #74776b; }
.geographic-map { width: 100%; height: 380px; border-radius: 10px; border: 1px solid #bac8b0; background: #c9e9ef; z-index: 0; font-family: inherit; }
.geo-era { font-size: 11px; letter-spacing: .08em; font-weight: 600; color: #7d754d; margin: 2px 0 10px; }
.atlas-water-label { background: transparent; border: 0; color: #387d99; font-size: 13px; font-weight: 650; line-height: 1.5; text-align: center; white-space: pre-line; text-shadow: 0 1px 2px #fff9; }
.atlas-north { color: #647553; font-size: 13px; white-space: pre-line; text-align: center; line-height: 1.3; padding: 7px; border-radius: 6px; background: #fff9; }
.geographic-map img.leaflet-tile { max-width: none !important; max-height: none !important; }
.geo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 14px; }
.geo-actions button, .geo-actions a { min-height: 42px; border: 1px solid #bac5aa; border-radius: 7px; background: #fffdf7; color: #3e4e33; padding: 9px 12px; font-size: 12px; line-height: 1.6; cursor: pointer; text-decoration: none; }
.geo-actions button[aria-pressed="true"] { color: #fff; background: #526344; }
.geo-actions [hidden] { display: none; }
.geo-view-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 12px 0 8px; }
.geo-view-switch button { min-width: 0; min-height: 44px; font-weight: 600; }
.geo-nation-key { font-size: 11px; line-height: 1.8; color: #77644e; margin: 0 0 10px; }
.geo-caution { padding: 11px 12px; border-left: 3px solid #a38354; background: #f1ecde; }
.geo-dot { display: inline-block; width: 11px; height: 11px; border: 2px solid #567146; border-radius: 50%; background: #fffdf7; vertical-align: middle; }
.geo-dash { display: inline-block; width: 22px; border-top: 3px dashed #315fb5; vertical-align: middle; }
.geo-marker { background: transparent; border: 0; }
.geo-route-arrow { background: transparent; border: 0; }
.geo-route-arrow span { display: block; width: 20px; height: 16px; background: #315fb5; clip-path: polygon(0 0, 100% 50%, 0 100%, 28% 50%); }
.geo-direction { font-size: 13px; font-weight: 600; margin: 8px 0; color: #31558d; }
.geo-marker span { display: grid; place-items: center; width: 28px; height: 28px; margin: 2px; border-radius: 50%; border: 2px solid #fffdf7; background: #b94c3f; color: white; font-size: 13px; font-weight: 700; box-shadow: 0 1px 4px #0003; }
.geo-label { border: 1px solid #96ab71; border-radius: 3px; padding: 4px 8px; background: #e5edb9; color: #33402c; box-shadow: 0 1px 3px #0002; font-size: 14px; font-weight: 700; }
.geo-country-marker { background: transparent; border: 0; text-align: center; }
.geo-country-marker span { display: inline-block; padding: 3px 7px; background: #fff6e8; border: 1px solid #ad9271; border-radius: 12px; color: #725335; font-size: 12px; font-weight: 700; line-height: 18px; white-space: nowrap; box-shadow: 0 1px 3px #0002; }
.geo-country-marker.is-direct span { background: #775137; border-color: #775137; color: #fffaf0; }
.geo-country-marker.is-selected span, .geo-marker.is-selected span { outline: 3px solid #405a34; outline-offset: 3px; }
.geographic-map path.is-selected { stroke: #223e85; stroke-width: 8px; }
.geo-selection { position: relative; min-width: 0; margin-top: 8px; border: 1px solid #b8c4a8; border-radius: 10px; background: #fffdf7; overflow-wrap: anywhere; }
.geo-selection[hidden] { display: none; }
.geo-selection:not([hidden]) ~ .geo-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.geo-selection-details > summary { display: grid; gap: 3px; min-height: 44px; padding: 12px 52px 12px 14px; list-style: none; cursor: pointer; }
.geo-selection-details > summary::-webkit-details-marker { display: none; }
.geo-selection-title { font-size: 14px; line-height: 1.6; }
.geo-selection-preview { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; line-height: 1.6; color: #74776b; }
.geo-selection-action { font-size: 12px; line-height: 1.7; color: #405a34; font-weight: 600; }
.geo-selection-close { position: absolute; top: 3px; right: 3px; width: 44px; height: 44px; border: 0; border-radius: 8px; background: transparent; color: #526344; font-size: 24px; cursor: pointer; }
.geo-selection-close:hover { background: #eef0e5; }
.geo-selection-body { border-top: 1px solid #dde1d3; padding: 0 14px 12px; font-size: 13px; line-height: 1.85; }
.geo-selection-body p { margin: 12px 0; }
.geo-selection-body a { display: block; width: fit-content; max-width: 100%; min-height: 44px; padding: 10px 0; color: #405a34; text-underline-offset: 3px; }
.geo-evidence { border-top: 1px solid #d3d5c8; margin-top: 14px; }
.geo-evidence summary { cursor: pointer; font-size: 13px; font-weight: 600; padding: 14px 0; min-height: 44px; line-height: 1.7; }
.geo-places { margin: 0; padding-left: 24px; }
.geo-places li, .geo-route-source { font-size: 12px; line-height: 1.8; margin: 0 0 18px; overflow-wrap: anywhere; }
.geo-places strong { display: block; font-size: 14px; }
.geo-places span { display: block; color: #74776b; }
.geo-places p, .geo-route-source p { margin: 6px 0; }
.geo-credit { font-size: 11px; line-height: 1.8; color: #74776b; }
.geo-evidence a { color: #405a34; text-underline-offset: 3px; }
.geographic-panel :focus-visible { outline: 2px solid #647b4e; outline-offset: 3px; }
.geographic-map .leaflet-control-attribution { max-width: 100%; white-space: normal; font-size: 10px; background: #fffffff2; }
.geographic-map .leaflet-control-zoom a { width: 34px; height: 34px; line-height: 34px; }
.geo-page { margin: 0; background: #f4f0e6; }
.geo-page-main { max-width: 1100px; margin: 0 auto; padding: 20px 24px 40px; }
.geo-page-header { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 6px 0 24px; }
.geo-page-header a { color: #405a34; }
.geo-page .geo-title { font-size: 25px; }
.geo-page .geographic-map { height: min(65vh, 620px); min-height: 350px; }
@media (max-width: 480px) {
    .geo-page-main { padding: 18px 14px 30px; }
    .geo-page .geo-title { font-size: 21px; }
    .geographic-map { height: 340px; }
    .geo-actions { gap: 6px; }
    .geo-actions button, .geo-actions a { padding-inline: 9px; }
}
.geo-area-label { background: rgba(237,241,210,.92); border: 1px dashed #839266; border-radius: 12px; color: #435538; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; box-shadow: 0 2px 6px #43553818; }
.geo-area-label:focus-visible { outline: 3px solid #456243; outline-offset: 3px; }
.geographic-map .leaflet-image-layer { max-width: none !important; max-height: none !important; }
.geo-label { background: #fffef6ed; color: #38462f; border: 1px solid #899879; border-radius: 6px; padding: 5px 9px; font-size: 13px; box-shadow: 0 2px 5px #26331b24; }
.geo-locator { padding: 5px; border: 1px solid #afbba5; border-radius: 8px; background: #fffdf7ee; box-shadow: 0 2px 8px #26331b20; }
.geo-locator-caption { font-size: 9px; color: #526344; text-align: center; padding: 0 1px 4px; }
.geo-locator-map { width: 94px; height: 105px; background: #c9e9ef; border-radius: 3px; }
.geo-terrain-key { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; font-size: 10px; color: #68745d; margin: 8px 0 12px; }
.geo-terrain-key[hidden] { display:none; }
.geo-terrain-key span { width: 12px; height: 12px; border-radius: 3px; background: #eae8cb; border: 1px solid #9aa787; }
.geo-terrain-key .geo-height-high { background: #b3af8d; margin-left: 4px; }
@media (max-width:480px) {
    .geo-actions { gap: 5px; }
    .geo-actions button, .geo-actions a { font-size: 11px; padding: 8px; }
    .geo-locator-map { width: 78px; height: 86px; }
    .geo-locator-caption { font-size: 8px; }
}
