/* Lochmuehle CI Colors */
:root {
    --color-primary-red: rgb(205, 23, 25);
    --color-orange: rgb(239, 125, 0);
    --color-blue: rgb(0, 164, 207);
    --color-white: rgb(255, 255, 255);
    --color-black: rgb(0, 0, 0);
    --color-text: rgb(51, 51, 51);
    --color-gray-light: rgb(245, 245, 245);
    --color-shadow: rgba(0, 0, 0, 0.2);

    /* Marker sizing */
    --marker-size: 22px;
    --marker-font: 11px;
    --service-size: 20px;
    --service-radius: 4px;
    --service-padding: 2px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--color-text);
    background-color: var(--color-gray-light);
    overflow-x: hidden;
}

/* Page Content Wrapper - Matches live site container (1400px max-width) */
.pm-page-content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 25px;
}

/* Remove padding on mobile for full-width map experience */
@media (max-width: 767px) {
    .pm-page-content-wrapper {
        padding: 0;
    }
}

/* Park Map Container */
.pm-park-map-container {
    position: relative;
    width: 100%;
    /* Desktop: Auto height to match image aspect ratio (no whitespace)
       Mobile/Tablet: Overridden in media queries with vh-based heights for zoom control */
    height: auto;
    background-color: var(--color-white);
    overflow: hidden;
    border-bottom: 3px solid var(--color-primary-red);
}

/* Map Viewport */
.pm-map-viewport {
    width: 100%;
    /* Desktop: Auto height to match image
       Mobile/Tablet: 100% to fill vh-based container for zoom control */
    height: auto;
    overflow: hidden;
    cursor: grab;
    position: relative;
}

.pm-map-viewport.pm-dragging {
    cursor: grabbing;
}

/* Map Canvas */
.pm-map-canvas {
    position: relative;
    /* Center origin for intuitive zoom behavior - zooms toward viewport center */
    transform-origin: 50% 50%;

    /* GPU Acceleration Strategy:
       - transition: Smooth animated zoom/pan
       - Note: will-change removed - it caused blur on child markers
       - Using scale() and translate() functions (not matrix) for clarity */
    transition: transform 0.3s ease-out;

    /* Transform now managed by JavaScript - see zoom-controls.js */
}

