#adresses {
    background-color: white; 
    overflow-x: hidden; 
}

.carousel-viewport {
    width: 100%;
    margin: 0 auto 30px auto;
    overflow: hidden; 
    height: auto; 
}

.location-cards-container {
    display: flex;
    transition: transform 0.5s ease-in-out; 
    flex-wrap: nowrap;
}

.location-card {
    flex-shrink: 0;
    flex-basis: 100%; 
    max-width: 100%;
    
    box-sizing: border-box;
    padding: 0 15px; 
    text-decoration: none;
    color: #333; 
    
    display: flex; 
    flex-direction: column; 
    
    border-radius: 8px;
    overflow: hidden; 
    height: auto; 
    position: relative;
    background-color: #fff; 
    border: 1px solid #e0e0e0; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-card:hover {
    transform: translateY(-5px); 
    box-shadow: 0 8px 20px rgba(0,0,0,0.15); 
}

.location-card-header {
    background-color: transparent;
    color: inherit; 
    padding: 0; 
    text-align: center;
    flex-shrink: 0;
    border-top-left-radius: 0; 
    border-top-right-radius: 0; 
}

.location-card-header h5 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: #1e3932; 
    padding: 18px 20px;
}

.location-card-image {
    height: 0; 
    padding-bottom: 75%;
    overflow: hidden;
    display: block; 
    position: relative;
    width: 100%;
    background-color: #f0f0f0; 
}

.location-card-image img {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; 
}

.location-card-details {
    display: block;

    background-color: #fff;
    padding: 20px;
    text-align: left;
    flex-shrink: 0;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.location-card-details p {
    margin: 6px 0; 
    font-size: 16px;
    color: #555; 
    font-weight: normal;
}

.location-card-details .contact-info i.fa,
.location-card-details .location-address i.fas {
    margin-right: 10px;
    min-width: 20px; 
    text-align: center;
    color: #d13775; 
    display: inline-block;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 20px; 
    margin-top: 40px; 
}

.carousel-btn {
    background: #d13775; 
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px; 
    height: 50px;
    font-size: 18px; 
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.carousel-btn:hover {
    background: #b42c61; 
    transform: translateY(-2px);
}

.carousel-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@media (max-width: 991px) { 
    #adresses .module-title {
        font-size: 24px;
    }
    .location-card-header h5 {
        font-size: 20px;
    }
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (min-width: 992px) {
    .carousel-viewport {
        overflow: visible;
        max-width: none; 
        margin-bottom: 0;
        height: auto; 
        padding: 0 15px;
    }

    .location-cards-container {
        display: flex;
        flex-wrap: nowrap; 
        justify-content: space-between; 
        gap: 30px; 
        transform: none !important; 
        transition: none; 
    }

    .location-card {
        flex-basis: 0; 
        flex-grow: 1; 
        min-width: 250px; 
        height: auto;
        margin: 0;
        padding: 0; 
        box-sizing: border-box;
    }
    
    .location-card-image {
        height: 0;
        padding-bottom: 75%;
        position: relative; 
    }

    .location-card-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .location-card-details {
        display: block;
    }

    .carousel-nav {
        display: none; 
    }
}