/* Location Home Section Styles */
.location-home-section {
    position: relative;
    width: 100%;
    padding: 40px 0;
}

.location-home-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 18px 0;
    gap: 12px;
    width: 100%;
    max-width: 466px;
    margin: 0 auto;
    margin-bottom: 20px;
}

.location-home-title {
    width: 100%;
    max-width: 460px;
    font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 48px;
    line-height: 58px;
    text-align: center;
    color: #292929;
}

.location-home-divider {
    width: 466px;
    height: 9px;
    background: #ff4c4b;
    border-radius: 6px;
}

.location-cards-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    padding: 0;
    gap: 20px;
    width: 100%;
    max-width: 1503px;
    margin: 0 auto;
}

.location-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 26px;
    gap: 16px;
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    height: 157px;
    background: #ffffff;
    box-shadow: inset 0px 0px 4px rgba(0, 0, 0, 0.25);
    border-radius: 1px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

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

.location-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 9px 9px 0 0;
}

.location-title {
    font-family: "Roboto", sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 24px;
    line-height: 80%;
    display: flex;
    align-items: center;
    text-align: center;
    color: #000000;
}

.location-count {
    font-family: "Roboto", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 140%;
    display: flex;
    align-items: center;
    margin-bottom: 0px !important;
    color: #fb5437;
}

.view-all-locations-button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 12px 24px;
    gap: 10px;
    width: fit-content;
    height: 48px;
    background: #ff4c4b;
    border-radius: 10px;
    margin: 35px auto 0;
    text-decoration: none;
}

.view-all-locations-button span {
    font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    color: #ffffff;
}

.view-all-locations-button i {
    color: #ffffff;
}

/* Responsive Styles */
@media (min-width: 1400px) {
    .location-card {
        flex: 0 0 calc(20% - 16px); /* 5 cards per row */
    }
}

@media (max-width: 1399px) and (min-width: 1200px) {
    .location-card {
        flex: 0 0 calc(25% - 15px); /* 4 cards per row */
    }
}

@media (max-width: 1199px) and (min-width: 992px) {
    .location-card {
        flex: 0 0 calc(33.333% - 14px); /* 3 cards per row */
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .location-card {
        flex: 0 0 calc(50% - 10px); /* 2 cards per row */
    }

    .location-home-title {
        font-size: 40px;
        line-height: 48px;
    }

    .location-home-divider {
        width: 300px;
    }
}

@media (max-width: 767px) {
    .location-card {
        flex: 0 0 100%; /* 1 card per row */
        max-width: 100%;
    }

    .location-home-title {
        font-size: 32px;
        line-height: 38px;
        padding: 0 15px;
    }

    .location-home-divider {
        width: 250px;
    }
}
