/* ============================================
   VIEWINGPARTY - Esport Energy Theme
   Dark Mode + Electric Blue Accents
   ============================================ */

/* ===========================================
   CSS VARIABLES - Dark Theme Foundation
   =========================================== */

:root {
    /* Backgrounds */
    --bg-deepest: #0A0E14;
    --bg-dark: #111827;
    --bg-elevated: #1F2937;
    --bg-border: #374151;
    --bg-card: #1a1f2e;

    /* Primary - Electric Blue */
    --color-primary: #00D4FF;
    --color-primary-hover: #00A8CC;
    --color-primary-active: #0088AA;
    --color-primary-glow: rgba(0, 212, 255, 0.3);

    /* Text */
    --color-text: #E5E7EB;
    --color-text-muted: #9CA3AF;
    --color-text-dark: #6B7280;

    /* Semantic */
    --color-success: #10B981;
    --color-error: #EF4444;
    --color-warning: #F59E0B;
    --color-info: #3B82F6;

    /* Team Colors */
    --team-g2: #FF6600;
    --team-vitality: #FFE600;
    --team-fnatic: #FF9E00;
    --team-kcorp: #00D4FF;

    /* Old purple (for gradient transitions) */
    --color-purple: #667eea;
    --color-purple-dark: #764ba2;

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms;
    --transition-normal: 200ms;
    --transition-slow: 300ms;
}

/* ===========================================
   BASE STYLES (Mobile First)
   =========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-deepest);
    color: var(--color-text);
    line-height: 1.6;
    position: relative;
}

/* ===========================================
   ALERT SYSTEM
   =========================================== */

.alert-container {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
    width: 95%;
    max-width: 500px;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    display: none;
    animation: slideDown 0.3s ease-out;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    font-weight: 500;
}

.alert.show {
    display: block;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-error);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

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

/* Flash Messages (for page redirects) */
.flash-message {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
    width: 95%;
    max-width: 500px;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    font-weight: 500;
    animation: slideDown 0.3s ease-out, fadeOut 0.5s ease-out 4.5s forwards;
    background: rgba(0, 212, 255, 0.15);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* ===========================================
   FORM STYLES
   =========================================== */

.form-group {
    margin-bottom: 1.5rem;
}

.form-group-compact {
    margin-bottom: 0.75rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--bg-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: var(--bg-dark);
    color: var(--color-text);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.form-control.error {
    border-color: var(--color-error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.form-control.error:focus {
    border-color: var(--color-error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3);
}

.form-control::placeholder {
    color: var(--color-text-dark);
}

.field-error {
    color: var(--color-error);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
    font-weight: 500;
}

.form-errors {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-error);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(239, 68, 68, 0.3);
    display: none;
}

.form-errors.show {
    display: block;
}

.form-errors ul {
    margin: 0;
    padding-left: 1.2rem;
}

.form-errors li {
    margin-bottom: 0.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--bg-border);
}

/* ===========================================
   BUTTON STYLES
   =========================================== */

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    border: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--bg-deepest);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px var(--color-primary-glow);
    background: var(--color-primary-hover);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--color-text);
    border: 1px solid var(--bg-border);
}

.btn-secondary:hover {
    background: var(--bg-border);
    transform: translateY(-1px);
}

.btn-add {
    background: rgba(0, 212, 255, 0.15);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

.btn-add:hover {
    background: rgba(0, 212, 255, 0.25);
    border-color: var(--color-primary);
    color: var(--color-primary);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 0 15px var(--color-primary-glow);
}

/* ===========================================
   IMAGE UPLOAD SECTION
   =========================================== */

.images-section {
    background: var(--bg-dark);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--bg-border);
}

.images-title {
    color: var(--color-text);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.images-help {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.dropzone-container {
    border: 2px dashed var(--color-primary);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0, 212, 255, 0.05);
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.dropzone-container:hover {
    border-color: var(--color-primary-hover);
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-2px);
}

.dropzone-container.dragover {
    border-color: var(--color-primary-hover);
    background: rgba(0, 212, 255, 0.15);
    box-shadow: 0 4px 15px var(--color-primary-glow);
}

.dropzone-text {
    color: var(--color-primary);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.dropzone-subtext {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.dropzone-input {
    display: none;
}

.images-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.image-preview {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid var(--bg-border);
    background: var(--bg-dark);
}

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

.image-preview .remove-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-error);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    line-height: 1;
}

.image-preview .remove-btn:hover {
    background: #dc2626;
}

.dropzone-error {
    color: var(--color-error);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

.dropzone-error.show {
    display: block;
}

/* ===========================================
   HEADER SECTION (Mobile First)
   =========================================== */

.header {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-elevated) 100%);
    border-bottom: 1px solid var(--bg-border);
    color: var(--color-text);
    padding: 0.5rem 0;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    min-height: 80px;
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    overflow: visible;
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 0.5rem;
    width: 100%;
    box-sizing: border-box;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.5rem;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 2;
    flex: 1;
}

.header-title-link {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.header-title-link:hover {
    opacity: 0.9;
}

.header-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
}

.header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
    color: var(--color-primary);
    line-height: 1;
    text-shadow: 0 0 20px var(--color-primary-glow);
}

.header-text {
    font-size: 1rem;
    font-weight: 300;
    color: var(--color-text-muted);
    line-height: 1;
    padding-bottom: 0.1rem;
    display: none;
}

/* ===========================================
   BURGER MENU BUTTON (Mobile < 768px)
   =========================================== */

.burger-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: 1.5rem;
    z-index: 10000;
}

.burger-line {
    width: 100%;
    height: 3px;
    background: var(--color-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Animation quand le menu est ouvert - on cache le burger */
.burger-menu-btn.active .burger-line {
    opacity: 0;
}

/* ===========================================
   NAVIGATION MENU (Mobile First - < 768px)
   =========================================== */

/* Le menu est caché par défaut en mobile */
.header-nav {
    display: flex;
    flex-direction: column;
    padding: 0;
    gap: 0;
}

.menu-close-btn {
    display: none;
}

.menu-link {
    color: var(--color-text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.menu-link:hover {
    color: var(--color-primary);
    background: rgba(0, 212, 255, 0.1);
    border-left-color: var(--color-primary);
}

/* Overlay mobile (caché par défaut) */
.menu-overlay {
    display: none;
}

/* En mobile (< 768px), transformer en sidebar */
@media (max-width: 767px) {
    .header-nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background: var(--bg-dark);
        border-left: 1px solid var(--bg-border);
        padding: 5rem 0 1rem 0;
        box-shadow: -4px 0 10px rgba(0,0,0,0.5);
        z-index: 9998;
        transition: right 0.3s ease;
        overflow-y: auto;
    }

    .header-nav.active {
        right: 0;
    }

    .menu-close-btn {
        display: flex;
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: rgba(0, 212, 255, 0.2);
        border: 1px solid var(--color-primary);
        color: var(--color-primary);
        font-size: 2rem;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        line-height: 1;
    }

    .menu-close-btn:hover {
        background: rgba(0, 212, 255, 0.3);
        transform: rotate(90deg);
    }

    .menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 9997;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .menu-link {
        font-size: 1.1rem;
        padding: 1rem 1.5rem;
    }
}

/* ===========================================
   GAME NAVBAR (Secondary Navbar - Scrollable)
   =========================================== */

.game-navbar {
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--bg-border);
    padding: var(--space-2) var(--space-4);
    display: block;
    position: relative;
    z-index: 100;
}

.game-navbar-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-right: var(--space-2);
    flex-shrink: 0;
}

.game-logo-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal) ease;
    flex-shrink: 0;
    opacity: 0.5;
}

.game-logo-btn:hover {
    opacity: 1;
    background: rgba(0, 212, 255, 0.1);
    transform: scale(1.05);
}

.game-logo-btn.active {
    opacity: 1;
    background: rgba(0, 212, 255, 0.15);
    box-shadow: 0 0 0 2px var(--color-primary), 0 0 20px var(--color-primary-glow);
}

.game-logo-btn img,
.game-logo-btn svg {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: contain;
}

.game-logo-btn .game-name {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.game-logo-btn.active .game-name {
    color: var(--color-primary);
}

/* Game logo placeholder styling */
.game-logo-placeholder {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-border) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-muted);
    border: 2px solid var(--bg-border);
}

.game-logo-btn.active .game-logo-placeholder {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(0, 212, 255, 0.1);
}

/* Game navbar scroll container */
.game-navbar-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--bg-border) transparent;
}

.game-navbar-scroll::-webkit-scrollbar {
    height: 4px;
}

.game-navbar-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.game-navbar-scroll::-webkit-scrollbar-thumb {
    background: var(--bg-border);
    border-radius: 2px;
}

