body {
  background-color: #d4d4d4;
}

.rooms-intro {
  background-color: #ffff;
}

.rooms-hero {
  background-color: #1a365d; /* Fallback color */
  background: 
  linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
  url('../images/rooms_page.jpg') no-repeat center;
  background-size: cover;
  background-position: center;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  margin-bottom: 5rem;
}

.rooms-hero h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.rooms-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
  margin: 0 auto;
}

.room:nth-child(odd) {
  align-self: flex-start;
  margin-right: auto;
  width: 60%;
}

.room:nth-child(even) {
  align-self: flex-end;
  margin-left: auto;
  width: 60%;
}

@media (max-width: 768px) {
  .room:nth-child(odd),
  .room:nth-child(even) {
    width: 100%;
    align-self: center;
  }
  
  .wrp_item_content {
    width: 100%;
  }
}

.room {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 2/1; /* Standard image ratio */
  box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.15);
}

.room-card {
  display: block;
  width: 100%;
  height: 100%;
}

.room-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.room-card:hover img {
      transform: scale(1.05);
    }


.room-card .wrp_item_content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(18, 23, 34, 0.7);
  color: #ffff;
  padding: 1.5rem;
  height: 20%; /* Set initial height */
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: height;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.room-card:hover .wrp_item_content {
  height: 100%;
  justify-content: center;
  background-color: rgba(18, 23, 34, 0.474);
}

.room-card .wrp_item_content {
  transition: 
    height 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    background-color 0.4s ease,
    justify-content 0.6s ease;
}

    /* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.rooms-hero, .rooms-container {
  animation: fadeIn 0.8s ease-out;
}

/* Intro section */
.rooms-intro {
  width: 95%;
  text-align: center;
  margin: 0 auto 4rem;
  padding: 2rem 2rem;
  box-shadow: 2px 5px 8px rgba(0, 0, 0, 0.15);
}