
/* =========================================================
   CARIPULSE
   STAY HOST RESERVATIONS
========================================================= */


:root {
    --host-reservations-primary: #00053d;
    --host-reservations-accent: #ff0f7b;
    --host-reservations-border: #e7e9f0;
    --host-reservations-text: #081221;
    --host-reservations-muted: #737b88;
    --host-reservations-background: #ffffff;
    --host-reservations-white: #ffffff;
    --host-reservations-radius: 16px;
}


.host-reservations-page {
    margin: 0;
    background: var(--host-reservations-background);
    color: var(--host-reservations-text);
    font-family: "Poppins", sans-serif;
}

.host-reservations-page *,
.host-reservations-page *::before,
.host-reservations-page *::after {
    box-sizing: border-box;
}

.host-reservations-page button,
.host-reservations-page a {
    font-family: inherit;
}

.host-reservations-page button {
    cursor: pointer;
}

.host-reservations-page button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.host-reservations-page [hidden] {
    display: none !important;
}

/* =========================================================
   MAIN
========================================================= */

.host-reservations-main {
    min-height: 70vh;
    padding-bottom: 70px;
}

/* =========================================================
   PAGE HEADER
========================================================= */


.host-reservations-header {
    padding: 46px 0 32px;
    background: #ffffff;
    border-bottom: 1px solid #e7ebf2;
}


.host-reservations-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}


.host-reservations-header-copy h1 {
    margin: 0;
    color: #081221;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(28px, 3.2vw, 38px);
    font-weight: 700;
    line-height: 1.15;
}



.host-reservations-header-copy p {
    margin: 5px 0 0;
    color: #737b88;
    font-size: 13px;
    line-height: 1.6;
}


.host-reservations-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* =========================================================
   CONTENT
========================================================= */

.host-reservations-content {
    padding: 36px 0;
}

.host-reservations-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.host-reservations-section-heading h2 {
    margin: 0;
    color: var(--host-reservations-primary);
    font-size: 21px;
    font-weight: 700;
}

.host-reservations-section-heading p {
    margin: 6px 0 0;
    color: var(--host-reservations-muted);
    font-size: 13px;
}

/* =========================================================
   BUTTONS
========================================================= */

.host-reservations-primary-button,
.host-reservations-secondary-button,
.host-reservations-secondary-action,
.host-reservations-retry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 11px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.host-reservations-primary-button {
    background: var(--host-reservations-primary);
    border: 1px solid var(--host-reservations-primary);
    color: #ffffff;
}

.host-reservations-primary-button:hover:not(:disabled) {
    background: #162b79;
    border-color: #162b79;
}

.host-reservations-secondary-button,
.host-reservations-secondary-action,
.host-reservations-retry {
    background: #ffffff;
    border: 1px solid var(--host-reservations-border);
    color: var(--host-reservations-primary);
}

.host-reservations-secondary-button:hover:not(:disabled),
.host-reservations-secondary-action:hover,
.host-reservations-retry:hover:not(:disabled) {
    background: #f5f7fc;
    border-color: #cdd4e5;
    text-decoration: none;
}

.host-reservations-primary-button:focus-visible,
.host-reservations-secondary-button:focus-visible,
.host-reservations-secondary-action:focus-visible,
.host-reservations-retry:focus-visible,
.host-reservations-filter:focus-visible,
.host-reservations-modal-close:focus-visible {
    outline: 3px solid rgba(255, 15, 123, 0.35);
    outline-offset: 3px;
}

/* =========================================================
   MESSAGE
========================================================= */

.host-reservations-message {
    margin-bottom: 24px;
    padding: 15px 18px;
    border: 1px solid #f2c6cc;
    border-radius: 12px;
    background: #fff1f3;
    color: #a32038;
    font-size: 13px;
    line-height: 1.8;
}

.host-reservations-message.is-success {
    border-color: #b9e7cc;
    background: #edfff4;
    color: #147c43;
}

.host-reservations-message.is-error {
    border-color: #f2c6cc;
    background: #fff1f3;
    color: #a32038;
}

/* =========================================================
   LOADING / EMPTY / ERROR
========================================================= */

