/* ============================================
   DOK VIEW - INDEX PAGE STYLES
   Extracted from Index.html inline styles
   ============================================ */

/* Custom Fonts */
.font-serif-custom {
    font-family: 'Cormorant Garamond', serif;
}

.font-sans-custom {
    font-family: 'Montserrat', sans-serif;
}

/* Base Animation Classes */
.reveal-invisible {
    opacity: 0;
    transform: translateY(32px) scale(0.98);
    filter: blur(6px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform, filter;
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Staggered delays */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-500 {
    transition-delay: 500ms;
}

.delay-700 {
    transition-delay: 700ms;
}

.delay-900 {
    transition-delay: 900ms;
}

/* Image/Video Zoom Animation on Scroll */
.img-zoom-wrapper {
    overflow: hidden;
}

.img-zoom-target {
    transform: scale(1.1);
    transition: transform 1.5s ease-out;
    will-change: transform;
}

.img-zoom-target.is-zoomed {
    transform: scale(1);
}

/* Hero Specific Animation */
.hero-enter {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.hero-enter-active {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #D4B483;
}

/* Hero Overlay */
.hero-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.5) 100%);
}

.mobile-menu {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Navbar visibility behavior */
.nav-hidden {
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
}

.nav-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* ============================================
   AMENITIES SLIDER
   ============================================ */
.amenities-slider {
    position: relative;
    touch-action: pan-y;
}

.amenities-slider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-bottom: 1.25rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid #E5E7EB;
}

.amenities-slider-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-end;
}

.amenities-nav-btn {
    position: relative;
    z-index: 5;
    padding-bottom: 0.5rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 600;
    color: #9CA3AF;
    background: none;
    border: none;
    cursor: pointer;
    pointer-events: auto;
    transition: color 0.3s ease;
}

.amenities-nav-btn::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 3px;
    background-color: #111827;
    transition: width 0.3s ease;
}

.amenities-nav-btn.is-active {
    color: #111827;
    font-weight: 700;
}

.amenities-nav-btn.is-active::after {
    width: 100%;
}

.amenities-nav-btn:focus-visible {
    outline: 2px solid #111827;
    outline-offset: 4px;
}

/* Slider controls - positioned as overlays on the media area */
.amenities-slider-controls {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 400px;
    /* Match media height */
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    z-index: 20;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .amenities-slider-controls {
        height: 600px;
        /* Match md:h-[600px] */
    }
}

