/**
 * EXPLORER PAGE - Design moderne et professionnel
 */

:root {
    --gradient-weather: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e22ce 100%);
    --gradient-accent: linear-gradient(135deg, #c9a961 0%, #dfc480 100%);
    --accent-gold: #c9a961;
    --secondary-color: #c9a961;
}

/* ========================================
   HERO SECTION - Fond Louvre visible
======================================== */
.explorer-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: transparent;
}

.explorer-hero .container {
    position: relative;
    z-index: 2;
}

.hero-overlay {
    display: none;
}

.hero-pattern {
    display: none;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(201, 169, 97, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(201, 169, 97, 0.4);
    border-radius: 50px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.explorer-hero h1 {
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.text-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.explorer-hero .lead {
    color: #ffffff;
    font-size: 1.2rem;
    line-height: 1.8;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

/* ========================================
   SEARCH CARD - Glassmorphism amélioré
======================================== */
.search-section {
    margin-top: 60px;
    margin-bottom: 60px;
    position: relative;
    z-index: 5;
}

.search-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 2rem;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.search-card::before {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2rem 2rem 0 0;
    box-shadow: 0 0 20px rgba(201, 169, 97, 0.6);
}

.search-box {
    position: relative;
    z-index: 100;
}

.search-box i {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-gold);
    font-size: 1.25rem;
    pointer-events: none;
    z-index: 10;
    text-shadow: 0 0 8px rgba(201, 169, 97, 0.5);
}

.search-box .form-control {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 1.125rem 1.5rem 1.125rem 3.75rem;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 58px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-box .form-control:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(201, 169, 97, 0.5);
}

.search-box .form-control:focus {
    background: rgba(255, 255, 255, 0.3);
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.25),
                inset 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #ffffff;
    outline: none;
}

.search-box .form-control::placeholder {
    color: rgba(255, 255, 255, 0.65);
    font-weight: 400;
}

.filter-select {
    position: relative;
}

.filter-select i {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    pointer-events: none;
    z-index: 10;
}

.filter-select .form-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border: 1px solid rgba(240,199,72,0.12);
    border-radius: 50px;
    padding: 0.9rem 2.5rem 0.9rem 3.5rem;
    color: #e6eef8;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.18s ease;
    height: 56px;
    cursor: pointer;
    /* remove heavy outer shadow to match original look */
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 14px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23dfc480' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
}

.filter-select .form-select:focus {
    background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03));
    border-color: rgba(212,175,55,0.9);
    color: #fffbe6;
    /* keep subtle focus glow but no large shadow */
    box-shadow: 0 4px 12px rgba(212,175,55,0.04);
}

/* Note: native <option> rendering varies by browser/OS. We avoid forcing option styles
   to prevent readability issues (use a custom component if full control is required). */

.btn-gradient {
    background: var(--gradient-accent);
    border: none;
    color: #0f172a;
    font-weight: 700;
    padding: 1.125rem 2.5rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 58px;
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-gradient:hover::before {
    left: 100%;
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(201, 169, 97, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    color: #0f172a;
}

.btn-gradient:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(201, 169, 97, 0.4);
}

.btn-outline-secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    font-weight: 600;
    padding: 1.125rem 2rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 58px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-outline-secondary:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

/* ========================================
   FILTERS BUTTONS
======================================== */
.filters-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    padding: 0.875rem 1.75rem;
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
}

.filter-btn i {
    font-size: 1.125rem;
    transition: transform 0.3s ease;
}

.filter-btn:hover {
    background: rgba(201, 169, 97, 0.25);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(201, 169, 97, 0.3);
}

.filter-btn:hover i {
    transform: scale(1.1);
}

.filter-btn.active {
    background: var(--gradient-accent);
    border-color: var(--accent-gold);
    color: #0f172a;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(201, 169, 97, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.filter-btn.active i {
    transform: scale(1.15);
}

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

/* ========================================
   STATS SECTION
======================================== */
.stats-section {
    background: transparent;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--dark-color);
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin: 0.25rem 0 0 0;
}

/* ========================================
   MUSEUMS GRID
======================================== */
.museums-section {
    margin-top: 0; /* Directement sous le hero, visible seulement au scroll */
    padding-top: 80px;
    background: #ffffff; /* Fond blanc pour les résultats */
}

