/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --color-text: #ffffff;
    --color-bg-overlay: rgba(0, 0, 0, 0.4);
    --color-glass: rgba(255, 255, 255, 0.1);
    --color-glass-border: rgba(255, 255, 255, 0.2);
    --color-accent: #fafafa;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    min-height: 100%;
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: #1a1a1a;
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

/* Background & Hero */
.hero-container {
    background-image: url('images/resort_aerial_v3.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg-overlay);
    z-index: 1;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 40px;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    padding: 1rem 5%;
    top: 0;
}

/* Language Bar */
.language-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1100;
    padding: 0.5rem 5%;
    display: flex;
    justify-content: flex-end;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-container {
    display: flex;
    gap: 1.5rem;
}

.lang-icon {
    text-decoration: none;
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lang-icon:hover,
.lang-icon.active {
    opacity: 1;
    transform: translateY(-1px);
}

.lang-icon .flag {
    width: 20px;
    height: auto;
    display: flex;
    align-items: center;
}

.lang-icon .flag svg {
    width: 100%;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Logo Sizing */
.navbar .logo img {
    height: 100px;
    width: auto;
    max-width: 200px;
    transition: height 0.3s ease;
    display: block;
}

.navbar.scrolled .logo img {
    height: 60px;
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: white;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
    background: transparent;
    border: none;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white !important;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Main Content Wrapper */
.content-wrapper {
    position: relative;
    z-index: 5;
    text-align: center;
    width: 90%;
    max-width: 900px;
    padding: 2rem 0;
}

.main-heading {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    font-style: italic;
    animation: fadeInUp 1s ease-out;
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
}

.sub-heading {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 300;
    margin-bottom: 3.5rem;
    letter-spacing: 0.5px;
    opacity: 0.9;
    animation: fadeInUp 1.2s ease-out;
}

/* Booking Form */
.booking-container {
    background: var(--color-glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--color-glass-border);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1.4s ease-out;
    width: 100%;
}

#bookingForm {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: center;
    align-items: flex-end;
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    flex: 1;
    min-width: 180px;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.85;
}

.form-control {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.85rem 1.25rem;
    border-radius: 0.75rem;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    width: 100%;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

select.form-control option {
    color: #111;
    background: white;
}

::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.btn-submit {
    background-color: white;
    color: #111;
    border: none;
    padding: 0 2rem;
    border-radius: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    height: 52px;
    align-self: flex-end;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: #f8f8f8;
}

/* Footer Styling */
.footer-minimal {
    padding: 3rem 5%;
    text-align: center;
    font-size: 0.85rem;
    background: #111;
    color: white;
    width: 100%;
    z-index: 20;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.hero-container .footer-minimal {
    position: absolute;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    border-top: none;
}

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

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

/* --- RESPONSIVE DESIGN --- */

/* Tablets */
@media (max-width: 1024px) {
    .navbar {
        padding: 1rem 5%;
    }

    .navbar .logo img {
        height: 60px !important;
    }

    .language-bar {
        position: fixed;
        top: 15px;
        right: 80px;
        width: auto;
        padding: 0;
        background: transparent;
        border: none;
        z-index: 1100;
        justify-content: flex-end;
    }

    .lang-container {
        gap: 0.75rem;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .navbar {
        top: 0 !important;
        padding: 0.5rem 5% !important;
        background: rgba(0, 0, 0, 0.9) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        height: 60px !important;
    }

    /* Position Language Icons Top Right, left of Hamburger */
    .language-bar {
        position: fixed !important;
        top: 18px !important;
        /* Center vertically with 60px header approx */
        right: 60px !important;
        /* Left of the hamburger menu */
        width: auto !important;
        background: transparent !important;
        padding: 0 !important;
        border: none !important;
        justify-content: flex-end !important;
        z-index: 2000 !important;
        height: auto !important;
    }

    .lang-container {
        gap: 1rem !important;
    }

    .lang-name {
        display: none !important;
    }

    .navbar .logo img {
        height: 40px !important;
        width: auto !important;
        max-width: 140px !important;
    }

    .menu-toggle {
        display: flex !important;
    }

    .nav-links {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 80% !important;
        height: 100vh !important;
        background: rgba(0, 0, 0, 0.98) !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        transition: right 0.4s !important;
        z-index: 1500 !important;
        /* Below lang bar if needed, or above? Lang bar is 2000 */
    }

    .nav-links.active {
        right: 0 !important;
    }

    .nav-links a {
        font-size: 1.5rem !important;
        margin: 1.5rem 0 !important;
    }

    .main-heading {
        font-size: 2.2rem !important;
        margin-top: 1.5rem !important;
    }


    #bookingForm {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .btn-submit {
        width: 100% !important;
    }

    /* Fix Layout Overlap on Mobile */
    /* Fix Layout Overlap on Mobile */
    .hero-container {
        height: auto !important;
        min-height: 100vh !important;
        display: block !important;
        /* switch to block for reliable flow */
        padding-top: 100px !important;
        /* spacing for fixed header */
    }

    .content-wrapper {
        margin-top: 2rem !important;
        /* Adjusted since container has padding */
        padding-top: 1rem !important;
        width: 95% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .hero-container .footer-minimal {
        position: relative !important;
        bottom: auto !important;
        /* Reset absolute positioning */
        left: auto !important;
        margin-top: 4rem !important;
        /* Increased spacing */
        background: transparent !important;
        width: 100% !important;
        padding-bottom: 2rem !important;
    }
}

@media (max-width: 600px) {
    .main-heading {
        font-size: 1.8rem !important;
    }

    .navbar .logo img {
        height: 35px !important;
    }

    .language-bar {
        right: 50px !important;
    }
}

/* Price Display Global Styles */
.price-main {
    font-size: 1.5rem;
    font-weight: 800;
    color: #059669;
    /* Success Green for "Good Deal" */
    line-height: 1.2;
}

.price-secondary {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
    margin-top: 0.1rem;
}