/* Park Map Image */
.pm-park-map-image {
    display: block;
    width: 100%;
    height: auto;

    /* Mobile Drag Prevention:
       - user-select: none - Prevents text selection during drag
       - -webkit-user-drag: none - Prevents default image drag on webkit browsers
       - -webkit-touch-callout: none - Disables iOS long-press context menu
       - touch-action: none - Prevents default touch behaviors (scroll, zoom, pan)
       - pointer-events: none - Allows clicks to pass through to markers below */
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    touch-action: none;
    pointer-events: none;

    /* Sharper image scaling - reduces blur on zoom */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Zoom Controls */
.pm-zoom-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.pm-zoom-btn {
    width: 44px;
    height: 44px;
    border: 2px solid var(--color-primary-red);
    background-color: var(--color-white);
    color: var(--color-primary-red);
    font-size: 24px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px var(--color-shadow);
    /* Center the + and - text */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 1 !important;
}

.pm-zoom-btn:hover {
    background-color: var(--color-primary-red);
    color: var(--color-white);
    transform: scale(1.05);
}

.pm-zoom-btn:active {
    transform: scale(0.95);
}

.pm-zoom-btn:disabled,
.pm-zoom-btn.pm-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pm-zoom-btn:disabled:hover,
.pm-zoom-btn.pm-disabled:hover {
    background-color: var(--color-white);
    color: var(--color-primary-red);
    transform: none;
}

/* Map Points Container */
.pm-map-points {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* Match image aspect ratio for correct coordinate positioning
       Since image has width: 100% and height: auto, the aspect-ratio ensures
       percentage-based coordinates align correctly with the map image.
       Image dimensions: 4961x2433px = 2.039:1 ratio */
    aspect-ratio: 4961 / 2433;
    pointer-events: none;
    /* Isolation prevents stacking context changes from child marker transforms
       from affecting sibling elements - fixes first-hover layout shift */
    isolation: isolate;
}

/* ===== Spec 4: Interactive Attraction Markers ===== */

/* Base Marker Styles */
.pm-map-marker {
    position: absolute;
    /* Use negative margins instead of transform for centering - avoids Chrome's fractional pixel blur */
    /* translateZ(0) forces GPU compositing layer from start - prevents first-hover layout shift
       scale(1) establishes base transform for smooth hover transitions */
    transform: scale(1) translateZ(0);
    transform-origin: center center;
    /* Note: will-change: transform causes blur - don't add it here */
    /* Override parent pointer-events: none */
    pointer-events: all;
    /* Above map image, below zoom controls and popups */
    z-index: 10;
    /* Pointer cursor for interactivity */
    cursor: pointer;
    /* Grid centering - avoids flexbox sub-pixel recalculation on first hover */
    display: grid;
    place-items: center;
    /* Typography for maximum legibility */
    font-weight: bold;
    line-height: 1;
    /* Smooth transitions for hover effects */
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    /* Crisp text rendering with stable positioning during transforms */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision;
    /* Isolate layout context to prevent parent recalculations affecting content */
    contain: layout;
}

/* Numbered Attraction Markers (IDs 1-50) */
.pm-marker-attraction {
    /* Red circular markers */
    background-color: var(--color-primary-red);
    color: var(--color-white);
    border-radius: 50%;
    border: none;
    /* Fixed sizing using CSS variables */
    width: var(--marker-size);
    height: var(--marker-size);
    font-size: var(--marker-font);
    /* Negative margin centering - half of size */
    margin-left: calc(var(--marker-size) / -2);
    margin-top: calc(var(--marker-size) / -2);
    box-shadow: 0 2px 6px var(--color-shadow);
    /* Color swap variables for hover effect */
    --original-color: var(--color-primary-red);
    --swap-color: var(--color-blue);
}

/* Facility Markers (IDs A-G) */
.pm-marker-facility {
    /* Blue circular markers */
    background-color: var(--color-blue);
    color: var(--color-white);
    border-radius: 50%;
    border: none;
    text-transform: uppercase;
    /* Fixed sizing using CSS variables */
    width: var(--marker-size);
    height: var(--marker-size);
    font-size: var(--marker-font);
    /* Negative margin centering - half of size */
    margin-left: calc(var(--marker-size) / -2);
    margin-top: calc(var(--marker-size) / -2);
    box-shadow: 0 2px 6px var(--color-shadow);
    /* Color swap variables for hover effect */
    --original-color: var(--color-blue);
    --swap-color: var(--color-primary-red);
}

/* Service Markers (square icons with rounded corners) */
.pm-marker-service {
    /* Square markers with white background */
    background-color: white;
    border: none;
    border-radius: var(--service-radius, 4px); /* Rounded corners - scales with size */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); /* Subtle depth */
    /* Fixed sizing using CSS variables */
    width: var(--service-size);
    height: var(--service-size);
    /* Negative margin centering - half of size */
    margin-left: calc(var(--service-size) / -2);
    margin-top: calc(var(--service-size) / -2);
    /* Remove text formatting */
    font-size: 0;
    line-height: 1;
    padding: var(--service-padding, 2px); /* Space between icon and border */
    display: grid;
    place-items: center;
    /* Color swap variables for hover effect */
    --original-color: white;
    --swap-color: rgb(255, 229, 0); /* Yellow on hover */
}

.pm-marker-service .pm-marker-icon {
    /* Icon image fills marker container with padding */
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Service Marker Highlighting (category-based) */
.pm-marker-service.pm-highlighted {
    background-color: rgb(255, 229, 0); /* Yellow background */
    transform: scale(1.1) translateZ(0); /* Scale from current position (margins handle centering) */
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.4); /* Smaller shadow to prevent overlap */
    z-index: 20; /* Above other markers */
}

