/* Marseille Tracker - Styles des composants */

/* Cartes de projet - Système responsive automatique */
#projectCards {
    display: grid;
    /* Utilise auto-fit avec une largeur minimum de 280px pour les cartes */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    /* Supprimer flex: 1 et overflow pour utiliser le scroll global du panneau */
    overflow: visible;
}

/* Permettre l'overflow quand il y a une carte latest-project */
#projectCards.has-latest-project {
    overflow: visible;
    padding: 0;
    /* Suppression du padding maintenant que les cartes n'ont plus de marge */
    margin: 0;
    /* Suppression de la marge négative */
}

/* Supprimer les anciennes règles spécifiques aux classes narrow/wide */
/* Ces règles ne sont plus nécessaires avec le système auto-fit */

.project-card {
    background: radial-gradient(ellipse at top left, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 0;
    border: 1px solid rgba(148, 163, 184, 0.2);
    position: relative;
    transition: all 0.3s ease;
    height: fit-content;
    cursor: pointer;
    /* Largeur minimum pour assurer une bonne lisibilité */
    min-width: 260px;
}

.project-card.new-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s forwards;
}

.project-card.highlighted {
    border: 2px solid #60a5fa;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.2), 0 8px 32px rgba(96, 165, 250, 0.15);
    background: radial-gradient(ellipse at top left, rgba(59, 130, 246, 0.3) 0%, rgba(30, 41, 59, 0.9) 100%);
}

.project-card.selected {
    border: 2px solid #60a5fa;
    box-shadow: 0 8px 32px rgba(96, 165, 250, 0.3);
    transform: translateY(-2px);
    background: radial-gradient(ellipse at top left, rgba(59, 130, 246, 0.2) 0%, rgba(30, 41, 59, 0.9) 100%);
}

.project-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(148, 163, 184, 0.3);
    transform: translateY(-2px);
    border-color: rgba(148, 163, 184, 0.4);
}

/* Réduire l'effet hover pour les cartes latest-project */
.project-card.latest-project:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15), 0 0 0 8px var(--pulse-color, rgba(96, 165, 250, 0.2));
    transform: scale(1.02) translateY(-2px);
    /* Scale réduit pour maintenir l'alignement */
    border-color: var(--border-color-intense, #3b82f6);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cartes groupées */
.project-card.group-card {
    border-left: 4px solid #60a5fa;
}

.project-card .group-elements {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 12px;
}

.project-card .group-elements strong {
    color: #cbd5e1;
    font-size: 13px;
}

.project-card .group-elements ul {
    margin: 5px 0 0 0;
    padding-left: 15px;
    list-style: none;
}

.project-card .group-elements li {
    margin: 2px 0;
    color: #94a3b8;
    font-size: 11px;
    position: relative;
}

.project-card .group-elements li:before {
    content: "•";
    color: #60a5fa;
    margin-right: 8px;
}

.project-card img {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
    background: rgba(148, 163, 184, 0.12);
    border-radius: 6px;
    margin-bottom: 15px;
}

/* Overlay de détail d'un projet (clic sur la carte) */
.project-detail-overlay {
    position: fixed;
    left: 24px;
    right: 24px;
    top: 18px;
    max-width: 760px;
    margin: 0 auto;
    max-height: 70vh;
    background: linear-gradient(180deg, rgba(42, 74, 128, 0.78) 0%, rgba(26, 52, 96, 0.82) 100%);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(109, 170, 255, 0.45);
    border-radius: 16px;
    padding: 18px 20px 24px;
    overflow-y: auto;
    z-index: 2400;
    backdrop-filter: blur(18px) saturate(120%);
    border: 1px solid rgba(109, 170, 255, 0.6);
}

.project-detail-overlay.map-overlay {
    left: 16px;
    right: auto;
    bottom: 16px;
    top: auto;
    max-width: 360px;
    max-height: 52vh;
    width: calc(100% - 200px);
    margin: 0;
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(148, 163, 184, 0.2);
}

.info-panel.has-detail-overlay {
    overflow: visible;
}

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

.project-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.project-detail-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(148, 163, 184, 0.14);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 999px;
    color: #e2e8f0;
    font-size: 12px;
    line-height: 1;
}

