.retreva-home {
    display: grid;
    gap: clamp(54px, 6vw, 92px);
}

body #st-content-wrapper {
    padding-top: 60px;
}

.retreva-home-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    gap: clamp(28px, 4vw, 44px);
    align-items: end;
    margin-inline: calc(50% - 50svw);
    margin-bottom: -40px;
    min-height: clamp(420px, 56vh, 640px);
    padding: clamp(34px, 5vw, 70px) max(2.5rem, 50svw - 600px);
    overflow: hidden;
    background:
        linear-gradient(
            138deg,
            color-mix(in oklab, var(--retreva-primary), black 8%) 0%,
            var(--retreva-primary) 44%,
            color-mix(in oklab, var(--retreva-secondary), var(--retreva-primary) 42%) 100%
        ),
        var(--retreva-primary);
    color: var(--retreva-white);
}

.retreva-home-hero::before,
.retreva-home-hero::after {
    content: '';
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    pointer-events: none;
}

.retreva-home-hero::before {
    width: min(52vw, 720px);
    height: min(52vw, 720px);
    right: -12%;
    top: -32%;
    background: radial-gradient(circle, rgb(230 238 247 / 0.24), transparent 68%);
    animation: retreva-home-drift 18s ease-in-out infinite alternate;
}

.retreva-home-hero::after {
    width: min(42vw, 560px);
    height: min(42vw, 560px);
    left: -18%;
    bottom: -38%;
    background: radial-gradient(circle, rgb(242 159 58 / 0.16), transparent 70%);
    animation: retreva-home-drift 22s ease-in-out infinite alternate-reverse;
}

@keyframes retreva-home-drift {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(28px, -16px, 0) scale(1.08);
    }
}

.retreva-home-hero__copy {
    max-width: 820px;
}

.retreva-home-hero h1 {
    max-width: 760px;
    margin: 0 0 18px;
    color: inherit;
    font-size: clamp(42px, 7vw, 84px);
    line-height: 0.96;
    font-weight: 650;
}

.retreva-home-hero p {
    max-width: 680px;
    margin: 0;
    color: rgb(255 255 255 / 0.88);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.55;
}

.retreva-home-search {
    position: relative;
    display: grid;
    gap: 14px;
    padding: 16px;
    background: linear-gradient(135deg, rgb(255 255 255 / 0.15), rgb(255 255 255 / 0.08));
    box-shadow: 0 22px 70px rgb(var(--retreva-shadow-color) / 0.28);
    backdrop-filter: blur(20px) saturate(1.2);
    border-radius: 28px;
}

.retreva-home-search__modes {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    padding: 4px;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.18);
}

.retreva-home-search__modes label {
    margin: 0;
    cursor: pointer;
}

.retreva-home-search__modes input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.retreva-home-search__modes label > span {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 0 18px;
    border-radius: 999px;
    color: rgb(255 255 255 / 0.82);
    font-size: 14px;
    font-weight: 600;
}

.retreva-home-search__mode-short {
    display: none;
}

.retreva-home-search__mode-count {
    font-weight: 650;
}

.retreva-home-search__modes input:checked + span {
    background: rgb(255 255 255 / 0.94);
    color: var(--retreva-primary);
    box-shadow: 0 10px 24px rgb(var(--retreva-shadow-color) / 0.18);
}

.retreva-home-search__bar {
    display: grid;
    grid-template-columns: minmax(220px, 1.45fr) minmax(150px, 0.8fr) minmax(150px, 0.8fr) minmax(150px, 0.75fr) auto;
    gap: 1px;
    overflow: hidden;
    border-radius: 16px;
    background: rgb(255 255 255 / 0.84);
}

.retreva-home-search__field {
    display: grid;
    gap: 0px 4px;
    min-width: 0;
    margin: 0;
    padding: 16px 20px;
    background: rgb(255 255 255 / 0.9);
}

.retreva-home-search__field span {
    color: var(--heading-color);
    font-size: 14px;
    font-weight: 600;
}

.retreva-home-search__field :is(select, input) {
    width: 100%;
    min-width: 0;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--retreva-text);
    font-size: 15px;
    outline: 0;
    cursor: pointer;
}

.retreva-home-search__field select {
    cursor: pointer;
}

