/* ================================
   DESIGN SYSTEM - CSS VARIABLES
   ================================ */
:root {
   /* Z-Index Scale */
   --z-base: 1;
   --z-dropdown: 100;
   --z-search-suggestions: 150;
   --z-sticky: 200;
   --z-navigation: 800;
   --z-toast: 900;
   --z-results-overlay: 1000;      /* Results overlay */
   --z-pub-details: 1100;           /* Pub details overlay */
   --z-modal-backdrop: 1200;        /* Regular modals */
   --z-modal-content: 1210;         /* Modal content */
   --z-status-modals: 1300;         /* Status modals (above pub details) */
   --z-cookie: 1400;                /* Cookie banner */
   
   /* Classic colours */
   --white: rgba(255, 255, 255, 1);
   --gold: rgba(255,215,0,1);
   --dark-gold: rgba(253,187,4,1);
   --green: rgba(0,245,0,1);
   --red: rgba(239,68,68,1);
   --light-grey: rgba(156,163,175,1);
   
   /* Brand Colors & Gradients */
   --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
   --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
   --error-gradient: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
   --warning-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
   --info-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
   --purple-gradient: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
   
   /* Text Colors */
   --text-primary: rgba(45,55,72,1);
   --text-secondary: rgba(74,85,104,1);
   --text-muted: rgba(113,128,150,1);
   --text-white: var(--white);

   /* Text Sizing */
   --text-xs: 0.75rem;
   --text-sm: 0.875rem;
   --text-md: 1rem;
   --text-lg: 1.125rem;
   --text-xl: 1.25rem;
   --text-2xl: 1.5rem;
   --text-3xl: 1.875rem;
   --text-4xl: 2.25rem;
   
   /* Background Colors */
   --bg-white: rgba(255, 255, 255, 0.95);
   --bg-glass: rgba(255, 255, 255, 0.1);
   --bg-section: rgba(248, 250, 252, 0.8);
   --bg-overlay: rgba(0, 0, 0, 0.8);

   /* Button System */
   --btn-height: 44px;
   --btn-height-sm: 36px;
   --btn-height-lg: 56px;
   --btn-padding: 12px 20px;
   --btn-padding-sm: 8px 16px;
   --btn-padding-lg: 16px 24px;
   
   /* Spacing System */
   --space-xs: 4px;
   --space-sm: 8px;
   --space-md: 12px;
   --space-lg: 16px;
   --space-xl: 20px;
   --space-2xl: 24px;
   --space-3xl: 32px;
   --space-4xl: 40px;
   
   /* Border Radius */
   --radius-sm: 8px;
   --radius: 12px;
   --radius-lg: 15px;
   --radius-xl: 20px;
   --radius-pill: 25px;

   /* Shadows */
   --shadow-xs: 0 2px 4px rgba(0, 0, 0, 0.2);
   --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
   --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
   --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
   --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.25);
   --shadow-hero-title: 0 2px 4px rgba(0, 0, 0, 0.3);

   /* Search option colors */
   --search-location-bg: rgba(16, 185, 129, 0.1);
   --search-location-bg-light: rgba(5, 150, 105, 0.05);
   --search-location-border: rgba(16, 185, 129, 0.2);
   --search-location-border-hover: rgba(16, 185, 129, 0.4);
   
   --search-name-bg: rgba(59, 130, 246, 0.1);
   --search-name-bg-light: rgba(29, 78, 216, 0.05);
   --search-name-border: rgba(59, 130, 246, 0.2);
   --search-name-border-hover: rgba(59, 130, 246, 0.4);
   
   --search-beer-bg: rgba(245, 158, 11, 0.1);
   --search-beer-bg-light: rgba(217, 119, 6, 0.05);
   --search-beer-border: rgba(245, 158, 11, 0.2);
   --search-beer-border-hover: rgba(245, 158, 11, 0.4);
   
   --search-area-bg: rgba(139, 92, 246, 0.1);
   --search-area-bg-light: rgba(124, 58, 237, 0.05);
   --search-area-border: rgba(139, 92, 246, 0.2);
   --search-area-border-hover: rgba(139, 92, 246, 0.4);

   /* GF Status Colors */
   --always-gf-fill: var(--gold);
   --always-gf-border: var(--dark-gold);
   --currently-gf-fill: var(--green);
   --currently-gf-border: var(--white);
   --no-gf-fill: #ef4444; var(--red);
   --no-gf-border: #ffffff; var(--white);
   --unknown-gf-fill: #9ca3af; var(--light-grey);
   --unknown-gf-border: #ffffff; var(--white);

   /* Transitions */
   --transition-fast: 0.15s ease-out;
   --transition: 0.25s ease-out;
   --transition-slow: 0.4s ease-out;

   /* Dividers, borders & hovers */
   --divider-color: rgba(102, 126, 234, 0.1);
   --border-light: rgba(0, 0, 0, 0.1);    
   --hover-subtle: rgba(102, 126, 234, 0.05);
   
}

body {
    background: var(--primary-gradient);
    min-height: 100vh;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    position: relative; /* Changed from fixed */
/*     padding-bottom: 80px; */
    overscroll-behavior: none;
    -webkit-overflow-scrolling: auto;
    height: 100vh;
    height: 100dvh;
    overflow: hidden; /* Prevent scrolling */
    position: fixed; /* Lock in place */
    width: 100%;
}

/* Ensure html doesn't have conflicting styles */
html {
    scroll-behavior: smooth;
    font-size: clamp(14px, 2.5vw, 16px);
    overflow-x: hidden; /* Changed from overflow: hidden */
    overflow-y: auto; /* Allow scroll */
    height: 100%; /* Changed from 100vh */
}

/* Hide other sections when on home */
.footer,
.map-section,
.about-section,
.any-other-section {
    display: none !important;
}

/* ================================
   HERO SECTION
   ================================ */

.hero-section {
    background: var(--primary-gradient);
    color: var(--text-white);
    padding: var(--space-lg) var(--space-xl) var(--space-md);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '🍺';
    position: absolute;
    font-size: clamp(80px, 15vw, 180px);
    opacity: 0.1;
    top: -10px;
    right: -20px;
    z-index: var(--z-base);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: calc(var(--z-base) + 1);
    max-width: var(--container-xl);
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(1.75rem, 6vw, 2.75rem);
    font-weight: 700;
    margin-bottom: var(--space-xs);
    text-shadow: var(--shadow-hero-title);
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    margin-top: var(--space-xs);
    margin-bottom: var(--space-md);
    opacity: 0.9;
    font-weight: 300;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.stat-number {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    display: block;
    line-height: 1;
    text-shadow: var(--shadow-xs);
}

.stat-label {
    font-size: var(--text-sm);
    opacity: 0.8;
    margin-top: var(--space-xs);
    font-weight: 400;
    white-space: nowrap;
}

/* ================================
   SEARCH SECTION
   ================================ */

.search-section {
    height: calc(100vh - 200px); /* More height */
    height: calc(100dvh - 200px);
    margin: -20px 0 0 0; /* Keep overlap with hero */
    display: flex;
    align-items: stretch;
    position: relative;
    z-index: 10;
}

.search-card {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.search-header {
    flex-shrink: 0;
    padding: var(--space-xl) var(--space-xl) var(--space-lg);
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.section-title {
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--text-secondary);
    margin: 0;
}

.search-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: var(--space-lg); /* Adjust padding */
    min-height: 0;
    justify-content: center; /* Center content vertically */
    align-items: center; /* Center content horizontally */
}

.search-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: var(--space-xs); /* Increased gap */
    width: 100%; /* Take up more width */
    height: 100%; /* Take up more height */
/*     max-width: 700px; */
/*     margin: auto;  */
   /* Center it */
}   

