/**
 * VRN Interactive Map - Frontend Styles
 */

/* Prevent horizontal scroll when map is present */
body:has(.vrn-map-container) {
    overflow-x: hidden;
}

/* Map Container - Fullscreen with pan/zoom */
.vrn-map-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 700px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Break out of theme container */
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    background: #000;
    cursor: grab;
    /* Prevent text selection */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Override WordPress block theme constraints */
.is-layout-constrained > .vrn-map-container,
.wp-block-post-content > .vrn-map-container,
.entry-content > .vrn-map-container,
.vrn-map-container {
    max-width: none !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: 0 !important;
}

.is-layout-constrained > .vrn-map-modal-overlay,
.wp-block-post-content > .vrn-map-modal-overlay,
.entry-content > .vrn-map-modal-overlay,
.vrn-map-modal-overlay {
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Reset prose/tailwind styles on all map elements */
.vrn-map-container,
.vrn-map-container *,
.vrn-map-container img,
.vrn-map-container div {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.vrn-map-container:active,
.vrn-map-container.dragging {
    cursor: grabbing;
}

/* Two-finger scroll overlay message for mobile */
.vrn-map-touch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 150;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    padding: 20px;
}

.vrn-map-touch-overlay.visible {
    opacity: 1;
}

.vrn-map-wrapper {
    position: absolute;
    /* Lock to 16:9 aspect ratio - fit within viewport */
    aspect-ratio: 16 / 9;
    width: min(100vw, calc(100vh * 16 / 9));
    height: min(100vh, calc(100vw * 9 / 16));
    /* Center initially */
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transform-origin: center center;
    transition: none;
}

.vrn-map-wrapper.smooth-transition {
    transition: transform 0.3s ease;
}

/* Zoom controls */
.vrn-map-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vrn-map-controls button {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vrn-map-controls button:hover {
    background: #fff;
    transform: scale(1.1);
}

.vrn-map-controls button:active {
    transform: scale(0.95);
}

.vrn-map-reset {
    font-size: 14px !important;
}

/* Base layers */
.vrn-map-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.vrn-map-base {
    z-index: 2;
}

.vrn-map-instruction {
    position: absolute;
    z-index: 200;
    top: 0;
    left: 8%;
    background: #fff;
    padding: 12px 20px;
    border-radius: 0;
    box-shadow: 4px 4px 0 #000;
    border: 3px solid #000;
}

.vrn-map-instruction span {
    font-family: cubano-sharp, 'Arial Black', sans-serif;
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 2rem;
    font-style: italic;
    color: #000;
    text-transform: uppercase;
    display: block;
}

/* Sidebar fills full container height */
.vrn-map-sidebar-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    height: 100%;
    width: auto;
    z-index: 60;
    pointer-events: none;
    object-fit: cover;
    object-position: left top;
}

/* Pulse animation for interactive markers */
@keyframes vrn-marker-pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 transparent);
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 15px rgba(255, 200, 100, 0.5)) drop-shadow(0 0 30px rgba(255, 180, 80, 0.3));
    }
}

/* Building layers */
.vrn-map-building {
    position: absolute;
    z-index: 10;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
    transform-origin: center bottom;
    touch-action: manipulation;
}

/* Pulse for the currently highlighted building */
.vrn-map-building.pulsing {
    animation: vrn-marker-pulse 2s ease-in-out;
    animation-fill-mode: both;
}

.vrn-map-building img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.vrn-map-building:hover {
    transform: scale(1.15);
    z-index: 15;
    cursor: pointer;
    animation-play-state: paused;
}

/* Only show focus styles for keyboard navigation */
.vrn-map-building:focus {
    outline: none;
}

.vrn-map-building:focus-visible {
    transform: scale(1.15);
    z-index: 15;
    outline: 3px solid #fff;
    outline-offset: 4px;
    border-radius: 4px;
    animation-play-state: paused;
}