.game-navbar-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-dark);
}

/* Game navbar items container */
.game-navbar-items {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: #2d3748;
    border-radius: var(--radius-lg);
    justify-content: center;
    width: fit-content;
    margin: 0 auto;
}

/* Individual game nav button */
.game-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2d3748;
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal) ease;
    flex-shrink: 0;
    opacity: 1;
    width: 56px;
    height: 56px;
}

.game-nav-item:hover {
    opacity: 1;
    background: #3d4a5c;
}

.game-nav-item.active {
    opacity: 1;
    background: #3d4a5c;
    box-shadow: 0 0 0 2px var(--color-primary);
}

/* Game nav icon container - ensures uniform size */
.game-nav-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.game-nav-icon img,
.game-nav-icon svg {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Game nav label - hidden */
.game-nav-label {
    display: none;
}

/* ===========================================
   CASCADE UI - Logo Selection Grid
   =========================================== */

.cascade-section {
    margin-bottom: var(--space-6);
}

.cascade-label {
    display: block;
    margin-bottom: var(--space-3);
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cascade-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity var(--transition-normal) ease, transform var(--transition-normal) ease;
}

.cascade-grid.visible {
    opacity: 1;
    transform: translateY(0);
}

.cascade-item {
    position: relative;
    cursor: pointer;
    transition: all var(--transition-normal) ease;
    opacity: 0.5;
}

.cascade-item:hover {
    opacity: 1;
    transform: scale(1.05);
}

.cascade-item.active {
    opacity: 1;
}

.cascade-item img,
.cascade-item svg {
    display: block;
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-border);
    transition: border-color var(--transition-normal) ease, box-shadow var(--transition-normal) ease;
}

.cascade-item.game img,
.cascade-item.game svg {
    width: 56px;
    height: 56px;
}

.cascade-item.league img,
.cascade-item.league svg {
    width: 48px;
    height: 48px;
}

.cascade-item.team img,
.cascade-item.team svg {
    width: 40px;
    height: 40px;
}

.cascade-item.active img,
.cascade-item.active svg {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-primary), 0 0 15px var(--color-primary-glow);
}

.cascade-item .checkmark {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: var(--color-primary);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--bg-deepest);
    font-size: 10px;
    font-weight: bold;
    border: 2px solid var(--bg-dark);
}

.cascade-item.active .checkmark {
    display: flex;
}

.cascade-placeholder {
    background: var(--bg-elevated);
    border: 2px solid var(--bg-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.cascade-item.active .cascade-placeholder {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ===========================================
   MAIN LAYOUT
   =========================================== */

.main-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 0.5rem;
    height: calc(100dvh - 80px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.map-container {
    margin: 0.5rem 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: var(--bg-dark);
    flex: 1;
    min-height: 380px;
    border: 1px solid var(--bg-border);
}

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

/* Spots Counter (Story 5.4) - Moved to home layout section below */
.counter-text {
    white-space: nowrap;
}

/* ===========================================
   DESCRIPTION SECTION
   =========================================== */

.description-section {
    background: var(--bg-dark);
    margin: 0 0 0.5rem 0;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    padding: 0;
    transition: all 0.3s ease;
    position: relative;
    flex: none;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
    border: 1px solid var(--bg-border);
}

.description-section.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

.description-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.description-content {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 0;
    align-items: flex-start;
    padding: 0;
    margin-bottom: 10px;
}

.description-image-container {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.description-image {
    max-width: 140px;
    max-height: 140px;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-elevated);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.description-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
    padding: 0;
}

.description-text-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    padding: 0;
}

.description-text-link:hover {
    text-decoration: none;
}

.description-text-link:visited {
    color: inherit;
}

.description-section.visible .description-text-link {
    display: flex;
}

.description-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    transition: all 0.3s ease;
}

.image-nav {
    background: none;
    color: var(--color-primary);
    border: none;
    width: 20px;
    height: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
    z-index: 10;
    flex-shrink: 0;
    font-weight: 300;
}

.image-nav:hover {
    color: var(--color-primary-hover);
    transform: scale(1.2);
}

.legende {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0 1rem 1rem 1rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    margin: 0.5rem 0;
}

.legende-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legende-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.legende-text {
    font-size: 0.85rem;
    color: var(--color-text);
    font-weight: 500;
    line-height: 1.3;
}

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

.description-title span {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rating-inline {
    display: none;
    justify-content: flex-start;
    gap: 4px;
    margin-top: 0;
    padding-left: 0;
}

.spot-rating-inline .star {
    color: var(--bg-border);
    font-size: 1.2rem;
    transition: color 0.2s ease;
}

.spot-rating-inline .star.filled {
    color: var(--color-warning);
}

.spot-features-inline {
    display: none;
    gap: 10px;
}

/* Viewing Party Info Styles (Story 3.1) */
.vp-info-row {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 4px 0;
    font-size: 0.85rem;
}

.vp-info-label {
    font-weight: 600;
    color: var(--color-primary);
    flex-shrink: 0;
}

.vp-info-value {
    color: var(--color-text-muted);
    word-break: break-word;
}

.spot-supported-teams-inline {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.team-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background: var(--color-primary);
    color: var(--bg-deepest);
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 20px;
    cursor: help;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    letter-spacing: 0.5px;
}

.team-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px var(--color-primary-glow);
}

.team-badge::after {
    content: attr(data-label);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background-color: var(--bg-elevated);
    color: var(--color-text);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1000;
    font-weight: 500;
    text-transform: capitalize;
    border: 1px solid var(--bg-border);
}

.team-badge:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-8px);
}

.spot-advantages-inline,
.spot-disadvantages-inline {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding: 2px 10px;
    border-radius: 6px;
}

.spot-advantages-inline {
    background-color: rgba(16, 185, 129, 0.15);
}

.spot-disadvantages-inline {
    background-color: rgba(239, 68, 68, 0.15);
}

.spot-features-inline .feature-icon {
    font-size: 0.95rem;
    transition: transform 0.2s ease;
    cursor: help;
    position: relative;
}

.spot-features-inline .feature-icon:hover {
    transform: scale(1.3);
}

.spot-features-inline .feature-icon::after {
    content: attr(data-label);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background-color: var(--bg-elevated);
    color: var(--color-text);
    padding: 3px 5px;
    border-radius: 3px;
    font-size: 0.5rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    border: 1px solid var(--bg-border);
}

.spot-features-inline .feature-icon:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-8px);
}

.close-button {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--bg-border);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--color-text-muted);
    transition: all 0.2s ease;
    z-index: 10;
    pointer-events: auto;
}

.close-button:hover {
    background: rgba(0, 212, 255, 0.2);
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.description-section.initial {
    background: var(--bg-dark);
    border: 2px dashed var(--bg-border);
    box-shadow: none;
}

.description-section.initial .description-content {
    justify-content: center;
    text-align: center;
    color: var(--color-text-muted);
    font-style: italic;
}

.description-section.initial .close-button {
    display: none;
}

/* Quand un spot est sélectionné */
.description-section.visible .description-image-container {
    display: flex !important;
}

.description-section.visible .legende {
    display: none !important;
}

/* ===========================================
   SPOT DETAILS SECTIONS
   =========================================== */

.spot-details-container {
    display: none;
    flex-direction: column;
}

.spot-details-container.visible {
    display: none;
}

.spot-info-section,
.spot-comments-section {
    flex: 1;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary);
}

.spot-description {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    text-align: left;
    margin: 0;
    padding: 0 0 0 10px;
    display: none;
    white-space: pre-wrap;
    word-wrap: break-word;
}

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

/* ===========================================
   VIEW CONTROL BUTTONS
   =========================================== */

.view-control {
    display: flex;
    flex-direction: row;
    gap: 8px;
    background: rgba(17, 24, 39, 0.9);
    border: 1px solid var(--bg-border);
    border-radius: 6px;
    padding: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.view-btn {
    background: transparent;
    border: 2px solid transparent;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    position: relative;
}

.view-btn:hover {
    background: var(--bg-elevated);
    transform: scale(1.05);
}

.view-btn.active {
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary-glow);
}

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

.view-btn.admin-btn {
    border-color: rgba(239, 68, 68, 0.3);
}

.view-btn.admin-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.5);
}

