/* ==========================================================================
   Rooms & Suites — professional motion  (v5.0.6)
   Loaded only on the Rooms page, after the main stylesheet.

   What changed (layout and content are untouched):
   - NO 3D tilt: the cards now lift straight up a few pixels, nothing rotates.
   - NO blur: the hover panel is a soft bottom gradient, the photo stays sharp.
   - Photo zoom is smooth and clearly visible (10 %, 1.2 s ease-out) — a classic image-zoom hover — with no blur and no tilt.
   - On first appearance the photo settles from a slight zoom, then the text
     fades up in sequence — an editorial "reveal" instead of a pop-in.
   - Photos always fill their frame edge to edge and scale with the screen.
   Everything respects prefers-reduced-motion and only runs hover effects on
   devices that really hover.
   ========================================================================== */

.dsr-rooms9__card,
.dsr-rooms8__card {
    --rp-ease: cubic-bezier(.22, 1, .36, 1);
    --rp-lift: -6px;
}

/* ── 1. Card: calm lift + shadow (no rotation, no perspective) ───────────── */
.dsr-rooms9__card.dsr-reveal-in,
.dsr-rooms9__card--vis {
    transition: transform .55s var(--rp-ease), box-shadow .55s var(--rp-ease), opacity .55s var(--rp-ease);
}
@media (hover: hover) and (pointer: fine) {
    .dsr-rooms9__card:hover,
    .dsr-rooms9__card.dsr-reveal-in:hover,
    .dsr-rooms9__card.dsr-reveal-init.dsr-reveal-in:hover {
        transform: translateY(var(--rp-lift)) !important;
        /* clean layered shadow + a hairline of gold (replaces the old coloured glow, which looked like haze) */
        box-shadow: 0 30px 60px -22px rgba(10, 30, 53, .32), 0 12px 26px -8px rgba(10, 30, 53, .12), 0 0 0 1px rgba(201, 168, 76, .30) !important;
    }
}

/* the cursor-following white glow hazed the photo — switched off */
.dsr-rooms9__card::before { display: none !important; }
/* the diagonal "shine sweep" across the photo — switched off (calmer, more premium) */
.dsr-rooms9__img-frame::after { display: none !important; }

/* ── 2. Photo: always full-bleed, slow gentle zoom, never filtered ───────── */
.dsr-rooms9__img-frame,
.dsr-rooms8__img-wrap {
    position: relative !important;
    overflow: hidden !important;
    background: #0d2137;                       /* shows while the photo loads — no white flash */
}
.dsr-rooms9__img-frame img,
.dsr-rooms8__img-wrap img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    filter: none !important;
    -webkit-filter: none !important;
    transform: scale(1);
    transform-origin: 50% 50%;
    transition: transform 1.2s var(--rp-ease) !important;
    will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
    .dsr-rooms9__card:hover .dsr-rooms9__img-frame img,
    .dsr-rooms8__card:hover .dsr-rooms8__img-wrap img {
        transform: scale(1.10) !important;
    }
}

/* ── 3. Hover panel: bottom gradient + slide-up button. No blur, no dimming of the whole photo ── */
.dsr-rooms9__img-hover {
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: auto !important;
    flex-direction: row-reverse !important;     /* price on the left, button on the right */
    align-items: flex-end !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    padding: 3.5rem 1.4rem 1.25rem !important;
    background: linear-gradient(to top, rgba(6, 16, 30, .62) 0%, rgba(6, 16, 30, .30) 50%, rgba(6, 16, 30, 0) 100%) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    transition: opacity .5s var(--rp-ease) !important;
}
.dsr-rooms9__img-hover-btn {
    transform: translateY(18px);
    opacity: 0;
    transition: transform .65s var(--rp-ease), opacity .45s ease, box-shadow .3s ease !important;
}
.dsr-rooms9__img-hover-price {
    transform: translateY(14px);
    opacity: 0;
    transition: transform .65s var(--rp-ease) .06s, opacity .5s ease .06s !important;
}
.dsr-rooms9__card:hover .dsr-rooms9__img-hover-btn   { transform: translateY(0) !important; opacity: 1 !important; transition-delay: .08s !important; }
.dsr-rooms9__card:hover .dsr-rooms9__img-hover-price { transform: translateY(0) !important; opacity: 1 !important; }
.dsr-rooms9__img-hover-btn:hover { transform: translateY(-2px) !important; box-shadow: 0 10px 26px rgba(0, 0, 0, .28); }   /* no scale, no wobble */

