:root {
    --header-height: 81px;
    --topbar-bg: #1f1f1f;
    --body-bg: #f3f4f6;
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --accent-red: #f05454;
    --accent-blue: #3b82f6;
    --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.18);
    --radius-lg: 16px;
    --radius-xl: 999px;
    --transition-fast: 0.15s ease-out;
    --border-subtle: 1px solid rgba(255, 255, 255, 0.06);
}

/* Reset minimal */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--body-bg);
    color: #111827;
}

/* Topbar */

.topbar {
    height: var(--header-height);
    background: var(--topbar-bg);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    gap: 24px;
    position: relative;
    z-index: 10;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-red));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #ffffff;
}

.brand-title {
    font-size: 18px;
    font-weight: 500;
}

/* Navigation */

.topnav {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    position: relative;
    padding-bottom: 4px;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: #e5e7eb;
}

.nav-link.active {
    color: #ffffff;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    border-radius: 999px;
    background: #ffffff;
}

/* Store badges */

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.store-badge:first-child {
    text-decoration: none;
    color: white;
    width: 131px;
    height: 51px;
    opacity: 1;
    gap: 5px;
    border-radius: 10px;
    padding: 10px;
    background: #424242;
}
div.store-text {
    margin-top: 3px;
    font-weight: 600;
    font-size: 10px;
    line-height: 10px;
    letter-spacing: 0;
}
div.store-title {
    margin-top: 5px;
}
div.store-subtitle {
    height: 10px;
    opacity: 1;

}
.store-badge:last-child {
    text-decoration: none;
    color: white;
    width: 145px;
    height: 51px;
    opacity: 1;
    gap: 5px;
    border-radius: 10px;
    padding: 10px;
    background: #424242;
}

.store-badge:hover {
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.store-badge svg {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
}
/* Layout principal */

.main {
    height: calc(100vh - var(--header-height));
    display: flex;
    flex-direction: column;
}

.map-layout {
    position: relative;
    flex: 1;
}

/* Barre flottante (search + boutons) */

.map-toolbar {
    position: absolute;
    top: 24px;
    left: 85px;
    z-index: 999;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.search-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
}

.search-box {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 10px 16px;
    box-shadow: var(--shadow-soft);
    min-width: 280px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box i {
    color: #9ca3af;
    font-size: 16px;
}

.search-box input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 14px;
    color: #111827;
}

.search-box input::placeholder {
    color: #9ca3af;
}

.search-count {
    display: none;
    background: #3b82f6;
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    min-width: 28px;
    height: 24px;
    align-items: center;
    justify-content: center;
}

/* Suggestions d'autocomplétion */
.search-suggestions {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    max-height: 320px;
    overflow-y: auto;
    z-index: 10;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid #f3f4f6;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.active {
    background: #f9fafb;
}

.suggestion-icon {
    width: 32px;
    height: 32px;
    background: #eff6ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-size: 16px;
    flex-shrink: 0;
}

.suggestion-content {
    flex: 1;
}

.suggestion-city {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 2px;
}

.suggestion-city strong {
    color: #3b82f6;
}

.suggestion-count {
    font-size: 12px;
    color: #9ca3af;
}

.toolbar-buttons {
    display: flex;
    gap: 10px;
}
.toolbar-buttons i {
    font-size: 1.4em;
}

.icon-button {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: none;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.icon-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
}

/* Carte (placeholder) */

.map-container {
    position: absolute;
    inset: 0;
    background: #e5edf5;
    overflow: hidden;
}

#map {
    width: 100%;
    height: 100%;
}

.map-placeholder-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #6b7280;
    pointer-events: none;
}



@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.locate-button:hover {
    transform: translateY(-50%) translateY(-2px);
    box-shadow: 0 18px 45px rgba(248, 113, 113, 0.6);
    animation: none;
}

.locate-button:active {
    transform: translateY(-50%) scale(0.95);
}

/* Contrôles de zoom */