/* Simple white semi-transparent arrow buttons - no background */
.amenities-slider-btn {
    position: relative;
    z-index: 25;
    width: 48px;
    height: 48px;
    border-radius: 0;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    box-shadow: none !important;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    pointer-events: auto !important;
    transition: color 0.3s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.amenities-slider-btn svg {
    width: 40px;
    height: 40px;
    stroke-width: 2.5;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.amenities-slider-btn:hover {
    color: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.amenities-slider-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 4px;
    color: rgba(255, 255, 255, 1);
}

.amenities-slides {
    position: relative;
}

.amenities-slide {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
    align-items: center;
}

.amenities-slide.is-active {
    display: grid;
    animation: amenitiesSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.amenities-media {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 35px rgba(15, 23, 42, 0.14);
    position: relative;
}

.amenities-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 5s ease;
}

.amenities-slide.is-active .amenities-media img {
    transform: scale(1.05);
}

@keyframes amenitiesSlideIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .amenities-slide {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .amenities-slider-header {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .amenities-slider-nav {
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        gap: 1.25rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
        order: 1;
    }

    .amenities-slider-nav::-webkit-scrollbar {
        display: none;
    }

    /* Mobile overlay arrows - smaller */
    .amenities-slider-btn {
        width: 40px;
        height: 40px;
    }

    .amenities-slider-btn svg {
        width: 28px;
        height: 28px;
    }

    .amenities-slider-controls {
        padding: 0 0.5rem;
    }

    /* Mobile image containment - proper cropping */
    .amenities-media {
        max-width: 100%;
        border-radius: 12px;
        overflow: hidden;
    }

    .amenities-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .amenities-slides {
        min-height: auto !important;
    }

    /* Override feature-rail behavior inside amenities slider */
    .amenities-slide .feature-rail {
        display: block;
        overflow-x: visible;
        flex-wrap: wrap;
    }

    .amenities-slide .feature-rail>* {
        min-width: auto;
        width: 100%;
        flex: none;
    }

    /* Mobile compactness for amenities slider */
    .amenities-slider-header {
        display: none !important;
        /* Hide tabs on mobile - use arrows instead */
    }

    /* Section header before slider - reduce gap */
    [id="amenities"]>.mb-16,
    [id="faciliteiten"]>.mb-16 {
        margin-bottom: 1rem !important;
    }

    /* Intro paragraph - smaller and tighter */
    [id="amenities"] .text-lg.leading-relaxed,
    [id="faciliteiten"] .text-lg.leading-relaxed {
        font-size: 0.8125rem !important;
        line-height: 1.5;
        margin-top: 0.5rem !important;
    }

    .amenities-slide .mb-8 {
        margin-bottom: 0.375rem !important;
    }

    .amenities-slide .mb-6 {
        margin-bottom: 0.375rem !important;
    }

    .amenities-slide h3 {
        font-size: 1.25rem !important;
    }

    .amenities-slide h4 {
        font-size: 0.6875rem !important;
        margin-bottom: 0.375rem !important;
    }

    .amenities-slide p {
        margin-bottom: 0.5rem !important;
        font-size: 0.8125rem !important;
        line-height: 1.5;
    }

    /* Feature list - limit to 2 items visible, more compact */
    .amenities-slide .feature-rail>*:nth-child(n+3) {
        display: none;
        /* Show only first 2 items */
    }

    .amenities-slide .feature-rail>* {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.75rem !important;
    }

    .amenities-media.h-\[400px\] {
        height: 180px !important;
    }

    /* Slider controls position for compact height */
    .amenities-slider-controls {
        height: 180px;
    }

    /* ========== LOCATION SECTION MOBILE COMPACT ========== */
    #location .map-stage {
        gap: 0.5rem;
    }

    #location #map-container {
        aspect-ratio: 4 / 3;
        /* Less tall on mobile */
    }

    /* Map controls card - more compact */
    .map-interactive-container {
        padding: 0.75rem !important;
        border-radius: 8px;
    }

    .map-interactive-container h3 {
        font-size: 0.75rem !important;
        margin-bottom: 0.25rem !important;
    }

    .map-interactive-container p {
        font-size: 0.6875rem !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.4;
    }

    /* Category buttons - smaller */
    .map-interactive-container button {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.625rem !important;
    }

    /* Map sidebar icons - smaller and more compact */
    .map-layer-group {
        gap: 0.25rem !important;
    }

    .map-layer-group button {
        width: 32px !important;
        height: 32px !important;
        padding: 0.25rem !important;
    }

    .map-layer-group button svg {
        width: 14px !important;
        height: 14px !important;
    }

    /* ========== EXPERT MOBILE UX: HIDE REDUNDANT CONTROLS ========== */

    /* Hide the KAARTGEBRUIK controls card - map has category rail instead */
    .mobile-map-shell .map-guidance {
        display: none !important;
    }

    /* Hide the sidebar layer icons - use category rail instead */
    .mobile-map-shell .map-layer-group {
        display: none !important;
    }

    /* Make mobile map take available height */
    .mobile-map-shell .mobile-map-stage {
        width: 100%;
        margin: 0;
    }

    /* More compact map container */
    .mobile-map-shell .map-interactive-container {
        aspect-ratio: 4 / 3;
        border-radius: 12px;
    }

    /* Compact category rail at bottom of map */
    .mobile-map-shell .map-ui-rail {
        flex-wrap: wrap;
        gap: 0.25rem;
        padding: 0.5rem;
    }

    .mobile-map-shell .map-rail-btn {
        font-size: 0.6rem;
        padding: 0.35rem 0.5rem;
    }

    .mobile-map-shell .map-transport-btn {
        font-size: 0.5rem;
        padding: 0.25rem 0.35rem;
    }

    /* Hide the bottom sheet on mobile - use the category rail instead */
    .mobile-bottom-sheet {
        display: none !important;
    }

    /* ========== MOBILE: SIDEBAR BELOW MAP AS HORIZONTAL STRIP ========== */

    /* Move sidebar BELOW the map as horizontal strip */
    #location .map-ui-rail {
        position: static !important;
        transform: none !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
        padding: 12px !important;
        margin-top: 12px !important;
        border-radius: 12px !important;
        width: 100% !important;
        max-height: none !important;
        overflow: visible !important;
    }

    /* Sidebar buttons - compact for horizontal layout */
    #location .map-rail-btn {
        width: auto !important;
        height: 36px !important;
        padding: 6px 10px !important;
        font-size: 11px !important;
    }

    #location .map-rail-btn span {
        display: inline !important;
    }

    #location .map-transport-btn {
        width: auto !important;
        height: 36px !important;
        padding: 6px 10px !important;
        font-size: 11px !important;
    }

    #location .map-transport-btn span {
        display: inline !important;
    }

    /* Transport group horizontal */
    #location .map-transport-group {
        flex-direction: row !important;
        gap: 6px !important;
    }

    /* Rail divider horizontal */
    #location .map-rail-divider {
        width: 1px !important;
        height: 24px !important;
        margin: 0 4px !important;
    }

    /* Constrain map height on mobile */
    #location #map-container,
    #location #map-container-mobile {
        max-height: 50vh !important;
    }

    /* Ensure the map stage has flex column layout */
    #location .map-stage,
    .mobile-map-stage {
        display: flex !important;
        flex-direction: column !important;
    }
}