/* Hover Effects (Desktop) */
.pm-map-marker:hover {
    /* Scale up and swap colors - scale from current position (margins handle centering) */
    background-color: var(--swap-color) !important;
    transform: scale(1.2) translateZ(0);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
    /* Elevate above other markers */
    z-index: 50;
}

/* Active State (Mobile Sticky Hover) */
.pm-map-marker.pm-active {
    /* Same as hover state - color swap on tap */
    background-color: var(--swap-color) !important;
    transform: scale(1.2) translateZ(0);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
    z-index: 50;
}

/* Highlighted State (Selected Marker - popup open) */
.pm-map-marker.pm-highlighted {
    /* Color swap and 5% enlargement */
    background-color: var(--swap-color) !important;
    transform: scale(1.05) translateZ(0);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
    outline: 1px solid black;
    z-index: 50;
}

/* Pulse Animation for Click Feedback */
@keyframes pulse {
    0% {
        transform: scale(1) translateZ(0);
    }
    50% {
        transform: scale(1.15) translateZ(0);
    }
    100% {
        transform: scale(1) translateZ(0);
    }
}

/* Legacy Attraction Point Styles (for backwards compatibility) */
.pm-attraction-point {
    position: absolute;
    width: 32px;
    height: 32px;
    background-color: var(--color-black);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 6px var(--color-shadow);
    pointer-events: all;
    transform: translate(-50%, -50%);
}

.pm-attraction-point:hover {
    transform: translate(-50%, -50%) scale(1.2);
    z-index: 10;
}

.pm-attraction-point:active {
    transform: translate(-50%, -50%) scale(1.1);
}

/* ===== Spec 5: Popup System & Content ===== */

/* Attraction Popup - Lochmuehle CI Styling */
.pm-attraction-popup {
    position: fixed; /* Fixed positioning to avoid viewport overflow clipping */
    z-index: 1000; /* Above overlay at 999, markers at 10, zoom controls at 100 */
    background-color: var(--color-white);
    /* Lochmuehle distinctive rounded corners: 40px top, 30px bottom */
    border-radius: 40px 40px 30px 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90vw;
    overflow: hidden;
    /* Internal padding */
    padding: 25px;
    /* Display control */
    display: none;
    /* Fade animations - 0.2s ease-in (in), 0.15s ease-out (out) per spec */
    transition: opacity 0.15s ease-out;
    /* Performance optimization */
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* Close Button - Lochmuehle Orange */
.pm-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 44px;
    height: 44px;
    background-color: var(--color-orange); /* Lochmuehle orange */
    color: var(--color-white);
    border: none;
    border-radius: 9999px; /* Pill-shaped circle */
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 44px;
    text-align: center;
    z-index: 10;
    transition: opacity 0.2s ease;
}

.pm-popup-close:hover {
    opacity: 0.8;
}

/* Popup Content Wrapper */
.pm-popup-content {
    /* No additional padding - parent has 25px */
}

/* Popup Header */
.pm-popup-header {
    margin-bottom: 15px;
}

/* Popup Title Wrapper - Flexbox for bubble + title */
.pm-popup-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

/* Marker Bubble in Popup Header */
.pm-marker-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0; /* Don't shrink on small screens */
}

.pm-marker-bubble-attraction {
    background: rgb(205, 23, 25); /* Red - matches map markers */
}

.pm-marker-bubble-facility {
    background: rgb(0, 164, 207); /* Blue - matches map markers */
}

/* Popup Title - DynaPuff Font */
.pm-popup-title {
    font-family: 'DynaPuff', sans-serif;
    font-size: 24px;
    font-weight: bold;
    color: var(--color-primary-red);
    margin: 0; /* Remove margin, handled by wrapper */
    padding-right: 30px; /* Space for close button */
}

/* Category Badge */
.pm-category-badge {
    display: inline-block;
    padding: 6px 16px 8px 16px; /* Asymmetric padding - less top for optical centering */
    border-radius: 8px; /* Slightly larger radius */
    font-size: 13px; /* Slightly larger text */
    font-weight: bold;
    margin-top: 8px;
    line-height: 1; /* Tighter line height */
    white-space: nowrap; /* Prevent text wrapping */
    min-width: fit-content; /* Ensure badge expands to fit content */
    width: auto; /* Explicitly set auto width */
}