.view-btn.admin-btn.active {
    border-color: var(--color-error);
    color: var(--color-error);
    background: rgba(239, 68, 68, 0.1);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .view-control {
        gap: 6px;
        padding: 6px;
    }

    .view-btn {
        width: 36px;
        height: 36px;
        padding: 6px;
    }

    .view-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* ===========================================
   VIEW TOGGLE CONTROL (Style Google Maps)
   =========================================== */

.view-toggle-control {
    margin-bottom: 20px !important;
    margin-left: 20px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.leaflet-bottom.leaflet-left .view-toggle-control {
    margin-bottom: 20px !important;
    margin-left: 20px !important;
}

.view-toggle-label {
    color: var(--color-text);
    font-weight: bold;
    font-size: 12px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.view-toggle-label.white {
    color: var(--color-text);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.view-toggle-btn {
    background: rgba(17, 24, 39, 0.9);
    border: 1px solid var(--color-text);
    padding: 0;
    width: 50px;
    height: 50px;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.view-toggle-btn:hover {
    background: var(--bg-elevated);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.view-toggle-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .view-toggle-control {
        margin-bottom: 20px !important;
        margin-left: 20px !important;
    }

    .leaflet-bottom.leaflet-left .view-toggle-control {
        margin-bottom: 20px !important;
        margin-left: 20px !important;
    }

    .view-toggle-btn {
        width: 50px;
        height: 50px;
    }
}

/* ===========================================
   GOOGLE-STYLE LOCATION MARKER
   =========================================== */

.google-location-marker {
    background: transparent;
    border: none;
}

.google-marker-outer {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.google-marker-inner {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

/* ===========================================
   LOCATE CONTROL
   =========================================== */

.locate-control {
    margin-bottom: 10px;
    margin-right: 10px;
}

.locate-btn {
    background: rgba(17, 24, 39, 0.9);
    border: 1px solid var(--bg-border);
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.locate-btn:hover {
    background: var(--bg-dark);
    color: var(--color-text);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

.locate-btn.active {
    background: var(--color-primary);
    color: var(--bg-deepest);
    box-shadow: 0 0 10px var(--color-primary-glow);
}

.locate-btn svg {
    width: 22px;
    height: 22px;
}

@media (max-width: 768px) {
    .locate-control {
        margin-bottom: 8px;
        margin-right: 8px;
    }

    .locate-btn {
        width: 36px;
        height: 36px;
        padding: 8px;
    }

    .locate-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* ===========================================
   SPOT FILTER CONTROL (LEFT SIDE)
   =========================================== */

.spot-filter-control {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(17, 24, 39, 0.9);
    border: 1px solid var(--bg-border);
    border-radius: 6px;
    padding: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.filter-btn {
    background: transparent;
    border: 2px solid transparent;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    position: relative;
}

.filter-btn:hover {
    background: var(--bg-elevated);
    transform: scale(1.05);
}

.filter-btn.active {
    border-color: currentColor;
    box-shadow: 0 0 10px currentColor;
}

.filter-btn.inactive {
    opacity: 0.4;
    background: var(--bg-elevated);
}

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

.filter-btn.blue {
    color: #3b82f6;
}

.filter-btn.orange {
    color: #f97316;
}

.filter-btn.green {
    color: #10b981;
}

@media (max-width: 768px) {
    .spot-filter-control {
        gap: 6px;
        padding: 6px;
    }

    .filter-btn {
        width: 36px;
        height: 36px;
        padding: 6px;
    }

    .filter-btn svg {
        width: 20px;
        height: 20px;
    }
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--bg-border);
}

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

.info-label {
    font-weight: 500;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-right: 1rem;
}

.info-value {
    color: var(--color-text);
    font-size: 0.9rem;
    text-align: right;
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.section-divider {
    display: none;
}

.comments-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.no-comments {
    color: var(--color-text-muted);
    font-style: italic;
    text-align: center;
    padding: 1rem;
    background: var(--bg-elevated);
    border-radius: 6px;
}

.add-comment {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.comment-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--bg-border);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s ease;
    background: var(--bg-dark);
    color: var(--color-text);
}

.comment-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.btn-comment {
    align-self: flex-end;
    padding: 0.5rem 1rem;
    background: var(--color-primary);
    color: var(--bg-deepest);
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-comment:hover {
    background: var(--color-primary-hover);
}

.comment-item {
    padding: 0.75rem;
    border-bottom: 1px solid var(--bg-border);
    margin-bottom: 0.5rem;
}

.comment-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.comment-author {
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.comment-date {
    font-size: 0.8rem;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
}

.comment-text {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Styles pour les commentaires dans le panneau spot */
.spot-comments {
    margin-top: 15px;
    padding: 0 10px;
}

.spot-comments .comments-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.spot-comments .comment-item {
    background: var(--bg-elevated);
    padding: 10px;
    border-radius: var(--radius-md);
    border-bottom: none;
    margin-bottom: 0;
}

.spot-comments .comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.spot-comments .comment-username {
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.85rem;
}

.spot-comments .comment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spot-comments .comment-rating {
    display: flex;
    gap: 2px;
}

.spot-comments .comment-rating .star {
    color: var(--bg-border);
    font-size: 0.85rem;
}

.spot-comments .comment-rating .star.filled {
    color: var(--color-warning);
}

.spot-comments .comment-content {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 6px;
    white-space: pre-wrap;
    word-wrap: break-word;
    text-align: left;
}

.spot-comments .comment-date {
    font-size: 0.75rem;
    color: var(--color-text-dark);
    font-style: italic;
    margin-bottom: 0;
}

.spot-comments .comment-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-delete-comment {
    background: transparent;
    border: none;
    color: var(--color-error);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-delete-comment:hover {
    background: rgba(239, 68, 68, 0.1);
}

.btn-delete-comment:active {
    transform: scale(0.95);
}

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

.btn-edit-comment {
    background: transparent;
    border: none;
    color: var(--color-info);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-edit-comment:hover {
    background: rgba(59, 130, 246, 0.1);
}

.btn-edit-comment:active {
    transform: scale(0.95);
}

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

/* ===========================================
   CAROUSEL STYLES
   =========================================== */

.spot-image-carousel {
    position: relative;
    max-width: 200px;
    margin: 0.5rem auto;
}

.spot-image-carousel img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-md);
    display: block;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.2s ease;
    z-index: 10;
}

.carousel-controls:hover {
    background: rgba(0, 0, 0, 0.9);
}

.carousel-prev {
    left: 8px;
}

.carousel-next {
    right: 8px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 8px;
    flex-wrap: wrap;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bg-border);
    cursor: pointer;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.carousel-indicator.active {
    background: var(--color-primary);
}

.carousel-indicators.many-images .carousel-indicator {
    width: 6px;
    height: 6px;
}

.carousel-counter {
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 5px;
    font-weight: 500;
}

/* ===========================================
   BREAKPOINT 420px - Description image visible
   =========================================== */

@media (min-width: 420px) {
    .description-image-container {
        display: flex;
    }
}

/* ===========================================
   DESKTOP NAVIGATION (>= 768px)
   =========================================== */

@media (min-width: 768px) {
    .burger-menu-btn {
        display: none;
    }

    .header-nav {
        flex-direction: row;
        gap: 1rem;
    }

    .menu-link {
        padding: 0.5rem 0;
        border-left: none;
        font-size: 0.9rem;
        position: relative;
    }

    .menu-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--color-primary);
        transition: width 0.3s ease;
    }

    .menu-link:hover {
        background: transparent;
        border-left-color: transparent;
    }

    .menu-link:hover::after {
        width: 100%;
    }
}

/* ===========================================
   TABLET STYLES (min-width: 768px and max-width: 1099px)
   =========================================== */

@media (min-width: 768px) {
    .description-text-link {
        display: flex;
    }

    .description-title {
        font-size: 1rem;
    }

    .description-title span {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        max-width: none;
    }

    .section-title {
        width: 50%;
        margin: 0 auto 1rem auto;
        text-align: center;
    }

    .spot-rating-inline {
        justify-content: center;
    }

    .spot-features-inline {
        display: flex;
        justify-content: center;
    }

    .spot-features-inline .feature-icon {
        font-size: 1.1rem;
    }

    .spot-features-inline .feature-icon::after {
        font-size: 0.65rem;
        padding: 4px 7px;
    }
}

@media (min-width: 768px) and (max-width: 1099px) {
    .image-indicators {
        display: flex;
        order: 3;
        margin-top: -0.8rem;
    }

    .alert-container {
        width: 90%;
    }

    .header-container {
        padding: 0 1rem;
    }

    .header-content {
        padding: 0 0.5rem;
    }

    .header-left {
        gap: 1.5rem;
    }

    .header-right {
        gap: 0.8rem;
    }

    .header-title {
        flex-direction: row;
        align-items: flex-end;
        gap: 0.3rem;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .header-text {
        display: block;
        font-size: 1rem;
    }

    .menu-link {
        font-size: 0.9rem;
    }

    .main-container {
        padding: 0 1rem;
    }

    .main-content {
        flex-direction: row;
        gap: 1rem;
    }

    .description-section {
        width: 33.33%;
        margin: 1rem 0;
        padding: 0;
        order: 1;
        overflow-y: auto;
        position: relative;
        min-height: unset;
        max-height: unset;
    }

    .description-content {
        padding: 0.8rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
        box-sizing: border-box;
    }

    .description-text,
    .description-text-link {
        padding: 0;
        width: 100%;
        text-align: center;
        order: 1;
    }

    .description-title {
        padding-top: 0.5rem;
    }

    .description-image-container {
        width: 100%;
        justify-content: center;
        gap: 0.8rem;
        order: 2;
        margin: 0.3rem 0;
    }

    .description-image {
        width: 70%;
        max-width: 300px;
        max-height: 300px;
        height: auto;
    }

    .description-image img.image-horizontal {
        width: 100%;
        height: auto;
    }

    .description-image img.image-vertical {
        width: auto;
        height: auto;
        max-height: 300px;
    }

    .description-image img.image-square {
        width: 100%;
        height: auto;
    }

    .image-nav {
        width: 30px;
        height: 30px;
        font-size: 24px;
    }

    .map-container {
        width: 66.67%;
        margin: 1rem 0;
        order: 2;
    }

    .spot-details-container {
        display: none;
        width: 100%;
        gap: 1.5rem;
        margin-top: 0.8rem;
        order: 3;
    }

    .spot-details-container.visible {
        display: flex;
    }

    .section-divider {
        display: block;
        width: 2px;
        background: linear-gradient(to bottom, transparent, var(--color-primary), transparent);
        flex-shrink: 0;
        margin: 0 0.3rem;
        min-height: 150px;
    }

    .spot-info-section,
    .spot-comments-section {
        flex: 1;
        min-width: 0;
        max-width: calc(50% - 1rem);
        overflow: hidden;
    }

    .carousel-controls {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .carousel-prev {
        left: 5px;
    }

    .carousel-next {
        right: 5px;
    }
}

/* ===========================================
   DESKTOP STYLES (min-width: 1100px)
   =========================================== */

@media (min-width: 1100px) {
    .image-indicators {
        display: flex;
        order: 3;
        margin-top: -0.8rem;
    }

    .alert-container {
        width: 90%;
    }

    .header-container {
        padding: 0 1rem;
    }

    .header-content {
        padding: 0 0.5rem;
    }

    .header-left {
        gap: 2rem;
    }

    .header-right {
        gap: 1rem;
    }

    .header-title {
        flex-direction: row;
        align-items: flex-end;
        gap: 0.5rem;
    }

    .header h1 {
        font-size: 2.5rem;
    }

    .header-text {
        display: block;
        font-size: 1.3rem;
    }

    .menu-link {
        font-size: 1.1rem;
    }

    .main-container {
        padding: 0 1rem;
    }

    .main-content {
        flex-direction: row;
        gap: 1rem;
    }

    .description-section {
        width: 33.33%;
        margin: 1rem 0;
        padding: 0;
        order: 1;
        overflow-y: auto;
        position: relative;
        min-height: unset;
        max-height: unset;
    }

    .description-content {
        padding: 0.8rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
        box-sizing: border-box;
    }

    .description-text,
    .description-text-link {
        padding: 0;
        width: 100%;
        text-align: center;
        order: 1;
    }

    .description-title {
        padding-top: 0.5rem;
    }

    .description-image-container {
        width: 100%;
        justify-content: center;
        gap: 0.8rem;
        order: 2;
        margin: 0.3rem 0;
    }

    .description-image {
        width: 70%;
        max-width: 300px;
        max-height: 300px;
        height: auto;
    }

    .description-image img.image-horizontal {
        width: 100%;
        height: auto;
    }

    .description-image img.image-vertical {
        width: auto;
        height: auto;
        max-height: 300px;
    }

    .description-image img.image-square {
        width: 100%;
        height: auto;
    }

    .image-nav {
        width: 30px;
        height: 30px;
        font-size: 24px;
    }

    .map-container {
        width: 66.67%;
        margin: 1rem 0;
        order: 2;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }

    .spot-details-container {
        display: none;
        width: 100%;
        gap: 2rem;
        margin-top: 1rem;
        order: 3;
    }

    .spot-details-container.visible {
        display: flex;
    }

    .section-divider {
        display: block;
        width: 2px;
        background: linear-gradient(to bottom, transparent, var(--color-primary), transparent);
        flex-shrink: 0;
        margin: 0 0.5rem;
        min-height: 200px;
    }

    .spot-info-section,
    .spot-comments-section {
        width: 48%;
        min-width: 0;
        flex-shrink: 0;
        overflow: hidden;
    }

    .info-item {
        overflow: hidden;
    }

    .info-label {
        max-width: 40%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .info-value {
        max-width: 60%;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .carousel-controls {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .carousel-prev {
        left: 5px;
    }

    .carousel-next {
        right: 5px;
    }

    /* GameNavbar full width on desktop */
    .game-navbar {
        justify-content: center;
        overflow-x: visible;
    }
}

/* ===========================================
   CHANGELOG MODAL
   =========================================== */

.changelog-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
}

.changelog-modal.show {
    display: flex;
}

.changelog-modal-content {
    background: var(--bg-dark);
    width: 350px;
    height: 350px;
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--bg-border);
}

.changelog-modal-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    color: var(--bg-deepest);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.changelog-modal-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.changelog-close {
    background: none;
    border: none;
    color: var(--bg-deepest);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.changelog-close:hover {
    background: rgba(0, 0, 0, 0.2);
}

.changelog-modal-body {
    padding: 1rem;
    overflow-y: auto;
    flex: 1;
}

.changelog-entry {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

.changelog-entry:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.changelog-date {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.changelog-separator {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--bg-border), transparent);
    margin-bottom: 0.5rem;
}

.changelog-text {
    color: var(--color-text);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ===========================================
   CLICKABLE SPOT ELEMENTS
   =========================================== */

.spot-title-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    display: block;
    padding: 0.2rem 0;
}

.spot-title-link:hover {
    color: var(--color-primary);
    text-decoration: none;
    text-shadow: 0 0 10px var(--color-primary-glow);
}

.spot-title-link:visited {
    color: inherit;
}

.spot-image-link {
    display: block;
    transition: all 0.2s ease;
    cursor: pointer;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.spot-image-link:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.spot-image-link img {
    transition: transform 0.2s ease;
}

.spot-image-link:hover img {
    transform: scale(1.01);
}

/* ===========================================
   COORDINATE SELECTION MODE
   =========================================== */

.coordinate-selection-controls {
    display: none;
    flex-direction: row;
    gap: 0.5rem;
    padding: 0 0.75rem;
    background: transparent;
    width: 100%;
}

.btn-coordinate {
    flex: 1;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-cancel {
    background: var(--bg-elevated);
    color: var(--color-text);
    border: 1px solid var(--bg-border);
}

.btn-cancel:hover {
    background: var(--bg-border);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-validate {
    background: var(--color-primary);
    color: var(--bg-deepest);
}

.btn-validate:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--color-primary-glow);
}

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

/* ===========================================
   MULTI-STEP SPOT FORM
   =========================================== */

.multi-step-form-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.multi-step-form-container.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}

.multi-step-form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.multi-step-form {
    position: relative;
    width: 95%;
    max-width: 800px;
    height: 90dvh;
    max-height: 700px;
    background: var(--bg-dark);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: scaleIn 0.3s ease-out;
    border: 1px solid var(--bg-border);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.multi-step-form .form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--bg-border);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    color: var(--bg-deepest);
}

.multi-step-form .back-button {
    background: none;
    border: none;
    color: var(--bg-deepest);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: background 0.2s;
}

.multi-step-form .back-button:hover {
    background: rgba(0, 0, 0, 0.2);
}

.multi-step-form .header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    text-align: center;
}

.multi-step-form .step-title-header {
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
    color: var(--bg-deepest);
    opacity: 0.95;
    line-height: 1.3;
}

.multi-step-form .step-indicator {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0.8;
}

.multi-step-form .close-button {
    background: none;
    border: none;
    color: var(--bg-deepest);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    line-height: 1;
    border-radius: var(--radius-md);
    transition: background 0.2s;
}

.multi-step-form .close-button:hover {
    background: rgba(0, 0, 0, 0.2);
}

.multi-step-form .form-body {
    flex: 1;
    padding: 1rem 2rem 2rem 2rem;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

@media (min-width: 400px) {
    .multi-step-form .form-body:has(.spot-type-options) {
        overflow-y: hidden;
    }
}

.step-content {
    animation: fadeIn 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1rem;
    text-align: center;
    flex-shrink: 0;
}

.step-subtitle {
    font-size: 1rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 2rem;
    flex-shrink: 0;
}

/* ÉTAPE 1 - Type de spot */
.spot-type-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    flex: 1;
    align-content: center;
    grid-auto-flow: row;
}

.spot-type-card {
    background: var(--bg-dark);
    border: 2px solid var(--bg-border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.spot-type-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--color-primary-glow);
}

.spot-type-card-disabled {
    background: var(--bg-elevated);
    border-color: var(--bg-border);
    cursor: not-allowed;
    opacity: 0.6;
}

.spot-type-card-disabled:hover {
    border-color: var(--bg-border);
    transform: none;
    box-shadow: none;
}

.spot-type-card-disabled .spot-type-icon,
.spot-type-card-disabled h3,
.spot-type-card-disabled p {
    color: var(--color-text-dark);
}

.coming-soon-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--color-error);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spot-type-icon {
    font-size: 3.5rem;
    margin-bottom: 0.8rem;
}

.spot-type-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.4rem;
}

.spot-type-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* ÉTAPE 2 - Titre et description */
.form-fields {
    max-width: 600px;
    margin: 0 auto;
}

.form-group label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    border: 2px solid var(--bg-border);
    border-radius: var(--radius-md);
    transition: border-color 0.2s;
    font-family: inherit;
    background: var(--bg-dark);
    color: var(--color-text);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* ÉTAPE 3 & 4 - Avantages / Inconvénients (Checkboxes) */
.checkbox-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 400px) {
    .checkbox-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 2px 0.85rem;
    background: var(--bg-dark);
    border: 2px solid var(--bg-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkbox-item:hover {
    border-color: var(--color-primary);
    background: rgba(0, 212, 255, 0.05);
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--color-primary);
    flex-shrink: 0;
}

.checkbox-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.checkbox-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    flex: 1;
}

/* ÉTAPE 5 - Rating */
.rating-selector {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.star-button {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
    padding: 0.25rem;
}

.star-button svg {
    width: 40px;
    height: 40px;
}

@media (min-width: 400px) {
    .star-button svg {
        width: 60px;
        height: 60px;
    }
}

.star-button:hover {
    transform: scale(1.2);
}

.star-button.selected svg {
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.6));
}

/* ÉTAPE 6 - Images */
.image-upload-zone {
    border: 3px dashed var(--bg-border);
    border-radius: var(--radius-xl);
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    background: var(--bg-elevated);
}

.image-upload-zone:hover {
    border-color: var(--color-primary);
    background: rgba(0, 212, 255, 0.05);
}

.image-upload-zone.drag-over {
    border-color: var(--color-primary);
    background: rgba(0, 212, 255, 0.1);
}

.upload-placeholder {
    pointer-events: none;
}

.upload-placeholder svg {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.upload-placeholder p {
    color: var(--color-text-muted);
    font-size: 1rem;
}

.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.image-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid var(--bg-border);
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.remove-image-btn:hover {
    background: rgba(255, 0, 0, 0.8);
}

/* Boutons de navigation */
.btn-next,
.btn-submit {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bg-deepest);
    background: var(--color-primary);
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-next:hover,
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--color-primary-glow);
}

.btn-next:disabled,
.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-submit {
    background: var(--color-success);
}

.btn-submit:hover {
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.btn-submit.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
    background: #0d8075;
}

.btn-submit.loading:hover {
    transform: none;
    box-shadow: none;
}

.btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

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

@media (min-width: 350px) {
    .spot-type-options {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

@media (min-width: 768px) {
    .multi-step-form .form-body {
        padding: 3rem;
    }

    .multi-step-form .step-title-header {
        font-size: 1.2rem;
    }

    .multi-step-form .step-indicator {
        font-size: 1rem;
    }
}

@media (min-width: 1024px) {
    .spot-features-inline .feature-icon {
        font-size: 1.3rem;
    }

    .spot-features-inline .feature-icon::after {
        font-size: 0.75rem;
        padding: 5px 9px;
    }
}

/* ===========================================
   ZOOM WARNING NOTIFICATION
   =========================================== */

.zoom-warning-notification {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    z-index: 2000;
    max-width: 90%;
    width: 450px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    padding: 1.2rem 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 40px var(--color-primary-glow);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-out;
}

.zoom-warning-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.zoom-warning-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--bg-deepest);
}

.zoom-warning-content svg {
    flex-shrink: 0;
    stroke: var(--bg-deepest);
}

/* ===========================================
   SPOT FORM NOTIFICATION
   =========================================== */

.spot-form-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    background: var(--bg-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateX(120%);
    transition: transform 0.3s ease-out;
    z-index: 10001;
    max-width: 300px;
    font-weight: 500;
    border: 1px solid var(--bg-border);
}

.spot-form-notification.show {
    transform: translateX(0);
}

.spot-form-notification-success {
    border-left: 4px solid var(--color-success);
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
}

.spot-form-notification-error {
    border-left: 4px solid var(--color-error);
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-error);
}

@media (max-width: 768px) {
    .spot-form-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

.zoom-warning-content span {
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 500;
}

@media (max-width: 500px) {
    .zoom-warning-notification {
        width: 85%;
        padding: 1rem 1.2rem;
        top: 80px;
    }

    .zoom-warning-content {
        gap: 0.8rem;
    }

    .zoom-warning-content svg {
        width: 20px;
        height: 20px;
    }

    .zoom-warning-content span {
        font-size: 0.85rem;
    }
}

/* ===========================================
   SPOT PHONE NUMBER (HOME SPOTS)
   =========================================== */

.spot-phone-number {
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border-left: 3px solid var(--color-success);
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--color-success);
    font-weight: 600;
    text-align: left;
}

/* ===========================================
   LANGUAGE DROPDOWN
   =========================================== */

.language-dropdown {
    position: relative;
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
}

.language-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    flex: 1;
    margin: 0;
    color: var(--color-text);
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    box-sizing: border-box;
}

.language-dropdown-toggle:hover {
    color: var(--color-primary);
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--color-primary);
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.language-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.language-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    border: 1px solid var(--bg-border);
    border-radius: 0 0 6px 6px;
    overflow: hidden;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.language-dropdown.open .language-dropdown-menu {
    display: block;
}

.language-dropdown-item {
    display: block;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.6rem 1rem;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--bg-border);
}

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

.language-dropdown-item:hover {
    color: var(--color-primary);
    background: rgba(0, 212, 255, 0.1);
}

.language-dropdown-item.active {
    color: var(--color-primary);
    background: rgba(0, 212, 255, 0.15);
    font-weight: 600;
}

@media (min-width: 768px) {
    .language-dropdown {
        border-bottom: none;
        margin-bottom: 0;
    }

    .language-dropdown-toggle {
        width: auto;
        font-size: 0.85rem;
        padding: 0.35rem 0.7rem;
        border-radius: 6px;
        background: rgba(0, 212, 255, 0.1);
        border: 1px solid rgba(0, 212, 255, 0.2);
    }

    .language-dropdown-menu {
        left: 0;
        right: auto;
        min-width: 90px;
        border-radius: 6px;
    }

    .language-dropdown-item {
        font-size: 0.85rem;
        padding: 0.5rem 0.8rem;
    }
}

/* ===========================================
   CITY AUTOCOMPLETE (Stimulus Controller)
   =========================================== */

.autocomplete-container {
    position: relative;
}

.autocomplete-list {
    position: absolute;
    z-index: 1000;
    background: var(--bg-dark);
    border: 1px solid var(--bg-border);
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin-top: 4px;
}

.autocomplete-item {
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.15s ease;
    color: var(--color-text);
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background-color: var(--bg-elevated);
}

.autocomplete-loading {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.autocomplete-loading .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--color-primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: autocomplete-spin 0.8s linear infinite;
}

@keyframes autocomplete-spin {
    to {
        transform: rotate(360deg);
    }
}

.hidden {
    display: none !important;
}

/* ===========================================
   PROFILE PAGE
   =========================================== */

.profile-page {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
}

.profile-page h1,
.profile-edit-page h1 {
    color: var(--color-text);
    margin-bottom: 2rem;
    text-align: center;
}

.profile-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-dark);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border: 1px solid var(--bg-border);
}

.profile-section h2 {
    margin-bottom: 1rem;
    color: var(--color-text);
    font-size: 1.2rem;
}

.profile-edit-page {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-section {
    padding: 1.5rem;
    background: var(--bg-dark);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border: 1px solid var(--bg-border);
}

.form-section h2 {
    margin-bottom: 1rem;
    color: var(--color-text);
    font-size: 1.2rem;
}

.form-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-text);
}

.tags-container,
.selected-villes,
.selected-teams {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 40px;
}

.tags-container.empty,
.selected-villes:empty,
.selected-teams:empty {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--color-primary);
    color: var(--bg-deepest);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.tag-remove {
    background: none;
    border: none;
    color: var(--bg-deepest);
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    text-decoration: none;
}

.tag-remove:hover {
    background: rgba(0, 0, 0, 0.2);
}

.empty {
    color: var(--color-text-dark);
    font-style: italic;
    margin: 0;
}

.info {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.profile-actions {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .profile-page,
    .profile-edit-page {
        padding: 1rem;
        margin: 1rem auto;
    }

    .profile-section,
    .form-section {
        padding: 1rem;
    }

    .tags-container,
    .selected-villes,
    .selected-teams {
        gap: 0.4rem;
    }

    .tag {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }
}

/* ===========================================
   NEW PROFILE DESIGN (Mobile-First)
   =========================================== */

/* Profile Card - Avatar + Pseudo + Edit button */
.profile-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--bg-dark);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    border: 1px solid var(--bg-border);
}

.profile-avatar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-medium);
    border: 2px solid var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-placeholder {
    font-size: 1.8rem;
}