.search-option {
    border: 3px solid var(--border-light) !important;
    border-radius: var(--radius-xl) !important;
    padding: var(--space-lg) !important;
    cursor: pointer !important;
    transition: all var(--transition) !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 0 !important; /* Allow shrinking */
    max-height: 100% !important; /* Prevent growing too tall */
}

.search-option:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.search-option.name {
    background: linear-gradient(135deg, var(--search-name-bg) 0%, var(--search-name-bg-light) 100%) !important;
    border-color: var(--search-name-border) !important;
}

.search-option.name:hover {
    border-color: var(--search-name-border-hover) !important;
}

.search-option.location {
    background: linear-gradient(135deg, var(--search-location-bg) 0%, var(--search-location-bg-light) 100%) !important;
    border-color: var(--search-location-border) !important;
}

.search-option.location:hover {
    border-color: var(--search-location-border-hover) !important;
}

.search-option.area {
    background: linear-gradient(135deg, var(--search-area-bg) 0%, var(--search-area-bg-light) 100%) !important;
    border-color: var(--search-area-border) !important;
}

.search-option.area:hover {
    border-color: var(--search-area-border-hover) !important;
}

.search-option.beer {
    background: linear-gradient(135deg, var(--search-beer-bg) 0%, var(--search-beer-bg-light) 100%) !important;
    border-color: var(--search-beer-border) !important;
}

.search-option.beer:hover {
    border-color: var(--search-beer-border-hover) !important;
}
.search-icon {
    font-size: var(--text-4xl); /* Increased from text-2xl */
    margin-bottom: var(--space-lg); /* Increased from space-sm */
    display: block;
    line-height: 1;
}

.search-title {
    font-size: var(--text-2xl); /* Increased from text-lg */
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md); /* Increased from space-xs */
    line-height: 1.2;
}
.search-description {
    font-size: var(--text-md);
    color: var(--text-secondary);
    line-height: 1.4;
    text-align: center;
    padding: 0 var(--space-md); /* Increased from space-xs */
}

/* ================================
   BOTTOM NAVIGATION
   ================================ */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    z-index: 9999;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    min-height: 60px;
    height: 60px;
    width: 100%;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-muted);
    transition: all var(--transition);
    padding: var(--space-xs);
    border-radius: var(--radius);
    min-width: 60px;
    cursor: pointer;
    flex: 1;
    max-width: 80px;
}

.nav-item:hover,
.nav-item.active {
    color: #667eea;
    background: var(--hover-subtle);
}

.nav-icon {
    font-size: 1.25rem;
    margin-bottom: 2px;
    line-height: 1;
}

.nav-label {
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
}


/* VALIDATED TO HERE */











.legend-item:last-child {
    margin-bottom: 0;
}

.legend-marker {
    width: var(--legend-marker-size);
    height: var(--legend-marker-size);
    border-radius: 50%;
    border: 1px solid var(--text-white);
    flex-shrink: 0;
}

/* USING CONSOLIDATED MARKER COLORS */
.legend-marker.always-gf {
    background: var(--always-gf-fill);
    border-color: var(--always-gf-border);
    box-shadow: 0 0 4px rgba(255, 215, 0, 0.6);
}

.legend-marker.current-gf {
    background: var(--currently-gf-fill);
    border-color: var(--currently-gf-border);
}

.legend-marker.no-gf {
    background: var(--no-gf-fill);
    border-color: var(--no-gf-border);
}

.legend-marker.unknown {
    width: var(--legend-user-marker-size);
    height: var(--legend-user-marker-size);
    background: var(--unknown-gf-fill);
    border-color: var(--unknown-gf-border);
}

.legend-marker.user-location {
    width: var(--legend-user-marker-size);
    height: var(--legend-user-marker-size);
    background: var(--marker-user-fill);
    border-color: var(--marker-user-stroke);
}

.legend-text {
    color: var(--text-primary);
    font-size: var(--text-xs);
}

/* ================================
   STATUS BADGES - USING CONSOLIDATED COLORS
   ================================ */
.gf-status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-pill);
    font-size: var(--text-sm);
    font-weight: 600;
    border: 2px solid;
}

.gf-status-badge.always {
    background: var(--status-always-bg);
    border-color: var(--status-always-border);
    color: var(--status-always-text);
    box-shadow: var(--gold-star-glow);
}

.gf-status-badge.currently {
    background: var(--status-current-bg);
    border-color: var(--status-current-border);
    color: var(--status-current-text);
}

.gf-status-badge.not-currently {
    background: var(--status-no-bg);
    border-color: var(--status-no-border);
    color: var(--status-no-text);
}

.gf-status-badge.unknown {
    background: var(--status-unknown-bg);
    border-color: var(--status-unknown-border);
    color: var(--status-unknown-text);
}

.gf-status-badge.always::before {
    content: '⭐';
    font-size: var(--text-lg);
}

/* ================================
   POPUP STYLES - USING CONSOLIDATED COLORS
   ================================ */
.leaflet-popup-content-wrapper {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.leaflet-popup-content {
    margin: var(--space-sm);
    min-width: 200px;
    text-align: center;
}

.popup-title {
    color: var(--text-primary);
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-xs);
    line-height: 1.2;
}

.popup-address {
    color: var(--text-secondary);
    font-size: var(--text-xs);
    margin-bottom: 2px;
}

.popup-postcode {
    color: var(--text-muted);
    font-size: var(--text-xs);
    margin-bottom: var(--space-xs);
}

.popup-distance {
    color: #667eea;
    font-weight: 600;
    font-size: var(--text-xs);
    margin-bottom: var(--space-xs);
}

.popup-gf-status {
    margin-top: var(--space-sm);
    font-weight: 600;
    font-size: var(--text-xs);
    padding: var(--space-xs);
    border-radius: var(--radius-sm);
}

/* USING CONSOLIDATED STATUS COLORS */
.popup-gf-status.always-gf {
    color: var(--always-gf-fill);
    background: var(--status-always-bg);
    border: 1px solid var(--status-always-border);
    font-weight: 700;
}

.popup-gf-status.current-gf {
    color: var(--status-current-text);
    background: var(--status-current-bg);
    border: 1px solid var(--status-current-border);
}

.popup-gf-status.no-gf {
    color: var(--no-gf-fill);
    background: var(--status-no-bg);
    border: 1px solid var(--status-no-border);
}

.popup-gf-status.unknown {
    color: var(--unknown-gf-fill);
    background: var(--status-unknown-bg);
    border: 1px solid var(--status-unknown-border);
}

.popup-button {
    background: var(--primary-gradient);
    color: var(--text-white);
    border: none;
    padding: 4px var(--space-sm);
    border-radius: var(--radius);
    font-size: var(--text-xs);
    cursor: pointer;
    margin-top: var(--space-sm);
    transition: all var(--transition);
}

.popup-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* ================================
   MAP CLUSTERS - CONSOLIDATED
   ================================ */
.marker-cluster {
    background-color: transparent;
    border: none;
    box-shadow: none;
}