/* Category Badge Colors - Match Marker Types */
/* Hide badge for attractions and facilities - only show for services */
.pm-category-badge.pm-marker-attraction,
.pm-category-badge.pm-marker-facility {
    display: none;
}

.pm-category-badge.pm-marker-service {
    background-color: var(--color-white);
    border: 2px solid var(--color-primary-red);
    color: var(--color-primary-red);
}

/* Popup Images - Desktop Side-by-Side */
.pm-popup-images {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-direction: row; /* Side-by-side on desktop */
}

.pm-popup-images img {
    flex: 1; /* Equal columns for 2 images */
    max-height: 200px;
    min-height: 150px; /* Reserve space to prevent layout shift */
    width: 100%;
    object-fit: cover;
    border-radius: 6px;
    background: #f0f0f0; /* Placeholder during lazy load */
}

/* Popup Description - DM Sans Font */
.pm-popup-description {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
}

/* Popup Overlay for Mobile */
.pm-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999; /* Below popup at 1000 */
    display: none;
    pointer-events: all;
    opacity: 0;
}

/* Popup Animations */
@keyframes popup-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes popup-fade-out {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes popup-slide-up {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes popup-slide-down {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(100%);
    }
}

.pm-popup-fade-in {
    animation: popup-fade-in 0.2s ease-in forwards;
}

.pm-popup-fade-out {
    animation: popup-fade-out 0.15s ease-out forwards;
}

.pm-popup-slide-up {
    animation: popup-slide-up 0.3s ease-out forwards;
}

.pm-popup-slide-down {
    animation: popup-slide-down 0.3s ease-in forwards;
}

/* Attractions List Container */
.pm-attractions-list-container {
    max-width: 1200px;
    margin: 15px auto 20px;
    padding: 0 15px;
}

.pm-attractions-list-container h2 {
    font-size: 28px;
    color: var(--color-primary-red);
    margin-top: 30px; /* Space above heading */
    margin-bottom: 20px;
    text-align: center;
}

/* Attractions List - Grid Layout */
.pm-attractions-list {
    list-style: none;
}

/* Main Grid - 3:1 ratio on desktop */
.pm-list-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 15px;
    align-items: start;
}

/* Section Headers */
.pm-section-header {
    padding-top: 8px;
    border-top: 2px solid rgba(0, 164, 207, 0.2);
    margin-bottom: 8px;
}

.pm-section-header span {
    display: block;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pm-attractions-header {
    border-top-color: rgba(177, 54, 52, 0.3);
}

.pm-attractions-header span {
    color: var(--color-primary-red);
}

.pm-facilities-header span {
    color: var(--color-blue);
}

/* Attractions Items - 3-column internal layout */
.pm-attractions-items {
    column-count: 3;
    column-gap: 10px;
}

/* Facilities Items - single column */
.pm-facilities-items {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Service Section */
.pm-service-section {
    margin-top: 12px;
}

.pm-service-header {
    margin-bottom: 6px;
}

.pm-service-header span {
    color: var(--color-blue);
}

/* Service Items - single column */
.pm-service-items {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pm-attraction-list-item {
    background-color: var(--color-white);
    border-left: 3px solid var(--color-blue);
    padding: 6px 8px;
    margin-bottom: 5px;
    break-inside: avoid;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px var(--color-shadow);
    display: flex;
    align-items: center;
}

.pm-attraction-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--color-shadow);
    border-left-color: var(--color-primary-red);
}

.pm-attraction-list-item .pm-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    min-width: 18px;
    background-color: var(--color-primary-red);
    color: var(--color-white);
    border-radius: 50%;
    text-align: center;
    line-height: 18px;
    font-size: 9px;
    font-weight: bold;
    margin-right: 6px;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
}

.pm-attraction-list-item[data-marker-type="facility"] .pm-number {
    background-color: var(--color-blue);
}