.profile-pseudo {
    margin: 0;
    font-size: 1.1rem;
    color: var(--color-text);
    font-weight: 600;
}

.btn-edit-profile {
    padding: 0.5rem 1rem;
    background: var(--bg-medium);
    border: 1px solid var(--bg-border);
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    font-size: 0.85rem;
    cursor: not-allowed;
    transition: all 0.2s ease;
}

.btn-edit-profile:not(:disabled) {
    cursor: pointer;
}

.btn-edit-profile:not(:disabled):hover {
    background: var(--bg-light);
    color: var(--color-text);
}

/* Section Labels */
.section-label {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-weight: 500;
    text-transform: none;
}

/* Teams Section - Circles */
.teams-section .teams-circles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.team-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-medium);
    border: 2px solid var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
    transition: transform 0.2s ease;
}

.team-circle:hover {
    transform: scale(1.1);
}

.add-team-circle {
    background: transparent;
    border: 2px dashed var(--color-text-dark);
    color: var(--color-text-dark);
    cursor: not-allowed;
}

.add-team-circle:not(:disabled) {
    cursor: pointer;
    border-style: solid;
}

.add-team-circle:not(:disabled):hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.empty-teams,
.empty-cities {
    color: var(--color-text-dark);
    font-size: 0.85rem;
    font-style: italic;
}

