/* ==========================================================================
   DESIGN SYSTEM & CSS CUSTOM VARIABLES (LUMIOS THEME)
   ========================================================================== */
:root {
    /* Color Palette */
    --bg-main: #0c0d24;          /* Deep midnight brand blue */
    --bg-card: rgba(54, 57, 141, 0.22); /* Semi-transparent brand blue card */
    --bg-header: rgba(12, 13, 36, 0.88);
    --border-color: rgba(253, 249, 240, 0.08);
    --border-color-focus: rgba(235, 97, 95, 0.5); /* Brand red for focus highlights */
    
    --text-primary: #FDF9F0;     /* Beige as primary text */
    --text-secondary: #c9d0df;
    --text-muted: #808ea8;
    
    /* Brand Accent Colors (Glowing spheres) */
    --lumios-cyan: #00f0ff;
    --lumios-blue: #36398D;      /* Main Blue */
    --lumios-green: #10b981;
    --lumios-red: #EB615F;
    --lumios-orange: #f97316;
    --lumios-pink: #ec4899;
    
    /* Fonts */
    --font-header: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Shadows & Glows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.5);
    --glow-cyan: 0 0 15px rgba(0, 240, 255, 0.4);
    --glow-blue: 0 0 15px rgba(37, 99, 235, 0.4);
    --glow-green: 0 0 15px rgba(16, 119, 81, 0.4);
    
    /* Layout */
    --header-height: 80px;
    --sidebar-width: 420px;
    --border-radius: 16px;
    --border-radius-sm: 8px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    height: 100%;
    width: 100%;
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 240, 255, 0.4);
}

/* ==========================================================================
   LAYOUT STRUCTURE
   ========================================================================== */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
}

/* Header styling */
.app-header {
    height: var(--header-height);
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-wordmark {
    height: 32px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(253, 249, 240, 0.15));
}

.brand-tagline {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.35;
    max-width: 320px;
    border-left: 1.5px solid rgba(253, 249, 240, 0.2);
    padding-left: 14px;
    margin-left: 4px;
    display: block;
}

/* Search bar styling */
.search-section {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-grow: 0.5;
    max-width: 650px;
}

.search-bar-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0 16px;
    transition: var(--transition-fast);
}

.search-bar-wrapper:focus-within {
    border-color: var(--border-color-focus);
    background: rgba(0, 240, 255, 0.03);
    box-shadow: var(--glow-cyan);
}

.search-icon {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    margin-right: 12px;
    flex-shrink: 0;
}

#search-input {
    width: 100%;
    height: 48px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 15px;
    font-family: var(--font-body);
}

#search-input::placeholder {
    color: var(--text-muted);
}

.clear-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.clear-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.clear-btn svg {
    width: 16px;
    height: 16px;
}

/* Geolocation Button */
.geo-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 20px;
    background: linear-gradient(135deg, var(--lumios-blue), #21235c);
    border: none;
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-header);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-fast);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(54, 57, 141, 0.3);
}

.geo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(54, 57, 141, 0.5), var(--glow-blue);
    background: linear-gradient(135deg, #4d51b3, var(--lumios-blue));
}

.geo-btn:active {
    transform: translateY(0);
}

.geo-icon {
    width: 18px;
    height: 18px;
}

/* Main body workspace */
.app-body {
    display: flex;
    flex-direction: row;
    flex-grow: 1;
    position: relative;
    height: calc(100vh - var(--header-height));
}

/* ==========================================================================
   SIDEBAR (SHOPS LIST)
   ========================================================================== */
.app-sidebar {
    width: var(--sidebar-width);
    background-color: #0e101f;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 900;
    transition: var(--transition-normal);
}

.sidebar-intro {
    padding: 20px 20px 14px 20px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-title {
    font-family: var(--font-header);
    font-size: 19px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.sidebar-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.45;
}

/* Large Mascot Header (Top Left on desktop) */
.sidebar-mascot-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(54, 57, 141, 0.15) 0%, rgba(12, 13, 36, 0.3) 100%);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    max-height: 280px; /* High enough to fit content */
    opacity: 1;
    flex-shrink: 0; /* Prevent compression in flex layouts */
    --mascot-border-color: var(--lumios-red); /* Default to red */
}

.sidebar-mascot-header.hover-blue {
    --mascot-border-color: var(--lumios-blue);
}

.sidebar-mascot-header.hover-green {
    --mascot-border-color: var(--lumios-green);
}

.sidebar-mascot-header.collapsed {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-bottom-color: transparent;
    opacity: 0;
    pointer-events: none;
}

