/*
Theme Name: L4ZY L4ZY Theme
Theme URI: https://example.com/l4zy-theme
Author: Gemini CLI
Author URI: https://example.com
Description: Das offizielle Theme fuer das L4ZY Booking Portal.
Version: 3.0.7
License: GNU General Public License v2 or later
Text Domain: l4zy-theme
Requires at least: 6.0
Requires PHP: 8.5
*/

:root {
    --primary: #059669;
    --primary-dark: #047857;
    --secondary: #64748b;
    --dark: #0f172a;
    --light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 16px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    margin: 0;
    background-color: var(--light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navigation */
header.site-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title a {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    text-decoration: none;
    letter-spacing: -0.025em;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 32px;
}

.main-navigation a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
    transition: color 0.2s;
}

.main-navigation a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding: 100px 0;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: var(--white);
    text-align: center;
    border-radius: 0 0 40px 40px;
    margin-bottom: 60px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0 0 20px;
    letter-spacing: -0.05em;
}

.hero p {
    font-size: 1.25rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto 32px;
}

/* Rental Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

.rental-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    border: 1px solid var(--border);
}

.rental-card:hover {
    transform: translateY(-8px);
}

.card-image {
    height: 240px;
    background: #cbd5e1;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 24px;
}

.card-content h2 {
    margin: 0 0 12px;
    font-size: 1.5rem;
    letter-spacing: -0.025em;
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.btn:hover { background: var(--primary-dark); }

/* Sidebar & Calendar */
.booking-sidebar {
    position: relative;
}

.booking-sidebar h3 { margin-top: 0; }

footer {
    margin-top: 100px;
    padding: 60px 0;
    background: var(--dark);
    color: #94a3b8;
    text-align: center;
}

/* Single Rentals styles (migrated from inline) */
.clean-hero {
    background: #0f172a;
    padding: 60px 0;
    text-align: center;
    color: white;
}
.clean-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 10px 0 0;
    letter-spacing: -0.02em;
}
.loc-tag {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}
.main-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin: 20px auto 100px;
    max-width: 1600px;
    padding: 0 40px;
}
.content-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
}
.full-width-gallery-container {
    max-width: 1600px;
    margin: 40px auto 20px;
    padding: 0 40px;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 20px;
}
.gallery-grid img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 20px;
}
.more-photos-wrapper {
    position: relative;
}
.more-photos-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    border-radius: 20px;
    cursor: zoom-in;
    transition: background 0.3s;
}
.more-photos-wrapper:hover .more-photos-overlay {
    background: rgba(0, 0, 0, 0.5);
}

/* Responsive Breakpoints */
@media (max-width: 1250px) {
    .main-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        margin: 30px auto 60px;
        padding: 0 24px;
    }
    .full-width-gallery-container {
        padding: 0 24px;
    }
    .gallery-grid {
        gap: 15px;
    }
    .gallery-grid img {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 20px;
    }
    .gallery-grid > *:not(:first-child) {
        display: none !important;
    }
    .gallery-grid img {
        height: 250px;
    }
    .content-card {
        padding: 24px;
    }
    .clean-hero h1 {
        font-size: 1.35rem;
        word-break: break-word;
        line-height: 1.3;
    }
    .hero h1 {
        font-size: 2rem;
        word-break: break-word;
        line-height: 1.2;
    }
}
.amenity-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 25px;
}
.amenity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: #475569;
}
.sidebar-box {
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    position: sticky;
    top: 100px;
    box-shadow: 0 15px 30px -10px rgba(0,0,0,0.05);
}

/* Modal & Popover Styling */
.l4zy-booking-modal { 
    display: none; 
    position: fixed; 
    z-index: 10000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(15, 23, 42, 0.7); 
    backdrop-filter: blur(4px);
}
.l4zy-booking-modal-content { 
    background: white; 
    margin: 5% auto; 
    padding: 45px; 
    border-radius: 24px; 
    max-width: 550px; 
    position: relative; 
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}
.l4zy-booking-modal-close { 
    position: absolute; 
    right: 25px; 
    top: 20px; 
    font-size: 32px; 
    cursor: pointer; 
    color: #94a3b8; 
}

