/* ---------- Slim search bar (lives inside .booking-widget-wrapper in the hero) ---------- */

.wasto-booking-bar {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    font-family: 'Outfit', sans-serif;
}

.wasto-booking-field {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.7rem 1.1rem;
    flex: 1;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.wasto-booking-field:last-of-type {
    border-right: none;
}

.wasto-booking-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b6b6b;
    margin-bottom: 0.2rem;
}

.wasto-booking-input,
.wasto-booking-select {
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 0.95rem;
    color: #222;
    padding: 0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.wasto-booking-select {
    cursor: pointer;
}

.wasto-booking-submit {
    border: 0;
    background: #c9a962;
    color: #fff;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0 2rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    min-width: 120px;
}

.wasto-booking-submit:hover {
    background: #b59544;
}

.wasto-booking-error {
    flex-basis: 100%;
    color: #c0392b;
    font-size: 0.8rem;
    padding: 0.6rem 1.1rem;
    background: rgba(192, 57, 43, 0.07);
    border-top: 1px solid rgba(192, 57, 43, 0.18);
    display: none;
}

.wasto-booking-error.is-visible {
    display: block;
}

@media (max-width: 768px) {
    .wasto-booking-bar {
        flex-direction: column;
    }
    .wasto-booking-field {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }
    .wasto-booking-submit {
        padding: 1rem;
        min-width: 0;
    }
}

/* ---------- Modal overlay + card ---------- */

.wasto-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.28s ease, visibility 0s linear 0.28s;
}

.wasto-modal-overlay.is-open {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.28s ease, visibility 0s linear 0s;
}

.wasto-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 1400px;
    height: 92vh;
    max-height: 92vh;
    min-height: 480px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    font-family: 'Outfit', sans-serif;
    transform: translateY(20px) scale(0.97);
    opacity: 0;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

.wasto-modal-overlay.is-open .wasto-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.wasto-modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1.5rem 1.5rem 1rem;
    scrollbar-gutter: stable;
}

.wasto-modal-body::-webkit-scrollbar {
    width: 8px;
}

.wasto-modal-body::-webkit-scrollbar-track {
    background: transparent;
    margin: 1rem 0;
}

.wasto-modal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 4px;
}

.wasto-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.28);
}

.wasto-modal-body ibe-up {
    display: block;
    width: 100%;
    min-height: 600px;
}

.wasto-modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1rem;
    color: #777;
    font-size: 0.95rem;
    min-height: 400px;
}

.wasto-modal-loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(201, 169, 98, 0.25);
    border-top-color: #c9a962;
    border-radius: 50%;
    animation: wasto-modal-spin 0.9s linear infinite;
    margin-bottom: 1rem;
}

@keyframes wasto-modal-spin {
    to { transform: rotate(360deg); }
}

.wasto-modal-close {
    position: absolute;
    top: 0.6rem;
    right: 0.8rem;
    border: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    color: #333;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.wasto-modal-close:hover {
    background: #fff;
    transform: scale(1.05);
}

.wasto-modal-status {
    text-align: center;
    padding: 3rem 1rem;
    color: #555;
    font-size: 0.95rem;
}

.wasto-modal-status .wasto-modal-status-link {
    display: inline-block;
    margin-top: 1rem;
    color: #c9a962;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .wasto-modal-overlay {
        padding: 0;
    }
    .wasto-modal {
        max-width: none;
        max-height: 100vh;
        border-radius: 0;
        height: 100vh;
        transform: translateY(40px);
    }
    .wasto-modal-body {
        padding: 3rem 1rem 1rem;
    }
    .wasto-modal-overlay.is-open .wasto-modal {
        transform: translateY(0);
    }
}

/* ---------- Body scroll lock helper ---------- */

body.wasto-modal-open {
    overflow: hidden;
}

/* ---------- Z-index lift for Uphotel's CDK/Material overlays ----------
 * Our modal-overlay sits at z-index 9999. Uphotel's confirmation dialogs
 * (remove-from-cart, etc.) render via Angular CDK's overlay container, which
 * defaults to z-index 1000 — so they'd hide BEHIND our modal. Lift only the
 * container; backdrop and pane keep their own z-indexes inside this stacking
 * context (otherwise the backdrop ends up ABOVE the dialog and hides it).
 */
.cdk-overlay-container {
    z-index: 10001 !important;
}