@media (prefers-reduced-motion: reduce) {

    .amenities-slide,
    .amenities-media img {
        animation: none;
        transition: none;
    }
}

/* ============================================
   INTERACTIVE MAP SYSTEM
   ============================================ */
.map-interactive-container {
    position: relative;
    width: 100%;
    height: auto;
    overflow: visible;
    background: #f9fafb;
    border-radius: 4px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Map viewport sizing */
#location .map-stage {
    width: min(100%, 90vh);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#location #map-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    margin: 0 auto;
    max-height: 65vh;
    /* Constrain height so section fits on screen */
}

#location #map-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Map guidance bar */
#location .map-guidance {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #E5E7EB;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

#location .map-instruction {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: left;
}

#location .map-instruction-title {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: #111827;
}

#location .map-instruction-text {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #6B7280;
}

#location .map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: center;
    justify-content: flex-end;
}

#location .map-legend-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

#location .map-legend-label {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #9CA3AF;
}

#location .map-legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

#location .map-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.55rem;
    border-radius: 9999px;
    border: 1px solid #E5E7EB;
    background: #fff;
    font-size: 0.6rem;
    font-weight: 600;
    color: #374151;
    letter-spacing: 0.02em;
}

#location .map-legend-item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

#location .desktop-map-layout>div:last-child {
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .map-arrival-chip {
        font-size: 0.6875rem;
        padding: 0.4rem 0.6rem;
        max-width: calc(100% - (var(--mobile-gutter) * 2));
    }

    .map-arrival-chip .chip-mode {
        font-size: 0.5rem;
    }
}

/* SVG overlay for connection lines */
.map-svg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
}

.map-connection-line {
    fill: none;
    stroke: #DC2626;
    stroke-width: 3;
    stroke-dasharray: 10, 8;
    opacity: 0.9;
    stroke-linecap: round;
    animation: route-dash 3.5s linear infinite;
}

.map-connection-line.route-walk {
    stroke: #F59E0B;
}

.map-connection-line.route-bike {
    stroke: #22C55E;
}

.map-connection-line.route-car {
    stroke: #3B82F6;
}

.map-route-pointer {
    fill: #DC2626;
    stroke: #fff;
    stroke-width: 2;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.25));
    display: none;
}

.map-route-pointer.route-walk {
    fill: #F59E0B;
}

.map-route-pointer.route-bike {
    fill: #22C55E;
}

.map-route-pointer.route-car {
    fill: #3B82F6;
}

.map-arrival-chip {
    position: absolute;
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 9999px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.75rem;
    font-weight: 600;
    color: #111827;
    pointer-events: none;
    z-index: 90;
    max-width: calc(100% - 16px);
}

.map-arrival-chip .chip-mode {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #6B7280;
}

.map-arrival-chip.route-walk {
    border-left: 4px solid #F59E0B;
}

.map-arrival-chip.route-bike {
    border-left: 4px solid #22C55E;
}

.map-arrival-chip.route-car {
    border-left: 4px solid #3B82F6;
}

@keyframes route-dash {
    to {
        stroke-dashoffset: -36;
    }
}

/* Dok View marker - bright gold, larger, always on top */
.map-marker-dokview {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    aspect-ratio: 1;
    background-color: #F5C543;
    border: 3px solid #D4A017;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 4px rgba(245, 197, 67, 0.4), 0 4px 12px rgba(0, 0, 0, 0.25);
}

.map-marker-dokview::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background-color: #D4A017;
    border-radius: 50%;
}

.map-marker-dokview::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background-color: rgba(245, 197, 67, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.4s ease-out;
    pointer-events: none;
}

.map-marker-dokview.active::after {
    animation: pulse-ring-gold 2s infinite;
}

