/* =========================================================
   CARIPULSE STAYS
========================================================= */


/* =========================================================
   HIDDEN
========================================================= */

.stays-page [hidden] {

    display: none !important;
}


/* =========================================================
   PAGE
========================================================= */

.stays-page {

    width: 100%;

    background: #FFFFFF;

    color: #081221;
}


/* =========================================================
   HERO
========================================================= */

.stays-search-hero {

    position: relative;

    padding:
        70px
        0
        72px;

    background-color: #081221;

    background-image:
        linear-gradient(
            90deg,
            rgba(8,18,33,.89) 0%,
            rgba(8,18,33,.72) 45%,
            rgba(8,18,33,.45) 100%
        ),
        url("/assets/images/Stays.jpg");

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;
}


/* =========================================================
   HERO COPY
========================================================= */

.stays-hero-top {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 40px;

    margin-bottom: 38px;
}


.stays-hero-copy {

    max-width: 800px;
}


.stays-eyebrow {

    display: block;

    margin-bottom: 9px;

    color: #FF0F7B;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1.8px;
}


.stays-search-hero
.stays-eyebrow {

    color: #FDB52B;
}


.stays-hero-copy h1 {

    margin:
        0
        0
        13px;

    color: #FFFFFF;

    font-size:
        clamp(
            42px,
            5vw,
            60px
        );

    line-height: 1.08;

    font-weight: 800;
}


.stays-hero-copy p {

    max-width: 720px;

    margin: 0;

    color:
        rgba(
            255,
            255,
            255,
            .82
        );

    font-size: 16px;

    line-height: 1.75;
}


/* =========================================================
   SEARCH PANEL
========================================================= */

.stays-search-panel {

    display: grid;

    grid-template-columns:
        minmax(0, 1.45fr)
        minmax(0, .78fr)
        minmax(0, .78fr)
        minmax(0, .72fr)
        minmax(0, .78fr);

    gap: 16px;

    align-items: end;

    width: 100%;

    min-width: 0;

    padding: 25px;

    border-radius: 22px;

    background: #FFFFFF;
}


.stays-search-field {

    min-width: 0;
}


.stays-search-field label {

    display: block;

    margin-bottom: 8px;

    color: #596273;

    font-size: 12px;

    font-weight: 600;
}


/* =========================================================
   INPUTS
========================================================= */

.stays-input-control {

    position: relative;
}


.stays-input-control > i {

    position: absolute;

    top: 50%;

    left: 17px;

    transform:
        translateY(-50%);

    color: #FF0F7B;

    font-size: 14px;

    pointer-events: none;
}


.stays-input-control input {

    width: 100%;

    height: 54px;

    padding:
        0
        15px
        0
        44px;

    border:
        1px solid
        #DFE4EC;

    border-radius: 14px;

    outline: none;

    background: #FFFFFF;

    color: #081221;

    font-family:
        "Poppins",
        sans-serif;

    font-size: 13px;

    transition:
        border-color .2s ease;
}


.stays-input-control input:focus {

    border-color: #FF0F7B;
}


/* =========================================================
   CARIPULSE STAYS DATE CONTROLS
========================================================= */

.stays-search-hero .container {
    position: relative;
}

.stays-date-control {
    width: 100%;
}

.stays-date-trigger {
    width: 100%;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    padding: 0 15px;

    border: 1px solid #DFE4EC;
    border-radius: 14px;

    background: #FFFFFF;
    color: #081221;

    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 500;

    cursor: pointer;
    text-align: left;
}

.stays-date-trigger:hover,
.stays-date-trigger:focus-visible,
.stays-date-trigger[aria-expanded="true"] {
    border-color: #FF0F7B;
}

.stays-date-trigger span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stays-date-trigger i {
    flex-shrink: 0;
    color: #FF0F7B;
    font-size: 14px;
}


/* =========================================================
   CALENDAR CONTAINER
========================================================= */