.sidebar-mascot-wrapper {
    position: relative;
    width: 104px;
    height: 104px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3.5px solid var(--mascot-border-color);
    border-radius: 24px;
    background: #e9e9e9;
    padding: 4px;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.sidebar-mascot-wrapper:hover {
    transform: scale(1.08);
}

.sidebar-mascot-img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
    z-index: 2;
    animation: mascot-gentle-float 4s ease-in-out infinite;
}

/* Glowing luciole tail effect positioned exactly behind the glowing yellow light in mascot.png */
.luciole-tail-glow {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(254, 240, 138, 0.95) 0%, rgba(234, 179, 8, 0.4) 50%, rgba(234, 179, 8, 0) 70%);
    filter: blur(4px);
    z-index: 1;
    animation: tail-glow 2s ease-in-out infinite alternate;
}

.sidebar-mascot-bubble {
    width: 100%;
    position: relative;
    background: #ffffff;
    border: 2px solid var(--mascot-border-color);
    border-radius: 16px;
    padding: 12px 16px;
    box-shadow: var(--shadow-md);
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

/* Arrow pointing UP to the mascot */
.sidebar-mascot-bubble::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 10px solid var(--mascot-border-color);
    transition: border-bottom-color 0.3s ease;
}

.sidebar-mascot-bubble::after {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 8px solid #ffffff;
    z-index: 1;
}

.sidebar-mascot-bubble p {
    font-size: 13px;
    line-height: 1.45;
    color: var(--lumios-blue);
    margin: 0;
    text-align: center;
}

.sidebar-mascot-bubble p strong {
    color: var(--lumios-blue);
}

#mascot-sidebar-count {
    color: var(--lumios-red);
    font-weight: 800;
    font-size: 14px;
}

/* Animations */
@keyframes mascot-gentle-float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
    100% { transform: translateY(0); }
}

@keyframes tail-glow {
    0% {
        transform: scale(0.85);
        opacity: 0.6;
        box-shadow: 0 0 10px rgba(254, 240, 138, 0.5);
    }
    100% {
        transform: scale(1.15);
        opacity: 1;
        box-shadow: 0 0 25px rgba(254, 240, 138, 0.9), 0 0 40px rgba(234, 179, 8, 0.4);
    }
}

/* Mobile responsive adjustments */
@media (max-width: 960px) {
    .sidebar-mascot-header {
        padding: 12px 16px;
        gap: 8px;
        max-height: 200px;
    }
    
    .sidebar-mascot-wrapper {
        width: 80px;
        height: 80px;
    }
    
    .luciole-tail-glow {
        width: 28px;
        height: 28px;
        bottom: 8px;
        right: 8px;
    }
    
    .sidebar-mascot-bubble {
        padding: 8px 12px;
        border-radius: 12px;
    }
    
    .sidebar-mascot-bubble p {
        font-size: 11.5px;
        line-height: 1.35;
    }
    
    .sidebar-mascot-bubble::before {
        top: -8px;
        border-bottom-width: 8px;
    }
    .sidebar-mascot-bubble::after {
        top: -5px;
        border-bottom-width: 6px;
    }
}

.sidebar-info-bar {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.15);
}

.store-counter {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

#counter-value {
    color: var(--lumios-cyan);
    font-weight: 700;
    font-size: 15px;
}

/* Proximity Badge status */
.geo-status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--lumios-green);
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--lumios-green);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

/* Stores List container */
.stores-list-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 12px 16px;
}

/* Store Cards */
.store-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.store-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: transparent;
    transition: var(--transition-fast);
}

.store-item:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(2px);
}

.store-item.active {
    background: rgba(0, 240, 255, 0.04);
    border-color: var(--border-color-focus);
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.05);
}

.store-item.active::before {
    background: var(--lumios-cyan);
    box-shadow: var(--glow-cyan);
}

.store-name {
    font-family: var(--font-header);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.3;
}

.store-address {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 8px;
}

.store-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 12px;
}

.store-city {
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
}

.store-distance {
    color: var(--lumios-cyan);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.store-distance svg {
    width: 14px;
    height: 14px;
}

/* Loading Spinner placeholder */
.loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--text-muted);
    gap: 16px;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.05);
    border-top-color: var(--lumios-cyan);
    border-radius: 50%;
    animation: spin 1s infinite linear;
}

