:root {
    --primary: #0077B6;
    --primary-light: #00B4D8;
    --primary-dark: #023E8A;
    --accent: #E63946;
    --accent-warm: #FF6B35;
    --success: #2ECC71;
    --dark: #1D3557;
    --gray: #5C718B;
    --gray-light: #A8DADC;
    --gray-lighter: #E8F4F8;
    --white: #FFFFFF;
    --background: #F1FAEE;

    --shadow-sm: 0 2px 8px rgba(29, 53, 87, 0.08);
    --shadow-md: 0 4px 20px rgba(29, 53, 87, 0.12);
    --shadow-lg: 0 8px 40px rgba(29, 53, 87, 0.18);
    --shadow-hover: 0 12px 48px rgba(29, 53, 87, 0.22);

    --header-height: 56px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    overflow: hidden;
    touch-action: none;
}

/* ========== MAIN LAYOUT ========== */
.carte-main-wrapper {
    position: fixed;
    top: calc(var(--header-height) + var(--safe-top));
    left: 0;
    right: 0;
    bottom: 0;
}

/* ========== MAP ========== */
.carte-map-container {
    position: absolute;
    inset: 0;
    z-index: 1;
}

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

.leaflet-control-zoom,
.leaflet-control-attribution {
    display: none !important;
}

.carte-map-controls {
    position: absolute;
    right: 12px;
    bottom: 180px;
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: bottom 0.3s ease;
}

.carte-map-btn {
    width: 44px;
    height: 44px;
    background: white;
    border: none;
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--dark);
    cursor: pointer;
}

.carte-map-btn:active {
    background: var(--primary);
    color: white;
}

/* Markers */
.carte-marker-container {
    position: relative;
    width: 32px;
    height: 42px;
}

.carte-marker-container svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.3));
}

.carte-marker-container i {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: white;
}

/* Popup */
.leaflet-popup-content-wrapper {
    border-radius: 16px;
    padding: 0;
    box-shadow: var(--shadow-lg);
}

.leaflet-popup-content {
    margin: 0;
    width: 220px !important;
}

.leaflet-popup-tip {
    background: white;
}

.carte-map-popup {
    padding: 14px;
}

.carte-map-popup-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--dark);
    margin-bottom: 4px;
}

.carte-map-popup-date {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 10px;
}

.carte-map-popup-btn {
    width: 100%;
    padding: 10px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}

/* ========== BOTTOM SHEET ========== */
.carte-bottom-sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 30px rgba(0,0,0,0.15);
    z-index: 900;
    display: flex;
    flex-direction: column;
    height: 80vh;
    padding-bottom: var(--safe-bottom);
    will-change: transform;
}

.carte-bottom-sheet.no-transition {
    transition: none !important;
}

.carte-bottom-sheet.with-transition {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Sheet Handle - Zone de glissement agrandie */
.carte-sheet-drag-zone {
    padding: 16px 0;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.carte-sheet-drag-zone:active {
    cursor: grabbing;
}

.carte-sheet-handle-bar {
    width: 40px;
    height: 5px;
    background: var(--gray-light);
    border-radius: 3px;
    margin: 0 auto;
}

/* Search Section */
.carte-search-section {
    padding: 24px;
    background-color: #00162B;
    color: white;
    flex-shrink: 0;
}

.carte-search-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.carte-search-title i {
    color: var(--accent-warm);
}

.carte-search-box {
    position: relative;
}

.carte-search-box input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    background: rgba(255,255,255,0.95);
    color: var(--dark);
    box-shadow: var(--shadow-md);
    transition: all 0.2s;
}

.carte-search-box input:focus {
    outline: none;
    box-shadow: var(--shadow-lg), 0 0 0 3px rgba(255,255,255,0.3);
}

.carte-search-box input::placeholder {
    color: var(--gray);
}

.carte-search-box i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1.1rem;
}

.carte-sheet-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ========== VIEWS ========== */
.carte-view {
    display: none;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.carte-view.active {
    display: flex;
}

/* Filters Section */
.carte-filters-section {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    flex-shrink: 0;
}

.carte-filters-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.carte-filter-btn {
    padding: 10px 18px;
    border: 2px solid transparent;
    border-radius: 24px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--background);
    color: var(--gray);
}