.project-detail-tag.subtle {
    color: #cbd5e1;
    border-color: rgba(148, 163, 184, 0.18);
}

.project-detail-title {
    font-size: 22px;
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 8px 0;
}

.project-detail-photo {
    margin: 8px 0 12px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
    background: rgba(148, 163, 184, 0.12);
}

.project-detail-photo img {
    width: 100%;
    height: auto;
    max-height: 320px;
    display: block;
    object-fit: contain;
}

.project-detail-photos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin: 8px 0 12px;
}

.project-detail-photos .project-detail-photo {
    margin: 0;
}

.project-detail-description {
    color: #e2e8f0;
    line-height: 1.6;
    margin: 0;
    font-size: 15px;
}

.project-detail-group {
    margin-top: 14px;
    padding: 12px;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 12px;
}

.project-detail-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 8px;
}

.project-detail-group-title {
    font-weight: 600;
    color: #e2e8f0;
    font-size: 14px;
}

.project-detail-group-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-detail-group-list li {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.project-detail-group-list li.is-current {
    border-color: rgba(96, 165, 250, 0.8);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
}

.project-detail-group-name {
    color: #f8fafc;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 14px;
}

.project-detail-group-desc {
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.5;
}

.project-detail-close {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.project-detail-close:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(148, 163, 184, 0.35);
}

.project-detail-close:active {
    transform: translateY(1px);
}

.project-card h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #f1f5f9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.project-card .type {
    display: inline-block;
    padding: 4px 12px;
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.3) 0%, rgba(30, 64, 175, 0.2) 100%);
    color: #93c5fd;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 10px;
    font-weight: 500;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.project-card .type.education {
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.3) 0%, rgba(29, 78, 216, 0.2) 100%);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.3);
}

.project-card .type.transport {
    background: radial-gradient(ellipse, rgba(16, 185, 129, 0.3) 0%, rgba(4, 120, 87, 0.2) 100%);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.3);
}

.project-card .type.logement {
    background: radial-gradient(ellipse, rgba(245, 158, 11, 0.3) 0%, rgba(217, 119, 6, 0.2) 100%);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.3);
}

.project-card .type.sante {
    background: radial-gradient(ellipse, rgba(239, 68, 68, 0.3) 0%, rgba(220, 38, 38, 0.2) 100%);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.3);
}

.project-card .type.securite {
    background: radial-gradient(ellipse, rgba(139, 92, 246, 0.3) 0%, rgba(124, 58, 237, 0.2) 100%);
    color: #a78bfa;
    border-color: rgba(139, 92, 246, 0.3);
}

.project-card .type.justice {
    background: radial-gradient(ellipse, rgba(6, 182, 212, 0.3) 0%, rgba(8, 145, 178, 0.2) 100%);
    color: #67e8f9;
    border-color: rgba(6, 182, 212, 0.3);
}

.project-card .type.emploi {
    background: radial-gradient(ellipse, rgba(132, 204, 22, 0.3) 0%, rgba(101, 163, 13, 0.2) 100%);
    color: #a3e635;
    border-color: rgba(132, 204, 22, 0.3);
}

.project-card .type.port {
    background: radial-gradient(ellipse, rgba(14, 165, 233, 0.3) 0%, rgba(2, 132, 199, 0.2) 100%);
    color: #38bdf8;
    border-color: rgba(14, 165, 233, 0.3);
}

.project-card .type.cinema {
    background: radial-gradient(ellipse, rgba(236, 72, 153, 0.3) 0%, rgba(219, 39, 119, 0.2) 100%);
    color: #f472b6;
    border-color: rgba(236, 72, 153, 0.3);
}

/* Labels de statut des projets */
.project-card .status-label {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 11px;
    margin-bottom: 8px;
    margin-left: 8px;
    font-weight: 500;
    border: 1px solid;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-card .status-label.status-realized {
    background: radial-gradient(ellipse, rgba(34, 197, 94, 0.25) 0%, rgba(21, 128, 61, 0.15) 100%);
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.4);
}