.map-marker-dokview:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.map-marker-dokview:focus-visible {
    outline: 2px solid #D4B483;
    outline-offset: 4px;
}

/* Dok View label */
.map-marker-dokview-label {
    position: absolute;
    top: 50%;
    left: calc(100% + 8px);
    transform: translateY(-50%);
    white-space: nowrap;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #8C7350;
    background: rgba(255, 255, 255, 0.95);
    padding: 2px 6px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

/* Other markers - red, smaller */
.map-marker-btn {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    aspect-ratio: 1;
    background-color: white;
    border: 2px solid #DC2626;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.map-marker-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background-color: rgba(220, 38, 38, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.4s ease-out;
    pointer-events: none;
}

.map-marker-btn.active {
    background-color: #DC2626;
    transform: translate(-50%, -50%) scale(1.15);
    z-index: 20;
}

.map-marker-btn.active::after {
    animation: pulse-ring-red 2s infinite;
}

.map-marker-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.map-marker-btn:focus-visible {
    outline: 2px solid #DC2626;
    outline-offset: 4px;
}

/* Marker label for destination */
.map-marker-label {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #374151;
    background: rgba(255, 255, 255, 0.95);
    padding: 2px 6px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    z-index: 5;
}

.map-marker-label--above {
    bottom: calc(100% + 6px);
}

.map-marker-label--below {
    top: calc(100% + 6px);
}

/* Category selector */
.map-category-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.map-category-btn {
    padding: 0.5rem 1rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6B7280;
    background-color: #F3F4F6;
    border: 1px solid #E5E7EB;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 36px;
}

.map-category-btn:hover {
    background-color: #E5E7EB;
    color: #374151;
}

.map-category-btn.active {
    background-color: #DC2626;
    color: white;
    border-color: #DC2626;
}

.map-category-btn:focus-visible {
    outline: 2px solid #D4B483;
    outline-offset: 2px;
}

/* Reset button */
.map-reset-btn {
    padding: 0.5rem 1rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8C7350;
    background-color: rgba(212, 180, 131, 0.15);
    border: 1px solid #D4B483;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 36px;
}

.map-reset-btn:hover {
    background-color: #D4B483;
    color: white;
}

/* Travel badges */
.map-travel-badges {
    position: absolute;
    display: flex;
    gap: 0.5rem;
    transform: translate(-50%, -50%);
    z-index: 60;
    pointer-events: none;
}

.map-travel-badge {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    background: white;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 0.6875rem;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.map-travel-badge svg {
    width: 14px;
    height: 14px;
    color: #6B7280;
}

.map-travel-badge--walk {
    border-left: 3px solid #F59E0B;
}

.map-travel-badge--bike {
    border-left: 3px solid #22C55E;
}

.map-travel-badge--car {
    border-left: 3px solid #3B82F6;
}

/* Hide travel badges on map - show in list instead */
#location .map-travel-badges {
    display: none !important;
}

/* Inline travel info in list items */
#location .map-travel-inline {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: #6B7280;
    font-weight: 500;
}

