/**
 * Elysian Retreat - Room Detail Page Styles
 */

/* ===== Room Gallery ===== */
.room-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
  height: 500px;
  transform-origin: top center;
  will-change: transform;
}

.gallery-main {
  grid-row: span 2;
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Base gallery styles */
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
  transform-origin: top left;
}

.gallery-thumbs .thumb {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  cursor: pointer;
  height: 120px; /* Fixed height instead of aspect ratio */
}

.gallery-thumbs .thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Remove the problematic media queries and replace with these */
@media screen and (max-width: 1200px) {
  .gallery-thumbs .thumb {
    height: 100px;
  }
}

@media screen and (max-width: 992px) {
  .gallery-thumbs .thumb {
    height: 90px;
  }
}

@media screen and (max-width: 768px) {
  .gallery-thumbs {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .gallery-thumbs .thumb {
    height: 70px;
  }
}

@media screen and (max-width: 576px) {
  .gallery-thumbs {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .gallery-thumbs .thumb {
    height: 60px;
  }
}

.thumb::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.1);
  transition: background-color var(--transition-fast);
}

.thumb:hover::after {
  background-color: rgba(0, 0, 0, 0);
}

.thumb.active::after {
  background-color: rgba(0, 0, 0, 0);
  border: 2px solid var(--color-primary);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-expand {
  position: absolute;
  bottom: var(--spacing-md);
  right: var(--spacing-md);
  background-color: rgba(0, 0, 0, 0.5);
  color: var(--color-white);
  border: none;
  border-radius: var(--border-radius-sm);
  padding: var(--spacing-xs) var(--spacing-sm);
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background-color var(--transition-fast);
  z-index: 1;
}

.gallery-expand:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.gallery-expand svg {
  margin-right: var(--spacing-xs);
}

/* ===== Gallery Lightbox ===== */
/* Critical lightbox styles */
.gallery-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  display: none; /* Start hidden */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999; /* Make sure this is higher than anything else */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* When active, show the lightbox */
.gallery-lightbox.active {
  opacity: 1;
  visibility: visible;
  display: flex !important; /* Force display */
}

.lightbox-content {
  position: relative;
  width: 90%;
  height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-image {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: 10px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.lightbox-control {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  transition: transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.lightbox-control:hover {
  transform: scale(1.2);
}

.lightbox-counter {
  color: white;
  font-size: 16px;
  min-width: 80px;
  text-align: center;
}

/* Mobile optimizations for lightbox */
@media (max-width: 768px) {
  .lightbox-content {
    width: 95%;
    height: 60vh;
  }
  
  .lightbox-close {
    top: -40px;
  }
}

/* ===== Room Details ===== */
.room-details {
  padding: 4rem 0;
}

/* Structure of the room details grid */
.room-details-grid {
  display: grid;
  grid-template-columns: 62% 38%;
  gap: 2rem;
}

/* Room info column (left side) */
.room-info {
  display: flex;
  flex-direction: column;
  padding-right: 0;
}

/* Booking sidebar column (right side) */
.booking-sidebar {
  position: sticky;
  top: 2rem;
  height: fit-content;
}

/* Make sure room-policies stays within the room-info column */
.room-policies {
  width: 100%;
  margin: 2.5rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  order: 3; /* Ensure it appears after other room info content */
}

/* Fix the spacing in the room-info column */
.room-header {
  margin-bottom: 2rem;
  width: 100%;
}

.room-title {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-xs);
}

.room-subtitle {
  color: var(--color-text-light);
  font-size: 1.125rem;
  margin-bottom: var(--spacing-md);
}

.room-rating {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.stars {
  display: flex;
  margin-right: var(--spacing-sm);
}

.star {
  color: var(--color-warning);
  margin-right: 2px;
}

.review-count {
  color: var(--color-text-light);
  font-size: 0.875rem;
}

.room-price-display {
  display: flex;
  align-items: baseline;
  margin-bottom: var(--spacing-md);
}

.room-price {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-right: var(--spacing-xs);
}

.price-period {
  color: var(--color-text-light);
}

.room-description {
  width: 100%;
  margin-bottom: 2.5rem;
}

.room-features-list {
  width: 100%;
  margin: 0 0 2.5rem 0;
}

.room-features-list h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 1.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.features-grid li {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
}

.features-grid svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.features-grid span {
  color: var(--color-text);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .room-features-list h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
}

@media screen and (min-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Responsive adjustments */
@media screen and (max-width: 992px) {
  .room-details-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .room-info {
    padding-right: 0;
  }
  
  .booking-sidebar {
    position: static;
  }
  
  /* Preserve the order on mobile */
  .room-policies {
    order: 3;
  }
}

@media screen and (max-width: 576px) {
  .room-details {
    padding: 3rem 0;
  }
}

/* Room Policies styling */
.room-policies h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 1.5rem;
}

.policies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.policy {
  background-color: var(--color-bg-light);
  padding: 1.5rem;
  border-radius: var(--border-radius-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.policy:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.policy h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.policy p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text);
  margin: 0;
}

/* Responsive adjustments */
@media screen and (max-width: 992px) {
  .policies-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media screen and (max-width: 576px) {
  .policies-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .policy {
    padding: 1.25rem;
  }
  
  .room-policies h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
}

.room-policies {
  margin-bottom: var(--spacing-lg);
}

.policy-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.policy-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--spacing-sm);
}

.policy-item svg {
  margin-right: var(--spacing-sm);
  margin-top: 4px;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* ===== Booking Form ===== */
.booking-form {
  background-color: var(--color-white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--spacing-lg);
  position: sticky;
  top: 100px;
}

.booking-form-title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
  text-align: center;
}

.booking-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.booking-summary {
  background-color: var(--color-off-white);
  border-radius: var(--border-radius-sm);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--spacing-xs);
}

.summary-item:last-child {
  margin-bottom: 0;
  padding-top: var(--spacing-xs);
  border-top: 1px solid var(--color-gray);
  font-weight: 600;
}

.booking-form .btn {
  width: 100%;
}

/* ===== Availability Calendar ===== */
.availability-calendar {
  padding: 4rem 0;
  background-color: var(--color-bg-light);
}

.availability-calendar .section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.availability-calendar .section-subtitle {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.availability-calendar .section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin: 0;
}

.calendar-container {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  padding: 2rem;
}

.calendar-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.current-month {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin: 0;
}

.calendar-nav {
  background-color: transparent;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.calendar-nav:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 0.5rem;
}

.weekday {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-dark);
  padding: 0.75rem 0;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-gap: 4px;
}

.day {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.day.available {
  background-color: rgba(200, 169, 126, 0.1);
  color: var(--color-text);
}

.day.booked {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  cursor: not-allowed;
}

.day.selected {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.day.other-month {
  opacity: 0.3;
  cursor: default;
}

.day:not(.other-month):not(.booked):hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.calendar-legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

.legend-item {
  display: flex;
  align-items: center;
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  margin-right: 8px;
}

.legend-color.available {
  background-color: rgba(200, 169, 126, 0.1);
  border: 1px solid var(--color-primary);
}

.legend-color.booked {
  background-color: rgba(220, 53, 69, 0.1);
  border: 1px solid #dc3545;
}

.legend-color.selected {
  background-color: var(--color-primary);
}

.legend-label {
  font-size: 0.9rem;
  color: var(--color-text);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .calendar-container {
    padding: 1.5rem;
  }
  
  .day {
    height: 35px;
    font-size: 0.85rem;
  }
  
  .calendar-legend {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
  }
}

@media screen and (max-width: 576px) {
  .availability-calendar {
    padding: 3rem 0;
  }
  
  .availability-calendar .section-title {
    font-size: 1.8rem;
  }
  
  .current-month {
    font-size: 1.1rem;
  }
  
  .calendar-nav {
    width: 36px;
    height: 36px;
  }
  
  .calendar-weekdays .weekday {
    font-size: 0.75rem;
    padding: 0.5rem 0;
  }
  
  .day {
    height: 30px;
    font-size: 0.75rem;
  }
}

/* ===== Availability Calendar ===== */
.availability-calendar {
  margin-top: var(--spacing-lg);
}

.calendar-title {
  font-size: 1rem;
  margin-bottom: var(--spacing-sm);
  text-align: center;
}

/* ===== Room Amenities ===== */
.room-amenities {
  margin-bottom: var(--spacing-xxl);
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

.amenity-category {
  background-color: var(--color-white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-lg);
}

.amenity-category-title {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-md);
  color: var(--color-secondary);
}

.amenity-category-title svg {
  margin-right: var(--spacing-sm);
  color: var(--color-primary);
}

.amenity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.amenity-item {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-xs);
}

.amenity-item svg {
  margin-right: var(--spacing-sm);
  color: var(--color-success);
  flex-shrink: 0;
}

/* ===== Room Reviews ===== */
.room-reviews {
  margin-bottom: var(--spacing-xxl);
}

/* Update the reviews-list and review-card styling */

/* Review cards styling */
.reviews-list {
  position: relative;
  height: 250px; /* Fixed height to prevent layout shifts */
  width: 100%;
  max-width: 600px; /* Narrower width for better readability */
  margin: 0 auto 2rem auto;
  overflow: hidden; /* Hide cards that aren't active */
}

.review-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  background-color: var(--color-bg-light);
  border-radius: var(--border-radius-md);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.6s ease, box-shadow 0.3s ease, opacity 0.6s ease;
  opacity: 0;
  transform: translateX(100%);
  pointer-events: none; /* Prevent interaction with hidden cards */
}

.review-card.active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
  z-index: 2;
  pointer-events: auto; /* Allow interaction with active card */
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Also center the pagination buttons */
.reviews-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

/* Update the reviewer styling to properly display all elements */
.reviewer {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.reviewer-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.reviewer-info {
  display: flex;
  flex-direction: column;
}

.reviewer-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin: 0 0 0.25rem 0;
}

.review-date {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin: 0;
}

/* Guest Reviews styling */
.guest-reviews {
  padding: 5rem 0;
  background-color: var(--color-white);
}

.reviews-summary {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background-color: var(--color-bg-light);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

/* Rating overview (left side) */
.rating-overview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  border-right: 1px solid var(--color-border);
}

.rating-score {
  font-family: var(--font-heading);
  margin-bottom: 0.75rem;
}

.score {
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1;
}

.max {
  font-size: 1.5rem;
  color: var(--color-text-light);
}

.rating-stars {
  margin-bottom: 0.75rem;
}

.star {
  color: var(--color-primary);
  font-size: 1.5rem;
  letter-spacing: 2px;
}

.rating-count {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin: 0;
}

/* Rating breakdown (right side) */
.rating-breakdown {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rating-category {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.category-name {
  width: 100px;
  font-size: 0.95rem;
  color: var(--color-text);
}

.rating-bar {
  flex: 1;
  height: 8px;
  background-color: rgba(200, 169, 126, 0.2);
  border-radius: 4px;
  overflow: hidden;
}

.rating-fill {
  height: 100%;
  background-color: var(--color-primary);
  border-radius: 4px;
}

.category-score {
  width: 35px;
  text-align: right;
  font-weight: 600;
  color: var(--color-text-dark);
}

/* Reviews pagination */
.reviews-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.pagination-btn.active {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.pagination-btn:hover:not(.active) {
  background-color: var(--color-bg-light);
}

/* Responsive adjustments */
@media screen and (max-width: 992px) {
  .reviews-summary {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem;
  }
  
  .rating-overview {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 2rem;
  }
  
  .reviews-list {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
  }
}

@media screen and (max-width: 576px) {
  .guest-reviews {
    padding: 3rem 0;
  }
  
  .rating-overview {
    padding: 1rem;
  }
  
  .score {
    font-size: 3rem;
  }
  
  .rating-category {
    gap: 0.5rem;
  }
  
  .category-name {
    width: 80px;
    font-size: 0.85rem;
  }
  
  .reviews-list {
    grid-template-columns: 1fr;
  }
}

/* ===== Media Queries ===== */
@media (max-width: 1200px) {
  .room-gallery {
    height: 400px;
  }
  
  .amenities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .rooms-slider .room-card {
    flex: 0 0 calc(50% - var(--spacing-md));
  }
}

@media (max-width: 1200px) and (min-resolution: 120dpi) {
  .gallery-thumbs {
    gap: calc(var(--spacing-md) * 0.8);
  }
}

@media (max-width: 992px) {
  .room-details {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
  
  .room-info {
    padding-right: 0;
  }
  
  .booking-form {
    position: static;
  }
  
  .room-features-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .room-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
    gap: var(--spacing-sm);
  }
  
  .gallery-main {
    grid-row: auto;
    height: 250px;
  }
  
  .room-features-list {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .amenities-grid {
    grid-template-columns: 1fr;
  }
  
  .reviews-summary {
    flex-direction: column;
    gap: var(--spacing-lg);
  }
  
  .rating-breakdown {
    width: 100%;
  }
  
  .rooms-slider .room-card {
    flex: 0 0 calc(100% - var(--spacing-md));
  }
}

@media (max-width: 576px) {
  .room-title {
    font-size: 2rem;
  }
  
  .room-price-display {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .booking-dates {
    grid-template-columns: 1fr;
  }
  
  .room-features-list {
    grid-template-columns: 1fr;
  }
  
  .room-details .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  /* Adjust any overflowing elements */
  .room-gallery,
  .booking-form-container,
  .reviews-list,
  .similar-rooms {
    max-width: 100%;
    overflow-x: hidden;
  }
  
  /* Ensure all images stay within their containers */
  img {
    max-width: 100%;
    height: auto;
  }
}

/* Add this at the bottom to ensure it overrides other styles */
html {
  scroll-behavior: smooth; /* For modern browsers */
}

/* Mobile centering fixes */
html, body {
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}

/* Add these styles to the room-image class */
.room-image {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  height: 300px; /* Fixed height for consistency */
}

.room-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.room-card:hover .room-image img {
  transform: scale(1.05);
}

/* Fix image quality appearance */
.room-image img {
  image-rendering: -webkit-optimize-contrast; /* For Chrome */
  image-rendering: crisp-edges; /* For Firefox */
  backface-visibility: hidden; /* Reduces some blurriness on transformation */
}

/* Update the room details grid layout for better balance */

/* Room details grid layout */
.room-details-grid {
  display: grid;
  grid-template-columns: 62% 38%; /* Adjust from likely 70/30 to 62/38 for better balance */
  gap: 2rem;
}

/* Make the booking sidebar take up appropriate space */
.booking-sidebar {
  position: sticky;
  top: 2rem;
  height: fit-content;
}

/* Adjust the Need Help section to fit better */
.need-help {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: var(--color-bg-light);
  border-radius: var(--border-radius-md);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.need-help h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-top: 0;
  margin-bottom: 1rem;
}

.need-help p {
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  color: var(--color-text);
}

.help-phone, .help-email {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  color: var(--color-text);
  text-decoration: none;
  margin-bottom: 0.75rem;
  transition: color 0.2s ease;
}

.help-phone:hover, .help-email:hover {
  color: var(--color-primary);
}

.help-phone svg, .help-email svg {
  margin-right: 0.75rem;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* Responsive adjustments */
@media screen and (max-width: 992px) {
  .room-details-grid {
    grid-template-columns: 1fr; /* Stack on smaller screens */
    gap: 3rem;
  }
  
  .booking-sidebar {
    position: static;
    max-width: 600px;
    margin: 0 auto;
  }
}

/* Further reduce padding for small screens */
@media screen and (max-width: 576px) {
  .need-help {
    padding: 1.25rem;
  }
  
  .room-details .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}