/* 
 * Vintage Hotel - Rooms Detail Modern UI/UX Stylesheet 
 * Curated for a luxury five-star boutique hospitality aesthetic.
 */

/* ==========================================================================
   Typography & Color Tokens
   ========================================================================== */
.room-details-page {
  background-color: #fcfbf9 !important;
  color: #3b3732;
  font-family: 'Poppins', 'Roboto', sans-serif;
}

.room-details-page h1,
.room-details-page h2,
.room-details-page h3,
.room-details-page h4,
.room-details-page h5,
.room-details-page .sitename,
.room-details-page .sitename span {
  font-family: 'Playfair Display', Georgia, serif !important;
  color: #1a1917 !important;
  font-weight: 700;
}

.room-details-page .logo h1 {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Main Layout & Margins
   ========================================================================== */
.room-details.section {
  padding: 60px 0 80px 0;
}

/* ==========================================================================
   Boutique Image Gallery UI
   ========================================================================== */
.room-gallery {
  margin-bottom: 30px;
}

.main-image-container {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(145, 122, 90, 0.06);
  border: 1px solid rgba(145, 122, 90, 0.12);
  position: relative;
  background: #faf8f5;
}

.main-room-image {
  width: 100%;
  height: 490px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-image-container:hover .main-room-image {
  transform: scale(1.03);
}

.image-nav-buttons {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.main-image-container:hover .image-nav-buttons {
  opacity: 1;
  pointer-events: auto;
}

.image-nav-btn {
  background: rgba(255, 255, 255, 0.25) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.image-nav-btn i {
  font-size: 1.25rem;
}

.image-nav-btn:hover {
  background: #917a5a !important;
  color: #ffffff !important;
  border-color: #917a5a !important;
  box-shadow: 0 4px 18px rgba(145, 122, 90, 0.4);
  transform: scale(1.05);
}

.thumbnail-gallery {
  margin-top: 18px;
  display: flex;
  gap: 14px;
}

.thumbnail-item {
  flex: 1;
  height: 95px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.65;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.thumbnail-item:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.thumbnail-item:hover img {
  transform: scale(1.08);
}

.thumbnail-item.active {
  border-color: #917a5a;
  opacity: 1;
  box-shadow: 0 6px 18px rgba(145, 122, 90, 0.22);
}

/* ==========================================================================
   Glassmorphism Sidebar Booking Panel (Desktop Sticky Mode)
   ========================================================================== */
.room-details-sidebar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(145, 122, 90, 0.16);
  border-radius: 18px;
  padding: 34px;
  box-shadow: 0 20px 50px rgba(145, 122, 90, 0.07);
  position: sticky;
  top: 110px;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.room-details-sidebar:hover {
  border-color: rgba(145, 122, 90, 0.25);
  box-shadow: 0 25px 60px rgba(145, 122, 90, 0.12);
}

.room-header h2 {
  font-size: 1.95rem;
  margin-bottom: 8px;
  color: #1a1917;
}

.room-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 18px;
}

.room-rating i {
  color: #e5b228;
  font-size: 0.95rem;
}

.room-rating .rating-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #706b64;
  margin-left: 6px;
}

.room-price {
  background: rgba(145, 122, 90, 0.05);
  border-left: 3px solid #917a5a;
  padding: 16px 20px;
  border-radius: 4px 10px 10px 4px;
  margin-bottom: 24px;
}

.price-value {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-value .currency {
  font-size: 0.95rem;
  font-weight: 600;
  color: #706b64;
}

.price-value .amount {
  font-size: 2.1rem;
  font-weight: 700;
  color: #917a5a;
  font-family: 'Playfair Display', Georgia, serif;
}

.price-note {
  font-size: 0.88rem;
  color: #706b64;
  margin-top: 4px;
  margin-bottom: 0;
  font-weight: 500;
}

#avail-info {
  background: rgba(26, 172, 192, 0.06) !important;
  color: #117a8b !important;
  border: 1px solid rgba(26, 172, 192, 0.15);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#avail-count {
  font-size: 1.05rem;
  font-weight: 800;
}

/* ==========================================================================
   Luxury Form Controls
   ========================================================================== */
.booking-form .form-label {
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #706b64;
  margin-bottom: 6px;
  display: block;
}

.booking-form .form-control, 
.booking-form select.form-control {
  border: 1px solid rgba(145, 122, 90, 0.22);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.95rem;
  color: #1a1917;
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.booking-form .form-control:focus {
  border-color: #917a5a;
  box-shadow: 0 0 0 4px rgba(145, 122, 90, 0.12);
  background-color: #ffffff;
}

.booking-form select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23917a5a' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
  padding-right: 40px;
}

#checkAvailBtn {
  background: transparent;
  border: 1.5px solid #917a5a !important;
  color: #917a5a !important;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 8px;
  width: 100%;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#checkAvailBtn:hover {
  background: rgba(145, 122, 90, 0.06);
  transform: translateY(-2px);
}

.btn-book {
  background: linear-gradient(135deg, #a68d6d 0%, #917a5a 100%);
  border: none !important;
  color: #ffffff !important;
  font-weight: 600;
  padding: 14px 20px;
  border-radius: 8px;
  width: 100%;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 0 8px 20px rgba(145, 122, 90, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-book:hover:not([disabled]) {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(145, 122, 90, 0.35);
  filter: brightness(1.05);
}

.btn-book:disabled {
  background: #dcdad6 !important;
  box-shadow: none !important;
  color: #8e8a83 !important;
  cursor: not-allowed;
}

.booking-form .alert-danger {
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 12px 16px;
  border: 1px solid rgba(220, 53, 69, 0.15);
  background: rgba(220, 53, 69, 0.05);
  color: #dc3545;
  margin-bottom: 20px;
}

/* ==========================================================================
   Modern Feature glass cards & stats grid
   ========================================================================== */
.room-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.feature-item {
  background: #ffffff;
  border: 1px solid rgba(145, 122, 90, 0.08);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 5px 15px rgba(145, 122, 90, 0.01);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-item:hover {
  transform: translateY(-4px);
  border-color: rgba(145, 122, 90, 0.28);
  box-shadow: 0 12px 26px rgba(145, 122, 90, 0.08);
}

.feature-item i {
  font-size: 1.6rem;
  color: #917a5a;
  background: rgba(145, 122, 90, 0.06);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.feature-item:hover i {
  background: #917a5a;
  color: #ffffff;
  transform: rotate(5deg);
}

.feature-info h5 {
  font-size: 0.84rem !important;
  font-weight: 600;
  margin-bottom: 3px;
  color: #706b64 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.feature-info p {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0;
  color: #1a1917;
}

.room-stats {
  background: rgba(145, 122, 90, 0.04);
  border: 1px solid rgba(145, 122, 90, 0.1);
  border-radius: 14px;
  padding: 26px;
  height: 100%;
}

.room-stats h4 {
  font-size: 1.25rem !important;
  font-weight: 700;
  margin-bottom: 18px;
  color: #917a5a !important;
  border-bottom: 1.5px solid rgba(145, 122, 90, 0.15);
  padding-bottom: 8px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(145, 122, 90, 0.08);
}

.stat-item:last-child {
  border-bottom: none;
}

.stat-label {
  font-size: 0.95rem;
  color: #706b64;
  font-weight: 500;
}

.stat-value {
  font-size: 0.95rem;
  color: #1a1917;
  font-weight: 600;
}

/* ==========================================================================
   Luxury Tabs Navigation UI
   ========================================================================== */
.room-info-tabs {
  background: #ffffff;
  border: 1px solid rgba(145, 122, 90, 0.1);
  border-radius: 16px;
  padding: 34px;
  box-shadow: 0 10px 30px rgba(145, 122, 90, 0.02);
}

.room-info-tabs .nav-tabs {
  border-bottom: 2px solid rgba(145, 122, 90, 0.08);
  display: flex;
  gap: 15px;
}

.room-info-tabs .nav-link {
  border: none !important;
  font-weight: 600;
  font-size: 1rem;
  color: #706b64 !important;
  padding: 14px 24px !important;
  background: transparent !important;
  position: relative;
  transition: all 0.3s ease;
}

.room-info-tabs .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #917a5a;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.room-info-tabs .nav-link.active {
  color: #917a5a !important;
}

.room-info-tabs .nav-link.active::after {
  transform: scaleX(1);
}

.room-info-tabs .nav-link:hover {
  color: #917a5a !important;
}

/* ==========================================================================
   Amenities & Policies Sections
   ========================================================================== */
.tab-content h3, .tab-content h4 {
  font-size: 1.35rem !important;
  font-weight: 700;
  margin-top: 10px;
  margin-bottom: 16px;
  color: #1a1917 !important;
}

.room-description {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #55504a;
}

.amenities-list, .policy-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.amenities-list li {
  font-size: 0.98rem;
  color: #3b3732;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.amenities-list li i {
  color: #917a5a;
  font-size: 1.05rem;
}

.policy-list li {
  font-size: 0.96rem;
  color: #3b3732;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(145, 122, 90, 0.08);
}

.policy-group h4 {
  font-size: 1.15rem !important;
  font-weight: 700;
  margin-top: 22px;
  margin-bottom: 14px;
  color: #917a5a !important;
  border-bottom: 1.5px solid rgba(145, 122, 90, 0.12);
  padding-bottom: 6px;
}

/* ==========================================================================
   Elegant Reviews Layout UI
   ========================================================================== */
.review-summary {
  background: rgba(145, 122, 90, 0.03);
  border: 1px solid rgba(145, 122, 90, 0.1);
  border-radius: 12px;
  padding: 26px;
  text-align: center;
  margin-bottom: 24px;
}

.overall-rating .rating-number {
  font-size: 3.2rem;
  font-weight: 800;
  color: #917a5a;
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1;
}

.rating-stars {
  color: #e5b228;
  margin: 10px 0;
  display: flex;
  justify-content: center;
  gap: 3px;
}

.review-count {
  font-size: 0.88rem;
  color: #706b64;
  margin-bottom: 22px;
  font-weight: 500;
}

.rating-breakdown .rating-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.rating-breakdown .rating-label {
  width: 90px;
  text-align: left;
  font-size: 0.85rem;
  color: #706b64;
  font-weight: 600;
}

.rating-breakdown .rating-bar {
  flex: 1;
  height: 6px;
  background: rgba(145, 122, 90, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.rating-breakdown .rating-fill {
  height: 100%;
  background: #917a5a;
  border-radius: 3px;
}

.rating-breakdown .rating-value {
  width: 25px;
  font-size: 0.85rem;
  color: #1a1917;
  font-weight: 600;
  text-align: right;
}

.review-item {
  background: #ffffff;
  border: 1px solid rgba(145, 122, 90, 0.08);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.005);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.review-item:hover {
  border-color: rgba(145, 122, 90, 0.2);
  box-shadow: 0 8px 24px rgba(145, 122, 90, 0.05);
  transform: translateY(-2px);
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.reviewer-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(145, 122, 90, 0.22);
}

.reviewer-details h5 {
  font-size: 0.98rem !important;
  font-weight: 700;
  margin: 0 0 3px 0;
  color: #1a1917 !important;
}

.reviewer-details .review-stars {
  justify-content: flex-start;
  margin: 0 0 3px 0;
  font-size: 0.78rem;
}

.review-date {
  font-size: 0.8rem;
  color: #a09990;
  display: block;
}

.review-text {
  font-size: 0.98rem;
  color: #55504a;
  line-height: 1.6;
  font-style: italic;
  margin-top: 12px;
  margin-bottom: 0;
  border-left: 2px solid rgba(145, 122, 90, 0.2);
  padding-left: 14px;
}

/* Scroll Offset padding for fixed headers */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

/* Media Query Adjustments */
@media (max-width: 991px) {
  .room-details-sidebar {
    position: static;
    margin-top: 40px;
  }
  .main-room-image {
    height: 340px;
  }
  .room-gallery {
    margin-bottom: 20px;
  }
}

@media (max-width: 575px) {
  .main-room-image {
    height: 250px;
  }
  .thumbnail-item {
    height: 60px;
  }
  .room-info-tabs {
    padding: 20px;
  }
  .room-info-tabs .nav-link {
    padding: 10px 14px !important;
    font-size: 0.9rem;
  }
}
