
/* =========================================
   MAGIC ROUTES PREMIUM HERO
========================================= */

.mr-hero {
    position: relative;
    width: 100%;
    height: 88vh;
    min-height: 680px;
    max-height: 950px;
    overflow: hidden;
    background: #061d36;
    color: #fff;
}

/* BACKGROUND SLIDES */

.mr-hero-backgrounds,
.mr-hero-bg {
    position: absolute;
    inset: 0;
}

.mr-hero-bg {
    background-size: cover;
    background-position: center center;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1.3s ease, transform 6s ease;
}

.mr-hero-bg.active {
    opacity: 1;
    transform: scale(1);
}

/* DARK BLUE OVERLAY */

.mr-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            90deg,
            rgba(3, 25, 53, .94) 0%,
            rgba(3, 31, 63, .80) 35%,
            rgba(3, 31, 63, .30) 70%,
            rgba(3, 31, 63, .18) 100%
        ),
        linear-gradient(
            0deg,
            rgba(2, 19, 40, .75),
            transparent 40%
        );
}

/* MAIN CONTENT */

.mr-hero-content {
    position: relative;
    z-index: 2;
    height: calc(100% - 145px);
    display: flex;
    align-items: center;
    padding: 40px 0 65px 4%;
}

/* LEFT TEXT */

.mr-hero-left {
    width: 48%;
    flex-shrink: 0;
    padding-right: 35px;
    overflow: hidden;
}

.mr-hero-small-title {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 32px;
    color: #fff;
}

.mr-hero-small-title span {
    width: 100px;
    height: 2px;
    background: #ff7900;
}


/* ====================================
   VERTICAL TEXT SLIDE ANIMATION
==================================== */

.mr-hero-text-wrap {
    display: grid;
    position: relative;
    overflow: hidden;
}

/* Both panels occupy the same space */

.mr-hero-panel {
    grid-area: 1 / 1;
    width: 100%;
    transition: transform .85s cubic-bezier(.77, 0, .175, 1);
    transform: translateY(100%);
    pointer-events: none;
}

/* Currently visible panel */

.mr-hero-panel.active {
    transform: translateY(0);
    pointer-events: auto;
}

/* Old panel moves upwards */

.mr-hero-panel.slide-out {
    transform: translateY(-100%);
}

/* New panel comes from below */

.mr-hero-panel.slide-in {
    transform: translateY(0);
    pointer-events: auto;
}

/* Text appearance */

.mr-hero-panel h1,
.mr-hero-panel h2,
.mr-hero-panel p {
    position: relative;
}

/* Button */

.mr-hero-panel .mr-hero-button {
    display: inline-flex;
}

.mr-hero-left h1 {
    color: #fff;
    font-size: clamp(42px, 5.5vw, 82px);
    font-weight: 800;
    line-height: 1.05;
    margin: 0 0 15px;
    text-transform: uppercase;
}

.mr-hero-left h2 {
    color: #fff;
    font-size: clamp(22px, 2.6vw, 38px);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 22px;
}

.mr-hero-left p {
    color: rgba(255,255,255,.90);
    font-size: 17px;
    line-height: 1.7;
    max-width: 530px;
    margin-bottom: 35px;
}

.mr-hero-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: #ff7200;
    color: #fff !important;
    padding: 17px 32px;
    border-radius: 40px;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none !important;
    transition: .3s ease;
}

.mr-hero-button:hover {
    background: #fff;
    color: #07305a !important;
    transform: translateY(-3px);
}

/* RIGHT SIDE CAROUSEL */

.mr-hero-right {
    position: relative;
    width: 52%;
    min-width: 0;
}

.mr-hero-card-viewport {
    width: 100%;
    overflow: hidden;

    /* Fade first card as it leaves */
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 8%,
        black 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 8%,
        black 100%
    );
}

.mr-hero-card-track {
    display: flex;
    align-items: center;
    gap: 18px;
    transition: transform .8s cubic-bezier(.65,0,.35,1);
    will-change: transform;
}

.mr-hero-card-track.no-transition {
    transition: none !important;
}

/* DESTINATION CARD */

.mr-hero-card {
    position: relative;
    display: block;
    flex: 0 0 clamp(210px, 39%, 280px);
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none !important;
    box-shadow: 0 15px 40px rgba(0,0,0,.35);
    transform: scale(.97);
    transition: transform .5s ease;
}

