/* Guest picker — overflow helpers + full styles for portaled menus */
.hotel-guests-picker.active,
.smart-guests.active {
    position: relative;
    z-index: 1080;
}

.hotel-card-premium:has(.hotel-guests-picker.active),
.filter-card:has(.hotel-guests-picker.active),
.filter-card:has(.smart-guests.active),
.home-search-card:has(.smart-guests.active),
.home-search-form:has(.smart-guests.active),
.search-filters:has(.hotel-guests-picker.active),
.hotel-search-filters:has(.hotel-guests-picker.active),
.hotel-travel-search-layout:has(.hotel-guests-picker.active) {
    overflow: visible;
}

.hotel-card-premium:has(.hotel-guests-picker.active) > .card-body,
.filter-card:has(.hotel-guests-picker.active) > .card-body {
    overflow: visible;
}

@keyframes guestPickerMenuIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Portaled dropdown — self-contained styles (menu leaves original DOM context) */
.guest-picker-menu--portaled {
    display: block !important;
    box-sizing: border-box;
    width: min(310px, calc(100vw - 48px)) !important;
    min-width: 280px;
    background: #fff;
    border: 1px solid #E6EAF0;
    border-radius: 14px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
    padding: 12px;
    text-align: right;
    direction: rtl;
    color: #1E293B;
    animation: guestPickerMenuIn 0.18s ease;
}

.smart-guests-menu.guest-picker-menu--portaled {
    border-radius: 18px;
    box-shadow: 0 24px 45px rgba(15, 23, 42, 0.18);
}

.guest-picker-menu--portaled .guest-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #EEF2F7;
}

.guest-picker-menu--portaled .guest-row:last-child,
.guest-picker-menu--portaled .guest-row:last-of-type {
    border-bottom: 0;
}

.guest-picker-menu--portaled .guest-row span b {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: #1E293B;
    line-height: 1.35;
}

.guest-picker-menu--portaled .guest-row span small {
    display: block;
    color: #64748B;
    font-size: 0.68rem;
    margin-top: 2px;
    line-height: 1.3;
}

.guest-picker-menu--portaled .stepper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.guest-picker-menu--portaled .stepper strong {
    min-width: 1.25rem;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 800;
    color: #1E293B;
}

.guest-picker-menu--portaled .stepper button {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: #EEF2F7;
    color: #1E293B;
    font-weight: 900;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.guest-picker-menu--portaled .stepper button:hover {
    background: #0A58CA;
    color: #fff;
}

.guest-picker-menu--portaled .hotel-guests-footer {
    padding-top: 10px;
    margin-top: 4px;
    border-top: 1px solid #EEF2F7;
}

.guest-picker-menu--portaled .hotel-guests-footer .btn,
.guest-picker-menu--portaled .btn-brand {
    border-radius: 12px;
    font-weight: 700;
}

.guest-picker-menu--portaled .child-age-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 8px 0;
}

.guest-picker-menu--portaled .child-age-row select,
.guest-picker-menu--portaled .health-gender-select {
    width: 100%;
    border: 1px solid #E6EAF0;
    border-radius: 12px;
    padding: 8px 10px;
    background: #F8FAFC;
    font-size: 0.78rem;
    color: #1E293B;
}

.guest-picker-menu--portaled .health-gender-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748B;
    margin-bottom: 6px;
}

.guest-picker-menu--portaled .health-guest-row {
    padding-top: 4px;
}