/* Different glow colors for each building - subtle glow */
.vrn-map-building[data-location="youth_club"]:hover,
.vrn-map-building[data-location="youth_club"]:focus-visible {
    filter: drop-shadow(0 0 12px rgba(255, 107, 53, 0.7)) drop-shadow(0 0 25px rgba(255, 107, 53, 0.4));
}

.vrn-map-building[data-location="fire_station"]:hover,
.vrn-map-building[data-location="fire_station"]:focus-visible {
    filter: drop-shadow(0 0 12px rgba(255, 45, 45, 0.7)) drop-shadow(0 0 25px rgba(255, 45, 45, 0.4));
}

.vrn-map-building[data-location="school"]:hover,
.vrn-map-building[data-location="school"]:focus-visible {
    filter: drop-shadow(0 0 12px rgba(255, 208, 0, 0.7)) drop-shadow(0 0 25px rgba(255, 208, 0, 0.4));
}

.vrn-map-building[data-location="hospital"]:hover,
.vrn-map-building[data-location="hospital"]:focus-visible {
    filter: drop-shadow(0 0 12px rgba(255, 105, 180, 0.7)) drop-shadow(0 0 25px rgba(255, 105, 180, 0.4));
}

.vrn-map-building[data-location="police_station"]:hover,
.vrn-map-building[data-location="police_station"]:focus-visible {
    filter: drop-shadow(0 0 12px rgba(0, 191, 255, 0.7)) drop-shadow(0 0 25px rgba(0, 191, 255, 0.4));
}

.vrn-map-building[data-location="community_hub"]:hover,
.vrn-map-building[data-location="community_hub"]:focus-visible {
    filter: drop-shadow(0 0 12px rgba(255, 140, 0, 0.7)) drop-shadow(0 0 25px rgba(255, 140, 0, 0.4));
}

.vrn-map-building[data-location="park"]:hover,
.vrn-map-building[data-location="park"]:focus-visible {
    filter: drop-shadow(0 0 12px rgba(50, 205, 50, 0.7)) drop-shadow(0 0 25px rgba(50, 205, 50, 0.4));
}

.vrn-map-building[data-location="home"]:hover,
.vrn-map-building[data-location="home"]:focus-visible {
    filter: drop-shadow(0 0 12px rgba(147, 112, 219, 0.7)) drop-shadow(0 0 25px rgba(147, 112, 219, 0.4));
}

.vrn-map-building[data-location="home_02"]:hover,
.vrn-map-building[data-location="home_02"]:focus-visible {
    filter: drop-shadow(0 0 12px rgba(154, 205, 50, 0.7)) drop-shadow(0 0 25px rgba(154, 205, 50, 0.4));
}

.vrn-map-building[data-location="street"]:hover,
.vrn-map-building[data-location="street"]:focus-visible {
    filter: drop-shadow(0 0 12px rgba(64, 224, 208, 0.7)) drop-shadow(0 0 25px rgba(64, 224, 208, 0.4));
}

.vrn-map-building[data-has-videos="0"] {
    cursor: default;
    opacity: 0.9;
}

.vrn-map-building[data-has-videos="0"]:hover {
    transform: scale(1.05);
    cursor: default;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.5));
}

/* Building positions - percentage based for responsiveness */
/* Precisely matched to reference image layout */

.vrn-map-building[data-location="youth_club"] {
    top: 17%;
    left: 48%;
    width: 11%;
}

.vrn-map-building[data-location="fire_station"] {
    top: 28%;
    left: 38%;
    width: 8%;
}

.vrn-map-building[data-location="school"] {
    top: 29%;
    left: 24%;
    width: 10%;
}

.vrn-map-building[data-location="hospital"] {
    top: 52%;
    left: 18%;
    width: 11%;
}

.vrn-map-building[data-location="police_station"] {
    top: 42%;
    left: 44%;
    width: 10%;
}