.host-reservations-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 280px;
    padding: 36px 24px;
    background: #ffffff;
    border: 1px solid var(--host-reservations-border);
    border-radius: var(--host-reservations-radius);
    text-align: center;
}

.host-reservations-state > i {
    color: var(--host-reservations-accent);
    font-size: 26px;
}

.host-reservations-state-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #f3f4fa;
    color: var(--host-reservations-primary);
    font-size: 24px;
}

.host-reservations-state h2,
.host-reservations-state strong {
    margin: 0;
    color: var(--host-reservations-primary);
    font-size: 18px;
    font-weight: 700;
}

.host-reservations-state p {
    max-width: 460px;
    margin: 0;
    color: var(--host-reservations-muted);
    font-size: 13px;
    line-height: 1.8;
}

/* =========================================================
   FILTERS
========================================================= */

.host-reservations-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.host-reservations-filter {
    min-height: 42px;
    padding: 10px 17px;
    background: #ffffff;
    border: 1px solid var(--host-reservations-border);
    border-radius: 10px;
    color: var(--host-reservations-muted);
    font-size: 12px;
    font-weight: 600;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.host-reservations-filter:hover {
    color: var(--host-reservations-primary);
    border-color: #cbd3e6;
}

.host-reservations-filter.is-active {
    background: var(--host-reservations-primary);
    border-color: var(--host-reservations-primary);
    color: #ffffff;
}

/* =========================================================
   RESERVATION LIST
========================================================= */

.host-reservations-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.host-reservation-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--host-reservations-border);
    border-radius: var(--host-reservations-radius);
}

.host-reservation-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 23px 24px;
    border-bottom: 1px solid var(--host-reservations-border);
}

.host-reservation-card-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
}

.host-reservation-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #f1f3fa;
    color: var(--host-reservations-primary);
    font-size: 19px;
}

.host-reservation-card-heading h3 {
    margin: 0;
    color: var(--host-reservations-primary);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.host-reservation-card-heading p {
    margin: 5px 0 0;
    color: var(--host-reservations-muted);
    font-size: 12px;
    overflow-wrap: anywhere;
}

/* =========================================================
   PAYMENT STATUS
========================================================= */

.host-reservation-payment-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 32px;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.host-reservation-payment-status.is-due {
    background: #fff5df;
    color: #986000;
}

.host-reservation-payment-status.is-paid {
    background: #e9f9ef;
    color: #147d43;
}

.host-reservation-payment-status.is-unknown {
    background: #f0f1f5;
    color: #62697a;
}

/* =========================================================
   RESERVATION DETAILS
========================================================= */

.host-reservation-card-details {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px;
    padding: 24px;
}

.host-reservation-card-details > div {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.host-reservation-card-details span {
    color: var(--host-reservations-muted);
    font-size: 11px;
    font-weight: 500;
}

.host-reservation-card-details strong {
    color: var(--host-reservations-primary);
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

/* =========================================================
   CARD ACTIONS
========================================================= */

.host-reservation-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 17px 24px;
    border-top: 1px solid var(--host-reservations-border);
    background: #fbfcfe;
}

/* =========================================================
   FILTER EMPTY
========================================================= */

.host-reservations-filter-empty {
    padding: 40px 20px;
    background: #ffffff;
    border: 1px solid var(--host-reservations-border);
    border-radius: var(--host-reservations-radius);
    color: var(--host-reservations-muted);
    font-size: 13px;
    text-align: center;
}

/* =========================================================
   MODALS
========================================================= */


.host-reservations-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}


.host-reservations-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 5, 61, 0.65);
}

.host-reservations-modal-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 620px;
    max-height: calc(100dvh - 40px);
    overflow: hidden;
    background: #ffffff;
    border-radius: 18px;
}

.host-reservations-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 24px;
    border-bottom: 1px solid var(--host-reservations-border);
}

.host-reservations-modal-header h2 {
    margin: 0;
    color: var(--host-reservations-primary);
    font-size: 19px;
    font-weight: 700;
}

.host-reservations-modal-header p {
    margin: 6px 0 0;
    color: var(--host-reservations-muted);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.host-reservations-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    padding: 0;
    background: #f3f4f8;
    border: 1px solid var(--host-reservations-border);
    border-radius: 9px;
    color: var(--host-reservations-primary);
    font-size: 15px;
}

