/* =========================================
   CHANAKYA HOTEL - GLOBAL STYLES
========================================= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Playfair Display', serif, Arial; }
body { background-color: #fdfdfd; color: #333; line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; } /* Ensures footer stays at the bottom */

/* --- SHARED HEADER --- */
header { background: #002347; color: white; padding: 20px 0; position: sticky; top: 0; z-index: 1000; border-bottom: 3px solid #d4af37; box-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.header-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; }
.logo { font-size: 28px; font-weight: bold; color: #d4af37; text-decoration: none; letter-spacing: 1px; }
nav ul { list-style: none; display: flex; flex-wrap: wrap; }
nav ul li { margin-left: 25px; }
nav ul li a { color: white; text-decoration: none; font-weight: bold; font-size: 16px; transition: 0.3s; }
nav ul li a:hover, nav ul li a.active { color: #d4af37; }

/* --- SHARED FOOTER --- */
footer { background: #002347; color: white; text-align: center; padding: 40px 20px 20px; border-top: 5px solid #d4af37; margin-top: 60px; }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; text-align: left; padding-bottom: 30px; }
.footer-col h3 { color: #d4af37; margin-bottom: 15px; font-size: 20px; }
.footer-col p { font-size: 15px; opacity: 0.9; line-height: 1.8; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: white; text-decoration: none; font-size: 15px; transition: 0.3s; }
.footer-links a:hover { color: #d4af37; padding-left: 5px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 14px; opacity: 0.7; text-align: center; }

/* --- FLOATING WHATSAPP BUTTON --- */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px; background-color: #25d366; width: 60px; height: 60px; 
    border-radius: 50px; text-align: center; box-shadow: 2px 5px 15px rgba(0,0,0,0.3); 
    z-index: 10000; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease;
}
.whatsapp-float:hover { transform: scale(1.1); background-color: #128c7e; }
.whatsapp-float img { width: 35px; height: 35px; }

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .header-container { flex-direction: column; text-align: center; }
    nav ul { margin-top: 15px; justify-content: center; gap: 10px; }
    nav ul li { margin: 5px; }
    .whatsapp-float { width: 50px; height: 50px; bottom: 20px; right: 20px; }
    .whatsapp-float img { width: 30px; height: 30px; }
}

/* =========================================
   DYNAMIC GRID FIX (1 Row, 3 Cards)
========================================= */
.dynamic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }

/* =========================================
   IMAGE ZOOM MODAL (POPUP)
========================================= */
.img-modal { 
    display: none; position: fixed; z-index: 99999; left: 0; top: 0; width: 100%; height: 100%; 
    background-color: rgba(0,0,0,0.85); align-items: center; justify-content: center; padding: 20px; 
}
.modal-content { 
    background: #fff; max-width: 650px; width: 100%; border-radius: 12px; overflow: hidden; 
    position: relative; animation: zoomIn 0.3s ease-out; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.modal-content img { width: 100%; max-height: 55vh; object-fit: contain; background: #000; display: block; }
.modal-text { padding: 25px; text-align: center; }
.modal-text h3 { color: #002347; margin-bottom: 10px; font-size: 24px; }
.modal-text p { color: #555; font-size: 16px; line-height: 1.6; }
.close-modal { 
    position: absolute; top: 15px; right: 20px; font-size: 35px; color: white; cursor: pointer; 
    text-shadow: 0 2px 5px rgba(0,0,0,0.8); font-weight: bold; background: rgba(0,0,0,0.5); 
    border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
}
.close-modal:hover { background: #d4af37; color: #002347; }

@keyframes zoomIn { from {transform: scale(0.8); opacity: 0;} to {transform: scale(1); opacity: 1;} }