@charset "utf-8";
/* CSS Document — Rooms page */

/*********************************
1. Rooms list
*********************************/

.rooms-section {
  padding: 80px 0;
  background: #ffffff;
}

.rooms-section-title {
  text-align: center;
  margin-bottom: 60px;
}

.rooms-section-title h2 {
  font-size: 42px;
  font-weight: 700;
  color: #1a1a2e;
  position: relative;
  display: inline-block;
  padding-bottom: 18px;
}

.rooms-section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, #ffa37b, #f5926b);
  border-radius: 2px;
}

.rooms-section-title p {
  font-size: 16px;
  color: #777;
  margin-top: 16px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Room card */
.room-card {
  display: flex;
  gap: 40px;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 50px;
  box-shadow: 0 5px 30px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f5;
  transition: all 0.4s ease;
  position: relative;
}

.room-card:hover {
  box-shadow: 0 15px 50px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

.room-card:last-child {
  margin-bottom: 0;
}

/* Photo part */
.room-photo-col {
  flex: 0 0 480px;
  max-width: 480px;
  position: relative;
  overflow: hidden;
}

.room-main-photo {
  position: relative;
  width: 100%;
  height: 380px;
  max-height: 380px;
  min-height: 380px;
  overflow: hidden;
}

.room-main-photo img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.room-card:hover .room-main-photo img {
  transform: scale(1.05);
}

@media (max-width: 992px) {
  .room-main-photo {
    height: 320px;
    max-height: 320px;
    min-height: 320px;
  }
  .room-main-photo img {
    height: 320px;
  }
}

@media (max-width: 576px) {
  .room-main-photo {
    height: 260px;
    max-height: 260px;
    min-height: 260px;
  }
  .room-main-photo img {
    height: 260px;
  }
}

/* Thumbnail strip */
.room-thumbs {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  z-index: 5;
  overflow-x: auto;
  padding: 4px 0;
}

.room-thumbs::-webkit-scrollbar {
  height: 4px;
}

.room-thumbs::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
}

.room-thumb {
  flex: 0 0 60px;
  width: 60px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  opacity: 0.6;
  background: #fff;
}

.room-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.room-thumb:hover {
  opacity: 0.9;
  border-color: rgba(255,163,123,0.5);
}

.room-thumb.active {
  opacity: 1;
  border-color: #ffa37b;
  box-shadow: 0 0 0 3px rgba(255,163,123,0.25);
}

/* Room nav arrows on photo */
.room-photo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  border: none;
  font-size: 16px;
  color: #1a1a2e;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.room-photo-nav:hover {
  background: #ffa37b;
  color: #fff;
  box-shadow: 0 4px 15px rgba(255,163,123,0.4);
}

.room-photo-nav.prev {
  left: 12px;
}

.room-photo-nav.next {
  right: 12px;
}

/* Info part */
.room-info-col {
  flex: 1;
  padding: 35px 40px 35px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.room-name {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 6px;
  line-height: 1.3;
}

.room-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.room-name a:hover {
  color: #ffa37b;
}

/* Meta row */
.room-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 16px 0;
}

.room-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #666;
  background: #f8f9fc;
  padding: 8px 16px;
  border-radius: 10px;
}

.room-meta-item i {
  color: #ffa37b;
  font-size: 16px;
}

.room-meta-item strong {
  color: #1a1a2e;
  font-weight: 600;
}

/* Beds info */
.room-beds {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.room-bed {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff6f0;
  color: #c76a3a;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid #ffe0d0;
}

.room-bed i {
  font-size: 12px;
}

/* Room services chips */
.room-service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.room-service-chip {
  font-size: 12px;
  color: #555;
  background: #f5f5fa;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid #ececf2;
  transition: all 0.3s ease;
}

.room-service-chip:hover {
  background: #ffa37b;
  color: #fff;
  border-color: #ffa37b;
}

/* Room description */
.room-description {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
  margin: 12px 0 16px;
}

/* Room actions */
.room-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid #f0f0f5;
}

.room-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.room-btn-primary {
  background: linear-gradient(135deg, #ffa37b, #f5926b);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255,163,123,0.3);
}

.room-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255,163,123,0.4);
  color: #fff;
}

.room-btn-outline {
  background: #fff;
  color: #1a1a2e;
  border: 2px solid #e0e3eb;
}

.room-btn-outline:hover {
  border-color: #ffa37b;
  color: #ffa37b;
  transform: translateY(-2px);
}

/* ====================================================
   Room Modal — Premium Hotel style
   ==================================================== */

.room-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 30px;
}
.room-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.room-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 1300px;
  width: 100%;
  max-height: 92vh;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  position: relative;
  animation: roomModalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes roomModalSlideUp {
  from { transform: translateY(40px) scale(0.97); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* Header */
.room-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), transparent);
  border-radius: 16px 16px 0 0;
}
.room-modal-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.room-modal-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.room-modal-close:hover {
  background: #ff4d4d;
  color: #fff;
  transform: rotate(90deg);
}

/* Body — horizontal split */
.room-modal-body {
  display: flex;
  flex: 1;
  min-height: 480px;
  overflow: hidden;
}

/* Left — Photo gallery (60%) */
.room-modal-photos {
  flex: 0 0 60%;
  max-width: 60%;
  position: relative;
  overflow: hidden;
  background: #1a1a2e;
}
.room-modal-photos .modal-main-photo {
  width: 100%;
  height: 100%;
  position: relative;
}
.room-modal-photos .modal-main-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.5s ease;
}
.room-modal-photos .modal-main-photo .photo-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 16px;
  border-radius: 20px;
  letter-spacing: 1px;
}
.room-modal-photo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,255,0.3);
  font-size: 18px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
}
.room-modal-photos:hover .room-modal-photo-nav {
  opacity: 1;
}
.room-modal-photo-nav:hover {
  background: rgba(255,255,255,0.5);
  color: #1a1a2e;
}
.room-modal-photo-nav.prev {
  left: 16px;
}
.room-modal-photo-nav.next {
  right: 16px;
}

