/* --- BASE RESET --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; color: #333; line-height: 1.6; }

/* --- HEADER LAYOUT --- */
.site-header {
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- BRANDING & LOGO --- */

/* 1. The Container (Puts the image and text perfectly side-by-side) */
.logo { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    text-decoration: none; 
}

/* 2. The Graphic/Image */
.logo-img { 
    height: 50px; 
    width: auto; 
}

/* 3. The Text (Your original styling moved here!) */
.logo-text { 
    font-size: 24px; 
    font-weight: 800; 
    letter-spacing: 1px; 
}

/* --- THE TRANSPARENT OVERLAP (For Homepage) --- */
.header-transparent {
    position: absolute; /* This is the magic rule that pulls it over the image */
    background: transparent;
}
.header-transparent .logo, 
.header-transparent .drop-trigger {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.header-transparent .main-nav > a {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.header-transparent .main-nav a:hover, .header-transparent .drop-trigger:hover { color: #f8f9fa; opacity: 0.8; }

/* --- THE SOLID HEADER (For Property Pages) --- */
/* --- THE SOLID HEADER (For Property Pages) --- */
.header-solid {
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
    
    /* 1. Point directly to your FULL, original hero image (with your dark gradient) */
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6)), url('../images/ui/hero.jpg');
    
    /* 2. Scale it based on the width of the screen, just like the homepage */
    background-size: cover; 
    
    /* 3. Anchor it exactly to the top edge. 
          Because the header is only 90px tall, you will only see the top 90px of the image! */
    background-position: top center;
    background-repeat: no-repeat;
}

/* Force all text and icons in the solid header to be white */
.header-solid .logo,
.header-solid .main-nav > a, 
.header-solid .drop-trigger,
.header-solid .mobile-toggle { 
    color: #ffffff; 
}

/* Add a nice hover effect */
.header-solid .main-nav a:hover, 
.header-solid .drop-trigger:hover { 
    color: #f8f9fa; 
    opacity: 0.8; 
}


/* --- DROPDOWN MENUS --- */
.main-nav { display: flex; align-items: center; }
.main-nav > a { margin: 0 15px; text-decoration: none; font-weight: 600; font-size: 16px; transition: color 0.2s; }

.nav-dropdown {
    position: relative;
    display: inline-block;
    margin: 0 15px;
    cursor: pointer;
}

.drop-trigger {
    font-weight: 600;
    font-size: 16px;
    transition: color 0.2s;
    padding-bottom: 20px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    border-radius: 4px;
    z-index: 1001;
    overflow: hidden;
}

.dropdown-right { left: auto; right: 0; min-width: 140px; }

.dropdown-menu a {
    color: #333 !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    margin: 0 !important;
    font-size: 14px;
    border-bottom: 1px solid #f1f1f1;
}

.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover { background-color: #f8f9fa; color: #007bff !important; }

.nav-dropdown:hover .dropdown-menu { display: block; }
.active-lang { font-weight: bold; background-color: #f1f8ff; }

/* --- OVERRIDE FOR IOS TOUCH DROPDOWNS --- */
.dropdown-menu.force-show {
    display: block !important;
}

/* --- MOBILE TOGGLE BUTTON (Hidden on Desktop) --- */
.mobile-toggle { 
    display: none; 
    background: none; 
    border: none; 
    font-size: 24px; 
    cursor: pointer; 
    color: inherit; 
}
.header-transparent .mobile-toggle { color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.header-solid .mobile-toggle { color: #fff; }

/* --- MOBILE RESPONSIVENESS (Max Width 768px) --- */
@media (max-width: 768px) {
    /* 1. Header Layout: Perfect centering with Flex 1 */
    .header-container {
        position: relative;
        justify-content: center; /* Center the flex track */
        padding: 15px 20px;
    }
    
    /* Force equal width columns for perfect logo centering */
    .mobile-toggle { 
        display: block; 
        order: 1; 
        flex: 1; 
        text-align: left; /* Push hamburger to the far left */
    }
    
    .logo { 
        order: 2; 
        flex: 1; 
        justify-content: center; 
        align-items: center; /* Centers the text horizontally under the image */
        flex-direction: column; /* Stacks them vertically */
        gap: 4px; 
    }
    
    .logo-text { 
        display: block; 
        font-size: 11px; /* Shrunk slightly to ensure it fits between icons */
        line-height: 1;
        white-space: nowrap; /* Forces the text to stay on one single row */
        text-align: center;
    }
    
    .logo-img { height: 50px; } /* Slightly reduced to balance the new text height */
    
    .lang-switcher { 
        order: 3; 
        flex: 1; 
        display: flex;
        justify-content: flex-end; /* Push globe to the far right */
        margin: 0; 
    }
    .lang-text { display: none; }
    .lang-switcher .drop-trigger { padding-bottom: 0; }

    /* 2. Hide Main Nav & Style as Mobile Dropdown */
    .main-nav {
        display: none; 
        position: absolute;
        top: 70px; /* Start right below the header elements */
        left: 0;
        width: 100%;
        background-color: #ffffff;
        flex-direction: column;
        padding: 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .main-nav.active { display: flex; }

    /* 3. Mobile Nav Links Styling */
   /* 3. Mobile Nav Links Styling (Corrected to avoid Lang Switcher) */
    .main-nav > a, .main-nav .nav-dropdown { 
        width: 100%; 
        margin: 0; 
        border-bottom: 1px solid #f1f1f1; /* No more weird line on the globe! */
    }
    
    .main-nav > a, .main-nav .nav-dropdown > .drop-trigger {
        padding: 15px 20px; 
        display: block;
        text-align: left;
    }
    
    /* Override transparent rules ONLY for the main mobile menu */
    .header-transparent .main-nav > a, 
    .header-transparent .main-nav .nav-dropdown > .drop-trigger,
    .header-solid .main-nav > a,
    .header-solid .main-nav .nav-dropdown > .drop-trigger { 
        color: #333 !important; 
        text-shadow: none !important; 
    }

    /* 4. Fix Inner Dropdowns (Accommodation Menu) */
    .nav-dropdown { position: relative; padding: 0; }
    .dropdown-menu { 
        position: static; /* Stack them accordion-style */
        box-shadow: none; 
        width: 100%; 
        background: #f8f9fa; 
        padding-left: 15px;
    }
    
    /* 5. Keep Language Dropdown floating over the hero image */
    .lang-switcher .dropdown-menu {
        position: absolute; /* Keep it floating */
        top: 100%;
        right: 0;
        left: auto;
        min-width: 160px;
        margin-top: 15px;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        background-color: #ffffff;
        padding-left: 0;
    }
}


/* --- FOOTER LAYOUT --- */
.site-footer {
    background-color: #2d3436;
    color: #dfe6e9;
    padding-top: 60px;
    font-size: 15px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: #ffffff;
    font-size: 22px;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p {
    line-height: 1.6;
    margin-bottom: 20px;
    color: #b2bec3;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #b2bec3;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: #007bff;
    padding-left: 5px; /* Nice little hover slide effect */
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #b2bec3;
}

.social-icons a {
    display: inline-block;
    background: #636e72;
    color: white;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    border-radius: 50%;
    margin-right: 10px;
    transition: background 0.3s;
}

.social-icons a:hover {
    background: #007bff;
}

.footer-bottom {
    background-color: #222f3e;
    text-align: center;
    padding: 20px 0;
    color: #b2bec3;
    font-size: 14px;
}

/* --- FOOTER DESKTOP ALIGNMENT --- */
/* We only apply this on screens larger than 768px so mobile stays cleanly left-aligned */
@media (min-width: 769px) {
    /* Column 1 is left-aligned naturally, no change needed */
    
    /* Columns 2 & 3: Center Aligned */
    .footer-col:nth-child(2),
    .footer-col:nth-child(3) {
        text-align: center;
    }

    /* Column 4: Right Aligned */
    .footer-col:nth-child(4) {
        text-align: right;
    }

    /* Push the flexbox contact icons to the right side */
    .footer-col:nth-child(4) .contact-info li {
        justify-content: flex-end;
    }

    /* Fix the hover slide effects so they don't look weird when centered/right-aligned */
    .footer-col:nth-child(2) ul li a:hover,
    .footer-col:nth-child(3) ul li a:hover {
        padding-left: 0; /* Remove left slide for centered text */
        color: #007bff;
    }

    .footer-col:nth-child(4) ul li a:hover {
        padding-left: 0;
        padding-right: 5px; /* Slide to the left instead of the right */
        color: #007bff;
    }
}

/* HERO SECTION */
    /* HERO SECTION */
    .hero-section {
        height: 100vh;
        
        /* 1. Fallback color just in case the image loads slowly */
        background-color: #343a40; 
        
       /* Look directly into the assets folder from the root! */
        background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6)), url('../images/ui/hero.jpg');
        
        /* 3. The rules for how the image behaves */
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        
        /* Layout rules */
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        color: white;
        text-align: center;
        padding: 80px 20px 0 20px; 
    }
    
    .hero-section h1 { font-size: 3.5rem; margin-bottom: 10px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); font-weight: 800; }
    .hero-section p { font-size: 1.2rem; margin-bottom: 40px; text-shadow: 0 2px 5px rgba(0,0,0,0.5); font-weight: 500;}

    /* BOOKING SEARCH BAR */
    .search-bar-container {
        background: #ffffff;
        padding: 10px;
        border-radius: 50px; /* Gives it that pill shape */
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
        max-width: 900px;
        width: 100%;
    }

    .search-form {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .search-field {
        display: flex;
        flex-direction: column;
        text-align: left;
        padding: 10px 20px;
        border-right: 1px solid #e9ecef;
        flex: 1;
    }
    
    .search-field:last-of-type { border-right: none; }

    .search-field label {
        font-size: 12px;
        font-weight: 700;
        color: #333;
        text-transform: uppercase;
        margin-bottom: 5px;
    }

    .search-field select, .search-field input {
        border: none;
        background: transparent;
        font-size: 15px;
        color: #555;
        outline: none;
        width: 100%;
        cursor: pointer;
    }

    .search-btn {
        background: #007bff;
        color: white;
        border: none;
        padding: 15px 35px;
        border-radius: 50px;
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
        transition: background 0.2s;
        margin-left: 10px;
    }

    .search-btn:hover { background: #0056b3; }

    /* Mobile Responsiveness */
    @media (max-width: 768px) {
        /* 1. Shrink the massive Hero text so it fits beautifully */
        .hero-section h1 { font-size: 2.2rem; }
        .hero-section p { font-size: 1.05rem; padding: 0 10px; }

        /* 2. The Glass Box */
        .search-bar-container { 
            border-radius: 15px; 
            padding: 20px; 
            background: rgba(255, 255, 255, 0.3); 
            backdrop-filter: blur(8px); 
            -webkit-backdrop-filter: blur(8px); 
            border: 1px solid rgba(255, 255, 255, 0.4); 
        }
        
        .search-form { flex-direction: column; }
        
        /* 3. Lighter borders between fields to match the glass */
        .search-field { 
            border-right: none; 
            border-bottom: 1px solid rgba(255, 255, 255, 0.3); 
            width: 100%; 
            padding: 15px 0; 
        }
        
        .search-btn { margin-top: 15px; width: 100%; margin-left: 0; }
        
        /* 4. The Labels */
        .search-field label {
            font-size: 12px;
            font-weight: 700;
            color: #dfdbdb; /* Crisp white instead of blue for better contrast */
            text-transform: uppercase;
            margin-bottom: 5px;
            letter-spacing: 1px;
            -webkit-text-stroke: 0; /* Removed the stroke for a cleaner, modern look */
        }

        /* 5. Make the input text and icons white so they don't get lost */
        .search-field select, 
        .search-field input { 
            color: #ffffff; 
            font-weight: 600;
           
        }
        
        /* Keep dropdown options dark so you can read them when the menu opens */
        .search-field select option { color: #333; }
        
        /* Magic trick to turn the dark calendar/arrow icons pure white */
        ::-webkit-calendar-picker-indicator { filter: invert(1); opacity: 0.8; }
    }

    /* --- INDEX CONTACT SECTION --- */
.contact-section { 
    padding: 80px 20px; 
    background: #ffffff; /* White background to contrast with the light-grey featured section */
}

.contact-container { 
    max-width: 1000px; 
    margin: 0 auto; 
    display: flex; 
    gap: 60px; 
    align-items: center; 
}

.contact-info { flex: 1; }
.contact-info h2 { font-size: 2.5rem; color: #333; margin-bottom: 15px; }
.contact-info p { color: #666; font-size: 1.1rem; line-height: 1.6; }

.contact-form-box { 
    flex: 1.2; 
    background: #f8f9fa; 
    padding: 40px; 
    border-radius: 12px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
}

.form-group { margin-bottom: 20px; }
.form-row { display: flex; gap: 20px; }
.form-row .form-group { flex: 1; }

.form-group label { 
    display: block; 
    font-size: 12px; 
    font-weight: 700; 
    color: #555; 
    margin-bottom: 8px; 
    text-transform: uppercase; 
}

.form-group input, 
.form-group textarea { 
    width: 100%; 
    padding: 12px 15px; 
    border: 1px solid #ced4da; 
    border-radius: 6px; 
    font-size: 15px; 
    font-family: inherit; 
    transition: border-color 0.3s; 
}

.form-group input:focus, 
.form-group textarea:focus { 
    border-color: #007bff; 
    outline: none; 
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1); 
}

/* Reusing your existing .btn-primary but making it full width for the form */
/* --- THE BLUE PILL BUTTON --- */
.contact-form-box .btn-primary { 
    background-color: #007bff; 
    color: #ffffff; 
    border: none; 
    padding: 16px 35px; 
    border-radius: 50px; /* This creates the perfect pill shape! */
    font-size: 16px; 
    font-weight: bold; 
    cursor: pointer; 
    width: 100%; 
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-form-box .btn-primary:hover { 
    background-color: #0056b3; 
    transform: translateY(-2px); /* Gives it a satisfying little "lift" when hovered */
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.3); /* Adds a soft blue glow */
}

/* Mobile View Stacking */
@media (max-width: 768px) {
    .contact-container { flex-direction: column; gap: 30px; }
    .contact-form-box { width: 100%; padding: 25px; }
    .form-row { flex-direction: column; gap: 0; }
}

/* --- FORM ALERTS --- */
.form-alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 14.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-success i { color: #28a745; font-size: 18px; }

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-error i { color: #dc3545; font-size: 18px; }

/* --- EXTRA PROPERTY ICONS --- */
/* --- UNIFIED PROPERTY AMENITIES --- */
.card-amenities-unified {
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between; /* This is the magic rule that spaces them evenly! */
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
    color: #555;
    font-size: 13px; /* Dropped slightly to ensure all 8 items fit on one line */
    font-weight: 500;
}

.card-amenities-unified span {
    display: flex;
    align-items: center;
    gap: 4px; /* Tighter gap between text and icon */
    cursor: default;
}

.card-amenities-unified i {
    color: #007bff; 
    font-size: 14px; /* Uniform icon size */
    width: 16px; /* Fixed width ensures icons don't jitter left or right */
    text-align: center;
    transition: transform 0.2s ease;
}

.card-amenities-unified span:hover i {
    transform: scale(1.2); 
}

/* Grayed out style for disabled features */
.icon-disabled {
    color: #ced4da !important;
    opacity: 0.5; /* Made slightly more transparent to emphasize it is disabled */
}

/* --- SAFARI / IPHONE INVISIBLE BUTTON FIX --- */
@media (max-width: 768px) {
    .mobile-toggle, 
    .lang-switcher {
        /* 1. Stop the logo from crushing the side buttons to 0 width */
        flex-shrink: 0 !important;
        min-width: 50px !important;
        
        /* 2. Strip Apple's default transparent button styling */
        -webkit-appearance: none !important;
        appearance: none !important;
        
        /* 3. Ensure they aren't trapped under the hero image */
        position: relative;
        z-index: 9999 !important;
    }

    .logo {
        /* 4. Force the logo to respect the boundaries of the buttons */
        flex-shrink: 1 !important;
        max-width: calc(100% - 100px); 
    }
}
