/* ============================================
   RESTAURANT MAP V2 - BRAND GUIDELINES
   ============================================ */

:root {
    --brand-green: #4A7C59;
    --brand-gold: #D4A017;
    --brand-cream: #F9F7F2;
    --brand-charcoal: #2C2C2C;
    --brand-error: #EF4444;
}

/* ============================================
   HERO SECTION - BRAND GUIDELINES
   ============================================ */
.restaurant-map-hero-v2 {
    position: relative;
    padding: 36px 16px 64px;
    max-width: 1280px;
    margin: 0 auto;
    z-index: 10;
}

@media (min-width: 640px) {
    .restaurant-map-hero-v2 {
        padding: 48px 24px 80px;
    }
}

.restaurant-map-hero-container-v2 {
    background: var(--brand-green);
    border-radius: 24px;
    padding: 32px 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 160, 23, 0.2);
}

@media (min-width: 768px) {
    .restaurant-map-hero-container-v2 {
        padding: 64px;
    }
}

.restaurant-map-hero-decoration-v2 {
    position: absolute;
    top: -128px;
    right: -128px;
    width: 300px;
    height: 300px;
    background: var(--brand-gold);
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(60px);
    transition: opacity 0.7s ease;
}

@media (min-width: 768px) {
    .restaurant-map-hero-decoration-v2 {
        width: 600px;
        height: 600px;
        top: -256px;
        right: -256px;
    }
}

.restaurant-map-hero-container-v2:hover .restaurant-map-hero-decoration-v2 {
    opacity: 0.2;
}

.restaurant-map-hero-content-v2 {
    position: relative;
    z-index: 10;
    max-width: 672px;
}

.restaurant-map-hero-badge-v2 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(212, 160, 23, 0.4);
    color: var(--brand-gold);
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
    font-family: 'Lato', sans-serif;
}

.restaurant-map-hero-badge-dot-v2 {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-gold);
    animation: restaurant-map-hero-pulse-v2 2s ease-in-out infinite;
}

