
/* =========================================
   DD TOURS — ABOUT FEATURES
   Editorial / luxury travel layout
========================================= */

.about-features {
    --af-gold: #DDB57A;
    --af-navy: #001524;

    display: grid;
    grid-template-columns: minmax(0, 0.83fr) minmax(0, 1.17fr);
    gap: clamp(55px, 7vw, 125px);

    width: 100%;
    padding: 0px 0 90px;
    background: #fff;
    color: #292929;
    overflow: hidden;
}

/* LEFT IMAGE */

.about-features__visual {
    position: relative;
    min-width: 0;
    min-height: 690px;
    height: min(54vw, 850px);
    overflow: hidden;
    background: #e9e9e3;
    border-radius: 0 0 0px 0;
    isolation: isolate;
}

.about-features__main-image {
    position: absolute;
    inset: 0;

    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: transform 1.2s cubic-bezier(.2, .7, .2, 1);
}

.about-features__visual:hover .about-features__main-image {
    transform: scale(1.035);
}

.about-features__image-shade {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 21, 36, 0),
            rgba(0, 21, 36, 0.03) 75%
        ),
        linear-gradient(
            0deg,
            rgba(0, 21, 36, 0),
            transparent 36%
        );

    pointer-events: none;
}

.about-features__vertical-title {
    position: absolute;
    top: 50%;
    left: 50%;

    color: #fff;

    font-family: var(
        --font-heading,
        "Bodoni MT",
        Didot,
        Georgia,
        serif
    );

    font-size: clamp(95px, 8vw, 135px);
    font-weight: 700;
    line-height: 0.85;
    letter-spacing: -3px;
    white-space: nowrap;

    writing-mode: vertical-rl;
    transform: translate(200%, -50%) rotate(180deg);

    pointer-events: none;
    user-select: none;
}

.about-features__image-caption {
    position: absolute;
    right: 28px;
    bottom: 30px;
    left: 28px;

    display: flex;
    align-items: center;
    gap: 15px;

    color: rgba(255, 255, 255, 0.95);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2.5px;
}

.about-features__caption-line {
    width: 50px;
    height: 1px;
    background: var(--af-gold);
}

/* RIGHT CONTENT */

.about-features__content {
    min-width: 0;
    padding-top: 50px;
}

.about-features__intro {
    width: min(100% - 35px, 640px);
    margin-bottom: clamp(60px, 0vw, 0px);
    padding-right: 35px;
}

.about-features__eyebrow {
    display: block;
    margin-bottom: 8px;

    color: #7b684e;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
}

.about-features__intro h2 {
    margin: 0 0 18px;

    color: #262626;

    font-family: var(
        --font-heading,
        "Bodoni MT",
        Didot,
        Georgia,
        serif
    );

    font-size: clamp(31px, 3vw, 45px);
    font-weight: 500;
    line-height: 1.14;
    letter-spacing: -0.7px;
}

.about-features__intro h2 span {
    display: block;
}

.about-features__intro p {
    max-width: 600px;
    margin: 0;

    color: #606060;
    font-size: 14px;
    font-weight: 400;
    line-height: 2;
}

/* IMAGE CAROUSEL */

.about-features__carousel {
    position: relative;
    min-width: 0;
}

.about-features__track {
    display: flex;
    align-items: stretch;
    gap: 22px;

    overflow-x: auto;
    overflow-y: hidden;

    padding: 0 25px 5px 0;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;

    scrollbar-width: none;
    -ms-overflow-style: none;
}

.about-features__track::-webkit-scrollbar {
    display: none;
}

.about-features__card {
    position: relative;
    flex: 0 0 62%;
    min-width: 0;
    height: clamp(300px, 22vw, 410px);

    overflow: hidden;
    background: #e8e6df;

    scroll-snap-align: start;
    isolation: isolate;
}

.about-features__card::after {
    position: absolute;
    inset: 0;
    z-index: 0;

    background: linear-gradient(
        0deg,
        rgba(0, 21, 36, 0.72) 0%,
        rgba(0, 21, 36, 0.12) 45%,
        transparent 75%
    );

    content: "";
    pointer-events: none;
}

