/* ==========================================================================
   1. Basic Reset & Typography
   ========================================================================== */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background-color: #f9f9f9; 
    color: #333; 
    line-height: 1.6; 
}

/* ==========================================================================
   2. Header Layout (Logo Left, Wide Text Right)
   ========================================================================== */
.main-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background-color: #ffffff; 
    padding: 20px 30px; 
    border-bottom: 1px solid #ddd; 
}

.left-nav { 
    flex: 0 0 250px; 
    text-align: left; 
}

.site-logo { 
    max-height: 120px; 
    width: auto; 
    display: block; 
}

.logo-zone { 
    flex: 1; 
    padding-left: 40px; 
    padding-right: 20px;
    text-align: left; 
    font-size: 1.05rem; 
    color: #4a5568;
}

/* ==========================================================================
   3. Main Page Grid Architecture (4 Columns Total)
   ========================================================================== */
.site-container { 
    max-width: 1400px; 
    margin: 20px auto; 
    padding: 0 15px; 
}

.main-layout { 
    display: grid; 
    grid-template-columns: 0.75fr 2.5fr 0.75fr; 
    gap: 25px; 
}

/* ==========================================================================
   4. Sidebars (Columns 1 & 4)
   ========================================================================== */
.sidebar { 
    background-color: #ffffff; 
    padding: 15px; 
    border: 1px solid #e0e0e0; 
    border-radius: 6px; 
    height: fit-content;
}

.sidebar h3 { 
    font-size: 1.1rem; 
    margin-bottom: 15px; 
    color: #1a365d; 
    border-bottom: 2px solid #f0f0f0; 
    padding-bottom: 5px; 
}

.local-ad { 
    margin-bottom: 15px; 
    font-size: 0.9rem; 
}

.ad-img { 
    width: 100%; 
    height: auto; 
    border-radius: 4px; 
    margin-bottom: 8px; 
}

.sidebar a {
    color: #2b6cb0;
    font-weight: bold;
    text-decoration: none;
}

/* ==========================================================================
   5. Center Section (Columns 2 & 3 - Hotel Grid)
   ========================================================================== */
.hotel-content h2 { 
    margin-bottom: 20px; 
    color: #1a365d; 
}

.hotel-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 20px; 
}

.hotel-card { 
    background-color: #ffffff; 
    border: 1px solid #e0e0e0; 
    border-radius: 8px; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    min-height: 480px; 
}

.hotel-img { 
    width: 100%; 
    height: auto; 
    display: block; 
}

.hotel-card-body { 
    padding: 15px; 
    display: flex; 
    flex-direction: column; 
    flex-grow: 1; 
    justify-content: space-between; 
}

/* ==========================================================================
   Buttons inside Cards (Pill Style)
   ========================================================================== */
.card-buttons { 
    display: flex; 
    gap: 12px; 
}

.btn { 
    flex: 1; 
    text-align: center; 
    padding: 8px 6px; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: bold; 
    font-size: 0.9rem; 
    transition: background-color 0.2s ease, transform 0.1s ease; 
}

.btn-info { 
    background-color: #1a4975; 
    color: white; 
    border: none;
}

.btn-info:hover { 
    background-color: #2b6cb0; 
}

/* Hotels.com Affiliate Button - Dark Green Pill */
.btn-booking { 
    background-color: #26af5f; /* Naturally Dark Green */
    color: white; 
    border: none;
}

/* Lightens up when hovered */
.btn-booking:hover { 
    background-color: #2ed573; /* Changes to Light Green */
}

/* ==========================================================================
   6. Footer Setup
   ========================================================================== */
.main-footer { 
    background-color: #1a365d; 
    color: white; 
    padding: 30px 20px; 
    margin-top: 40px; 
    text-align: center; 
    font-size: 0.9rem; 
}

.main-footer a { 
    color: #90cdf4; 
    text-decoration: none; 
}

.disclosure-text { 
    margin-top: 15px; 
    font-size: 0.8rem; 
    color: #cbd5e0; 
}

/* ==========================================================================
   8. Individual Hotel Detail Layout (hotel-detail.php)
   ========================================================================== */
.hotel-detail-container {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    height: fit-content; 
}

.hotel-detail-columns {
    display: flex;
    gap: 30px;
}

