/* Modern Locations Slider Styles */
.modern-locations-slider {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    width: 100%;
    display: flex;
    justify-content: center;
}

.modern-locations-slider .container {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.modern-locations-slider .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.modern-locations-slider .section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #2c91ce;
    margin-bottom: 15px;
    position: relative;
}

.modern-locations-slider .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 2px;
}

.modern-locations-slider .section-subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: 240px 240px;
    gap: 16px;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    margin-top: 30px;
    grid-template-areas:
        "a a a a b b b b c c c c"
        "d d d e e e f f f g g g";
}

/* Grid area assignments for precise placement */
.location-card:nth-child(1) { grid-area: a; }
.location-card:nth-child(2) { grid-area: b; }
.location-card:nth-child(3) { grid-area: c; }
.location-card:nth-child(4) { grid-area: d; }
.location-card:nth-child(5) { grid-area: e; }
.location-card:nth-child(6) { grid-area: f; }
.location-card:nth-child(7) { grid-area: g; }

.location-card {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(30px);
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.location-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    z-index: 1;
    min-width: 100%;
    min-height: 100%;
}

.location-overlay {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 8px 12px;
    border-radius: 6px;
    backdrop-filter: blur(5px);
    z-index: 2;
}

.location-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 2px 0;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.location-count {
    font-size: 0.85rem;
    margin: 0;
    color: #666;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.location-count::before {
    display: none;
}

/* No hover animations or content */

/* Responsive adjustments */
@media (max-width: 1200px) {
    .locations-grid {
        grid-template-columns: repeat(9, 1fr);
        grid-template-rows: 210px 210px;
        gap: 14px;
        grid-template-areas:
            "a a a b b b c c c"
            "d d e e e f f g g";
    }
}

@media (max-width: 992px) {
    .locations-grid {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: 190px 190px;
        gap: 12px;
        grid-template-areas:
            "a a b b c c"
            "d e e f f g";
    }
    
    .modern-locations-slider .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .modern-locations-slider {
        padding: 15px;
    }
    
    .locations-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(7, 200px);
        gap: 12px;
        grid-template-areas:
            "a"
            "b"
            "c"
            "d"
            "e"
            "f"
            "g";
    }
    
    .modern-locations-slider .section-title {
        font-size: 1.8rem;
    }
    
    .modern-locations-slider .section-subtitle {
        font-size: 1rem;
    }
    
    .location-name {
        font-size: 1rem;
    }
    
    .location-count {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .modern-locations-slider .container {
        padding: 0 15px;
    }
    
    .location-card {
        height: 200px;
        width: 100%;
    }
    
    .location-image {
        width: 100%;
        height: 100%;
    }
    
    .location-overlay {
        padding: 20px 15px 15px;
    }
    
    .location-name {
        font-size: 1.1rem;
    }
    
    .location-count {
        font-size: 0.9rem;
    }
}

/* Animation for cards appearing */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.location-card.animate {
    animation: fadeInUp 0.6s ease forwards;
}

/* Animation delays for all 7 cards */
.location-card:nth-child(1).animate { animation-delay: 0.1s; }
.location-card:nth-child(2).animate { animation-delay: 0.2s; }
.location-card:nth-child(3).animate { animation-delay: 0.3s; }
.location-card:nth-child(4).animate { animation-delay: 0.4s; }
.location-card:nth-child(5).animate { animation-delay: 0.5s; }
.location-card:nth-child(6).animate { animation-delay: 0.6s; }
.location-card:nth-child(7).animate { animation-delay: 0.7s; }

/* Hide any location cards beyond the 7th to prevent corrupted display */
.location-card:nth-child(n+8) {
    display: none !important;
}