[data-theme="dark"] .museums-section {
    background: #1e293b; /* Fond bleu foncé en mode nuit */
}

.section-title {
    color: rgb(15, 23, 42); 
    font-size: 1.75rem;
    font-weight: 700;
}

[data-theme="dark"] .section-title {
    color: #ffffff; 
}

.museum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.museum-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.museum-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(201, 169, 97, 0.25);
    border-color: var(--accent-gold);
}

.museum-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.museum-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.museum-card:hover .museum-image img {
    transform: scale(1.1);
}

.museum-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-accent);
    color: #0f172a;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.95rem;
    z-index: 10;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.favorite-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
    cursor: pointer;
}

.favorite-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

.favorite-btn.active {
    color: #ef4444;
}

.museum-content {
    padding: 1.5rem;
}

.museum-title {
    color: #1e3a5f;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.museum-location {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.museum-location i {
    color: var(--accent-gold);
}

.museum-description {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.museum-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.stat-item i {
    color: var(--accent-gold);
}

.stat-item span {
    color: #475569;
    font-weight: 500;
}

.museum-footer {
    display: flex;
    gap: 0.75rem;
}

.btn-view {
    flex: 1;
    background: var(--gradient-accent);
    border: none;
    color: #0f172a;
    padding: 0.75rem;
    border-radius: 0.75rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 169, 97, 0.4);
    color: #0f172a;
}

/* ========================================
   SKELETON LOADING
======================================== */
.skeleton-loader {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.skeleton-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    overflow: hidden;
    animation: pulse 1.5s ease-in-out infinite;
}

.skeleton-image {
    height: 250px;
    background: rgba(255, 255, 255, 0.1);
}

.skeleton-content {
    padding: 1.5rem;
}

