/* Room Types Grid Template */
.room-types-grid-wrapper {
  padding: 40px 0;
}

.room-category-section {
  margin-bottom: 60px;
}

.category-header {
  text-align: center;
  margin-bottom: 40px;
}

.category-title {
  font-size: 2rem;
  color: #333;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.category-title:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #007bff;
}

.category-description {
  color: #666;
  max-width: 800px;
  margin: 0 auto;
}

.rooms-grid,
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.promo-image img {
  width: 100%;
}

.grid-item {
  break-inside: avoid;
}

.room-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.room-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.room-image {
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
}

.room-image a {
  display: block;
}

.room-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.room-price {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 123, 255, 0.9);
  color: #fff;
  padding: 8px 15px;
  border-radius: 30px;
  font-weight: bold;
  backdrop-filter: blur(5px);
}

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

.price-period {
  font-size: 0.8rem;
  font-weight: normal;
}

.room-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.room-title {
  margin: 0 0 15px 0;
  font-size: 1.3rem;
}

.room-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.room-title a:hover {
  color: #007bff;
}

.room-features {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.feature {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #666;
  font-size: 0.85rem;
}

.icon-users:before {
  content: "👥";
}

.icon-child:before {
  content: "👶";
}

.room-excerpt {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.room-buttons {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.btn {
  flex: 1;
  display: inline-block;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.btn-details {
  background: #f8f9fa;
  color: #333;
  border: 1px solid #dee2e6;
}

.btn-details:hover {
  background: #e9ecef;
  color: #007bff;
}

.btn-book {
  background: #007bff;
  color: #fff;
}

.btn-book:hover {
  background: #0056b3;
  color: #fff;
}

/* Responsive */
@media (max-width: 992px) {
  .rooms-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .rooms-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }

  .category-title {
    font-size: 1.5rem;
  }

  .room-image img {
    height: 200px;
  }
}

@media (max-width: 576px) {
  .rooms-grid {
    grid-template-columns: 1fr;
  }

  .room-buttons {
    flex-direction: column;
  }
}