.zoom-controls {
    position: absolute;
    right: 24px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.zoom-controls button {
    width: 40px;
    height: 40px;
    border: none;
    background: #ffffff;
    font-size: 20px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.zoom-controls button + button {
    border-top: 1px solid #e5e7eb;
}

.zoom-controls button:hover {
    background: #f3f4f6;
}

/* Bandeau bas */

.bottom-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #4b5563;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
    pointer-events: none; /* laisse passer les interactions vers la carte */
}

.bottom-bar a {
    color: #4b5563;
    text-decoration: none;
    pointer-events: auto;
}

.bottom-bar a:hover {
    text-decoration: underline;
}

.bottom-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.divider {
    opacity: 0.6;
}

a.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

a.logo:hover {
    opacity: 0.8;
}

div.logo img,
a.logo img {
    width: 55px;
    height: 55px;
    border-radius: 6px;
}

/* Custom Leaflet Markers */
.custom-marker {
    background: transparent;
    border: none;
}

.marker-pin {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    background: #22c55e;
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -15px 0 0 -15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.marker-pin i {
    transform: rotate(45deg);
    color: white;
    font-size: 16px;
}

/* User Location Marker - Style Google Maps */
.user-marker {
    background: transparent;
    border: none;
}

.user-marker-pin {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4285F4;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.1);
    position: relative;
}

.user-marker-pin::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(66, 133, 244, 0.2);
    animation: pulse-user 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-user {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

/* Leaflet Popup Styling */
.leaflet-popup {
    z-index: 1500 !important;
}

.leaflet-popup-content-wrapper {
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1500 !important;
}

.leaflet-popup-content {
    margin: 0;
    min-width: 360px;
}

.leaflet-popup-close-button {
    display: none !important;
}

/* Style pour la popup custom */
.custom-popup .leaflet-popup-content-wrapper {
    z-index: 1500 !important;
}

.custom-popup .leaflet-popup-tip-container {
    z-index: 1500 !important;
}

.supercharger-popup-modern {
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.popup-header-top {
    display: flex;
    gap: 8px;
    align-items: center;
}

.popup-brand {
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.popup-brand.brand-tesla {
    background: #ef4444;
}

.popup-brand.brand-other {
    background: #3b82f6;
}

.popup-price {
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
}

.popup-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    color: #4b5563;
}

.popup-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #111827;
}

.popup-description {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 16px 0;
    line-height: 1.5;
}
p.popup-description {
    margin: 0!important;
}

.popup-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.amenity-badge {
    background: #f3f4f6;
    color: #4b5563;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.popup-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #3b82f6;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background: #f9fafb;
    border-color: #3b82f6;
}

.action-btn i {
    font-size: 16px;
}

.popup-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    margin-bottom: 12px;
}

.stat-item {
    flex: 1;
    text-align: center;
}

.stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 3px;
}

.stat-label {
    font-size: 11px;
    color: #9ca3af;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: #e5e7eb;
}

.popup-footer {
    display: flex;
    gap: 8px;
}

.footer-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.footer-btn-secondary {
    background: white;
    color: #111827;
    border: 1px solid #e5e7eb;
}

.footer-btn-secondary:hover {
    background: #f9fafb;
}

.footer-btn-primary {
    background: #ef4444;
    color: white;
}

.footer-btn-primary:hover {
    background: #dc2626;
}

.footer-btn-primary.btn-other-brand {
    background: #3b82f6;
}

.footer-btn-primary.btn-other-brand:hover {
    background: #2563eb;
}

/* Menu hamburger mobile */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}

.mobile-nav-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--topbar-bg);
    z-index: 1000;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease-out;
}

.mobile-nav-menu.active {
    display: block;
}

.mobile-nav-menu .nav-link {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 16px;
}

.mobile-nav-menu .nav-link:last-child {
    border-bottom: none;
}

/* Saut de ligne mobile pour le titre */
.mobile-break {
    display: none;
}

/* Responsive simple */