.carte-filter-btn:hover {
    background: var(--gray-light);
    color: var(--dark);
}

.carte-filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.carte-filter-btn i {
    margin-right: 6px;
}

.carte-date-filter {
    margin-top: 16px;
    display: flex;
    gap: 12px;
}

.carte-date-input {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.carte-date-input label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.carte-date-input input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--dark);
    background: white;
    transition: all 0.2s;
    cursor: pointer;
}

.carte-date-input input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

.carte-date-input input[type="text"]::placeholder {
    color: var(--gray);
    opacity: 0.6;
}

/* Flatpickr customization */
.flatpickr-calendar {
    font-family: inherit !important;
    box-shadow: var(--shadow-lg) !important;
    border-radius: 12px !important;
    border: none !important;
    z-index: 9999 !important;
}

.flatpickr-calendar.open {
    z-index: 9999 !important;
}

.flatpickr-day.selected {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

.flatpickr-day.selected:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

.flatpickr-day:hover {
    background: var(--gray-lighter) !important;
}

.flatpickr-months .flatpickr-month {
    background: var(--primary) !important;
    color: white !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    background: var(--primary) !important;
}

.flatpickr-weekdays {
    background: var(--background) !important;
}

.flatpickr-weekday {
    color: var(--gray) !important;
    font-weight: 600 !important;
}

.flatpickr-day.today {
    border-color: var(--primary) !important;
}

.flatpickr-day.today:hover {
    background: var(--gray-lighter) !important;
    border-color: var(--primary) !important;
}

/* Results Header */
.carte-results-header {
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    flex-shrink: 0;
}

.carte-results-count {
    font-size: 1rem;
    color: var(--gray);
}

.carte-results-count strong {
    color: var(--dark);
    font-size: 1.2rem;
}

.carte-sort-select {
    padding: 8px 14px;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--dark);
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.carte-sort-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Results List */
.carte-results-list {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 16px;
    touch-action: pan-y;
}

/* Mobile Card */
.carte-event-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 14px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    border: 2px solid transparent;
}

.carte-event-card:active {
    border-color: var(--primary-light);
    background: var(--gray-lighter);
}

.carte-event-card-thumb {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.carte-event-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carte-event-status-dot {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid white;
}

.carte-event-status-dot.confirmed { background: var(--success); }
.carte-event-status-dot.tentative { background: var(--accent-warm); }

.carte-event-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.carte-event-card-date {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}

.carte-event-card-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.carte-event-card-location {
    font-size: 0.8rem;
    color: var(--gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.carte-event-card-arrow {
    display: flex;
    align-items: center;
    color: var(--gray-light);
}

/* ========== DETAIL VIEW ========== */
.carte-detail-header {
    position: relative;
    height: 180px;
    flex-shrink: 0;
}

.carte-detail-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carte-detail-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 40%, rgba(0,0,0,0.7) 100%);
}

.carte-detail-back {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--dark);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.carte-detail-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
}

.carte-detail-action-btn {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--gray);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.carte-detail-action-btn.favorited {
    color: var(--accent);
}

.carte-detail-header-info {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    color: white;
}

.carte-detail-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.carte-detail-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

/* Quick Info */
.carte-detail-quick-info {
    display: flex;
    background: var(--background);
    border-bottom: 1px solid var(--gray-lighter);
}

.carte-quick-info-item {
    flex: 1;
    padding: 12px 8px;
    text-align: center;
    border-right: 1px solid var(--gray-lighter);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carte-quick-info-item:last-child {
    border-right: none;
}

.carte-quick-info-item i {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.carte-quick-info-item .carte-label {
    display: block;
    font-size: 0.65rem;
    color: var(--gray);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.carte-quick-info-item .carte-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark);
}

/* Sections */
.carte-detail-section {
    padding: 16px;
    border-bottom: 1px solid var(--gray-lighter);
}

.carte-detail-section:last-child {
    border-bottom: none;
    padding-bottom: calc(16px + var(--safe-bottom));
}

.carte-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.carte-section-title i {
    color: var(--primary);
}

.carte-detail-description {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--gray);
}

