/* XAN City Guides v1.8.4 — original desktop theme map + mobile/tablet fallback. */
html body #xan-tr-map-shell,
html body #xan-tr-map-shell .xan-tr-map-card,
html body #xan-tr-map-shell #xan-tr-svg-map {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
html body #xan-tr-map-shell #xan-tr-svg-map svg {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
}
html body #xan-tr-map-shell .xan-svg-province-link {
    cursor: pointer !important;
    outline: none !important;
    -webkit-tap-highlight-color: rgba(49,92,111,.18) !important;
    touch-action: manipulation !important;
}
html body #xan-tr-map-shell .xan-svg-province {
    vector-effect: non-scaling-stroke !important;
}
html body #xan-tr-map-shell .xan-svg-province-link.is-active .xan-svg-province,
html body #xan-tr-map-shell .xan-svg-province-link:focus-visible .xan-svg-province {
    fill: #356579 !important;
    stroke: #FFFFFF !important;
    stroke-width: 1.8 !important;
}
.xan-cg-mobile-city-picker { display: none; }

@media (max-width: 1024px) {
    html body .xan-footer-v113__network,
    html body .xan-footer-v113__network-layout,
    html body .xan-footer-v113__city-block,
    html body #xan-tr-map-shell {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: visible !important;
    }
    html body .xan-footer-v113__network-layout {
        display: block !important;
        grid-template-columns: minmax(0,1fr) !important;
    }
    html body #xan-tr-map-shell .xan-tr-map-card {
        display: block !important;
        width: 100% !important;
        padding: 12px !important;
        border-radius: 18px !important;
        overflow: hidden !important;
    }
    html body #xan-tr-map-shell #xan-tr-svg-map {
        display: block !important;
        width: 100% !important;
        min-height: 210px !important;
        height: auto !important;
        padding: 7px !important;
        overflow: hidden !important;
        border-radius: 15px !important;
        background: linear-gradient(180deg,#EDF6F7 0%,#F8FBFB 100%) !important;
        touch-action: pan-y pinch-zoom !important;
    }
    html body #xan-tr-map-shell #xan-tr-svg-map > svg {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 1200 / 510 !important;
        overflow: visible !important;
    }
    html body #xan-tr-map-shell .xan-footer-v113__province-list--map-fallback {
        display: none !important;
    }
    html body #xan-tr-map-shell :is(.xan-cg-theme-map-status,.xan-v278-map-status) {
        display: grid !important;
        grid-template-columns: minmax(0,1fr) !important;
        gap: 4px !important;
        width: 100% !important;
        min-width: 0 !important;
        margin-top: 10px !important;
        padding: 12px 13px !important;
        border-radius: 14px !important;
    }
    html body #xan-tr-map-shell :is(.xan-cg-theme-map-status,.xan-v278-map-status) strong,
    html body #xan-tr-map-shell :is(.xan-cg-theme-map-status,.xan-v278-map-status) span {
        min-width: 0 !important;
        max-width: 100% !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }
    html body #xan-tr-map-shell :is(.xan-cg-theme-map-legend,.xan-v278-map-legend) {
        display: flex !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 8px 14px !important;
        width: 100% !important;
        padding: 10px 6px 0 !important;
        font-size: 11px !important;
    }
    .xan-cg-mobile-city-picker {
        display: grid !important;
        grid-template-columns: minmax(0,1fr) !important;
        gap: 7px !important;
        width: 100% !important;
        margin-top: 10px !important;
        padding: 12px !important;
        border: 1px solid rgba(49,92,111,.16) !important;
        border-radius: 14px !important;
        background: #F7FAFB !important;
        box-sizing: border-box !important;
    }
    .xan-cg-mobile-city-picker label {
        color: #24495A !important;
        font-size: 12px !important;
        font-weight: 700 !important;
    }
    .xan-cg-mobile-city-picker select {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 48px !important;
        margin: 0 !important;
        padding: 9px 38px 9px 12px !important;
        border: 1px solid #B8CBD2 !important;
        border-radius: 11px !important;
        background-color: #FFFFFF !important;
        color: #172F3B !important;
        font-size: 16px !important;
        line-height: 1.25 !important;
        box-shadow: none !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 640px) {
    html body .xan-footer-v113__network-head,
    html body .xan-footer-v113__network-layout {
        width: calc(100% - 18px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    html body #xan-tr-map-shell .xan-tr-map-card { padding: 8px !important; border-radius: 16px !important; }
    html body #xan-tr-map-shell #xan-tr-svg-map { min-height: 150px !important; padding: 4px !important; border-radius: 13px !important; }
    html body #xan-tr-map-shell .xan-svg-province { stroke-width: 1.15 !important; }
    html body #xan-tr-map-shell :is(.xan-cg-theme-map-legend,.xan-v278-map-legend) { justify-content: flex-start !important; }
}

@media (prefers-reduced-motion: reduce) {
    html body #xan-tr-map-shell .xan-svg-province { transition: none !important; }
}