.stays-calendar {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;

    z-index: 100;

    width: min(390px, calc(100% - 32px));

    transform: translateX(-50%);

    padding: 18px 18px 16px;

    box-sizing: border-box;

    border: 1px solid #DFE4EC;
    border-radius: 14px;

    background: #FFFFFF;

    font-family: "Poppins", sans-serif;
}

.stays-calendar[hidden] {
    display: none !important;
}


/* =========================================================
   CALENDAR HEADER
========================================================= */

.stays-calendar-header {
    display: grid;

    grid-template-columns:
        34px minmax(0, 1fr) 34px;

    align-items: center;

    gap: 10px;
    margin-bottom: 16px;
}

.stays-calendar-nav {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid #DFE4EC;
    border-radius: 50%;

    background: #FFFFFF;
    color: #081221;

    font-size: 10px;

    cursor: pointer;
}

.stays-calendar-nav:hover:not(:disabled) {
    border-color: #FF0F7B;
    background: #FFF7FB;
    color: #FF0F7B;
}

.stays-calendar-nav:disabled {
    background: #F8F9FB;
    color: #B6BDC7;
    cursor: not-allowed;
}

.stays-calendar-heading {
    min-width: 0;
    text-align: center;
}

.stays-calendar-heading strong {
    display: block;

    color: #081221;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.stays-calendar-heading span {
    display: block;

    margin-top: 3px;

    color: #7A8391;

    font-size: 8px;
    font-weight: 500;
    line-height: 1.4;
}


/* =========================================================
   WEEKDAYS
========================================================= */

.stays-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));

    gap: 4px;
    margin-bottom: 6px;
}

.stays-calendar-weekdays span {
    min-width: 0;
    min-height: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #687280;

    font-size: 8px;
    font-weight: 600;
}


/* =========================================================
   CALENDAR DAYS
========================================================= */

.stays-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));

    gap: 4px;
}

.stays-calendar-empty {
    aspect-ratio: 1 / 1;
}

.stays-calendar-day {
    width: 100%;
    min-width: 0;
    aspect-ratio: 1 / 1;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid #E3E8F0;
    border-radius: 7px;

    background: #FAFBFD;
    color: #081221;

    font-family: "Poppins", sans-serif;
    font-size: 9px;
    font-weight: 600;

    cursor: pointer;
}

.stays-calendar-day:hover:not(:disabled) {
    border-color: #FF0F7B;
    background: #FFF7FB;
    color: #FF0F7B;
}

.stays-calendar-day.is-today {
    border-color: #FF0F7B;
    color: #FF0F7B;
    font-weight: 700;
}

.stays-calendar-day.is-selected {
    border-color: #00053D;
    background: #00053D;
    color: #FFFFFF;
}

.stays-calendar-day.is-range {
    border-color: rgba(255, 15, 123, .16);
    background: rgba(255, 15, 123, .08);
}

.stays-calendar-day.is-past,
.stays-calendar-day:disabled {
    border-color: #EEF1F5;
    background: #F3F5F8;
    color: #AAB2BF;
    cursor: not-allowed;
}


/* =========================================================
   RESPONSIVE CALENDAR
========================================================= */

@media (max-width: 767px) {

    .stays-calendar {
        width: calc(100% - 24px);
        max-width: 390px;
    }

}


/* =========================================================
   GUESTS
========================================================= */

.stays-guests-control {

    height: 54px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 9px;

    padding:
        0
        10px;

    border:
        1px solid
        #DFE4EC;

    border-radius: 14px;

    background: #FFFFFF;
}


.stays-guests-control button {

    width: 32px;

    height: 32px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    border:
        1px solid
        #E3E7EE;

    border-radius: 50%;

    background: #FFFFFF;

    color: #081221;

    cursor: pointer;
}


.stays-guests-control div {

    min-width: 0;

    text-align: center;
}


.stays-guests-control strong {

    display: block;

    color: #081221;

    font-size: 14px;
}


.stays-guests-control span {

    color: #7A8391;

    font-size: 9px;
}