.marker-cluster div {
    background-color: var(--cluster-bg-solid);
    color: var(--cluster-text);
    font-weight: bold;
    text-align: center;
    border-radius: 50%;
}

.marker-cluster-small div {
    width: 15px;
    height: 15px;
    margin: 2.5px;
    line-height: 15px;
    font-size: 6px;
}

.marker-cluster-small {
    width: 15px;
    height: 15px;
}

.marker-cluster-medium div {
    width: 20px;
    height: 20px;
    margin: 4px;
    line-height: 20px;
    font-size: 8px;
}

.marker-cluster-medium {
    width: 20px;
    height: 20px;
}

.marker-cluster-large div {
    width: 30px;
    height: 30px;
    margin: 5px;
    line-height: 30px;
    font-size: 10px;
}

.marker-cluster-large {
    width: 25px;
    height: 25px;
}

/* ================================
   MAP LOCATION BUTTON
   ================================ */
.map-location-btn {
    background: var(--primary-gradient);
    border: 2px solid var(--text-white);
    border-radius: var(--radius);
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-white);
    transition: all var(--transition);
    white-space: nowrap;
    box-shadow: var(--shadow);
}

.map-location-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.location-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.location-text {
    display: none;
}

/* ================================
   ZOOM HINT
   ================================ */
.zoom-hint-container {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 10px 16px;
    box-shadow: var(--shadow);
    border: 2px solid var(--primary-border);
    margin: 10px;
}

.zoom-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    font-weight: 500;
}

.zoom-hint-icon {
    font-size: 1.2rem;
    animation: gentle-pulse 2s ease-in-out infinite;
}

/* ================================
   REPORT MODAL - CONSOLIDATED
   ================================ */
#reportModal .modal-content {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--divider-color);
    max-width: 500px;
    width: 100%;
    max-height: 92vh;
    max-height: 92dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#reportModal .modal-header {
    border-bottom: 2px solid var(--divider-color);
    padding: var(--space-xl) var(--space-xl) var(--space-lg);
}

#reportModal .modal-body {
    flex: 1;
    padding: var(--space-lg) var(--space-xl) var(--space-xl);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-2xl);
}

#reportModal .form-group {
    margin-bottom: var(--space-lg);
}

#reportModal .form-input,
#reportModal .form-select {
    font-size: 16px; /* Prevents zoom on iOS */
    min-height: 44px;
    padding: var(--space-md) var(--space-lg);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg-white);
    transition: all var(--transition);
}

#reportModal .form-input:focus,
#reportModal .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: var(--bg-white);
}

#reportModal .form-actions {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 2px solid var(--divider-color);
    background: var(--bg-white);
    position: sticky;
    bottom: 0;
    margin-bottom: 0;
}

.photo-upload-compact {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg-section);
    cursor: pointer;
    transition: all var(--transition);
    min-height: 60px;
}

.photo-upload-compact:hover {
    border-color: #667eea;
    background: var(--hover-subtle);
    transform: translateY(-1px);
}

.photo-upload-compact.active {
    border-color: var(--success-border);
    background: var(--success-bg);
}

.photo-upload-icon {
    font-size: 1.5rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.photo-upload-text {
    flex: 1;
    color: var(--text-secondary);
}

.photo-upload-text strong {
    color: var(--text-primary);
    font-weight: 600;
    display: block;
    margin-bottom: var(--space-xs);
}

.photo-upload-text small {
    color: var(--text-muted);
    font-size: var(--text-xs);
}

/* ================================
   STATUS MODAL SYSTEM - CONSOLIDATED
   ================================ */
.status-modal .modal-content {
    max-width: 500px;
}

.status-prompt {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    font-size: var(--text-md);
}

.status-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.status-option {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-xl);
    background: var(--bg-white);
    border: 3px solid var(--border-light);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition);
    text-align: left;
}

.status-option:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.option-icon {
    font-size: var(--text-4xl);
    min-width: 60px;
    text-align: center;
}

.option-content h4 {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--space-xs) 0;
}

.option-content p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin: 0;
}

/* USING CONSOLIDATED COLORS FOR STATUS OPTIONS */
.status-option.always:hover {
    background: var(--status-always-bg);
    border-color: var(--always-gf-fill);
}

.status-option.currently:hover {
    background: var(--status-current-bg);
    border-color: var(--currently-gf-fill);
}

.status-option.not-currently:hover {
    background: var(--status-no-bg);
    border-color: var(--no-gf-fill);
}

.status-option.unknown:hover {
    background: var(--status-unknown-bg);
    border-color: var(--unknown-gf-fill);
}

.confirm-status {
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    margin: var(--space-xl) 0;
    background: var(--bg-section);
    border-radius: var(--radius-lg);
    font-size: var(--text-xl);
    font-weight: 700;
}

/* ================================
   PLACES SEARCH - CONSOLIDATED
   ================================ */
.no-results-actions {
    margin-top: var(--space-2xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.places-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    margin-top: var(--space-sm);
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 10;
    box-shadow: var(--shadow-lg);
}

.place-result {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    cursor: pointer;
    transition: all var(--transition);
    border-bottom: 1px solid var(--divider-color);
}

.place-result:hover {
    background: var(--hover-subtle);
}

.place-result:last-child {
    border-bottom: none;
}

.place-icon {
    font-size: var(--text-2xl);
    min-width: 40px;
    text-align: center;
}

.place-info {
    flex: 1;
}

.place-info strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.place-info small {
    display: block;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    margin-bottom: var(--space-xs);
}



/* ================================
   ANIMATIONS
   ================================ */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

@keyframes gentle-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes markerPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes goldPulse {
    0%, 100% {
        filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.9));
    }
}

.pulsing-marker {
    animation: pulse 2s infinite;
}

.always-gf-marker {
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.6));
    animation: goldPulse 3s ease-in-out infinite;
}

.leaflet-marker-pane .pulsing-marker {
    animation: markerPulse var(--marker-pulse-duration) ease-in-out var(--marker-pulse-count);
}

/* ================================
   UTILITY CLASSES
   ================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.hidden { display: none; }
.w-full { width: 100%; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }

/* ================================
   FOCUS MANAGEMENT
   ================================ */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* ================================
   CUSTOM SCROLLBAR
   ================================ */
.suggestions::-webkit-scrollbar,
.modal::-webkit-scrollbar {
    width: 8px;
}

.suggestions::-webkit-scrollbar-track,
.modal::-webkit-scrollbar-track {
    background: var(--primary-bg);
    border-radius: 4px;
}