@keyframes restaurant-map-hero-pulse-v2 {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.restaurant-map-hero-title-v2 {
    font-size: 30px;
    line-height: 1.2;
    font-weight: 900;
    margin: 0 0 16px 0;
    font-family: 'Merriweather', serif;
}

@media (min-width: 640px) {
    .restaurant-map-hero-title-v2 {
        font-size: 36px;
        margin-bottom: 24px;
    }
}

@media (min-width: 768px) {
    .restaurant-map-hero-title-v2 {
        font-size: 60px;
        margin-bottom: 24px;
    }
}

.restaurant-map-hero-title-gold-v2 {
    background: linear-gradient(to right, #D4A017, #F2C94C, #D4A017);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: restaurant-map-hero-shine-v2 4s linear infinite;
    font-style: italic;
}

@keyframes restaurant-map-hero-shine-v2 {
    to {
        background-position: 200% center;
    }
}

.restaurant-map-hero-description-v2 {
    font-size: 16px;
    line-height: 1.75;
    color: rgba(249, 247, 242, 0.9);
    margin: 0 0 16px 0;
    max-width: 512px;
    font-family: 'Lato', sans-serif;
}

@media (min-width: 768px) {
    .restaurant-map-hero-description-v2 {
        font-size: 18px;
        margin-bottom: 24px;
    }
}

.restaurant-map-hero-description-v2 strong {
    color: #ffffff;
    font-weight: 600;
}

.restaurant-map-hero-subdescription-v2 {
    font-size: 14px;
    line-height: 1.75;
    color: rgba(249, 247, 242, 0.9);
    margin: 0 0 24px 0;
    max-width: 512px;
    font-family: 'Lato', sans-serif;
}

@media (min-width: 768px) {
    .restaurant-map-hero-subdescription-v2 {
        font-size: 16px;
        margin-bottom: 32px;
    }
}

/* Statistics Data Points */
.restaurant-map-hero-stats-v2 {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    margin-top: 24px;
}

@media (min-width: 768px) {
    .restaurant-map-hero-stats-v2 {
        padding-top: 24px;
        margin-top: 40px;
    }
}

.restaurant-map-hero-stats-grid-v2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .restaurant-map-hero-stats-grid-v2 {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

.restaurant-map-hero-stat-item-v2 {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.restaurant-map-hero-stat-label-v2 {
    display: block;
    color: var(--brand-gold);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 12px;
    margin-bottom: 4px;
    font-family: 'Lato', sans-serif;
}

.restaurant-map-hero-stat-value-v2 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Lato', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (min-width: 768px) {
    .restaurant-map-hero-stat-value-v2 {
        font-size: 18px;
    }
}

.restaurant-map-hero-stat-value-v2 .restaurant-map-loading-spinner-v2 {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid var(--brand-gold);
    border-radius: 50%;
    animation: restaurant-map-spin-v2 1s linear infinite;
}

.restaurant-map-hero-filter-info-v2 {
    margin-top: 16px;
    font-style: italic;
    color: var(--brand-gold);
    font-size: 13px;
    font-family: 'Lato', sans-serif;
}

/* Error/Retry messages in hero stats */
.restaurant-map-hero-stats-v2 .restaurant-map-retry-message-v2,
.restaurant-map-hero-stats-v2 .restaurant-map-error-message-v2 {
    margin-top: 16px;
    grid-column: 1 / -1;
}

@media (min-width: 640px) {
    .restaurant-map-hero-stats-v2 .restaurant-map-retry-message-v2,
    .restaurant-map-hero-stats-v2 .restaurant-map-error-message-v2 {
        grid-column: 1 / -1;
    }
}

.flaeske-restaurant-map-v2 {
    max-width: 100%;
    margin: 0 auto;
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(229, 231, 235, 1);
    overflow: hidden;
    isolation: isolate;
}

.flaeske-restaurant-map-v2 * {
    box-sizing: border-box;
}

.flaeske-restaurant-map-v2 .restaurant-map-icon-v2 {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.flaeske-restaurant-map-v2 svg.restaurant-map-icon-v2,
.flaeske-restaurant-map-v2 .restaurant-map-icon-v2 svg {
    display: inline-block !important;
    vertical-align: middle !important;
    width: auto !important;
    height: auto !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
}

.flaeske-restaurant-map-v2 .popup-action-btn-v2,
.flaeske-restaurant-map-v2 .restaurant-popup-address-v2,
.flaeske-restaurant-map-v2 .restaurant-popup-serving-v2,
.flaeske-restaurant-map-v2 .status-badge-v2 {
    font-family: 'Lato', sans-serif !important;
}

/* Ensure buttons use white text on green */
.flaeske-restaurant-map-v2 .popup-action-btn-primary-v2,
.flaeske-restaurant-map-v2 .popup-action-btn-primary-v2 * {
    color: #ffffff !important;
}

.flaeske-restaurant-map-v2 input[type="text"],
.flaeske-restaurant-map-v2 input[type="search"],
.flaeske-restaurant-map-v2 .restaurant-map-search-input-v2,
.flaeske-restaurant-map-v2 select,
.flaeske-restaurant-map-v2 .restaurant-map-select-v2 {
    border-radius: 8px !important;
    border: 1px solid rgba(229, 231, 235, 1) !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
    color: var(--brand-charcoal) !important;
    background: #ffffff !important;
    font-family: 'Lato', sans-serif !important;
    box-shadow: none !important;
    outline: none !important;
    margin: 0 !important;
    line-height: 1.5 !important;
    font-weight: normal !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.flaeske-restaurant-map-v2 .restaurant-map-select-v2 {
    padding-right: 36px !important;
}

.flaeske-restaurant-map-v2 input[type="text"]:focus,
.flaeske-restaurant-map-v2 input[type="search"]:focus,
.flaeske-restaurant-map-v2 .restaurant-map-search-input-v2:focus,
.flaeske-restaurant-map-v2 select:focus,
.flaeske-restaurant-map-v2 .restaurant-map-select-v2:focus {
    border-color: var(--brand-green) !important;
    box-shadow: 0 0 0 1px var(--brand-green) !important;
    outline: none !important;
    background: #ffffff !important;
}

.flaeske-restaurant-map-v2 input[type="text"]::placeholder,
.flaeske-restaurant-map-v2 input[type="search"]::placeholder,
.flaeske-restaurant-map-v2 .restaurant-map-search-input-v2::placeholder {
    color: rgba(156, 163, 175, 1) !important;
    opacity: 1 !important;
}

/* ============================================
   CONTROLS SECTION - BRAND GUIDELINES
   ============================================ */
.restaurant-map-controls-v2 {
    padding: 16px;
    background: rgba(249, 250, 251, 1);
    border-bottom: 1px solid rgba(229, 231, 235, 1);
}

@media (min-width: 640px) {
    .restaurant-map-controls-v2 {
        padding: 20px;
    }
}

@media (min-width: 768px) {
    .restaurant-map-controls-v2 {
        padding: 24px;
    }
}

.restaurant-map-search-filter-v2 {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 640px) {
    .restaurant-map-search-filter-v2 {
        display: grid;
        grid-template-columns: 2fr 1fr auto;
        gap: 16px;
        align-items: end;
    }
}

.restaurant-map-search-row-v2 {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.restaurant-map-label-v2 {
    display: block;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(107, 114, 128, 1);
    margin-bottom: 6px;
    font-family: 'Lato', sans-serif;
}

.restaurant-map-search-input-v2 {
    width: 100% !important;
    padding: 10px 12px !important;
    border: 1px solid rgba(229, 231, 235, 1) !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    color: var(--brand-charcoal) !important;
    transition: all 0.2s ease !important;
    font-family: 'Lato', sans-serif !important;
    background: #ffffff !important;
    box-shadow: none !important;
    outline: none !important;
    margin: 0 !important;
    line-height: 1.5 !important;
    font-weight: normal !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.restaurant-map-search-input-v2:focus {
    outline: none !important;
    border-color: var(--brand-green) !important;
    box-shadow: 0 0 0 1px var(--brand-green) !important;
    background: #ffffff !important;
}

.restaurant-map-search-input-v2::placeholder {
    color: rgba(156, 163, 175, 1) !important;
    opacity: 1 !important;
}

.restaurant-map-filter-row-v2 {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 640px) {
    .restaurant-map-filter-row-v2 {
        flex-direction: row;
        align-items: end;
        gap: 16px;
    }
}

.restaurant-map-filter-group-v2 {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.restaurant-map-select-wrapper-v2 {
    position: relative;
}

.restaurant-map-select-v2 {
    width: 100% !important;
    padding: 10px 36px 10px 12px !important;
    border: 1px solid rgba(229, 231, 235, 1) !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    color: var(--brand-charcoal) !important;
    background: #ffffff !important;
    appearance: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-family: 'Lato', sans-serif !important;
    box-shadow: none !important;
    outline: none !important;
    margin: 0 !important;
    line-height: 1.5 !important;
    font-weight: normal !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.restaurant-map-select-v2:focus {
    outline: none !important;
    border-color: var(--brand-green) !important;
    box-shadow: 0 0 0 1px var(--brand-green) !important;
    background: #ffffff !important;
}

.restaurant-map-select-icon-v2 {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: rgba(156, 163, 175, 1);
    pointer-events: none;
}

.restaurant-map-actions-v2 {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

@media (min-width: 640px) {
    .restaurant-map-actions-v2 {
        flex-wrap: nowrap;
    }
}

/* ============================================
   BUTTONS - BRAND GUIDELINES
   ============================================ */
.restaurant-map-btn-v2 {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Lato', sans-serif;
    border: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.restaurant-map-btn-v2 .restaurant-map-icon-v2 {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.restaurant-map-btn-primary-v2 {
    background: var(--brand-green);
    color: #fff;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.restaurant-map-btn-primary-v2:hover {
    background: #3a6346;
    color: #fff;
}

.restaurant-map-btn-secondary-v2 {
    background: transparent;
    color: rgba(107, 114, 128, 1);
    border: 1px solid rgba(229, 231, 235, 1);
}

.restaurant-map-btn-secondary-v2:hover {
    color: var(--brand-charcoal);
    background: rgba(249, 250, 251, 1);
}

.restaurant-map-reload-hidden-v2 {
    display: none !important;
}

/* ============================================
   MAP CONTAINER
   ============================================ */
.restaurant-map-v2 {
    width: 100%;
    height: 500px;
    border: none;
    position: relative;
    z-index: 1;
}

@media (min-width: 640px) {
    .restaurant-map-v2 {
        height: 600px;
    }
}

@media (min-width: 768px) {
    .restaurant-map-v2 {
        height: 700px;
    }
}

/* Leaflet overrides for brand guidelines */
.flaeske-restaurant-map-v2 .leaflet-container {
    background: #fff !important;
}

.flaeske-restaurant-map-v2 .leaflet-container .leaflet-tile-container img {
    filter: contrast(1.1) saturate(0.8);
}

.flaeske-restaurant-map-v2 .leaflet-control-zoom {
    border: 1px solid rgba(229, 231, 235, 1) !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.flaeske-restaurant-map-v2 .leaflet-control-zoom-in,
.flaeske-restaurant-map-v2 .leaflet-control-zoom-out {
    background: #fff !important;
    color: var(--brand-charcoal) !important;
    font-size: 18px !important;
    border-bottom: 1px solid rgba(229, 231, 235, 1) !important;
}

.flaeske-restaurant-map-v2 .leaflet-control-zoom-in:hover,
.flaeske-restaurant-map-v2 .leaflet-control-zoom-out:hover {
    background: var(--brand-cream) !important;
    color: var(--brand-green) !important;
}

/* ============================================
   LEGEND - BRAND GUIDELINES
   ============================================ */
.restaurant-map-legend-v2 {
    padding: 16px;
    background: var(--brand-cream);
    border-top: 1px solid rgba(74, 124, 89, 0.1);
}

@media (min-width: 640px) {
    .restaurant-map-legend-v2 {
        padding: 20px;
    }
}

@media (min-width: 768px) {
    .restaurant-map-legend-v2 {
        padding: 24px;
    }
}

.restaurant-map-legend-title-v2 {
    font-family: 'Merriweather', serif;
    font-size: 18px;
    font-weight: bold;
    color: var(--brand-charcoal);
    margin: 0 0 16px 0;
}

@media (min-width: 640px) {
    .restaurant-map-legend-title-v2 {
        font-size: 20px;
    }
}

.restaurant-map-legend-items-v2 {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}

@media (min-width: 640px) {
    .restaurant-map-legend-items-v2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .restaurant-map-legend-items-v2 {
        grid-template-columns: repeat(5, 1fr);
    }
}

.restaurant-map-legend-section-v2 {
    margin-bottom: 12px;
}

.restaurant-map-legend-section-title-v2 {
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(107, 114, 128, 1);
    margin: 0 0 8px 0;
    font-family: 'Lato', sans-serif;
}

.restaurant-map-legend-item-v2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--brand-charcoal);
    margin-bottom: 6px;
    font-family: 'Lato', sans-serif;
}

.restaurant-map-legend-marker-v2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.restaurant-map-legend-excellent-v2 {
    background: var(--brand-green);
}

.restaurant-map-legend-very-good-v2 {
    background: var(--brand-green);
}

.restaurant-map-legend-good-v2 {
    background: var(--brand-green);
}

.restaurant-map-legend-average-v2 {
    background: var(--brand-gold);
}

.restaurant-map-legend-poor-v2 {
    background: var(--brand-error);
}

.restaurant-map-legend-unreviewed-v2 {
    background: var(--brand-charcoal);
    font-size: 12px;
}

.restaurant-map-legend-marker-v2 .restaurant-map-icon-v2 {
    width: 16px;
    height: 16px;
    color: #ffffff;
    stroke: #ffffff;
}

.restaurant-map-legend-reviewed-v2 {
    background: var(--brand-green);
}

.restaurant-map-legend-wishlist-v2 {
    background: #3b82f6;
}

.restaurant-map-legend-label-v2 {
    font-size: 14px;
    color: var(--brand-charcoal);
    font-family: 'Lato', sans-serif;
}

/* ============================================
   STATS SECTION
   ============================================ */
.restaurant-map-stats-v2 {
    padding-top: 16px;
    border-top: 1px solid rgba(74, 124, 89, 0.1);
    font-size: 14px;
    color: rgba(107, 114, 128, 1);
    font-family: 'Lato', sans-serif;
}

.restaurant-map-stats-v2 p {
    margin: 0 0 8px 0;
}

.restaurant-map-stats-v2 strong {
    color: var(--brand-charcoal);
    font-weight: bold;
}

.restaurant-map-filter-info-v2 {
    font-style: italic;
    color: var(--brand-green);
    font-size: 13px;
}

.restaurant-map-loading-stats-v2 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(107, 114, 128, 1);
    font-size: 14px;
}

.restaurant-map-loading-spinner-v2 {
    width: 16px;
    height: 16px;
}

/* ============================================
   ERROR & RETRY MESSAGES - BRAND GUIDELINES
   ============================================ */
.restaurant-map-retry-message-v2 {
    margin: 10px 0;
    padding: 12px;
    background: rgba(212, 160, 23, 0.1);
    border: 1px solid rgba(212, 160, 23, 0.3);
    border-radius: 8px;
}

.restaurant-map-retry-text-v2 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-gold);
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Lato', sans-serif;
}

.restaurant-map-retry-text-v2 .restaurant-map-icon-v2 {
    flex-shrink: 0;
    color: var(--brand-gold);
    stroke: var(--brand-gold);
}

.restaurant-map-error-message-v2 {
    margin: 10px 0;
}

.restaurant-map-error-box-v2 {
    background: rgba(255, 243, 205, 1);
    border: 1px solid rgba(212, 160, 23, 0.5);
    border-radius: 8px;
    padding: 16px;
    font-family: 'Lato', sans-serif;
}

.restaurant-map-error-text-v2 {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 12px 0;
    color: var(--brand-charcoal);
    font-size: 14px;
    line-height: 1.5;
}

.restaurant-map-error-text-v2 .restaurant-map-icon-v2 {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--brand-error);
    stroke: var(--brand-error);
}

.restaurant-map-error-btn-v2 {
    background: var(--brand-green) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-weight: bold !important;
    font-size: 14px !important;
    font-family: 'Lato', sans-serif !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.2s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.restaurant-map-error-btn-v2:hover {
    background: #3a6346 !important;
    color: #ffffff !important;
}

.restaurant-map-error-btn-v2 .restaurant-map-icon-v2 {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #ffffff !important;
    stroke: #ffffff !important;
}

.restaurant-map-error-btn-v2 span {
    color: #ffffff !important;
}
    border: 2px solid rgba(229, 231, 235, 1);
    border-top: 2px solid var(--brand-green);
    border-radius: 50%;
    animation: restaurant-map-spin-v2 1s linear infinite;
}

@keyframes restaurant-map-spin-v2 {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   POPUP STYLING - BRAND GUIDELINES
   ============================================ */
.flaeske-restaurant-map-v2 .leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(229, 231, 235, 1);
    background: var(--brand-cream);
    overflow: visible;
}

.flaeske-restaurant-map-v2 .leaflet-popup-content {
    margin: 0;
    padding: 0;
    max-width: 350px;
}

.restaurant-popup-v2 {
    padding: 0;
    overflow: hidden;
}

.restaurant-popup-header-v2 {
    position: relative;
    height: 120px;
    background: linear-gradient(135deg, var(--brand-green) 0%, #3a6346 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.restaurant-popup-header-v2.has-image {
    background: none;
}

.restaurant-popup-header-v2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.restaurant-popup-content-v2 {
    padding: 16px;
}

.restaurant-popup-title-row-v2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.restaurant-popup-title-v2 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: var(--brand-charcoal);
    line-height: 1.3;
    flex: 1;
    min-width: 0;
    font-family: 'Merriweather', serif;
}

.restaurant-popup-rating-v2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.popup-rating-stars-v2 {
    display: flex;
    gap: 2px;
}

.popup-star-v2 {
    color: var(--brand-gold);
    font-size: 14px;
}

.popup-rating-number-v2 {
    font-weight: bold;
    color: var(--brand-charcoal);
    font-size: 14px;
    font-family: 'Lato', sans-serif;
}

.restaurant-popup-address-v2 {
    color: rgba(107, 114, 128, 1);
    font-size: 13px;
    margin-bottom: 12px;
    line-height: 1.4;
    font-family: 'Lato', sans-serif;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.restaurant-popup-address-v2 .restaurant-map-icon-v2 {
    flex-shrink: 0;
    margin-top: 2px;
}

.restaurant-popup-address-v2 span {
    flex: 1;
}

.event-popup-time-v2 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(107, 114, 128, 1);
    font-size: 13px;
    margin-bottom: 12px;
    font-family: 'Lato', sans-serif;
}

.event-popup-time-v2 .restaurant-map-icon-v2 {
    flex-shrink: 0;
}

.restaurant-popup-pricing-v2 {
    margin-bottom: 12px;
    padding: 10px;
    background: rgba(249, 250, 251, 1);
    border-radius: 8px;
    border-left: 3px solid var(--brand-green);
}

.popup-price-item-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 13px;
    font-family: 'Lato', sans-serif;
}

.popup-price-item-v2:last-child {
    margin-bottom: 0;
}

.popup-price-label-v2 {
    color: var(--brand-charcoal);
    font-weight: 500;
}

.popup-price-value-v2 {
    color: var(--brand-green);
    font-weight: bold;
    font-size: 14px;
}

.restaurant-popup-serving-v2 {
    margin-bottom: 12px;
    padding: 8px 10px;
    background: rgba(249, 250, 251, 1);
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
    font-family: 'Lato', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.restaurant-popup-serving-v2 .restaurant-map-icon-v2 {
    flex-shrink: 0;
}

.popup-serving-label-v2 {
    color: var(--brand-charcoal);
    font-weight: 500;
    margin-right: 6px;
}

.popup-serving-days-v2 {
    color: var(--brand-green);
    font-weight: 600;
}

.restaurant-popup-flaeske-meta-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.popup-meta-tag-v2 {
    display: inline-block;
    padding: 4px 8px;
    background: var(--brand-cream);
    border: 1px solid rgba(74, 124, 89, 0.1);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    color: rgba(74, 124, 89, 1);
    font-family: 'Lato', sans-serif;
}

.restaurant-popup-actions-v2 {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.popup-action-btn-v2 {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Lato', sans-serif;
}

.popup-action-btn-v2 .restaurant-map-icon-v2 {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.popup-action-btn-primary-v2 {
    background: var(--brand-green);
    color: #ffffff !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.popup-action-btn-primary-v2:hover {
    background: #3a6346;
    color: #ffffff !important;
    text-decoration: none;
}

.popup-action-btn-primary-v2 span {
    color: #ffffff !important;
}

.popup-action-btn-secondary-v2 {
    background: transparent;
    color: var(--brand-green);
    border: 2px solid var(--brand-green);
}

.popup-action-btn-secondary-v2:hover {
    background: var(--brand-green);
    color: #fff;
    text-decoration: none;
}

/* ============================================
   MAP MARKERS - BRAND GUIDELINES
   ============================================ */
.restaurant-marker-v2 {
    background: transparent !important;
    border: none !important;
}

.restaurant-marker-content-v2 {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
}

.restaurant-marker-content-v2 svg,
.restaurant-marker-content-v2 .restaurant-map-icon-v2 {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 20px !important;
    max-height: 20px !important;
    color: #ffffff !important;
    stroke: #ffffff !important;
    fill: none !important;
    stroke-width: 2 !important;
}

.restaurant-marker-content-v2 span {
    color: #ffffff !important;
    font-family: 'Lato', sans-serif !important;
    font-weight: bold !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

/* Ensure markers are clickable on mobile */
.restaurant-marker-v2,
.restaurant-marker-content-v2 {
    cursor: pointer !important;
    pointer-events: auto !important;
}

/* Prevent Leaflet from interfering with marker styles */
.flaeske-restaurant-map-v2 .leaflet-marker-icon {
    border: none !important;
    background: transparent !important;
}

/* ============================================
   MOBILE DRAWER - LIKE EVENTS MAP
   ============================================ */
/* Hide Leaflet popup on mobile - we use bottom sheet instead */
@media (max-width: 640px) {
    .flaeske-restaurant-map-v2 .leaflet-popup {
        display: none !important;
    }
}

/* Mobile Bottom Sheet Modal */
.flaeske-mobile-restaurant-modal-v2 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.flaeske-mobile-restaurant-modal-v2.active {
    opacity: 1;
    pointer-events: all;
}

.flaeske-mobile-restaurant-modal-v2.closing {
    opacity: 0;
}

.flaeske-mobile-restaurant-modal-overlay-v2 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.flaeske-mobile-restaurant-modal-content-v2 {
    position: relative;
    width: 100%;
    max-height: 80vh;
    background: var(--brand-cream);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 10001;
}

.flaeske-mobile-restaurant-modal-v2.active .flaeske-mobile-restaurant-modal-content-v2 {
    transform: translateY(0);
}

.flaeske-mobile-restaurant-modal-close-v2 {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: var(--brand-green);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-weight: bold;
}

.flaeske-mobile-restaurant-modal-close-v2:hover {
    background: #3a6346;
}

.flaeske-mobile-restaurant-modal-v2 .restaurant-popup-content-v2 {
    padding: 20px 16px 24px;
}

.flaeske-mobile-restaurant-modal-v2 .restaurant-popup-title-v2 {
    font-size: 20px;
    margin-bottom: 8px;
    padding-right: 50px;
}

.flaeske-mobile-restaurant-modal-v2 .restaurant-popup-actions-v2 {
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.flaeske-mobile-restaurant-modal-v2 .popup-action-btn-v2 {
    width: 100%;
    padding: 14px 20px;
    font-size: 14px;
    text-align: center;
}

/* ============================================
   MARKER CLUSTERS
   ============================================ */
.marker-cluster-small-v2 {
    background-color: rgba(74, 124, 89, 0.8) !important;
    border: 2px solid var(--brand-green) !important;
}

.marker-cluster-small-v2 div {
    background-color: var(--brand-green) !important;
    color: white !important;
    font-weight: bold !important;
}

.marker-cluster-medium-v2 {
    background-color: rgba(74, 124, 89, 0.8) !important;
    border: 2px solid var(--brand-green) !important;
}

.marker-cluster-medium-v2 div {
    background-color: var(--brand-green) !important;
    color: white !important;
    font-weight: bold !important;
}

.marker-cluster-large-v2 {
    background-color: rgba(74, 124, 89, 0.8) !important;
    border: 2px solid var(--brand-green) !important;
}

.marker-cluster-large-v2 div {
    background-color: var(--brand-green) !important;
    color: white !important;
    font-weight: bold !important;
}

/* ============================================
   LOADING STATE - SUBTLE INDICATOR ONLY
   ============================================ */
/* No full-screen overlay - content must be visible for SEO */
/* Loading is handled by individual elements (spinner in stats) */

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 640px) {
    .restaurant-map-search-filter-v2 {
        grid-template-columns: 1fr;
    }
    
    .restaurant-map-filter-row-v2 {
        flex-direction: column;
    }
    
    .restaurant-map-actions-v2 {
        flex-direction: column;
    }
    
    .restaurant-map-btn-v2 {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .restaurant-map-btn-v2:hover,
    .popup-action-btn-v2:hover {
        transform: none;
    }
    
    .leaflet-zoom-animated {
        transition: none !important;
    }
}

/* ============================================
   CLOSE BUTTON STYLING
   ============================================ */
.flaeske-restaurant-map-v2 .leaflet-popup-close-button {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    color: var(--brand-charcoal) !important;
    line-height: 1 !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    transition: all 0.2s ease !important;
    top: 8px !important;
    right: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
}

.flaeske-restaurant-map-v2 .leaflet-popup-close-button:hover {
    background: var(--brand-error) !important;
    color: white !important;
    border-color: var(--brand-error) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3) !important;
}

.flaeske-restaurant-map-v2 .leaflet-popup-close-button:focus {
    outline: 2px solid var(--brand-green) !important;
    outline-offset: 2px !important;
}

