/**
 * Costa Platform â€” Destination Overview Diamond
 *
 * SeÃ§Ã£o: Single Destino / VisÃ£o Geral
 * FundaÃ§Ã£o: Destination Page Foundation
 */

/* ==========================================================
   1. SEÃ‡ÃƒO
   ========================================================== */

.cst-destination-overview {
    background:
        radial-gradient(
            circle at 16% 16%,
            rgba(212, 175, 55, 0.10),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f7f9fc 100%
        );
    overflow: hidden;
}

/* ==========================================================
   2. ESTRUTURA INTERNA
   ========================================================== */

.cst-destination-overview__inner {
    display: grid;
    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(460px, 0.92fr);
    gap: clamp(
        56px,
        5.2vw,
        88px
    );
    align-items: center;
}

.cst-destination-overview__content {
    width: min(
        100%,
        var(--cst-destination-reading-wide, 820px)
    );
}

/* ==========================================================
   3. CABEÃ‡ALHO E TEXTO
   ========================================================== */

.cst-destination-overview__eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 22px;
    padding: 10px 16px;
    border: 1px solid rgba(6, 43, 87, 0.10);
    border-radius: 999px;
    background: rgba(6, 43, 87, 0.055);
    color: #d4af37;
    font-size: 12px;
    font-weight: 950;
    line-height: 1.2;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.cst-destination-overview__title {
    margin: 0;
    color: #062b57;
    font-size: clamp(48px, 4.9vw, 84px);
    font-weight: 950;
    line-height: 0.92;
    letter-spacing: -0.072em;
}

.cst-destination-overview__lead {
    width: min(
        100%,
        var(--cst-destination-reading-default, 760px)
    );
    margin: 30px 0 0;
    color: rgba(6, 43, 87, 0.74);
    font-size: clamp(19px, 1.34vw, 24px);
    font-weight: 680;
    line-height: 1.62;
}

.cst-destination-overview__text {
    width: min(
        100%,
        var(--cst-destination-reading-default, 760px)
    );
    margin: 38px 0 0;
    color: rgba(6, 43, 87, 0.70);
    font-size: 18px;
    font-weight: 540;
    line-height: 1.78;
}

/* ==========================================================
   4. MÃ‰TRICAS
   ========================================================== */

.cst-destination-overview__metrics {
    margin-top: 34px;
}

.cst-destination-overview__metrics
    .cst-metrics__item {
    min-height: 48px;
    padding-inline: 20px;
}

.cst-destination-overview__metrics
    .cst-icon {
    width: 15px;
    height: 15px;
    color: #d4af37;
}

/* ==========================================================
   5. DESTAQUES
   ========================================================== */

.cst-destination-overview__facts {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap:
        var(--cst-destination-grid-gap-mobile, 16px);
    margin-top: 38px;
}

.cst-destination-overview__fact {
    min-height: 108px;
    padding: 26px;
    border: 1px solid rgba(6, 43, 87, 0.065);
    border-radius: 24px;
    background: #ffffff;
    box-shadow:
        0 16px 40px rgba(6, 43, 87, 0.052);
    transition:
        transform 280ms ease,
        box-shadow 280ms ease,
        border-color 280ms ease;
}

.cst-destination-overview__fact:hover {
    border-color: rgba(212, 175, 55, 0.24);
    box-shadow:
        0 26px 60px rgba(6, 43, 87, 0.095);
    transform: translateY(-4px);
}

.cst-destination-overview__fact span {
    display: block;
    margin-bottom: 10px;
    color: rgba(6, 43, 87, 0.52);
    font-size: 11px;
    font-weight: 950;
    line-height: 1.2;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.cst-destination-overview__fact strong {
    display: block;
    color: #062b57;
    font-size: 18px;
    font-weight: 950;
    line-height: 1.25;
}

/* ==========================================================
   6. IMAGEM
   ========================================================== */

.cst-destination-overview__media {
    position: relative;
    min-height: clamp(
        560px,
        46vw,
        680px
    );
    overflow: hidden;
    border-radius: 38px;
    background-color: #062b57;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow:
        0 40px 84px rgba(6, 43, 87, 0.135);
    transform: translateZ(0);
    transition:
        transform 320ms ease,
        box-shadow 320ms ease;
}

.cst-destination-overview__media:hover {
    box-shadow:
        0 50px 100px rgba(6, 43, 87, 0.17);
    transform: translateY(-3px);
}

.cst-destination-overview__media::before {
    content: "";
    position: absolute;
    inset: 18px;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 28px;
    pointer-events: none;
}

.cst-destination-overview__media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            180deg,
            rgba(6, 43, 87, 0.02) 0%,
            rgba(6, 43, 87, 0.18) 100%
        );
    pointer-events: none;
}

/* ==========================================================
   7. TABLET
   ========================================================== */

@media (max-width: 1023px) {
    .cst-destination-overview__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 52px;
    }

    .cst-destination-overview__content {
        width: min(
            100%,
            880px
        );
    }

    .cst-destination-overview__media {
        min-height: 520px;
        border-radius: 34px;
    }

    .cst-destination-overview__media::before {
        border-radius: 25px;
    }
}

/* ==========================================================
   8. MOBILE
   ========================================================== */

@media (max-width: 767px) {
    .cst-destination-overview__inner {
        gap: 40px;
    }

    .cst-destination-overview__eyebrow {
        margin-bottom: 18px;
    }

    .cst-destination-overview__title {
        font-size: clamp(44px, 13vw, 62px);
    }

    .cst-destination-overview__lead {
        margin-top: 24px;
        font-size: 17px;
        line-height: 1.62;
    }

    .cst-destination-overview__metrics {
        margin-top: 28px;
    }

    .cst-destination-overview__text {
        margin-top: 30px;
        font-size: 16px;
        line-height: 1.72;
    }

    .cst-destination-overview__facts {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        margin-top: 30px;
    }

    .cst-destination-overview__fact {
        min-height: 0;
        padding: 22px;
        border-radius: 22px;
    }

    .cst-destination-overview__media {
        min-height: 380px;
        border-radius: 28px;
    }

    .cst-destination-overview__media::before {
        inset: 12px;
        border-radius: 21px;
    }
}

/* ==========================================================
   9. MOVIMENTO REDUZIDO
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
    .cst-destination-overview__fact,
    .cst-destination-overview__media {
        transition: none;
    }

    .cst-destination-overview__fact:hover,
    .cst-destination-overview__media:hover {
        transform: none;
    }
}