/* Room Page Styling with fixed sticky panel */
body {
  overflow: auto;
  height: auto;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-color);
  color: var(--text-color);
}

html.has-scroll-smooth {
  overflow: initial !important;
}


html,
body {
  width: 100%;
  scroll-behavior: smooth;
}
.navbar {
  background-color: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(10px);
  opacity: 1 !important;
  box-shadow: 0 2px 10px var(--light-shadow);
  border-bottom: 1px solid var(--line-color);
}

.navbar-logo
 {
  color: var(--text-color) !important;
}

.navbar:hover {
  background-color: rgba(255, 255, 255, 0.95) !important;
}
  .home-icon {
  font-size: 3rem;
  color: black;
  text-decoration: none;
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease, color 0.3s ease;
}

.home-icon:hover {
  transform: translateY(-50%) scale(1.1);
  color: #c8a97e;
}

/* Make logo link back to home too */
.navbar-logo {
  cursor: pointer;
}

/* Remove existing menu-toggle button and navbar-links completely */
.menu-toggle, .navbar-links {
  display: none !important;
}
/* Hero Section */
.room-hero {
  height: 80vh;
  width: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 80px; /* Space for fixed navbar */
}

.room-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
}

.room-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.room-type {
  font-family: "Work Sans", sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.9);
}

.room-title {
  font-family: "Montserrat", sans-serif;
  font-size: 4rem;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.1;
  color: white;
}

.room-price {
  font-family: "Work Sans", sans-serif;
  font-size: 1.2rem;
  opacity: 0.9;
  margin-top: 20px;
  display: inline-block;
  padding: 8px 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  color: white;
}

/* Room Content Container - Matching location-page structure */
.room-content-container {
  display: flex;
  max-width: 100%;
  margin: 0 auto;
  padding: 2rem;
  background-color: var(--bg-color);
  color: var(--text-color);
  min-height: calc(100vh - 80vh - 80px);
  flex: 1;
}

/* Room Details (Left Column) */
.room-details {
  flex: 2; /* Takes up 2/3 of the container */
  padding-right: 3rem;
  max-width: 800px;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.booking-panel {
  flex: 1; /* Takes up 1/3 of the container */
  position: sticky;
  top: 100px;
  height: auto;
  max-height: calc(100vh - 120px); /* Limit maximum height */
  background-color: var(--card-bg);
  border: 1px solid var(--line-color);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 15px 30px var(--light-shadow);
  margin-bottom: 2rem;
  overflow-y: auto; /* Enable vertical scrolling */
  overflow-x: hidden; /* Hide horizontal overflow */
  width: 100%; /* Ensure full width within its container */
  scrollbar-width: thin; /* For Firefox */
  scrollbar-color: var(--accent-color) rgba(0, 0, 0, 0.05); /* For Firefox */
}

.booking-panel::-webkit-scrollbar {
  width: 6px;
}

.booking-panel::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.booking-panel::-webkit-scrollbar-thumb {
  background-color: var(--accent-color);
  opacity: 0.5;
  border-radius: 10px;
}

/* Room content styling */
.room-description h2,
.room-amenities h2,
.room-gallery h2,
.sustainability-features h2,
.room-experiences h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 2.5rem;
  margin-bottom: 25px;
  font-weight: 500;
  color: var(--text-color);
  position: relative;
  display: inline-block;
}

.room-description h2::after,
.room-amenities h2::after,
.room-gallery h2::after,
.sustainability-features h2::after,
.room-experiences h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 2px;
  background-color: var(--accent-color);
}

.room-description p {
  font-family: "Work Sans", sans-serif;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text-color);
  opacity: 0.9;
}

/* Room Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 4/3;
  border: 1px solid var(--line-color);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-family: "Work Sans", sans-serif;
  font-size: 0.9rem;
}

/* Room Amenities */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.amenity-category h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--accent-color);
}

.amenity-category ul {
  list-style: none;
  padding: 0;
}

.amenity-category li {
  font-family: "Work Sans", sans-serif;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-color);
  opacity: 0.9;
}

.amenity-icon {
  font-size: 1.1rem;
  color: var(--accent-color);
  opacity: 0.9;
}

/* Sustainability Features */
.sustainability-features {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 30px;
  border: 1px solid var(--line-color);
}

.sustainability-features p {
  font-family: "Work Sans", sans-serif;
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--text-color);
  opacity: 0.9;
}

.eco-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  list-style: none;
  padding: 0;
}

.eco-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Work Sans", sans-serif;
  color: var(--text-color);
  opacity: 0.9;
}

.eco-icon {
  font-size: 1.2rem;
  color: var(--accent-color);
  opacity: 0.9;
}

/* Price Details */
.price-details {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-color);
}

.price-details h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  font-family: "Work Sans", sans-serif;
}

.price {
  font-family: "Montserrat", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--accent-color);
}

.price-info {
  font-family: "Work Sans", sans-serif;
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.7;
}

/* Room stats */
.room-stats {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-family: "Work Sans", sans-serif;
  font-size: 0.85rem;
  color: var(--text-color);
  opacity: 0.8;
}

.stat-icon {
  font-size: 1.4rem;
  margin-bottom: 5px;
  color: var(--accent-color);
}

/* Booking Form */
.booking-form {
  margin-top: 25px;
  width: 100%;
}