.host-reservations-modal-content {
    overflow-y: auto;
    padding: 24px;
}

.host-reservations-modal-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid var(--host-reservations-border);
    background: #ffffff;
}

.host-reservations-modal-open {
    overflow: hidden;
}

/* =========================================================
   DETAIL ROWS
========================================================= */

.host-reservation-detail-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px solid var(--host-reservations-border);
}

.host-reservation-detail-row:last-child {
    border-bottom: 0;
}

.host-reservation-detail-row span {
    color: var(--host-reservations-muted);
    font-size: 12px;
    line-height: 1.7;
}

.host-reservation-detail-row strong {
    color: var(--host-reservations-primary);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.7;
    text-align: right;
    overflow-wrap: anywhere;
}

/* =========================================================
   PAYMENT CONFIRMATION
========================================================= */

.host-reservations-payment-notice {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 16px;
    background: #fff7e8;
    border: 1px solid #f1dfb5;
    border-radius: 12px;
}

.host-reservations-payment-notice i {
    flex-shrink: 0;
    margin-top: 3px;
    color: #a56c00;
    font-size: 17px;
}

.host-reservations-payment-notice p {
    margin: 0;
    color: #755100;
    font-size: 12px;
    line-height: 1.8;
}

.host-reservations-payment-summary {
    margin-top: 20px;
    padding: 5px 17px;
    background: #f8f9fc;
    border: 1px solid var(--host-reservations-border);
    border-radius: 12px;
}

.host-reservations-payment-disclaimer {
    margin: 20px 0 0;
    color: var(--host-reservations-muted);
    font-size: 12px;
    line-height: 1.9;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {

    .host-reservation-card-details {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .host-reservations-main {
        padding-bottom: 40px;
    }

    .host-reservations-header {
        padding: 28px 0;
    }

    .host-reservations-header-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }


    .host-reservations-header-copy h1 {
        font-size: clamp(28px, 3.2vw, 38px);
    }


    .host-reservations-header-copy p {
        font-size: 12px;
    }

    .host-reservations-header-actions {
        width: 100%;
    }

    .host-reservations-header-actions a {
        width: 100%;
    }

    .host-reservations-content {
        padding: 24px 0;
    }

    .host-reservations-section-heading h2 {
        font-size: 18px;
    }

    .host-reservations-filters {
        gap: 8px;
    }

    .host-reservations-filter {
        flex: 1 1 auto;
        padding: 10px 12px;
        font-size: 11px;
    }

    .host-reservation-card-header {
        flex-direction: column;
        padding: 20px;
    }

    .host-reservation-card-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
        padding: 20px;
    }

    .host-reservation-card-actions {
        flex-direction: column;
        padding: 18px 20px;
    }

    .host-reservation-card-actions button {
        width: 100%;
    }

    .host-reservations-modal {
        padding: 12px;
    }

    .host-reservations-modal-card {
        max-height: calc(100dvh - 24px);
        border-radius: 14px;
    }

    .host-reservations-modal-header,
    .host-reservations-modal-content,
    .host-reservations-modal-actions {
        padding: 18px;
    }

    .host-reservations-modal-header h2 {
        font-size: 17px;
    }

    .host-reservations-modal-actions {
        flex-direction: column-reverse;
    }

    .host-reservations-modal-actions button {
        width: 100%;
    }

}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .host-reservation-card-details {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .host-reservation-card-heading {
        align-items: flex-start;
    }

    .host-reservation-card-icon {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
    }

    .host-reservation-detail-row {
        flex-direction: column;
        gap: 5px;
    }

    .host-reservation-detail-row strong {
        text-align: left;
    }

}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .host-reservations-page *,
    .host-reservations-page *::before,
    .host-reservations-page *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation-duration: 0.01ms !important;
    }

}



/* =========================================================
   PLATFORM HEADER / MODAL STACKING
========================================================= */

body.host-reservations-page {
    isolation: isolate;
}

body.host-reservations-page > .host-reservations-modal {
    position: fixed;
    z-index: 2147483647;
}

body.host-reservations-page > header,
body.host-reservations-page > .platform-header {
    z-index: 100 !important;
}



