/*
 * LAYOUT.CSS
 * Master Structure File - PārthaOS Resort Theme
 */

/* 1. Global Reset */
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-main);
    margin: 0;
    padding-top: 80px; /* Header Height */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s ease; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; display: block; }

/* 2. Container */
.container {
    width: 92%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

.text-center { text-align: center; }
.py-large { padding-top: 60px; padding-bottom: 60px; }
.bg-light { background-color: #ffffff; }

/* 3. Header */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%; height: 80px;
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    z-index: 1000;
}

.header-container {
    height: 100%;
    display: flex;
    justify-content: space-between; /* Pushes Logo Left, Nav/Hamburger Right */
    align-items: center;
}

/* Logo */
.site-branding { display: flex; align-items: center; }
.site-branding .text-logo { font-size: 1.5rem; font-weight: 800; color: var(--primary); text-transform: uppercase; }

/* Desktop Wrapper (Nav + Button) */
.desktop-nav-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
}

.desktop-menu {
    display: flex;
    align-items: center;
    gap: 25px;
    margin: 0; padding: 0; list-style: none;
}

.desktop-menu a {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.desktop-menu a:hover { color: var(--primary); }

/* Header "Book Now" Button */
.btn-header-action {
    background-color: var(--primary);
    color: #ffffff !important;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 115, 170, 0.2);
}
.btn-header-action:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 115, 170, 0.3);
}

/* Mobile Toggle (Hamburger) - FIX APPLIED HERE */
#menu-toggle {
    display: none; /* Hidden on Desktop */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #333; /* Dark Color for Visibility */
}

#menu-toggle .dashicons {
    font-size: 32px; /* Large Icon */
    width: 32px;
    height: 32px;
    display: block;
}

/* 4. Footer */
.site-footer {
    background-color: #1a1a1a;
    color: #ccc;
    padding: 60px 0 0;
    margin-top: auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h3 {
    color: #fff; margin-bottom: 25px; font-weight: 600;
    border-bottom: 2px solid var(--primary); display: inline-block; padding-bottom: 5px;
}
.footer-col a:hover { color: #fff; padding-left: 5px; }
.footer-bottom { background: #000; padding: 20px 0; text-align: center; font-size: 0.85rem; color: #666; }

/* 5. Grid System */
.resort-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* 6. Single Resort Layouts */
.single-resort-container { background: #fff; }
.main-content-wrapper { padding-top: 40px; padding-bottom: 80px; }

.resort-banner-wrapper {
    height: 450px;
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex; align-items: flex-end;
}
.banner-overlay {
    position: absolute; top:0; left:0; width:100%; height:100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.8) 100%);
}
.banner-content { position: relative; z-index: 2; color: #fff; padding-bottom: 40px; }
.banner-content h1 { font-size: 3.5rem; margin: 0; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.banner-location { font-size: 1.2rem; opacity: 0.9; }

/* 2-Column Grid */
.resort-layout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}
.content-box {
    margin-bottom: 40px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
}
.content-box h3 { margin-top: 0; margin-bottom: 20px; border-bottom: 2px solid #f0f0f0; padding-bottom: 10px; }

/* Sticky Sidebar */
.sticky-card {
    position: sticky; top: 100px;
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}
.price-header .price { font-size: 2rem; font-weight: 800; color: #0073aa; }
.booking-perks div { margin-bottom: 10px; font-size: 0.9rem; color: #666; display: flex; align-items: center; gap: 8px; }
.booking-perks .dashicons { color: #25D366; }
.secure-note { text-align: center; font-size: 0.8rem; color: #999; margin-top: 15px; }

/* Mini Gallery */
.mini-gallery-grid { 
    display: grid !important; 
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 15px !important; 
}
.mini-gallery-grid img { 
    border-radius: 8px; 
    width: 100% !important; 
    height: 120px !important; 
    object-fit: cover; 
    cursor: pointer; 
    display: block;
}

/* Mobile */
@media (max-width: 991px) {
    .resort-layout-grid { grid-template-columns: 1fr; }
    .resort-sidebar { display: none; }
    .resort-banner-wrapper { height: 300px; }
    .banner-content h1 { font-size: 2rem; }
    .mini-gallery-grid { grid-template-columns: repeat(2, 1fr) !important; }
    
    /* Header Changes */
    .desktop-nav-wrapper { display: none; }
    #menu-toggle { display: block; } /* Visible on Mobile */
}