.ss-tour-map {
    position: relative;
    z-index: 1;
    width: min(1120px, 100%);
    margin-top: 38px;
    background: #0f0e26;
    border: 1px solid rgba(0, 240, 255, .45);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    color: #f1f5f9;
}
.ss-tour-map [hidden] { display: none !important; }
.ss-map-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 23px 24px 16px; }
.ss-map-heading h2 { margin: 5px 0 0; font: 700 clamp(21px, 3vw, 32px)/1.2 'Chakra Petch', sans-serif; color: #fff; letter-spacing: -.02em; }
.ss-map-count { flex-shrink: 0; color: #a5f3fc; font-size: 12px; }
.ss-map-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 0 24px 12px; }
.ss-map-filter { display: grid; gap: 5px; color: #cbd5e1; font-size: 11px; font-weight: 700; }
.ss-map-filter select { min-height: 44px; width: 270px; max-width: 100%; padding: 9px 32px 9px 12px; border: 1px solid #565178; border-radius: 7px; background: #18163f; color: #fff; font: 500 13px 'Plus Jakarta Sans', sans-serif; }
.ss-map-tools { display: none; align-items: center; gap: 6px; }
.ss-map-tools select { min-height: 44px; width: 185px; padding: 9px 26px 9px 10px; border: 1px solid #565178; border-radius: 7px; background: #18163f; color: #fff; font: 500 12px 'Plus Jakarta Sans', sans-serif; }
.ss-map-ready .ss-map-tools { display: flex; }
.ss-tour-map button { appearance: none; border: 1px solid #565178; border-radius: 7px; background: #18163f; color: #e2e8f0; font: 700 12px 'Plus Jakarta Sans', sans-serif; cursor: pointer; }
.ss-map-tools button { min-height: 44px; min-width: 44px; padding: 9px 11px; }
.ss-map-tools button[data-map-action="in"], .ss-map-tools button[data-map-action="out"] { color: #a5f3fc; font-size: 24px; line-height: 1; }
.ss-map-tools button:disabled { opacity: .38; cursor: default; }
.ss-map-tools output { min-width: 46px; text-align: center; color: #cbd5e1; font-size: 12px; }
.ss-map-filter select:focus-visible, .ss-map-tools select:focus-visible, .ss-tour-map button:focus-visible, .ss-tour-map a:focus-visible, .ss-map-directory summary:focus-visible, .ss-map-viewport:focus-visible { outline: 3px solid #fbbf24; outline-offset: 3px; }
.ss-map-tools button[aria-pressed="true"] { background: #0e7490; border-color: #67e8f9; }
.ss-map-help { margin: 0; padding: 0 24px 16px; font-size: 12px; line-height: 1.6; color: #cbd5e1; }
.ss-map-touch-help { display: none; }
.ss-map-touch .ss-map-desktop-help { display: none; }
.ss-map-touch .ss-map-touch-help { display: inline; }
.ss-map-window { position: relative; }
.ss-map-viewport { width: 100%; height: auto; min-height: 0; aspect-ratio: 4 / 3; max-height: none; overflow: auto; overscroll-behavior: contain; background: #064b97; scrollbar-width: thin; scrollbar-color: #60cdea #064b97; }
.ss-map-ready .ss-map-viewport { position: relative; height: auto; min-height: 0; max-height: none; aspect-ratio: 4 / 3; overflow: visible; clip-path: inset(-16px 0 0 0); touch-action: none; cursor: grab; background: radial-gradient(ellipse at center, #096eae, #053a77); }
.ss-map-stage { position: relative; width: 100%; }
.ss-map-canvas { position: relative; width: 100%; aspect-ratio: 4 / 3; }
/* Keep zoomed artwork inside its frame; allow pin heads into the clear gap above it. */
.ss-map-ready .ss-map-stage { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; }
.ss-map-ready .ss-map-canvas { position: absolute; top: 0; left: 0; aspect-ratio: auto; transform-origin: 0 0; will-change: transform; }
.ss-map-image { display: block; width: 100%; height: 100%; object-fit: contain; filter: none; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.ss-map-pins { position: absolute; inset: 0; pointer-events: none; }
.ss-tour-map .ss-map-pin {
    position: absolute; display: grid; place-items: end center;
    width: 44px; height: 44px; padding: 0; margin: 0;
    border: 0; border-radius: 5px; background: transparent;
    transform: translate(-50%, -100%); pointer-events: auto; z-index: 2;
    touch-action: manipulation;
}
.ss-map-pin svg { display: block; width: var(--ss-pin-width, 28px); height: auto; aspect-ratio: 32 / 44; overflow: visible; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .65)); transition: transform .15s; }
.ss-map-pin:hover svg, .ss-map-pin[aria-expanded="true"] svg { transform: translateY(-3px) scale(1.12); }
.ss-tour-map .ss-map-pin:hover, .ss-tour-map .ss-map-pin:focus-visible, .ss-tour-map .ss-map-pin[aria-expanded="true"] { z-index: 5; }
.ss-map-tooltip { position: absolute; z-index: 6; max-width: 260px; padding: 10px 13px; border: 1px solid #67e8f9; border-radius: 7px; background: #0b1028; color: #fff; font-size: 12px; font-weight: 700; line-height: 1.5; pointer-events: none; box-shadow: 0 6px 22px rgba(0,0,0,.3); }
.ss-map-details { position: relative; padding: 24px; background: #161431; border-top: 2px solid #67e8f9; }
.ss-map-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; font-size: 26px !important; z-index: 1; }
.ss-map-selected { display: grid; grid-template-columns: 150px minmax(0,1fr); align-items: center; gap: 20px; padding-right: 34px; }
.ss-map-selected img { width: 150px; height: 115px; object-fit: cover; border-radius: 8px; }
.ss-map-details h3 { margin: 0 0 9px; color: #fff; font: 700 23px/1.2 'Chakra Petch', sans-serif; }
.ss-map-details p { max-width: 700px; margin: 8px 0 12px; font-size: 13px; line-height: 1.6; color: #cbd5e1; }
.ss-map-detail-links { display: flex; gap: 8px; flex-wrap: wrap; }
.ss-map-detail-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 13px; border: 1px solid #67e8f9 !important; border-radius: 7px; font-size: 12px; color: #a5f3fc; font-weight: 700; }
.ss-map-detail-links a:first-child { background: #67e8f9; color: #081324; }
.ss-map-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 14px 24px; color: #cbd5e1; }
.ss-map-footer small { font-size: 10px; line-height: 1.6; }
.ss-map-directory { border-top: 1px solid #332e57; }
.ss-map-directory summary { cursor: pointer; padding: 17px 24px; color: #a5f3fc; font-size: 13px; font-weight: 700; }
.ss-map-stop-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; list-style: none; margin: 0; padding: 0 24px 24px; }
.ss-map-stop-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border: 1px solid #332e57; border-radius: 7px; }
.ss-map-stop-list strong { display: block; margin-bottom: 4px; color: #fff; font-size: 13px; }
.ss-map-stop-list a { display: block; padding: 6px 0; color: #a5f3fc; font-size: 11px; }
.ss-map-stop-list button { display: none; padding: 9px; min-height: 44px; flex-shrink: 0; max-width: 90px; }
.ss-map-ready .ss-map-stop-list button { display: block; }
.ss-map-empty { padding: 18px 24px; color: #cbd5e1; }
.ss-map-viewport.is-draggable { cursor: grab; }
.ss-map-viewport.is-dragging { cursor: grabbing; user-select: none; }
@media (hover: none), (pointer: coarse) {
    .ss-map-desktop-help { display: none; }
    .ss-map-touch-help { display: inline; }
}
@media (max-width: 700px) {
    .ss-map-heading { align-items: flex-start; padding: 18px 16px 12px; flex-direction: column; gap: 8px; }
    .ss-map-toolbar { padding: 0 16px 12px; gap: 12px; }
    .ss-map-filter { width: 100%; }
    .ss-map-filter select { width: 100%; }
    .ss-map-tools { gap: 4px; flex-wrap: wrap; }
    .ss-map-tools select { width: 100%; }
    .ss-map-ready .ss-map-tools { width: 100%; }
    .ss-map-tools button { padding: 9px; font-size: 11px; }
    .ss-map-help { padding: 0 16px 14px; font-size: 11px; }
    .ss-map-details { padding: 20px 16px; }
    .ss-map-selected { grid-template-columns: 1fr; padding-right: 30px; gap: 12px; }
    .ss-map-selected img { width: 100%; height: 135px; }
    .ss-map-details h3 { font-size: 21px; padding-right: 26px; }
    .ss-map-detail-links { display: grid; }
    .ss-map-footer, .ss-map-directory summary { padding-inline: 16px; }
    .ss-map-stop-list { grid-template-columns: 1fr; padding: 0 16px 16px; }
}
@media (prefers-reduced-motion: reduce) { .ss-map-pin svg { transition: none; } }
