/* Basic Reset & Root Variables */
:root {
    --primary-color: #004488; /* Deep Water Blue */
    --secondary-color: #28a745; /* Fresh Green Accent */
    --light-gray: #f8f9fa;
    --white-color: #fff;
    --font-primary: 'Lora', serif;
    --font-secondary: 'Montserrat', sans-serif;
    --bg-color: #eef6ff;
    --surface-glass: rgba(255, 255, 255, 0.16);
    --surface-glass-strong: rgba(255, 255, 255, 0.24);
    --surface-dark: rgba(7, 32, 60, 0.68);
    --glass-border: rgba(255, 255, 255, 0.24);
    --shadow-soft: 0 12px 40px rgba(0, 36, 74, 0.12);
    --shadow-hover: 0 18px 48px rgba(0, 36, 74, 0.2);
    --radius-sm: 14px;
    --radius-md: 22px;
    --radius-lg: 32px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    letter-spacing: 0.01em;
    color: var(--primary-color);
    background:
        radial-gradient(circle at top left, rgba(40, 167, 69, 0.12), transparent 32%),
        radial-gradient(circle at top right, rgba(0, 68, 136, 0.16), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, #edf6ff 48%, #f8fbff 100%);
    transition: background-color 0.5s ease, color 0.5s ease;
}

img {
    max-width: 100%;
    display: block;
}

main {
    position: relative;
    z-index: 1;
}

/* Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.4rem;
    background: rgba(7, 32, 60, 0.55);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    position: fixed;
    width: calc(100% - 24px);
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 1000;
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.navbar.scrolled {
    background: rgba(7, 32, 60, 0.82);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
    padding: 0.7rem 1.25rem;
    transform: translateY(-2px);
}

.nav-logo {
    color: var(--white-color);
    text-decoration: none;
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-logo img {
    height: 60px; /* Increased from 40px */
    width: auto;
    vertical-align: middle;
    transition: height 0.4s ease;
}

.navbar.scrolled .nav-logo img {
    height: 40px; /* Shrink logo on scroll */
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 1.5rem;
    position: relative; /* For dropdown positioning */
}

.nav-link {
    color: var(--white-color);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.nav-link-button {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.nav-link-button:hover {
    background-color: var(--primary-color);
}

.dropdown-toggle {
    color: var(--white-color);
    padding-left: 0.5rem;
    cursor: pointer;
    display: inline-flex; /* To align icon vertically */
}

/* Dropdown Menu */
.dropdown-content {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    background: rgba(7, 32, 60, 0.8);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    min-width: 220px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 1;
    list-style: none;
    padding: 0.65rem 0;
    border-radius: 18px;
    margin-top: 0; /* Adjust for transform */
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.dropdown-content a {
    color: var(--white-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: var(--secondary-color);
}

.nav-item:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(10px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    position: relative; /* Needed for absolute children */
    overflow: hidden; /* Hide parts of slides during Ken Burns effect */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white-color);
    padding: 6rem 1rem 2rem;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slideshow .slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 38%),
        linear-gradient(180deg, rgba(0, 31, 63, 0.08) 0%, rgba(0, 31, 63, 0.52) 100%);
    z-index: 2;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.04;
    letter-spacing: 0.02em;
    text-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.hero-content {
    position: relative; /* To bring it above the overlay */
    z-index: 3;
    max-width: 760px;
    padding: clamp(1.2rem, 3vw, 2rem);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 34px rgba(0, 36, 74, 0.14);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

.btn {
    text-decoration: none;
    padding: 0.95rem 1.65rem;
    border-radius: 999px;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.95), rgba(75, 209, 112, 0.92));
    color: var(--white-color);
    box-shadow: 0 14px 30px rgba(40, 167, 69, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(0, 68, 136, 0.95), rgba(35, 122, 209, 0.92));
    transform: translateY(-3px);
}

.btn-outline {
    border: 1px solid rgba(0, 68, 136, 0.18);
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.85rem 1.45rem;
    border-radius: 999px;
    font-weight: 700;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.6);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* General Content Sections */
.content-section {
    padding: clamp(4rem, 8vw, 6rem) clamp(1rem, 3vw, 2rem);
    overflow-x: hidden; /* Prevent horizontal scrollbar from animations */
    text-align: center;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.section-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    letter-spacing: 0.02em;
    line-height: 1.15;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    margin: 10px auto 0;
}

.bg-light {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(236, 245, 255, 0.88));
    transition: background-color 0.5s ease, color 0.5s ease;
}

.Riverside-intro .section-title::after {
    margin-left: 0;
}

/* Footer */
.main-footer {
    background: rgba(7, 32, 60, 0.94);
    color: var(--white-color);
    text-align: center;
    padding: 3rem 2rem; /* Increased padding */
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    margin-top: 2rem;
}

.main-footer .powered-by {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #ccc;
}

/* --- New Styles --- */

/* Generic Page Header (for sub-pages) */
.page-header {
    min-height: 42vh;
    background: linear-gradient(rgba(0, 68, 136, 0.38), rgba(0, 0, 0, 0.72)), url('images/view.png') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white-color);
    padding: 7rem 1rem 3rem;
}