/* Empty search result placeholder */
.empty-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.empty-placeholder svg {
    width: 48px;
    height: 48px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.empty-placeholder h3 {
    margin-bottom: 6px;
    color: #fff;
    font-family: var(--font-header);
}

.online-shop-offer {
    margin-top: 24px;
    padding: 16px;
    background: rgba(235, 97, 95, 0.08);
    border: 1px dashed rgba(235, 97, 95, 0.3);
    border-radius: 12px;
    text-align: center;
}

.offer-title {
    font-family: var(--font-header);
    font-size: 15px;
    font-weight: 700;
    color: var(--lumios-red);
    margin: 0 0 6px 0;
}

.offer-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0 0 14px 0;
    line-height: 1.45;
}

.online-shop-btn {
    display: inline-block;
    padding: 8px 16px;
    background: var(--lumios-red);
    color: #fff;
    font-weight: 600;
    font-size: 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition-fast);
    box-shadow: 0 4px 10px rgba(235, 97, 95, 0.25);
}

.online-shop-btn:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 6px 15px rgba(235, 97, 95, 0.4);
    background: #ff7573;
    color: #fff;
}

/* ==========================================================================
   MAP VIEW AREA
   ========================================================================== */
.map-container {
    flex-grow: 1;
    height: 100%;
    position: relative;
    background-color: #1a1a2e;
}

#map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Overriding Leaflet default UI for dark mode integration */
.leaflet-bar {
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-md) !important;
}

.leaflet-bar a {
    background-color: var(--bg-card) !important;
    color: #fff !important;
    border-bottom: 1px solid var(--border-color) !important;
    transition: var(--transition-fast);
}

.leaflet-bar a:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--lumios-cyan) !important;
}

.leaflet-bar a.leaflet-disabled {
    background-color: rgba(0, 0, 0, 0.2) !important;
    color: var(--text-muted) !important;
}

.leaflet-control-attribution {
    background: rgba(10, 11, 22, 0.8) !important;
    color: var(--text-muted) !important;
    font-size: 10px !important;
    backdrop-filter: blur(4px);
}

.leaflet-control-attribution a {
    color: var(--text-secondary) !important;
}

/* ==========================================================================
   CUSTOM GLOWING MARKERS (LEAFLET DIV ICON)
   ========================================================================== */
.custom-glow-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px !important;
    height: 24px !important;
    margin-left: -12px !important;
    margin-top: -12px !important;
}

.marker-pin {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #fff;
    transition: var(--transition-fast);
    position: relative;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Solid colors matching Lumios spheres (no glow/gradient) */
.marker-blue .marker-pin {
    background-color: var(--lumios-blue);
}

.marker-green .marker-pin {
    background-color: var(--lumios-green);
}

.marker-red .marker-pin {
    background-color: var(--lumios-red);
}

.marker-orange .marker-pin {
    background-color: var(--lumios-orange);
}

.marker-pink .marker-pin {
    background-color: var(--lumios-pink);
}

/* Selected active marker styles */
.custom-glow-marker.active-marker {
    z-index: 99999 !important;
}

.custom-glow-marker.active-marker .marker-pin {
    transform: scale(1.5);
    border-color: #fff;
    animation: glow-pulse 1.2s infinite alternate;
}

/* ==========================================================================
   CUSTOM CLUSTERS STYLES
   ========================================================================== */
.custom-cluster {
    background: rgba(12, 13, 36, 0.9);
    border: 1.5px solid rgba(253, 249, 240, 0.25);
    border-radius: 50%;
    color: var(--text-primary);
    text-align: center;
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-fast);
}

.custom-cluster:hover {
    border-color: var(--lumios-red);
    box-shadow: var(--glow-red), var(--shadow-md);
}

/* Cluster color variations depending on count size */
.cluster-small {
    width: 36px !important;
    height: 36px !important;
    border-color: rgba(253, 249, 240, 0.3);
    box-shadow: 0 0 10px rgba(253, 249, 240, 0.1);
}
.cluster-medium {
    width: 44px !important;
    height: 44px !important;
    border-color: rgba(54, 57, 141, 0.5);
    box-shadow: 0 0 15px rgba(54, 57, 141, 0.3);
    font-size: 15px;
}
.cluster-large {
    width: 52px !important;
    height: 52px !important;
    border-color: rgba(235, 97, 95, 0.5);
    box-shadow: 0 0 20px rgba(235, 97, 95, 0.3);
    font-size: 16px;
}

/* ==========================================================================
   FLOATING DETAIL CARD (MOBILE SHEET & DESKTOP POPUP)
   ========================================================================== */