/* Cities Section - Pills */
.cities-section .cities-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.city-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: var(--bg-medium);
    border: 1px solid var(--color-primary);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--color-text);
}

.city-remove {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.city-remove:hover {
    color: #EC4899;
}

/* Parties Section - Compact Cards */
.parties-section {
    padding: 1rem;
}

.parties-toggle {
    margin-bottom: 0.75rem;
}

.parties-toggle .btn-link {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
}

.parties-toggle .btn-link:hover {
    color: var(--color-primary);
}

.parties-compact-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.party-compact-card {
    background: var(--bg-medium);
    border: 1px solid var(--bg-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.party-compact-card:hover {
    border-color: var(--color-primary);
}

.party-compact-card.expanded {
    border-color: var(--color-primary);
}

.party-compact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
}

.party-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
}

.party-count {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.party-details {
    padding: 0 1rem 0.75rem;
    border-top: 1px solid var(--bg-border);
    margin-top: 0.25rem;
    padding-top: 0.75rem;
    animation: slideDown 0.2s ease-out;
}

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

.party-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.party-game,
.party-date {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.party-location {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.party-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.party-actions .btn-sm {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
}

.parties-empty {
    text-align: center;
    padding: 1.5rem;
    color: var(--color-text-muted);
}

.parties-empty p {
    margin: 0 0 1rem 0;
}

.parties-archived {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bg-border);
}

.parties-archived h4 {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0 0 0.75rem 0;
}

/* Create Party Button */
.btn-create-party {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem;
    background: var(--color-primary);
    color: var(--bg-deepest);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.btn-create-party:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
}

/* ===========================================
   TEAMS CASCADE MODAL (Story 1.5)
   =========================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-overlay:not(.hidden) {
    display: flex;
}

.modal-overlay.hidden {
    display: none;
}

.modal-content {
    background: var(--bg-dark);
    border-radius: var(--radius-xl);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
    border: 1px solid var(--bg-border);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--bg-border);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    color: var(--bg-deepest);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--bg-deepest);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--bg-border);
}

.leagues-container {
    margin-top: 1rem;
}

.league-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 4px;
}

.league-checkbox:hover {
    background: var(--bg-elevated);
}

.league-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--color-primary);
}

.teams-section {
    margin-top: 1.5rem;
}

.teams-section h3 {
    margin-bottom: 1rem;
    color: var(--color-text);
    font-size: 1rem;
}

.teams-container {
    max-height: 300px;
    overflow-y: auto;
}

.league-group {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    animation: fadeIn 0.3s ease-out;
}

.league-group h4 {
    margin-bottom: 0.75rem;
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 600;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.25rem;
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.5rem;
}

.team-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem;
    cursor: pointer;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.team-checkbox:hover {
    background: var(--bg-elevated);
}

.team-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--color-primary);
}

.feedback {
    padding: 0.75rem;
    border-radius: 4px;
    margin-top: 1rem;
    text-align: center;
}

.feedback:not(.hidden) {
    display: block;
}

.feedback:not(.error) {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-success);
}

.feedback.error {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-error);
}

.text-muted {
    color: var(--color-text-dark);
    font-size: 0.9rem;
    font-style: italic;
}

@media (max-width: 768px) {
    .modal-content {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .modal-header {
        border-radius: 0;
        padding: 1rem;
    }

    .modal-header h2 {
        font-size: 1rem;
    }

    .modal-close {
        width: 28px;
        height: 28px;
        font-size: 1.2rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-footer {
        padding: 0.75rem 1rem;
    }

    .teams-grid {
        grid-template-columns: 1fr;
    }

    .league-group h4 {
        font-size: 0.9rem;
    }
}

/* ===========================================
   VIEWING PARTY CASCADE FORM (Story 2.1)
   =========================================== */

.leagues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
}

.league-checkbox-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border: 1px solid var(--bg-border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-dark);
}

.league-checkbox-item:hover {
    background: var(--bg-elevated);
    border-color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px var(--color-primary-glow);
}

.league-checkbox-item input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--color-primary);
}