.project-card .status-label.status-ongoing {
    background: radial-gradient(ellipse, rgba(251, 146, 60, 0.25) 0%, rgba(194, 65, 12, 0.15) 100%);
    color: #fdba74;
    border-color: rgba(251, 146, 60, 0.4);
}

.project-card .status-label.status-planned {
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.25) 0%, rgba(30, 64, 175, 0.15) 100%);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.4);
}

.project-card .status-label.status-mixed {
    background: radial-gradient(ellipse, rgba(129, 140, 248, 0.25) 0%, rgba(67, 56, 202, 0.15) 100%);
    color: #a5b4fc;
    border-color: rgba(129, 140, 248, 0.4);
}

.project-card .description {
    font-size: 13px;
    line-height: 1.5;
    color: #cbd5e1;
}

/* Statistiques - masquées sur desktop, intégrées dans le header */
.stats-container {
    display: none;
}

.stat-card {
    background: radial-gradient(circle at top, rgba(51, 65, 85, 0.6) 0%, rgba(30, 41, 59, 0.8) 100%);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.stat-card .number {
    font-size: 20px;
    font-weight: 300;
    color: #93c5fd;
    margin-bottom: 3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-card .label {
    font-size: 10px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Poignée de redimensionnement */
.resize-handle {
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 100%;
    cursor: ew-resize;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.3) 50%, rgba(59, 130, 246, 0.1) 100%);
    transition: background 0.2s ease;
    z-index: 10;
}

.resize-handle::after {
    content: 'Glisser pour redimensionner librement\aDouble-clic pour taille par défaut\aLes colonnes s\'adaptent automatiquement';
    white-space: pre;
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.95);
    color: #e2e8f0;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1.4;
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
    min-width: 180px;
}

.resize-handle:hover::after {
    opacity: 1;
}

.resize-handle:hover {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.3) 0%, rgba(59, 130, 246, 0.6) 50%, rgba(59, 130, 246, 0.3) 100%);
}

.resize-handle.resizing {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.5) 0%, rgba(59, 130, 246, 0.8) 50%, rgba(59, 130, 246, 0.5) 100%);
}

.resize-handle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3px;
    height: 30px;
    background: rgba(59, 130, 246, 0.4);
    border-radius: 2px;
    transition: all 0.2s ease;
}

.resize-handle:hover::before {
    background: rgba(59, 130, 246, 0.8);
    height: 40px;
}

.resize-handle.resizing::before {
    background: rgba(59, 130, 246, 1);
    height: 50px;
    width: 4px;
}

/* Message d'instruction initial */
.initial-instructions {
    padding: 30px 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
}

.instruction-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(14deg);
    }

    75% {
        transform: rotate(-14deg);
    }
}

.initial-instructions h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0 0 16px 0;
}

.instruction-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #e2e8f0;
    margin-bottom: 24px;
}

.instruction-text strong {
    color: #3b82f6;
    font-weight: 600;
}

.instruction-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    align-items: center;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.feature-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.instruction-cta {
    margin-top: 24px;
    padding: 20px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
}

.cta-arrow {
    font-size: 1.5rem;
    margin-bottom: 8px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-8px);
    }

    60% {
        transform: translateY(-4px);
    }
}

/* === NAVIGATION TABS === */
.navigation-tabs {
    display: flex;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 10px;
    padding: 4px;
    margin: 15px 0;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.nav-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.nav-tab:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #cbd5e1;
}

.nav-tab.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.tab-icon {
    font-size: 16px;
    opacity: 0.8;
}

.nav-tab.active .tab-icon {
    opacity: 1;
}

.tab-label {
    font-weight: inherit;
}

/* === THEMATIC VIEW === */
.thematic-view {
    margin: 15px 0;
    padding: 15px;
    background: rgba(15, 23, 42, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    /* Garder la vue compacte pour laisser plus d'espace aux cartes */
    flex-shrink: 0;
    overflow: visible;
}

.thematic-view.hidden {
    display: none;
}

.thematic-header {
    text-align: center;
    margin-bottom: 12px;
}

.thematic-header h3 {
    color: #e2e8f0;
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 600;
}

.thematic-header p {
    color: #94a3b8;
    margin: 0;
    font-size: 13px;
    line-height: 1.3;
}

.thematic-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
    /* S'assurer qu'il n'y a pas de contraintes de hauteur */
    max-height: none;
    overflow: visible;
}

