/* ===== CSS Variables ===== */
:root {
  --primary-color: #0f5f66;
  --secondary-color: #d9b26f;
  --accent-color: #25d366;
  --dark-color: #16343a;
  --light-color: #f7fbfb;
  --text-color: #2d3d40;
  --text-light: #6f7d80;
  --shadow: 0 8px 24px rgba(16, 46, 53, 0.12);
  --shadow-hover: 0 18px 36px rgba(16, 46, 53, 0.18);
  --border-radius: 18px;
  --transition: all 0.3s ease;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  padding-top: 76px;
  overflow-x: hidden;
  background: #ffffff;
}
h1, h2, h3, h4, h5, h6, .navbar-brand { font-family: 'Playfair Display', serif; font-weight: 600; }
a { text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; }
.container { padding-left: 15px; padding-right: 15px; }
.preloader {
  position: fixed; inset: 0; background: white; display: flex; align-items: center; justify-content: center; z-index: 9999; transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-content { text-align: center; }
.spinner { width: 50px; height: 50px; border: 5px solid #eff3f4; border-top: 5px solid var(--primary-color); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 20px; }
@keyframes spin { 0% { transform: rotate(0deg);} 100% { transform: rotate(360deg);} }
.preloader-content h3 { color: var(--dark-color); font-weight: 600; }
#mainNav {
  background-color: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(12px);
  transition: var(--transition);
  padding: 15px 0;
}
.navbar-scrolled { box-shadow: var(--shadow); padding: 10px 0; }
.navbar-brand { font-size: 1.45rem; color: var(--primary-color) !important; }
.navbar-brand i { margin-right: 8px; }
.nav-link { font-weight: 500; margin: 0 5px; color: var(--dark-color) !important; position: relative; }
.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px; background: var(--primary-color); transition: var(--transition); transform: translateX(-50%);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover { color: var(--primary-color) !important; }
.btn-primary { background-color: var(--primary-color); border-color: var(--primary-color); }
.btn-primary:hover { background-color: #0c4b51; border-color: #0c4b51; }
.btn-success { background-color: var(--accent-color); border-color: var(--accent-color); color: white; }
.btn-success:hover { background-color: #1fb457; border-color: #1fb457; color: white; }
.btn-warning { background-color: var(--secondary-color); border-color: var(--secondary-color); color: #1f2426; }
.btn-warning:hover { background-color: #cba360; border-color: #cba360; color: #1f2426; }
.hero {
  height: 100vh; min-height: 680px;
  background: linear-gradient(rgba(13, 53, 58, 0.35), rgba(10, 36, 40, 0.58)), url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1600&q=80');
  background-size: cover; background-position: center; background-attachment: fixed; position: relative; margin-top: -76px;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 53, 58, 0.12) 0%, rgba(8, 28, 31, 0.45) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 980px; }
.hero-kicker {
  display: inline-block; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.25); color: #fff; padding: 10px 18px; border-radius: 999px; margin-bottom: 18px; backdrop-filter: blur(12px); font-size: 0.95rem; letter-spacing: 0.04em;
}
.hero-title { font-size: 4rem; margin-bottom: 1rem; text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.35); }
.hero-subtitle { font-size: 1.25rem; margin-bottom: 1.5rem; text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4); max-width: 760px; margin-left: auto; margin-right: auto; }
.hero-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 2rem; }
.hero-badges span {
  background: rgba(255,255,255,0.14); color: #fff; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.2); font-weight: 500; backdrop-filter: blur(10px);
}
.hero-badges i { margin-right: 8px; color: #ffe0a8; }
.hero-buttons .btn { padding: 12px 30px; border-radius: 50px; font-weight: 600; }
.quick-booking-widget {
  background: rgba(255, 255, 255, 0.14); backdrop-filter: blur(16px); border-radius: var(--border-radius); padding: 25px; margin-top: 3rem; border: 1px solid rgba(255, 255, 255, 0.22); box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.quick-booking-widget .form-control, .quick-booking-widget .form-select {
  background: rgba(255, 255, 255, 0.94); border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 10px; padding: 12px; color: var(--dark-color);
}
.quick-booking-widget .form-control:focus, .quick-booking-widget .form-select:focus {
  background: white; border-color: var(--primary-color); box-shadow: 0 0 0 0.2rem rgba(15, 95, 102, 0.18);
}
.scroll-indicator { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); color: white; font-size: 1.5rem; animation: bounce 2s infinite; z-index: 2; }
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-10px) translateX(-50%); }
  60% { transform: translateY(-5px) translateX(-50%); }
}
section { padding: 80px 0; }
.section-title { font-size: 2.5rem; margin-bottom: 1rem; color: var(--dark-color); position: relative; }
.section-title::after { content: ''; position: absolute; bottom: -10px; left: 0; width: 60px; height: 3px; background: var(--primary-color); }
.text-center .section-title::after { left: 50%; transform: translateX(-50%); }
.lead { font-size: 1.15rem; font-weight: 400; margin-bottom: 1rem; }
.highlight-stats { background: var(--light-color); border-radius: var(--border-radius); padding: 20px; margin-top: 30px; box-shadow: var(--shadow); }
.highlight-stats h3 { font-size: 2.3rem; color: var(--primary-color); margin-bottom: 5px; }
.highlight-stats .small { color: var(--text-light); font-weight: 600; }
.room-card { background: white; border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); height: 100%; border: 1px solid #eef2f3; }
.room-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.room-image { height: 240px; overflow: hidden; position: relative; }
.room-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.room-card:hover .room-image img { transform: scale(1.08); }
.room-badge {
  position: absolute; top: 15px; right: 15px; background: var(--primary-color); color: white; padding: 6px 16px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; z-index: 1;
}
.room-badge.bg-success { background-color: #289f78 !important; }
.room-badge.bg-warning { background-color: var(--secondary-color) !important; color: #1e2426; }
.room-content { padding: 24px; }
.room-content h4 { font-size: 1.45rem; margin-bottom: 10px; color: var(--dark-color); }
.room-price { font-size: 1.75rem; color: var(--primary-color); font-weight: 700; margin: 10px 0; }
.per-night { font-size: 0.95rem; color: var(--text-light); }
.room-description { color: var(--text-light); margin-bottom: 15px; min-height: 72px; }
.room-features { display: flex; flex-direction: column; gap: 10px; margin: 15px 0; padding: 15px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.room-features span { font-size: 0.92rem; color: var(--text-light); display: flex; align-items: center; }
.room-features i { color: var(--primary-color); margin-right: 8px; font-size: 1rem; }
.room-amenities { list-style: none; padding: 0; margin: 15px 0; }
.room-amenities li { padding: 5px 0; color: var(--text-light); display: flex; align-items: center; }
.room-amenities i { color: #289f78; margin-right: 10px; font-size: 0.9rem; }
.facility-card { background: white; padding: 30px 20px; border-radius: var(--border-radius); box-shadow: var(--shadow); transition: var(--transition); height: 100%; border: 1px solid #eef2f3; }
.facility-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.facility-icon { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 15px; }
.facility-card h5 { font-size: 1.2rem; margin-bottom: 10px; color: var(--dark-color); }
.gallery-img-container { position: relative; overflow: hidden; border-radius: var(--border-radius); height: 300px; cursor: pointer; box-shadow: var(--shadow); }
.gallery-img-container img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-overlay { position: absolute; inset: 0; background: rgba(8, 30, 34, 0.42); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.gallery-img-container:hover .gallery-overlay { opacity: 1; }
.gallery-img-container:hover img { transform: scale(1.1); }
.gallery-overlay i { color: white; font-size: 2rem; }
.testimonial-card { background: white; padding: 30px; border-radius: var(--border-radius); box-shadow: var(--shadow); height: 100%; position: relative; }
.testimonial-card::before { content: '"'; position: absolute; top: 20px; left: 20px; font-size: 4rem; color: var(--primary-color); opacity: 0.08; font-family: serif; }
.stars { color: var(--secondary-color); font-size: 1.2rem; }
.testimonial-text { font-style: italic; margin-bottom: 20px; color: var(--text-color); position: relative; z-index: 1; }
.testimonial-author h6 { color: var(--dark-color); font-weight: 600; }
.testimonial-author small { color: var(--text-light); }
.bg-gradient { background: linear-gradient(135deg, #0f5f66, #1d7c84); }
.special-offers { position: relative; overflow: hidden; }
.special-offers::before {
  content: ''; position: absolute; inset: 0; background: radial-gradient(circle at top right, rgba(255,255,255,0.16), transparent 42%);
}
.accordion-button { font-weight: 500; padding: 15px 20px; }
.accordion-button:not(.collapsed) { background-color: var(--primary-color); color: white; }
.accordion-button:focus { box-shadow: 0 0 0 0.2rem rgba(15, 95, 102, 0.18); border-color: var(--primary-color); }
.accordion-body { padding: 20px; }
.map-card, .contact-card { border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--shadow); }
.contact-list div { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; color: var(--text-color); }
.contact-list i { width: 20px; color: var(--primary-color); margin-top: 4px; }
.contact-list a { color: var(--text-color); }
footer { background: var(--dark-color); }
footer h5 { font-size: 1.3rem; margin-bottom: 20px; position: relative; }
footer h5::after { content: ''; position: absolute; bottom: -8px; left: 0; width: 40px; height: 2px; background: var(--secondary-color); }
footer p { color: #d6ddde; line-height: 1.8; }
.social-pill {
  display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; border-radius: 999px; margin-right: 8px; margin-bottom: 10px; background: rgba(255,255,255,0.08); color: white;
}
.social-pill:hover { background: var(--secondary-color); color: #1e2426; }
footer .btn-success { padding: 8px 20px; border-radius: 50px; }
footer hr { opacity: 0.1; }
.floating-action-buttons {
  position: fixed; right: 20px; bottom: 90px; display: flex; flex-direction: column; gap: 12px; z-index: 1040;
}
.floating-btn {
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18); font-size: 1.35rem;
}
.floating-whatsapp { background: #25d366; }
.floating-location { background: var(--primary-color); }
.floating-btn:hover { transform: translateY(-3px); color: white; }
.mobile-bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; display: none; justify-content: space-around; align-items: center; gap: 4px; background: rgba(255,255,255,0.96); backdrop-filter: blur(12px); border-top: 1px solid rgba(15,95,102,0.08); box-shadow: 0 -8px 24px rgba(0,0,0,0.06); padding: 10px 6px calc(10px + env(safe-area-inset-bottom)); z-index: 1050;
}
.mobile-nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-light); font-size: 0.74rem; font-weight: 600; }
.mobile-nav-item i { font-size: 1rem; margin-bottom: 4px; }
.mobile-nav-item:hover, .mobile-book-now { color: var(--primary-color); }
.room-modal .modal-content { border-radius: 20px; border: none; overflow: hidden; }
.room-gallery { margin-bottom: 24px; }
.room-main-image { height: 360px; overflow: hidden; border-radius: 16px; margin-bottom: 15px; }
.room-main-image img { width: 100%; height: 100%; object-fit: cover; }
.room-thumbnails { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.room-thumbnail { border-radius: 12px; overflow: hidden; cursor: pointer; border: 2px solid transparent; }
.room-thumbnail.active { border-color: var(--primary-color); }
.room-thumbnail img { width: 100%; height: 85px; object-fit: cover; display: block; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.feature-item { background: var(--light-color); border-radius: 12px; padding: 12px 14px; display: flex; gap: 10px; align-items: center; }
.feature-item i { color: var(--primary-color); }
.room-amenities-detailed ul, .special-features ul, .policy-list { list-style: none; padding-left: 0; }
.room-amenities-detailed li, .special-features li, .policy-list li { padding: 8px 0; display: flex; gap: 10px; }
.room-price-large { font-size: 1.9rem; color: var(--primary-color); font-weight: 700; }
@media (max-width: 992px) {
  .hero-title { font-size: 3rem; }
  .hero-subtitle { font-size: 1.15rem; }
  .section-title { font-size: 2rem; }
  .quick-booking-widget .booking-row > div { margin-bottom: 8px; }
}
@media (max-width: 768px) {
  body { padding-bottom: 82px; }
  .hero { height: auto; min-height: 100vh; padding-top: 140px; padding-bottom: 90px; background-attachment: scroll; }
  .hero-title { font-size: 2.45rem; }
  .hero-subtitle { font-size: 1.05rem; }
  .hero-buttons .btn { display: block; width: 100%; margin-bottom: 10px; }
  .hero-buttons .me-3 { margin-right: 0 !important; }
  .hero-badges { gap: 8px; }
  .hero-badges span { font-size: 0.82rem; }
  .section-title { font-size: 1.8rem; }
  .facility-card { margin-bottom: 20px; }
  .room-main-image { height: 220px; }
  .feature-grid { grid-template-columns: 1fr; }
  .room-thumbnails { grid-template-columns: repeat(2, 1fr); }
  .mobile-bottom-nav { display: flex; }
  .floating-action-buttons { right: 16px; bottom: 92px; }
}
@media (max-width: 576px) {
  .quick-booking-widget { padding: 18px; }
  .room-card { margin-bottom: 20px; }
  .gallery-img-container { height: 230px; margin-bottom: 12px; }
  .floating-btn { width: 52px; height: 52px; }
  .contact-card .p-4 { padding: 1.2rem !important; }
}
@media print {
  .preloader, .scroll-indicator, .quick-booking-widget, .btn, .social-pill, iframe, .floating-action-buttons, .mobile-bottom-nav { display: none !important; }
  .hero { background: none !important; color: black !important; min-height: auto; }
  .hero-content { color: black !important; }
  .room-card { box-shadow: none !important; border: 1px solid #ddd; }
}


/* ===== Multi Page Upgrade ===== */
body.inner-page {
  padding-top: 76px;
}

.page-banner {
  min-height: 420px;
  display: flex;
  align-items: center;
  position: relative;
  margin-top: -76px;
  padding-top: 140px;
  padding-bottom: 90px;
  background-image: linear-gradient(rgba(13, 53, 58, 0.42), rgba(10, 36, 40, 0.64)), var(--page-banner-image);
  background-size: cover;
  background-position: center;
}

.page-banner-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.08), transparent 55%);
}

.page-banner h1 {
  font-size: 3.4rem;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.32);
  margin-bottom: 14px;
}

.page-banner p {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.15rem;
  opacity: 0.94;
}

.page-icon {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.22);
  color: #ffe0a8;
  font-size: 1.8rem;
  margin-bottom: 18px;
  backdrop-filter: blur(10px);
}

.mini-page-card {
  display: block;
  height: 100%;
  padding: 28px;
  border-radius: var(--border-radius);
  background: #fff;
  color: var(--text-color);
  box-shadow: var(--shadow);
  border: 1px solid #eef2f3;
  transition: var(--transition);
}

.mini-page-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  color: var(--text-color);
}

.mini-page-card i {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(15,95,102,0.1);
  color: var(--primary-color);
  font-size: 1.35rem;
  margin-bottom: 18px;
}

.mini-page-card h4 {
  color: var(--dark-color);
  margin-bottom: 10px;
}

body[data-active-page="home"] .nav-home,
body[data-active-page="rooms"] .nav-rooms,
body[data-active-page="facilities"] .nav-facilities,
body[data-active-page="gallery"] .nav-gallery,
body[data-active-page="reviews"] .nav-reviews,
body[data-active-page="contact"] .nav-contact {
  color: var(--primary-color) !important;
}

body[data-active-page="home"] .nav-home::after,
body[data-active-page="rooms"] .nav-rooms::after,
body[data-active-page="facilities"] .nav-facilities::after,
body[data-active-page="gallery"] .nav-gallery::after,
body[data-active-page="reviews"] .nav-reviews::after,
body[data-active-page="contact"] .nav-contact::after {
  width: 100%;
}

body[data-active-page="home"] .mobile-home,
body[data-active-page="rooms"] .mobile-rooms,
body[data-active-page="gallery"] .mobile-gallery,
body[data-active-page="contact"] .mobile-contact {
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .page-banner {
    min-height: 360px;
    padding-top: 130px;
    padding-bottom: 70px;
  }

  .page-banner h1 {
    font-size: 2.35rem;
  }

  .page-banner p {
    font-size: 1rem;
  }

  .mini-page-card {
    padding: 24px;
  }
}