.league-checkbox-item label {
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    margin: 0;
}

.viewing-party-teams-container {
    margin-top: 1.5rem;
}

.viewing-party-league-group {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-primary);
    animation: fadeIn 0.3s ease-out;
}

.viewing-party-league-group h4 {
    margin-bottom: 0.75rem;
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 600;
}

.viewing-party-teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.5rem;
}

.viewing-party-team-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.viewing-party-team-checkbox:hover {
    background: rgba(0, 212, 255, 0.05);
}

.viewing-party-team-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--color-primary);
}

.viewing-party-league-error {
    padding: 0.75rem;
    border-radius: 6px;
    margin-top: 1rem;
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-error);
    border: 1px solid var(--color-error);
    font-size: 0.9rem;
    font-weight: 500;
}

.viewing-party-help-text {
    color: var(--color-text-dark);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-style: italic;
}

.viewing-party-form-section {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
}

.viewing-party-form-section h3 {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}

@media (max-width: 576px) {
    .leagues-grid {
        grid-template-columns: 1fr;
    }

    .viewing-party-teams-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   MAP FILTERS SECTION (Story 3.2 - Redesign Story 5.1)
   ======================================== */

/* Overlay pour le modal */
.filters-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.filters-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

/* Bouton filtres - Design rectangulaire avec texte */
.map-filters-btn {
    position: absolute;
    bottom: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-dark);
    border: 1px solid var(--bg-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    z-index: 1001;
    transition: all var(--transition-normal);
}

.map-filters-btn svg {
    flex-shrink: 0;
}

.map-filters-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.map-filters-btn[aria-expanded="true"] {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--bg-deepest);
}

/* Modal des filtres - Nouveau design sobre */
.map-filters-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    background: var(--bg-dark);
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    overflow: visible;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--bg-border);
}

.map-filters-modal:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.map-filters-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--bg-border);
}

.map-filters-modal .modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
}

.map-filters-modal .modal-close {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.map-filters-modal .modal-close:hover {
    background: var(--bg-border);
    color: var(--color-text);
}

.map-filters-modal .modal-body {
    padding: 1.25rem;
    overflow-y: auto;
    flex: 1;
}

.map-filters-modal .modal-body::-webkit-scrollbar {
    width: 6px;
}

.map-filters-modal .modal-body::-webkit-scrollbar-track {
    background: var(--bg-deepest);
}

.map-filters-modal .modal-body::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 3px;
}