.pm-attraction-list-item[data-marker-type="attraction"]:hover .pm-number {
    background-color: var(--color-blue);
}

.pm-attraction-list-item[data-marker-type="facility"]:hover .pm-number {
    background-color: var(--color-primary-red);
}

.pm-attraction-list-item.pm-highlighted {
    background-color: rgba(0, 164, 207, 0.08);
}

.pm-attraction-list-item .pm-name {
    font-size: 12px;
    font-weight: bold;
    color: var(--color-text);
}

/* Service Category Items in List */
.pm-service-category-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background-color: var(--color-white);
    border-left: 3px solid var(--color-primary-red);
    border-radius: 3px;
    box-shadow: 0 1px 3px var(--color-shadow);
    cursor: pointer;
    transition: all 0.2s ease;
}

.pm-service-category-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--color-shadow);
    background-color: rgb(255, 229, 0);
}

.pm-service-category-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.pm-service-category-item .pm-name {
    flex: 1;
    font-size: 12px;
    font-weight: bold;
    color: var(--color-text);
}

.pm-service-count {
    font-size: 13px;
    font-weight: bold;
    color: var(--color-primary-red);
    flex-shrink: 0;
}

/* Mobile List Layout - Single Column */
@media (max-width: 767px) {
    .pm-list-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .pm-attractions-section {
        margin-bottom: 15px;
    }

    .pm-attractions-items {
        column-count: 1;
    }

    .pm-facilities-section {
        width: 100%;
    }

    .pm-service-section {
        margin-top: 15px;
    }
}

/* Desktop-Specific Popup Styles */
@media (min-width: 768px) {
    .pm-attraction-popup {
        max-width: 400px;
        padding: 25px;
    }

    .pm-popup-title {
        font-size: 24px;
    }

    .pm-popup-description {
        font-size: 16px;
    }

    .pm-popup-images {
        flex-direction: row; /* Side-by-side */
    }
}

/* Tablet Viewport (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .pm-park-map-container {
        /* Tablet: Proportional height to maintain 2:1 aspect ratio
           At tablet landscape (1024px), height should be ~512px
           At tablet portrait (768px), height should be ~384px
           Using 50vw ensures height = width / 2 for perfect 2:1 ratio */
        height: 50vw;
        max-height: 600px; /* Cap to avoid excessive height on wide tablets */
    }

    .pm-map-viewport {
        /* Full height to match vh-based container */
        height: 100%;
    }

    /* Tablet: Marker sizes */
    :root {
        --marker-size: 20px;
        --marker-font: 10px;
        --service-size: 18px;
        --service-radius: 4px;
        --service-padding: 2px;
    }

    /* Tablet: 2 columns for attraction items (3 is too cramped) */
    .pm-attractions-items {
        column-count: 2;
    }

    /* Tablet: Stack the grid vertically */
    .pm-list-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Popup Overlay (Mobile Bottom Sheet Backdrop)
   ======================================== */
.pm-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999; /* Below popup at 1000, above markers at 10 */
    display: none;
    opacity: 0;
    transition: opacity 0.2s ease-in;
    pointer-events: none; /* Don't block clicks when hidden */
}

.pm-popup-overlay.pm-visible {
    display: block;
    opacity: 1;
    pointer-events: all; /* Allow clicks only when visible */
}

