/* Geography page overhaul: interactive southern map + side panel */

.geo-shell{
    width: min(1200px, 92vw);
    margin: 0 auto;
    padding-bottom: 48px;
}

.geo-header{
    margin: 0 auto 18px;
}

.geography-page .geo-header h2{
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.geo-header p{
    margin: 0;
    color: rgba(255,255,255,0.88);
    line-height: 1.6;
    max-width: 80ch;
}

.geo-layout{
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 18px;
    align-items: start;
}

.geo-map-wrap{
    min-height: 520px;
}

.geo-map-mount{
    position: relative;
    min-height: 520px;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(10,14,18,0.70), rgba(6,8,10,0.55));
    box-shadow: 0 0 0 1px rgba(0,190,255,0.12), 0 28px 90px rgba(0,0,0,0.35);
    overflow: hidden;
}

.geo-map-mount .geo-map-loading{
    padding: 26px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    letter-spacing: 0.14em;
    font-size: 12px;
    color: rgba(200,230,255,0.80);
}

.geo-map-mount svg{
    display: block;
    width: 100%;
    height: auto;
}

.geo-map-mount .geo-map-object{
    display: block;
    width: 100%;
    height: 520px;
    border: 0;
}

@media (max-width: 980px){
    .geo-map-mount .geo-map-object{
        height: 440px;
    }
}


/* Add subtle oblique "table-top" feel */
.geo-map-mount .geo-svg-stage{
    transform-origin: 50% 48%;
    transform: perspective(900px) rotateX(18deg) rotateZ(-2deg);
}

@media (prefers-reduced-motion: reduce){
    .geo-map-mount .geo-svg-stage{ transform: none; }
}

/* SVG state styling */
.geo-state{
    cursor: default;
    transform-box: fill-box;
    transform-origin: center;
    transition: filter 0.14s ease, transform 0.14s ease;
}

.geo-state.is-interactive{ cursor: pointer; }

.geo-state .state-fill{
    transition: fill 0.14s ease, opacity 0.14s ease;
}

.geo-state .state-label{
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    letter-spacing: 0.14em;
    font-size: 20px;
    fill: rgba(245,250,255,0.92);
    paint-order: stroke;
    stroke: rgba(0,0,0,0.35);
    stroke-width: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.10s ease;
}

.geo-state.is-hover .state-label,
.geo-state.is-selected .state-label{
    opacity: 1;
}

.geo-state.is-hover .state-fill{
    filter: brightness(1.10);
}

.geo-state.is-selected{
    filter: drop-shadow(0 24px 24px rgba(0,0,0,0.38)) drop-shadow(0 0 0 rgba(0,0,0,0));
    transform: translateY(-22px);
}

/* POIs */
.geo-poi{
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.14s ease;
}

.geo-poi.is-visible{
    opacity: 1;
    pointer-events: auto;
}

.geo-poi-dot{
    stroke: rgba(0,0,0,0.55);
    stroke-width: 2px;
}

.geo-poi-line{
    stroke: rgba(255,255,255,0.55);
    stroke-width: 2px;
}

.geo-poi-box{
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(10,14,18,0.78), rgba(6,8,10,0.62));
    box-shadow: 0 0 0 1px rgba(0,190,255,0.10), 0 18px 44px rgba(0,0,0,0.30);
    padding: 10px 12px;
    color: rgba(255,255,255,0.92);
}

.geo-poi-box .poi-title{
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    letter-spacing: 0.14em;
    font-size: 11px;
    text-transform: uppercase;
    color: rgba(200,230,255,0.88);
    margin: 0 0 6px;
}

.geo-poi-box .poi-summary{
    font-size: 13px;
    line-height: 1.45;
    margin: 0;
}