.mr-hero-card:hover {
    transform: scale(1);
}

.mr-hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s ease;
}

.mr-hero-card:hover img {
    transform: scale(1.08);
}

/* CARD TEXT OVERLAY */

.mr-hero-card-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 65px 20px 22px;
    background: linear-gradient(
        transparent,
        rgba(0,0,0,.90)
    );
}

.mr-hero-card-overlay h3 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 5px;
}

.mr-hero-card-overlay p {
    color: #fff;
    font-size: 14px;
    margin: 0;
}

/* CARD ARROWS */

.mr-hero-arrows {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.mr-hero-arrows button {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 30, 60, .7);
    font-size: 25px;
    cursor: pointer;
    transition: .3s;
}

.mr-hero-arrows button:hover {
    background: #ff7200;
}

/* BOTTOM NAVIGATION */

.mr-hero-bottom {
    position: absolute;
    z-index: 3;
    bottom: 112px;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.mr-hero-counter {
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    display: flex;
    gap: 6px;
}

.mr-hero-dots {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mr-hero-dot {
    width: 12px;
    height: 12px;
    border: none;
    padding: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.45);
    cursor: pointer;
    transition: .3s;
}

.mr-hero-dot.active {
    width: 17px;
    height: 17px;
    background: #ff7200;
    border: 2px solid #fff;
}

/* BOTTOM FEATURES */

.mr-hero-features {
    position: absolute;
    z-index: 3;
    bottom: 0;
    left: 0;
    width: 100%;
    min-height: 85px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-top: 1px solid rgba(255,255,255,.25);
    background: rgba(0, 23, 48, .65);
    backdrop-filter: blur(8px);
}

.mr-hero-features > div {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

.mr-hero-features > div i {
    font-size: 25px;
    color: #fff;
}

/* TABLET */

@media(max-width: 991px) {

    .mr-hero {
        height: auto;
        min-height: 900px;
        max-height: none;
    }

    .mr-hero-content {
        height: auto;
        min-height: 780px;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        padding: 80px 5% 160px;
        gap: 40px;
    }

    .mr-hero-left {
        width: 100%;
        padding: 0;
    }

    .mr-hero-right {
        width: 100%;
    }

    .mr-hero-card {
        flex-basis: 35%;
        height: 310px;
    }

    .mr-hero-bottom {
        bottom: 105px;
    }

    .mr-hero-features {
        flex-wrap: wrap;
        gap: 15px;
        padding: 18px;
    }

    .mr-hero-features > div {
        width: 45%;
        justify-content: center;
    }
}

/* MOBILE */

@media(max-width: 575px) {

    .mr-hero {
        min-height: 900px;
    }

    .mr-hero-content {
        min-height: 790px;
        padding: 65px 20px 150px;
        gap: 30px;
    }

    .mr-hero-small-title {
        font-size: 11px;
        letter-spacing: 2px;
        gap: 10px;
        margin-bottom: 20px;
    }

    .mr-hero-small-title span {
        width: 45px;
    }

    .mr-hero-left h1 {
        font-size: 43px;
    }

    .mr-hero-left h2 {
        font-size: 23px;
    }

    .mr-hero-left p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .mr-hero-button {
        padding: 13px 23px;
        font-size: 14px;
    }

    .mr-hero-card {
        flex-basis: 65%;
        height: 260px;
    }

    .mr-hero-card-overlay h3 {
        font-size: 18px;
    }

    .mr-hero-card-overlay p {
        font-size: 12px;
    }

    .mr-hero-arrows {
        display: none;
    }

    .mr-hero-bottom {
        bottom: 125px;
        gap: 15px;
    }

    .mr-hero-counter {
        font-size: 15px;
    }

    .mr-hero-dots {
        gap: 9px;
    }

    .mr-hero-dot {
        width: 8px;
        height: 8px;
    }

    .mr-hero-dot.active {
        width: 12px;
        height: 12px;
    }

    .mr-hero-features {
        min-height: 105px;
        gap: 12px 5px;
        padding: 12px 5px;
    }

    .mr-hero-features > div {
        width: 48%;
        gap: 8px;
        font-size: 11px;
        justify-content: flex-start;
    }

    .mr-hero-features > div i {
        font-size: 18px;
    }
}
