/* Color Palette */
:root {
    --primary-blue: #1e3c72;
    --secondary-blue: #2a5298;
    --off-white: #ffffff;
    --dark-text: #333333;
    --light-text: #ffffff;
    --accent-color: #e74c3c;
    --bg-info: #F4F9F9;
    --bg-rooms: #EBF5FB;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Cairo', sans-serif; -webkit-tap-highlight-color: transparent; }
body { background-color: var(--off-white); color: var(--dark-text); line-height: 1.6; }

/* Install App Banner */
.install-banner { position: fixed; top: 0; left: 0; width: 100%; background-color: var(--primary-blue); color: white; z-index: 9999; display: flex; align-items: center; padding: 10px 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.3); animation: slideDownBanner 0.5s ease forwards; }
@keyframes slideDownBanner { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.install-banner img { width: 40px; height: 40px; border-radius: 8px; margin-left: 15px; background: white;}
.install-text { flex-grow: 1; text-align: right; }
.install-text strong { display: block; font-size: 16px; }
.install-text p { font-size: 12px; margin: 0; opacity: 0.8; }
.install-btn { background-color: #27ae60; color: white; border: none; padding: 8px 15px; border-radius: 5px; font-weight: bold; cursor: pointer; margin-left: 10px; }
.close-install-btn { background: none; border: none; color: white; font-size: 24px; cursor: pointer; }

/* Navbar */
.navbar { position: fixed; top: 0; right: 0; width: 100%; background-color: rgba(30, 60, 114, 0.7); backdrop-filter: blur(5px); padding: 10px 50px; display: flex; justify-content: flex-start; align-items: center; z-index: 1000; transition: transform 0.4s ease-in-out; }
.navbar.hidden { transform: translateY(-100%); }
.hover-trigger { position: fixed; top: 0; left: 0; width: 100%; height: 30px; z-index: 1002; }
.navbar .logo a { display: flex; align-items: center; text-decoration: none; color: var(--light-text); gap: 15px; }
.logo-img { max-height: 70px; width: auto; object-fit: contain; pointer-events: none; }
.hotel-name { font-size: 32px; font-weight: 900; margin: 0; pointer-events: none; }

/* Fixed Social Media & Audio */
.fixed-social-media { position: fixed; top: 15px; left: 20px; display: flex; gap: 15px; z-index: 1005; flex-wrap: wrap; max-width: 50%; }
.fixed-social-media a { display: flex; flex-direction: column; align-items: center; color: var(--light-text); text-decoration: none; font-size: 15px; transition: transform 0.3s ease; text-shadow: 1px 1px 4px rgba(0,0,0,0.8); }
.fixed-social-media a i { font-size: 28px; margin-bottom: 5px; }
.fixed-social-media a:hover { color: #f39c12; transform: scale(1.1); }
.audio-btn { position: fixed; bottom: 20px; left: 20px; background-color: var(--primary-blue); color: white; border: none; width: 55px; height: 55px; border-radius: 50%; font-size: 24px; cursor: pointer; z-index: 1000; display: flex; align-items: center; justify-content: center; }

/* Slider */
.slider-container { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 75vh; overflow: hidden; background-color: #000; }
@media (max-width: 768px) { .slider-container { max-height: 40vh; } }
.slider .slide { position: absolute; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease-in-out; }
.slider .slide.active { opacity: 1; }
.slider img { width: 100%; height: 100%; object-fit: cover; }
.caption { position: absolute; bottom: 15%; left: 50%; transform: translateX(-50%); text-shadow: 2px 2px 4px rgba(0,0,0,0.8); color: var(--light-text); font-size: 4vw; font-weight: 900; text-align: center; width: 95%; }
.prev-btn, .next-btn { position: absolute; top: 50%; transform: translateY(-50%); background-color: rgba(30, 60, 114, 0.7); color: white; border: none; padding: 20px 15px; cursor: pointer; font-size: 22px; z-index: 10; border-radius: 5px; }
.prev-btn { right: 20px; } .next-btn { left: 20px; }

/* Views */
.view-section { display: none; min-height: 100vh; animation: fadeInView 0.4s ease; padding-bottom: 50px;}
.view-section.active-view { display: block; }
@keyframes fadeInView { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Dynamic Hotel Info (Front-end) */
.info-section { padding: 40px 20px; background-color: #fff; text-align: center; }
.info-container { max-width: 1000px; margin: 0 auto; }
.hotel-dynamic-text { font-size: 18px; line-height: 1.8; color: #444; white-space: pre-wrap; margin-top: 20px;}

/* Categories */
.categories-section { padding: 40px 20px; background-color: var(--bg-info); }
.categories-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.category-card { position: relative; cursor: pointer; height: 250px; border-radius: 15px; overflow: hidden; margin-bottom: 20px;}
.category-card img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.6); transition: filter 0.3s; }
.category-card:hover img { filter: brightness(0.4); }
.category-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; width: 100%; pointer-events: none; }
.category-overlay h2 { color: white; font-size: 32px; font-weight: 900; text-shadow: 2px 2px 5px rgba(0,0,0,0.8); margin: 0; }

/* Layouts */
section { padding: 40px 20px; }
.section-header { display: flex; align-items: center; justify-content: center; position: relative; margin-bottom: 40px; max-width: 1200px; margin: 0 auto; }
.back-btn { position: absolute; right: 0; background: var(--primary-blue); color: white; border: none; padding: 10px 20px; border-radius: 5px; font-size: 16px; font-weight: bold; cursor: pointer; }
.section-title { font-size: 36px; color: var(--primary-blue); font-weight: 900; margin: 0; text-align: center; width: 100%;}
.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }

/* Cards */
.card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.08); transition: transform 0.3s ease; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-8px); }
.card img { width: 100%; height: 250px; object-fit: cover; cursor: pointer;}
.card-content { padding: 20px; text-align: center; display: flex; flex-direction: column; flex-grow: 1; }
.card-content h3 { margin-bottom: 10px; color: var(--primary-blue); font-weight: 700; }
.price { display: block; color: var(--accent-color); font-weight: 900; font-size: 20px; margin: 10px 0; }
.book-btn { background-color: var(--primary-blue); color: var(--light-text); border: none; padding: 12px 20px; font-size: 18px; font-weight: 900; border-radius: 5px; cursor: pointer; width: 100%; margin-top: auto; }
.calendar-btn { background-color: transparent; color: #27ae60; border: 2px solid #27ae60; padding: 10px; font-size: 16px; font-weight: bold; border-radius: 5px; cursor: pointer; width: 100%; margin-top: 10px; transition: 0.3s; }
.calendar-btn:hover { background-color: #27ae60; color: white; }

/* Lightbox Modal */
.lightbox-modal { display: none; position: fixed; z-index: 3000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.9); }
.close-lightbox { position: absolute; top: 20px; right: 30px; color: white; font-size: 40px; cursor: pointer; z-index: 3001; }
.lightbox-content { display: flex; flex-direction: column; justify-content: center; align-items: center; height: 100%; position: relative; }
.lb-image-container { width: 100%; height: 60vh; display: flex; justify-content: center; align-items: center; }
.lb-image-container img { max-width: 90%; max-height: 100%; object-fit: contain; border-radius: 10px; }
.lb-prev, .lb-next { position: absolute; top: 40%; transform: translateY(-50%); background: rgba(255,255,255,0.2); color: white; border: none; padding: 20px; cursor: pointer; font-size: 24px; border-radius: 50%; z-index: 3002; }
.lb-prev { right: 20px; } .lb-next { left: 20px; }
.lb-details-panel { background: white; width: 100%; max-width: 600px; padding: 20px; border-radius: 15px 15px 0 0; position: absolute; bottom: 0; text-align: center; }

/* Form Modal */
.modal { display: none; position: fixed; z-index: 4000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.6); }
.modal-content { background-color: #fefefe; margin: 5% auto; padding: 30px; border-radius: 10px; width: 90%; max-width: 500px; position: relative; }
.close-modal { position: absolute; top: 15px; left: 20px; color: #aaa; font-size: 28px; font-weight: bold; cursor: pointer; }
#modalTitle { color: var(--primary-blue); margin-bottom: 20px; text-align: center; border-bottom: 2px solid var(--primary-blue); padding-bottom: 10px; }
.form-group { margin-bottom: 15px; text-align: right; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; }
.form-group input, .form-group select { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 5px; font-size: 16px; }
.payment-section { background-color: #f9f9f9; padding: 15px; border-radius: 8px; margin-top: 20px; border: 1px solid #eee; }
.submit-btn { background-color: #27ae60; color: white; padding: 12px 20px; border: none; border-radius: 5px; cursor: pointer; width: 100%; font-size: 18px; font-weight: bold; margin-top: 10px; }

/* Calendar UI */
.calendar-controls { display: flex; justify-content: space-between; margin-bottom: 15px; align-items: center;}
.calendar-controls button { background: var(--primary-blue); color: white; border: none; padding: 5px 10px; border-radius: 4px; cursor: pointer; font-weight: bold;}
.calendar-legend { display: flex; justify-content: center; gap: 20px; margin-bottom: 15px; }
.leg-box { padding: 5px 15px; border-radius: 4px; color: white; font-weight: bold; font-size: 14px; }
.leg-box.available { background: #27ae60; }
.leg-box.booked { background: #e74c3c; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; text-align: center; }
.cal-day-header { font-weight: bold; background: #eee; padding: 5px; border-radius: 3px; font-size: 14px;}
.cal-day { background: #f9f9f9; padding: 15px 5px; border-radius: 5px; border: 1px solid #ddd; font-weight: bold; font-size: 16px; transition: 0.2s;}
.cal-day.available { background-color: #27ae60; color: white; border-color: #27ae60;}
.cal-day.booked { background-color: #e74c3c; color: white; border-color: #e74c3c;}
.cal-day.empty { background: transparent; border: none; }
.cal-day.clickable { cursor: pointer; }
.cal-day.clickable:hover { opacity: 0.8; }

footer { background: var(--primary-blue); color: var(--light-text); text-align: center; padding: 20px; font-size: 18px; }

@media (max-width: 900px) {
    .hotel-name { font-size: 24px; }
    .fixed-social-media { top: 10px; left: 10px; max-width: 100%; justify-content: flex-start; }
    .fixed-social-media a i { font-size: 22px; }
    .category-card { height: 180px; }
    .category-overlay h2 { font-size: 26px; }
    .section-header { flex-direction: column; }
    .back-btn { position: relative; margin-bottom: 15px; align-self: flex-start;}
}