/* Left Image Column */
.detail-col-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-main-img {
    width: 100%;
    max-height: 300px;  /* Compact image sizing */
    object-fit: cover;  
    border-radius: 6px;
    display: block;
}

/* Right Content Column (Packs items snugly up top together) */
.detail-col-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    gap: 15px;                   
}

.hotel-location-tag {
    color: #718096;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
}

.detail-title {
    color: #1a365d;
    font-size: 2rem;
    line-height: 1.2;
}

.detail-action-box {
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    padding: 15px;
    border-radius: 6px;
}

.price-indicator {
    margin-bottom: 8px;
    font-size: 1.05rem;
    color: #2d3748;
}

.detail-booking-btn {
    display: block;
    max-width: 320px; 
}

.detail-description p, .detail-amenities-box p {
    margin-bottom: 8px; 
    color: #4a5568;
}

/* 3-Image Gallery Row Styles */
.hotel-gallery-section {
    margin-top: 10px;
}

.gallery-grid-three {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.gallery-item {
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px;
}

.gallery-img {
    width: 100%;
    height: 100px; /* Kept small and balanced */
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.gallery-caption {
    font-size: 0.78rem;
    color: #666;
    margin-top: 4px;
    line-height: 1.2;
    text-align: center;
}

/* ==========================================================================
   7. Responsive adjustments for Mobile/Tablets
   ========================================================================== */
@media (max-width: 992px) {
    /* 1. Header Stacking */
    .main-header { 
        flex-direction: column; 
        gap: 25px; 
        padding: 30px 15px;
    }
    
    .left-nav, .logo-zone { 
        flex: 1 1 auto !important; 
        width: 100%;
        text-align: center; 
    }
    
    .site-logo {
        margin: 0 auto;
        max-height: 100px; 
    }

    .logo-zone {
        padding: 0 10px;
    }
    
    .logo-zone p {
        margin-bottom: 15px; 
        font-size: 1rem;
        line-height: 1.5;
    }

    /* 2. Reorder content layout so Listings appear above sidebars */
    .main-layout { 
        grid-template-columns: 1fr; 
        grid-template-areas: 
            "maincontent"
            "leftsidebar"
            "rightsidebar";
        gap: 30px; 
    } 
    
    .hotel-content, .hotel-detail-container { 
        grid-area: maincontent; 
    }
    
    .left-sidebar { 
        grid-area: leftsidebar; 
    }
    
    .right-sidebar { 
        grid-area: rightsidebar; 
    }

    .hotel-grid, .gallery-grid-three, .hotel-detail-columns { 
        grid-template-columns: 1fr;
        flex-direction: column;
    }
    
    .detail-booking-btn {
        max-width: 100%;
    }
}

/* ==========================================================================
   10. Guest Reviews Component (hotel-detail.php Left Side)
   ========================================================================== */
.detail-reviews-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.detail-reviews-section h3 {
    color: #1a365d;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.review-card {
    background-color: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 12px;
}

.review-stars {
    color: #ecc94b; /* Clean golden color for stars */
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.review-text {
    font-size: 0.88rem;
    color: #4a5568;
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 6px;
}

.review-author {
    font-size: 0.8rem;
    color: #718096;
    text-align: right;
}
/* ==========================================================================
   11. Contact Form Layout Components (contact.php)
   ========================================================================== */
.contact-layout-box {
    padding: 30px;
}

.contact-form {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: bold;
    color: #1a365d;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #333;
    background-color: #fcfcfc;
    transition: border-color 0.15s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2b6cb0;
    background-color: #ffffff;
}

/* Captcha Verification Row Alignment */
.captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.captcha-question {
    font-weight: bold;
    color: #4a5568;
    font-size: 1rem;
    background: #edf2f7;
    padding: 9px 15px;
    border-radius: 6px;
    border: 1px solid #cbd5e0;
    white-space: nowrap;
}

.captcha-wrapper input {
    max-width: 120px;
}

/* Submit Action Button Setup */
.contact-submit-btn {
    max-width: 200px;
    border: none;
    cursor: pointer;
}

/* Alert Notification Status Panels */
.alert-box {
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
    font-size: 0.95rem;
}

.alert-success {
    background-color: #f0fff4;
    border: 1px solid #c6f6d5;
    color: #22543d;
}

.alert-danger {
    background-color: #fff5f5;
    border: 1px solid #fed7d7;
    color: #742a2a;
}