@keyframes room-card-in {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
}

@keyframes room-preview-in {
    from { opacity: 0; transform: translateY(10px) scale(.97); }
    to   { opacity: 1; transform: none; }
}

.room-card-in {
    opacity: 0;
    animation: room-card-in .5s cubic-bezier(.22, 1, .36, 1) forwards;
}

.room-slider-track {
    display: flex;
    height: 100%;
    transition: transform .35s cubic-bezier(.22, 1, .36, 1);
    will-change: transform;
}

.room-slider-track > * {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.room-slider-btn {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #264653;
    box-shadow: 0 4px 12px rgba(31, 35, 40, 0.12);
    backdrop-filter: blur(4px);
    cursor: pointer;
    opacity: 0;
    transform: translateY(-50%);
    transition: opacity .2s ease, background .2s ease;
}

.room-card-in:hover .room-slider-btn,
.room-card-in:focus-within .room-slider-btn {
    opacity: 1;
}

.room-slider-btn:hover { background: #fff; }
.room-slider-btn.prev { left: .6rem; }
.room-slider-btn.next { right: .6rem; }

.room-slider-dots {
    position: absolute;
    left: 50%;
    bottom: .7rem;
    z-index: 2;
    display: flex;
    gap: .35rem;
    transform: translateX(-50%);
}

.room-slider-dot {
    width: .4rem;
    height: .4rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.room-slider-dot.is-active {
    background: #fff;
    transform: scale(1.25);
}

.room-preview-layer {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(31, 35, 40, 0.34);
    backdrop-filter: blur(6px);
}

.room-preview-layer.is-open {
    display: flex;
}

body.room-preview-locked {
    overflow: hidden;
}

.room-preview-pop {
    position: relative;
    width: min(560px, calc(100vw - 2rem));
    max-height: min(86vh, 720px);
    overflow: auto;
    border-radius: 26px;
    background:
        linear-gradient(165deg, #fffaf2 0%, #ffffff 46%),
        #fff;
    border: 1px solid rgba(31, 35, 40, 0.08);
    box-shadow:
        0 28px 70px rgba(31, 35, 40, 0.22),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    animation: room-preview-in .28s cubic-bezier(.22, 1, .36, 1);
}

.room-preview-close-x {
    position: absolute;
    top: .85rem;
    right: .85rem;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #264653;
    box-shadow: 0 4px 14px rgba(31, 35, 40, 0.12);
    cursor: pointer;
}

.room-preview-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #ece7df;
}

.room-preview-media img[data-preview-hero] {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.room-preview-zoom {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}
.room-preview-layer.is-large .room-preview-pop {
    width: min(1600px, calc(100vw - 2rem));
    max-height: 94dvh;
    border-radius: 8px;
}
.room-preview-layer.is-large .room-preview-media {
    height: 88dvh;
    aspect-ratio: auto;
    background: #191919;
}
.room-preview-layer.is-large .room-preview-body { display: none; }
.room-preview-layer.is-large .room-preview-zoom { cursor: zoom-out; }

.room-preview-thumbs {
    position: absolute;
    left: .85rem;
    right: .85rem;
    bottom: .85rem;
    display: flex;
    gap: .4rem;
    overflow-x: auto;
}

.room-preview-thumb {
    flex: 0 0 3.1rem;
    width: 3.1rem;
    height: 2.25rem;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 9px;
    overflow: hidden;
    cursor: pointer;
    opacity: .8;
    background: #fff;
}

.room-preview-thumb.is-active,
.room-preview-thumb:hover {
    opacity: 1;
    border-color: #fff;
    box-shadow: 0 4px 12px rgba(31, 35, 40, 0.18);
}

.room-preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.room-preview-body {
    display: flex;
    flex-direction: column;
    gap: .95rem;
    padding: 1.25rem 1.35rem 1.3rem;
}

.room-preview-kicker {
    color: #a46a3a;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.room-preview-title {
    margin: .2rem 0 0;
    font-size: 1.55rem;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: #1f2328;
}

.room-preview-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .55rem;
}

.room-preview-stat {
    border-radius: 14px;
    background: rgba(164, 106, 58, 0.09);
    padding: .7rem .75rem;
}

.room-preview-stat:nth-child(2) { background: rgba(38, 70, 83, 0.08); }
.room-preview-stat:nth-child(3) { background: rgba(38, 70, 83, 0.12); }

.room-preview-stat-label {
    display: block;
    margin-bottom: .15rem;
    color: #6d6a63;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.room-preview-stat-value {
    color: #1f2328;
    font-size: .98rem;
    font-weight: 800;
    line-height: 1.2;
}

.room-preview-copy {
    margin: 0;
    color: #6d6a63;
    font-size: .94rem;
    line-height: 1.65;
}

.room-preview-features {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.room-preview-feature {
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(31, 35, 40, 0.08);
    padding: .3rem .7rem;
    color: #264653;
    font-size: .8rem;
    font-weight: 700;
}

.room-preview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: .15rem;
}

.room-preview-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: 2.55rem;
    padding: 0 1.1rem;
    border-radius: 999px;
    background: #a46a3a;
    color: #fff !important;
    font-weight: 800;
    text-decoration: none !important;
    box-shadow: 0 10px 22px rgba(164, 106, 58, 0.26);
    transition: transform .2s ease, background .2s ease;
}

.room-preview-cta:hover {
    background: #8f5a30;
    transform: translateY(-1px);
}

.room-preview-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.55rem;
    padding: 0 1rem;
    border: 1px solid rgba(31, 35, 40, 0.1);
    border-radius: 999px;
    background: transparent;
    color: #6d6a63;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 640px) {
    .room-preview-stats {
        grid-template-columns: 1fr;
    }
}

@media (hover: none) {
    .room-slider-btn { opacity: .9; }
}

@media (prefers-reduced-motion: reduce) {
    .room-card-in,
    .room-preview-pop {
        animation: none;
    }

    .room-card-in { opacity: 1; }
    .room-slider-track { transition: none; }
}
