/* ── Custom styles that complement Tailwind ─────────────────── */

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Selection color */
::selection {
    background: #528464;
    color: #fefdf9;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #528464;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Subtle parallax for hero on scroll (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .hero-bg {
        will-change: background-position;
    }
}

/* ── Room card image overlay on hover ───────────────────────── */
.room-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(29, 52, 41, 0.15) 0%, transparent 40%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.room-card:hover .room-card-img::after {
    opacity: 1;
}

/* ── Stat card subtle float animation ───────────────────────── */
@media (prefers-reduced-motion: no-preference) {
    .stat-card,
    .stat-card-dark {
        animation: float 6s ease-in-out infinite;
    }
    .stat-card:nth-child(2) {
        animation-delay: -2s;
    }
    .stat-card:nth-child(3) {
        animation-delay: -4s;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* ── Ornament line animation ────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
    .ornament::before,
    .ornament::after {
        animation: lineExpand 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }
}

@keyframes lineExpand {
    from { opacity: 0; transform: scaleX(0); }
    to   { opacity: 1; transform: scaleX(1); }
}

/* ── Print styles ───────────────────────────────────────────── */
@media print {
    nav, .hero-bg, #amenities, .cta-pattern { display: none; }
    body { color: #000; background: #fff; }
    a { color: #000; }
}