/* Mobile Responsive (max-width: 767px) */
@media (max-width: 767px) {
    .pm-park-map-container {
        /* Mobile: Viewport height set to fit comfortably on device display
           Using 60vh ensures viewport doesn't require vertical page scroll
           Full map HEIGHT will be visible via zoom transform on .pm-map-canvas */
        height: 60vh;
        /* Enable horizontal scrolling for full map WIDTH access */
        overflow-x: auto;
        /* Disable vertical scrolling - full height should be visible when zoomed */
        overflow-y: hidden;
        /* Smooth horizontal scrolling on iOS */
        -webkit-overflow-scrolling: touch;
    }

    .pm-map-viewport {
        /* Viewport allows horizontal overflow for wide scaled canvas */
        overflow-x: auto;
        overflow-y: hidden;
        /* Full height to match container */
        height: 100%;
    }

    .pm-map-canvas {
        /* Transform now managed by JavaScript - see zoom-controls.js */
        /* Static mobile zoom scales removed - JavaScript engine is single source of truth */
    }

    .pm-park-map-image {
        /* Keep landscape orientation - width fills viewport, height maintains aspect ratio */
        width: 100%;
        height: auto;
    }

    /* Zoom controls repositioned for mobile */
    .pm-zoom-controls {
        top: 10px;
        right: 10px;
    }

    .pm-zoom-btn {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    /* Mobile: Marker sizes - smaller base since zoom starts higher */
    :root {
        --marker-size: 12px;
        --marker-font: 6px;
        --service-size: 10px;
        --service-radius: 2px;
        --service-padding: 1px;
    }

    /* Legacy attraction points scaled for mobile */
    .pm-attraction-point {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }

    /* Mobile Bottom Sheet Transformation */
    .pm-attraction-popup {
        position: fixed; /* Fixed instead of absolute */
        bottom: 0;
        left: 5%;
        right: 5%;
        top: auto; /* Override desktop positioning */
        max-width: none; /* Full width within margins */
        max-height: 80vh;
        overflow-y: auto;
        border-radius: 40px 40px 0 0; /* Only top corners rounded */
        padding: 20px;
        transform: translateY(100%); /* Hidden initially below viewport */
        transition: transform 0.3s ease-out;
    }

    .pm-attraction-popup.pm-visible {
        transform: translateY(0); /* Slide up to visible position */
    }

    .pm-popup-title {
        font-size: 20px;
    }

    .pm-popup-description {
        font-size: 14px;
    }

    .pm-popup-images {
        flex-direction: column; /* Stacked vertically */
    }

    .pm-popup-images img {
        width: 100%;
        margin-bottom: 10px;
    }

    /* Ensure close button has 44x44px touch target */
    .pm-popup-close {
        width: 44px;
        height: 44px;
    }

    /* List layout stacked on mobile */
    /* Mobile: Single column for attraction list */
    .pm-attractions-list {
        column-count: 1;
    }

    .pm-attractions-list-container h2 {
        font-size: 24px;
    }

    /* Ensure proper touch targets for list items */
    .pm-attraction-list-item {
        min-height: 44px;
        padding: 12px; /* Balanced padding for touch + tighter design */
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .pm-park-map-container {
        /* Smaller devices: Reduce viewport height to 50vh for better proportions */
        height: 50vh;
    }

    .pm-map-canvas {
        /* Transform now managed by JavaScript - see zoom-controls.js */
        /* Static mobile zoom scales removed - JavaScript engine is single source of truth */
    }

    .pm-zoom-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    /* Small Mobile: Slightly smaller markers */
    :root {
        --marker-size: 10px;
        --marker-font: 6px;
        --service-size: 8px;
        --service-radius: 2px;
        --service-padding: 1px;
    }

    /* Legacy attraction points */
    .pm-attraction-point {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
}

/* ========================================
   Grillplatz (BBQ Hut) Map Specific Styles
   ======================================== */

/* Grillplatz Map Points Container - Different aspect ratio than park map */
/* Grill map image dimensions: 3398x1591px = 2.136:1 ratio */
.pm-grillplatz-map-points {
    aspect-ratio: 3398 / 1591;
}

/* Grillplatz List Grid - Single column layout (no categories) */
.pm-grillplatz-list-grid {
    display: block; /* Override grid for single column */
}

/* Grillplatz Section */
.pm-grillplatz-section {
    width: 100%;
}

/* Grillplatz Items - Desktop: 3 columns max */
.pm-grillplatz-items {
    column-count: 3 !important;
    column-gap: 10px;
}

/* Tablet: 2 columns for grillplatz list */
@media (max-width: 1023px) {
    .pm-grillplatz-items {
        column-count: 2 !important;
    }
}

/* Mobile: Single column for grillplatz list */
@media (max-width: 767px) {
    .pm-grillplatz-items {
        column-count: 1 !important;
    }
}