.floating-store-card {
    position: absolute;
    bottom: 24px;
    left: 24px;
    width: 460px;
    background: var(--bg-header);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    z-index: 800;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(16px);
    transition: transform var(--transition-normal), opacity var(--transition-normal);
    animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.card-image-container {
    width: 90px;
    flex-shrink: 0;
    margin-top: 4px;
}

.card-packaging-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 1.5px solid rgba(253, 249, 240, 0.12);
    display: block;
}

.card-content-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.close-card-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.close-card-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.close-card-btn svg {
    width: 18px;
    height: 18px;
}

.card-store-name {
    font-family: var(--font-header);
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-top: 4px;
    margin-bottom: 8px;
    line-height: 1.25;
}

.store-tag {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--lumios-cyan);
    display: inline-block;
    padding: 2px 8px;
    background: rgba(0, 240, 255, 0.08);
    border-radius: 12px;
}

/* Dynamic Availability Badges */
.availability-badge {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

/* Status: Available (En stock) */
.status-available {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.status-available .indicator-dot {
    background-color: #10b981;
    box-shadow: 0 0 8px #10b981;
}

/* Status: Limited (Stock limité) */
.status-limited {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}
.status-limited .indicator-dot {
    background-color: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
}

/* Status: Out of stock (Rupture) */
.status-outofstock {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.status-outofstock .indicator-dot {
    background-color: #ef4444;
    box-shadow: 0 0 8px #ef4444;
}

/* Warning Info Card for Unknown Availability */
.availability-warning-card {
    background: rgba(234, 179, 8, 0.06);
    border: 1px solid rgba(234, 179, 8, 0.2);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
}

.warning-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #facc15;
    margin-bottom: 4px;
}

.warning-text {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

/* Scoped Map Light Theme overrides for warning info card */
#map-section.map-light-theme .availability-warning-card {
    background: rgba(180, 83, 9, 0.05);
    border: 1px solid rgba(180, 83, 9, 0.15);
}

#map-section.map-light-theme .warning-title {
    color: #b45309;
}

#map-section.map-light-theme .warning-text {
    color: #4b5563;
}

/* Phone Number Styling */
.card-phone-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 14px;
    margin-top: -4px;
}

.card-phone-info svg {
    width: 15px;
    height: 15px;
    color: var(--text-muted);
}

.card-phone-info a {
    color: var(--lumios-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.card-phone-info a:hover {
    color: #fff;
    text-decoration: underline;
}

#map-section.map-light-theme .card-phone-info a {
    color: var(--lumios-blue);
}

#map-section.map-light-theme .card-phone-info a:hover {
    color: #0c0d24;
}

/* Website availability verification button styling */
.website-btn {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.website-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #fff;
    transform: translateY(-2px);
}

#map-section.map-light-theme .website-btn {
    background: transparent;
    color: var(--lumios-blue);
    border: 1px solid rgba(54, 57, 141, 0.2);
}

#map-section.map-light-theme .website-btn:hover {
    background: rgba(54, 57, 141, 0.05);
    border-color: var(--lumios-blue);
}

.card-store-address {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

.distance-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--lumios-cyan);
    font-weight: 600;
    background: rgba(0, 240, 255, 0.08);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(0, 240, 255, 0.15);
}

.badge-icon {
    width: 15px;
    height: 15px;
}

.card-action-bar {
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    display: flex;
    gap: 12px;
}

.action-btn {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    border-radius: 12px;
    text-decoration: none;
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition-fast);
    cursor: pointer;
}

.directions-btn {
    background: #fff;
    color: var(--bg-main);
    border: none;
    box-shadow: var(--shadow-sm);
}

.directions-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.25);
    background: #f8fafc;
}

.directions-btn:active {
    transform: translateY(0);
}

.btn-icon {
    width: 18px;
    height: 18px;
}

