/* HU-0007 — design system da home (subset do site /{slug}).
   Todo seletor de componente é prefixado com .vh-home (wrapper da view).
   Não usar body.vh-home .header — o header GoTrip do layout ficaria estilizado. */

.vh-home {
    --font-primary: "Jost", sans-serif;
    --font-script: "Caveat", cursive;
    --primary: #04B6B0;
    --secondary: #FC9D1B;
    --navy: #020E43;
    --ink: #193657;
    --gray: #606060;
    --teal: var(--primary);
    --teal-dark: color-mix(in srgb, var(--primary) 78%, #3A4A52);
    --aqua: color-mix(in srgb, var(--primary) 50%, #C5FFF6);
    --orange: var(--secondary);
    --secondary-light: color-mix(in srgb, var(--secondary) 55%, #FFFFFF);
    --hero-dark: color-mix(in srgb, var(--primary) 55%, #071228);
    --bg: #F9FAFB;
    --white: #FFFFFF;
    --radius: 16px;
    --shadow: 0 8px 30px rgba(2, 14, 67, 0.08);
    --shadow-soft: 0 4px 16px rgba(2, 14, 67, 0.06);
    font-family: var(--font-primary);
    background: var(--bg);
    color: var(--ink);
    display: block;
}

@supports not (color: color-mix(in srgb, red 50%, blue)) {
    .vh-home {
        --teal-dark: #048e89;
        --aqua: #7ad9d4;
        --secondary-light: #fdc97a;
        --hero-dark: #071228;
    }
}

.vh-home .script {
    font-family: var(--font-script);
    font-weight: 600;
    color: var(--teal);
    font-size: 1.15em;
}

.vh-home .section {
    padding-top: 56px;
    padding-bottom: 8px;
}

.vh-home .section__title,
.vh-home .sectionTitle__title {
    font-family: var(--font-primary);
    font-size: 32px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
}

.vh-home .section__subtitle,
.vh-home .sectionTitle__text {
    margin-top: 8px;
    color: var(--gray);
    font-size: 15px;
}

.vh-home .section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

/* ---- Hero + overlay (não pega o header GoTrip do layout) ---- */

.vh-home .hero {
    position: relative;
    color: var(--white);
    overflow: visible;
    background: var(--hero-dark);
}

.vh-home .hero__bg {
    position: absolute;
    inset: 0;
    background-color: var(--hero-dark);
    background-position: center 30%;
    background-size: cover;
    background-repeat: no-repeat;
}

.vh-home .hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .12) 110px, transparent 200px),
        linear-gradient(90deg,
            color-mix(in srgb, var(--hero-dark) 92%, transparent) 0%,
            color-mix(in srgb, var(--hero-dark) 62%, transparent) 42%,
            color-mix(in srgb, var(--hero-dark) 18%, transparent) 100%),
        linear-gradient(180deg,
            color-mix(in srgb, var(--hero-dark) 45%, transparent) 0%,
            color-mix(in srgb, var(--hero-dark) 8%, transparent) 100%);
}

@supports not (color: color-mix(in srgb, red 50%, blue)) {
    .vh-home .hero__bg::after {
        background:
            linear-gradient(180deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .12) 110px, transparent 200px),
            linear-gradient(90deg, rgba(7, 18, 40, .92) 0%, rgba(7, 18, 40, .55) 42%, rgba(7, 18, 40, .18) 100%),
            linear-gradient(180deg, rgba(7, 18, 40, .45) 0%, rgba(7, 18, 40, .08) 100%);
    }
}

/* Abaixo do header GoTrip (90px fixed). Sem logo própria — o menu global já tem. */
.vh-home .vh-hero-bar {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 8px;
    background: transparent;
}

.vh-home .vh-hero-bar__nav {
    display: flex;
    gap: 36px;
    margin: 0;
    font-weight: 500;
    font-size: 16px;
}

.vh-home .vh-hero-bar__nav a {
    color: var(--white);
    opacity: .95;
    text-decoration: none;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
}

.vh-home .vh-hero-bar__nav a:hover {
    opacity: 1;
    text-shadow: 0 0 12px rgba(255, 255, 255, .4);
}

.vh-home .hero__content {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 32px;
    padding-top: 24px;
    padding-bottom: 120px;
}

.vh-home .hero__lettering {
    flex: 1 1 280px;
    min-width: 0;
}

.vh-home .hero__title {
    font-size: 58px;
    font-weight: 700;
    line-height: 1.05;
    max-width: 520px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .45), 0 4px 28px rgba(0, 0, 0, .4);
    color: var(--white);
}

.vh-home .hero__title .script {
    display: block;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
}

.vh-home .hero__lead {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.5;
    max-width: 480px;
    color: var(--white);
    opacity: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .8), 0 2px 16px rgba(0, 0, 0, .55);
}

.vh-home .hero__search {
    position: relative;
    z-index: 5;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 20px;
    padding: 16px;
    flex: 1 1 520px;
    width: auto;
    max-width: 640px;
    min-width: 0;
    box-sizing: border-box;
}

.vh-home .hero__search .mainSearch {
    margin-top: 0;
    padding: 8px !important;
    background: #ffffff !important;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(2, 14, 67, 0.14);
}

.vh-home .hero__search .mainSearch.bg-white {
    background: #ffffff !important;
}

.vh-home .hero__search .button-grid {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: stretch;
    min-width: 0;
}

.vh-home .hero__search .button-grid > * + * {
    border-left: 1px solid var(--color-border, #e5e7eb);
    border-top: 0;
}

.vh-home .hero__search .searchMenu-loc,
.vh-home .hero__search .searchMenu-date {
    min-width: 0;
    padding: 8px 14px !important;
}

.vh-home .hero__search .searchMenu-loc {
    flex: 1 1 160px;
}

.vh-home .hero__search .searchMenu-date {
    flex: 0 1 210px;
}

.vh-home .hero__search label {
    display: block;
    margin: 0 0 2px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--navy);
}

