body:has(.booking-page) {
    background:
        radial-gradient(ellipse 75% 340px at 50% 0%, rgba(255, 255, 255, 0.92) 0%, transparent 72%),
        #f5f5f7;
}

@keyframes stayoraCheckoutRise {
    from {
        opacity: 0;
        transform: translate3d(0, 14px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.booking-page {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 20px 92px;
    font-family: var(--stayora-font-text);
    color: var(--stayora-on-surface);
    -webkit-font-smoothing: antialiased;
}

.booking-breadcrumb {
    margin-bottom: 20px;
}

.booking-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: -0.012em;
    color: var(--stayora-primary);
    background-color: rgba(0, 113, 227, 0.085);
    border: 1px solid rgba(0, 113, 227, 0.12);
    padding: 7px 16px;
    border-radius: 9999px;
    text-decoration: none;
    transition:
        background-color 0.24s var(--ease-stayora-out, cubic-bezier(0.16, 1, 0.3, 1)),
        color 0.24s var(--ease-stayora-out, cubic-bezier(0.16, 1, 0.3, 1)),
        border-color 0.24s var(--ease-stayora-out, cubic-bezier(0.16, 1, 0.3, 1)),
        transform 0.26s var(--ease-stayora-spring, cubic-bezier(0.22, 1, 0.36, 1)),
        box-shadow 0.24s var(--ease-stayora-out, cubic-bezier(0.16, 1, 0.3, 1));
}

.booking-back-link:hover {
    background-color: var(--stayora-primary);
    border-color: var(--stayora-primary);
    color: #ffffff;
    transform: translateX(-2px);
    box-shadow: 0 6px 16px -3px rgba(0, 113, 227, 0.32);
}

.booking-back-link:active {
    transform: scale(0.965);
    transition-duration: 0.12s;
}

.booking-header {
    margin-bottom: 30px;
}

.booking-eyebrow {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.085em;
    color: #0071e3;
    background-color: rgba(0, 113, 227, 0.095);
    border: 1px solid rgba(0, 113, 227, 0.14);
    padding: 5px 13px;
    border-radius: 9999px;
    margin-bottom: 10px;
}

.booking-title {
    font-family: var(--stayora-font-display);
    font-size: clamp(30px, 4.2vw, 44px);
    font-weight: 600;
    letter-spacing: -0.022em;
    line-height: 1.07;
    text-wrap: balance;
    color: #1d1d1f;
    margin: 0;
}

.booking-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "details"
        "summary"
        "confirm";
    gap: 20px;
    align-items: start;
}

.booking-form-card {
    grid-area: details;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.048);
    border-radius: 28px;
    padding: 26px 24px;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.02),
        0 14px 36px -14px rgba(15, 23, 42, 0.07);
}

.booking-summary-col {
    grid-area: summary;
}

.booking-confirm-box {
    grid-area: confirm;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.048);
    border-radius: 26px;
    padding: 24px;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.02),
        0 12px 30px -14px rgba(15, 23, 42, 0.06);
}

.booking-card-heading {
    font-family: var(--stayora-font-display);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.022em;
    margin: 0 0 22px;
    color: #1d1d1f;
}

.booking-form-fields {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.booking-dates-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.booking-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.booking-field label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.065em;
    color: #86868b;
    padding-left: 4px;
}

.booking-field input[type="date"],
.booking-field select {
    width: 100%;
    min-height: 50px;
    font-family: var(--stayora-font-text);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #1d1d1f;
    background-color: #f5f5f7;
    border: 1.5px solid transparent;
    border-radius: 16px;
    padding: 12px 16px;
    box-sizing: border-box;
    transition:
        background-color 0.24s var(--ease-stayora-out, cubic-bezier(0.16, 1, 0.3, 1)),
        border-color 0.24s var(--ease-stayora-out, cubic-bezier(0.16, 1, 0.3, 1)),
        box-shadow 0.26s var(--ease-stayora-out, cubic-bezier(0.16, 1, 0.3, 1));
}

.booking-field select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 42px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230071e3' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.booking-field input[type="date"]:hover,
.booking-field select:hover {
    background-color: rgba(0, 113, 227, 0.055);
    border-color: rgba(0, 113, 227, 0.16);
}

.booking-field input[type="date"]:focus,
.booking-field select:focus {
    outline: none;
    background-color: #ffffff;
    border-color: #0071e3;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.13);
}

.booking-field-hint {
    font-size: 12.5px;
    color: #86868b;
    padding-left: 4px;
}

.booking-policies-box {
    background-color: #f5f5f7;
    border: 1px solid rgba(0, 0, 0, 0.038);
    border-radius: 18px;
    padding: 18px 20px;
    margin-top: 4px;
}

.policies-heading {
    font-family: var(--stayora-font-display);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: #1d1d1f;
    margin: 0 0 12px;
}

.policies-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.policy-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    font-size: 13.5px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.055);
}

.policy-row:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.policy-key {
    color: #6e6e73;
    flex-shrink: 0;
}

.policy-val {
    font-weight: 600;
    color: #1d1d1f;
    text-align: right;
    text-transform: capitalize;
}