/* Programme des vols (Lineup) */
.carte-lineup-counts {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.carte-lineup-count-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--background);
    border-radius: 12px;
    border: 2px solid transparent;
}

.carte-lineup-count-item.statique {
    border-color: #E63946;
}

.carte-lineup-count-item.statique .carte-lineup-count-icon {
    color: #E63946;
}

.carte-lineup-count-item.dynamique {
    border-color: #0077B6;
}

.carte-lineup-count-item.dynamique .carte-lineup-count-icon {
    color: #0077B6;
}

.carte-lineup-count-icon {
    font-size: 1.5rem;
}

.carte-lineup-count-info {
    display: flex;
    flex-direction: column;
}

.carte-lineup-count-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
}

.carte-lineup-count-label {
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 4px;
}

.carte-btn-lineup-detail {
    width: 100%;
    padding: 12px;
    background: var(--background);
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.carte-btn-lineup-detail:hover {
    background: var(--primary);
    color: white;
}

/* Ils y participent (Attendees) */
.carte-attendees-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.carte-attendees-count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--gray);
}

.carte-attendees-count strong {
    color: var(--primary);
    font-size: 1.1rem;
}

.carte-attendees-avatars {
    display: flex;
    margin-bottom: 16px;
}

.carte-attendee-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid white;
    margin-left: -12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.carte-attendee-avatar:first-child {
    margin-left: 0;
}

.carte-attendee-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carte-attendee-avatar.more {
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.carte-btn-attend {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
}

.carte-btn-attend:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.carte-btn-attend.attending {
    background: var(--success);
}

/* Réservations & Services (Affiliate Links) */
.carte-affiliate-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.carte-affiliate-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--background);
    border-radius: 12px;
    text-decoration: none;
    color: var(--dark);
    transition: all 0.2s;
    border: 2px solid transparent;
}

.carte-affiliate-link:hover {
    background: white;
    border-color: var(--primary);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.carte-affiliate-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.carte-affiliate-icon.tickets {
    background: #FF6B6B;
    color: white;
}

.carte-affiliate-icon.hotel {
    background: #4ECDC4;
    color: white;
}

.carte-affiliate-icon.transport {
    background: #45B7D1;
    color: white;
}

.carte-affiliate-icon.parking {
    background: #96CEB4;
    color: white;
}

.carte-affiliate-icon.food {
    background: #FFA726;
    color: white;
}

.carte-affiliate-info {
    flex: 1;
}

.carte-affiliate-name {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.carte-affiliate-desc {
    font-size: 0.85rem;
    color: var(--gray);
}

.carte-affiliate-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
    white-space: nowrap;
}

.carte-affiliate-arrow {
    color: var(--gray-light);
    font-size: 1.2rem;
    transition: all 0.2s;
}

.carte-affiliate-link:hover .carte-affiliate-arrow {
    color: var(--primary);
    transform: translateX(4px);
}

/* Location */
.carte-location-preview {
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--gray-lighter);
    margin-bottom: 10px;
}

