.home-hero__stage {
    min-height: auto;
    align-items: stretch;
    background: #123551;
}

.home-hero__stage::after {
    background:
        linear-gradient(90deg, rgba(5, 29, 51, .57) 0%, rgba(5, 29, 51, .29) 36%, rgba(5, 29, 51, .04) 73%),
        linear-gradient(180deg, rgba(8, 24, 41, .28) 0%, transparent 34%, rgba(3, 29, 46, .2) 100%);
}

.home-hero__background {
    object-position: center center;
}

.home-hero__container {
    width: min(calc(100% - 48px), 1440px);
    max-width: 1440px;
    min-height: auto;
    justify-content: flex-start;
    gap: clamp(30px, 4.2vw, 58px);
    padding: 52px 0;
}

.home-hero__content {
    align-items: center;
    width: 100%;
    max-width: 100%;
    text-align: center;
}

.home-hero__eyebrow {
    margin-bottom: 12px;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(.7rem, .82vw, .8rem);
    font-weight: 700;
    letter-spacing: .15em;
}

.home-hero__title {
    margin-bottom: 18px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(3.05rem, 4.45vw, 4.2rem);
    line-height: .96;
    letter-spacing: -.025em;
    text-shadow: 0 4px 22px rgba(4, 20, 34, .3);
}

.home-hero__title-italic {
    font-weight: 600;
}

.home-hero__title-bold {
    font-weight: 600;
}

.home-hero__description {
    max-width: 560px;
    margin-inline: auto;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1rem, 1.25vw, 1.15rem);
    line-height: 1.65;
    font-weight: 500;
    letter-spacing: -.015em;
    color: rgba(255,255,255,.92);
}

@media (min-width: 769px) {
    .home-hero__title {
        max-width: none;
        white-space: nowrap;
    }

    .home-hero__title-italic,
    .home-hero__title-bold {
        display: inline;
    }

    .home-hero__title-italic {
        margin-right: .18em;
    }
}

.home-hero__handwritten-note {
    position: absolute;
    z-index: 2;
    right: clamp(120px, 12vw, 240px);
    bottom: clamp(32px, 5.5vw, 68px);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-family: 'Kalam', 'Segoe Print', cursive;
    color: #ffffff;
    transform: rotate(-12deg);
    transform-origin: center right;
    pointer-events: none;
    user-select: none;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 0.9);
}

.home-hero__handwritten-note--mobile {
    display: none;
}

.home-hero__note-lines {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 0.95;
}