/* older card family (same fix, in case a card uses it): no blur */
.dsr-rooms8__img-hover-overlay {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    background: linear-gradient(to top, rgba(6, 16, 30, .62) 0%, rgba(6, 16, 30, 0) 70%) !important;
}

/* ── 4. Responsive: the photo scales with the screen instead of a fixed pixel height ── */
@media (max-width: 900px) {
    .dsr-rooms9__img-frame,
    .dsr-rooms9__card--featured .dsr-rooms9__img-frame {
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 16 / 10;
    }
    .dsr-rooms9__card { border-radius: 18px; }
}
@media (max-width: 600px) {
    .dsr-rooms9__img-frame,
    .dsr-rooms9__card--featured .dsr-rooms9__img-frame { aspect-ratio: 4 / 3; }
}
@media (min-width: 1500px) {
    .dsr-rooms9__card { min-height: 520px; }   /* big screens: let the photo breathe */
}
/* hero: true full-screen on phones whose address bar moves (svh) */
@supports (height: 100svh) {
    .dsr-rooms9__hero { min-height: 85svh; }
}

/* ── 5. Entrance: photo settles, then the text fades up in sequence ───────── */
@media (prefers-reduced-motion: no-preference) {
    .dsr-rooms9__card.dsr-reveal-init .dsr-rooms9__img-frame img { transform: scale(1.14); }
    .dsr-rooms9__card.dsr-reveal-in   .dsr-rooms9__img-frame img { transform: scale(1); transition: transform 1.9s var(--rp-ease) !important; }
    @media (hover: hover) and (pointer: fine) {
        .dsr-rooms9__card.dsr-reveal-in:hover .dsr-rooms9__img-frame img { transform: scale(1.10) !important; transition: transform 1.2s var(--rp-ease) !important; }
    }

    .dsr-rooms9__card.dsr-reveal-init .dsr-rooms9__content > * { opacity: 0; transform: translateY(16px); }
    .dsr-rooms9__card.dsr-reveal-in   .dsr-rooms9__content > * {
        opacity: 1;
        transform: none;
        transition: opacity .85s var(--rp-ease), transform .85s var(--rp-ease);
    }
    .dsr-rooms9__card.dsr-reveal-in .dsr-rooms9__content > *:nth-child(1) { transition-delay: .20s; }
    .dsr-rooms9__card.dsr-reveal-in .dsr-rooms9__content > *:nth-child(2) { transition-delay: .28s; }
    .dsr-rooms9__card.dsr-reveal-in .dsr-rooms9__content > *:nth-child(3) { transition-delay: .36s; }
    .dsr-rooms9__card.dsr-reveal-in .dsr-rooms9__content > *:nth-child(4) { transition-delay: .44s; }
    .dsr-rooms9__card.dsr-reveal-in .dsr-rooms9__content > *:nth-child(5) { transition-delay: .52s; }
    .dsr-rooms9__card.dsr-reveal-in .dsr-rooms9__content > *:nth-child(n+6) { transition-delay: .60s; }
}

/* ── 6. Reduced motion: everything static ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .dsr-rooms9__card,
    .dsr-rooms9__img-frame img,
    .dsr-rooms9__img-hover,
    .dsr-rooms9__img-hover-btn,
    .dsr-rooms9__img-hover-price,
    .dsr-rooms9__content > * { transition: none !important; transform: none !important; }
}