.skeleton-line {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ========================================
   PAGINATION
======================================== */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.page-btn {
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    color: #475569;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background: #f8f9fc;
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.page-btn.active {
    background: var(--gradient-accent);
    border-color: var(--accent-gold);
    color: #0f172a;
    font-weight: 800;
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ========================================
   RESPONSIVE - Optimisé
======================================== */
@media (max-width: 1200px) {
    .explorer-hero h1 {
        font-size: 3rem;
    }
    
    .museum-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 992px) {
    .explorer-hero h1 {
        font-size: 2.5rem;
    }
    
    .explorer-hero .lead {
        font-size: 1.1rem;
    }
    
    .search-card {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .explorer-hero {
        min-height: 90vh;
        padding: 80px 0 40px;
    }
    
    .explorer-hero h1 {
        font-size: 2rem;
    }
    
    .explorer-hero .lead {
        font-size: 1rem;
    }
    
    .search-card {
        padding: 1.25rem;
    }
    
    .museum-grid,
    .skeleton-loader {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .filters-container {
        gap: 0.5rem;
    }
    
    .filter-btn {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .weather-temp {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .explorer-hero h1 {
        font-size: 1.75rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
    
    .search-card {
        padding: 1rem;
    }
    
    .filter-btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.875rem;
    }
}

/* ========================================
   NOUVELLES SECTIONS APIs
======================================== */

/* Section Badges */
.section-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(201, 169, 97, 0.1);
    border: 1px solid rgba(201, 169, 97, 0.2);
    border-radius: 50px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
}

.artworks-section .section-subtitle,
.weather-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

/* Artwork Cards - Améliorées */
.artwork-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.artwork-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-gold);
    box-shadow: 0 20px 40px rgba(201, 169, 97, 0.3);
}

.artwork-card-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Fallback local sans réseau quand aucune image dispo */
.artwork-card.no-image::before {
    content: 'Image indisponible';
    display: block;
    height: 300px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #6b7280;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: none;
    font-size: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.artwork-card.no-image .artwork-card-img {
    display: none;
}

/* Museum Cards - local fallback when image missing */
.museum-card.no-image .museum-image img {
    display: none;
}
.museum-card.no-image .museum-image::before {
    content: 'Image indisponible';
    display: block;
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #6b7280;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: none;
    font-size: 0.95rem;
    border-radius: 1rem 1rem 0 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.artwork-card:hover .artwork-card-img {
    transform: scale(1.05);
}

.artwork-card-body {
    padding: 1.5rem;
}

.artwork-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.artwork-card-artist {
    color: var(--accent-gold);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.artwork-card-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.artwork-card-medium {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Weather Cards - Améliorées */
.weather-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.weather-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-gold);
    box-shadow: 0 15px 35px rgba(201, 169, 97, 0.3);
}

.weather-city {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.weather-temp {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-gold);
    line-height: 1;
}

.weather-desc {
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
    text-transform: capitalize;
    font-size: 1.1rem;
}

.weather-details {
    display: flex;
    justify-content: space-around;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.weather-detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.weather-detail-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

.weather-detail-label {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-top: 0.25rem;
}

/* Location Cards */
.location-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.location-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.location-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.location-coords {
    color: var(--gray-400);
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
}

/* Loading Spinner */
.loading-spinner {
    padding: 4rem 0;
    color: var(--gray-400);
}

/* Sections avec backgrounds spéciaux */
.artworks-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.weather-section {
    background: var(--gradient-weather);
}

.map-section {
    background: var(--gray-900);
}

/* ========================================
   AUTOCOMPLÉTION RECHERCHE
======================================== */
.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
}

.search-suggestions.show {
    display: block;
    animation: fadeInDown 0.2s ease;
}

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

/* Scrollbar personnalisée pour les suggestions */
.search-suggestions::-webkit-scrollbar {
    width: 8px;
}

.search-suggestions::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 0 1.5rem 1.5rem 0;
}

.search-suggestions::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

.search-suggestions::-webkit-scrollbar-thumb:hover {
    background: #c9a030;
}

.suggestion-item {
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #e5e7eb;
}

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

.suggestion-item:hover {
    background-color: #f3f4f6;
    padding-left: 24px;
}

.suggestion-content {
    flex: 1;
}

.suggestion-name {
    font-weight: 600;
    color: #111827;
    font-size: 15px;
    margin-bottom: 4px;
}

.suggestion-location {
    font-size: 13px;
    color: #6b7280;
}

.no-suggestions {
    padding: 24px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

.no-suggestions i {
    font-size: 32px;
    color: #cbd5e1;
    margin-bottom: 8px;
    display: block;
}

/* ========================================
   CARTE LEAFLET
======================================== */
#museumMap {
    position: relative;
}

.museum-popup .popup-name {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.museum-popup .popup-address {
    color: var(--gray-400);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.museum-popup .popup-btn {
    margin-top: 0.5rem;
}

/* Animation bounce pour le marker */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.marker-bounce {
    animation: bounce 0.6s ease-in-out 3;
}

/* Style des popups Leaflet */
.leaflet-popup-content-wrapper {
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.leaflet-popup-content {
    margin: 1rem;
    font-family: inherit;
}

/* ====== CUSTOM COUNTRY DROPDOWN (like search suggestions) ====== */
.custom-country-filter {
    position: relative;
}

.custom-country-filter i {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    pointer-events: none;
    z-index: 10;
}

.country-select-wrapper {
    position: relative;
}

.country-select-trigger {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 1.125rem 1.5rem 1.125rem 3.75rem;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 58px;
    cursor: pointer;
    display: flex;
    align-items: center;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.country-select-trigger:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(201, 169, 97, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
                inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.country-select-trigger:active,
.country-select-trigger.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.25),
                inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.country-options-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
}

.country-options-dropdown.show {
    display: block;
    animation: fadeInDown 0.2s ease;
}

.country-option {
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #e5e7eb;
    color: #1f2937;
    font-size: 1rem;
}

.country-option:last-child {
    border-bottom: none;
}

.country-option:hover {
    background-color: #f3f4f6;
    padding-left: 24px;
}

.country-option.selected {
    background-color: #f0f0f0;
    font-weight: 600;
    color: var(--secondary-color);
}

.country-options-dropdown::-webkit-scrollbar {
    width: 8px;
}

.country-options-dropdown::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 0 1.5rem 1.5rem 0;
}

.country-options-dropdown::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

.country-options-dropdown::-webkit-scrollbar-thumb:hover {
    background: #c9a030;
}

button.favorite-btn.active i,
button.favorite-btn i.active {
    color: #e63946 !important;
    transition: 0.3s ease;
}


.harvard-section {
    background-color: #25385C !important;   /* couleur douce (modifiable) */
    padding: 40px 0;
    border-radius: 12px;
}
