/* ===== Room Info page ("Thông tin phòng", /thong-tin-phong/) =====
   Page-only styles; shared room card styles live in css/rooms/room_card.css. */

/* Internal ops page — use the full viewport width instead of Bootstrap's centered
   .container (same override as .qt-dash.container in schedule.css). */
.rs-fluid.container {
    --bs-gutter-x: 0;
    max-width: none;
    padding-left: 12px;
    padding-right: 12px;
}

/* ===== Room Sale Filter Bar ===== */
.rs-filter-bar {
    background: var(--color-white, #fff);
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem 0;
}

.rs-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-end;
}

.rs-filter-row--primary {
    margin-bottom: 0.5rem;
}

.rs-filter-bar .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 130px;
}

.rs-filter-bar .form-group--amenity {
    flex: 1;
    min-width: 220px;
}

.rs-filter-bar .form-group--address {
    flex: 1;
    min-width: 180px;
}

.rs-filter-bar label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rs-filter-bar select,
.rs-filter-bar input[type="text"] {
    height: 34px;
    padding: 0 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.8rem;
    background: #fff;
    color: #111827;
    transition: border-color 0.15s;
}

.rs-filter-bar .multiselect-trigger {
    height: 34px;
    min-height: 34px;
    max-height: 34px;
    padding: 0 0.5rem;
    font-size: 0.8rem;
    border-radius: 6px;
    border-color: #d1d5db;
    overflow: hidden;
}

/* Compact tags inside filter bar */
.rs-filter-bar .multiselect-tags {
    gap: 0.2rem;
    flex-wrap: nowrap;
    overflow: hidden;
    align-items: center;
    max-height: 22px;
}

.rs-filter-bar .multiselect-tag {
    font-size: 0.68rem;
    font-weight: 500;
    padding: 0 0.3rem 0 0.4rem;
    height: 20px;
    border-radius: 4px;
    gap: 0.15rem;
    background-color: #dbeafe;
    color: var(--primary-blue, #2563eb);
    flex-shrink: 0;
}

.rs-filter-bar .multiselect-tag-text {
    max-width: 72px;
}

.rs-filter-bar .multiselect-tag-close {
    width: 13px;
    height: 13px;
    opacity: 0.7;
    background: transparent;
}
.rs-filter-bar .multiselect-tag-close:hover {
    opacity: 1;
    background-color: rgba(37, 99, 235, 0.15);
}

.rs-filter-bar .multiselect-tag-close svg {
    width: 8px;
    height: 8px;
}

.rs-filter-bar .multiselect-more-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0 0.35rem;
    height: 20px;
    border-radius: 10px;
    background: #2563eb;
    color: #fff;
    flex-shrink: 0;
    white-space: nowrap;
}

.rs-filter-bar .multiselect-placeholder {
    font-size: 0.8rem;
    color: #9ca3af;
}

.rs-filter-bar select:focus,
.rs-filter-bar input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-blue, #2563eb);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.rs-filter-bar .btn-filter {
    height: 34px;
    padding: 0 1rem;
    background: var(--primary-blue, #2563eb);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    align-self: flex-end;
    transition: background 0.15s;
}