/* =========================================================
   SEARCH BUTTON
========================================================= */

.stays-search-action button {

    width: 100%;

    height: 54px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    border: none;

    border-radius: 14px;

    background:
        linear-gradient(
            90deg,
            #FF0F7B,
            #FDB52B
        );

    color: #FFFFFF;

    font-family:
        "Poppins",
        sans-serif;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;
}


/* =========================================================
   HOST LINK
========================================================= */

.stays-host-link {

    width: 100%;

    max-width: 390px;

    display: grid;

    grid-template-columns:
        42px
        minmax(0, 1fr)
        auto;

    gap: 13px;

    align-items: center;

    flex-shrink: 0;

    padding:
        14px
        16px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            .18
        );

    border-radius: 16px;

    background:
        rgba(
            8,
            18,
            33,
            .68
        );

    backdrop-filter:
        blur(10px);

    -webkit-backdrop-filter:
        blur(10px);

    color: #FFFFFF;

    text-decoration: none;
}


.stays-host-icon {

    width: 42px;

    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #FF0F7B,
            #FDB52B
        );
}


.stays-host-link strong {

    display: block;

    margin-bottom: 2px;

    font-size: 12px;
}


.stays-host-link span {

    color:
        rgba(
            255,
            255,
            255,
            .72
        );

    font-size: 10px;
}


/* =========================================================
   RESULTS
========================================================= */

.stays-results-section {

    padding:
        72px
        0
        110px;
}


.stays-results-heading {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 25px;

    margin-bottom: 36px;
}


.stays-results-heading h2 {

    margin:
        0
        0
        8px;

    color: #081221;

    font-size: 42px;

    line-height: 1.2;

    font-weight: 800;
}


.stays-results-heading p {

    margin: 0;

    color: #687280;

    font-size: 14px;
}


.stays-clear-search {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding:
        11px
        17px;

    border:
        1px solid
        #DFE4EC;

    border-radius: 999px;

    background: #FFFFFF;

    color: #081221;

    font-family: inherit;

    font-size: 12px;

    font-weight: 600;

    cursor: pointer;
}


/* =========================================================
   GRID
========================================================= */

.stays-grid {

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 26px;
}


/* =========================================================
   CARD
========================================================= */

.stay-card {

    overflow: hidden;

    border:
        1px solid
        #E6EAF0;

    border-radius: 22px;

    background: #FFFFFF;
}


.stay-card-image {

    position: relative;

    display: block;

    aspect-ratio:
        4 / 3;

    overflow: hidden;

    background: #EEF2F7;
}


.stay-card-image img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform .3s ease;
}


.stay-card:hover
.stay-card-image img {

    transform:
        scale(1.035);
}


.stay-image-fallback {

    width: 100%;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #00053D,
            #163280
        );

    color: #FDB52B;

    font-size: 45px;
}


/* =========================================================
   FEATURED
========================================================= */

.stay-featured-badge {

    position: absolute;

    top: 15px;

    left: 15px;

    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding:
        7px
        11px;

    border-radius: 999px;

    background: #00053D;

    color: #FFFFFF;

    font-size: 10px;

    font-weight: 700;
}


/* =========================================================
   FAVORITE
========================================================= */

.stay-favorite-button {

    position: absolute;

    top: 14px;

    right: 14px;

    width: 40px;

    height: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 0;

    border-radius: 50%;

    background:
        rgba(
            255,
            255,
            255,
            .94
        );

    color: #00053D;

    cursor: pointer;
}


.stay-favorite-button.is-saved {

    color: #FF0F7B;
}


/* =========================================================
   CONTENT
========================================================= */

.stay-card-content {

    padding: 21px;
}


.stay-location {

    display: flex;

    align-items: center;

    gap: 6px;

    margin-bottom: 9px;

    color: #687280;

    font-size: 11px;
}


.stay-location i {

    color: #FF0F7B;
}