.about-features__card img {
    position: absolute;
    inset: 0;

    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.8s cubic-bezier(.2, .7, .2, 1);
}

.about-features__card:hover img {
    transform: scale(1.06);
}

.about-features__card-overlay {
    position: absolute;
    right: 24px;
    bottom: 25px;
    left: 24px;
    z-index: 1;

    color: #fff;

    transform: translateY(5px);
    transition: transform 0.35s ease;
}

.about-features__card:hover .about-features__card-overlay {
    transform: translateY(0);
}

.about-features__card-overlay > span {
    display: block;
    margin-bottom: 9px;

    color: var(--af-gold);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 2px;
}

.about-features__card-overlay h3 {
    margin: 0;

    color: #fff;

    font-family: var(
        --font-heading,
        "Bodoni MT",
        Didot,
        Georgia,
        serif
    );

    font-size: clamp(21px, 2vw, 29px);
    font-weight: 400;
    line-height: 1.2;
}

/* CAROUSEL CONTROLS */

.about-features__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 24px 30px 0 0;
}

.about-features__counter {
    display: flex;
    align-items: center;
    gap: 12px;

    color: #777;
    font-size: 11px;
    letter-spacing: 1px;
}

#aboutFeaturesCurrent {
    color: var(--af-navy);
    font-weight: 700;
}

.about-features__counter-line {
    width: 48px;
    height: 1px;
    background: #d8d8d8;
}

.about-features__arrows {
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-features__arrow {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;

    border: 1px solid #e5e5e5;
    border-radius: 50%;

    background: #fff;
    color: var(--af-navy);

    font-size: 24px;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.about-features__arrow:hover:not(:disabled) {
    border-color: var(--af-navy);
    background: var(--af-navy);
    color: #fff;
    transform: translateY(-2px);
}

.about-features__arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.about-features__arrow:focus-visible {
    outline: 2px solid var(--af-gold);
    outline-offset: 4px;
}

/* TABLET */

@media (max-width: 1050px) {
    .about-features {
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
        gap: 40px;
        padding: 55px 0 70px;
    }

    .about-features__visual {
        min-height: 590px;
        height: 70vw;
        max-height: 760px;
    }

    .about-features__intro {
        width: 100%;
        margin-bottom: 65px;
        padding-right: 25px;
    }

    .about-features__track {
        gap: 16px;
    }

    .about-features__card {
        flex-basis: 78%;
        height: 320px;
    }

    .about-features__controls {
        padding-right: 20px;
    }
}

/* MOBILE */

@media (max-width: 700px) {
    .about-features {
        grid-template-columns: 1fr;
        gap: 42px;
        padding: 0px 0 55px;
    }

    .about-features__visual {
        width: 88%;
        min-height: 0;
        height: 440px;
        max-height: none;
        border-radius: 0 0 0px 0;
    }

    .about-features__vertical-title {
        font-size: clamp(58px, 17vw, 115px);
        padding: 0px 0 0 40px 0;
    }

    .about-features__content {
        padding-top: 0;
    }

    .about-features__intro {
        width: auto;
        margin: 0 7% 38px;
        padding-right: 0;
    }

    .about-features__intro h2 {
        font-size: clamp(32px, 8vw, 42px);
    }

    .about-features__intro p {
        font-size: 13px;
        line-height: 1.85;
    }

    .about-features__track {
        gap: 15px;
        padding: 0 7% 5px;
    }

    .about-features__card {
        flex-basis: 82%;
        height: 350px;
    }

    .about-features__controls {
        padding: 20px 7% 0;
    }

    .about-features__arrow {
        width: 43px;
        height: 43px;
    }
}

@media (max-width: 420px) {
    .about-features__visual {
        height: 360px;
    }

    .about-features__card {
        flex-basis: 88%;
        height: 300px;
    }

    .about-features__card-overlay {
        right: 18px;
        bottom: 20px;
        left: 18px;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    .about-features *,
    .about-features *::before,
    .about-features *::after {
        scroll-behavior: auto !important;
        animation: none !important;
        transition: none !important;
    }
}