.vh-home .hero__search .form-control {
    width: 100%;
    min-width: 0;
    height: auto;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    font-size: 14px;
    line-height: 1.35;
    text-overflow: ellipsis;
    color: var(--navy);
}

.vh-home .hero__search .form-control::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.vh-home .hero__search .button-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    padding: 8px;
    border: 0 !important;
}

.vh-home .hero__search .mainSearch__submit {
    width: auto !important;
    max-width: none;
    height: 48px !important;
    padding: 0 18px !important;
    white-space: nowrap;
    background: var(--primary) !important;
    border-radius: 12px !important;
}

.vh-home .exp-card:focus-visible,
.vh-home .dest-card:focus-visible,
.vh-home .vh-hero-bar__nav a:focus-visible,
.vh-home .section__more:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 3px;
}

.vh-home #destinos,
.vh-home #experiencias {
    scroll-margin-top: 96px;
}

html:has(.vh-home) {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html:has(.vh-home) {
        scroll-behavior: auto;
    }
}

.vh-home .hero__wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: 90px;
    z-index: 1;
    pointer-events: none;
}

.vh-home .hero__search .suggestions-box {
    z-index: 20;
    color: var(--ink);
    background: var(--white);
}

.vh-home .hero__search .suggestions-title {
    color: var(--gray);
}

.vh-home .hero__search .suggestion-title {
    color: var(--navy);
}

.vh-home .hero__search .suggestion-sub {
    color: var(--gray);
}

/* ---- Destinos ---- */

.vh-home .dest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 24px;
}

.vh-home .dest-card {
    border-radius: 18px;
    background-size: cover;
    background-position: center;
    min-height: 340px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--white);
}

.vh-home .dest-card__overlay {
    padding: 22px;
    color: var(--white);
    width: 100%;
    background: linear-gradient(180deg, rgba(2, 14, 67, 0) 0%, rgba(2, 14, 67, .82) 85%);
}

.vh-home .dest-card__overlay h3 {
    font-size: 20px;
    margin-bottom: 0;
    color: var(--white);
}

/* ---- Cards de experiência ---- */

.vh-home .exp-card {
    display: block;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.vh-home .exp-card__media {
    position: relative;
    height: 160px;
    background: #e8eef2;
}

.vh-home .exp-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vh-home .exp-card__local {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: rgba(2, 14, 67, 0.75);
    color: var(--white);
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
}

.vh-home .exp-card__body {
    padding: 16px;
}

.vh-home .exp-card__body h3 {
    font-size: 15.5px;
    color: var(--navy);
    margin-bottom: 14px;
    line-height: 1.35;
    min-height: 42px;
}

.vh-home .exp-card__foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
}

.vh-home .exp-card__duration {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 500;
    color: var(--navy);
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    padding: 4px 10px;
    border-radius: 8px;
    line-height: 1.2;
    white-space: nowrap;
}

.vh-home .exp-card__price {
    text-align: right;
    display: grid;
}

.vh-home .exp-card__price small {
    font-size: 11px;
    color: var(--gray);
}

.vh-home .exp-card__price s {
    font-size: 12px;
    color: var(--gray);
}

.vh-home .exp-card__price strong {
    font-size: 18px;
    color: var(--navy);
}

.vh-home .js-section-slider .swiper-slide .exp-card {
    width: 100%;
}

.vh-home .home-operadores-mais-wrap,
.vh-home .home-destaques-mais-wrap {
    display: flex;
    justify-content: center;
    padding: 8px 0 40px;
}

.vh-home .home-operadores-mais,
.vh-home .home-destaques-mais {
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.vh-home .home-operadores-mais:disabled,
.vh-home .home-destaques-mais:disabled {
    opacity: 0.65;
    cursor: wait;
}

.vh-home .section__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 18px;
    background: color-mix(in srgb, var(--primary) 12%, #FFFFFF);
    color: var(--primary);
    text-decoration: none;
}

@supports not (color: color-mix(in srgb, red 50%, blue)) {
    .vh-home .section__more {
        background: #e6f8f7;
        color: var(--primary);
    }
}

@media (max-width: 1100px) {
    .vh-home .dest-grid {
        gap: 24px;
    }

    .vh-home .hero__title {
        font-size: 42px;
    }

    .vh-home .hero__search {
        max-width: 100%;
    }
}

@media (max-width: 820px) {
    .vh-home .hero__content {
        flex-direction: column;
        align-items: stretch;
        padding-bottom: 80px;
    }

    .vh-home .vh-hero-bar {
        padding-top: 90px;
    }

    .vh-home .vh-hero-bar__nav {
        display: flex;
        width: 100%;
        margin: 0;
        gap: 20px;
        font-size: 14px;
    }

    .vh-home .hero__search {
        width: 100%;
        max-width: none;
        flex-basis: 100%;
    }

    .vh-home .hero__search .button-grid {
        flex-wrap: wrap;
    }

    .vh-home .hero__search .button-grid > * + * {
        border-left: 0;
        border-top: 1px solid var(--color-border, #e5e7eb);
    }

    .vh-home .hero__search .searchMenu-loc,
    .vh-home .hero__search .searchMenu-date {
        flex: 1 1 100%;
    }

    .vh-home .hero__search .button-item {
        flex: 1 1 100%;
        padding: 8px;
    }

    .vh-home .hero__search .mainSearch__submit {
        width: 100% !important;
    }

    .vh-home .dest-grid {
        grid-template-columns: 1fr;
    }

    .vh-home .section__title,
    .vh-home .sectionTitle__title {
        font-size: 26px;
    }
}