.retreva-home-search__submit {
    appearance: none;
    min-width: 142px;
    margin: 0;
    border: none;
    padding-inline: 1.25em;
    flex-direction: row-reverse;
    justify-content: space-between;
    font-weight: 650;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 0;
    --link-color-hover: var(--orange-color);
    cursor: pointer;
}

.retreva-home-search__submit i {
    margin-left: 1rem;
    font-size: 1.5em;
}

@supports (appearance: base-select) {
    .retreva-home-search__field select {
        appearance: base-select;
        align-items: center;
    }

    .retreva-home-search__field select::picker(select) {
        border: 1px solid var(--retreva-border);
        border-radius: 14px;
        box-shadow: 0 18px 48px rgb(var(--retreva-shadow-color) / 0.16);
    }

    ::picker-icon {
        display: none;
    }
}

.retreva-home-section,
.retreva-home-module,
.retreva-home-trust {
    display: grid;
    gap: 26px;
}

.retreva-home-section__header {
    max-width: 900px;
}

.retreva-home-section__cta {
    display: flex;
    justify-content: center;
    margin-top: 4px;
}

.retreva-home-section--hotel .item-service,
.retreva-home-module .item-service {
    container-type: inline-size;
}

.retreva-home-section--hotel .retreva-home-hotel-col--lead .item.service-border,
.retreva-home-module .retreva-home-hotel-col--lead .item.service-border {
    grid-template-columns: minmax(280px, 56%) minmax(0, 1fr);
}

.retreva-home-section--hotel .retreva-home-hotel-col--lead .featured-image,
.retreva-home-module .retreva-home-hotel-col--lead .featured-image {
    min-height: clamp(260px, 24vw, 360px);
}

.retreva-home-section--hotel .retreva-search-card__teaser,
.retreva-home-module .retreva-search-card__teaser {
    display: -webkit-box;
    margin-top: 12px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

@container (max-width: 430px) {
    .retreva-home-section--hotel .retreva-search-card__teaser,
    .retreva-home-module .retreva-search-card__teaser,
    .retreva-home-section--hotel .retreva-search-card__chips,
    .retreva-home-module .retreva-search-card__chips {
        display: none;
    }
}

.retreva-home-module {
    padding: clamp(24px, 3vw, 38px) 0;
    border-top: 1px solid var(--retreva-border-soft);
}

.retreva-home-module + .retreva-home-module {
    margin-top: clamp(28px, 4vw, 52px);
}

.retreva-home-module__head {
    max-width: 780px;
}

.retreva-home-module__head--media {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr);
    max-width: none;
    margin-inline: calc(50% - 50svw);
    align-items: stretch;
    gap: clamp(22px, 3vw, 42px);
    overflow: hidden;
    background: var(--retreva-primary);
    color: var(--retreva-white);
}

.retreva-home-module__head--media .btn-v2.btn-primary {
    --main-color: var(--retreva-secondary);
}

.retreva-home-module__image {
    width: 100%;
    min-height: 260px;
    max-height: 600px;
    margin: 0;
}

.retreva-home-module__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.retreva-home-module__copy {
    align-self: center;
}

.retreva-home-module__head--media .retreva-home-module__copy {
    padding: clamp(28px, 4vw, 54px) clamp(26px, 4vw, 62px) clamp(28px, 4vw, 54px) 0;
    max-width: 700px;
}

.retreva-home-module__head h2 {
    font-size: clamp(2em, 4vw, 4em);
    font-weight: 650;
    letter-spacing: 0.025em;
    margin: 0 0 10px;
    color: var(--heading-color);
}

.retreva-home-module__head--media h2 {
    color: inherit;
}

.retreva-home-module__head p {
    margin: 0;
    color: var(--retreva-text);
    font-size: 17px;
    line-height: 1.7;
}

.retreva-home-module__head--media p {
    color: rgb(255 255 255 / 0.82);
}

.retreva-home-module__inline-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    font-weight: 650;
    text-decoration: none;
}

.retreva-home-module__inline-cta:hover,
.retreva-home-module__inline-cta:focus-visible {
    text-decoration: none;
}

.retreva-home-module__subhead {
    margin: 18px 0 -6px;
    color: var(--heading-color);
    font-size: 18px;
}

