html, body {
    overflow-x: hidden;
}

/* ============================================
   Balaton Apartments - Custom Theme Styles
   ============================================ */

/* CSS Variables */
:root {
    --lake-deep: #1e3a5f;
    --lake-mid: #2d5a87;
    --sand-warm: #f5e6d3;
    --sand-light: #faf6f0;
    --sunset-amber: #d4a574;
    --sunset-gold: #e8c49a;
    --water-teal: #4a9b9b;
}

/* Typography */
body {
    font-family: 'Outfit', sans-serif;
}

h1, h2, h3, h4, .font-serif {
    font-family: 'Cormorant Garamond', serif;
}

/* ============================================
   Navigation
   ============================================ */

/* Glass morphism for scrolled nav */
.nav-scrolled {
    background: rgba(30, 58, 95, 0.92) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Desktop dropdown menu */
.balaton-nav .menu-item-has-children {
    position: relative;
}

.balaton-nav .menu-item-has-children > .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 200px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 20px 40px rgba(30, 58, 95, 0.15), 0 0 0 1px rgba(30, 58, 95, 0.05);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 100;
}

.balaton-nav .menu-item-has-children:hover > .sub-menu,
.balaton-nav .menu-item-has-children:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.balaton-nav .sub-menu li {
    list-style: none;
}

.balaton-nav .sub-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--lake-deep);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.balaton-nav .sub-menu a:hover {
    background: rgba(212, 165, 116, 0.1);
    color: var(--sunset-amber);
}

/* ============================================
   Mobile Menu
   ============================================ */

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(30, 58, 95, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 380px;
    height: 100%;
    background: var(--lake-deep);
    z-index: 91;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu-panel.active {
    transform: translateX(0);
}

.mobile-menu-panel .menu-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s ease;
    min-height: 52px;
}

.mobile-menu-panel .menu-item a:hover,
.mobile-menu-panel .menu-item a:active {
    color: var(--sunset-amber);
    background: rgba(255, 255, 255, 0.05);
}

.mobile-menu-panel .menu-item-has-children > .sub-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.15);
}

.mobile-menu-panel .menu-item-has-children.submenu-open > .sub-menu {
    max-height: 300px;
}

.mobile-menu-panel .sub-menu a {
    padding-left: 48px;
    font-size: 13px;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
}

.mobile-menu-panel .sub-menu a:hover,
.mobile-menu-panel .sub-menu a:active {
    color: var(--sunset-amber);
}

.mobile-submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.mobile-submenu-toggle.open {
    transform: rotate(180deg);
}

/* Body scroll lock when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* ============================================
   Animations
   ============================================ */

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

.animate-spin-slow {
    animation: rotate 12s linear infinite;
}

/* Marquee animation handled by JavaScript for seamless looping */

/* ============================================
   Component Styles
   ============================================ */

/* Arch mask for images */
.arch-mask {
    border-top-left-radius: 50% 20%;
    border-top-right-radius: 50% 20%;
}

/* Hide scrollbar */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Section rounded top */
.section-rounded {
    border-top-left-radius: 3rem;
    border-top-right-radius: 3rem;
}

/* Gallery hover effect */
.gallery-item {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
    transform: scale(1.02);
    z-index: 10;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 58, 95, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item .zoom-icon {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.gallery-item:hover .zoom-icon {
    opacity: 1;
    transform: scale(1);
}

/* Feature pill backdrop blur */
.feature-pill {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Amenity card hover */
.amenity-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.amenity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(30, 58, 95, 0.15);
}

/* Hero image parallax-like effect */
.hero-image {
    transition: transform 8s ease-out;
}

.hero-image:hover {
    transform: scale(1.05);
}

/* Grainy noise texture overlay */
.grain-overlay {
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

/* Custom date input styling */
input[type="date"] {
    color-scheme: dark;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.7);
    cursor: pointer;
}

/* ============================================
   Contact Form Styling (no plugin needed)
   ============================================ */

/* ============================================
   Wave Animation for Location Section
   ============================================ */

@keyframes gentle-wave {
    0%, 100% {
        border-color: rgba(30, 58, 95, 0.1);
        transform: translate(-50%, -50%) rotate(-12deg) scale(1);
    }
    33% {
        border-color: rgba(30, 58, 95, 0.18);
        transform: translate(-50%, -50%) rotate(-10deg) scale(1.03);
    }
    66% {
        border-color: rgba(30, 58, 95, 0.06);
        transform: translate(-50%, -50%) rotate(-14deg) scale(0.98);
    }
}

.wave-ring {
    animation: gentle-wave 6s ease-in-out infinite;
}

/* ============================================
   Lightbox
   ============================================ */

.balaton-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(30, 58, 95, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 60px 0;
}

.balaton-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.balaton-lightbox img {
    max-width: 85%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 201;
    cursor: default;
}

.balaton-lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    font-size: 24px;
    transition: background 0.2s ease;
}

.balaton-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Lightbox Navigation Arrows */
.balaton-lightbox-prev,
.balaton-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 210;
}

.balaton-lightbox-prev { left: 24px; }
.balaton-lightbox-next { right: 24px; }

.balaton-lightbox-prev:hover,
.balaton-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Lightbox Dots */
.balaton-lightbox-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 210;
}

.balaton-lightbox-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.balaton-lightbox-dot.active {
    background: white;
    transform: scale(1.25);
}

@media (max-width: 768px) {
    .balaton-lightbox {
        padding: 60px 0 70px;
        flex-direction: column;
        gap: 16px;
    }

    .balaton-lightbox img {
        max-width: 94%;
        max-height: 68vh;
        border-radius: 8px;
    }

    .balaton-lightbox-prev,
    .balaton-lightbox-next {
        position: absolute;
        width: 36px;
        height: 36px;
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0.4);
        border: none;
    }

    .balaton-lightbox-prev {
        left: 6px;
        right: auto;
    }

    .balaton-lightbox-next {
        right: 6px;
        left: auto;
    }

    .balaton-lightbox-dots {
        bottom: 16px;
    }

    .balaton-lightbox-dot {
        width: 7px;
        height: 7px;
    }

    .balaton-lightbox-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}

/* ============================================
   WordPress Overrides
   ============================================ */

/* Override Hello Elementor defaults */
.site-header,
.site-footer {
    display: none !important;
}

/* Ensure our content takes full width */
.site-main {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

.page-content,
.entry-content {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
}