/* List items styling - now using button elements for accessibility */
.map-list-item {
    /* Reset button defaults */
    background: none;
    border: none;
    font: inherit;
    text-align: left;
    width: 100%;
    /* Original styling */
    cursor: pointer;
    padding: 0.875rem 1rem;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.map-list-item.active {
    background-color: #FEF2F2;
    border-left-color: #DC2626;
}

.map-list-item.dokview-item {
    background-color: rgba(212, 180, 131, 0.1);
    border-left-color: #D4B483;
}

.map-list-item.dokview-item.active {
    background-color: rgba(212, 180, 131, 0.2);
}

.map-list-item:hover:not(.active) {
    background-color: #f9fafb;
}

.map-list-item:focus-visible {
    outline: 2px solid #D4B483;
    outline-offset: -2px;
}

/* Keyframes for pulse animations */
@keyframes pulse-ring-gold {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

@keyframes pulse-ring-red {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

/* ============================================
   MOBILE UX IMPROVEMENTS
   ============================================ */

/* Mobile-first typography and spacing */
@media (max-width: 768px) {

    /* Base typography improvements */
    body {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Improve text contrast - override gray-400/500 with darker grays */
    .text-gray-400 {
        color: #6B7280 !important;
        /* gray-500 */
    }

    .text-gray-500 {
        color: #4B5563 !important;
        /* gray-600 */
    }

    .text-gray-600 {
        color: #374151 !important;
        /* gray-700 */
    }

    /* Paragraph and content spacing */
    section {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    /* Limit line length for readability */
    p,
    li {
        max-width: 100%;
        hyphens: auto;
        -webkit-hyphens: auto;
    }

    /* Touch target minimum sizing */
    button,
    a[href],
    .amenities-nav-btn,
    .map-list-item {
        min-height: 44px;
    }

    /* Markers: explicit reset for circularity (exclude from touch target rule) */
    .map-marker-btn,
    .map-marker-dokview {
        min-height: 0 !important;
        min-width: 0 !important;
        padding: 0;
        appearance: none;
        -webkit-appearance: none;
    }

    /* Stats section mobile improvements */
    #stats-section .text-xs {
        font-size: 0.8125rem;
        /* 13px instead of 12px */
        font-weight: 500;
    }

    /* Make headings break nicely */
    h1,
    h2,
    h3 {
        word-break: break-word;
        hyphens: auto;
    }
}

/* Sticky CTA for mobile */
.sticky-mobile-cta {
    display: none;
}

@media (max-width: 768px) {
    .sticky-mobile-cta {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 45;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.9) 100%);
        padding: 1rem 1.5rem;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
        justify-content: center;
        align-items: center;
    }

    .sticky-mobile-cta a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: var(--mobile-cta-maxw);
        background-color: #D4B483;
        color: #000;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        font-size: 0.75rem;
        padding: 1rem 2rem;
        min-height: 48px;
        transition: all 0.3s ease;
    }

    .sticky-mobile-cta a:hover,
    .sticky-mobile-cta a:active {
        background-color: #8C7350;
        color: #fff;
    }

    /* Add bottom padding to body to prevent content hiding behind sticky CTA */
    body {
        padding-bottom: 80px;
    }
}

/* Map markers improvements for mobile */
@media (max-width: 768px) {

    /* Show labels on mobile for all markers */
    .map-marker-dokview-label {
        display: block;
        left: 50%;
        top: calc(100% + 6px);
        transform: translateX(-50%);
        font-size: 0.5rem;
        letter-spacing: 0.08em;
        padding: 2px 6px;
    }

    .map-marker-label {
        display: block;
        font-size: 0.5rem;
        padding: 2px 4px;
        max-width: 110px;
        text-align: center;
        white-space: normal;
        line-height: 1.2;
    }

    .map-marker-label--r1 {
        left: calc(50% + 24px);
        transform: translateX(-50%);
    }

    /* Map guidance */
    #location .map-guidance {
        padding: 0.6rem 0.75rem;
        border-radius: 10px;
        gap: 0.5rem 0.75rem;
    }

    #location .map-instruction {
        width: 100%;
    }

    #location .map-instruction-title {
        font-size: 0.55rem;
    }

    #location .map-instruction-text {
        font-size: 0.6rem;
    }

    #location .map-legend {
        width: 100%;
        justify-content: flex-start;
    }

    #location .map-legend-item {
        font-size: 0.55rem;
    }

    #location .mobile-map-shell .map-guidance {
        margin-bottom: 0.75rem;
    }

    /* Category selector - horizontal scroll */
    .map-category-selector {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 0.5rem;
        margin: 0 -1.25rem 1rem -1.25rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .map-category-selector::-webkit-scrollbar {
        display: none;
    }

    .map-category-btn {
        flex-shrink: 0;
        scroll-snap-align: start;
        min-height: 44px;
    }

    .map-reset-btn {
        flex-shrink: 0;
        min-height: 44px;
    }

    /* List items larger touch targets */
    .map-list-item {
        padding: 1rem 0.75rem;
        min-height: 56px;
    }

    .map-list-item h4 {
        font-size: 0.8125rem;
    }

    /* Map hint text */
    .map-interactive-container+p,
    .map-hint-text {
        font-size: 0.75rem;
    }

    /* Travel badges - stack vertically on small screens */
    .map-travel-badges {
        flex-direction: column;
        gap: 0.25rem;
    }

    /* Location section - mobile layout */
    #location .grid {
        display: flex;
        flex-direction: column;
    }

    /* List column (first in HTML) - move to bottom on mobile */
    #location .grid>div:first-child {
        order: 2;
        margin-top: 1.5rem;
    }

    /* Map column (second in HTML) - move to top on mobile */
    #location .grid>div:last-child {
        order: 1;
    }
}

/* Focus states for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid #D4B483;
    outline-offset: 2px;
}

/* Mobile menu improvements */
@media (max-width: 768px) {
    #mobile-menu a {
        min-height: 48px;
        display: flex;
        align-items: center;
        padding: 0.5rem 1rem;
    }
}