.vrn-map-building[data-location="community_hub"] {
    top: 74%;
    left: 42%;
    width: 9%;
}

.vrn-map-building[data-location="park"] {
    top: 34%;
    left: 56%;
    width: 10%;
}

/* Swapped home positions to match reference */
.vrn-map-building[data-location="home"] {
    top: 52%;
    left: 58%;
    width: 10%;
}

.vrn-map-building[data-location="home_02"] {
    top: 60%;
    left: 30%;
    width: 11%;
}

.vrn-map-building[data-location="street"] {
    top: 33%;
    left: 71%;
    width: 9%;
}

/* Modal Overlay */
.vrn-map-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 250;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vrn-map-modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* Modal */
.vrn-map-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

/* Reset prose/tailwind styles on modal elements */
.vrn-map-modal,
.vrn-map-modal *,
.vrn-map-modal h2,
.vrn-map-modal h3,
.vrn-map-modal h4,
.vrn-map-modal p,
.vrn-map-modal div,
.vrn-map-modal span,
.vrn-map-modal img,
.vrn-map-modal iframe {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.vrn-map-modal img {
    max-width: 100%;
    height: auto;
}

.vrn-map-modal-overlay.active .vrn-map-modal {
    transform: translateY(0);
}

.vrn-map-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 5px 10px;
    transition: color 0.2s ease;
}

.vrn-map-modal-close:hover,
.vrn-map-modal-close:focus {
    color: #000;
}

.vrn-map-modal-close:focus {
    outline: 2px solid #333;
    outline-offset: 2px;
}

.vrn-map-modal-close:focus:not(:focus-visible) {
    outline: none;
}

/* Modal title */
.vrn-map-modal-title {
    margin-top: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    font-size: 28px;
    color: #333;
    text-align: center;
    padding-right: 40px; /* Account for close button */
}

/* Navigation arrows - positioned on sides of overlay */
.vrn-map-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    color: #333;
    transition: background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    z-index: 251;
}

.vrn-map-nav-prev {
    left: 15px;
}

.vrn-map-nav-next {
    right: 15px;
}

.vrn-map-nav-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.vrn-map-nav-arrow:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.vrn-map-nav-arrow:focus:not(:focus-visible) {
    outline: none;
}

.vrn-map-nav-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.vrn-map-nav-arrow svg {
    width: 18px;
    height: 18px;
}

/* Bottom navigation - hidden on desktop, shown on mobile */
.vrn-map-modal-nav-bottom {
    display: none;
}

.vrn-map-spacer {
    height: 20px;
}

.vrn-map-spacer-sm {
    height: 15px;
}

/* Video Grid */
.vrn-map-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.vrn-map-video-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #f0f0f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vrn-map-video-thumb:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.vrn-map-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vrn-map-video-thumb::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
    background-size: 30px;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.2s ease;
}

