
/* =========================
   BASE SECTION
========================= */

.room-section {
  padding: 60px 20px;
  background: #f7f8fc;
  font-family: Arial, sans-serif;
}

.room-container {
  max-width: 1200px;
  margin: auto;
}

/* =========================
   SIDE BY SIDE LAYOUT FIX
========================= */

.room-flex-wrapper {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 30px;
  align-items: stretch;
}

/* =========================
   ROOM CARD
========================= */

.room-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  height: 100%;
}

/* IMAGE */
.room-image {
  position: relative;
}

.room-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #000;
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
}

/* CONTENT */
.room-content {
  padding: 20px;
}

.room-content h2 {
  margin: 0;
  font-size: 24px;
}

.desc {
  color: #666;
  margin: 5px 0 15px;
}

/* FEATURES */
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.features span {
  background: #f1f3f6;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 13px;
}

/* PRICE */
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* BUTTON */
.btn-book {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 6px;
  background: #1e88e5;
  color: #fff;
  text-decoration: none;
  transition: 0.3s;

  margin-top: 10px;   /* space above */
  margin-right: 8px;   /* space if inline with other buttons */
  display: inline-block;
}

.btn-book:hover {
  background: #1565c0;
}

/* =========================
   CALENDAR CONTAINER FIX
========================= */

.calendar-in-room {
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  position: sticky;
  top: 20px;
  height: fit-content;
  min-width: 0; /* IMPORTANT FIX */
}

/* HEADER */
.calendar-header {
  text-align: center;
  margin-bottom: 10px;
}

.calendar-header h3 {
  margin: 0;
  color: #1e88e5;
}

.calendar-header p {
  margin: 5px 0 0;
  color: #777;
  font-size: 13px;
}

/* =========================
   FULLCALENDAR FIX (CRITICAL)
========================= */

#calendar {
  width: 100% !important;
  max-width: 100% !important;
}

.fc {
  width: 100% !important;
}

.fc-view-harness {
  width: 100% !important;
}

.fc-daygrid-body {
  width: 100% !important;
}

/* BOOKED DATES STYLE */
.fc-bg-event {
  background: repeating-linear-gradient(
    45deg,
    #ff6b6b,
    #ff6b6b 6px,
    #ff8787 6px,
    #ff8787 12px
  ) !important;
  opacity: 0.9 !important;
}

/* HOVER EFFECT */
.fc-daygrid-day:hover {
  background: #e3f2fd;
  cursor: pointer;
}

/* TODAY */
.fc-day-today {
  background: #fff8e1 !important;
}

/* =========================
   LEGEND
========================= */

.calendar-legend {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 15px;
  font-size: 13px;
}

.legend.booked::before {
  content: "■";
  color: #ff6b6b;
  margin-right: 5px;
}

.legend.available::before {
  content: "■";
  color: #90caf9;
  margin-right: 5px;
}

.legend.selected::before {
  content: "■";
  color: #1e88e5;
  margin-right: 5px;
}

/* =========================
   GALLERY (UNCHANGED STYLE)
========================= */

.room-gallery {
  margin-top: 40px;
}

.section-title h3 {
  margin: 0;
  font-size: 22px;
}

.section-title p {
  color: #777;
  margin-bottom: 15px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
}

.gallery-main img,
.gallery-side img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  cursor: pointer;
  transition: 0.3s;
}

.gallery-main img {
  height: 300px;
}

.gallery-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.gallery-side img {
  height: 145px;
}

.gallery-grid img:hover {
  transform: scale(1.02);
}


/* LIGHTBOX BACKGROUND */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  padding: 20px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

/* LIGHTBOX IMAGE */
.lightbox img {
  max-width: 90%;
  max-height: 80vh; /* THIS CONTROLS HEIGHT */
  border-radius: 12px;
  object-fit: contain;
}

/* CLOSE BUTTON */
.lightbox span {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
}

/* =========================
   OVERVIEW
========================= */

.room-overview {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.overview-text {
  background: #fff;
  padding: 20px;
  border-radius: 16px;
}

.overview-card {
  background: #9bd0f0;
  color: #120707a4;
  padding: 20px;
  border-radius: 16px;
}

/* =========================
   RESPONSIVE FIX
========================= */

@media (max-width: 900px) {
  .room-flex-wrapper {
    grid-template-columns: 1fr;
  }

  .calendar-in-room {
    position: relative;
    top: 0;
  }
}


.calendar-legend {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  font-size: 14px;
}
.calendar-legend .legend {
  padding: 4px 8px;
  border-radius: 4px;
  color: #f1eaea;
  font-weight: 600;
}
.calendar-legend .daytour { background-color: #f1c40f; }
.calendar-legend .overnight { background-color: #3498db; }
.calendar-legend .hours22 { background-color: #e61717; }

.decorative-img {
  width: 100%; /* Makes the image responsive to its container */
  max-width: 200px; /* Limits the maximum width */
  height: auto; /* Keeps the aspect ratio intact */
}