body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  color: #333;
  line-height: 1.6;
}

body.modal-open,
body.side-panel-open {
  overflow: hidden;
}

section {
  padding: 60px 5%;
  background: #f4f4f4;
  color: #333;
  text-align: center;
  position: relative;
  z-index: 1;
}

section h1, section h2 {
  font-size: 2.5rem;
  margin-bottom: 25px;
  color: #333;
}

section p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 30px;
}

#home {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: url("487219708_1200164395446387_8172201908199159024_n.jpg") no-repeat
    center center/cover;
  padding: 0;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

#home h1 {
  font-size: 3.2rem;
  margin-bottom: 15px;
  color: white;
}

#home p {
  font-size: 1.4rem;
  max-width: 700px;
  margin: 0 auto 25px;
  color: white;
}

.hero-buttons {
  margin-top: 20px;
}

.hero-btn {
  background: #ADD8E6;
  border: none;
  padding: 12px 25px;
  margin: 10px;
  cursor: pointer;
  font-size: 1.1rem;
  border-radius: 5px;
  transition: 0.3s;
  color: #333;
}

.hero-btn:hover {
  background: #87CEEB;
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #666;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  flex-wrap: wrap;
}

.nav-brand {
  font-size: 1.8em;
  font-weight: bold;
  color: white;
  text-decoration: none;
  margin-right: 25px;
  white-space: nowrap;
  flex-shrink: 0;
}

.menu-toggle-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
  flex-shrink: 0;
}

.hamburger-line {
  display: block;
  width: 28px;
  height: 3px;
  background-color: white;
  margin: 6px 0;
  transition: all 0.3s ease;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  justify-content: flex-end;
  flex-grow: 1;
  min-width: 0;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 5px 0;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active-link {
  color: #ADD8E6;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 20px;
  color: white;
  font-weight: bold;
  white-space: nowrap;
  flex-shrink: 0;
}

.user-email-display {
  padding: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.user-menu .hero-btn {
    padding: 8px 15px;
    font-size: 0.95rem;
    margin: 0;
}

.nav-bar.narrow-admin {
    padding: 5px 20px;
}

.nav-bar.narrow-admin .nav-brand,
.nav-bar.narrow-admin .nav-links a,
.nav-bar.narrow-admin .user-menu {
    font-size: 0.95em;
    padding: 3px 0;
}

.nav-bar.narrow-admin .user-menu .hero-btn {
    padding: 5px 10px;
    font-size: 0.8em;
}

/* --- Z-INDEX ADJUSTMENT --- */
.modal {
  display: none;
  position: fixed;
  z-index: 1050; /* Adjusted to be higher than side-panel's 1000/1020 */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 450px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease-in-out;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content h2 {
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.modal-content input,
.modal-content select,
.modal-content textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 1rem;
}

.modal-content textarea {
  resize: vertical;
}

.close-btn {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 28px;
  cursor: pointer;
  color: #555;
}

.close-btn:hover {
  color: #333;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

#booking-modal .modal-content {
  text-align: left;
  max-width: 600px;
}

/* --- Z-INDEX ADJUSTMENT --- */
.image-lightbox-modal {
  display: none;
  position: fixed;
  z-index: 1060; /* Higher than regular modals to ensure it's always on top */
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.image-lightbox-modal .modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  background: none;
  box-shadow: none;
  padding: 0;
  animation-name: zoom;
  animation-duration: 0.3s;
}

@keyframes zoom {
  from {transform: scale(0)}
  to {transform: scale(0.95)}
}

.image-lightbox-modal .close-button {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 1002;
}

.image-lightbox-modal .close-button:hover,
.image-lightbox-modal .close-button:focus {
  color: #bbb;
  text-decoration: none;
}

/* --- Z-INDEX ADJUSTMENT --- */
.side-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 420px;
  max-width: 90%;
  height: 100%;
  background-color: white;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  z-index: 1000; /* Ensured it's lower than the modal's 1050 */
  transition: right 0.4s ease-out;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.side-panel.active {
  right: 0;
}

.side-panel-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.side-panel-content .close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 30px;
  cursor: pointer;
  color: #555;
  z-index: 1001; /* This is fine, as it's within the side-panel */
}

.side-panel h2 {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 20px;
  font-size: 1.8rem;
  color: #333;
}

.room-details-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
}

.side-panel .room-details-image-container {
  width: 100%;
  margin-bottom: 20px;
}

.side-panel #room-details-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center center;
  border-radius: 8px;
}

.side-panel #room-details-view-360-btn {
  margin-top: 12px;
  width: 100%;
}

.side-panel .room-details-info {
  width: 100%;
  font-size: 0.95rem;
}

.side-panel .room-details-info p,
.side-panel .room-details-info ul {
  margin-bottom: 8px;
  line-height: 1.5;
}

