.service-area {
    padding: 5rem 1rem;
    background: linear-gradient(rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.05));
}

.service-area-container {
    max-width: var(--max-width);
    margin: 0 auto;
}


.service-area-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.location-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.location-item i {
    color: var(--primary-color);
}

.service-area-note {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.service-area-note i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.map-container {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.coverage-map {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    text-align: center;
}

.map-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.map-overlay p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

@media (max-width: 968px) {
    .service-area-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .map-container {
        max-height: 400px;
    }
}

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

/* Service Area Section */

.service-area-header {
    text-align: center;
    margin-bottom: 3rem;
}

.service-area-title {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-weight: bold;
}

.service-area-subtitle {
    font-size: 1.25rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

.service-regions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.region-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.region-card h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.region-card h3 i {
    font-size: 1.1rem;
}

.cities-list {
    columns: 2;
    column-gap: 1.5rem;
}

.cities-list li {
    margin-bottom: 0.75rem;
    break-inside: avoid;
    color: #4b5563;
}

.service-area-cta {
    text-align: center;
    margin-top: 3rem;
}

@media (max-width: 1024px) {
    .service-regions {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .service-regions {
        grid-template-columns: 1fr;
    }
    
    .cities-list {
        columns: 1;
    }
}


@media (max-width: 768px) {
    .locations-grid {
        max-height: 300px;
        overflow: hidden;
        transition: max-height 0.5s ease-out; 
        margin-bottom: 1rem;
        position: relative; 
    }

    .locations-grid.expanded {
        max-height: 5000px; 
    }

    /* Show the toggle button on mobile */
    .toggle-locations {
        display: flex !important; /* Force display on mobile */
        align-items: center;
        justify-content: center;
        width: 100%;
        margin-top: 1rem;
        padding: 0.75rem;
        background: var(--primary-color);
        color: white;
        border: none;
        border-radius: var(--border-radius);
        font-weight: 500;
        cursor: pointer;
        transition: var(--transition);
        text-align: center;
        gap: 0.5rem; /* Space between text and icon */
    }

    .toggle-locations:hover {
        background: var(--primary-dark);
    }

    .toggle-locations i {
        transition: transform 0.3s ease;
    }

    .toggle-locations.expanded i {
        transform: rotate(180deg);
    }

    /* Add gradient fade at the bottom of collapsed list */
    .locations-grid:not(.expanded)::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 100px; /* Increased fade height */
        background: linear-gradient(transparent, rgba(255, 255, 255, 0.9) 50%, white);
        pointer-events: none;
    }
}

/* Hide toggle button on desktop */
.toggle-locations {
    display: none;
}