/* UI Enhancements: 3D cards, shadows, animations, subtle motion */
:root {
    --card-elevation-1: 0 6px 18px rgba(17, 24, 39, 0.06);
    --card-elevation-2: 0 14px 40px rgba(17, 24, 39, 0.12);
    --accent-glow: 0 8px 30px rgba(49,151,149,0.12);
}

/* Smooth appearance for sections */
.reveal-up {
    opacity: 0;
    transform: translateY(12px);
    animation: revealUp 560ms cubic-bezier(.2,.9,.2,1) forwards;
}
@keyframes revealUp {
    to { opacity: 1; transform: translateY(0); }
}

/* 3D card style used across booking/availability cards */
.card {
    transform-style: preserve-3d;
    transition: transform 320ms cubic-bezier(.2,.9,.2,1), box-shadow 320ms ease, filter 320ms ease;
    box-shadow: var(--card-elevation-1);
    will-change: transform, box-shadow;
    backface-visibility: hidden;
}
.card:hover {
    transform: translateY(-10px) rotateX(3deg);
    box-shadow: var(--card-elevation-2);
    filter: saturate(1.02);
}
.card:active { transform: translateY(-6px) rotateX(2deg) scale(0.996); }

/* Accent glow for primary action areas */
.card.highlighted { box-shadow: var(--accent-glow), var(--card-elevation-2); }

/* Soft inner gradient for depth */
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.01));
    mix-blend-mode: soft-light;
    opacity: 0.9;
}

/* Subtle micro-interactions for buttons */
.btn {
    transition: transform 140ms cubic-bezier(.2,.9,.2,1), box-shadow 140ms ease;
}
.btn:active { transform: translateY(1px) scale(0.998); }
.btn-primary {
    box-shadow: 0 6px 18px rgba(49,151,149,0.12);
}
.btn-outline-secondary { transition: box-shadow 180ms ease; }
.btn-outline-secondary:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.06); }

/* Floating badges */
.badge { transition: transform 220ms ease, box-shadow 220ms ease; }
.badge:hover { transform: translateY(-3px); }

/* Card list spacing + responsive */
.card + .card { margin-top: 14px; }

/* Card header icon treatment */
.card .rounded-circle { box-shadow: 0 4px 12px rgba(0,0,0,0.06); transform: translateZ(6px); }

/* Slight tilt effect for groups when pointer moves across container */
.tilt-group { perspective: 900px; }
.tilt-item { transform-origin: center; transition: transform 280ms cubic-bezier(.2,.9,.2,1); }
.tilt-group:hover .tilt-item { transform: rotateX(2deg) translateY(-6px); }

/* Focus-visible polish for accessibility */
.card:focus-within, .btn:focus { outline: none; box-shadow: 0 0 0 4px rgba(49,151,149,0.12); }

/* Utility: staggered reveals for lists */
.reveal-list > * { opacity: 0; transform: translateY(10px); }
.reveal-list.revealed > * { animation: revealUp 420ms cubic-bezier(.2,.9,.2,1) forwards; }
.reveal-list.revealed > *:nth-child(1) { animation-delay: 0ms; }
.reveal-list.revealed > *:nth-child(2) { animation-delay: 70ms; }
.reveal-list.revealed > *:nth-child(3) { animation-delay: 120ms; }
.reveal-list.revealed > *:nth-child(4) { animation-delay: 180ms; }
.reveal-list.revealed > *:nth-child(5) { animation-delay: 240ms; }

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    .card, .btn, .reveal-up, .tilt-item { transition: none !important; animation: none !important; transform: none !important; }
}

/* Small helper for subtle separators */
.soft-divider { height:1px; background: linear-gradient(90deg, rgba(0,0,0,0.03), rgba(0,0,0,0.02)); margin: 12px 0; }

/* Ensure partials' card body stays relative for pseudo elements */
.card > .card-body { position: relative; }
