/* ===================================
   🎨 BACKGROUND & PAGE LAYOUT
=================================== */
body {
  background: linear-gradient(rgba(246, 246, 246, 0.96), rgba(246, 246, 246, 0.96)), var(--background-image);
  background-position: center, top left;
  background-size: var(--background-image-size);
  background-repeat: repeat;
  background-attachment: fixed;
  background-color: #f6f6f6;
}

.msummary {
  display: none;
}

.room-list {
  margin: 0 0 2rem 0;
  min-height: var(--min-height-body);
}

.button--secondary {
  margin: 0 !important;
}

/* ===================================
   🧱 ROOM CARD LAYOUT
=================================== */
.room-list__card {
  display: grid;
  grid-template-columns: 21.875rem 1fr 15.625rem;
  margin: 1.5rem 0;
  background-color: white;
  border: var(--border-primary);
  border-radius: var(--border-radius-primary);
  box-shadow: var(--box-shadow-primary);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, border 0.3s ease-in-out;
}

.room-list__card:hover {
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--brand-primary-color);
}

.room-list__left,
.room-list__mid,
.room-list__right {
  padding: 0.625rem;
  display: flex;
  flex-direction: column;
  border: var(--border-primary);
}

.room-list__mid {
  padding-left: 1rem;
  justify-content: space-evenly;
}

/* ===================================
   🏷️ ROOM TITLES
=================================== */
.room-title-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  padding-bottom: 4px;
}

.room-title-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary, #333);
}

.room-size {
  font-size: 1.1rem;
  font-weight: 500;
  color: #777;
  letter-spacing: 0.3px;
}

.room-title-wrapper-mobile {
  display: none;
}

/* ===================================
   📖 DESCRIPTION & FEATURES
=================================== */
.room-description {
  font-size: 1rem;
  color: #555;
  max-height: 3rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.read-more {
  color: var(--brand-primary-color);
  cursor: pointer;
  font-weight: bold;
}

.room-features-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
  text-transform: uppercase;
  padding-bottom: 4px;
  margin: 1rem 0;
  border-bottom: 1px solid #ddd;
  letter-spacing: 0.5px;
}

/* ===================================
   🛏️ AMENITIES
=================================== */
.room-list__amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.room-list__highlight-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.room-list__amenity-highlight {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    padding: .375rem .5rem;
    border-radius: var(--border-radius-primary);
    border: 0.0625rem dashed rgba(176, 141, 87, 0.35);
    /* var(--border-secondary) softened */
    background: color-mix(in srgb, var(--brand-primary-accent-color) 70%, transparent);
    font-size: var(--font-size-sm);
    line-height: 1.2;
    font-weight: 600;
}

.room-list__amenity-highlight i {
  opacity: 0.8;
}

.room-list__amenity-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.room-list__amenity-list div {
  color: #555;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f8f9fa;
  padding: 5px 10px;
  border-radius: 6px;
  transition: background 0.3s ease-in-out;
}

.room-list__amenity-list div:hover {
  background: #e9ecef;
}

.amenity-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 6px 14px;
  border-radius: 999px;
  background-color: var(--brand-primary-accent-color);
  color: var(--brand-primary-color);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px dashed var(--brand-primary-color);
  cursor: pointer;
  opacity: .7;
  transition: all 0.2s ease-in-out;
}