/* User Location Marker override */
.user-location-marker {
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-pulse-core {
    width: 12px;
    height: 12px;
    background: #fff;
    border: 2px solid var(--lumios-cyan);
    border-radius: 50%;
    z-index: 10;
}

.user-pulse-ring {
    position: absolute;
    width: 32px;
    height: 32px;
    border: 2px solid var(--lumios-cyan);
    border-radius: 50%;
    animation: user-radar 1.8s infinite ease-out;
    opacity: 0;
}

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

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

@keyframes glow-pulse {
    from {
        box-shadow: 0 0 10px currentColor, 0 0 2px currentColor;
    }
    to {
        box-shadow: 0 0 25px currentColor, 0 0 8px currentColor, 0 0 15px currentColor;
    }
}

@keyframes user-radar {
    0% {
        transform: scale(0.5);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Header Toggle Button (Mobile menu) */
.mobile-toggle-btn {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle-btn svg {
    width: 24px;
    height: 24px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

/* Mobile view responsive logic */
@media (max-width: 960px) {
    /* Header layout changes */
    .app-header {
        padding: 0 16px;
    }
    
    .brand-tagline {
        display: none;
    }
    
    .search-section {
        display: none; /* Hide header search on mobile, we can support a mobile search interface */
    }
    
    /* Reveal mobile header toggle button */
    .mobile-toggle-btn {
        display: block;
    }
    
    /* App Workspace Layout */
    .app-body {
        flex-direction: column-reverse;
    }
    
    /* Sidebar becomes overlay drawer */
    .app-sidebar {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 950;
        border-right: none;
        border-top: 1px solid var(--border-color);
        transform: translateY(100%); /* Start hidden from bottom */
    }
    
    .app-sidebar.open {
        transform: translateY(0);
    }
    
    /* We inject a custom search block into the sidebar for mobile */
    .sidebar-search-mobile {
        padding: 12px 16px;
        border-bottom: 1px solid var(--border-color);
        display: flex;
        gap: 10px;
    }
    
    /* Map takes full body */
    .map-container {
        width: 100%;
        height: 100%;
    }
    
    /* Floating Detail Card becomes bottom sheet */
    .floating-store-card {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
        padding: 20px;
        border-radius: var(--border-radius);
    }
}

/* Hide store counter when mascot card is visible (expanded) */
.sidebar-mascot-header:not(.collapsed) ~ .sidebar-info-bar .store-counter {
    display: none;
}

/* Map Theme Toggle Floating Button */
.map-theme-toggle {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1000;
    background: rgba(14, 16, 31, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast) ease-in-out;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.map-theme-toggle:hover {
    background: var(--bg-card);
    transform: scale(1.08);
    border-color: var(--lumios-blue);
    box-shadow: 0 0 12px rgba(54, 57, 141, 0.4);
}

.map-theme-toggle svg {
    width: 20px;
    height: 20px;
}

/* Scoped Map Light Theme Styles */
#map-section.map-light-theme .theme-icon-sun {
    display: none;
}

#map-section.map-light-theme .theme-icon-moon {
    display: block !important;
}

#map-section.map-light-theme .map-theme-toggle {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #0f172a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

#map-section.map-light-theme .map-theme-toggle:hover {
    background: #ffffff;
    border-color: var(--lumios-blue);
    box-shadow: 0 0 12px rgba(54, 57, 141, 0.2);
}

/* Floating Store Card Light Theme overrides */
#map-section.map-light-theme .floating-store-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(12, 13, 36, 0.08);
    box-shadow: 0 10px 45px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

#map-section.map-light-theme .card-store-name {
    color: #0f172a;
}

#map-section.map-light-theme .card-store-address {
    color: #334155;
}

#map-section.map-light-theme .close-card-btn {
    background: rgba(0, 0, 0, 0.05);
    color: #64748b;
}

#map-section.map-light-theme .close-card-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #0f172a;
}

#map-section.map-light-theme .distance-badge {
    background: rgba(54, 57, 141, 0.06);
    color: var(--lumios-blue);
}

#map-section.map-light-theme .action-btn-store {
    border: 1px solid rgba(54, 57, 141, 0.2);
    color: var(--lumios-blue);
    background: transparent;
}

#map-section.map-light-theme .action-btn-store:hover {
    background: rgba(54, 57, 141, 0.05);
}

/* Custom Marker Cluster overrides in Light Theme */
#map-section.map-light-theme .custom-cluster {
    background: rgba(255, 255, 255, 0.95);
    border: 1.5px solid rgba(12, 13, 36, 0.15);
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#map-section.map-light-theme .custom-cluster:hover {
    border-color: var(--lumios-red);
}

#map-section.map-light-theme .cluster-small {
    border-color: rgba(12, 13, 36, 0.15);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

#map-section.map-light-theme .cluster-medium {
    border-color: rgba(54, 57, 141, 0.3);
    box-shadow: 0 0 15px rgba(54, 57, 141, 0.15);
}

#map-section.map-light-theme .cluster-large {
    border-color: rgba(235, 97, 95, 0.3);
    box-shadow: 0 0 20px rgba(235, 97, 95, 0.15);
}

/* Leaflet control overrides in Light Theme */
#map-section.map-light-theme .leaflet-bar {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
}

#map-section.map-light-theme .leaflet-bar a {
    background-color: #ffffff;
    color: #334155 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

#map-section.map-light-theme .leaflet-bar a:hover {
    background-color: #f1f5f9;
    color: #0f172a !important;
}