.suggestions::-webkit-scrollbar-thumb,
.modal::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.suggestions::-webkit-scrollbar-thumb:hover,
.modal::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    background-clip: content-box;
}95);
   --bg-glass: rgba(255, 255, 255, 0.1);
   --bg-section: rgba(248, 250, 252, 0.8);
   --bg-overlay: rgba(0, 0, 0, 0.8);
   
   /* Button System */
   --btn-height: 44px;
   --btn-height-sm: 36px;
   --btn-height-lg: 56px;
   --btn-padding: 12px 20px;
   --btn-padding-sm: 8px 16px;
   --btn-padding-lg: 16px 24px;
   
   /* Spacing System */
   --space-xs: 4px;
   --space-sm: 8px;
   --space-md: 12px;
   --space-lg: 16px;
   --space-xl: 20px;
   --space-2xl: 24px;
   --space-3xl: 32px;
   --space-4xl: 40px;
   
   /* Border Radius */
   --radius-sm: 8px;
   --radius: 12px;
   --radius-lg: 15px;
   --radius-xl: 20px;
   --radius-pill: 25px;
   
   /* Shadows */
   --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
   --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
   --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
   --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.25);
   
   /* Z-Index Scale */
   --z-base: 1;
   --z-dropdown: 100;
   --z-search-suggestions: 150;
   --z-sticky: 200;
   --z-navigation: 800;
   --z-toast: 900;
   --z-results-overlay: 1000;
   --z-pub-details: 1100;
   --z-modal-backdrop: 1200;
   --z-modal-content: 1210;
   --z-status-modals: 1300;
   --z-cookie: 1400;
   
   /* Transitions */
   --transition-fast: 0.15s ease-out;
   --transition: 0.25s ease-out;
   --transition-slow: 0.4s ease-out;
   
   /* Typography Scale */
   --text-xs: 0.75rem;
   --text-sm: 0.875rem;
   --text-md: 1rem;
   --text-lg: 1.125rem;
   --text-xl: 1.25rem;
   --text-2xl: 1.5rem;
   --text-3xl: 1.875rem;
   --text-4xl: 2.25rem;
   
   /* Container Widths */
   --container-sm: 640px;
   --container-md: 768px;
   --container-lg: 1024px;
   --container-xl: 1200px;
   
   /* Core UI Colors */
   --divider-color: rgba(102, 126, 234, 0.1);
   --border-light: rgba(0, 0, 0, 0.1);    
   --hover-subtle: rgba(102, 126, 234, 0.05);
   
   /* CONSOLIDATED MAP MARKER COLORS - SINGLE SOURCE OF TRUTH */
   --always-gf-fill: #FFD700;
   --always-gf-border: #FFA500;
   --currently-gf-fill: #10b981;
   --currently-gf-border: #ffffff;
   --no-gf-fill: #ef4444;
   --no-gf-border: #ffffff;
   --unknown-gf-fill: #9ca3af;
   --unknown-gf-border: #ffffff;
   --marker-user-fill: #667eea;
   --marker-user-stroke: #ffffff;
   
   /* Map Settings */
   --marker-radius: 8;
   --marker-stroke-width: 2;
   
   /* Search Option Colors */
   --search-location-bg: rgba(16, 185, 129, 0.1);
   --search-location-border: rgba(16, 185, 129, 0.2);
   --search-location-border-hover: rgba(16, 185, 129, 0.4);
   
   --search-name-bg: rgba(59, 130, 246, 0.1);
   --search-name-border: rgba(59, 130, 246, 0.2);
   --search-name-border-hover: rgba(59, 130, 246, 0.4);
   
   --search-beer-bg: rgba(245, 158, 11, 0.1);
   --search-beer-border: rgba(245, 158, 11, 0.2);
   --search-beer-border-hover: rgba(245, 158, 11, 0.4);
   
   --search-area-bg: rgba(139, 92, 246, 0.1);
   --search-area-border: rgba(139, 92, 246, 0.2);
   --search-area-border-hover: rgba(139, 92, 246, 0.4);
   
   /* Status UI Colors - Using Main Marker Colors */
   --status-always-bg: rgba(255, 215, 0, 0.1);
   --status-always-border: rgba(255, 215, 0, 0.3);
   --status-always-text: #B8860B;
   
   --status-current-bg: rgba(16, 185, 129, 0.1);
   --status-current-border: rgba(16, 185, 129, 0.3);
   --status-current-text: #059669;
   
   --status-no-bg: rgba(239, 68, 68, 0.1);
   --status-no-border: rgba(239, 68, 68, 0.3);
   --status-no-text: #dc2626;
   
   --status-unknown-bg: rgba(156, 163, 175, 0.1);
   --status-unknown-border: rgba(156, 163, 175, 0.3);
   --status-unknown-text: #6b7280;
   
   /* Enhanced Brand Colors */
   --primary-bg: rgba(102, 126, 234, 0.1);
   --primary-border: rgba(102, 126, 234, 0.2);
   --primary-shadow: rgba(102, 126, 234, 0.3);
   
   --success-bg: rgba(16, 185, 129, 0.1);
   --success-border: rgba(16, 185, 129, 0.2);
   --success-border-strong: rgba(16, 185, 129, 0.6);
   --success-shadow: rgba(16, 185, 129, 0.3);
   --success-text: #10b981;
   
   --purple-bg: rgba(139, 92, 246, 0.1);
   --purple-border: rgba(139, 92, 246, 0.3);
   --purple-shadow: rgba(139, 92, 246, 0.4);
   --purple-text: #8b5cf6;
   
   /* Enhanced Shadows */
   --shadow-primary: 0 4px 15px var(--primary-shadow);
   --shadow-success: 0 4px 15px var(--success-shadow);
   --shadow-purple: 0 4px 15px var(--purple-shadow);
   --shadow-blue: 0 4px 15px rgba(59, 130, 246, 0.3);
   
   /* Glass Effects */
   --glass-white: rgba(255, 255, 255, 0.9);
   --glass-overlay: rgba(255, 255, 255, 0.2);
   
   /* Modal System */
   --modal-backdrop: rgba(0, 0, 0, 0.8);
   --modal-blur: blur(5px);
   
   /* Cluster Colors */
   --cluster-bg-solid: rgba(156, 163, 175, 0.9);
   --cluster-text: #ffffff;
   
   /* Special Effects */
   --gold-star-glow: 0 0 10px rgba(255, 215, 0, 0.6);
   
   /* Legend System */
   --legend-bg: rgba(255, 255, 255, 0.95);
   --legend-marker-size: 12px;
   --legend-user-marker-size: 10px;
   
   /* Animation Durations */
   --marker-pulse-duration: 1s;
   --marker-pulse-count: 2;
}

/* ================================
   RESET & BASE STYLES
   ================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

/* body.pub-details-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
} */

/* ================================
   TYPOGRAPHY SYSTEM
   ================================ */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 var(--space-lg) 0;
    line-height: 1.2;
    font-weight: 600;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-md); }

p {
    margin: 0 0 var(--space-lg) 0;
}

/* ================================
   BUTTON SYSTEM
   ================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--btn-height);
    padding: var(--btn-padding);
    border: none;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: var(--text-md);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
    outline: none;
}

.btn:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
}

.btn-sm {
    min-height: var(--btn-height-sm);
    padding: var(--btn-padding-sm);
    font-size: var(--text-sm);
}

.btn-lg {
    min-height: var(--btn-height-lg);
    padding: var(--btn-padding-lg);
    font-size: var(--text-lg);
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--text-white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-success {
    background: var(--success-gradient);
    color: var(--text-white);
    box-shadow: var(--shadow);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--text-white);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-danger {
    background: var(--error-gradient);
    color: var(--text-white);
    box-shadow: var(--shadow);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ================================
   LAYOUT SYSTEM
   ================================ */
.container {
    width: 100%;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.card-body {
    padding: var(--space-xl);
}


/* ================================
   FORM CONTROLS
   ================================ */
.form-select,
.form-input {
    width: 100%;
    min-height: var(--btn-height);
    padding: var(--btn-padding);
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-pill);
    font-size: var(--text-md);
    background: var(--text-white);
    transition: all var(--transition);
    outline: none;
}