/* Footer mobile improvements */
@media (max-width: 768px) {
    footer form button {
        min-height: 44px;
        padding: 0.75rem 1rem;
        font-size: 0.8125rem;
    }

    footer input[type="email"] {
        min-height: 44px;
        font-size: 16px;
        /* Prevents zoom on iOS */
    }
}

/* Vision section mobile spacing */
@media (max-width: 768px) {
    #vision .space-y-6>*+* {
        margin-top: 1.5rem;
    }

    #vision h2 {
        font-size: 2.5rem;
        line-height: 1;
    }

    #vision h3 {
        font-size: 1.125rem;
        line-height: 1.5;
    }
}

/* Architecture section mobile */
@media (max-width: 768px) {
    #architecture ul {
        gap: 1rem;
    }

    #architecture li {
        padding: 0.5rem 0;
    }
}

/* Amenities section header mobile */
@media (max-width: 768px) {
    #amenities h2 {
        font-size: 2rem;
        line-height: 1.1;
    }

    #amenities .amenities-slide {
        gap: 1.5rem;
    }

    #amenities .amenities-slide>div:first-child {
        height: 280px;
    }
}

/* Location section mobile */
@media (max-width: 768px) {
    #location h2 {
        font-size: 1.75rem;
        line-height: 1.15;
    }
}

/* Availability CTA section mobile */
@media (max-width: 768px) {
    #availability {
        height: clamp(360px, 52vh, 520px);
    }

    #availability h2 {
        font-size: 1.75rem;
    }

    #availability a {
        min-height: 48px;
        padding: 1rem 2rem;
    }
}

/* ============================================
   MOBILE BOTTOM SHEET MAP EXPERIENCE
   ============================================ */

/* Desktop: show original grid layout */
#location .mobile-map-shell {
    display: block;
}

#location .desktop-map-layout {
    display: grid;
}

@media (max-width: 768px) {

    /* Hide desktop layout, show mobile shell */
    #location .desktop-map-layout {
        display: none !important;
    }

    #location .mobile-map-shell {
        display: block !important;
    }

    /* Mobile map shell - flexible container for map + bottom sheet */
    .mobile-map-shell {
        position: relative;
        width: 100%;
        height: auto;
        overflow: visible;
    }

    /* Mobile map stage - constrained area for map only */
    .mobile-map-stage {
        position: relative;
        width: 100%;
        height: clamp(260px, 60vh, 520px);
        overflow: hidden;
        background: #f9fafb;
    }

    .mobile-map-stage .map-interactive-container {
        width: 100%;
        height: 100%;
        touch-action: pan-x pan-y pinch-zoom;
        min-height: 260px;
    }

    .mobile-map-stage .map-interactive-container img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        display: block;
    }

    /* Bottom sheet container */
    .mobile-bottom-sheet {
        position: absolute;
        left: var(--mobile-gutter);
        right: var(--mobile-gutter);
        bottom: 12px;
        background: white;
        border-radius: 1rem;
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.12);
        min-height: 32%;
        height: 45%;
        max-height: 70%;
        z-index: 90;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        pointer-events: auto;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* Sheet handle - tappable to toggle */
    .sheet-handle {
        display: flex;
        justify-content: center;
        padding: 0.75rem 0 0.5rem;
        cursor: pointer;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .sheet-handle::before {
        content: '';
        width: 40px;
        height: 4px;
        background: #D1D5DB;
        border-radius: 2px;
        transition: background 0.2s ease;
    }

    .sheet-handle:hover::before,
    .sheet-handle:active::before {
        background: #9CA3AF;
    }

    /* Bottom sheet states */
    .mobile-bottom-sheet.collapsed {
        transform: translateY(calc(100% - 60px));
    }

    .mobile-bottom-sheet.collapsed .sheet-content {
        opacity: 0;
        pointer-events: none;
    }

    /* Sheet header with sticky chips */
    .sheet-header {
        position: sticky;
        top: 0;
        background: white;
        z-index: 10;
        padding: 0 1.25rem 0.75rem;
        border-bottom: 1px solid #f3f4f6;
    }

    /* Simplified sheet header */
    .mobile-bottom-sheet .sheet-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .mobile-bottom-sheet .sheet-header-title {
        font-size: 0.875rem;
        font-weight: 600;
        color: #374151;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    /* Sheet content - scrollable list */
    .sheet-content {
        padding: 0.75rem 1.25rem 1.25rem;
        max-height: none;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        flex: 1;
    }

    .sheet-content::-webkit-scrollbar {
        width: 4px;
    }

    .sheet-content::-webkit-scrollbar-thumb {
        background: #E5E7EB;
        border-radius: 2px;
    }

    /* Filter count badge */
    .filter-count-badge {
        display: inline-flex;
        align-items: center;
        padding: 0.25rem 0.75rem;
        background: #FEE2E2;
        color: #DC2626;
        font-size: 0.6875rem;
        font-weight: 600;
        border-radius: 9999px;
        margin-left: 0.5rem;
    }

    /* Hide intro text on mobile (shown in sheet instead) */
    .mobile-intro-text {
        display: block;
        padding: 0 0 0.75rem;
        font-size: 0.875rem;
        color: #6B7280;
        line-height: 1.5;
    }

    /* Location section padding adjustment for mobile */
    #location {
        padding-top: 3rem;
        padding-bottom: 0;
    }

    #location>.max-w-7xl {
        padding: 0;
    }

    /* Hide hint text on mobile - not needed with bottom sheet */
    .map-hint-text {
        display: none;
    }
}