.amenity-toggle:hover {
  opacity: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.amenity-toggle:focus-visible {
  background-color: var(--brand-primary-accent-dark-color);
  outline: 2px solid var(--brand-primary-color);
  
}

.amenity-toggle i {
  font-size: 1rem;
}

.amenity-toggle .toggle-label {
  display: inline;
}

.amenity-item.hidden-mobile {
  display: none;
}

/* ===================================
   🖼️ IMAGES
=================================== */
.room-list__main-image img {
  width: 20.625rem;
  height: 12.5rem;
  object-fit: cover;
  cursor: pointer;
  border-radius: var(--border-radius-primary);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.room-list__main-image img:hover {
  transform: scale(1.03);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.room-list__secondary-image {
  display: flex;
  flex-wrap: nowrap; /* Prevent wrapping */
  gap: 0.5rem;
  max-width: 100%;
  overflow-x: auto; /* Enable horizontal scroll */
  overflow-y: hidden;
  padding-bottom: 4px; /* Space for scrollbar if visible */
  scrollbar-width: thin; /* Firefox */
}

/* Custom Scrollbar for Webkit */
.room-list__secondary-image::-webkit-scrollbar {
  height: 4px;
}
.room-list__secondary-image::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 4px;
}

.room-list__secondary-image img,
.image-container img {
  flex: 0 0 auto; /* Prevent shrinking */
  width: 5rem;    /* Fixed width for consistent visual */
  height: 3.5rem; /* Reduced height for list view balance */
  border-radius: var(--border-radius-primary);
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

.room-list__secondary-image img:hover,
.image-container img:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* ===================================
   💵 PRICE & BOOKING
=================================== */
.room-list__right {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Push content apart */
  padding: 1rem 1.25rem; /* Increased horizontal padding */
  position: relative;

}

.rooms-left-badge {
  align-self: flex-end; 
  margin-bottom: 0.5rem; /* Add clear separation from top edge */
}

.room-list__info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

/* Professional Stacked Price Logic - Best UI/UX Refinement */
.price-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center; 
  gap: 0.25rem;
  margin-top: 0;
  margin-bottom: 0.5rem; 
  flex-grow: 1; 
}

.final-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.strike-price {
  font-size: 1.1rem !important;
  font-weight: 700;
  color: #374151; /* Dark Gray - High Visibility */
  text-decoration: line-through;
  text-decoration-thickness: 2.5px;
  text-decoration-color: #dc2626; /* Vivid Red */
  display: block;
  margin-bottom: 0.25rem;
  opacity: 0.9;
}

.from-text {
  font-size: 1rem;
  font-weight: 700;
  color: #64748b; /* Slate 500 */
  text-transform: lowercase;
  margin-bottom: -0.1rem; /* Visual connection to price */
}

.highlight-price {
  color: #2563eb; /* Bright Royal Blue (Tailwind Blue-600) to match screenshot punch */
  /* Fallback to brand if preferred: color: var(--brand-primary-color); */
  font-size: 2.2rem !important; /* Huge Impact */
  font-weight: 900; /* Extra Bold */
  line-height: 1;
  letter-spacing: -1px;
  margin-top: 0.1rem;
}

.tax-info {
  font-size: 0.95rem; 
  color: #111827; /* Near Black */
  font-weight: 600;
  margin-top: 0.25rem;
  letter-spacing: -0.01em;
}

.per-night {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: #eff6ff; /* Light Blue Tint */
  color: #334155; /* Slate 700 */
  padding: 0.4rem 0.85rem;
  border-radius: 6px; /* Pill/Soft Rect */
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
}

.per-night i {
  color: #64748b;
  font-size: 0.9rem;
}

/* Member Badge (Loyalty) */
.member-badge-line {
  margin-top: 0.25rem;
}



.room-list__unavailable .room-list__card {
  opacity: 0.5;
  pointer-events: none;
}

.room-list__unavailable .room-list__buttons .button--teritary {
  background-color: #aaa;
  border-color: #999;
}

/* ===================================
   📦 BUTTONS (Equal Sizing Fix)
=================================== */
.room-list__buttons {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 0; /* Let flex-grow in price-details handle the spacing */
  padding-top: 0; 
}

/* Applies to both buttons (View Details + Book Now) */
.room-list__buttons a,
.room-list__buttons button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  width: 100%;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: var(--border-radius-primary);
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* .room-list__buttons a:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
} */

/* Larger button style (Book Now) */
.button--large {
  font-size: 1.05rem;
  padding: 0.75rem 1.25rem;
}

/* ===================================
   📱 RESPONSIVE
=================================== */
@media (max-width: 1024px) {

  /* .navigation-booking-form__fields { display: none !important; } */
  .msummary {
    display: block !important
  }

  .room-list {
    margin: var(--margin-page-negative-mobile) !important;
  }

  .room-list h3 {
    padding-left: .5rem;
  }



  .room-list__card {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    grid-template-columns: none;
  }

  .room-list__left,
  .room-list__mid,
  .room-list__right {
    padding: 0.5rem 0;
    border: none;
  }

  .room-list__left {
    order: 1;
  }

  .room-list__right {
    order: 2;
    align-items: flex-start;
    padding: 0;
    gap: 0.5rem;
  }

  .room-list__mid {
    order: 3;
  }

  .room-list__main-image img {
    width: 100%;
    height: auto;
    max-height: 200px;
  }

  .room-list__secondary-image {
    gap: 0.5rem;
    margin-top: 0.5rem;
    justify-content: flex-start;
  }

  .room-list__secondary-image img {
    max-width: 4rem;
    height: auto;
  }

  .room-title-wrapper {
    display: none;
  }

  .room-title-wrapper-mobile {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a1a1a;
    padding: 0.5rem 0;
    order: 1;
  }

  .room-description {
    max-height: none;
    overflow: visible;
    text-overflow: unset;
  }

  .room-list__buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    width: 100%;
    padding: 0;
  }

  .room-list__buttons a {
    flex: 1;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    white-space: nowrap;
  }

    .room-list__buttons .button--primary {
      margin: 0 !important;

  }


  .book-now-container {
    width: 100%;
    
  }
    .book-now-container .button {
    width: 100%;
  }


  .tooltip {
    font-size: 0.8rem;
    width: 100%;
    display: block;
    margin-top: 0.25rem;
    color: red;
  }

  .rooms-left-badge {
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    align-self: flex-end; /* Ensure it stays right even in mobile if needed, though usually overridden */
  }

  .price-details {
    width: 100%;
    padding: 0;
  }

  .price-line {
    font-size: 0.95rem;
  }

  .highlight-price {
    font-size: 1.2rem;
  }

  .room-list__amenities {
    flex-direction: column;
    gap: 0.5rem;
  }

  .room-list__amenity-highlight,
  .room-list__amenity-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .room-list__amenity-list div {
    width: auto;
    font-size: 0.9rem;
  }

  .room-list__amenity-list {
    position: relative;
  }
}