.form-select:focus,
.form-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    min-height: var(--btn-height);
    padding: 0 var(--space-lg);
    background: var(--primary-bg);
    border-radius: var(--radius-pill);
    justify-content: center;
}

.form-checkbox input[type="checkbox"] {
    transform: scale(1.2);
    margin: 0;
}

/* ================================
   MODAL SYSTEM
   ================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    display: none;
    z-index: var(--z-modal-backdrop);
    backdrop-filter: blur(5px);
    padding: 8px;
    overflow-y: auto;
}

.modal-content {
    position: relative;
    background: var(--text-white);
    border-radius: var(--radius-xl);
    width: 100%;
    box-shadow: var(--shadow-xl);
    z-index: var(--z-modal-content);
    max-width: 400px;
    margin: 4vh auto;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 20px 12px;
    flex-shrink: 0;
}

.modal-title {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.3;
}

.modal-close {
    width: 44px;
    height: 44px;
    border: none;
    background: none;
    font-size: var(--text-2xl);
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 50%;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #f7fafc;
    color: var(--text-primary);
}

.modal-body {
    flex: 1;
    padding: 0 20px 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    position: relative;
}

.form-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.form-actions {
    display: flex;
    gap: var(--space-lg);
    justify-content: flex-end;
    padding-top: var(--space-xl);
    border-top: 1px solid #e2e8f0;
}

/* ================================
   SEARCH MODALS
   ================================ */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: var(--modal-backdrop);
    backdrop-filter: var(--modal-blur);
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal-backdrop);
    padding: var(--space-lg);
    box-sizing: border-box;
}

.search-modal[style*="flex"] {
    display: flex;
}

.search-modal:not([style*="flex"]) {
    display: none;
}

.search-modal .modal-content {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    max-width: 400px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    margin: 0;
}

.search-modal .modal-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.search-modal .modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.search-modal .modal-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.search-modal .form-input {
    width: 100%;
    padding: var(--space-lg);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    margin-bottom: var(--space-xl);
    transition: border-color 0.25s ease;
}

.search-modal .form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.modal-actions {
    display: flex;
    gap: var(--space-lg);
}

.modal-actions .btn {
    flex: 1;
    padding: var(--space-lg);
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.modal-actions .btn-secondary {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-secondary);
}

.modal-actions .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.15);
}

/* ================================
   DISTANCE MODAL
   ================================ */
.distance-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    margin: var(--space-lg) 0;
}

.distance-option {
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
}

.distance-option:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.distance-option.popular {
    border-color: #667eea;
    background: var(--primary-bg);
}

.distance-option.popular::after {
    content: '👑';
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-gradient);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.distance-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.distance-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ================================
   RESULTS OVERLAY
   ================================ */
.results-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: var(--primary-gradient);
    z-index: var(--z-modal-backdrop);
    display: none;
    overflow: hidden;
}

.results-overlay.active {
    display: flex;
    flex-direction: column;
    background: var(--primary-gradient);
    z-index: 99999;
}

.results-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: var(--space-sm);
    box-sizing: border-box;
}

.results-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-sm);
    backdrop-filter: blur(10px);
}

.results-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
    flex: 1;
}

.results-content {
    flex: 1;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.results-list-container {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.results-list-container[style*="display: block"] {
    display: block;
    padding: var(--space-lg);
}

.results-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-4xl);
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(102, 126, 234, 0.2);
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: var(--space-lg);
}

.loading-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
}

.result-item {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.result-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-lg);
    gap: var(--space-md);
}

.result-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--space-xs) 0;
    line-height: 1.2;
}

.result-distance {
    color: #667eea;
    font-size: 1rem;
    font-weight: 600;
}

.gf-indicator {
    background: var(--success-gradient);
    color: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    text-align: center;
}

.gf-indicator.unknown {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
}

.result-location {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--divider-color);
}

.result-address {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--space-xs);
    font-weight: 500;
}

.result-postcode {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.result-authority {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.gf-status {
    background: var(--status-current-bg);
    border: 2px solid var(--status-current-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.gf-status.unknown {
    background: var(--status-unknown-bg);
    border-color: var(--status-unknown-border);
}

.gf-status-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    font-size: 0.95rem;
}

.gf-status-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-style: italic;
}

.gf-formats {
    display: flex;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
    flex-wrap: wrap;
}

.gf-format-tag {
    background: var(--success-gradient);
    color: white;
    padding: 4px var(--space-sm);
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.result-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-sm);
}

.result-actions .btn {
    padding: var(--space-md) var(--space-sm);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
}

.result-actions .btn-primary {
    background: var(--primary-gradient);
    color: white;
}

.result-actions .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.result-actions .btn-secondary {
    background: var(--bg-white);
    color: var(--text-secondary);
    border: 2px solid var(--border-light);
}

.result-actions .btn-secondary:hover {
    background: var(--hover-subtle);
    border-color: #667eea;
    color: #667eea;
}

.no-results-found {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-4xl);
    text-align: center;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    opacity: 0.5;
}

.no-results-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.no-results-text {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ================================
   RESULTS MAP
   ================================ */
.results-map-container {
    flex: 1;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    background: var(--bg-white);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    overflow: hidden;
}

.results-map-container[style*="display: none"] {
    display: none;
}

.results-map-container[style*="display: block"] {
    display: block;
    flex: 1;
    height: 100%;
}

.results-map-container #resultsMap {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.results-map-container .leaflet-container {
    width: 100%;
    height: 100%;
    background: var(--bg-white);
}

/* ================================
   PUB DETAILS OVERLAY
   ================================ */
.pub-details-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: var(--primary-gradient);
    z-index: var(--z-modal-backdrop);
    display: none;
    overflow: hidden;
    padding: 0;
    box-sizing: border-box;
}

.pub-details-overlay.active {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pub-details-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 16px);
    height: calc(100dvh - 16px);
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    padding: var(--space-sm);
    transition: all 0.3s ease;
    overflow: hidden;
    box-sizing: border-box;
}

.pub-details-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    box-sizing: border-box;
}

.pub-nav-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    flex-shrink: 0;
}

.btn-nav-small {
    background: var(--glass-white);
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary-border);
    box-shadow: var(--shadow-sm);
}