.side-panel .room-details-info ul {
  list-style: disc inside;
  padding-left: 20px;
}

.side-panel #room-details-book-btn,
.side-panel #room-details-leave-review-btn {
  width: 100%;
  margin-top: 18px;
  margin-right: 0;
}

body.side-panel-open #rooms-main,
body.side-panel-open #rooms {
  padding-right: 440px;
  transition: padding-right 0.4s ease-out;
}

.page-section {
  display: none;
  min-height: calc(100vh - 60px);
  padding-top: 60px;
}

.page-section.active {
  display: block;
}

#rooms-main {
  background-color: #fcfcfc;
}

#rooms-main h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

#rooms-main p {
  font-size: 1.1em;
  margin-bottom: 40px;
}

.room-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.room-preview-item {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.room-preview-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.room-preview-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center center;
  border-bottom: 1px solid #eee;
  margin-bottom: 15px;
}

.room-preview-item h3 {
  color: #333;
  margin: 0 15px 10px;
  font-size: 1.5rem;
}

.room-preview-item p {
  color: #666;
  padding: 0 15px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.room-slider {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.room-container {
  display: none;
  max-width: 900px;
  margin: auto;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.room-container.visible {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.room-image {
  width: 100%;
}

.room-image img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  object-position: center center;
  border-radius: 10px;
}

.room-actions {
  text-align: center;
}

.room-info {
  width: 100%;
  text-align: left;
}

#about {
  background: #fff;
}

#about h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

#about p {
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.about-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

#about .about-cards .card {
  background: #f9f9f9;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 350px;
  text-align: center;
  transition: transform 0.3s;
  min-height: 380px;
  justify-content: space-between;
}

.about-cards .card:hover {
  transform: translateY(-5px);
}

#about .about-cards .card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center center;
  border-radius: 8px;
  margin-bottom: 15px;
}

#about .card img[src*="maps.PNG"] {
    width: 100%;
    height: 400px;
    object-fit: contain;
    margin-top: 20px;
    border-radius: 8px;
}

#gallery h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  max-width: 1000px;
  margin: auto;
}

.gallery-grid img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  object-position: center center;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#services-facilities {
  background-color: #f9f9f9;
}

#services-facilities h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

#services-facilities p {
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 15px;
}

.service-item {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  cursor: pointer;
}

.service-item:hover {
  transform: translateY(-5px);
}

.service-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center center;
  border-bottom: 1px solid #eee;
}

.service-item h3 {
  margin: 15px 10px 10px;
  color: #333;
  font-size: 1.3em;
}

.service-item p {
  font-size: 0.95em;
  color: #666;
  padding: 0 15px 20px;
  margin-bottom: 0;
}

#services-facilities ul {
  list-style: none;
  padding: 0;
  margin-top: 50px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 900px;
  margin: 50px auto 0 auto;
}

#services-facilities ul li {
  background-color: #e0f2f7;
  padding: 10px 20px;
  border-radius: 25px;
  color: #007bff;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

#terms-and-conditions {
  background-color: #fff;
  text-align: left;
  max-width: 900px;
  margin: 80px auto;
  padding: 40px 30px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#terms-and-conditions h2 {
  font-size: 2.2rem;
  color: #111;
  margin-bottom: 30px;
  text-align: center;
}

#terms-and-conditions h3 {
  font-size: 1.4rem;
  color: #333;
  margin-top: 35px;
  margin-bottom: 15px;
  border-bottom: 2px solid #f4d03f;
  display: inline-block;
  padding-bottom: 5px;
}

#terms-and-conditions p,
#terms-and-conditions ul {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 20px;
}

#terms-and-conditions ul {
  list-style-type: disc;
  list-style-position: outside;
  padding-left: 40px;
}

#terms-and-conditions li {
  margin-bottom: 8px;
}

#management-dashboard {
  background: #fff;
  text-align: center;
  padding-bottom: 60px;
}

#management-dashboard h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: #333;
}

.tab-navigation {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  border-bottom: 2px solid #eee;
  padding-bottom: 5px;
}

.tab-button {
  background-color: transparent;
  border: none;
  padding: 12px 25px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  color: #666;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  border-bottom: 2px solid transparent;
  margin: 0 10px;
}

.tab-button:hover {
  color: #333;
}

.tab-button.active {
  color: #ADD8E6;
  border-bottom: 2px solid #ADD8E6;
}

.tab-content {
  display: none;
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 15px;
  box-sizing: border-box;
}

.tab-content.active {
  display: block;
}

#mybookings-tab h3, #admin-tab h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #333;
  text-align: center;
}

#management-dashboard table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  table-layout: auto;
  word-wrap: break-word;
  margin: 20px auto;
}