/* Thumbnails strip at bottom of photo area */
.room-modal-thumbs {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 6;
  padding: 4px 10px;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(6px);
  border-radius: 30px;
}
.room-modal-thumbs .mthumb {
  width: 44px;
  height: 32px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  opacity: 0.5;
  flex-shrink: 0;
}
.room-modal-thumbs .mthumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.room-modal-thumbs .mthumb:hover {
  opacity: 0.8;
  border-color: rgba(255,255,255,0.5);
}
.room-modal-thumbs .mthumb.active {
  opacity: 1;
  border-color: #ffa37b;
  box-shadow: 0 0 0 2px rgba(255,163,123,0.4);
}

/* Right — Info panel (40%) */
.room-modal-info {
  flex: 1;
  padding: 32px 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  background: #fafbfd;
}

.room-modal-info .room-modal-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 2px;
  line-height: 1.2;
}

.room-modal-info .room-modal-tagline {
  font-size: 14px;
  color: #999;
  margin-bottom: 6px;
}

/* Meta chips row */
.room-modal-info .room-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.room-modal-info .room-modal-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #555;
  background: #fff;
  padding: 7px 16px;
  border-radius: 10px;
  border: 1px solid #eee;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.room-modal-info .room-modal-meta .meta-item i {
  color: #ffa37b;
  font-size: 14px;
}
.room-modal-info .room-modal-meta .meta-item strong {
  color: #1a1a2e;
  font-size: 15px;
}

/* Section divider */
.room-modal-info .modal-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #bbb;
  margin: 6px 0 2px;
}

/* Beds row */
.room-modal-info .room-modal-beds {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.room-modal-info .room-modal-beds .bed-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff6f0;
  color: #c76a3a;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid #ffe0d0;
}

/* Services */
.room-modal-info .room-modal-services {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.room-modal-info .room-modal-services .sv-chip {
  font-size: 12px;
  color: #555;
  background: #fff;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid #e6e6ef;
  transition: all 0.2s;
}
.room-modal-info .room-modal-services .sv-chip:hover {
  background: #ffa37b;
  color: #fff;
  border-color: #ffa37b;
}

/* Description */
.room-modal-info .room-modal-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.75;
  padding: 12px 16px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #f0f0f5;
  max-height: 120px;
  overflow-y: auto;
}

/* Price / action area */
.room-modal-info .room-modal-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid #e8e8f0;
  gap: 12px;
}
.room-modal-info .room-modal-footer .modal-price {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
}
.room-modal-info .room-modal-footer .modal-price small {
  font-size: 13px;
  font-weight: 400;
  color: #999;
}
.room-modal-info .room-modal-footer .room-btn-primary {
  padding: 12px 32px;
  font-size: 15px;
  border-radius: 12px;
}

/* Lightbox */
.room-modal-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  cursor: zoom-out;
}
.room-modal-lightbox.active {
  opacity: 1;
  visibility: visible;
}
.room-modal-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* Responsive */
@media (max-width: 992px) {
  .room-modal-body {
    flex-direction: column;
    min-height: auto;
  }
  .room-modal-photos {
    flex: none;
    max-width: 100%;
    height: 320px;
  }
  .room-modal-info {
    padding: 24px;
  }
  .room-modal-info .room-modal-title {
    font-size: 22px;
  }
}
@media (max-width: 576px) {
  .room-modal-overlay {
    padding: 10px;
  }
  .room-modal-header h2 {
    font-size: 18px;
  }
  .room-modal-photos {
    height: 220px;
  }
  .room-modal-thumbs .mthumb {
    width: 34px;
    height: 26px;
  }
  .room-modal-info .room-modal-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .room-modal-info .room-modal-footer .room-btn-primary {
    text-align: center;
  }
}

/* Room number badge */
.room-number-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 7;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a2e;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.room-number-badge span {
  color: #ffa37b;
}

/* Overbooking badge */
.room-overbooking-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 7;
  background: rgba(255,80,80,0.9);
  backdrop-filter: blur(4px);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Divider between rooms */
.room-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, #e0e3eb, transparent);
  margin: 30px 0;
}

/* Responsive */
@media (max-width: 992px) {
  .room-card {
    flex-direction: column;
    gap: 0;
  }

  .room-photo-col {
    flex: none;
    max-width: 100%;
  }

  .room-main-photo {
    height: 320px;
    max-height: 320px;
    min-height: 320px;
  }

  .room-main-photo img {
    height: 320px;
  }

  .room-info-col {
    padding: 24px 24px 30px;
  }

  .room-name {
    font-size: 24px;
  }
}

@media (max-width: 576px) {
  .rooms-section {
    padding: 50px 0;
  }

  .rooms-section-title h2 {
    font-size: 32px;
  }

  .room-main-photo {
    height: 260px;
    max-height: 260px;
    min-height: 260px;
  }

  .room-main-photo img {
    height: 260px;
  }

  .room-thumb {
    flex: 0 0 48px;
    width: 48px;
    height: 40px;
  }

  .room-meta {
    gap: 10px;
  }

  .room-meta-item {
    font-size: 12px;
    padding: 6px 12px;
  }

  .room-actions {
    flex-direction: column;
  }

  .room-btn {
    justify-content: center;
  }
}