.btn-nav-small:hover {
    background: var(--primary-gradient);
    color: var(--text-white);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.pub-header {
    text-align: center;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 2px solid var(--divider-color);
}

.pub-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    line-height: 1.2;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pub-address {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: var(--space-xs);
    font-weight: 500;
}

.pub-location {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.beer-section {
    background: linear-gradient(135deg, var(--success-bg) 0%, var(--success-bg) 100%);
    border: 2px solid var(--success-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin: var(--space-xl) 0;
    border-left: 6px solid var(--success-gradient);
    position: relative;
    overflow: hidden;
}

.beer-section::before {
    content: '🍺';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 4rem;
    opacity: 0.1;
    pointer-events: none;
}

.beer-section-title {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    gap: var(--space-sm);
    line-height: 1.2;
}

.beer-status {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.beer-status strong {
    color: var(--success-text);
    font-weight: 700;
}

.beer-status em {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.pub-action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    width: 100%;
    margin-top: auto;
    padding: 16px 0;
    box-sizing: border-box;
}

.pub-action-grid .btn {
    margin: 0;
    padding: 0;
    border: none;
    width: 100%;
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}

.pub-action-grid .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--glass-overlay), transparent);
    transition: left 0.5s;
}

.pub-action-grid .btn:hover::before {
    left: 100%;
}

.pub-action-grid .btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.pub-action-grid .btn-external {
    background: var(--info-gradient);
    color: var(--text-white);
    box-shadow: var(--shadow-blue);
}

.pub-action-grid .btn-positive {
    background: var(--success-gradient);
    color: var(--text-white);
    box-shadow: var(--shadow-success);
}

.pub-action-grid .btn-toggle {
    background: var(--purple-bg);
    color: var(--purple-text);
    border: 2px solid var(--purple-border);
    box-shadow: var(--shadow-purple);
}

.pub-action-grid .btn-toggle.active {
    background: var(--purple-gradient);
    color: var(--text-white);
    border-color: transparent;
    box-shadow: 0 4px 15px var(--purple-shadow);
}

.pub-map-container {
    background: var(--bg-white);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    overflow: hidden;
    flex: 1;
    display: none;
    position: relative;
    min-height: 0;
}

.split-view .pub-map-container {
    display: block;
    flex: 1;
}

/* ================================
   AUTOCOMPLETE SUGGESTIONS
   ================================ */
.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 400px;
    overflow-y: auto;
    border-radius: var(--radius-lg);
    background: var(--text-white);
    display: none;
    z-index: var(--z-search-suggestions);
    box-shadow: var(--shadow-lg);
    margin-top: var(--space-xs);
    border: 1px solid var(--border-light);
}

.suggestion-item {
    padding: var(--space-lg);
    cursor: pointer;
    font-size: var(--text-sm);
    border-bottom: 1px solid var(--divider-color);
    background: var(--text-white);
    transition: background-color var(--transition-fast);
    color: var(--text-primary);
}

.suggestion-item:hover {
    background: var(--hover-subtle);
}

.suggestion-item:last-child {
    border-bottom: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ================================
   TOAST NOTIFICATIONS
   ================================ */
.toast {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    z-index: var(--z-toast);
    max-width: 400px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(10px);
    animation: slideInUp 0.3s ease-out;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-xl);
    color: var(--text-white);
    font-weight: 600;
    font-size: var(--text-sm);
}

.toast-loading {
    background: rgba(107, 114, 128, 0.95);
}

.toast-success {
    background: rgba(16, 185, 129, 0.95);
}

.toast-error {
    background: rgba(239, 68, 68, 0.95);
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--text-white);
    animation: spin 1s ease-in-out infinite;
}

/* ================================
   LOCATION COMPONENTS
   ================================ */
.location-status {
    text-align: center;
    margin: var(--space-xl) auto;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    max-width: 600px;
    backdrop-filter: blur(10px);
    font-weight: 500;
}

.location-success {
    background: rgba(34, 197, 94, 0.9);
    color: var(--text-white);
}

.location-error {
    background: rgba(239, 68, 68, 0.9);
    color: var(--text-white);
}

.location-loading {
    background: rgba(107, 114, 128, 0.9);
    color: var(--text-white);
}

.location-accuracy-indicator {
    position: fixed;
    top: var(--space-lg);
    left: var(--space-md);
    right: var(--space-md);
    background: rgba(102, 126, 234, 0.95);
    color: var(--text-white);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    z-index: var(--z-toast);
    backdrop-filter: blur(10px);
    text-align: center;
    animation: slideInUp 0.3s ease-out;
}

.location-accuracy-indicator.excellent {
    background: rgba(16, 185, 129, 0.95);
}

.location-accuracy-indicator.good {
    background: rgba(59, 130, 246, 0.95);
}

.location-accuracy-indicator.poor {
    background: rgba(245, 158, 11, 0.95);
}

.location-accuracy-indicator.terrible {
    background: rgba(239, 68, 68, 0.95);
}

.gps-searching {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: var(--text-white);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    text-align: center;
    z-index: var(--z-modal-backdrop);
    backdrop-filter: blur(10px);
}

.gps-searching .gps-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    animation: pulse 2s infinite;
}

.gps-searching .gps-text {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.gps-searching .gps-subtext {
    font-size: var(--text-sm);
    opacity: 0.8;
}

.location-permission-prompt {
    position: fixed;
    bottom: var(--space-xl);
    left: var(--space-md);
    right: var(--space-md);
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: var(--space-lg);
    z-index: var(--z-toast);
    border-left: 4px solid #667eea;
}

.location-permission-prompt .prompt-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.location-permission-prompt .prompt-text {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.4;
    margin-bottom: var(--space-md);
}

.location-permission-prompt .prompt-actions {
    display: flex;
    gap: var(--space-sm);
}

.location-permission-prompt .btn {
    flex: 1;
    min-height: 40px;
    font-size: var(--text-sm);
}

/* ================================
   COOKIE CONSENT
   ================================ */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(45, 55, 72, 0.98);
    color: var(--text-white);
    padding: var(--space-xl);
    z-index: var(--z-cookie);
    backdrop-filter: blur(10px);
    border-top: 3px solid #667eea;
    animation: slideInUp 0.3s ease-out;
}

.cookie-content {
    max-width: var(--container-xl);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.cookie-text h4 {
    margin: 0 0 var(--space-sm) 0;
    font-size: var(--text-xl);
    color: #667eea;
    font-weight: 600;
}

.cookie-text p {
    margin: 0;
    font-size: var(--text-sm);
    line-height: 1.4;
    opacity: 0.9;
}

.cookie-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.cookie-btn {
    padding: var(--btn-padding-sm);
    border: none;
    border-radius: var(--radius-pill);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    font-size: var(--text-sm);
    white-space: nowrap;
    min-height: var(--btn-height-sm);
}

.cookie-btn-accept {
    background: var(--success-gradient);
    color: var(--text-white);
    box-shadow: var(--shadow);
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cookie-btn-essential {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-essential:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.cookie-btn-settings {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.cookie-btn-settings:hover {
    background: #667eea;
    color: var(--text-white);
}

.cookie-settings-float {
    position: fixed;
    bottom: var(--space-xl);
    left: var(--space-xl);
    z-index: var(--z-dropdown);
}

.cookie-float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.9);
    border: none;
    font-size: var(--text-xl);
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    backdrop-filter: blur(10px);
    color: var(--text-white);
}

.cookie-float-btn:hover {
    background: rgba(102, 126, 234, 1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ================================
   FOOTER
   ================================ */
.footer {
    background: var(--primary-gradient);
    color: var(--text-white);
    margin-top: var(--space-4xl);
    padding: var(--space-4xl) 0 var(--space-xl);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '🍺';
    position: absolute;
    font-size: 150px;
    opacity: 0.05;
    top: -20px;
    right: -30px;
    z-index: var(--z-base);
    pointer-events: none;
}

.footer-content {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-3xl);
    position: relative;
    z-index: calc(var(--z-base) + 1);
}

.footer-section h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-description {
    font-size: var(--text-sm);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-lg);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: all var(--transition);
    padding: var(--space-xs) 0;
    border-bottom: 1px solid transparent;
}

.footer-link:hover {
    color: var(--text-white);
    border-bottom-color: rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: var(--space-3xl);
    padding-top: var(--space-xl);
}

.footer-bottom-content {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
    position: relative;
    z-index: calc(var(--z-base) + 1);
}

.footer-copyright {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.4;
}

.footer-version {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.1);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius);
    backdrop-filter: blur(5px);
}