.rs-filter-bar .btn-filter:hover { background: var(--primary-blue-dark, #1d4ed8); }

@media (max-width: 767px) {
    .rs-filter-row { flex-direction: column; }
    .rs-filter-bar .form-group,
    .rs-filter-bar .form-group--address { width: 100%; }
    /* Hide province/district row from bottom sheet on mobile */
    .rs-filter-row--primary { display: none; }
    /* Hide sort + room-type from sheet (available in quick row outside) */
    .rs-filter-bar .rs-mob-hide { display: none; }
}

/* ===== Mobile quick filter row ===== */
.rs-mobile-quick-row { display: none; }

@media (max-width: 767px) {
    .rs-mobile-quick-row {
        display: flex;
        gap: 0.4rem;
        padding: 0.4rem 0 0.1rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .rs-mobile-quick-row::-webkit-scrollbar { display: none; }
    .rs-mob-chip {
        position: relative;
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        height: 30px;
        padding: 0 0.5rem;
        border: 1px solid #d1d5db;
        border-radius: 6px;
        background: #f9fafb;
        font-size: 0.75rem;
        color: #374151;
        white-space: nowrap;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        flex: 1;
    }
    .rs-mob-chip.is-active {
        border-color: var(--primary-blue, #2563eb);
        background: #dbeafe;
        color: var(--primary-blue, #2563eb);
        font-weight: 600;
    }
    /* Mobile chip: pointer cursor on the whole chip */
    .rs-mob-chip { cursor: pointer; }

    /* .rs-mobile-quick-row > * {
        flex: 1;
    } */
}

/* ===== Searchable Select Component ===== */
.rs-ss-dropdown {
    position: fixed;
    z-index: var(--z-dropdown, 1000);
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    overflow: hidden;
    min-width: 200px;
    max-width: 320px;
    display: none;
}
.rs-ss-list {
    max-height: 220px;
    overflow-y: auto;
}
.rs-ss-option {
    padding: 8px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rs-ss-option:hover,
.rs-ss-option.is-focused { background: #eff6ff; color: #2563eb; }
.rs-ss-option.is-selected { font-weight: 600; color: #2563eb; }
.rs-ss-clear {
    color: #6b7280;
    font-size: 0.8rem;
    border-bottom: 1px solid #f3f4f6;
}
.rs-ss-clear:hover { background: #fef2f2; color: #dc2626; }
.rs-ss-no-results {
    padding: 8px 12px;
    font-size: 0.8rem;
    color: #9ca3af;
    text-align: center;
}
.rs-mob-chip .rs-ss-input {
    background: transparent;
    border: none;
    outline: none;
    font-size: 0.75rem;
    color: inherit;
    font-weight: inherit;
    width: 100%;
    min-width: 0;
    cursor: pointer;
    padding: 0;
}
.rs-mob-chip .rs-ss-input::placeholder { color: inherit; opacity: 1; }

/* ===== Skeleton loader ===== */
.rs-skeleton {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: rs-shimmer 1.4s infinite;
    border-radius: 6px;
}

@keyframes rs-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.rs-skeleton-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    height: 168px;
    display: flex;
    flex-direction: column;
}

.rs-skeleton-card__header { height: 32px; margin: 0; border-radius: 0; }
.rs-skeleton-card__body   { flex: 1; display: flex; }
.rs-skeleton-card__img    { width: 140px; flex-shrink: 0; border-radius: 0; }
.rs-skeleton-card__lines  { flex: 1; padding: 8px; display: flex; flex-direction: column; gap: 5px; }
.rs-skeleton-card__line   { height: 12px; border-radius: 4px; }
.rs-skeleton-card__line--short { width: 55%; }
.rs-skeleton-card__line--price { height: 16px; width: 45%; }

/* ===== Error / Empty ===== */
.rs-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.rs-error-alert {
    border-left: 4px solid #dc2626;
    background: #fef2f2;
    color: #991b1b;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
}

/* ===== Advanced filters ===== */
.btn-adv-toggle {
    height: 34px;
    padding: 0 0.75rem;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-adv-toggle:hover { background: #e5e7eb; }
.btn-adv-toggle.is-active {
    background: #dbeafe;
    border-color: var(--primary-blue, #2563eb);
    color: var(--primary-blue, #2563eb);
}
.btn-clear-adv {
    height: 34px;
    padding: 0 0.75rem;
    background: #fff;
    color: #dc2626;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.15s;
    display: none;
}
.btn-clear-adv:hover { background: #fef2f2; }
.btn-clear-adv.is-visible { display: inline-flex; align-items: center; gap: 0.25rem; }

.rs-adv-panel {
    border-top: 1px solid #e5e7eb;
    padding-top: 0.5rem;
    margin-top: 0.25rem;
}
.rs-adv-groups { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.rs-adv-group {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    min-width: 200px;
    flex: 1;
}
.rs-adv-group__title {
    font-size: 0.7rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
}
.rs-adv-group__selects { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: flex-end;}
.rs-adv-group__selects .form-group { min-width: 110px; }

/* ===== Mobile compact search bar ===== */
.rs-mobile-bar { display: none; }

/* ===== Bottom sheet overlay ===== */
.rs-sheet-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: calc(var(--z-modal, 1050) - 1);
    opacity: 0;
    transition: opacity 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}
.rs-sheet-overlay.is-visible { opacity: 1; }

/* ===== Sheet handle / header / footer — hidden on desktop ===== */
.rs-sheet-handle,
.rs-sheet-header,
.rs-sheet-footer { display: none; }

@media (max-width: 767px) {
    /* --- Compact mobile search bar --- */
    .rs-mobile-bar {
        display: block;
        background: #fff;
        border-bottom: 1px solid #e5e7eb;
        padding: 0.5rem 0;
    }

    /* --- Row 1: search + sort --- */
    .rs-mob-row1 {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        margin-bottom: 0.4rem;
    }

    .rs-mob-search-wrapper {
        flex: 1;
        position: relative;
        display: flex;
        align-items: center;
    }

    .rs-mob-search-icon {
        position: absolute;
        left: 0.55rem;
        color: #9ca3af;
        width: 15px;
        height: 15px;
        pointer-events: none;
    }

    .rs-mob-search-input {
        width: 100%;
        height: 36px;
        padding: 0 0.75rem 0 2rem;
        border: 1.5px solid #e5e7eb;
        border-radius: 10px;
        font-size: 0.85rem;
        background: #f3f4f6;
        color: #374151;
        outline: none;
    }

    .rs-mob-search-input:focus {
        border-color: var(--primary-blue, #2563eb);
        background: #fff;
    }

    .rs-mob-sort-select {
        flex-shrink: 0;
        height: 36px;
        padding: 0 0.5rem;
        border: 1.5px solid #e5e7eb;
        border-radius: 10px;
        background: #f3f4f6;
        font-size: 0.78rem;
        color: #374151;
        max-width: 120px;
        cursor: pointer;
    }

    /* --- Row 2: filter open button --- */
    .rs-mob-filter-btn {
        flex-shrink: 0;
        height: 30px;
        padding: 0 0.55rem;
        border: 1px solid #d1d5db;
        border-radius: 6px;
        background: #f3f4f6;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 0.3rem;
        font-size: 0.75rem;
        color: #374151;
        white-space: nowrap;
        -webkit-tap-highlight-color: transparent;
    }

    .rs-mob-filter-btn:active { background: #e5e7eb; }

    .rs-mob-filter-btn svg {
        width: 13px;
        height: 13px;
        flex-shrink: 0;
    }

    .rs-mob-filter-badge {
        background: var(--primary-blue, #2563eb);
        color: #fff;
        font-size: 0.6rem;
        font-weight: 700;
        min-width: 16px;
        height: 16px;
        border-radius: 8px;
        padding: 0 4px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* --- Bottom sheet (filter bar becomes a sheet on mobile) --- */
    .rs-filter-bar {
        position: fixed !important;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto !important;
        max-height: 88vh;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
        transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
        z-index: var(--z-modal, 1050);
        overflow-y: auto;
        border-bottom: none;
        box-shadow: 0 -6px 32px rgba(0, 0, 0, 0.14);
        padding: 0 0 env(safe-area-inset-bottom, 0px) 0;
        overscroll-behavior: contain;
    }

    .rs-filter-bar.is-sheet-open { transform: translateY(0); }

    .rs-sheet-overlay.is-visible { display: block; }

    /* --- Sheet drag handle --- */
    .rs-sheet-handle {
        display: flex;
        justify-content: center;
        padding: 0.75rem 0 0.25rem;
    }

    .rs-sheet-handle span {
        display: block;
        width: 36px;
        height: 4px;
        background: #d1d5db;
        border-radius: 2px;
    }

    /* --- Sheet header --- */
    .rs-sheet-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.25rem 1rem 0.75rem;
        border-bottom: 1px solid #f3f4f6;
    }

    .rs-sheet-header__title {
        font-size: 0.95rem;
        font-weight: 700;
        color: #111827;
    }

    .rs-sheet-header__close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border: none;
        background: #f3f4f6;
        border-radius: 50%;
        cursor: pointer;
        color: #6b7280;
        -webkit-tap-highlight-color: transparent;
    }

    .rs-sheet-header__close:active { background: #e5e7eb; }

    /* --- Sheet footer CTA --- */
    .rs-sheet-footer {
        display: block;
        position: sticky;
        bottom: 0;
        background: #fff;
        border-top: 1px solid #e5e7eb;
        padding: 0.75rem 1rem;
        z-index: 1;
    }

    .btn-filter--sheet-cta {
        width: 100%;
        height: 44px;
        font-size: 0.95rem;
        font-weight: 700;
        border-radius: 10px;
    }

    /* --- Hide inline submit button on mobile (replaced by sheet footer) --- */
    .rs-filter-row .btn-filter { display: none; }

    /* --- Sheet body padding --- */
    .rs-filter-bar .container {
        padding-top: 0.75rem;
        padding-bottom: 0.25rem;
    }
}

/* ===== Mobile room-type inline dropdown ===== */
.rs-mob-rt-dropdown {
    position: fixed;
    z-index: calc(var(--z-modal, 1050) + 5);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
    padding: 0.5rem;
    width: min(260px, calc(100vw - 16px));
    max-height: 56vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.2rem;
}

.rs-mob-rt-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.5rem;
    border-radius: 7px;
    font-size: 0.78rem;
    color: #374151;
    cursor: pointer;
    user-select: none;
    transition: background 0.12s;
    -webkit-tap-highlight-color: transparent;
}

.rs-mob-rt-item:hover,
.rs-mob-rt-item.is-checked { background: #dbeafe; color: var(--primary-blue, #2563eb); }

.rs-mob-rt-item input[type="checkbox"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
    accent-color: var(--primary-blue, #2563eb);
    flex-shrink: 0;
}

/* ── Mobile chip filter sections ────────────────────────────────────────── */
.rs-mob-only { display: none; }

@media (max-width: 767px) {
    .rs-mob-only { display: block; }
}

.rs-mob-chip-section {
    width: 100%;
    padding: 0.75rem 0 0.5rem;
    border-top: 1px solid #f3f4f6;
}

/* ── Card grid: CSS subgrid cross-card alignment (desktop) ── */
/* Converts Bootstrap flex row to CSS grid so 2 side-by-side cards
   share row tracks — header/meta/body/fees/detail/footer all align. */
@media (min-width: 992px) {
    #rsCardsContainer {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    #rsCardsContainer > .col {
        display: grid;
        grid-row: span 6;
        grid-template-rows: subgrid;
        padding: 0 !important;
        width: auto !important;
        max-width: none !important;
    }
}

/* ===== Edit room modal ===== */
.rs-edit-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.55);
    z-index: var(--z-modal-backdrop, 1040);
    opacity: 0;
    transition: opacity 0.2s;
}
.rs-edit-backdrop.is-open { opacity: 1; }

.rs-edit-modal {
    display: none;
    position: fixed;
    z-index: var(--z-modal, 1050);
    top: 50%;
    left: 50%;
    width: min(680px, calc(100vw - 24px));
    max-height: calc(100vh - 48px);
    transform: translate(-50%, -48%);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    flex-direction: column;
    overflow: hidden;
}
.rs-edit-modal.is-open {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.rs-edit-modal__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}
.rs-edit-modal__title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}
.rs-edit-modal__room {
    font-size: 0.82rem;
    color: #6b7280;
    font-weight: 500;
}
.rs-edit-modal__close {
    margin-left: auto;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 1rem;
    cursor: pointer;
    flex-shrink: 0;
}
.rs-edit-modal__close:hover { background: #e5e7eb; color: #111827; }

.rs-edit-modal__body {
    padding: 0.9rem 1.1rem;
    overflow-y: auto;
    flex: 1;
}
.rs-edit-modal__loading,
.rs-edit-modal__alert {
    padding: 0.7rem 0.9rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}
.rs-edit-modal__loading { color: #6b7280; text-align: center; }
.rs-edit-modal__alert {
    display: none;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}
.rs-edit-modal__alert.is-visible { display: block; }

.rs-edit-section {
    margin-bottom: 1rem;
}
.rs-edit-section__title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #374151;
    margin: 0 0 0.5rem;
}
.rs-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem 0.8rem;
}
.rs-edit-field {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}
.rs-edit-field--full { grid-column: 1 / -1; }
.rs-edit-field__label {
    font-size: 0.76rem;
    font-weight: 600;
    color: #4b5563;
}
.rs-edit-field input,
.rs-edit-field select,
.rs-edit-field textarea {
    width: 100%;
    padding: 0.45rem 0.55rem;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    font-size: 0.85rem;
    color: #111827;
    background: #fff;
}
.rs-edit-field input:focus,
.rs-edit-field select:focus,
.rs-edit-field textarea:focus {
    outline: none;
    border-color: var(--rs-accent, #1d4ed8);
    box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.12);
}
.rs-edit-field--fee {
    display: grid;
    grid-template-columns: 1fr 110px;
    gap: 0.35rem;
    align-items: end;
}
.rs-edit-field--fee .rs-edit-field__label { grid-column: 1 / -1; }

.rs-edit-amenities {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem 0.6rem;
}
.rs-edit-amenity {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: #374151;
    cursor: pointer;
}
.rs-edit-amenity input { width: auto; }

.rs-edit-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.8rem 1.1rem;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
}
.rs-edit-btn-cancel,
.rs-edit-btn-save {
    padding: 0.5rem 1.1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
}
.rs-edit-btn-cancel {
    background: #f3f4f6;
    color: #374151;
    border-color: #e5e7eb;
}
.rs-edit-btn-cancel:hover { background: #e5e7eb; }
.rs-edit-btn-save {
    background: var(--rs-accent, #1d4ed8);
    color: #fff;
}
.rs-edit-btn-save:hover { background: var(--rs-accent-strong, #1e40af); }
.rs-edit-btn-save:disabled,
.rs-edit-btn-cancel:disabled { opacity: 0.6; cursor: not-allowed; }
.rs-edit-spinner {
    display: inline-block;
    width: 13px;
    height: 13px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: rs-edit-spin 0.7s linear infinite;
    vertical-align: -2px;
    margin-right: 0.35rem;
}
@keyframes rs-edit-spin { to { transform: rotate(360deg); } }

/* Success toast */
.rs-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #16a34a;
    color: #fff;
    padding: 0.65rem 1.2rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    z-index: var(--z-tooltip, 1070);
    opacity: 0;
    transition: opacity 0.25s, transform 0.25s;
    pointer-events: none;
}
.rs-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.rs-toast--action {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}
.rs-toast__undo {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font: inherit;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 7px;
    cursor: pointer;
    transition: background 0.15s;
}
.rs-toast__undo:hover { background: rgba(255, 255, 255, 0.32); }

@media (max-width: 640px) {
    .rs-edit-modal {
        width: 100vw;
        max-height: 92vh;
        top: auto;
        bottom: 0;
        left: 0;
        transform: translateY(100%);
        border-radius: 16px 16px 0 0;
    }
    .rs-edit-modal.is-open { transform: translateY(0); }
    .rs-edit-grid { grid-template-columns: 1fr; }
    .rs-edit-amenities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
