.slide {
    height: max(650px, 80dvh);
    position: relative;
    overflow: hidden;
}

.slide-bg {
    position: absolute;
    inset: -5%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    will-change: transform;
}

.slide:after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1;
    pointer-events: none;
}

/* CONTENT FADE IN */
.content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateY(-46%) translateX(-50%);
    color: #fff;
    z-index: 2;

    opacity: 0;
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.swiper-slide.is-animated .content {
    opacity: 1;
    transform: translateY(-50%) translateX(-50%);
}

.title {
    position: relative;
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    text-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.title .line2 {
    display: block;
    font-weight: 900;
    margin-left: 18rem;
}

.buttons {
    display: flex;
    margin-top: -3rem;
    flex-direction: column;
    gap: 15px;
}

.main-tagline {
    position: absolute;
    bottom:-15rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 30px;
    backdrop-filter: blur(5px);
    border-radius: 10px;
    background-color: var(--yellow);
    /* margin-bottom: 50px; */
    min-width: 300px;
    /* box-shadow: 0 0 30px #f4b92577; */
    & h1 {
        font-size:1.5rem;
        font-weight: 400;
        color: var(--graphite);
        text-transform: none;
        /* text-shadow: 0 8px 15px rgba(0,0,0,0.3); */
        margin-bottom: 0;
    }
}

/* LOCATION SLIDE FROM BOTTOM */
.location {
    display: flex;
    align-items: center;
    gap: 10px;
    position: absolute;
    bottom: 0;
    right: 0;
    background: #fff;
    padding: 20px 25px;
    min-width: 350px;
    z-index: 2;
    border-radius: 35px 0 0 0;

    opacity: 0;
    transform: translateY(110%);
    transition:
        opacity 0.55s ease,
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.swiper-slide.is-animated .location {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.25s;
}

.location::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 100%;
    width: 50px;
    height: 50px;
    border-bottom-right-radius: 25px;
    box-shadow: 0 20px 0 white;
}

.location-texts {
    display: flex;
    margin-left: 20px;
    flex-direction: column;
}

.location-city {
    font-size: 1.5rem;
    font-weight: 900;
}

.discount-tag {
    position: absolute;
    bottom: -8.5rem;
    right: 0;
    max-width: 300px;



    & p {
        font-family: 'Urbanist', sans-serif;
        text-shadow: none;
        text-align: right;
        font-size: 1.2rem;
        font-weight: 400;
        color: #fff;
        line-height: 1.2rem;
        margin-bottom: 5rem;
        text-transform: none;
        margin-bottom: 0;
    }

   

    & .discount-tag-value {
        margin-top: 3rem;
        font-size: 5rem;
        line-height: 5rem;
        font-weight: 800;
        color: #fff;
        margin-bottom: -1rem;
    }
}


.discount-tag-text-2 {
    margin-top: -0.8rem;
}

/* Discount tag */

@media (max-width: 768px) {

    .main-tagline  {
        bottom:-7rem;
    }

    .main-tagline  h1 {
        font-size: 1.2rem;
    }
    .title {
        font-size: 2.5rem;
    }

    .title .line2 {
        margin-left: 4rem;
    }

    .buttons {
        margin-top: 1.5rem;
        align-items: center;
    }

    .location {
        min-width: 250px;
    }

    .discount-tag {
        bottom: unset;
        top: -5rem;
        right: unset;
        left: 50%;
        transform: translateX(-50%);
        min-width: 300px;

        & p {
            font-size: 1rem;
        }

        & .discount-tag-value {
            font-size: 2.5rem;
            line-height: 2.5rem;
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    .content,
    .location {
        opacity: 1;
        transform: none;
        transition: none;
    }
}