#management-dashboard th,
#management-dashboard td {
  padding: 12px 10px;
  border: 1px solid #ddd;
  text-align: left;
  font-size: 0.9rem;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  vertical-align: middle;
}

#management-dashboard th {
  background-color: #f2f2f2;
  font-weight: bold;
  white-space: nowrap;
}

#management-dashboard tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

#management-dashboard tbody tr:hover {
  background-color: #e9e9e9;
}

.booking-filter-controls {
    text-align: left;
    max-width: 1200px;
    margin: 0 auto 20px auto;
    padding: 0 15px;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.booking-filter-controls div {
  display: flex;
  flex-direction: column;
}

.booking-filter-controls label {
    font-weight: bold;
    margin-bottom: 5px;
    white-space: nowrap;
}

.booking-filter-controls input[type="date"],
.booking-filter-controls select {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    min-width: 150px;
    text-align: center;
    box-sizing: border-box;
    font-size: 0.9rem;
}

.admin-card {
  max-width: 1000px;
  margin: 20px auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 20px;
  overflow-x: auto;
}

.spinner-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 15px;
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border-left-color: #ADD8E6;
  animation: spin 1s ease infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.message-box {
  display: none;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 15px 30px;
  background-color: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  z-index: 2000;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: slideIn 0.5s ease-out;
  text-align: center;
}

@keyframes slideIn {
  from { top: -50px; opacity: 0; }
  to { top: 20px; opacity: 1; }
}

#review-modal-title {
  color: #333;
}

.room-reviews-display {
  margin-top: 30px;
  border-top: 1px solid #eee;
  padding-top: 20px;
  text-align: left;
}

.about-reviews-section .review-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 10px;
  text-align: left;
}

.review-item {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.review-meta {
  font-size: 0.85em;
  color: #666;
  margin-bottom: 5px;
}

.review-rating {
  font-size: 1em;
  margin-bottom: 8px;
}

.review-comment {
  font-size: 0.9em;
  line-height: 1.4;
}

.about-reviews-section {
  margin-top: 40px;
  padding: 15px;
}

.room-reviews-display .review-list {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 10px;
  display: block;
  gap: 0;
  max-width: none;
  margin: 0;
}

.booking-accepted {
    color: #28a745;
    font-weight: bold;
}
.booking-rejected {
    color: #dc3545;
    font-weight: bold;
}
.booking-pending {
    color: #ffc107;
    font-weight: bold;
}

button {
  display: inline-block;
  padding: .6rem .75rem;
  font-size: .875rem;
  font-weight: 500;
  color: #333;
  background-color: #ADD8E6;
  border: none;
  border-radius: .375rem;
  cursor: pointer;
  transition: background-color .15s ease-in-out;
  text-align: center
}

button:hover {
  background-color: #87CEEB;
}

.search-button {
  background-color: #ADD8E6;
  color: #333;
  border: 1px solid #000;
  border-radius: 10px;
  width: 80px;
  height: 40px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
}

.terms-conditions-container {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 15px;
  margin-bottom: 20px;
  text-align: left;
  max-width: 100%;
  font-size: 0.95rem;
  color: #555;
}

.terms-conditions-container input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 2px 0 0 0;
}

.terms-conditions-container label {
  flex-grow: 1;
  cursor: pointer;
  margin: 0;
}

.modal, .image-lightbox-modal, .side-panel {
  display: none; /* Keep this as default */
}
.modal.active, .image-lightbox-modal.active, .side-panel.active {
  display: flex; /* JavaScript adds .active class to make them visible */
}

h3 {
  text-align: center;
}

body {
  background-color: #f4f4f4;
}

