/* Alpine.js x-cloak - hide elements until Alpine initializes */
[x-cloak] {
    display: none !important;
}

.animate-fade-in {
    animation: fadeIn 0.2s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Hero Section: Always match a 16:9 video ratio ── */
.hero-section {
    aspect-ratio: 16 / 9;
    max-height: 85vh;
}

/* ── Booking Card glassmorphism extras ── */
.hero-booking-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.4s ease;
}

.hero-booking-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45),
                0 0 0 1px rgba(255, 190, 61, 0.15);
    border-color: rgba(255, 190, 61, 0.25);
}

/* Style date inputs on dark backgrounds (desktop card + mobile form) */
.hero-booking-card input[type="date"]::-webkit-calendar-picker-indicator,
.hero-mobile-form input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) opacity(0.5);
    cursor: pointer;
}

/* Select dropdown arrow for dark backgrounds */
.hero-booking-card select,
.hero-mobile-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='rgba(255,255,255,0.5)' d='M6 8.825L.375 3.2l.85-.85L6 7.125 10.775 2.35l.85.85z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 32px;
}

@font-face {
    font-family: 'Material Symbols Outlined';
    src: url('https://fonts.gstatic.com/s/materialsymbolsoutlined/v311/kJEPBvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oDMzBwG-RpA6RzaxHMPdY40KH8nGzv3fzfVJO1Q.woff2') format('woff2'),
        url('https://fonts.gstatic.com/s/materialsymbolsoutlined/v311/kJEPBvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oDMzBwG-RpA6RzaxHMPdY40KH8nGzv3fzfVJO1Q.woff') format('woff');
    font-display: block;
}

@layer base {

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        font-family: font-display;
    }
}

.card-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-transition:hover {
    transform: translateY(-8px);
}

.pause {
    animation-play-state: paused;
}

/* Partner Logo Styles */
.partner-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.partner-logo {
    filter: grayscale(100%) opacity(0.55);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: filter, transform;
    display: block;
}

.partner-logo-container:hover .partner-logo {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.15);
}

/* Smooth pause animation */
.group-hover\:pause:hover {
    animation-play-state: paused !important;
}

.material-symbols-outlined {
    font-variation-settings:
        'FILL' 1,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24
}

/* Custom scrollbar for webkit */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: #605551;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #4c352f;
}

.dark ::-webkit-scrollbar-thumb {
    background-color: #404040;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background-color: #525252;
}

/*
 * Horizontal overflow is clipped on html instead of body.
 * body { overflow-x: hidden } forces overflow-y to compute to auto, which makes
 * body the scrollport for descendants and breaks position:sticky on the header.
 */
html {
    overflow-x: hidden;
}

body {
    overflow-x: visible !important;
}