.home-location{
    background-color: var(--color-primary-1);
    position: relative;
}
.home-location-container{
    padding: 60px 40px;
    margin: 0 auto;
    max-width: 1280px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px 24px;
    align-items: end;
    >a{
        color: white;
    }
}
.home-location-title{
    >h2{
        color: white;
        margin-bottom: 24px;
    }
    >h3{
        color: white;
    }
}

.home-location-swiper{
    grid-column: span 2;
}

.home-location-card{
    >.img{
        aspect-ratio: 3/2;
        overflow: hidden;
        border-radius: 10px;
        margin-bottom: 24px;
        img{
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s;
        }
    }
    >h4{
        color: white;
        text-align: center;
        transition: color 0.3s;
    }

    &:hover{
        >.img > img{
            transform: scale(1.1);
        }
    }
}

.home-location-swiper-prev,
.home-location-swiper-next{
    position: absolute;
    z-index: 1;
    bottom: 194px;
    cursor: pointer;
    path{
        transition: fill-opacity 0.3s;
    }
    &:hover > svg > path:nth-child(1){
        fill-opacity: 1;
    }
    &:hover > svg > path:nth-child(2){
        stroke: var(--color-primary-1);
    }
}
.home-location-swiper-prev{
    left: 0;
}
.home-location-swiper-next{
    right: 0;
}

@media screen and (width < 1280px) {
    .home-location-swiper-prev,
    .home-location-swiper-next{
        bottom: calc((100vw - 120px) / 4 / 3 * 2 / 2 - 20px + 114px);
    }
}
@media screen and (width < 1024px) {
    .home-location-swiper-prev,
    .home-location-swiper-next{
        bottom: calc((100vw - 96px) / 3 / 3 * 2 / 2 - 20px + 114px);
    }
}
@media screen and (width < 768px) {
    .home-location-swiper-prev,
    .home-location-swiper-next{
        bottom: calc((100vw - 72px) / 2 / 3 * 2 / 2 - 20px + 97px);
    }
    .home-location-card{
        >.img{
            margin-bottom: 16px;
        }
    }
}
@media screen and (width < 576px) {
    .home-location-container{
        grid-template-columns: 100%;
        gap: 40px;
        >a{
            order: 1;
            margin: 0 auto;
        }
    }
    .home-location-title{
        >h2, >h3{
            text-align: center;
        }
    }
    .home-location-swiper{
        grid-column: auto;
        max-width: 240px;
        margin: 0 auto;
    }
    .home-location-swiper-prev,
    .home-location-swiper-next{
        bottom: 237px;
    }
}