.page-header .page-title {
    font-family: var(--font-primary);
    font-size: 3rem;
    letter-spacing: 0.03em;
    animation: fadeInDown 1s ease-out;
}

/* About Page: Two-column layout */
.Riverside-intro,
.room-detail-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(227, 241, 255, 0.8));
    transition: background-color 0.5s ease, color 0.5s ease;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    text-align: left;
    max-width: 1100px;
    margin: 0 auto;
    background: var(--surface-glass-strong);
    border: 1px solid rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: clamp(1.2rem, 3vw, 2rem);
}

.about-image, .about-text {
    flex: 1;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

/* Rooms Page: Card Layout */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto 0;
}

.room-card {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.45);
    text-align: left;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.5s ease, color 0.5s ease;
}

.room-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.room-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.room-card:hover img {
    transform: scale(1.05);
}

.room-card-content {
    padding: 1.5rem;
}

.room-card-content h3 {
    font-family: var(--font-primary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.room-card-content h3 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.room-card-content h3 a:hover {
    color: var(--secondary-color);
}

.room-card-content .price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.room-card-content p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Room Detail Page */
.room-detail-container {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    padding: clamp(1.2rem, 3vw, 2.5rem);
    background: rgba(255, 255, 255, 0.72);
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.42);
    margin: 0 auto;
    text-align: left;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    transition: background-color 0.5s ease, color 0.5s ease, box-shadow 0.5s ease;
}

.room-detail-gallery {
    flex: 1.5;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.room-detail-gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s ease;
}

.fade-in-section.is-visible .room-detail-gallery img {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.fade-in-section.is-visible .room-detail-gallery img:nth-child(2) {
    transition-delay: 0.2s;
}

.fade-in-section.is-visible .room-detail-gallery img:nth-child(3) {
    transition-delay: 0.4s;
}

.room-detail-gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.room-detail-info {
    flex: 1;
}

.room-detail-info ul {
    list-style: none;
    margin-top: 1.5rem;
    padding: 0;
}

.room-detail-info ul li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.room-detail-info ul li i {
    color: var(--secondary-color);
    margin-right: 1rem;
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

/* Services Grid for Index Page */
.services-grid-simple {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 2rem auto 0;
}

.service-item {
    padding: 2rem 1.2rem;
    transition: background-color 0.5s ease, color 0.5s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.46);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.service-item:hover {
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-soft);
    border-color: rgba(40, 167, 69, 0.22);
    transform: translateY(-5px);
}

.service-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.service-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Facilities Page: Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 2rem auto 0;
}

.services-grid > a {
    text-decoration: none;
    color: var(--primary-color);
}

.service-card {
    background: rgba(255, 255, 255, 0.68);
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.5s ease, color 0.5s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-soft);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    background-color: rgba(40, 167, 69, 0.1);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.service-card:hover i {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.service-card h3 {
    font-family: var(--font-primary);
    margin-bottom: 0.5rem;
}

/* Contact Page */
.contact-container {
    display: flex;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}

.contact-info, .contact-form {
    flex: 1;
}

.contact-info h3 {
    font-family: var(--font-primary);
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.contact-info i {
    color: var(--secondary-color);
    margin-right: 1rem;
    font-size: 1.2rem;
    width: 20px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: background-color 0.5s ease, color 0.5s ease, border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(10, 46, 56, 0.2);
}

/* Availability Form */
.availability-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.2rem;
    max-width: 900px;
    margin: 2rem auto 0;
    background-color: var(--white-color);
    padding: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: background-color 0.5s ease, color 0.5s ease;
}

.availability-form .form-group {
    flex: 1 1 150px; /* Flex-grow, flex-shrink, basis */
    margin-bottom: 0;
    text-align: left;
}

.availability-form .form-group label {
    margin-bottom: 0.1rem;
}

.availability-form .form-group input {
    padding: 0.3rem;
}

/* Map Section */
.map-container {
    max-width: 1100px;
    margin: 2rem auto 0;
    border-radius: 8px;
    overflow: hidden; /* To apply border-radius to iframe */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: 0;
    vertical-align: middle; /* Removes bottom space under iframe */
}

/* Photo Gallery */
.gallery-slideshow-container {
    max-width: 100%;
    width: 100%;
    position: relative;
    height: 75vh;
    margin: 3rem 0 0;
    border-radius: 0;
    overflow: hidden;
}

/* Hide the images by default */
.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.gallery-slide.active {
    opacity: 1;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    vertical-align: middle;
    transition: transform 1.5s ease;
}

/* Hover zoom effect */
.gallery-slideshow-container:hover .gallery-slide img {
    transform: scale(1.08);
}

/* Caption text */
.gallery-caption {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    padding: 15px;
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    background: linear-gradient(to top, rgba(0, 68, 136, 0.9), transparent);
    color: var(--white-color);
}

/* The dots/bullets/indicators */
.gallery-dots {
    margin-top: 1rem;
    text-align: center;
}

/* Next & previous buttons */
.gallery-prev, .gallery-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.3s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(0,0,0,0.3);
}

/* Position the "next button" to the right */
.gallery-next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.gallery-prev:hover, .gallery-next:hover {
  background-color: rgba(0,0,0,0.8);
}

.gallery-dot.active, .gallery-dot:hover {
  background-color: var(--secondary-color);
}

/* Detail Page Slideshow */
.detail-slideshow-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.room-detail-container > .detail-slideshow-container {
    flex: 1.5; /* Make it take the gallery space in the flex layout */
    height: 500px;
}

.detail-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.0s ease-in-out;
}