@media (max-width: 1024px) {
  section h1, section h2 {
    font-size: 2.2rem;
  }
  #home h1 {
    font-size: 2.8rem;
  }
  #home p {
    font-size: 1.2rem;
  }
  .nav-brand {
    font-size: 1.6em;
  }
  .nav-links {
    gap: 12px;
  }
  .user-email-display {
    max-width: 120px;
  }
  .hero-btn {
    padding: 10px 20px;
    font-size: 1rem;
  }
  .room-preview-item img {
    height: 220px;
  }
  .service-item img {
    height: 180px;
  }
  .side-panel {
    width: 380px;
    z-index: 1000; /* Ensured it's lower than the modal's 1050 */
  }
  body.side-panel-open #rooms-main,
  body.side-panel-open #rooms {
    padding-right: 400px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 30px 4%;
  }
  section h1, section h2 {
    font-size: 2rem;
  }
  section p {
    font-size: 1rem;
  }

  .nav-bar {
    padding: 8px 15px;
    justify-content: space-between;
  }
  .nav-brand {
    font-size: 1.6em;
    margin-right: 0;
  }
  .menu-toggle-btn {
    display: block;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #777;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 15px 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    box-sizing: border-box;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links.active.narrow-admin {
      padding: 10px 20px;
  }
  .nav-links.active.narrow-admin a,
  .nav-links.active.narrow-admin .user-menu {
      padding: 8px 0;
  }

  .nav-links a,
  .nav-links .user-menu {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid #444;
    text-align: left;
    white-space: normal;
  }
  .nav-links a:last-of-type,
  .nav-links .user-menu:last-child {
    border-bottom: none;
  }
  .user-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    margin-left: 0;
  }
  .user-email-display {
    max-width: none;
    word-break: break-all;
  }
  .user-menu .hero-btn {
    width: auto;
    margin-top: 8px;
    margin-left: 0;
    font-size: 0.9rem;
    padding: 8px 15px;
  }

  .modal-content {
    max-width: 95%;
    margin: 20px auto;
    padding: 20px;
  }
  #booking-modal .modal-content {
    max-width: 95%;
  }
  .side-panel {
    width: 100%;
    max-width: 100%;
    right: -100%;
    left: 0;
    z-index: 1020; /* Ensured it's lower than the modal's 1050 */
  }
  body.side-panel-open #rooms-main,
  body.side-panel-open #rooms {
    padding-right: 15px;
    transition: none;
  }
  body.side-panel-open section:not(.side-panel):not(.modal):not(.image-lightbox-modal) {
      display: none;
  }

  .hero-btn {
    padding: 10px 20px;
    font-size: 1rem;
  }
  .room-preview-grid {
    gap: 20px;
  }
  .room-preview-item h3 {
    font-size: 1.3rem;
  }
  .about-cards {
    flex-direction: column;
    align-items: center;
  }
  .about-cards .card {
    max-width: 90%;
  }
  #terms-and-conditions {
    padding: 30px 20px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  #services-facilities ul {
    flex-direction: column;
    align-items: center;
  }
  #services-facilities ul li {
    width: 90%;
    text-align: center;
  }

  .tab-navigation {
    flex-direction: column;
    align-items: center;
  }
  .tab-button {
    width: 90%;
    margin: 5px 0;
    border-bottom: 1px solid #eee;
  }
  .tab-button.active {
    border-bottom: 1px solid #ADD8E6;
  }
}

@media (max-width: 480px) {
  #home h1 {
    font-size: 2.2rem;
  }
  #home p {
    font-size: 1.1rem;
  }
  .hero-btn {
    padding: 8px 15px;
    font-size: 0.9rem;
  }
  .room-preview-grid {
    grid-template-columns: 1fr;
  }
  .room-preview-item img {
    height: 180px;
  }
  .side-panel #room-details-book-btn,
  .side-panel #room-details-leave-review-btn,
  .side-panel #room-details-view-360-btn {
    display: block;
    width: 100%;
    margin: 10px 0;
  }
  .modal-content input,
  .modal-content select,
  .modal-content textarea {
    padding: 10px;
    font-size: 0.95rem;
  }
  .modal-content h2 {
    font-size: 1.6rem;
  }
  #management-dashboard th,
  #management-dashboard td {
    font-size: 0.8rem;
    padding: 8px 5px;
  }
  .booking-filter-controls input[type="date"],
  .booking-filter-controls select {
    min-width: 130px;
    font-size: 0.85rem;
  }
}

.search-button {
  background-color: #ADD8E6;
  color: #333;
  border: 1px solid #000;
  border-radius: 10px;
  width: 80px;
  height: 40px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
}

.terms-conditions-container {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 15px;
  margin-bottom: 20px;
  text-align: left;
  max-width: 100%;
  font-size: 0.95rem;
  color: #555;
}

.terms-conditions-container input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 2px 0 0 0;
}

.terms-conditions-container label {
  flex-grow: 1;
  cursor: pointer;
  margin: 0;
}

/* These should correctly toggle based on JavaScript adding/removing the .active class */
.modal, .image-lightbox-modal, .side-panel {
  display: none;
}
.modal.active, .image-lightbox-modal.active, .side-panel.active {
  display: flex;
}

h3 {
  text-align: center;
}

body {
  background-color: #f4f4f4;
}

.password-input-container {
position: relative;
margin-bottom: 15px;
}

.password-input-container input[type="password"],
.password-input-container input[type="text"] {
width: 100%;
padding-right: 40px;
box-sizing: border-box;
}

.password-toggle {
position: absolute;
right: 10px;
top: 50%;
transform: translateY(-50%);
cursor: pointer;
color: #888;
z-index: 10;
}

.password-toggle:hover {
color: #333;
}

#signup-form label {
display: block;
margin-bottom: 5px;
font-weight: bold;
}
.booking-checked-out {
  color: grey; /* O anumang kulay na gusto mo */
  font-weight: bold;
}