/* ================================
   MAP & LEGEND STYLES - USING CONSOLIDATED MARKERS
   ================================ */
.map-legend {
    background: var(--legend-bg);
    padding: var(--space-md);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-size: var(--text-xs);
    line-height: 1.4;
    backdrop-filter: blur(10px);
}

.legend-title {
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

/* ================================
   MOBILE TOUCH FEEDBACK
   ================================ */
@media (hover: none) {
    .btn:active {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

/* ================================
   MOBILE TOUCH FEEDBACK - COARSE POINTER
   ================================ */
@media (hover: none) and (pointer: coarse) {
    .search-option:active {
        transform: scale(0.95);
        transition: transform 0.1s ease-out;
    }
    
    .search-option::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
        opacity: 0;
        pointer-events: none;
    }
    
    .search-option:active::after {
        width: 100px;
        height: 100px;
        opacity: 1;
    }
    
    .search-option.name:active {
        background: rgba(59, 130, 246, 0.2);
        border-color: rgba(59, 130, 246, 0.6);
    }
    
    .search-option.location:active {
        background: rgba(16, 185, 129, 0.2);
        border-color: rgba(16, 185, 129, 0.6);
    }
    
    .search-option.area:active {
        background: rgba(139, 92, 246, 0.2);
        border-color: rgba(139, 92, 246, 0.6);
    }
    
    .search-option.beer:active {
        background: rgba(245, 158, 11, 0.2);
        border-color: rgba(245, 158, 11, 0.6);
    }

    .gps-searching {
        top: 30%;
        transform: translate(-50%, -30%);
        padding: var(--space-lg);
    }
    
    .gps-searching .gps-icon {
        font-size: 2rem;
        margin-bottom: var(--space-sm);
    }
    
    .location-permission-prompt {
        bottom: var(--space-lg);
    }

    .brewery-item,
    .beer-item {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .brewery-item:active,
    .beer-item:active {
        background: var(--primary-bg);
        transform: scale(0.98);
    }
}

/* ================================
   DESKTOP - MIN 1200PX
   ================================ */
@media (min-width: 1200px) {
    .split-view .pub-details-card {
        max-width: 600px;
    }
    
    .split-view .pub-map-container {
        flex: 1.5;
    }
}

/* ================================
   DESKTOP SPLIT VIEW - MIN 769PX
   ================================ */
@media (min-width: 769px) {
    .split-view .pub-details-container {
        display: flex;
        flex-direction: row;
        gap: var(--space-md);
    }
    
    .split-view .pub-details-card {
        flex: 1;
        max-height: calc(100vh - 32px);
        max-height: calc(100dvh - 32px);
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }
    
    .split-view .pub-map-container {
        flex: 1;
        display: block;
        max-height: calc(100vh - 32px);
        max-height: calc(100dvh - 32px);
    }
    
    .split-view .beer-section {
        display: block;
    }
    
    .split-view .pub-action-grid {
        margin-top: auto;
        padding-top: var(--space-xl);
    }
}

/* ================================
   DESKTOP - MIN 768PX
   ================================ */
@media (min-width: 768px) {
    :root {
        --btn-height: 48px;
        --btn-padding: 14px 24px;
        --space-lg: 20px;
        --space-xl: 24px;
        --space-2xl: 32px;
        --space-3xl: 40px;
        --space-4xl: 60px;
        --legend-font-size: 0.7rem;
        --legend-padding: var(--space-sm);
        --legend-marker-size: 10px;
        --legend-user-marker-size: 8px;
        --popup-min-width: 160px;
        --popup-title-size: var(--text-xs);
        --popup-text-size: 0.7rem;
    }
    
    .footer-content,
    .footer-bottom-content {
        padding: 0 var(--space-xl);
    }
    
    .cookie-content {
        flex-direction: row;
    }
    
    .search-section {
        height: calc(100vh - 280px);
        height: calc(100dvh - 280px);
    }
    
    .search-body {
        padding: var(--space-lg);
    }
    
    .search-options {
        gap: var(--space-md);
    }
    
    .results-map-container #resultsMap {
        min-height: 300px;
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }
    
    .results-map-container .leaflet-container {
        touch-action: pan-x pan-y;
    }
    
    .container {
        padding: 0 var(--space-xl);
    }
    
    .split-view .pub-nav-top {
        margin-bottom: var(--space-md);
    }
    
    .map-location-btn {
        padding: 10px 16px;
    }
    
    .location-text {
        display: inline;
    }
}

/* ================================
   MOBILE - MAX 768PX
   ================================ */
@media (max-width: 768px) {
    /* General mobile styles */
    .no-results-actions {
        max-width: 100%;
    }
    
    .places-results {
        max-height: 250px;
    }
    
    .place-result {
        padding: var(--space-md);
    }
    
    .place-icon {
        font-size: var(--text-xl);
        min-width: 30px;
    }
    
    .zoom-hint-container {
        padding: 8px 12px;
        margin: 8px;
    }
    
    .zoom-hint {
        font-size: var(--text-xs);
    }
    
    /* Modal styles */
    #reportModal .modal-content {
        max-height: 98vh;
        max-height: 98dvh;
        margin: 1vh auto;
        margin: 1dvh auto;
    }
    
    #reportModal .modal-body {
        padding: var(--space-md) var(--space-lg) var(--space-xl);
    }
    
    #reportModal .form-group {
        margin-bottom: var(--space-lg);
    }
    
    #reportModal .form-input,
    #reportModal .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Photo upload styles */
    .photo-upload-compact {
        padding: var(--space-md);
        min-height: 50px;
    }
    
    .photo-upload-icon {
        font-size: 1.2rem;
    }
    
    .photo-upload-text strong {
        font-size: var(--text-sm);
    }
    
    .photo-upload-text small {
        font-size: var(--text-xs);
    }
    
    /* Map overlay styles */
    .map-overlay-container {
        padding: var(--space-xs);
    }
    
    .map-overlay-nav {
        padding: var(--space-sm);
    }
    
    .map-overlay-title {
        font-size: var(--text-lg);
    }
    
    /* Search section styles */
    .search-section {
    height: calc(100vh - 220px);
    height: calc(100dvh - 220px);
   }
   
   .search-options {
       gap: var(--space-lg);
   }
   
   .search-option {
       padding: var(--space-lg);
   }
   
   .search-card {
       border-radius: var(--radius-xl); /* Full radius on mobile */
   }
   
   .search-body {
       padding: var(--space-lg); /* Smaller padding on mobile */
   }
    
    .search-icon {
        font-size: var(--text-3xl); /* Slightly smaller on mobile */
        margin-bottom: var(--space-md);
    }
    
    .search-title {
        font-size: var(--text-xl); /* Keep original size on mobile */
        margin-bottom: var(--space-xs);
    }
    
    .search-description {
        font-size: var(--text-md); /* Smaller on mobile */
        line-height: 1.3;
        padding: 0 var(--space-sm);
    }
    
    /* Split view mobile styles */
    .split-view .pub-details-container {
        display: flex;
        flex-direction: column;
        height: calc(100vh - 16px);
        height: calc(100dvh - 16px);
        gap: var(--space-sm);
    }
    
    .split-view .pub-details-card {
        flex: 0 0 auto;
        max-height: 50vh;
        max-height: 50dvh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
    }
    
    .split-view .pub-map-container {
        flex: 1;
        min-height: 40vh;
        min-height: 40dvh;
        display: block;
    }
    
    .split-view .beer-section {
        display: none;
    }
    
    .split-view .pub-nav-top {
        flex-shrink: 0;
    }
    
    .split-view .pub-header {
        flex-shrink: 0;
        padding-bottom: var(--space-md);
        margin-bottom: var(--space-md);
    }
    
    .split-view .pub-action-grid {
        flex-shrink: 0;
        position: sticky;
        bottom: 0;
        background: var(--bg-white);
        padding: var(--space-md) 0;
        margin: 0;
        border-top: 1px solid var(--border-light);
        z-index: 10;
    }
    
    .split-view .pub-action-grid .btn {
        height: 40px;
        min-height: 40px;
        max-height: 40px;
        font-size: 0.75rem;
        padding: 0 var(--space-sm);
    }
    
    .split-view .pub-title {
        font-size: 1.1rem;
        margin-bottom: var(--space-xs);
    }
    
    .split-view .pub-address,
    .split-view .pub-location {
        font-size: 0.85rem;
        margin-bottom: 2px;
    }
    
    /* Status styles */
    .status-toggle-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
    
    .status-toggle-btn {
        padding: var(--space-md);
        display: flex;
        align-items: center;
        gap: var(--space-md);
        text-align: left;
    }
    
    .status-icon {
        font-size: var(--text-xl);
        margin-bottom: 0;
    }
    
    .status-label {
        margin-bottom: 0;
    }
    
    .status-toggle-btn small {
        display: none;
    }
    
    .status-option {
        padding: var(--space-lg);
    }
    
    .option-icon {
        font-size: var(--text-3xl);
        min-width: 50px;
    }
    
    .option-content h4 {
        font-size: var(--text-md);
    }
    
    .confirm-status {
        font-size: var(--text-lg);
        padding: var(--space-md);
    }
}