.home-hero__note-line {
    display: block;
    font-size: clamp(1.55rem, 2vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.home-hero__note-line--indent {
    padding-left: 0.95em;
}

.home-hero__note-line--middle {
    padding-left: 0.55em;
}

.home-hero__note-line--ending {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding-left: 0.85em;
}

.home-hero__note-heart {
    display: inline-block;
    flex: 0 0 auto;
    width: clamp(19px, 1.55vw, 25px);
    height: clamp(19px, 1.55vw, 25px);
    vertical-align: middle;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
    transform: rotate(8deg) translateY(1px);
}

@media (max-width: 1350px) and (min-width: 1051px) {
    .home-hero__handwritten-note {
        right: clamp(24px, 4vw, 60px);
        bottom: clamp(24px, 4vw, 48px);
        transform: rotate(-11deg) scale(0.92);
        transform-origin: bottom right;
    }
}

@media (max-width: 1050px) and (min-width: 641px) {
    .home-hero__container {
        width: calc(100% - 48px);
        padding: 44px 0;
    }

    .home-hero__handwritten-note {
        right: 24px;
        bottom: 24px;
        transform: rotate(-10deg) scale(0.88);
        transform-origin: bottom right;
    }
}

@media (min-width: 769px) and (max-width: 1120px) {
    .home-hero__handwritten-note--desktop {
        display: none;
    }
}

.home-property-search__button-search {
    display: none;
}

@media (min-width: 901px) {
    .home-property-search {
        max-width: 910px;
    }

    .home-property-search__tabs {
        margin-bottom: 11px;
    }

    .home-property-search__tab {
        padding: 8px 17px;
        font-size: .82rem;
    }

    .home-property-search__tab .material-symbols-outlined {
        font-size: 17px;
    }

    .home-property-search__form {
        padding: 7px 8px 7px 13px;
        border-radius: 18px;
    }

    .home-property-search__field {
        grid-template-columns: 28px minmax(0, 1fr);
        gap: 9px;
        min-height: 56px;
        padding: 5px 11px;
    }

    .home-property-search__field-icon {
        width: 28px;
        height: 28px;
        font-size: 21px;
    }

    .home-property-search__label {
        font-size: .62rem;
    }

    .home-property-search__select,
    .home-property-search__select-trigger,
    .home-property-search__price-trigger,
    .home-property-search__date-trigger,
    .home-property-search__guest-trigger {
        font-size: .87rem;
    }

    .home-property-search__button {
        width: 56px;
        min-width: 56px;
        height: 56px;
        min-height: 56px;
        padding: 0;
        border-radius: 50%;
    }

    .home-property-search__button-label,
    .home-property-search__button-arrow {
        display: none;
    }

    .home-property-search__button .home-property-search__button-search {
        display: inline-block;
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .home-hero {
        position: relative;
        width: 100%;
        margin: 0 !important;
        padding: 0 !important;
        padding-bottom: 0 !important;
        overflow: hidden !important;
        background: #123551;
    }

    .home-hero__shell {
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
    }

    .home-hero__stage {
        position: relative;
        width: 100%;
        height: calc(100vh - var(--site-header-height-mobile, 55px)) !important;
        height: calc(var(--initial-mobile-viewport-height, 100vh) - var(--site-header-height-mobile, 55px)) !important;
        min-height: calc(100vh - var(--site-header-height-mobile, 55px)) !important;
        min-height: calc(var(--initial-mobile-viewport-height, 100vh) - var(--site-header-height-mobile, 55px)) !important;
        max-height: calc(100vh - var(--site-header-height-mobile, 55px)) !important;
        max-height: calc(var(--initial-mobile-viewport-height, 100vh) - var(--site-header-height-mobile, 55px)) !important;
        align-items: stretch;
        overflow: hidden;
    }

    .home-hero__stage::after {
        background:
            linear-gradient(180deg, rgba(5, 22, 43, .78) 0%, rgba(6, 27, 48, .54) 28%, rgba(6, 27, 48, .05) 54%, rgba(5, 26, 42, .4) 100%);
    }

    .home-hero__background {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }

    .home-hero__container {
        position: relative;
        z-index: 2;
        width: min(calc(100% - 24px), 430px);
        max-width: 430px;
        height: 100%;
        min-height: 0 !important;
        max-height: 100% !important;
        margin: 0 auto;
        padding-top: clamp(8px, var(--initial-mobile-viewport-space-sm, 1.5vh), 16px) !important;
        padding-bottom: calc(var(--mobile-app-bar-height, 64px) + env(safe-area-inset-bottom, 0px) + clamp(8px, var(--initial-mobile-viewport-space-sm, 1.5vh), 16px)) !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: center !important;
        align-items: center;
        gap: clamp(14px, var(--initial-mobile-viewport-space-md, 2.5vh), 24px) !important;
    }

    .home-hero__content {
        width: 100%;
        max-width: 390px !important;
        margin: 0 auto;
        text-align: center;
        flex-shrink: 0;
    }

    .home-hero__eyebrow {
        max-width: 36ch;
        margin-bottom: 8px !important;
        font-size: .68rem !important;
        line-height: 1.45 !important;
        letter-spacing: .11em !important;
        font-weight: 700 !important;
        color: #f8d688;
    }

    .home-hero__title {
        max-width: 390px;
        margin: 0 0 8px !important;
        font-size: clamp(2.45rem, 10.2vw, 3.1rem) !important;
        line-height: 1.04 !important;
        letter-spacing: -.03em !important;
    }

    .home-hero__description {
        max-width: 36ch !important;
        margin: 0 auto !important;
        font-size: clamp(0.88rem, 3.7vw, 0.96rem) !important;
        line-height: 1.45 !important;
        font-weight: 500;
        color: #fff;
    }

    .home-listing-shortcuts {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
        flex-shrink: 0;
    }

    .home-hero__scroll-cue {
        display: grid !important;
        place-items: center !important;
        align-self: center !important;
        width: 30px !important;
        height: 46px !important;
        margin: 0 !important;
        flex-shrink: 0;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .home-hero__scroll-cue svg {
        width: 14px !important;
        height: 24px !important;
    }

    .home-hero__handwritten-note--desktop {
        display: none !important;
    }

    .home-hero__handwritten-note--mobile {
        position: static !important;
        display: flex !important;
        align-self: flex-end;
        width: max-content;
        margin-right: 18px;
        transform: translateY(-14px) rotate(-8deg) !important;
        transform-origin: center right;
    }

    .home-hero__handwritten-note--mobile .home-hero__note-line {
        font-size: 1.28rem !important;
    }

    .home-hero__handwritten-note--mobile .home-hero__note-heart {
        width: 19px !important;
        height: 19px !important;
    }

    .home-property-search {
        width: 100% !important;
        max-width: 500px !important;
        margin: 0 auto !important;
        align-self: center;
    }

    .home-property-search__tabs {
        display: flex !important;
        width: max-content !important;
        max-width: 100%;
        box-sizing: border-box;
        gap: 3px !important;
        margin-bottom: 8px !important;
        padding: 3px !important;
        border-radius: 16px !important;
        background: rgba(7, 47, 68, .94);
        border: 1px solid rgba(255, 255, 255, .55);
        box-shadow: 0 8px 22px rgba(3, 24, 40, .25);
    }

    .home-property-search__tab {
        flex: 0 0 auto !important;
        min-width: 0 !important;
        min-height: 36px;
        box-sizing: border-box;
        justify-content: center !important;
        gap: 4px !important;
        padding: 0 9px !important;
        border-radius: 16px !important;
        font-size: .72rem !important;
        white-space: nowrap;
    }

    .home-property-search__tab .material-symbols-outlined {
        font-size: 15px !important;
    }

    .home-property-search__form {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0 !important;
        padding: 6px 8px 8px !important;
        border: 1px solid rgba(225, 232, 236, .9) !important;
        border-radius: 18px !important;
        background: #fff !important;
        box-shadow: 0 16px 38px rgba(4, 24, 40, .3) !important;
    }

    .home-property-search__field {
        display: grid !important;
        grid-template-columns: 22px minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 7px !important;
        min-width: 0;
        min-height: 50px !important;
        margin: 0 !important;
        padding: 5px 6px !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-sizing: border-box !important;
    }

    .home-property-search__field:nth-of-type(odd) {
        border-right: 1px solid #d8e1e7 !important;
    }

    .home-property-search__field:nth-of-type(even) {
        padding-left: 10px !important;
    }

    .home-property-search__field:nth-of-type(-n + 2) {
        border-bottom: 1px solid #d8e1e7 !important;
    }

    .home-property-search__field:hover,
    .home-property-search__field:focus-within {
        background: #f6f9fa !important;
    }

    .home-property-search__field + .home-property-search__field::before {
        display: none !important;
    }

    .home-property-search__field-icon {
        display: grid !important;
        place-items: center !important;
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
        font-size: 19px !important;
        color: #0b3b52 !important;
        background: transparent !important;
    }

    .home-property-search__field-copy {
        display: flex !important;
        flex-direction: column !important;
        gap: 2px !important;
        min-width: 0 !important;
    }

    .home-property-search__label {
        font-size: .58rem !important;
        line-height: 1.1 !important;
        letter-spacing: .06em !important;
        color: #667789 !important;
        white-space: nowrap;
    }

    .home-property-search__select,
    .home-property-search__select-trigger,
    .home-property-search__price-trigger,
    .home-property-search__date-trigger,
    .home-property-search__guest-trigger {
        width: 100%;
        min-height: 20px;
        padding: 0 !important;
        border: 0 !important;
        background-color: transparent !important;
        font-size: .76rem !important;
        line-height: 1.3 !important;
        font-weight: 700 !important;
        color: #14273a !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .home-property-search__select-trigger,
    .home-property-search__price-trigger,
    .home-property-search__date-trigger,
    .home-property-search__guest-trigger {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 0 !important;
    }

    .home-property-search__select {
        padding-right: 0 !important;
        background-image: none !important;
    }

    .home-property-search__trigger-arrow {
        display: none !important;
    }

    .home-property-search__button {
        grid-column: 1 / -1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        width: 100% !important;
        min-height: 34px !important;
        margin-top: 5px !important;
        padding: 0 12px !important;
        border-radius: 9px !important;
        font-size: .78rem !important;
        font-weight: 700 !important;
        box-shadow: none !important;
    }

    .home-property-search__button .material-symbols-outlined {
        font-size: 16px !important;
    }
}

@media (max-width: 370px) {
    .home-hero__container {
        padding-inline: 0 !important;
    }

    .home-hero__title {
        font-size: clamp(2.15rem, 9.6vw, 2.45rem) !important;
    }

    .home-hero__handwritten-note--mobile {
        margin-right: 8px;
    }

    .home-hero__handwritten-note--mobile .home-hero__note-line {
        font-size: 1.16rem !important;
    }

    .home-property-search__tab {
        gap: 4px !important;
        padding-inline: 8px !important;
        font-size: .72rem !important;
    }

    .home-property-search__tab .material-symbols-outlined {
        font-size: 14px !important;
    }

    .home-property-search__field {
        gap: 5px !important;
        padding-inline: 5px !important;
    }

    .home-property-search__field:nth-of-type(even) {
        padding-left: 8px !important;
    }

    .home-property-search__select,
    .home-property-search__select-trigger,
    .home-property-search__price-trigger,
    .home-property-search__date-trigger,
    .home-property-search__guest-trigger {
        font-size: .78rem !important;
    }
}

/* Homepage section rhythm */
.home-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 72px;
    min-width: 0;
    padding-top: 72px;
}

.home-content-grid > .home-app-promos,
.home-content-grid > .home-products {
    min-width: 0;
    padding-top: 0;
    padding-bottom: 0;
}

@media (max-width: 700px) {
    .home-content-grid {
        row-gap: 48px;
        padding-top: 48px;
    }
}

/* Triptych card corner radius */
.home-listing-shortcuts__card:nth-of-type(1) {
    border-radius: 58px 0 0 22px;
}
.home-listing-shortcuts__card:nth-of-type(1) .home-listing-shortcuts__image {
    border-radius: 52px 0 0 14px;
}
.home-listing-shortcuts__card:nth-of-type(2) {
    border-radius: 0 0 0 0;
}
.home-listing-shortcuts__card:nth-of-type(2) .home-listing-shortcuts__image {
    border-radius: 0 0 0 0;
}
.home-listing-shortcuts__card:nth-of-type(3) {
    border-radius: 0 58px 22px 0;
}
.home-listing-shortcuts__card:nth-of-type(3) .home-listing-shortcuts__image {
    border-radius: 0 52px 14px 0;
}

@media (min-width: 901px) {
    .home-listing-shortcuts__card:nth-of-type(1) {
        border-radius: 66px 0 0 24px;
    }
    .home-listing-shortcuts__card:nth-of-type(1) .home-listing-shortcuts__image {
        border-radius: 60px 0 0 14px;
    }
    .home-listing-shortcuts__card:nth-of-type(2) {
        border-radius: 0 0 0 0;
    }
    .home-listing-shortcuts__card:nth-of-type(2) .home-listing-shortcuts__image {
        border-radius: 0 0 0 0;
    }
    .home-listing-shortcuts__card:nth-of-type(3) {
        border-radius: 0 66px 24px 0;
    }
    .home-listing-shortcuts__card:nth-of-type(3) .home-listing-shortcuts__image {
        border-radius: 0 60px 14px 0;
    }
}

@media (max-width: 900px) {
    .home-listing-shortcuts__card:nth-of-type(1) {
        border-radius: 42px 0 0 18px;
    }
    .home-listing-shortcuts__card:nth-of-type(1) .home-listing-shortcuts__image {
        border-radius: 38px 0 0 10px;
    }
    .home-listing-shortcuts__card:nth-of-type(2) {
        border-radius: 0 0 0 0;
    }
    .home-listing-shortcuts__card:nth-of-type(2) .home-listing-shortcuts__image {
        border-radius: 0 0 0 0;
    }
    .home-listing-shortcuts__card:nth-of-type(3) {
        border-radius: 0 42px 18px 0;
    }
    .home-listing-shortcuts__card:nth-of-type(3) .home-listing-shortcuts__image {
        border-radius: 0 38px 10px 0;
    }
}