.booking-page .booking-summary-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfd 100%);
    border: 1px solid rgba(0, 113, 227, 0.14);
    border-radius: 28px;
    padding: 26px 24px;
    box-shadow:
        0 4px 14px rgba(15, 23, 42, 0.035),
        0 22px 52px -14px rgba(0, 113, 227, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
    transition:
        border-color 0.32s var(--ease-stayora-out, cubic-bezier(0.16, 1, 0.3, 1)),
        box-shadow 0.38s var(--ease-stayora-out, cubic-bezier(0.16, 1, 0.3, 1));
}

.booking-grid:focus-within .booking-summary-card {
    border-color: rgba(0, 113, 227, 0.28);
    box-shadow:
        0 6px 18px rgba(15, 23, 42, 0.045),
        0 26px 60px -14px rgba(0, 113, 227, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.summary-room-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.summary-room-img {
    width: 88px;
    height: 88px;
    border-radius: 18px;
    object-fit: cover;
    flex-shrink: 0;
    background-color: #f4f4f2;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.09);
}

.summary-room-info {
    min-width: 0;
}

.summary-prop-name {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #0071e3;
    margin-bottom: 3px;
}

.summary-room-name {
    font-family: var(--stayora-font-display);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #1d1d1f;
    margin: 0 0 4px;
    line-height: 1.24;
}

.summary-room-loc {
    font-size: 13px;
    color: #6e6e73;
    margin: 0;
}

.summary-divider {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.06);
    margin: 18px 0;
}

.summary-section-title {
    font-family: var(--stayora-font-display);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: #1d1d1f;
    margin: 0 0 14px;
}

.price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 14.5px;
    font-variant-numeric: tabular-nums;
    color: #1d1d1f;
}

.price-row-muted {
    color: #6e6e73;
}

.price-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-family: var(--stayora-font-display);
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.022em;
    font-variant-numeric: tabular-nums;
    color: #1d1d1f;
}

#totalPriceText {
    color: #0071e3;
    display: inline-block;
    transform-origin: right center;
}

@keyframes checkoutPricePop {
    0% {
        transform: scale(1);
    }
    40% {
        transform: scale(1.06);
    }
    100% {
        transform: scale(1);
    }
}

#totalPriceText.is-price-pop {
    animation: checkoutPricePop 0.34s var(--ease-stayora-spring, cubic-bezier(0.22, 1, 0.36, 1));
}

.summary-availability-note {
    margin: 18px 0 0;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.5;
    color: #0066cc;
    background-color: rgba(0, 113, 227, 0.075);
    border: 1px solid rgba(0, 113, 227, 0.12);
    padding: 12px 14px;
    border-radius: 15px;
}

.booking-submit-btn {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 52px;
    border: none;
    background-color: #0071e3;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 58%);
    color: #ffffff;
    font-family: var(--stayora-font-text);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.012em;
    padding: 14px 24px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow:
        0 8px 24px -3px rgba(0, 113, 227, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.34);
    cursor: pointer;
    transition:
        background-color 0.24s var(--ease-stayora-out, cubic-bezier(0.16, 1, 0.3, 1)),
        transform 0.26s var(--ease-stayora-spring, cubic-bezier(0.22, 1, 0.36, 1)),
        box-shadow 0.26s var(--ease-stayora-out, cubic-bezier(0.16, 1, 0.3, 1)),
        opacity 0.2s ease;
}

.booking-submit-btn:hover {
    background-color: #1482f0;
    box-shadow:
        0 12px 30px -4px rgba(0, 113, 227, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.44);
    transform: translateY(-1.5px);
}

.booking-submit-btn:active {
    background-color: #0066cc;
    transform: scale(0.97);
    transition-duration: 0.12s;
}

.booking-submit-btn:disabled {
    opacity: 0.78;
    cursor: not-allowed;
    transform: none;
}

.booking-btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    animation: bookingBtnSpin 0.65s linear infinite;
}

.booking-submit-btn.is-loading .booking-btn-spinner {
    display: inline-block;
}

.booking-submit-btn.is-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 25%,
        rgba(255, 255, 255, 0.28) 50%,
        transparent 75%
    );
    transform: translateX(-100%);
    animation: bookingBtnSheen 1.25s var(--ease-stayora-out, cubic-bezier(0.16, 1, 0.3, 1)) infinite;
    pointer-events: none;
}

@keyframes bookingBtnSheen {
    to {
        transform: translateX(100%);
    }
}

@keyframes bookingBtnSpin {
    to {
        transform: rotate(360deg);
    }
}

.booking-terms-note {
    margin: 14px 0 0;
    font-size: 12.5px;
    line-height: 1.55;
    text-align: center;
    color: #86868b;
}

.booking-terms-note a {
    color: #0071e3;
    text-decoration: none;
    font-weight: 500;
}

.booking-terms-note a:hover {
    text-decoration: underline;
}

@media (min-width: 640px) {
    .booking-dates-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .booking-form-card,
    .booking-page .booking-summary-card {
        padding: 32px;
    }

    .booking-confirm-box {
        padding: 28px 32px;
    }
}

@media (min-width: 900px) {
    .booking-page {
        padding: 40px 28px 100px;
    }

    .booking-grid {
        grid-template-columns: 1.35fr 1fr;
        grid-template-areas:
            "details summary"
            "confirm summary";
        gap: 22px 32px;
    }

    .booking-summary-col {
        position: sticky;
        top: 28px;
    }
}