.retreva-home-trust {
    padding: clamp(28px, 4vw, 48px);
    border-radius: 16px;
    background: var(--retreva-primary);
    color: var(--retreva-white);
}

.retreva-home-trust .retreva-section-heading h2,
.retreva-home-trust .retreva-section-heading__main {
    color: inherit;
}

.retreva-home-trust__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.retreva-home-trust__grid > div {
    padding: 22px;
    border: 1px solid rgb(255 255 255 / 0.18);
    border-radius: 12px;
    background: rgb(255 255 255 / 0.08);
}

.retreva-home-trust__grid strong {
    display: block;
    margin-bottom: 8px;
    color: inherit;
    font-size: 18px;
    font-weight: 600;
}

.retreva-home-trust__grid p {
    margin: 0;
    color: rgb(255 255 255 / 0.82);
    line-height: 1.65;
}

.retreva-home-closing {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: start;
    padding: clamp(34px, 6vw, 74px);
    border-radius: 18px;
    background: var(--retreva-light-bg);
}

.retreva-home-closing__lead h2,
.retreva-home-faq__head h2 {
    margin: 0 0 18px;
    color: var(--heading-color);
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.05;
    font-weight: 600;
}

.retreva-home-closing__intro {
    max-width: 620px;
}

.retreva-home-closing__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.retreva-home-faq__head {
    margin-bottom: 22px;
}

.retreva-home-faq__items {
    display: grid;
    gap: 12px;
}

.retreva-home-faq__item {
    border: 1px solid rgb(var(--retreva-shadow-color) / 0.1);
    border-radius: 12px;
    background: var(--retreva-white);
    box-shadow: 0 16px 40px rgb(var(--retreva-shadow-color) / 0.06);
}

.retreva-home-faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    color: var(--heading-color);
    font-weight: 600;
    cursor: pointer;
}

.retreva-home-faq__item summary::-webkit-details-marker {
    display: none;
}

.retreva-home-faq__item summary::after {
    content: '+';
    color: var(--main-color);
    font-size: 22px;
    line-height: 1;
}

.retreva-home-faq__item[open] summary::after {
    content: '–';
}

.retreva-home-faq__item p {
    margin: 0;
    padding: 0 20px 20px;
    color: var(--body-color);
    line-height: 1.65;
}

@media (max-width: 1199px) {
    .retreva-home-search__bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-radius: 18px;
    }

    .retreva-home-search__submit {
        grid-column: 1 / -1;
        min-height: 54px;
        border-radius: 0 0 18px 18px;
    }

    .retreva-home-closing {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 992px) {
    .browser--chrome .retreva-search-card--wide {
        display: grid;
        min-height: stretch;
    }

    .browser--chrome #st-content-wrapper .retreva-search-card--wide .featured-image {
        aspect-ratio: auto;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .retreva-home-section--hotel .row > .retreva-home-hotel-col--lead,
    .retreva-home-module .row > .retreva-home-hotel-col--lead {
        width: 66.666667%;
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }

    .retreva-home-section--hotel .row > .retreva-home-hotel-col--standard,
    .retreva-home-module .row > .retreva-home-hotel-col--standard {
        width: 33.333333%;
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    #st-content-wrapper .retreva-search-card-col--wide .featured-image {
        aspect-ratio: initial;
    }

    .retreva-home-search__bar .form-date-search {
        order: -1;
    }
}

