/* ========== ENHANCED DETAIL KAMAR STYLES ========== */
/* (Keeping original structure, only improving visuals) */

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2d3748; /* Darker text for better readability */
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f8f9fa; /* Softer background */
}

a {
    color: #3490dc; /* Brighter blue */
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #1e70bf; /* Darker hover state */
    transform: translateY(-1px);
}

/* Container */
.container {
    background-color: white;
    padding: 30px; /* Slightly more padding */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Softer shadow */
    border: 1px solid #e2e8f0; /* Subtle border */
}

/* Main Content Layout - 30%/70% split (UNCHANGED STRUCTURE) */
/* ===== COLUMN HEIGHT ADJUSTMENT ===== */
.main-content {
    display: grid;
    grid-template-columns: 30% 70%;
    gap: 30px;
    align-items: start; /* This is crucial */
}

.room-details {
    position: sticky;
    top: 20px;
    height: fit-content;
    object-fit: cover !important; 
    max-width:100%;
    height:auto;
}

.room-gallery {
    padding-left: 20px;
}

/* ========== IMPROVED VISUAL ELEMENTS ========== */
/* Room Details Enhancements */
.room-details h2 {
    color: #2d3748;
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #3490dc; /* Accent color */
}

.room-details p {
    margin-bottom: 1rem;
    color: #4a5568; /* Slightly softer text */
}

.room-details strong {
    color: #3490dc; /* Matching link color */
    font-weight: 600;
}

/* Gallery Styles - Strict 2 columns (UNCHANGED STRUCTURE) */
/* ===== GALLERY FIXES ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
    height: fit-content; /* Adjust to content height */
}

.gallery-card {
    cursor: pointer;
    transition: transform 0.3s;
    height: 100%; /* Make cards equal height */
}



.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); /* More pronounced shadow */
}

.gallery-card img {
    width: 100%;
    height: 160px; /* Fixed height for consistency */
    object-fit: cover;
}


.gallery-card p {
    padding: 12px;
    margin: 0;
    font-size: 0.9rem;
    text-align: center;
    color: #4a5568; /* Soft text color */
}

/* Button Enhancements */
.btn-detail {
    display: inline-block;
    background-color: #3490dc;
    color: white;
    padding: 12px 24px; /* More generous padding */
    border-radius: 6px;
    font-weight: 500;
    margin-top: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(52, 144, 220, 0.3); /* Subtle glow */
}

.btn-detail:hover {
    background-color: #2779bd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 144, 220, 0.4); /* Enhanced glow */
}

.btn-detail:disabled {
    background-color: #a0aec0; /* Grayed out */
    cursor: not-allowed;
}

/* Full width 3-column sections (UNCHANGED STRUCTURE) */
.full-width-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid #e2e8f0; /* Consistent border */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #e2e8f0;
}

.card h4 {
    color: #2d3748; /* Dark header */
    font-size: 1.1rem;
    margin: 12px 15px 8px;
}

.card p {
    color: #718096; /* Soft text */
    margin: 0 15px 15px;
    font-size: 0.9rem;
}

/* ========== RESPONSIVE ADJUSTMENTS (UNCHANGED STRUCTURE) ========== */
@media (max-width: 992px) {
    .full-width-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .room-details, .room-gallery {
        padding: 0;
    }
    
    .room-details {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    
    .full-width-grid {
        grid-template-columns: 1fr;
    }
}
/* Add these styles to your existing CSS */
/* LIGHTBOX STYLES */
/* ===== LIGHTBOX FIXES ===== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s;
}

.lightbox-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: relative;
}

.lightbox-img {
    max-width: 80%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-lightbox:hover {
    color: #3490dc;
    transform: rotate(90deg);
}

.nav-lightbox {
    position: absolute;
    top: 50%;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    padding: 15px;
    transform: translateY(-50%);
    transition: 0.3s;
}

.nav-lightbox:hover {
    color: #3490dc;
}

.prev-lightbox {
    left: 30px;
}

.next-lightbox {
    right: 30px;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* Make gallery cards clickable */
.gallery-card {
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-card:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