.detail-slide.active {
    opacity: 1;
}

.detail-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Next & previous buttons for detail slideshow */
.detail-prev, .detail-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.3s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(0,0,0,0.3);
}
.detail-next {
  right: 0;
  border-radius: 3px 0 0 3px;
}
.detail-prev:hover, .detail-next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999; /* Below navbar (1000) */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Responsive Design */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--white-color);
}

@media(max-width: 992px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .navbar {
        width: calc(100% - 12px);
        top: 6px;
        left: 6px;
        right: 6px;
        padding: 0.65rem 0.9rem;
    }

    .nav-logo img {
        height: 28px;
    }

    .nav-menu {
        position: fixed;
        left: -280px;
        top: 0;
        flex-direction: column;
        background-color: rgba(10, 46, 56, 0.9);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        width: 280px;
        height: 100vh;
        overflow-y: auto;
        text-align: left;
        transition: left 0.4s cubic-bezier(0.22, 1, 0.36, 1);
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.3);
        padding: 72px 1rem 1.25rem 1rem;
        z-index: 1001; /* Ensure above overlay */
    }

    .nav-menu.active {
        left: 0;
    }

    /* Staggered Navigation Animation */
    .nav-item {
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        opacity: 0;
        transform: translateX(-30px);
        transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
        text-align: center;
    }

    .nav-menu.active .nav-item {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-link {
        display: block;
        padding: 0.85rem 0;
        font-size: 1rem;
        width: 100%;
    }

    .nav-link-button {
        display: inline-block;
        text-align: center;
        margin: 1rem 0;
    }

    /* Animation Delays */
    .nav-menu.active .nav-item:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active .nav-item:nth-child(2) { transition-delay: 0.2s; }
    .nav-menu.active .nav-item:nth-child(3) { transition-delay: 0.3s; }
    .nav-menu.active .nav-item:nth-child(4) { transition-delay: 0.4s; }
    .nav-menu.active .nav-item:nth-child(5) { transition-delay: 0.5s; }
    .nav-menu.active .nav-item:nth-child(6) { transition-delay: 0.6s; }

    /* Scale animation for cards on scroll in mobile */
    .room-card, .service-card {
        transition: transform 0.5s ease;
    }

    .nav-logo {
        font-size: 1.1rem;
    }

    .nav-item.dropdown {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: relative;
    }

    .dropdown-toggle {
        position: absolute;
        right: 0;
        top: 0;
        padding: 0;
        width: 46px;
        height: 52px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Style the dropdown container for mobile */
    .dropdown-content {
        position: static;
        display: block; /* Let max-height control visibility */
        max-height: 0;
        overflow: hidden;
        background-color: transparent;
        box-shadow: none;
        width: 100%;
        padding: 0;
        margin-top: 0;
        border-radius: 0;
        transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
        /* Fix: Reset desktop styles for mobile view */
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    /* Expand the dropdown when parent is active */
    .nav-item.dropdown.active > .dropdown-content {
        max-height: 1000px; /* Increased to ensure all items are visible */
        padding: 0 0 0.65rem 0;
        background-color: rgba(0, 0, 0, 0.2);
    }

    /* Rotate caret on active dropdown */
    .nav-item.dropdown.active .dropdown-toggle i {
        transform: rotate(180deg);
    }

    .dropdown-toggle i {
        font-size: 1rem;
        transition: transform 0.4s ease;
    }

    .hero-title {
        font-size: 2.1rem;
    }

    .hero-subtitle {
        font-size: 0.96rem;
        margin-bottom: 1.2rem;
    }

    .about-container,
    .contact-container {
        flex-direction: column;
        gap: 1rem;
    }

    /* Indent sub-menu items */
    .dropdown-content a {
        padding-left: 1.2rem;
        padding-top: 0.65rem;
        padding-bottom: 0.65rem;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .content-section {
        padding: 2.2rem 0.85rem;
    }

    .section-title {
        font-size: 1.7rem;
        margin-bottom: 0.75rem;
    }

    .page-header {
        min-height: 24vh;
        padding: 5.2rem 0.8rem 1.5rem;
    }

    .page-header .page-title {
        font-size: 1.9rem;
    }
    
    .hero {
        min-height: 58vh;
        padding: 5rem 0.8rem 1.25rem;
    }

    .hero-content {
        padding: 0.95rem 0.9rem;
        border-radius: 24px;
    }

    .gallery-slideshow-container {
        height: 34vh;
        margin-top: 1.5rem;
    }

    .availability-form {
        gap: 0.15rem;
        padding: 0.35rem;
    }

    .room-card-content,
    .service-card,
    .contact-info,
    .contact-form {
        padding: 1rem;
    }

    .room-detail-container {
        gap: 1rem;
        padding: 1rem;
    }
}

/* --- Dark Theme Styles --- */
body.dark-theme {
    background-color: #001122;
    color: #e0e0e0;
}

body.dark-theme .bg-light,
body.dark-theme .Riverside-intro,
body.dark-theme .room-detail-section {
    background: #002244;
    color: #e0e0e0;
}

body.dark-theme .section-title {
    color: var(--white-color);
}

body.dark-theme .room-card,
body.dark-theme .service-card,
body.dark-theme .room-detail-container,
body.dark-theme .availability-form,
body.dark-theme .contact-info,
body.dark-theme .contact-form {
    background-color: #003366;
    color: #e0e0e0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

body.dark-theme .service-item:hover {
    background: #003366;
}

body.dark-theme .room-card-content h3 a,
body.dark-theme .services-grid > a {
    color: var(--white-color);
}

body.dark-theme .form-group input,
body.dark-theme .form-group textarea {
    background-color: #002244;
    border-color: #004488;
    color: #fff;
}

.theme-toggle {
    cursor: pointer;
    color: var(--white-color);
    transition: color 0.3s ease, transform 0.3s ease;
}

.theme-toggle:hover {
    color: var(--secondary-color);
    transform: scale(1.2);
}

@media(max-width: 992px) {
    .room-detail-container {
        flex-direction: column;
    }

    .room-detail-container > .detail-slideshow-container {
        height: 300px; /* Adjust height for mobile */
        flex: auto; /* Reset flex for stacked layout */
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--secondary-color);
    color: var(--white-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    transition: all 0.4s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2000;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out, background-color 0.5s ease;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-banner.show {
    transform: translateY(0);
}

body.dark-theme .cookie-banner {
    background-color: #003366;
}

.cookie-content p {
    font-size: 0.9rem;
    margin-right: 2rem;
    text-align: left;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        padding: 0.8rem;
        text-align: center;
    }
    .cookie-content p {
        margin-right: 0;
        margin-bottom: 0.6rem;
        text-align: center;
        font-size: 0.82rem;
    }

    .services-grid-simple {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.55rem;
    }
    .service-item {
        padding: 0.9rem 0.45rem;
    }
    .service-item i {
        font-size: 1.45rem;
        margin-bottom: 0.45rem;
    }
    .service-item h3 {
        font-size: 0.72rem;
        letter-spacing: 0.04em;
    }

    .room-navigation {
        gap: 0.55rem;
    }

    .room-navigation .btn {
        min-width: 100%;
        padding: 0.7rem 0.8rem;
    }
}

/* Style for Decline button in Cookie Banner */
.cookie-banner .btn-outline {
    border-color: var(--white-color);
    color: var(--white-color);
}

.cookie-banner .btn-outline:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
}

/* Room Navigation Buttons */
.room-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.room-navigation .btn {
    flex: 1;
    min-width: 150px;
    text-align: center;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
