/* --- GLOBAL APP-LIKE STYLES --- */
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; background-color: #f7f7f9; margin: 0; padding: 0; color: #222; -webkit-font-smoothing: antialiased; padding-bottom: 75px; }
.app-container { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; min-height: 100vh; }

/* --- UI/UX UPGRADE: PHOTO-FIRST HERO SECTION --- */
.hero-section { 
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.8)), url('https://images.unsplash.com/photo-1582719508461-905c673771fd?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80') center/cover no-repeat; 
    color: white; padding: 30px 20px 70px 20px; border-bottom-left-radius: 35px; border-bottom-right-radius: 35px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); 
}
.header-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.header-top h1 { margin: 0; font-size: 32px; font-weight: 900; letter-spacing: -1px; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }

/* Desktop Top Nav */
.nav-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.nav-links a { color: white; text-decoration: none; font-weight: bold; font-size: 14px; padding: 10px 16px; border-radius: 12px; background-color: rgba(255,255,255,0.2); backdrop-filter: blur(10px); transition: background 0.2s; white-space: nowrap; border: 1px solid rgba(255,255,255,0.1); }
.nav-links a:hover { background-color: rgba(255,255,255,0.3); }
.btn-admin { background-color: #ffcc00 !important; color: #000 !important; }

/* --- MOBILE NOTIFICATION BELL --- */
.mobile-bell { display: none; text-decoration: none; font-size: 20px; background: rgba(255,255,255,0.25); width: 40px; height: 40px; border-radius: 50%; align-items: center; justify-content: center; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); transition: 0.2s; }
.mobile-bell:active { transform: scale(0.95); background: rgba(255,255,255,0.4); }