@media (max-width: 900px) {
    .topbar {
        padding: 0 12px;
        gap: 12px;
    }

    .topnav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
    .leaflet-control-zoom {
        display: none;
    }
    .filter-popup {
        left: 0!important;
    }


    .topbar-right {
        gap: 8px;
    }

    /* Afficher uniquement les icônes des stores sur mobile */
    .store-badge {
        width: 40px !important;
        height: 40px !important;
        padding: 8px !important;
        justify-content: center;
    }

    .store-badge .store-text {
        display: none;
    }

    .store-badge svg {
        width: 24px !important;
        height: 24px !important;
        margin: 0 !important;
    }

    .search-box {
        min-width: 200px;
    }

    .map-toolbar {
        left: 12px;
        right: 12px;
        top: 12px;
    }

    .filter-popup {
        left: 12px;
        right: 12px;
        width: auto;
    }
}

@media (max-width: 600px) {
    .topbar-left {
        flex: 1;
        min-width: 0;
    }

    .logo,
    a.logo {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
    }

    .brand-title {
        font-size: 12px;
        line-height: 1.3;
        display: inline;
        white-space: normal;
    }

    .mobile-break {
        display: inline;
    }
    .leaflet-control-zoom {
        display: none;
    }

    .logo img,
    a.logo img {
        width: 40px !important;
        height: 40px !important;
        flex-shrink: 0;
    }

    .topbar-right {
        gap: 4px;
    }

    .store-badge {
        width: 36px !important;
        height: 36px !important;
        padding: 6px !important;
    }

    .store-badge svg {
        width: 20px !important;
        height: 20px !important;
    }
}

div.logo a {
    text-decoration: none;
    color: white;
}

@media (max-width: 400px) {
    .brand-title {
        font-size: 11px;
    }

    .logo img,
    a.logo img {
        width: 36px !important;
        height: 36px !important;
    }

    .topbar {
        padding: 0 8px;
    }
}

/* Popup de filtrage */
.filter-popup {
    position: absolute;
    top: 83px;
    left: 82px;
    width: 410px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: slideDown 0.2s ease-out;
    overflow: hidden;
}

.filter-popup-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 16px 20px 8px 20px;
}

.filter-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 50%;
}

.filter-close:hover {
    background: #f3f4f6;
    color: #111827;
}

.filter-popup-body {
    padding: 0 0 24px 0;
    max-height: 500px;
    overflow-y: auto;
}

/* Section */
.filter-section {
    padding: 0 24px;
    margin-bottom: 32px;
}

.filter-section-title {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 16px 0;
}

/* Grid de chips pour les marques */
.filter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.filter-chip {
    position: relative;
}
.filter-chip:hover {
    cursor: pointer;
}

.filter-chip input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.filter-chip label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    position: relative;
}