/* Desktop hover highlight for list items */
@media (min-width: 769px) {
    .map-list-item.hover-highlight {
        background-color: #FEF2F2;
        border-left-color: #FCA5A5;
    }

    .map-marker-btn.hover-highlight {
        transform: translate(-50%, -50%) scale(1.2);
        box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.3);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    .map-marker-dokview::after,
    .map-marker-btn::after {
        animation: none !important;
    }

    .map-connection-line {
        animation: none !important;
    }

    .mobile-bottom-sheet,
    .map-marker-btn,
    .map-marker-dokview,
    .map-list-item {
        transition: none !important;
    }
}

/* ============================================
   MAP CATEGORY RAIL - Vertical on-map selector
   ============================================ */
#location .map-ui-rail {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 80;
    pointer-events: auto;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(8px);
}

@media (min-width: 769px) {
    #location .map-ui-rail {
        right: 12px;
        /* Inside map container, not floating outside */
    }
}

#location .map-rail-divider {
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 4px 0;
}

#location .map-transport-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#location .map-transport-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 9999px;
    min-height: 38px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

#location .map-transport-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

#location .map-transport-btn[data-transport="walk"] {
    --transport-color: #F59E0B;
}

#location .map-transport-btn[data-transport="bike"] {
    --transport-color: #22C55E;
}

#location .map-transport-btn[data-transport="car"] {
    --transport-color: #3B82F6;
}

#location .map-transport-btn.active {
    background: var(--transport-color);
    color: #fff;
    border-color: var(--transport-color);
    transform: translateX(-2px);
}

#location .map-transport-btn.active svg {
    stroke: #fff;
}

#location .map-transport-btn:focus-visible {
    outline: 2px solid #D4B483;
    outline-offset: 2px;
}

/* ============================================
   MAP DESTINATION PANEL - Inline list left of rail
   ============================================ */
#location .map-destination-panel {
    position: absolute;
    right: 140px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 75;
    pointer-events: auto;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
    max-height: 65vh;
    overflow-y: auto;
    min-width: 240px;
    max-width: 320px;
}

#location .map-destination-panel {
    display: none !important;
}

#location .map-destination-panel.visible {
    display: flex;
}

#location .map-destination-item {
    display: flex;
    flex-direction: column;
    padding: 10px 14px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    min-height: 52px;
}

#location .map-destination-item:hover {
    background: #F3F4F6;
}

#location .map-destination-item.active {
    background: #FEF2F2;
    border-color: #DC2626;
}

#location .map-destination-item .dest-name {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

#location .map-destination-item .dest-subtype {
    font-size: 11px;
    color: #6B7280;
    margin-top: 2px;
}

#location .map-destination-item .dest-travel {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 10px;
    color: #9CA3AF;
    margin-top: 4px;
    line-height: 1.3;
}

#location .map-destination-item .dest-travel-line {
    display: block;
}

/* Compact rail mode when category is active */
#location .map-ui-rail.compact .map-rail-btn span {
    display: none;
}

#location .map-ui-rail.compact .map-transport-btn span {
    display: none;
}

#location .map-ui-rail.compact {
    padding: 8px;
}

/* Adjust destination panel position when rail is compact */
#location .map-ui-rail.compact~.map-destination-panel,
#location .map-destination-panel {
    right: 80px;
}