.hero-text h2 { margin: 0 0 8px 0; font-size: 28px; font-weight: 800; line-height: 1.2; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.hero-text p { margin: 0; font-size: 16px; font-weight: 500; opacity: 0.9; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }

/* UI/UX UPGRADE: CHUNKY APP-LIKE TABS */
.tabs-container { display: flex; overflow-x: auto; gap: 12px; margin-top: 25px; padding-bottom: 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs-container::-webkit-scrollbar { display: none; }
.tab { flex-shrink: 0; background-color: rgba(255,255,255,0.15); backdrop-filter: blur(8px); color: white; padding: 12px 22px; border-radius: 30px; text-decoration: none; font-size: 15px; font-weight: 700; transition: all 0.2s; border: 1px solid rgba(255,255,255,0.3); }
.tab.active { background-color: #ffffff; color: #800000; box-shadow: 0 4px 15px rgba(0,0,0,0.2); border-color: white; }

.search-card { background-color: #ffffff; padding: 25px; border-radius: 24px; box-shadow: 0 15px 35px rgba(0,0,0,0.1); margin: -50px 20px 20px 20px; position: relative; z-index: 10; border: 1px solid #eaeaea; }
.search-row { display: flex; gap: 15px; margin-bottom: 15px; flex-wrap: wrap; }

/* UI/UX UPGRADE: CHUNKY TAPPABLE INPUTS */
.search-input, .date-input, .price-input, .sort-select { width: 100%; padding: 16px 12px; border: 1px solid #e0e0e0; border-radius: 14px; font-size: 16px; font-weight: 500; background-color: #f8f9fa; color: #333; box-sizing: border-box; transition: 0.2s; }
.search-input:focus, .date-input:focus { outline: none; border-color: #800000; background-color: #fff; box-shadow: 0 0 0 3px rgba(128,0,0,0.1); }

/* UI/UX UPGRADE: QUICK SEARCH CHIPS */
.quick-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 5px; margin-top: -5px; margin-bottom: 18px; scrollbar-width: none; }
.quick-chips::-webkit-scrollbar { display: none; }
.chip { background: #f0f0f5; color: #444; padding: 8px 14px; border-radius: 20px; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: 0.2s; border: 1px solid #e0e0e0; outline: none; }
.chip:hover, .chip:active { background: #e0e0e8; color: #111; border-color: #ccc; }

.date-group { flex: 1; min-width: 0; } 
.date-label { font-size: 12px; font-weight: 800; color: #888; text-transform: uppercase; margin-bottom: 8px; display: block; letter-spacing: 0.5px; margin-left: 5px; }

/* UI/UX UPGRADE: HORIZONTAL SCROLLING FILTER ROW */
.advanced-filters { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 10px; margin-bottom: 20px; padding-bottom: 5px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.advanced-filters::-webkit-scrollbar { display: none; }
.ac-checkbox { flex-shrink: 0; display: flex; align-items: center; font-size: 14px; color: #444; font-weight: 600; cursor: pointer; background: #fff; padding: 10px 16px; border-radius: 20px; border: 1px solid #dcdcdc; transition: 0.2s; white-space: nowrap;}
.ac-checkbox:hover { border-color: #aaa; background: #f9f9f9; }
.ac-checkbox input { margin-right: 8px; width: 18px; height: 18px; accent-color: #800000; cursor: pointer; }

.filter-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; border-top: 1px solid #eee; padding-top: 20px; }
.search-btn { background-color: #800000; color: white; border: none; padding: 16px 25px; border-radius: 14px; font-weight: 800; font-size: 16px; cursor: pointer; transition: 0.2s; flex-grow: 1; text-align: center; box-shadow: 0 4px 15px rgba(128,0,0,0.2); }
.search-btn:hover { background-color: #660000; transform: translateY(-2px); }

.map-toggle-btn { display: block; width: calc(100% - 40px); margin: 0 auto 20px auto; text-align: center; background: #fff; border: 2px solid #222; color: #222; padding: 14px; border-radius: 14px; font-weight: 800; font-size: 15px; cursor: pointer; transition: 0.2s; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.map-toggle-btn:hover { background: #f0f0f5; }
#map-view { display: none; height: 500px; margin: 0 20px 20px 20px; border-radius: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); border: 2px solid #ddd; z-index: 1; }

.feed-container { padding: 0 20px 40px 20px; flex-grow: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }

.room-card { background: #ffffff; border-radius: 20px; overflow: hidden; box-shadow: 0 8px 20px rgba(0,0,0,0.06); transition: transform 0.2s, box-shadow 0.2s; border: 1px solid #f0f0f0; display: flex; flex-direction: column; position: relative; }
.room-card:hover { transform: translateY(-6px); box-shadow: 0 15px 30px rgba(0,0,0,0.12); }
.room-image { width: 100%; height: 220px; object-fit: cover; background-color: #e9e9e9; transition: 0.2s; }
.room-image:hover { filter: brightness(0.9); }

.wishlist-btn { position: absolute; top: 15px; right: 15px; background: rgba(255,255,255,0.85); border: none; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: 0.2s; backdrop-filter: blur(4px); box-shadow: 0 4px 10px rgba(0,0,0,0.15); }
.wishlist-btn:hover { transform: scale(1.1); }
.heart-icon { font-size: 20px; }
.heart-saved { color: #ff3366; }
.heart-unsaved { color: #888; }

.room-details { padding: 22px; display: flex; flex-direction: column; flex-grow: 1; }
.room-title-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.room-details h2 { color: #111; margin: 0; font-size: 19px; font-weight: 800; line-height: 1.3; transition: 0.2s; }
.room-details h2:hover { color: #800000; }
.rating-badge { display: flex; align-items: center; background: #fff3cd; color: #856404; padding: 4px 8px; border-radius: 8px; font-weight: bold; font-size: 13px; }

.room-location { color: #666; font-size: 15px; margin: 0 0 15px 0; font-weight: 500;}

.amenities-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.ac-badge { padding: 6px 10px; border-radius: 8px; font-size: 12px; font-weight: 800; }
.bg-blue { background-color: #e6f2ff; color: #0066cc; }
.bg-orange { background-color: #fdf2e9; color: #d35400; }
.bg-purple { background-color: #f4ecf7; color: #8e44ad; }
.bg-red { background-color: #fadedc; color: #c0392b; }
.bg-teal { background-color: #e8f8f5; color: #1abc9c; }

.price-row { margin-top: auto; border-top: 1px solid #f0f0f0; padding-top: 15px; display: flex; justify-content: space-between; align-items: flex-end; }
.price-text { font-size: 22px; font-weight: 900; color: #111; }
.price-sub { font-size: 14px; color: #888; font-weight: 500; }

.book-btn { background-color: #222; color: white; border: none; padding: 15px; border-radius: 12px; text-decoration: none; display: block; text-align: center; font-weight: 800; font-size: 16px; margin-top: 15px; transition: 0.2s; }
.book-btn:hover { background: #000; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.15);}

.app-footer { text-align: center; padding: 30px 20px; border-top: 1px solid #e0e0e0; background-color: #fff; margin-top: auto; padding-bottom: 90px; }
.app-footer a { color: #800000; text-decoration: none; font-weight: bold; font-size: 14px; }
.app-footer p { margin: 8px 0 0 0; font-size: 13px; color: #888; }

.leaflet-popup-content { margin: 10px; text-align: center; }
.leaflet-popup-content img { width: 100%; border-radius: 8px; margin-bottom: 8px; height: 100px; object-fit: cover;}
.leaflet-popup-content h4 { margin: 0 0 5px 0; font-size: 14px; color: #800000; }
.leaflet-popup-content p { margin: 0 0 10px 0; font-size: 14px; font-weight: bold; }

/* --- UI/UX UPGRADE: MOBILE BOTTOM NAVIGATION BAR --- */
.bottom-nav { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); box-shadow: 0 -2px 15px rgba(0,0,0,0.08); z-index: 1000; justify-content: space-around; padding: 12px 0; border-top: 1px solid #eaeaea; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
.nav-item { text-decoration: none; color: #888; display: flex; flex-direction: column; align-items: center; font-size: 11px; font-weight: 700; gap: 4px; transition: 0.2s; }
.nav-item.active { color: #800000; }
.nav-item:hover { color: #555; }
.nav-icon { font-size: 24px; }

@media (max-width: 768px) {
    .nav-links { display: none; } 
    .bottom-nav { display: flex; } 
    .mobile-bell { display: flex; } 
}

/* --- ROOM DETAILS PAGE STYLES --- */
.room-gallery-section { position: relative; width: 100%; height: 350px; background: #111; }
.gallery-container { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gallery-container::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: center; position: relative; display: flex; align-items: center; justify-content: center; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-slide video { width: 100%; height: 100%; object-fit: contain; background: #000; }

.nav-pills { position: absolute; top: 20px; left: 20px; right: 20px; display: flex; justify-content: space-between; z-index: 10; }
.pill-btn { background: rgba(255,255,255,0.9); border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 20px; display: flex; justify-content: center; align-items: center; text-decoration: none; color: #111; backdrop-filter: blur(4px); box-shadow: 0 4px 10px rgba(0,0,0,0.1); transition: 0.2s;}
.pill-btn:hover { background: #fff; transform: scale(1.05); }
.pill-actions { display: flex; gap: 10px; }
.gallery-counter { position: absolute; bottom: 15px; right: 20px; background: rgba(0,0,0,0.65); color: #fff; padding: 6px 12px; border-radius: 15px; font-size: 13px; font-weight: 700; letter-spacing: 1px; backdrop-filter: blur(4px); z-index: 10; pointer-events: none;}

.content-body { padding: 25px 20px; }
.title-row { margin-bottom: 15px; display: flex; justify-content: space-between; align-items: flex-start; }
.title-left { flex-grow: 1; }
.title-row h1 { margin: 0 0 5px 0; font-size: 26px; font-weight: 800; line-height: 1.2; color: #111; }
.location-text { font-size: 15px; color: #666; margin: 0; font-weight: 500; display: flex; align-items: center; gap: 5px;}
.host-badge { display: inline-flex; align-items: center; gap: 8px; background: #f8f9fa; padding: 8px 14px; border-radius: 20px; border: 1px solid #eaeaea; font-size: 13px; font-weight: 700; color: #444; margin-top: 15px; }

.map-card { background: #f0f4f8; border-radius: 16px; padding: 20px; margin: 25px 0; border: 1px solid #d9e2ec; display: flex; justify-content: space-between; align-items: center; text-decoration: none; color: #111; transition: 0.2s; }
.map-card:hover { background: #e6f2ff; border-color: #b8daff; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0,102,204,0.1);}
.map-card-text h3 { margin: 0 0 4px 0; font-size: 16px; font-weight: 800; }
.map-card-text p { margin: 0; font-size: 13px; color: #555; }
.map-icon { font-size: 24px; background: #fff; width: 45px; height: 45px; border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0 2px 8px rgba(0,0,0,0.05); color: #0066cc;}

.section-title { font-size: 18px; font-weight: 800; color: #111; margin: 30px 0 15px 0; }
.amenities-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.amenity-item { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; color: #333; }
.amenity-icon { font-size: 20px; width: 35px; height: 35px; background: #f8f9fa; border-radius: 10px; display: flex; justify-content: center; align-items: center; border: 1px solid #eaeaea; }
.amenity-missing { color: #999; text-decoration: line-through; opacity: 0.6; }
.amenity-missing .amenity-icon { filter: grayscale(100%); }

.review-card { background: #fff; border: 1px solid #eaeaea; padding: 15px; border-radius: 12px; margin-bottom: 15px; }
.review-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.reviewer-name { font-weight: bold; font-size: 14px; }
.review-date { font-size: 12px; color: #888; }
.review-text { font-size: 14px; color: #444; line-height: 1.4; margin: 0; }
.star-rating { color: #f39c12; font-size: 12px; }

.sticky-footer { position: fixed; bottom: 0; left: 0; width: 100%; background: #ffffff; padding: 15px 20px; box-sizing: border-box; border-top: 1px solid #eaeaea; display: flex; justify-content: space-between; align-items: center; z-index: 100; padding-bottom: calc(15px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 20px rgba(0,0,0,0.06); }
@media (min-width: 600px) { .sticky-footer { max-width: 600px; left: 50%; transform: translateX(-50%); } }
.price-col { display: flex; flex-direction: column; }
/* .price-text and .price-sub are already in style.css from index.php! */