.stay-card-title-row {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 12px;
}


.stay-card h3 {

    margin: 0;

    color: #081221;

    font-size: 18px;

    line-height: 1.35;

    font-weight: 700;
}


.stay-card h3 a {

    color: inherit;

    text-decoration: none;
}


.stay-rating {

    display: flex;

    align-items: center;

    gap: 5px;

    flex-shrink: 0;

    color: #081221;

    font-size: 11px;

    font-weight: 600;
}


.stay-rating i {

    color: #FDB52B;
}

.stay-rating small {

    color: #7A8391;

    font-size: 10px;

    font-weight: 500;
}


.stay-rating-empty {

    color: #7A8391;
}


.stay-rating-empty i {

    color: #AEB5C0;
}


.stay-property-type {

    margin:
        8px
        0
        14px;

    color: #7A8391;

    font-size: 11px;

    line-height: 1.5;
}


.stay-features {

    display: flex;

    flex-wrap: wrap;

    gap:
        7px
        14px;

    margin-bottom: 17px;

    color: #687280;

    font-size: 10px;
}


.stay-features span {

    display: inline-flex;

    align-items: center;

    gap: 5px;
}


.stay-card-footer {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 15px;

    padding-top: 16px;

    border-top:
        1px solid
        #EDF0F4;
}


.stay-price {

    min-width: 0;
}


.stay-price strong {

    display: block;

    color: #081221;

    font-size: 18px;

    font-weight: 800;
}


.stay-price span {

    display: block;

    margin-top: 2px;

    color: #7A8391;

    font-size: 9px;
}


.stay-view-link {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    flex-shrink: 0;

    color: #FF0F7B;

    font-size: 11px;

    font-weight: 700;

    text-decoration: none;
}


/* =========================================================
   STATES
========================================================= */

.stays-state {

    min-height: 170px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 9px;

    padding:
        40px
        20px;

    border:
        1px solid
        #E7EBF2;

    border-radius: 20px;

    background: #FAFBFD;

    text-align: center;
}


.stays-state i {

    color: #FF0F7B;

    font-size: 29px;
}


.stays-state strong {

    color: #081221;

    font-size: 17px;
}


.stays-state span {

    color: #687280;

    font-size: 12px;
}


.stays-error-state button {

    margin-top: 6px;

    padding:
        11px
        20px;

    border: 0;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            #FF0F7B,
            #FDB52B
        );

    color: #FFFFFF;

    font-family: inherit;

    font-weight: 700;

    cursor: pointer;
}


/* =========================================================
   LOAD MORE
========================================================= */

.stays-load-more-wrap {

    display: flex;

    justify-content: center;

    margin-top: 48px;
}


.stays-load-more-wrap button {

    min-width: 210px;

    padding:
        14px
        24px;

    border:
        1px solid
        #081221;

    border-radius: 999px;

    background: #FFFFFF;

    color: #081221;

    font-family: inherit;

    font-weight: 700;

    cursor: pointer;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .stays-search-panel {

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }


    .stays-destination-field {

        grid-column:
            1 / -1;
    }


    .stays-search-action {

        grid-column:
            1 / -1;
    }


    .stays-grid {

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .stays-search-hero {

        padding:
            48px
            0
            52px;
    }


    .stays-hero-top {

        align-items: stretch;

        flex-direction: column;

        gap: 22px;
    }


    .stays-hero-copy h1 {

        font-size: 38px;
    }


    .stays-search-panel {

        grid-template-columns: 1fr;

        padding: 19px;
    }


    .stays-destination-field,
    .stays-search-action {

        grid-column: auto;
    }


    .stays-host-link {

        max-width: 100%;
    }


    .stays-results-section {

        padding:
            54px
            0
            80px;
    }


    .stays-results-heading {

        align-items: flex-start;

        flex-direction: column;
    }


    .stays-results-heading h2 {

        font-size: 34px;
    }


    .stays-grid {

        grid-template-columns: 1fr;
    }

}