/* ============================================
   MOBILE: Compact rail layout fixes
   On mobile, .compact should NOT hide text labels
   and should maintain horizontal wrapping layout
   ============================================ */
@media (max-width: 768px) {
    #location .map-ui-rail.compact {
        position: static !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        padding: 12px !important;
        margin-top: 12px !important;
        width: 100% !important;
        max-height: none !important;
        overflow: visible !important;
    }

    /* On mobile, SHOW text labels even in compact mode */
    #location .map-ui-rail.compact .map-rail-btn span,
    #location .map-ui-rail.compact .map-transport-btn span {
        display: inline !important;
    }

    /* Ensure buttons stay horizontal with proper sizing */
    #location .map-ui-rail.compact .map-rail-btn,
    #location .map-ui-rail.compact .map-transport-btn {
        flex-direction: row !important;
        width: auto !important;
        height: auto !important;
        min-height: 36px !important;
        padding: 6px 10px !important;
    }

    /* Ensure transport group stays horizontal */
    #location .map-ui-rail.compact .map-transport-group {
        flex-direction: row !important;
        gap: 6px !important;
    }

    /* Horizontal divider on mobile */
    #location .map-ui-rail.compact .map-rail-divider {
        width: 1px !important;
        height: 24px !important;
        margin: 0 6px !important;
    }
}

#location .map-rail-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: transparent;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 12px;
    border-radius: 9999px;
    min-height: 40px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

#location .map-rail-btn i,
#location .map-rail-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

#location .map-rail-btn:hover {
    background: #F3F4F6;
}

#location .map-rail-btn.active {
    background: #DC2626;
    color: #fff;
    border-color: #DC2626;
}

#location .map-rail-btn:focus-visible {
    outline: 2px solid #D4B483;
    outline-offset: 2px;
}

#location .map-rail-reset {
    border-color: #D4B483;
    color: #8C7350;
}

#location .map-rail-reset:hover {
    background: rgba(212, 180, 131, 0.15);
}

/* Mobile rail tweaks */
@media (max-width: 768px) {
    #location .map-ui-rail {
        top: var(--mobile-gutter);
        bottom: auto;
        transform: none;
        right: var(--mobile-gutter);
        padding: 8px;
        gap: 6px;
    }

    #location .map-rail-btn {
        min-height: 44px;
        font-size: 12px;
        padding: 8px 10px;
    }

    #location .map-rail-btn span {
        display: none;
    }

    #location .map-transport-btn {
        min-height: 40px;
        padding: 6px 8px;
        font-size: 11px;
    }

    #location .map-transport-btn span {
        display: none;
    }

    /* Mobile destination panel */
    #location .map-destination-panel {
        right: calc(var(--mobile-gutter) + 60px);
        min-width: 0;
        width: var(--mobile-panel-maxw);
        max-width: var(--mobile-panel-maxw);
        max-height: 55vh;
        padding: 8px;
    }

    #location .map-destination-item {
        padding: 8px 12px;
        min-height: 44px;
    }

    #location .map-destination-item .dest-name {
        font-size: 12px;
    }

    #location .map-destination-item .dest-subtype {
        font-size: 11px;
    }

    #location .map-destination-item .dest-travel {
        font-size: 10px;
    }
}

/* Hide on-map destination panel on mobile (use bottom sheet list instead) */
@media (max-width: 768px) {
    #location #map-destination-panel-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    #location .mobile-map-shell {
        display: none !important;
    }
}

/* Hide desktop list column - destinations shown on map */
#location .desktop-map-layout>div:first-child {
    display: none;
}

/* Expand map to full width on desktop */
#location .desktop-map-layout {
    grid-template-columns: 1fr;
}

#location .desktop-map-layout>div:last-child {
    grid-column: 1 / -1;
}



/* ============================================
   TRAVEL BADGES DOCKING - Fixed position safe zone
   ============================================ */
#location .map-travel-badges {
    left: auto !important;
    top: auto !important;
    right: 14px;
    bottom: 14px;
    transform: none !important;
    flex-direction: column;
    align-items: flex-start;
    z-index: 70;
    pointer-events: none;
}

@media (max-width: 768px) {
    #location .map-travel-badges {
        right: auto;
        left: 12px;
        bottom: 16px;
    }
}

/* ============================================
   HIDE DUPLICATE CATEGORY SELECTORS
   ============================================ */
#location .desktop-map-layout .map-category-selector {
    display: none;
}

#location .mobile-bottom-sheet .sheet-header .map-category-selector {
    display: none;
}