/* room.css - Elegant Hotel Room Styles */

/* Container spacing */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HERO SECTION */
.hotel-hero {
  height: 400px;
  background-size: cover;
  background-position: center;
  position: relative;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 70px;
}

.hero-overlay {
  background-color: rgba(0,0,0,0.5);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 20px;
  margin-bottom: 25px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Hero Amenities */
.hero-amenities {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hero-amenities .amenity {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 14px;
  color: #fff;
  transition: transform 0.2s ease;
}

.hero-amenities .amenity:hover {
  transform: translateY(-3px);
}

.hero-amenities .amenity i {
  font-size: 28px;
  margin-bottom: 5px;
}

/* FILTER SECTION */
.filter-section {
  background: #fff;
  padding: 40px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  position: sticky;
  top: 70px;
  z-index: 100;
}

.filter-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 20px;
  align-items: end;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.filter-item {
  display: flex;
  flex-direction: column;
}

.filter-item label {
  font-size: 12px;
  font-weight: 600;
  color: #666;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-input,
.filter-select {
  padding: 14px 16px;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  font-size: 15px;
  background: #fff;
  color: #1a1a1a;
  transition: all 0.2s;
  cursor: pointer;
  font-weight: 500;
}

.filter-input:focus,
.filter-select:focus {
  outline: none;
  border-color: #888;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.filter-input:hover,
.filter-select:hover {
  border-color: #888;
}

/* Date inputs with calendar icon */
.filter-input[type="date"] {
  position: relative;
  padding-right: 40px;
}

.filter-input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  right: 12px;
  cursor: pointer;
  opacity: 0.6;
}

/* Select dropdown styling */
.filter-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.btn-apply {
  padding: 14px 40px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

.btn-apply:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-apply:active {
  transform: translateY(0);
}

/* ROOMS SECTION */
.rooms-section {
  padding: 50px 20px;
  background: #f8f9fa;
}

.section-title {
  font-size: 36px;
  font-weight: 600;
  color: #2b2b2b;
  margin-bottom: 50px;
  text-align: left;
  letter-spacing: -0.5px;
}

.rooms-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ELEGANT ROOM CARDS - Horizontal Layout */
.room-card-modern {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 280px;
}

.room-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.room-image-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.room-image-modern {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.room-card-modern:hover .room-image-modern {
  transform: scale(1.08);
}

.room-details {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.room-header-modern {
  margin-bottom: 20px;
}

.room-title-modern {
  font-size: 28px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.room-subtitle {
  font-size: 15px;
  color: #6b6b6b;
  font-weight: 400;
}

.room-features {
  margin-bottom: 24px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #444;
  margin-bottom: 8px;
}

.feature-item i {
  font-size: 18px;
  color: #666;
}

.amenities-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 20px;
  margin-bottom: 28px;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #555;
}

.amenity-item i {
  font-size: 16px;
  color: #888;
  width: 16px;
}

.room-footer-modern {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 20px;
  border-top: 1px solid #eeeeee;
}

.price-info {
  display: flex;
  flex-direction: column;
}

.price-from {
  font-size: 13px;
  color: #888;
  margin-bottom: 4px;
  font-weight: 400;
}

.price-amount {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1;
  letter-spacing: -0.5px;
}

.currency-symbol {
  font-size: 24px;
}

.price-period {
  font-size: 13px;
  color: #888;
  margin-top: 6px;
  font-weight: 400;
}

.availability-badge {
  text-align: right;
}

.rooms-available {
  display: inline-block;
  padding: 8px 16px;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}

.rooms-unavailable {
  display: inline-block;
  padding: 8px 16px;
  background: #ffebee;
  color: #c62828;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}

/* NO ROOMS MESSAGE */
.no-rooms {
  text-align: center;
  padding: 100px 20px;
  color: #666;
  background: #fff;
  border-radius: 12px;
}

.no-rooms i {
  font-size: 56px;
  color: #d0d0d0;
  margin-bottom: 24px;
}

.no-rooms h3 {
  margin-bottom: 12px;
  color: #333;
  font-size: 26px;
  font-weight: 600;
}

.no-rooms p {
  margin-bottom: 24px;
  color: #666;
  font-size: 16px;
}

.no-results-message {
  text-align: center;
  padding: 80px 20px;
  color: #666;
  background: #fff;
  border-radius: 12px;
}

.no-results-message i {
  font-size: 48px;
  color: #d0d0d0;
  margin-bottom: 20px;
}

.no-results-message p {
  font-size: 17px;
  color: #666;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  .room-card-modern {
    grid-template-columns: 280px 1fr;
  }
  
  .amenities-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 968px) {
  .hero-content h1 {
    font-size: 36px;
  }
  
  .hero-content p {
    font-size: 16px;
  }
  
  .hero-amenities .amenity i {
    font-size: 24px;
  }
  
  .hero-amenities {
    gap: 15px;
  }

  .filter-container {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .filter-item:nth-child(3),
  .filter-item:nth-child(4) {
    grid-column: auto;
  }
  
  .btn-apply {
    grid-column: 1 / -1;
    width: 100%;
  }
  
  .room-card-modern {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  
  .room-image-container {
    height: 240px;
  }
  
  .amenities-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 28px;
  }
  
  .room-details {
    padding: 24px;
  }
  
  .room-title-modern {
    font-size: 24px;
  }
  
  .amenities-list {
    grid-template-columns: 1fr;
  }

  .room-footer-modern {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .availability-badge {
    text-align: left;
  }
  
  .price-amount {
    font-size: 28px;
  }
}

@media (max-width: 576px) {
  .hotel-hero {
    height: 300px;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .hero-content p {
    font-size: 14px;
  }

  .hero-amenities .amenity {
    font-size: 12px;
  }

  .hero-amenities .amenity i {
    font-size: 20px;
  }

  .filter-container {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 24px;
    margin-bottom: 32px;
  }

  .room-details {
    padding: 20px;
  }

  .room-title-modern {
    font-size: 22px;
  }

  .price-amount {
    font-size: 26px;
  }
  
  .room-image-container {
    height: 200px;
  }
}