/* Error Message */
.error-message {
  color: #dc3545;
  text-align: center;
  padding: 16px;
  border: 1px solid #dc3545;
  border-radius: 8px;
  background-color: #fff;
}

/* Booking Page Specific Styles */

/* Main Container for Booking Details - Replaces #room-details-container if JS renders */
#room-details-container {
  line-height: 1.5;
  color: #333;
  padding-left: 40px;
  max-width: 900px;
  margin: 20px auto;
  background-color: #f9f9f9;
  border-radius: 8px;
}

/* Booking Details Card - used by both PHP and JS rendering */
.booking-details-card {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Two-column layout for medium screens and up */
@media (min-width: 768px) {
  .booking-details-card {
    flex-direction: row;
  }
  .booking-hero-image {
    flex: 0 0 40%;
    max-width: 40%;
    height: auto;
  }
  .booking-hero-image img {
    height: 100%;
    object-fit: cover;
  }
  .booking-info-content {
    flex: 1 1 60%;
    padding: 20px 25px;
  }
}

.booking-hero-image {
  width: 100%;
  overflow: hidden;
}

.booking-hero-image img {
  width: 100%;
  display: block;
}

.booking-info-content {
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-item {
  padding-bottom: 8px;
  border-bottom: 1px solid #f5f5f5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-item .icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.info-item .text-content {
  flex-grow: 1;
}

.info-item .info-label {
  font-weight: 400;
  color: #777;
  font-size: 0.9em;
  margin-right: 5px;
}

.info-item .info-value {
  font-weight: 600;
  color: #333;
  font-size: 1em;
  line-height: 1.4;
}

/* Specific item styling */
.property-title-type {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 8px;
}

.property-title-type h5 {
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
  font-size: 1.4em;
  line-height: 1.3;
}

.room-price .info-value {
  color: #000000;
  font-weight: 700;
}

.property-bills .info-value {
  font-style: normal;
}

.error-message {
  color: #c0392b;
  text-align: center;
  padding: 20px;
  border: 1px solid #e74c3c;
  border-radius: 8px;
  background-color: #fbeae5;
  margin: 20px 0;
}

/* Responsive Adjustments */
@media (max-width: 1023px) {
  #room-details-container {
    padding: 0;
  }
}
/* Responsive Adjustments */
@media (max-width: 767px) {
  #room-details-container {
    padding: 0;
  }
  .booking-hero-image {
    max-height: 280px;
  }
  .booking-info-content {
    padding: 15px;
  }
  .property-title-type h5 {
    font-size: 1.3em;
  }
  .info-item .info-value {
    font-size: 0.95em;
  }
  .room-price .info-value {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  #room-details-container {
    padding: 0;
  }
  .booking-hero-image {
    max-height: 200px;
  }
  .property-title-type h5 {
    font-size: 1.2em;
  }
  .info-item {
    gap: 6px;
  }
  .info-item .icon {
    width: 16px;
    height: 16px;
  }
  .info-item .info-value {
    font-size: 0.9em;
  }
}

/* Old .room-details styles (commented out in previous step) should be fully removed if not used elsewhere */
.room-details {
  display: none;
} /* Hide if it exists and conflicts */