/* Sections de filtres */
.filter-section {
    margin-bottom: 1.5rem;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section > label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

/* Chips pour jeux et ligues - Grille sans scroll */
.game-chips,
.league-chips {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}

.game-chip,
.league-chip {
    padding: 12px 16px;
    background: var(--bg-deepest);
    border: 1px solid var(--bg-border);
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.game-chip:hover,
.league-chip:hover {
    border-color: var(--color-primary);
    color: var(--color-text);
}

.game-chip.selected,
.league-chip.selected {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--bg-deepest);
}

/* États vides et loading */
.league-empty,
.league-loading {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.league-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.league-loading .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--bg-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Error state */
.league-error {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--color-error, #ef4444);
    font-size: 0.9rem;
}

/* Modal footer */
.map-filters-modal .modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-elevated);
    border-top: 1px solid var(--bg-border);
}

.map-filters-modal .btn-secondary,
.map-filters-modal .btn-primary {
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.map-filters-modal .btn-secondary {
    background: transparent;
    border: 1px solid var(--bg-border);
    color: var(--color-text-muted);
}

.map-filters-modal .btn-secondary:hover {
    border-color: var(--color-text-muted);
    color: var(--color-text);
}

.map-filters-modal .btn-primary {
    background: var(--color-primary);
    border: 1px solid var(--color-primary);
    color: var(--bg-deepest);
}

.map-filters-modal .btn-primary:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
}

.map-filters-modal .btn-primary .count {
    display: inline-block;
    min-width: 20px;
    padding: 2px 6px;
    margin-left: 6px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
}

/* Flatpickr customization - Dark theme */
.flatpickr-calendar {
    background: var(--bg-dark);
    border: 1px solid var(--bg-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.flatpickr-calendar:not(.open) {
    display: none;
}

.flatpickr-calendar.open {
    z-index: 1002;
}

.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    color: var(--color-text);
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    color: var(--color-text-muted);
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    color: var(--color-primary);
}

.flatpickr-weekdays {
    background: var(--bg-elevated);
}

.flatpickr-weekday {
    color: var(--color-text-muted);
}

.flatpickr-day {
    color: var(--color-text);
}

.flatpickr-day:hover {
    background: var(--bg-elevated);
    border-color: var(--bg-border);
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.selected.prevMonthDay,
.flatpickr-day.startRange.prevMonthDay,
.flatpickr-day.endRange.prevMonthDay,
.flatpickr-day.selected.nextMonthDay,
.flatpickr-day.startRange.nextMonthDay,
.flatpickr-day.endRange.nextMonthDay {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--bg-deepest);
}

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

.flatpickr-day.inRange,
.flatpickr-day.prevMonthDay.inRange,
.flatpickr-day.nextMonthDay.inRange,
.flatpickr-day.today.inRange,
.flatpickr-day:hover,
.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover {
    background: rgba(255, 255, 255, 0.1);
}

.flatpickr-day.disabled,
.flatpickr-day.disabled:hover {
    color: var(--color-text-muted);
    background: transparent;
}

/* Input Flatpickr */
.date-picker-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-deepest);
    border: 1px solid var(--bg-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.date-picker-input::placeholder {
    color: var(--color-text-muted);
}

.date-picker-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Calendar container - positions Flatpickr inside the modal */
.date-picker-calendar {
    position: relative;
    z-index: 10;
    margin-top: 10px;
}

.date-picker-calendar .flatpickr-calendar {
    position: static !important;
    transform: none !important;
}

/* Responsive mobile */
@media (max-width: 480px) {
    .map-filters-btn {
        bottom: 12px;
        left: 12px;
        padding: 8px 14px;
        font-size: 0.85rem;
    }

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

    .map-filters-modal {
        width: calc(100% - 24px);
        max-height: 90vh;
    }

    .map-filters-modal .modal-header,
    .map-filters-modal .modal-body,
    .map-filters-modal .modal-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .game-chips,
    .league-chips {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .game-chip,
    .league-chip {
        padding: 10px 8px;
        font-size: 0.85rem;
    }

    .map-filters-modal .modal-footer {
        flex-direction: column;
    }

    .map-filters-modal .btn-secondary,
    .map-filters-modal .btn-primary {
        width: 100%;
    }
}

/* ========================================
   SPOT POPUP (Story 5.3)
   ======================================== */

.spot-popup-container .leaflet-popup-content-wrapper {
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background: var(--bg-dark);
}

.spot-popup-container .leaflet-popup-content {
    margin: 0;
    border-radius: var(--radius-xl);
    padding: 0;
    min-width: 180px;
}

.spot-popup {
    padding: 12px 16px;
    font-size: 0.9rem;
}

.spot-popup .popup-date {
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.spot-popup .popup-league {
    font-weight: 500;
    color: var(--color-text-muted);
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.spot-popup .popup-teams {
    color: var(--color-text-muted);
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.spot-popup .popup-details-btn {
    display: inline-block;
    padding: 6px 12px;
    background: var(--color-primary);
    color: var(--bg-deepest);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
}

.spot-popup .popup-details-btn:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px var(--color-primary-glow);
}

.spot-popup .popup-details-btn:active {
    transform: translateY(0);
}

.leaflet-popup-close-button {
    padding: 4px 8px;
    font-size: 18px;
    line-height: 1;
    color: var(--color-primary);
    font-weight: bold;
}

.leaflet-popup-close-button:hover {
    color: var(--color-primary-hover);
}

/* ========================================
   HOME PAGE LAYOUT (Desktop Sidebar)
   ======================================== */

/* Page Container */
.home-page {
    min-height: calc(100vh - 120px);
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 0.5rem;
}

/* Main Layout - Flex container */
.home-layout {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

/* Mobile First: Stacked layout */
.home-map-section {
    flex: 1;
    min-height: 60vh;
    position: relative;
}

.map-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.leaflet-map {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    border-radius: 0;
    transition: filter var(--transition-slow);
}

/* ========================================
   MAP LOADING OVERLAY (Blur + Spinner)
   ======================================== */

.map-wrapper.map-loading .leaflet-map {
    filter: blur(4px);
    pointer-events: none;
}

.map-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(10, 14, 20, 0.3);
    border-radius: var(--radius-lg);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.map-loader.active {
    opacity: 1;
    visibility: visible;
}

.map-loader-spinner {
    width: 50px;
    height: 50px;
    color: var(--color-primary);
    animation: pulse 1.5s ease-in-out infinite;
}

.map-loader-spinner svg {
    width: 100%;
    height: 100%;
}

.map-loader-spinner circle {
    stroke: currentColor;
    stroke-linecap: round;
}

.map-loader-text {
    margin-top: var(--space-4);
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.map-settings-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: var(--bg-dark);
    border: 1px solid var(--bg-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.map-settings-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Spots Counter on Map - Compact, top-left position */
.spots-counter {
    position: absolute !important;
    top: 16px !important;
    left: 16px !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 1000;
    background: rgba(10, 14, 20, 0.85);
    border: 1px solid var(--bg-border);
    padding: 4px 10px !important;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    font-size: 0.7rem;
    line-height: 1 !important;
    height: auto !important;
    min-height: auto !important;
    display: inline-block;
}

.spots-counter:hover {
    border-color: var(--color-primary);
}

.counter-text {
    color: var(--color-text-muted);
    font-size: 0.7rem !important;
    font-weight: 500;
    line-height: 1 !important;
    display: inline;
    margin: 0 !important;
    padding: 0 !important;
}

/* ========================================
   SIDEBAR (Desktop Only)
   ======================================== */

.home-sidebar {
    display: none; /* Hidden on mobile */
    flex-direction: column;
    gap: var(--space-6);
    width: 100%;
}

/* Sidebar Spot Card */
.sidebar-spot-card {
    background: var(--bg-dark);
    border: 1px solid var(--bg-border);
    border-radius: 0;
    transition: border-color var(--transition-normal);
}

.sidebar-spot-card:hover {
    border-color: var(--color-primary);
}

/* Empty State */
.sidebar-spot-empty {
    padding: var(--space-8) var(--space-6);
    text-align: center;
    color: var(--color-text-muted);
}

.empty-state-icon {
    color: var(--color-text-dark);
    margin-bottom: var(--space-4);
}

.empty-state-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-muted);
    margin-bottom: var(--space-2);
}

.empty-state-hint {
    font-size: 0.85rem;
    color: var(--color-text-dark);
}

/* Sidebar Spot Content */
.sidebar-spot-content {
    padding: 10px var(--space-6);
    padding-bottom: 20px;
    position: relative;
    /* S'adapte au contenu */
    min-height: auto;
    height: auto;
}

/* Spot Title */
.spot-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-3);
    line-height: 1.3;
}

/* Spot Date */
.spot-date {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--space-4);
}

.spot-date svg {
    flex-shrink: 0;
}

/* Spot Host */
.spot-host {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--space-2);
}

.spot-host svg {
    flex-shrink: 0;
}

.host-name {
    color: var(--color-text);
}

/* Spot Stats (intéressés / y vont) */
.spot-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2);
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-bottom: var(--space-5);
}