.carte-location-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carte-location-address {
    font-size: 0.85rem;
    color: var(--gray);
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.carte-location-address i {
    color: var(--primary);
    margin-top: 2px;
}

/* Location Buttons Container */
.carte-location-buttons {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.carte-btn-directions {
    flex: 1;
    padding: 12px;
    background: var(--background);
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.carte-btn-directions:hover {
    background: var(--primary);
    color: white;
}

.carte-btn-itinerary {
    flex: 1;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: 2px solid var(--primary);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.carte-btn-itinerary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========== DESKTOP ========== */
@media (min-width: 769px) {
    :root {
        --header-height: 64px;
    }

    body {
        touch-action: auto;
    }

    .carte-map-container {
        left: 420px;
    }

    .carte-map-controls {
        right: 24px;
        bottom: 32px;
    }

    /* Desktop: Sidebar */
    .carte-bottom-sheet {
        position: absolute;
        top: 10px;
        left: 0;
        bottom: 0;
        right: auto;
        width: 420px;
        height: 100%;
        border-radius: 0;
        transform: none !important;
        box-shadow: var(--shadow-lg);
    }

    .carte-sheet-drag-zone {
        display: none;
    }

    .carte-event-count-header {
        padding: 24px;
        background: linear-gradient(135deg, var(--primary), var(--dark));
        color: white;
        border-bottom: none;
    }

    .carte-event-count-header h2 {
        color: white;
        font-size: 1.3rem;
    }

    .carte-event-count-badge {
        background: rgba(255,255,255,0.2);
        color: white;
    }

    .carte-event-count-badge strong {
        color: white;
    }

    .carte-search-bar {
        padding: 20px 20px 12px;
    }

    .carte-filters {
        padding: 0 20px 20px;
    }

    .carte-event-list {
        padding: 0 20px 20px;
    }

    /* Desktop Card - Vertical */
    .carte-event-card {
        flex-direction: column;
        padding: 0;
        gap: 0;
        overflow: hidden;
        transition: transform 0.2s, box-shadow 0.2s;
    }

    .carte-event-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-hover);
        border-color: var(--primary-light);
    }

    .carte-event-card-thumb {
        width: 100%;
        height: 160px;
        border-radius: 0;
    }

    .carte-event-favorite-btn {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        background: rgba(255,255,255,0.95);
        border: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: var(--gray);
        transition: all 0.2s;
    }

    .carte-event-favorite-btn:hover {
        color: var(--accent);
    }

    .carte-event-favorite-btn.favorited {
        color: var(--accent);
    }

    .carte-event-card-info {
        padding: 16px;
    }

    .carte-event-card-date {
        font-size: 0.85rem;
        margin-bottom: 6px;
        color: var(--accent);
    }

    .carte-event-card-name {
        font-size: 1.1rem;
        white-space: normal;
        margin-bottom: 6px;
    }

    .carte-event-card-location {
        font-size: 0.9rem;
        white-space: normal;
        margin-bottom: 10px;
    }

    .carte-event-card-tags {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }

    .carte-event-tag {
        padding: 4px 10px;
        background: var(--background);
        border-radius: 12px;
        font-size: 0.75rem;
        color: var(--gray);
    }

    .carte-event-card-arrow,
    .carte-event-status-dot {
        display: none;
    }

    .carte-detail-header {
        height: 220px;
    }

    .carte-detail-section {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .carte-event-favorite-btn,
    .carte-event-card-tags {
        display: none;
    }

    /* Boutons de localisation empilés sur mobile */
    .carte-location-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .carte-btn-directions,
    .carte-btn-itinerary {
        width: 100%;
    }
}

/* ========== MARKER CLUSTERS ========== */
.carte-marker-cluster {
    background: transparent;
}

.carte-cluster-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--white);
    background: var(--primary);
    border: 3px solid var(--white);
    box-shadow: var(--shadow-md);
    transition: all 0.2s;
}

.carte-cluster-icon:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.carte-cluster-small {
    background: var(--primary);
}

.carte-cluster-medium {
    background: var(--primary-dark);
    font-size: 1rem;
}

.carte-cluster-large {
    background: var(--accent);
    font-size: 1.1rem;
    width: 48px;
    height: 48px;
}

/* ========== MASQUER LA BARRE D'OUTILS GOOGLE DE CONFIDENTIALITÉ ========== */
#ft-floating-toolbar,
.ft-container,
toolbar[id*="ft-"],
div[id*="ft-reg-bubble"],
div[id*="ft-"],
iframe[id*="google_ads"],
iframe[src*="fundingchoices"],
iframe[src*="google.com/pagead"],
div[class*="fc-"],
[aria-label*="confidentialité"],
[aria-label*="cookies"],
div:has(> button[class*="ft-"]) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* ========== AJUSTEMENTS POUR LE BANDEAU DE COOKIES ========== */
/* S'assurer que le bandeau de cookies s'affiche au-dessus de la carte */
body .cookie-banner {
    z-index: 99999 !important;
    position: fixed;
}

/* Ajuster la position du bottom sheet quand le bandeau de cookies est visible */
body:has(.cookie-banner.show) .carte-bottom-sheet {
    padding-bottom: calc(var(--safe-bottom) + 140px);
}

/* Sur mobile, ajuster les contrôles de la carte */
@media (max-width: 768px) {
    body:has(.cookie-banner.show) .carte-map-controls {
        bottom: 320px;
        transition: bottom 0.3s ease;
    }
}