.l4zy-booking-input-group { margin-bottom: 20px; }
.l4zy-booking-input-group label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 0.85rem; color: var(--dark); }
.l4zy-booking-field { 
    width: 100%; padding: 14px; border-radius: 12px; border: 1.5px solid var(--border); 
    background: var(--light); font-size: 1rem; transition: 0.2s;
}
.l4zy-booking-field:focus { border-color: var(--primary); background: white; outline: none; box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1); }

/* Lightbox Styling */
.l4zy-booking-lightbox {
    display: none;
    position: fixed;
    z-index: 20000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
}
.l4zy-booking-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    cursor: default;
    width: auto;
    height: auto;
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    user-select: none;
    z-index: 20001;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

/* Lightbox Mobile Adjustments */
@media (max-width: 768px) {
    .l4zy-booking-lightbox img {
        max-width: 100vw;
        max-height: 100vh;
        width: auto;
        height: auto;
        border-radius: 0;
    }
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
        background: rgba(0, 0, 0, 0.5);
    }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}

.gallery-grid img {
    cursor: zoom-in;
    transition: opacity 0.3s;
}
.gallery-grid img:hover {
    opacity: 0.9;
}


/* ------------------------------------------------------------------------- */
/* 8. Mobile Menu & Burger Toggle
/* ------------------------------------------------------------------------- */

.header-nav-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
    outline: none;
}

.mobile-menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: var(--dark);
    margin: 6px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.mobile-menu-toggle.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: block;
    }

    .header-nav-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 350px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        box-shadow: -5px 0 25px rgba(0,0,0,0.1);
        z-index: 1000;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 40px;
        gap: 40px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .header-nav-wrapper.is-open {
        right: 0;
    }

    .header-nav-wrapper .main-navigation ul {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .header-nav-wrapper .main-navigation a {
        font-size: 1.5rem;
        font-weight: 700;
    }

    .header-nav-wrapper .header-actions {
        flex-direction: column;
        width: 100%;
        margin: 0 !important;
    }

    .header-nav-wrapper .header-actions .btn,
    .header-nav-wrapper .header-actions .l4zy-booking-wishlist-header-link {
        width: 100%;
        justify-content: center;
        padding: 12px 16px !important;
        font-size: 1rem !important;
    }
}

/* Submenu styles */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    padding: 10px 0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 999;
}
.main-navigation ul li {
    position: relative;
}
.main-navigation ul li:hover > ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.main-navigation ul ul li {
    padding: 5px 20px;
}
@media (min-width: 1025px) {
    .header-inner {
        display: grid !important;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 30px;
    }
    .site-title {
        justify-self: start;
    }
    .header-nav-wrapper {
        display: contents;
    }
    .main-navigation {
        grid-column: 2;
        justify-self: center;
    }
    .main-navigation ul {
        justify-content: center;
        align-items: center;
    }
    .main-navigation a {
        padding: 8px 16px;
        border-radius: 8px;
    }
    .main-navigation a:hover {
        background: rgba(5, 150, 105, 0.1);
    }
    .header-actions {
        grid-column: 3;
        justify-self: end;
    }
}
.main-navigation ul li.menu-item-has-children > a::after {
    content: ' ?';
    font-size: 0.6em;
    vertical-align: middle;
    opacity: 0.5;
}
.main-navigation ul ul {
    display: block;
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.2s ease;
    pointer-events: none;
}
.main-navigation ul li:hover > ul {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.main-navigation ul ul a {
    color: #475569;
    font-size: 0.95rem;
    display: block;
    padding: 8px 0;
}
.main-navigation ul ul a:hover {
    color: var(--primary);
}