.geo-poi-box .poi-actions{
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.geo-poi-box .poi-btn{
    cursor: pointer;
    border-radius: 999px;
    padding: 8px 12px;
    border: 1px solid rgba(0,190,255,0.32);
    background: linear-gradient(180deg, rgba(0,190,255,0.10), rgba(0,0,0,0.18));
    color: rgba(235,250,255,0.92);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    letter-spacing: 0.16em;
    font-size: 11px;
}

.geo-poi-box .poi-btn:hover{
    border-color: rgba(0,190,255,0.55);
    transform: translateY(-1px);
}

/* Side panel */
.geo-side{
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(10,14,18,0.70), rgba(6,8,10,0.55));
    box-shadow: 0 0 0 1px rgba(255,0,200,0.10), 0 28px 90px rgba(0,0,0,0.32);
    padding: 16px 16px 18px;
}

.geo-side-kicker{
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    letter-spacing: 0.22em;
    font-size: 11px;
    color: rgba(200,230,255,0.90);
    margin-bottom: 10px;
}

.geo-side-instructions{
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    background: rgba(0,0,0,0.20);
    padding: 12px 12px 10px;
}

.geo-side-instructions ol{
    margin: 0;
    padding-left: 18px;
    color: rgba(255,255,255,0.90);
    line-height: 1.55;
    font-size: 13px;
}

.geo-side-instructions strong{
    color: rgba(255,255,255,0.98);
}

.geo-side-note{
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(200,230,255,0.76);
}

.geo-side-state{
    margin-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.10);
    padding-top: 14px;
}

.geo-side-state-label{
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    letter-spacing: 0.18em;
    font-size: 10px;
    color: rgba(200,230,255,0.70);
}

.geo-side-state-name{
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 18px;
    color: rgba(255,255,255,0.92);
}

.geo-side-list{
    margin-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.10);
    padding-top: 14px;
}

.geo-side-list-title{
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    letter-spacing: 0.18em;
    font-size: 10px;
    color: rgba(200,230,255,0.70);
}

.geo-side-list-body{
    margin-top: 10px;
    display: grid;
    gap: 10px;
}

.geo-empty{
    font-size: 13px;
    color: rgba(255,255,255,0.78);
    line-height: 1.55;
}

.geo-poi-item{
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 14px;
    background: rgba(0,0,0,0.18);
    padding: 12px;
}

.geo-poi-item .poi-item-name{
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    font-size: 13px;
    color: rgba(255,255,255,0.92);
}

.geo-poi-item .poi-item-summary{
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255,255,255,0.86);
}

.geo-poi-item .poi-item-actions{
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.geo-poi-item .poi-item-btn{
    cursor: pointer;
    border-radius: 999px;
    padding: 8px 12px;
    border: 1px solid rgba(0,190,255,0.32);
    background: linear-gradient(180deg, rgba(0,190,255,0.10), rgba(0,0,0,0.18));
    color: rgba(235,250,255,0.92);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    letter-spacing: 0.16em;
    font-size: 11px;
}

.geo-poi-item .poi-item-btn:hover{
    border-color: rgba(0,190,255,0.55);
    transform: translateY(-1px);
}

.geo-side-detail{
    margin-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.10);
    padding-top: 14px;
}

.geo-detail-title-row{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.geo-detail-title{
    text-transform: uppercase;
    letter-spacing: 0.10em;
    font-size: 16px;
    color: rgba(255,255,255,0.92);
}

.geo-detail-back{
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    background: rgba(0,0,0,0.18);
    color: rgba(200,230,255,0.90);
    padding: 8px 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    letter-spacing: 0.16em;
    font-size: 10px;
}

.geo-detail-back:hover{
    border-color: rgba(255,0,200,0.22);
}

.geo-detail-body{
    margin-top: 10px;
    font-size: 0.98rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.92);
}

.geo-detail-body p{
    margin: 0 0 10px;
}

/* Responsive */
@media (max-width: 980px){
    .geo-layout{
        grid-template-columns: 1fr;
    }
    .geo-map-wrap{ min-height: unset; }
}
