/* Custom Font Import */
@font-face {
    font-family: 'SpringwoodDisplay';
    src: url('./fonts/SpringwoodDisplay-Regular.woff') format('woff'),
         url('./fonts/SpringwoodDisplay-Regular') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* Better performance */
}

@font-face {
    font-family: 'GTWalsheimPro';
    src: url('./fonts/GTWalsheimPro-Regular.woff2') format('woff2'),
         url('./fonts/GTWalsheimPro-Regular.woff') format('woff'),
         url('./fonts/GTWalsheimPro-Regular') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow: hidden; /* Prevent scroll on html level */
}

body {
    font-family: 'GTWalsheimPro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow: hidden; /* No scroll whatsoever on mobile */
    height: 100vh;
    position: fixed; /* Lock body position */
    width: 100%;
    /* Improved touch scrolling */
    -webkit-overflow-scrolling: touch;
    /* Prevent accidental selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Prevent pull-to-refresh */
    overscroll-behavior: none;
}

/* Allow scrolling on desktop */
@media (min-width: 769px) {
    html {
        overflow: auto;
        height: auto;
    }
    
    body {
        overflow-y: auto;
        height: auto;
        position: static;
    }
}

/* Allow text selection in inputs and content areas */
input, textarea, .bench-details, .popup-content {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header - Max 64px height */
.header {
    background: #1e1e1e;
    color: white;
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
    height: 64px;
    display: flex;
    align-items: center;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'SpringwoodDisplay', sans-serif;
    font-size: 1.25rem;
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo i {
    color: #e74c3c;
    font-size: 1.1rem;
}

.menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.menu-toggle:hover {
    background-color: rgba(255,255,255,0.1);
}

.db-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.db-link:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Search Container - Floating Overlay - Performance Optimized */
.search-container {
    position: absolute;
    top: 75px; /* Below header */
    left: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background: #ffffff;
    /* Removed expensive backdrop-filter and box-shadow */
    border: 1px solid #e0e0e0;
    z-index: 999;
    border-radius: 32px;
    height: 48px;
    display: flex;
    align-items: center;
    /* CSS containment for better performance */
    contain: layout style;
}

.search-bar {
    display: flex;
    gap: 0.75rem;
    width: 100%;
    align-items: center;
}

/* Locatie knop LINKS */
.location-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #3498db;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    order: -1; /* Move to left */
}

#citySearch {
    flex: 1;
    padding: 0 1rem;
    border: none;
    border-radius: 32px;
    font-size: 1rem;
    outline: none;
    background: transparent;
    height: 32px;
}

#citySearch::placeholder {
    color: #7f8c8d;
}

.location-btn:hover {
    background: #2980b9;
    transform: scale(1.05);
}

/* Map - Full viewport behind overlay search */
.map-container {
    height: calc(100vh - 64px - 40px); /* Header(64px) + Version footer space only */
    width: 100%;
    position: relative;
    border: none;
    background-color: transparent;
    overflow: hidden;
    margin-top: 0; /* No margin since search is overlay */
}

#map {
    height: 100%;
    width: 100%;
    background-color: transparent;
}

/* Desktop specific map adjustments - FULL HEIGHT */
@media (min-width: 769px) {
    .map-container {
        height: 100vh !important; /* Full viewport height on desktop */
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
    }
    
    /* Header should be above map */
    .header {
        position: relative;
        z-index: 1001;
    }
    
    /* Search should be above map */
    .search-container {
        z-index: 1002;
    }
    
    /* FAB should be above map */
    .fab {
        z-index: 1003;
    }
    
    /* Version footer should be above map */
    .version-footer {
        z-index: 1004;
    }
}

/* Zoom controls removed - no longer needed */

/* Lightweight Bench Marker Styling - Optimized for Performance */
.custom-bench-marker {
    background: transparent !important;
    border: none !important;
    /* CSS containment for better performance */
    contain: layout style paint;
}

.bench-marker-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    border: 2px solid #1e1e1e;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Removed expensive properties: box-shadow, transition */
    /* Hardware acceleration for positioning */
    will-change: auto;
}

.bench-marker-circle i {
    color: #1e1e1e;
    font-size: 12px;
}

/* Favorite bench marker - Gold circle */
.bench-marker-circle.favorite {
    background: #f1c40f;
    border-color: #d68910;
    /* Removed expensive box-shadow */
}

.bench-marker-circle.favorite i {
    color: #1e1e1e;
}

/* Removed expensive hover effects - no transforms, no shadows */