.stat-item {
    color: var(--color-text-muted);
}

.stat-separator {
    color: var(--color-text-dark);
}

/* DETAILS Button - sort de la div parent avec position absolute */
.btn-spot-details {
    display: inline-block;
    padding: 5px 20px;
    background: var(--color-primary);
    color: var(--bg-deepest);
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
    text-decoration: none;
    /* Position absolu pour sortir du flux et ne pas être compté dans la hauteur du parent */
    position: absolute;
    bottom: -15px;
    left: var(--space-6);
    z-index: 1;
}

.btn-spot-details:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--color-primary-glow);
}

/* Legacy styles (kept for compatibility) */
.spot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
}

.spot-type-badge {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--bg-elevated);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.type-icon {
    font-size: 1rem;
}

.spot-game-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
}

.spot-game-logo img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.spot-divider {
    height: 1px;
    background: var(--bg-border);
    margin: var(--space-4) 0;
}

.spot-interested {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--space-3);
}

.host-avatar,
.interested-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
    color: var(--color-text-dark);
}

.spot-teams {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin: var(--space-4) 0;
}

.team-badge-mini {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    background: var(--bg-elevated);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.team-badge-mini img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* ========================================
   MATCH SCHEDULE SECTION
   ======================================== */

.sidebar-match-schedule {
    background: var(--bg-dark);
    border: 1px solid var(--bg-border);
    border-radius: 0;
    padding: var(--space-6);
    transition: border-color var(--transition-normal);
}

.sidebar-match-schedule:hover {
    border-color: var(--color-primary);
}

.match-schedule-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-4);
}

.match-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.match-item {
    background: var(--bg-elevated);
    border: 1px solid var(--bg-border);
    border-radius: 0;
    padding: var(--space-3) var(--space-4);
    transition: all var(--transition-normal);
}

.match-item:hover {
    border-color: var(--color-primary);
    background: var(--bg-dark);
}

.match-teams {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-1);
}

.match-team {
    font-weight: 600;
    color: var(--color-text);
}

.match-vs {
    font-size: 0.75rem;
    color: var(--color-text-dark);
    text-transform: uppercase;
}

.match-time {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.btn-create-for-match {
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin: var(--space-3) 0 0;
    padding: 10px 16px;
    padding-bottom: 12px;
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-create-for-match:hover {
    background: var(--color-primary);
    color: var(--bg-deepest);
}

.btn-create-for-match svg {
    flex-shrink: 0;
}

/* ========================================
   COORDINATE CONTROLS (Creation Mode)
   ======================================== */

.coordinate-controls {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-3);
    z-index: 1000;
}

.btn-coordinate {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-coordinate.btn-cancel {
    background: var(--bg-dark);
    color: var(--color-text);
    border: 1px solid var(--bg-border);
}

.btn-coordinate.btn-cancel:hover {
    background: var(--bg-elevated);
    border-color: var(--color-error);
    color: var(--color-error);
}

.btn-coordinate.btn-validate {
    background: var(--color-primary);
    color: var(--bg-deepest);
    border: none;
}

.btn-coordinate.btn-validate:hover {
    background: var(--color-primary-hover);
    box-shadow: 0 4px 12px var(--color-primary-glow);
}

/* ========================================
   DESKTOP LAYOUT (1024px+)
   ======================================== */

@media (min-width: 1024px) {
    /* Remove padding from home-page on desktop for full-width layout */
    .home-page {
        padding: 0;
    }

    /* Remove padding from header-container on desktop */
    .header-container {
        padding: 0;
    }

    .home-layout {
        flex-direction: row;
        gap: 0;
        padding: 0;
        height: calc(100vh - 150px);
    }

    /* Map Section - ~70% width */
    .home-map-section {
        flex: 1;
        min-height: 0;
    }

    .leaflet-map {
        height: 100%;
        min-height: 500px;
    }

    /* Sidebar - ~30% width, max 440px */
    .home-sidebar {
        display: flex;
        width: 440px;
        flex-shrink: 0;
        overflow-y: auto;
        border-left: 4px solid var(--bg-border);
        padding-top: var(--space-4);
    }

    /* Custom scrollbar for sidebar */
    .home-sidebar::-webkit-scrollbar {
        width: 6px;
    }

    .home-sidebar::-webkit-scrollbar-track {
        background: var(--bg-dark);
        border-radius: 3px;
    }

    .home-sidebar::-webkit-scrollbar-thumb {
        background: var(--bg-border);
        border-radius: 3px;
    }

    .home-sidebar::-webkit-scrollbar-thumb:hover {
        background: var(--color-text-dark);
    }

    /* Sidebar elements padding - 20px left/right for visual breathing room */
    .sidebar-spot-card,
    .sidebar-match-schedule {
        margin: 0 20px;
    }

    /* Adjust map controls position */
    .map-settings-btn {
        top: 20px;
        right: 20px;
    }

    /* spots-counter stays in same position on desktop */
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.hidden {
    display: none !important;
}

/* ========================================
   BOTTOM NAVIGATION BAR (Mobile Only)
   ======================================== */

.bottom-navbar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-dark);
    border-top: 1px solid var(--bg-border);
    z-index: 999;
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--color-text-dark);
    text-decoration: none;
    flex: 1;
    height: 100%;
    transition: color var(--transition-fast);
    cursor: pointer;
}

.bottom-nav-item svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    transition: stroke var(--transition-fast);
}

.bottom-nav-item span {
    font-size: 12px;
    font-weight: 500;
}

.bottom-nav-item:hover,
.bottom-nav-item:focus {
    color: var(--color-text-muted);
}

.bottom-nav-item.active {
    color: var(--color-primary);
}

.bottom-nav-item.active svg {
    stroke: var(--color-primary);
}

/* Hide bottom navbar on desktop (768px and above) */
@media (min-width: 768px) {
    .bottom-navbar {
        display: none;
    }
}

/* Add padding to body on mobile to account for bottom navbar */
@media (max-width: 767px) {
    body {
        padding-bottom: 60px;
    }
}


/* Profile Viewing Parties (Story 4.4) */
.viewing-parties-toggle {
    margin-bottom: 1rem;
    text-align: right;
}

.parties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.party-card {
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 0.5rem;
    padding: 1rem;
    background: var(--card-bg, #fff);
    transition: all 0.2s ease;
}

.party-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.party-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.party-card .league-badge {
    background: var(--primary-bg, #3b82f6);
    color: var(--primary-text, #fff);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.party-card .event-date {
    font-size: 0.875rem;
    color: var(--text-muted, #6b7280);
}

.party-card .card-body h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.party-card .card-body p {
    margin: 0.25rem 0;
    font-size: 0.875rem;
    color: var(--text-muted, #6b7280);
}

.party-card .card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.party-card .card-actions .btn {
    flex: 1;
    min-width: 80px;
}

.viewing-parties-section {
    margin-bottom: 2rem;
}

.viewing-parties-section.archived {
    opacity: 0.8;
}

.viewing-parties-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color, #111827);
}

.viewing-parties-section.confirmed h3 {
    color: var(--success-color, #10b981);
}

.viewing-parties-section.interested h3 {
    color: var(--primary-color, #3b82f6);
}

.viewing-parties-section.archived h3 {
    color: var(--text-muted, #6b7280);
}

.parties-grid .empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: var(--text-muted, #6b7280);
}

/* Archived Party Card (Story 4.5) */
.party-card.archived-card {
    background: var(--card-bg-muted, #f9fafb);
    border-color: var(--border-color-muted, #e5e7eb);
    opacity: 0.85;
}

.party-card.archived-card:hover {
    transform: none;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.05);
}

.party-card.archived-card .archive-badge {
    background: var(--text-muted, #6b7280);
    color: var(--card-bg, #fff);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.party-card.archived-card .card-body h4 {
    color: var(--text-muted, #6b7280);
}

.party-card.archived-card .card-actions .btn {
    pointer-events: auto;
}

/* Mobile - Archived Parties */
@media (max-width: 768px) {
    .parties-grid {
        grid-template-columns: 1fr;
    }

    .party-card.archived-card {
        padding: 0.875rem;
    }
}

/* ========================================
   FILTER BUTTON LOADING STATE
   ======================================== */

.map-filters-modal .btn-primary.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.map-filters-modal .btn-primary.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    border: 2px solid var(--bg-deepest, #000);
    border-right-color: transparent;
    border-radius: 50%;
    animation: filter-spin 0.6s linear infinite;
}

.map-filters-modal .btn-primary.loading .count {
    visibility: hidden;
}

@keyframes filter-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