@media (max-width: 767px) {
    .retreva-home {
        gap: 2em;
    }

    .retreva-home-hero {
        min-height: 0;
        padding: 28px 18px;
        margin-inline: calc(var(--bs-gutter-x, 0.75rem) * -2);
        border-radius: 0;
        margin-bottom: 0;
    }

    .retreva-home-search__modes {
        width: 100%;
    }

    .retreva-home-search__modes label {
        flex: 1 1 0;
    }

    .retreva-home-search__modes label > span {
        justify-content: center;
        width: 100%;
        padding: 0 10px;
    }

    .retreva-home-search__mode-long {
        display: none;
    }

    .retreva-home-search__mode-short {
        display: inline;
    }

    .retreva-home-search__bar,
    .retreva-home-trust__grid {
        grid-template-columns: 1fr;
    }

    .retreva-home-search__submit {
        grid-column: auto;
    }

    .retreva-home-section--hotel .retreva-search-card--wide .item.service-border,
    .retreva-home-module .retreva-search-card--wide .item.service-border {
        display: block;
    }

    .retreva-home-section--hotel .retreva-home-hotel-col--lead .featured-image,
    .retreva-home-module .retreva-home-hotel-col--lead .featured-image {
        min-height: 0;
        aspect-ratio: 5 / 4;
    }

    .retreva-home-section--hotel .retreva-search-card__teaser,
    .retreva-home-module .retreva-search-card__teaser,
    .retreva-home-section--hotel .retreva-search-card__chips,
    .retreva-home-module .retreva-search-card__chips {
        display: none;
    }

    .retreva-home-section--offer > .row,
    .retreva-home-module > .row {
        align-items: stretch;
        display: flex;
        flex-wrap: nowrap;
        gap: 0;
        margin-right: calc(var(--bs-gutter-x, 0.75rem) * -1);
        margin-left: calc(var(--bs-gutter-x, 0.75rem) * -1);
        padding-right: var(--bs-gutter-x, 0.75rem);
        padding-left: var(--bs-gutter-x, 0.75rem);
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-padding-inline: var(--bs-gutter-x, 0.75rem);
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .retreva-home-section--offer > .row::-webkit-scrollbar,
    .retreva-home-module > .row::-webkit-scrollbar {
        display: none;
    }

    .retreva-home-section--offer > .row > [class*='col-'],
    .retreva-home-module > .row > [class*='col-'] {
        display: flex;
        width: 90%;
        flex: 0 0 90%;
        max-width: 90%;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .retreva-home-section--offer > .row .services-item,
    .retreva-home-module > .row .services-item,
    .retreva-home-section--offer > .row .item.service-border,
    .retreva-home-module > .row .item.service-border {
        width: 100%;
        /* height: 100%; NOTE: breaks stuff with aspect ratio images */
    }

    .retreva-home-section--offer .retreva-lp-offer-col--compact .retreva-offer-card,
    .retreva-home-section--offer .retreva-offer-card,
    .retreva-home-module .retreva-lp-offer-col--compact .retreva-offer-card,
    .retreva-home-module .retreva-offer-card {
        aspect-ratio: 4 / 5;
    }

    .retreva-home-module {
        padding-inline: 0;
    }

    .retreva-home-module__head--media {
        grid-template-columns: 1fr;
    }

    .retreva-home-module__image {
        min-height: 210px;
        aspect-ratio: 16 / 9;
    }

    .retreva-home-module__head--media .retreva-home-module__copy {
        padding: 0 20px 26px;
    }

    .retreva-home-section--hotel .retreva-home-hotel-col--lead .item.service-border,
    .retreva-home-module .retreva-home-hotel-col--lead .item.service-border {
        display: block;
    }

    .retreva-home-section--hotel .retreva-home-hotel-col--lead .featured-image,
    .retreva-home-module .retreva-home-hotel-col--lead .featured-image {
        min-height: 0;
        max-width: 100%;
        aspect-ratio: 5 / 4;
    }
}

@media (min-width: 1200px) {
    .retreva-home-search__bar {
        gap: 0;
        background: rgba(255, 255, 255, 0.95);
    }

    .retreva-home-search__field {
        background: transparent;
    }

    .retreva-home-search__submit {
        border-radius: 14px;
        margin: 5px;
    }

    .retreva-home-search__bar > :is(.destination-search, .form-date-search) {
        border-right: 1px solid rgba(0, 0, 0, 0.06);
    }
}

@media (min-width: 1480px) {
    .container .retreva-home-section--hotel .retreva-home-hotel-col--lead .featured-image,
    .container .retreva-home-module .retreva-home-hotel-col--lead .featured-image {
        min-height: 0;
        aspect-ratio: 5 / 4;
    }

    .retreva-home-search {
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }

    .retreva-home-search__bar {
        grid-template-columns: repeat(4, 1fr) 280px;
        padding-left: 1.5em;
        border-radius: 99vw;
    }

    .retreva-home-search__submit {
        border-radius: 99vw;
        padding-inline: 30px;
        justify-content: space-around;
    }
}

@media (prefers-reduced-motion: reduce) {
    .retreva-home-hero::before,
    .retreva-home-hero::after {
        animation: none;
    }
}