.booking-form h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-align: center;
  color: var(--text-color);
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-family: "Work Sans", sans-serif;
  font-size: 0.9rem;
  margin-bottom: 5px;
  color: var(--text-color);
  opacity: 0.9;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line-color);
  background-color: white;
  border-radius: 4px;
  color: var(--text-color);
  font-family: "Work Sans", sans-serif;
  font-size: 0.95rem;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus, 
.form-group textarea:focus {
  border-color: var(--accent-color);
  outline: none;
}

.form-group textarea {
  height: 80px;
  resize: vertical;
}

.booking-note {
  font-size: 0.8rem;
  color: var(--text-color);
  opacity: 0.6;
  text-align: center;
  margin-top: 10px;
}

.submit-button {
  width: 100%;
  padding: 15px;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 0;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.submit-button:hover {
  background-color: #9a775a;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--light-shadow);
}

/* Footer Fix */
.site-footer {
  margin-top: auto;
  width: 100%;
  background-color: var(--secondary-color);
  padding: 80px 40px 40px;
}

/* Fix mobile layout for booking panel */
@media (max-width: 1024px) {
  .room-content-container {
    flex-direction: column;
    padding: 1.5rem;
  }

  .room-details {
    padding-right: 0;
    max-width: 100%;
  }

  .booking-panel {
    position: relative;
    top: 0;
    width: 100%;
    margin-top: 2rem;
    max-height: none;
    overflow: visible;
  }

  .site-footer {
    display: block;
    position: relative;
    z-index: 1;
    margin-top: 2rem;
    overflow: visible;
  }
}

@media (max-width: 768px) {
  .room-title {
    font-size: 3rem;
  }

  .gallery-grid,
  .eco-features,
  .amenities-grid {
    grid-template-columns: 1fr;
  }

  .room-details {
    gap: 40px;
  }

  .room-content-container {
    padding: 1.5rem;
  }
}

/* Experiences section styling */
.experiences-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.experience-item {
  background-color: var(--card-bg);
  padding: 25px;
  border-radius: 10px;
  border: 1px solid var(--line-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--light-shadow);
}

.experience-icon {
  font-size: 2rem;
  margin-bottom: 15px;
  display: inline-block;
}

.experience-item h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--text-color);
}

.experience-item p {
  font-family: "Work Sans", sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-color);
  opacity: 0.8;
}

/* Fix for the "Explore Other Accommodations" section */
.similar-rooms-section {
  width: 100%;
  padding: 4rem 2rem;
  background-color: var(--bg-color);
  border-top: 1px solid var(--line-color);
}

.similar-container {
  max-width: 1200px;
  margin: 0 auto;
}

.similar-container h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--text-color);
  text-align: center;
  position: relative;
  display: inline-block;
}

.similar-container h2::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 60px;
  height: 2px;
  background-color: var(--accent-color);
}

.similar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.similar-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.similar-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px var(--light-shadow);
}

.similar-image {
  height: 200px;
  overflow: hidden;
}

.similar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.similar-card:hover .similar-image img {
  transform: scale(1.05);
}

.similar-details {
  padding: 1.5rem;
}

.similar-location {
  font-family: "Work Sans", sans-serif;
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.7;
  margin-bottom: 5px;
}

.similar-details h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--text-color);
}

.similar-price {
  font-family: "Work Sans", sans-serif;
  font-size: 1rem;
  color: var(--accent-color);
  margin-bottom: 15px;
}

.similar-button {
  display: inline-block;
  padding: 8px 15px;
  background-color: transparent;
  color: var(--text-color);
  border: 1px solid var(--line-color);
  border-radius: 0;
  text-decoration: none;
  font-family: "Work Sans", sans-serif;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.similar-button:hover {
  background-color: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

/* Make sure media queries address both issues at smaller screen sizes */
@media (max-width: 1024px) {
  .room-content-container {
    flex-direction: column;
    padding: 1.5rem;
  }

  .room-details {
    padding-right: 0;
    max-width: 100%;
  }

  .booking-panel {
    position: relative;
    top: 0;
    width: 100%;
    margin-top: 2rem;
    max-height: none;
    overflow: visible;
    order: -1;
  }

  .similar-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .experiences-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .similar-grid {
    grid-template-columns: 1fr;
  }

  .form-group label,
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 0.9rem;
  }

  .booking-panel {
    padding: 1.5rem;
  }
}

.additional-info {
  margin-top: 20px;
}

.info-item {
  margin-bottom: 15px;
}

.info-item h4 {
  font-family: "Work Sans", sans-serif;
  font-size: 1rem;
  margin-bottom: 5px;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 5px;
}

.info-item p {
  font-family: "Work Sans", sans-serif;
  font-size: 0.85rem;
  color: var(--text-color);
  opacity: 0.7;
  margin-left: 20px;
}

.info-icon {
  color: var(--accent-color);
}

/* Modal Styling */
.booking-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  margin: 10% auto;
  width: 90%;
  max-width: 500px;
  animation: modalFade 0.3s ease-in-out;
}

@keyframes modalFade {
  from {opacity: 0; transform: translateY(-30px);}
  to {opacity: 1; transform: translateY(0);}
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  color: var(--text-color);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

.booking-panel-modal {
  background-color: var(--bg-color);
  border: 1px solid var(--line-color);
  border-radius: 15px;
  padding: 2.5rem;
  box-shadow: 0 15px 30px var(--light-shadow);
  color: var(--text-color);
}

.bottom-cta {
  text-align: center;
  margin: 2rem 0;
}