/* =============================================
   The Nest, Asese — Custom Styles
   ============================================= */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Font rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.page-loading {
    overflow: hidden;
}

body.page-ready #page-loader {
    opacity: 0;
    pointer-events: none;
}

/* ---- Animations ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

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

.fade-in-up { animation: fadeInUp 0.7s ease-out both; }
.fade-in    { animation: fadeIn 0.5s ease-out both; }

.skeleton-block {
    background: linear-gradient(90deg, #ececec 25%, #f5f5f5 50%, #ececec 75%);
    background-size: 200% 100%;
    animation: shimmer 1.3s infinite linear;
}

.empty-state,
.error-state {
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid #e5e7eb;
    font-family: Inter, sans-serif;
}

.empty-state {
    background: #ffffff;
    color: #555555;
}

.error-state {
    background: #fff5f5;
    border-color: #fecaca;
    color: #b91c1c;
}

.state-title {
    color: #111111;
    font-family: Syne, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.button-loading {
    opacity: 0.8;
    pointer-events: none;
}

.button-loading::after {
    content: "";
    width: 0.9rem;
    height: 0.9rem;
    margin-left: 0.6rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 999px;
    display: inline-block;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar       { width: 8px; }
::-webkit-scrollbar-track { background: #f5f0e8; }
::-webkit-scrollbar-thumb { background: #c8a96e; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #1a1a1a; }

/* ---- Focus styles ---- */
*:focus-visible {
    outline: 2px solid #c8a96e;
    outline-offset: 2px;
}

/* ---- Gallery grid rows ---- */
.auto-rows-48 > * {
    min-height: 200px;
}

/* ---- Booking radio cards — checked indicator ---- */
input[type="radio"]:checked + div .peer-checked\:flex {
    display: flex;
}

/* ---- Date input styling ---- */
input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0.5;
    cursor: pointer;
}

/* ---- Sticky nav shadow on scroll ---- */
nav.scrolled {
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

/* ---- Print ---- */
@media print {
    nav, footer, .no-print { display: none; }
}