/* Floating Action Button - Performance Optimized */
.fab {
    position: fixed;
    bottom: calc(1rem + 40px); /* Above version footer */
    left: 1rem;
    right: 1rem;
    height: 48px;
    border-radius: 32px;
    background: #e74c3c;
    color: white;
    border: none;
    font-family: 'SpringwoodDisplay', sans-serif !important;
    font-size: 0.9rem;
    font-weight: normal;
    cursor: pointer;
    /* Removed expensive box-shadow and transition */
    z-index: 1000;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    /* CSS containment for better performance */
    contain: layout style;
    /* Better touch feedback */
    -webkit-tap-highlight-color: rgba(231, 76, 60, 0.3);
    tap-highlight-color: rgba(231, 76, 60, 0.3);
}

.fab span {
    font-family: 'SpringwoodDisplay', 'Arial Black', sans-serif !important;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Additional FAB text styling */
.fab * {
    font-family: 'SpringwoodDisplay', 'Arial Black', sans-serif !important;
}

/* Removed expensive FAB hover/active effects for better performance */

/* Mobile FAB - consistent with design system */
@media (max-width: 768px) {
    .fab {
        height: 48px; /* Consistent with design system */
        bottom: calc(1rem + 40px);
        font-size: 1.1rem;
        /* Removed expensive pulse animation for better performance */
    }
}

/* Desktop FAB - same design */
@media (min-width: 769px) {
    .fab {
        bottom: calc(1rem + 40px);
        left: 2rem;
        right: 2rem;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Removed fabPulse keyframes - no longer needed */

/* Mobile-specific modal improvements */
@media (max-width: 768px) {
    .modal.active {
        align-items: center; /* Center on mobile too */
        padding: 3rem 0.5rem; /* More padding on mobile */
    }
    
    .modal-content {
        max-width: none !important;
        max-height: 70vh !important; /* Even smaller on mobile */
        margin: 2rem 0 !important; /* Force spacing on mobile */
        border-radius: 32px !important;
    }
    
    .modal-header {
        padding: 1.25rem 1.5rem 1rem !important;
        position: sticky;
        top: 0;
        background: white;
        border-radius: 32px 32px 0 0;
        z-index: 1;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .modal-header h2 {
        font-size: 1.25rem !important;
    }
    
    /* Larger form inputs on mobile */
    input[type="text"], input[type="email"] {
        padding: 1rem !important;
        font-size: 1.1rem !important;
        border-radius: 10px !important;
    }
    
    /* Better checkbox styling */
    .checkbox-item {
        padding: 1rem 0.75rem !important;
        border-radius: 10px !important;
    }
    
    /* Enhanced star ratings for mobile */
    .star-rating i {
        font-size: 1.75rem !important;
        margin: 0 0.25rem !important;
    }
    
    /* Improved header for mobile */
    .header {
        padding: 1rem 0 !important;
    }
    
    .logo {
        font-size: 1.4rem !important;
    }
    
    /* Better search bar on mobile */
    .search-container {
        padding: 0.75rem 1rem !important;
    }
    
    .search-bar input {
        padding: 1rem !important;
        font-size: 1.1rem !important;
        border-radius: 12px !important;
    }
    
    .location-btn {
        padding: 1rem !important;
        border-radius: 12px !important;
        min-width: 48px !important;
    }
    
        /* Enhanced map on mobile */
    .map-container {
        height: calc(100vh - 140px) !important; /* Take more space on mobile */
    }

/* Map Controls */
.map-controls {
    position: absolute;
    top: 50%; /* Middle of screen */
    right: 10px;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.layer-toggle-btn {
    background: white;
    border: 2px solid rgba(0,0,0,0.2);
    border-radius: 6px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.layer-toggle-btn:hover {
    background: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
}

.layer-toggle-btn.active {
    background: #007bff;
    color: white;
    border-color: #0056b3;
}

.layer-toggle-btn.mini {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
}

/* Mini map controls positioning */
.mini-map-controls {
    gap: 0.25rem !important;
}
    
    /* Better popup styling */
    .custom-popup h3 {
        font-size: 1.1rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .custom-popup button {
        padding: 0.875rem 1.25rem !important;
        font-size: 1rem !important;
        border-radius: 8px !important;
        min-height: 44px !important;
    }
}

/* Version footer - Performance Optimized */
.version-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1e1e1e;
    color: #bdc3c7;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.75rem;
    z-index: 999;
    /* Removed expensive backdrop-filter */
    border-top: 1px solid #333;
    /* CSS containment for better performance */
    contain: layout style;
}

.version-footer small {
    display: inline-block;
    font-weight: 500;
}

/* Hide version footer when modal is open */
.modal.active ~ .version-footer {
    display: none;
}

/* Mobile version footer adjustments */
@media (max-width: 768px) {
    .version-footer {
        padding: 0.4rem 0.5rem;
        font-size: 0.7rem;
    }
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem; /* More aggressive padding */
    box-sizing: border-box;
}

.modal-content {
    background: white;
    border-radius: 32px;
    width: 100%;
    max-width: 500px;
    max-height: 75vh; /* Smaller max height to show spacing */
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    /* Better touch scrolling */
    -webkit-overflow-scrolling: touch;
    /* More breathing room */
    padding: 1.5rem 0;
    margin: 3rem 0; /* Force spacing above and below */
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 1.5rem 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h2 {
    margin: 0;
    color: #1e1e1e;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #7f8c8d;
    padding: 0.75rem;
    border-radius: 6px;
    transition: color 0.3s;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #e74c3c;
}

/* Modal content padding improvements */
.modal form,
.modal .form-group,
.modal p {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.modal .form-group:last-child,
.modal .btn-group {
    padding-bottom: 2rem;
}

/* Form styles */
form {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
}

.location-info {
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    color: #7f8c8d;
    margin: 0.5rem 0 0 0;
    font-size: 0.9rem;
}

/* Mini Map Location Picker */
.location-picker {
    width: 100%;
}

.mini-map-container {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
    margin-bottom: 0.5rem;
}

.mini-map {
    width: 100%;
    height: 100%;
    cursor: grab;
}

.mini-map:active {
    cursor: grabbing;
}

.location-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    z-index: 1000;
    pointer-events: none;
    font-size: 2rem;
    color: #e74c3c;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    animation: pinBounce 2s infinite;
}

.mini-map-instructions {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 1000;
    white-space: nowrap;
}

.mini-map-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
}

.recenter-btn {
    background: white;
    border: 2px solid #ddd;
    border-radius: 6px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.recenter-btn:hover {
    background: #f0f0f0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.recenter-btn i {
    color: #3498db;
    font-size: 1.1rem;
}

@keyframes pinBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translate(-50%, -100%);
    }
    40% {
        transform: translate(-50%, -110%);
    }
    60% {
        transform: translate(-50%, -105%);
    }
}

/* Rating styles */
.rating-section h3, .amenities-section h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.1rem;
}

.rating-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.rating-group label {
    margin: 0;
    font-weight: 500;
}

.star-rating {
    display: flex;
    gap: 0.25rem;
}

.star-rating i {
    font-size: 1.2rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

.star-rating i:hover,
.star-rating i.active {
    color: #f39c12;
}

/* Checkbox styles */
.checkbox-group {
    display: grid;
    gap: 0.75rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.checkbox-item:hover {
    background: #e9ecef;
}

.checkbox-item input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #bdc3c7;
    border-radius: 4px;
    margin-right: 0.75rem;
    position: relative;
    transition: all 0.3s;
}

.checkbox-item input[type="checkbox"]:checked + .checkmark {
    background: #27ae60;
    border-color: #27ae60;
}

.checkbox-item input[type="checkbox"]:checked + .checkmark::after {
    content: '\2713';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
}

/* Button styles */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-primary, .btn-secondary {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 32px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 44px; /* Better touch targets */
    /* Improve touch feedback */
    -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    tap-highlight-color: rgba(0,0,0,0.1);
}

/* Enhanced mobile button styling */
@media (max-width: 768px) {
    .btn-primary, .btn-secondary, .btn-warning, .btn-favorite {
        padding: 1rem 1.75rem; /* Larger touch targets on mobile */
        font-size: 1.1rem;
        min-height: 48px;
        border-radius: 32px;
    }
    
    .form-actions {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 0.75rem;
    }
    
    .bench-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-warning {
    background: #f39c12;
    color: white;
    border-radius: 32px;
}

.btn-warning:hover {
    background: #e67e22;
}

.btn-favorite {
    background: #ecf0f1;
    color: #1e1e1e;
    border: 2px solid #bdc3c7;
    transition: all 0.3s ease;
    border-radius: 32px;
}

.btn-favorite:hover {
    background: #f8c471;
    border-color: #f39c12;
}

.btn-favorite.active {
    background: #e74c3c;
    color: white;
    border-color: #c0392b;
}

/* Icon-only buttons */
.btn-icon-only {
    width: 48px !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 32px !important;
}

/* Make sure popup buttons are completely isolated */
.leaflet-popup .custom-popup button,
.leaflet-popup .bench-details-btn,
.custom-popup .bench-details-btn {
    all: revert !important;
    margin-top: 0.5rem !important;
    padding: 0.5rem 1rem !important;
    background: #3498db !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 0.9rem !important;
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    grid-column: auto !important;
    flex: none !important;
    pointer-events: auto !important;
    z-index: 10000 !important;
    position: relative !important;
}

/* Button layout for modal actions - More specific selector */
#benchDetailsModal .btn-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 10px; /* Exact 10px gap as requested */
    padding: 1.5rem;
    align-items: center;
}

#benchDetailsModal .btn-primary,
#benchDetailsModal .btn-secondary {
    height: 48px;
    grid-column: 1 / 3; /* Full width for main buttons */
}

/* Favorite and Report buttons side by side */
#benchDetailsModal .btn-icon-only {
    height: 48px;
    width: auto;
    padding: 0 1.5rem;
    grid-column: auto; /* Take their own column */
    border-radius: 32px;
    min-width: 60px; /* Ensure minimum width for proper appearance */
}

.btn-favorite.active i {
    color: #e74c3c;
}

.btn-favorite i {
    margin-right: 8px;
}

/* Bench details modal */
.bench-details {
    padding: 1.5rem;
}

.rating-display {
    margin-bottom: 1.5rem;
}

.rating-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.rating-label {
    font-weight: 600;
    color: #2c3e50;
}

.stars {
    display: flex;
    gap: 0.25rem;
}

.stars i {
    color: #f39c12;
    font-size: 1.1rem;
}

.amenities-display {
    margin-bottom: 1.5rem;
}

.amenity-tag {
    display: inline-block;
    background: #27ae60;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin: 0.25rem 0.25rem 0.25rem 0;
}

.bench-actions {
    text-align: center;
}

#directionsBtn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Loading overlay */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 10001;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Custom Leaflet popup styles */
.custom-popup {
    text-align: center;
}

.custom-popup h3 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
}

.custom-popup .popup-rating {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.custom-popup .popup-stars {
    color: #f39c12;
    margin-left: 0.5rem;
}

.custom-popup .imported-label {
    color: #3498db;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.custom-popup .imported-label i {
    font-size: 0.8rem;
}

/* Imported amenity tags styling */
.imported-tag {
    background: #3498db !important;
    color: white !important;
    border: 1px solid #2980b9 !important;
}





.custom-popup button {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    pointer-events: auto !important;
    z-index: 10000 !important;
    position: relative;
    width: auto !important;
    height: auto !important;
}

/* Mobile Responsive - Design System Applied */
@media (max-width: 768px) {
    .header .container {
        padding: 0 1rem;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .search-container {
        top: 70px; /* Closer to header on mobile */
        left: 0.5rem;
        right: 0.5rem;
        height: 48px;
        border-radius: 32px;
    }
    
    .map-container {
        height: calc(100vh - 64px - 40px); /* Full height behind overlay */
    }
}
    
    .modal-content {
        margin: 0;
        border-radius: 12px 12px 0 0;
        max-height: 95vh;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .rating-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .rating-group .star-rating {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .search-bar {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    #citySearch {
        border-radius: 12px;
    }
    
    .location-btn {
        width: 100%;
        border-radius: 12px;
        height: 45px;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .fab {
        box-shadow: 0 2px 10px rgba(231, 76, 60, 0.3);
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
button:focus-visible,
input:focus-visible {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.star-rating i:focus-visible {
    outline: 2px solid #f39c12;
    outline-offset: 2px;
} 

/* Font System - SpringwoodDisplay for headers, GTWalsheimPro for body */
h1, h2, h3, h4, h5, h6 {
    font-family: 'SpringwoodDisplay', sans-serif;
    font-weight: normal;
    letter-spacing: 0.5px;
}

.modal h3,
.custom-popup h3,
.popup-title {
    font-family: 'SpringwoodDisplay', sans-serif;
    font-weight: normal;
    letter-spacing: 0.5px;
}

/* Buttons with SpringwoodDisplay for prominence */
.btn-primary,
.btn-secondary,
.btn-warning,
.btn-favorite {
    font-family: 'SpringwoodDisplay', sans-serif;
    font-weight: normal;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* GTWalsheimPro for all other text */
p, span, div, input, textarea, label {
    font-family: 'GTWalsheimPro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
} 