.filter-chip label::before {
    content: "";
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background: white;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.filter-chip label::after {
    content: "✓";
    position: absolute;
    left: 19px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 14px;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.filter-chip input[type="checkbox"]:checked + label::before {
    background: #111827;
    border-color: #111827;
}

.filter-chip input[type="checkbox"]:checked + label::after {
    opacity: 1;
}

.filter-chip label:hover {
    border-color: #9ca3af;
}

.filter-chip label:hover::before {
    border-color: #9ca3af;
}

/* Liste de toggles */
.filter-toggle-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-toggle-item span {
    font-size: 15px;
    color: #374151;
    font-weight: 400;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e7eb;
    transition: 0.3s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #3b82f6;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

@media (max-width: 768px) {
    .filter-popup {
        right: 12px;
        width: calc(100vw - 24px);
        max-width: 380px;
    }

    .filter-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-section {
        padding: 0 16px;
    }
}

/* Styles pour les clusters de marqueurs */
.marker-cluster-tesla {
    background: radial-gradient(circle, rgba(239, 68, 68, 0.4) 0%, rgba(239, 68, 68, 0.15) 70%, rgba(239, 68, 68, 0) 100%);
}

.marker-cluster-tesla div {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(239, 68, 68, 0.4),
                0 1px 3px rgba(0, 0, 0, 0.2);
    border: 3px solid white;
    line-height: 1;
}

.marker-cluster-other {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, rgba(59, 130, 246, 0.15) 70%, rgba(59, 130, 246, 0) 100%);
}

.marker-cluster-other div {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(59, 130, 246, 0.4),
                0 1px 3px rgba(0, 0, 0, 0.2);
    border: 3px solid white;
    line-height: 1;
}

/* Marqueurs individuels */
.marker-pin-tesla {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    background: #ef4444;
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -15px 0 0 -15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
}

.marker-pin-tesla i {
    transform: rotate(45deg);
    color: white;
    font-size: 16px;
}

.marker-pin-other {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    background: #3b82f6;
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -15px 0 0 -15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
}

.marker-pin-other i {
    transform: rotate(45deg);
    color: white;
    font-size: 16px;
}

/* ========== Tesla App Popup ========== */
.tesla-app-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.tesla-app-popup {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

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

.tesla-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 1;
}

.tesla-popup-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.tesla-popup-close i {
    font-size: 20px;
    color: #333;
}

.tesla-popup-content {
    padding: 32px;
}

.tesla-popup-content h3 {
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 700;
    color: #111;
}

.tesla-popup-content p {
    margin: 0 0 16px 0;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

.tesla-popup-content p:last-of-type {
    margin-bottom: 24px;
}

.tesla-popup-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.tesla-popup-store-badge {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    width: 170px;
    height: 60px;
    gap: 10px;
    border-radius: 10px;
    padding: 10px 15px;
    background: #424242;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.tesla-popup-store-badge:hover {
    background: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tesla-popup-store-badge svg {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
}

.tesla-popup-store-badge .store-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tesla-popup-store-badge .store-subtitle {
    font-size: 10px;
    font-weight: 400;
    line-height: 1;
    opacity: 0.8;
    margin-bottom: 3px;
}

.tesla-popup-store-badge .store-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
}

/* ========== Filter App Banner ========== */
.filter-app-banner {
    margin-top: 24px;
    padding: 20px 24px !important;
}

.filter-app-banner-content {
    position: relative;
    display: block;
    text-align: center;
    padding: 32px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-app-banner-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.filter-app-banner-content::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 8s infinite linear;
}

@keyframes shimmer {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.filter-app-banner-content p {
    position: relative;
    z-index: 1;
    color: white;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.5;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.filter-app-banner-content p::before {
    content: "📱";
    display: block;
    font-size: 32px;
    margin-bottom: 8px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.filter-app-banner-content::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

/* Responsive */
@media (max-width: 768px) {
    /* Adapter la popup Leaflet sur mobile */
    .leaflet-popup {
        margin-bottom: 20px !important;
    }

    .leaflet-popup-content-wrapper {
        max-width: 90vw;
        margin: 0 auto;
    }

    .leaflet-popup-content {
        min-width: 280px;
        max-width: 90vw;
        margin: 0;
    }

    /* Positionner la flèche au centre */
    .leaflet-popup-tip-container {
        margin: 0 auto;
        left: 0;
        right: 0;
        width: 20px;
    }

    /* Ajuster le contenu de la popup sur mobile */
    .supercharger-popup-modern {
        padding: 16px;
    }

    .popup-title {
        font-size: 18px;
    }

    .popup-description {
        font-size: 13px;
    }

    .popup-actions {
        flex-direction: column;
        gap: 8px;
    }

    .action-btn {
        font-size: 13px;
        padding: 8px;
    }

    .popup-stats {
        padding: 10px 0;
    }

    .stat-value {
        font-size: 14px;
    }

    .stat-label {
        font-size: 10px;
    }

    .footer-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    /* Popup Tesla App */
    .tesla-popup-content {
        padding: 24px;
    }

    .tesla-popup-content h3 {
        font-size: 20px;
    }

    .tesla-popup-content p {
        font-size: 14px;
    }

    .tesla-popup-actions {
        flex-direction: column;
        gap: 12px;
    }

    .tesla-popup-store-badge {
        width: 100%;
        max-width: 200px;
    }
}