.thematic-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 6px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 60px;
    justify-content: center;
}

.thematic-button:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.thematic-button.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

/* Couleurs spécifiques par thématique pour les boutons actifs */
.thematic-button.active[data-theme="Éducation"] {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-color: #3b82f6;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.thematic-button.active[data-theme="Transport"] {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    border-color: #10b981;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.thematic-button.active[data-theme="Logement"] {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-color: #f59e0b;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

.thematic-button.active[data-theme="Santé"] {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #ef4444;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

.thematic-button.active[data-theme="Sécurité"] {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border-color: #8b5cf6;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

.thematic-button.active[data-theme="Justice"] {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    border-color: #06b6d4;
    box-shadow: 0 4px 16px rgba(6, 182, 212, 0.4);
}

.thematic-button.active[data-theme="Emploi"] {
    background: linear-gradient(135deg, #84cc16 0%, #65a30d 100%);
    border-color: #84cc16;
    box-shadow: 0 4px 16px rgba(132, 204, 22, 0.4);
}

.thematic-button.active[data-theme="Port"] {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    border-color: #0ea5e9;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.4);
}

.thematic-button.active[data-theme="Cinéma"] {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    border-color: #ec4899;
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.4);
}

.thematic-button.all-themes:hover:not(.active) {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.thematic-button.all-themes.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
    color: white;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.thematic-icon {
    font-size: 20px;
    opacity: 0.9;
}

.thematic-button.active .thematic-icon {
    opacity: 1;
}

.thematic-label {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.1;
}

.thematic-count {
    font-size: 10px;
    opacity: 0.7;
    font-weight: 400;
    margin-top: 1px;
}

.thematic-button.active .thematic-count {
    opacity: 0.9;
}

.thematic-stats {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    /* Eviter que les stats prennent trop de place */
    flex-shrink: 0;
}

.thematic-stat {
    text-align: center;
}

.thematic-stat .number {
    font-size: 20px;
    font-weight: 700;
    color: #60a5fa;
    margin-bottom: 4px;
}

.thematic-stat .label {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .navigation-tabs {
        margin: 8px 0;
        padding: 3px;
    }

    .nav-tab {
        padding: 8px 10px;
        font-size: 12px;
        gap: 4px;
    }

    .tab-icon {
        font-size: 13px;
    }

    .thematic-view {
        margin: 10px 0;
        padding: 12px;
    }

    .thematic-header {
        margin-bottom: 8px;
    }

    .thematic-header h3 {
        font-size: 15px;
        margin: 0 0 4px 0;
    }

    .thematic-header p {
        font-size: 12px;
    }

    .thematic-buttons {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 8px;
        margin-bottom: 10px;
    }

    .thematic-button {
        padding: 8px 4px;
        min-height: 50px;
        gap: 3px;
    }

    .thematic-icon {
        font-size: 16px;
    }

    .thematic-label {
        font-size: 11px;
        line-height: 1.0;
    }

    .thematic-count {
        font-size: 9px;
        margin-top: 0;
    }

    .thematic-stats {
        gap: 15px;
        padding-top: 8px;
    }

    .thematic-stat .number {
        font-size: 16px;
    }

    .thematic-stat .label {
        font-size: 11px;
    }
}

/* Styles pour les cartes de vagues annuelles */
.wave-card {
    border-left: 4px solid #3b82f6;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(59, 130, 246, 0.02) 100%);
}

.wave-card .wave-status {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 12px;
    margin-left: 8px;
}

.wave-elements {
    margin-top: 16px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.wave-elements>strong {
    display: block;
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
    position: relative;
}

.wave-elements>strong::before {
    content: "";
    margin-right: 0;
    font-size: 1rem;
}

.wave-year-group {
    margin-bottom: 16px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(51, 65, 85, 0.4) 0%, rgba(30, 41, 59, 0.6) 100%);
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    backdrop-filter: blur(5px);
}

.wave-year-group:last-child {
    margin-bottom: 0;
}

.wave-year-group strong {
    color: #f1f5f9;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.wave-year-group .year-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 8px;
    min-width: 45px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.wave-year-group .new-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981, #047857);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 6px;
    margin-left: 8px;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
    animation: gentlePulse 2s ease-in-out infinite;
}

.wave-year-group .new-badge::before {
    content: "✨";
    margin-right: 3px;
    font-size: 0.65rem;
}

@keyframes gentlePulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.wave-year-group ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wave-year-group li {
    margin: 6px 0;
    font-size: 0.85rem;
    color: #cbd5e1;
    padding-left: 20px;
    position: relative;
    line-height: 1.4;
}

.wave-year-group li::before {
    content: "▸";
    color: #60a5fa;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* Animation spéciale pour les cartes de vagues */
.wave-card.new-card {
    animation: waveCardAppear 0.6s ease-out;
}

@keyframes waveCardAppear {
    0% {
        opacity: 0;
        transform: translateX(-20px) scale(0.95);
    }

    50% {
        opacity: 0.7;
        transform: translateX(5px) scale(1.02);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Visite guidée thématique - accueil */
.guided-welcome {
    background: radial-gradient(ellipse at top left, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.97) 100%);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 14px;
    padding: 12px 14px 12px;
    margin: 6px 0 14px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
    position: sticky;
    bottom: 0;
    z-index: 5;
}

.guided-welcome-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 6px 0;
}

.guided-welcome-header .subtitle {
    color: #cbd5e1;
    margin: 0 0 10px 0;
}

.guided-welcome-text {
    color: #d1d5db;
    line-height: 1.4;
    margin-bottom: 8px;
}

.guided-welcome-list {
    list-style: none;
    padding: 0;
    margin: 0 0 8px 0;
    color: #cbd5e1;
}

.guided-welcome-list li {
    position: relative;
    padding-left: 18px;
    margin: 4px 0;
}

.guided-welcome-list li::before {
    content: '•';
    color: #60a5fa;
    position: absolute;
    left: 0;
}

.guided-welcome-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 8px;
}

.guided-welcome .start-button {
    padding: 12px 20px;
    font-size: 15px;
}

.guided-hero {
    margin: 12px 0 10px;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
    min-height: 170px;
}

.guided-hero-image {
    display: block;
    width: 100%;
    height: 210px;
    max-height: 230px;
    object-fit: cover;
    object-position: center 75%;
}

.guided-hero-intro {
    color: #d1d5db;
    line-height: 1.6;
    margin: 8px 0 12px 0;
    max-height: none;
    overflow: visible;
    padding-right: 0;
    font-size: 16px;
}

/* Visite guidée thématique */
.guided-intro {
    display: none;
    background: radial-gradient(ellipse at top left, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.97) 100%);
    border: 2px solid var(--guided-accent, #3b82f6);
    border-radius: 14px;
    padding: 18px 18px 16px;
    margin-bottom: 16px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(59, 130, 246, 0.1);
}

body.guided-mode .guided-intro {
    display: block;
}

.guided-topline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.guided-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #e2e8f0;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.guided-chip.accent {
    background: var(--guided-accent, #3b82f6);
    color: #0b1021;
    border-color: rgba(255, 255, 255, 0.15);
}

.guided-chip.muted {
    opacity: 0.65;
}

.guided-title {
    font-size: 24px;
    font-weight: 700;
    color: #f8fafc;
    margin: 4px 0 8px 0;
    line-height: 1.3;
}

.guided-description {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 14px;
}

.guided-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin: 10px 0 12px;
}

.guided-metric {
    background: rgba(51, 65, 85, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 10px;
    padding: 10px 12px;
}

.metric-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #94a3b8;
    margin-bottom: 4px;
}

.metric-value {
    font-size: 16px;
    font-weight: 700;
    color: #e2e8f0;
}

.guided-chart-kicker {
    font-size: 11px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 6px;
}

.guided-chart {
    margin: 12px 0 18px;
    padding: 14px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(30, 41, 59, 0.85));
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.guided-chart.is-hidden {
    display: none;
}

.guided-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.guided-chart-title {
    font-size: 14px;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: 0.1px;
}

.guided-chart-source {
    color: #a5b4fc;
    font-size: 12px;
    text-decoration: none;
    opacity: 0.85;
}

.guided-chart-source:hover {
    text-decoration: underline;
    opacity: 1;
}

.guided-chart-body {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 0 16px;
    box-sizing: border-box;
}

.guided-chart-source-row {
    margin-top: 10px;
    display: flex;
    justify-content: flex-start;
}

.guided-chart-bars {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(20px, 1fr);
    align-items: end;
    gap: 5px;
    height: 150px;
    position: relative;
    padding: 0 64px 0 40px;
    width: 100%;
    box-sizing: border-box;
}

.guided-chart-bar {
    position: relative;
    border-radius: 6px 6px 4px 4px;
    background: linear-gradient(180deg, #a3e635, #4d7c0f);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.guided-chart-bar:hover {
    transform: translateY(-3px);
    opacity: 0.95;
}

.guided-chart-bar::after {
    content: '';
}

.guided-chart-bar::before {
    content: '';
}

.guided-chart-axis {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(20px, 1fr);
    gap: 5px;
    margin-top: 16px;
    color: #cbd5e1;
    font-size: 11px;
    letter-spacing: 0.2px;
    padding: 0 64px 0 40px;
    width: 100%;
    box-sizing: border-box;
}

.guided-chart-y-axis {
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.3), rgba(148, 163, 184, 0));
}

.guided-chart-y-ticks {
    position: absolute;
    left: 0;
    width: 32px;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #cbd5e1;
    font-size: 10px;
    pointer-events: none;
    text-align: right;
}

.guided-chart-tick {
    text-align: center;
    white-space: nowrap;
}

.guided-chart-tooltip {
    position: absolute;
    top: -10px;
    transform: translateX(-50%) translateY(-100%);
    background: rgba(15, 23, 42, 0.92);
    color: #f8fafc;
    font-size: 11px;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    pointer-events: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.guided-chart-tooltip.is-hidden {
    display: none;
}

.deal-chart .guided-chart-bars {
    display: block;
    padding: 0 10px;
    height: auto;
}

.deal-chart .guided-chart-axis {
    display: none;
}

.deal-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.deal-row {
    display: grid;
    grid-template-columns: 52px 1fr;
    align-items: center;
    column-gap: 10px;
    padding-left: 4px;
}

.deal-year {
    width: 52px;
    color: #cbd5e1;
    font-weight: 600;
    font-size: 12px;
}

.deal-bar {
    position: relative;
    height: 28px;
    border-radius: 7px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 10px 20px rgba(0,0,0,0.2);
    min-width: 120px;
    overflow: hidden;
}

.deal-total {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    color: #0f172a;
    font-weight: 800;
    font-size: 12px;
    text-shadow: 0 1px 2px rgba(255,255,255,0.25);
}

.justice-chart {
    margin-top: 14px;
}

.justice-chart-body {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

.justice-chart-body svg {
    width: 100%;
    height: auto;
    aspect-ratio: 3.6 / 1;
    min-height: 160px;
    max-height: 260px;
    shape-rendering: geometricPrecision;
}

.justice-legend {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: #cbd5e1;
    font-size: 11px;
}

.justice-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    display: inline-block;
}

.justice-dot.magistrats { background: linear-gradient(90deg, #22c55e, #16a34a); }
.justice-dot.jugements { background: linear-gradient(90deg, #60a5fa, #1d4ed8); }

.justice-grid line {
    stroke: rgba(148, 163, 184, 0.16);
    stroke-width: 0.9;
    stroke-dasharray: 3 3;
}

.justice-line {
    fill: none;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.justice-line.magistrats { filter: drop-shadow(0 2px 4px rgba(22, 163, 74, 0.25)); }
.justice-line.jugements { filter: drop-shadow(0 2px 4px rgba(29, 78, 216, 0.25)); }

.justice-point {
    stroke: #0b1224;
    stroke-width: 1;
}

.justice-point.magistrats { fill: #22c55e; }
.justice-point.jugements { fill: #60a5fa; }

.justice-label {
    font-size: 10px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

.justice-label.magistrats { fill: #22c55e; }
.justice-label.jugements { fill: #93c5fd; }

.justice-x {
    fill: #cbd5e1;
    font-size: 10px;
    text-anchor: middle;
}

.justice-y {
    font-size: 10px;
    fill: #cbd5e1;
}

.justice-y.jugements { fill: #93c5fd; }
.justice-y.magistrats { fill: #86efac; }

.justice-grid-line {
    stroke: rgba(148, 163, 184, 0.16);
    stroke-width: 1;
    stroke-dasharray: 3 3;
}

.guided-edu-chart {
    margin: 12px 0 18px;
    padding: 14px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(30, 41, 59, 0.85));
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.guided-edu-legend {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    font-size: 11px;
}

.guided-edu-legend-label {
    margin-right: 6px;
}

.guided-edu-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
}

.guided-edu-dot.year-2022 {
    background: #bfdbfe;
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.guided-edu-dot.year-2024 {
    background: #1d4ed8;
    border: 1px solid rgba(30, 64, 175, 0.6);
}

.guided-edu-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.guided-edu-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.guided-edu-label {
    flex: 0 0 46%;
    color: #e2e8f0;
    font-size: 12px;
    line-height: 1.3;
}

.guided-edu-track {
    position: relative;
    flex: 1;
    height: 18px;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.12), rgba(148, 163, 184, 0.06));
    overflow: hidden;
}

.guided-edu-connector {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 3px;
    background: rgba(148, 163, 184, 0.5);
    border-radius: 2px;
}

.guided-edu-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.guided-edu-marker.year-2022 {
    background: #bfdbfe;
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.guided-edu-marker.year-2024 {
    background: #1d4ed8;
    border: 1px solid rgba(30, 64, 175, 0.6);
}

.guided-edu-axis {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    margin-top: 10px;
    padding-left: calc(46% + 12px);
    padding-right: 8px;
    color: #cbd5e1;
    font-size: 10px;
    letter-spacing: 0.2px;
    box-sizing: border-box;
}

.guided-edu-axis-tick {
    text-align: center;
}

.health-chart {
    overflow: hidden;
}

.health-chart-body {
    width: 100%;
    min-height: 200px;
}

.health-chart-body svg {
    width: 100%;
    height: 200px;
}

.health-grid line {
    stroke: rgba(148, 163, 184, 0.22);
    stroke-width: 1;
    stroke-dasharray: 3 3;
}

.health-line {
    fill: none;
    stroke: url(#healthLineGradient);
    stroke-width: 2.6;
}

.health-point {
    fill: #1d4ed8;
    stroke: #bfdbfe;
    stroke-width: 2;
}

.health-x-axis text,
.health-y-axis text {
    fill: #cbd5e1;
    font-size: 10px;
}

.transport-chart .guided-chart-body {
    padding: 0 8px;
}

.transport-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.transport-legend {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    color: #cbd5e1;
    font-size: 11px;
}

.transport-legend > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.transport-dot {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    display: inline-block;
}

.transport-dot.bus { background: linear-gradient(90deg, #1c8abf, #0f6fa3); }
.transport-dot.tram { background: linear-gradient(90deg, #a7c7f5, #6ea6e7); }
.transport-dot.metro { background: linear-gradient(90deg, #4b5563, #1f2937); }

.transport-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.transport-row {
    display: grid;
    grid-template-columns: 52px 1fr;
    align-items: center;
    column-gap: 10px;
    width: 100%;
    position: relative;
    padding-left: 4px;
}

.transport-year {
    width: 52px;
    color: #cbd5e1;
    font-weight: 600;
    font-size: 12px;
}

.transport-bar {
    display: flex;
    align-items: center;
    height: 28px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(148, 163, 184, 0.12);
    min-width: 120px;
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.transport-segment {
    height: 100%;
    display: flex;
}

.transport-segment.bus { background: linear-gradient(90deg, #1c8abf, #0f6fa3); }
.transport-segment.tram { background: linear-gradient(90deg, #b8d3ff, #82afea); }
.transport-segment.metro { background: linear-gradient(90deg, #6b7280, #4b5563); }

.transport-total {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

.guided-focus {
    margin-top: 6px;
}

.guided-focus-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.guided-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.ghost-button {
    background: transparent;
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ghost-button:hover {
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.start-button.next-button {
    position: relative;
    background: linear-gradient(135deg, var(--guided-accent, #3b82f6) 0%, #1d4ed8 100%);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3), 0 8px 22px rgba(59, 130, 246, 0.35);
    padding: 12px 18px;
    min-width: 160px;
    font-size: 14px;
    border: none;
    overflow: hidden;
}

.start-button.next-button .next-button-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    text-shadow: none;
}

.start-button.next-button .next-button-arrow {
    display: inline-block;
    font-size: 13px;
    transform: translateY(-0.5px);
    color: #f8fafc;
}

.start-button.next-button .next-button-progress {
    display: block;
    font-size: 11px;
    opacity: 0.85;
    margin-top: 2px;
}

.prev-button {
    opacity: 0.85;
}

.prev-button.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Titre de liste des projets en mode guidé */
.guided-projects-title {
    display: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #94a3b8;
    margin: 26px 0 6px;
    font-weight: 700;
}

body.guided-mode .guided-projects-title {
    display: block;
}

/* Listes de projets plus discrètes en mode guidé */
body.guided-mode #projectCards {
    opacity: 0.85;
    filter: saturate(0.9);
}

body.guided-mode .project-card {
    background: transparent;
    border: none;
    box-shadow: none;
}

body.guided-mode .project-card:hover {
    box-shadow: none;
    transform: translateY(-1px);
}

body.guided-mode .project-card .type {
    display: none;
}

/* Illustration de thématique */
.guided-media {
    margin: 10px 0 8px;
}

.guided-media img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.summary-panel-wrapper {
    display: block !important;
    width: 100%;
}

.summary-panel {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    margin-bottom: 12px;
}

.summary-panel h2 {
    margin: 0 0 6px 0;
    color: #f8fafc;
    font-size: 22px;
    letter-spacing: 0.2px;
}

.summary-panel-lead {
    color: #d1d5db;
    line-height: 1.5;
    margin-bottom: 16px;
}

.summary-panel-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.summary-stat {
    background: rgba(51, 65, 85, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 12px;
    padding: 12px 14px;
}

.summary-stat .label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #94a3b8;
    margin-bottom: 4px;
}

.summary-stat .value {
    font-size: 20px;
    font-weight: 700;
    color: #e2e8f0;
}

.summary-panel-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.summary-panel-actions .restart-button.subtle {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.18) 0%, rgba(100, 116, 139, 0.1) 100%);
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
    border-radius: 12px;
}

.summary-panel-actions .restart-button.subtle:hover {
    background: rgba(148, 163, 184, 0.1);
    transform: translateY(-1px);
}

.summary-themes-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 14px;
}

.summary-theme-card {
    background: radial-gradient(ellipse at top left, rgba(51, 65, 85, 0.35) 0%, rgba(30, 41, 59, 0.9) 100%);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 14px;
    padding: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.summary-theme-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.summary-theme-icon {
    font-size: 20px;
}

.summary-theme-title {
    font-size: 15px;
    font-weight: 800;
    color: #e2e8f0;
    margin: 0;
    letter-spacing: 0.2px;
}

.summary-theme-stats {
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.4;
    margin-bottom: 6px;
}

.summary-theme-stats span {
    display: inline-block;
    margin-right: 10px;
}

/* Photo Bubbles on Map */
.photo-bubble-marker {
    width: 140px;
    height: 90px;
    position: relative;
    opacity: 0;
    transform: translateY(10px) scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: none;
    z-index: 500;
}

.photo-bubble-marker.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.photo-bubble-content {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 2px solid white;
}

.photo-bubble-tail {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background-color: white;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    z-index: -1;
}