.vrn-map-video-thumb:hover::after {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Video Player */
.vrn-map-video-player {
    width: 100%;
}

.vrn-map-back-to-grid {
    background: #f5f5f5;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 20px;
    transition: background 0.2s ease;
}

.vrn-map-back-to-grid:hover {
    background: #e5e5e5;
}

.vrn-map-video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.vrn-map-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* No videos message */
.vrn-map-no-videos {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

/* Mobile Location Panel Toggle - Hidden on desktop */
.vrn-map-mobile-toggle {
    display: none;
}

/* Mobile Location Panel - Hidden by default */
.vrn-map-location-panel {
    display: none;
}

/* Global list style for location list - prevents bullet dots from Tailwind */
.vrn-map-location-list {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0;
    padding: 0;
}

.vrn-map-location-list li,
.vrn-map-location-item {
    list-style: none !important;
    list-style-type: none !important;
}

.vrn-map-location-list li::marker,
.vrn-map-location-item::marker {
    content: none !important;
    display: none !important;
}

.vrn-map-location-list li::before,
.vrn-map-location-item::before {
    content: none !important;
    display: none !important;
}

/* Featured Video Layout */
.vrn-map-featured-video {
    margin-top: 20px !important;
    margin-bottom: 20px;
}

.vrn-map-featured-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.vrn-map-featured-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.vrn-map-featured-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.vrn-map-featured-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.vrn-map-featured-duration {
    font-size: 14px;
    color: #666;
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 4px;
}

/* Thumbnail Gallery */
.vrn-map-thumbnail-section {
    margin-top: 20px;
}

.vrn-map-thumbnail-section.hidden {
    display: none;
}

.vrn-map-more-videos-label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vrn-map-thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.vrn-map-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    background: #f0f0f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vrn-map-thumbnail:hover,
.vrn-map-thumbnail:focus {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.vrn-map-thumbnail:focus {
    outline: 2px solid #333;
    outline-offset: 2px;
}

.vrn-map-thumbnail:focus:not(:focus-visible) {
    outline: none;
}

.vrn-map-thumbnail.active {
    outline: 3px solid #ff0000;
    outline-offset: 2px;
}

.vrn-map-thumbnail.active:focus {
    outline: 3px solid #ff0000;
    outline-offset: 2px;
}

.vrn-map-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vrn-map-thumbnail-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 20px 8px 8px;
    color: #fff;
}

.vrn-map-thumbnail-title {
    display: block;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vrn-map-thumbnail-duration {
    display: block;
    font-size: 10px;
    opacity: 0.8;
    margin-top: 2px;
}

.vrn-map-thumbnail::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
    background-size: 18px;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.vrn-map-thumbnail:hover::after {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .vrn-map-container {
        /* Keep fullscreen on mobile */
        height: 100vh;
        width: 100vw;
        min-height: 500px;
        /* Allow single-finger vertical scroll to pass through to page */
        touch-action: pan-y;
    }

    /* Show just a sliver of sidebar on mobile */
    .vrn-map-sidebar-fill {
        width: 15px !important;
        object-fit: cover;
        object-position: left top;
    }

    /* Mobile Panel Toggle Button - Hamburger */
    .vrn-map-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 195px;
        right: 15px;
        z-index: 250;
        width: 50px;
        height: 50px;
        background: rgba(255, 255, 255, 0.95);
        border: none;
        border-radius: 8px;
        cursor: pointer;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        transition: background 0.2s, transform 0.2s;
    }

    .vrn-map-mobile-toggle:hover {
        background: #fff;
        transform: scale(1.05);
    }

    .vrn-map-mobile-toggle .hamburger-icon {
        position: relative;
        width: 24px;
        height: 2px;
        background: #333;
        transition: background 0.2s;
    }

    .vrn-map-mobile-toggle .hamburger-icon::before,
    .vrn-map-mobile-toggle .hamburger-icon::after {
        content: '';
        position: absolute;
        left: 0;
        width: 24px;
        height: 2px;
        background: #333;
        transition: transform 0.2s;
    }

    .vrn-map-mobile-toggle .hamburger-icon::before {
        top: -7px;
    }

    .vrn-map-mobile-toggle .hamburger-icon::after {
        top: 7px;
    }

    /* Mobile Location Panel */
    .vrn-map-location-panel {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 280px;
        max-width: 80vw;
        height: 100%;
        background: #fff;
        z-index: 300;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
    }

    .vrn-map-location-panel.open {
        transform: translateX(0);
    }

    .vrn-map-panel-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        border-bottom: 1px solid #eee;
        background: #f9f9f9;
        position: sticky;
        top: 0;
    }

    .vrn-map-panel-header h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
        color: #333;
    }

    .vrn-map-panel-close {
        background: none;
        border: none;
        font-size: 28px;
        color: #666;
        cursor: pointer;
        padding: 0 5px;
        line-height: 1;
    }

    .vrn-map-panel-close:hover {
        color: #000;
    }

    .vrn-map-location-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .vrn-map-location-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px;
        border-bottom: 1px solid #f0f0f0;
        cursor: pointer;
        transition: background 0.2s;
    }

    .vrn-map-location-item:hover {
        background: #f5f5f5;
    }

    .vrn-map-location-item:active {
        background: #eee;
    }

    .vrn-map-location-item .location-name {
        font-size: 15px;
        font-weight: 500;
        color: #333;
    }

    .vrn-map-location-item .video-count {
        font-size: 12px;
        color: #666;
        background: #f0f0f0;
        padding: 4px 10px;
        border-radius: 12px;
    }

    .vrn-map-location-item.no-videos {
        opacity: 0.5;
        cursor: default;
    }

    .vrn-map-location-item.no-videos:hover {
        background: transparent;
    }

    .vrn-map-location-item.no-videos .video-count {
        background: #e0e0e0;
    }

    /* Panel overlay for closing */
    .vrn-map-panel-overlay {
        display: none;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 290;
    }

    .vrn-map-panel-overlay.active {
        display: block;
    }

    .vrn-map-controls {
        top: 15px;
        right: 15px;
    }

    .vrn-map-controls button {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }

    .vrn-map-modal {
        padding: 20px;
        max-height: 85vh;
    }

    .vrn-map-modal-title {
        font-size: 22px;
        padding-right: 30px;
    }

    /* Hide side arrows on mobile - we'll show bottom nav instead */
    .vrn-map-nav-arrow {
        display: none;
    }

    /* Show bottom navigation on mobile */
    .vrn-map-modal-nav-bottom {
        display: flex;
        justify-content: center;
        gap: 20px;
        padding: 20px 0 10px;
        border-top: 1px solid #eee;
        margin-top: 20px;
    }

    .vrn-map-modal-nav-bottom button {
        background: #f5f5f5;
        border: none;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        cursor: pointer;
        color: #333;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s;
    }

    .vrn-map-modal-nav-bottom button:hover {
        background: #e5e5e5;
    }

    .vrn-map-modal-nav-bottom svg {
        width: 24px;
        height: 24px;
    }

    .vrn-map-video-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .vrn-map-video-thumb::after {
        width: 50px;
        height: 50px;
        background-size: 24px;
    }

    /* Scale down buildings on mobile */
    .vrn-map-building {
        transform-origin: center center;
    }

    /* Thumbnail gallery on mobile */
    .vrn-map-thumbnail-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .vrn-map-featured-title {
        font-size: 14px;
    }

    .vrn-map-featured-duration {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .vrn-map-modal {
        padding: 15px;
        border-radius: 8px;
    }

    .vrn-map-modal-close {
        top: 10px;
        right: 10px;
        font-size: 28px;
    }

    .vrn-map-modal-title {
        font-size: 18px;
        margin-bottom: 15px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .vrn-map-wrapper,
    .vrn-map-wrapper.smooth-transition,
    .vrn-map-building,
    .vrn-map-building.pulsing,
    .vrn-map-modal-overlay,
    .vrn-map-modal,
    .vrn-map-nav-arrow,
    .vrn-map-thumbnail,
    .vrn-map-zoom-in,
    .vrn-map-zoom-out,
    .vrn-map-reset,
    .vrn-map-location-panel,
    .vrn-map-location-item,
    .vrn-map-modal-close {
        transition: none !important;
        animation: none !important;
    }

    .vrn-map-building:hover,
    .vrn-map-building:focus-visible {
        transform: none !important;
    }
}

/* Skip link for keyboard users */
.vrn-map-skip-link {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #000;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: 3px solid #000;
    border-radius: 4px;
    z-index: 260;
    transition: top 0.2s ease;
}

.vrn-map-skip-link:focus {
    top: 10px;
    outline: 3px solid #2271b1;
    outline-offset: 2px;
}

/* Screen reader only text */
.vrn-map-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Live region for announcements */
.vrn-map-live-region {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