/* ================================
   MOBILE COMPACT - MAX 767PX
   ================================ */
@media (max-width: 767px) {
    .map-location-btn {
        padding: 10px;
        min-width: 44px;
        justify-content: center;
    }
    
    .leaflet-control-custom {
        margin-left: 10px;
        margin-top: 60px;
    }
}

/* ================================
   MOBILE - MAX 640PX
   ================================ */
@media (max-width: 640px) {
    .form-actions {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-lg);
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .toast {
        bottom: var(--space-lg);
        left: var(--space-lg);
        right: var(--space-lg);
        max-width: none;
    }
}

/* ================================
   SMALL MOBILE - MAX 480PX
   ================================ */
@media (max-width: 480px) {
    /* Search styles */
    .search-section {
    height: calc(100vh - 240px);
    height: calc(100dvh - 240px);
   }
   
   .search-options {
       gap: var(--space-md);
   }
   
   .search-option {
       padding: var(--space-md);
   }
    
    .search-icon {
        font-size: var(--text-xl);
        margin-bottom: 4px;
    }
    
    .search-title {
        font-size: var(--text-md);
        margin-bottom: 2px;
    }
    
    .search-description {
        font-size: 0.75rem;
        line-height: 1.2;
        padding: 0;
    }
    
    /* Pub details styles */
    .pub-details-container {
        height: calc(100vh - 20px);
        height: calc(100dvh - 20px);
        max-height: calc(100vh - 20px);
        max-height: calc(100dvh - 20px);
        padding: 4px;
    }
    
    .pub-details-card {
        padding: var(--space-md);
        border-radius: var(--radius-lg);
    }
    
    .pub-title {
        font-size: 1.3rem;
    }
    
    .pub-action-grid,
    .pub-nav-buttons {
        gap: var(--space-xs);
    }
    
    .pub-action-grid {
        gap: 10px;
        padding: 12px 0 16px 0;
    }
    
    .pub-action-grid .btn {
        height: 44px;
        min-height: 44px;
        max-height: 44px;
        border-radius: 22px;
        font-size: 0.85rem;
    }
    
    /* Modal styles */
    .modal-content {
        margin: var(--space-xl) auto;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    /* Distance options */
    .distance-options {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
    
    .distance-option {
        padding: var(--space-md);
    }
    
    /* Results styles */
    .results-container {
        padding: 4px;
    }
    
    .results-nav {
        padding: var(--space-sm);
    }
    
    .results-title {
        font-size: 1rem;
    }
    
    .result-header {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .gf-indicator {
        align-self: flex-start;
    }
    
    .result-actions {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
    
    .result-actions .btn {
        padding: var(--space-lg);
        font-size: 0.9rem;
    }
    
    /* Split view adjustments */
    .split-view .pub-details-card {
        padding: var(--space-sm);
        max-height: 45vh;
        max-height: 45dvh;
        margin-bottom: 2px;
    }
    
    .split-view .pub-map-container {
        min-height: 45vh;
        min-height: 45dvh;
        max-height: 55vh;
    }
    
    .split-view .pub-title {
        font-size: 1rem;
    }
    
    .split-view .beer-section {
        padding: var(--space-md);
        margin: var(--space-sm) 0;
    }
    
    .split-view .beer-section-title {
        font-size: 1rem;
    }
    
    .split-view .pub-action-grid {
        gap: 6px;
        padding: 6px 0 10px 0;
    }
    
    .split-view .pub-action-grid .btn {
        height: 36px;
        min-height: 36px;
        max-height: 36px;
        font-size: 0.7rem;
    }
    
    /* Location styles */
    body:has(.results-overlay.active) .search-section {
        display: none;
    }
    
    .location-accuracy-indicator {
        top: var(--space-sm);
        left: var(--space-xs);
        right: var(--space-xs);
        padding: var(--space-xs) var(--space-sm);
        font-size: var(--text-xs);
    }
    
    .gps-searching {
        padding: var(--space-lg);
    }
    
    .gps-searching .gps-icon {
        font-size: 2.5rem;
    }
    
    .gps-searching .gps-text {
        font-size: var(--text-md);
    }
    
    .location-permission-prompt {
        bottom: var(--space-md);
        left: var(--space-xs);
        right: var(--space-xs);
        padding: var(--space-md);
    }
}

/* ================================
   VERY SMALL SCREENS - MAX 360PX
   ================================ */
@media (max-width: 360px) {
    .search-option {
        padding: 8px;
    }
    
    .search-icon {
        font-size: 1rem;
        margin-bottom: 2px;
    }
    
    .search-title {
        font-size: 0.75rem;
        margin-bottom: 1px;
        font-weight: 600;
    }
    
    .search-description {
        font-size: 0.6rem;
        line-height: 0.95;
        padding: 0;
    }
    
    .split-view .pub-action-grid {
        gap: 6px;
        padding: var(--space-sm) 0;
    }
    
    .split-view .pub-action-grid .btn {
        height: 32px;
        min-height: 32px;
        max-height: 32px;
        font-size: 0.65rem;
        border-radius: 16px;
    }
}

/* ================================
   PRINT STYLES
   ================================ */
@media print {
    .btn,
    .modal,
    .toast,
    .cookie-consent,
    .cookie-settings-float {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Force hide map overlay on home page */
#fullMapOverlay {
    display: none !important;
}

/* Only show when it has the active class */
#fullMapOverlay.active {
    display: flex !important;
}
