/* Hotel Detail Page Components */
.hotel-detail {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  margin-top: 70px;
}

.hotel-gallery {
  position: relative;
  margin-bottom: 2rem;
  border-radius: 16px;
  overflow: hidden;
}

.gallery-main {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.5rem;
  z-index: 10;
}

.gallery-nav:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
  left: 1rem;
}

.gallery-nav.next {
  right: 1rem;
}

.gallery-thumbnails {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--bg-light);
  overflow-x: auto;
}

.gallery-thumbnail {
  min-width: 100px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: var(--transition);
  border: 2px solid transparent;
}

.gallery-thumbnail:hover,
.gallery-thumbnail.active {
  opacity: 1;
  border-color: var(--primary-color);
}

.gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hotel-info {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.hotel-main-info h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.hotel-location-rating {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.hotel-location {
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hotel-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: 600;
}

.hotel-features {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
}

.hotel-description {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.hotel-amenities {
  margin-bottom: 2rem;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-light);
  border-radius: 8px;
}

/* Booking Panel */
.booking-panel {
  position: sticky;
  top: 90px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.booking-price {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.booking-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-light);
}

.booking-form {
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.date-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.room-selection {
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.room-selection:hover {
  border-color: var(--primary-color);
}

.room-selection.selected {
  border-color: var(--primary-color);
  background: rgba(255, 107, 53, 0.05);
}

.room-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.room-type {
  font-weight: 600;
  color: var(--text-dark);
}

.room-price {
  font-weight: 700;
  color: var(--primary-color);
}

.room-details {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.room-capacity {
  font-size: 0.85rem;
  color: var(--text-light);
}

.pricing-breakdown {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  color: var(--text-light);
}

.pricing-row.total {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.book-btn {
  width: 100%;
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 1.5rem;
}

.book-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
}

/* Reviews Section */
.reviews-section {
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 1px solid var(--border-color);
}

.reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.review-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  transition: var(--transition);
}

.review-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.review-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
}

.review-info h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.review-date {
  font-size: 0.85rem;
  color: var(--text-light);
}

.review-rating {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.review-text {
  color: var(--text-light);
  line-height: 1.6;
}

/* Booking Page */
.booking-page {
  padding: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  margin-top: 70px;
}

.booking-header {
  margin-bottom: 3rem;
}

.booking-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.booking-summary {
  background: var(--bg-light);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.summary-hotel {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.summary-hotel-image {
  width: 150px;
  height: 150px;
  border-radius: 12px;
  object-fit: cover;
}

.summary-hotel-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.summary-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.summary-item {
  display: flex;
  flex-direction: column;
}

.summary-item-label {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.summary-item-value {
  font-weight: 600;
  color: var(--text-dark);
}

.booking-form-section {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.payment-option:hover {
  border-color: var(--primary-color);
}

.payment-option input[type="radio"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.payment-option.selected {
  border-color: var(--primary-color);
  background: rgba(255, 107, 53, 0.05);
}

.submit-booking-btn {
  width: 100%;
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 2rem;
}

.submit-booking-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
}

/* Filter Modal */
.filter-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.filter-modal.active {
  display: flex;
}

.filter-modal-content {
  background: white;
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.filter-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.close-filter {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  transition: var(--transition);
  padding: 0.5rem;
}

.close-filter:hover {
  color: var(--text-dark);
}

.filter-body {
  padding: 2rem;
  flex: 1;
  overflow-y: auto;
}

.filter-section {
  margin-bottom: 2rem;
}

.filter-section:last-child {
  margin-bottom: 0;
}

.filter-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.filter-options label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: var(--transition);
}

.filter-options label:hover {
  background: var(--bg-light);
}

.filter-options input[type="radio"],
.filter-options input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--primary-color);
}

.filter-footer {
  display: flex;
  gap: 1rem;
  padding: 2rem;
  border-top: 1px solid var(--border-color);
}

.clear-filters,
.apply-filters {
  flex: 1;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.clear-filters {
  background: var(--bg-light);
  color: var(--text-dark);
}

.clear-filters:hover {
  background: var(--border-color);
}

.apply-filters {
  background: var(--primary-color);
  color: white;
}

.apply-filters:hover {
  background: var(--primary-dark);
  transform: scale(1.02);
}

/* Mobile Booking Sheet */
.booking-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-radius: 20px 20px 0 0;
  padding: 2rem;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
  z-index: 1000;
  max-height: 90vh;
  overflow-y: auto;
}

.booking-sheet.active {
  transform: translateY(0);
}

.booking-sheet-handle {
  width: 50px;
  height: 4px;
  background: var(--border-color);
  border-radius: 2px;
  margin: 0 auto 1rem;
}

@media (max-width: 768px) {
  .hotel-info {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .booking-panel {
    position: static !important;
    margin-top: 2rem;
  }

  .reviews-grid {
    grid-template-columns: 1fr !important;
  }

  .gallery-main {
    height: 300px !important;
  }

  .hotel-main-info h1 {
    font-size: 2rem !important;
  }
  
  .filter-modal {
    padding: 0 !important;
    align-items: flex-end;
  }
  
  .filter-modal-content {
    max-width: 100% !important;
    border-radius: 20px 20px 0 0 !important;
    max-height: 90vh;
  }
  
  .filter-header,
  .filter-body,
  .filter-footer {
    padding: 1.5rem !important;
  }
  
  .amenities-grid {
    grid-template-columns: 1fr !important;
  }
  
  .hotel-features {
    flex-direction: column;
    gap: 1rem;
  }
  
  .booking-form-section {
    padding: 1.5rem !important;
  }
  
  .form-section-title {
    font-size: 1.25rem !important;
  }
  
  .summary-hotel {
    flex-direction: column;
  }
  
  .summary-hotel-image {
    width: 100% !important;
    height: 200px !important;
  }
  
  .summary-details {
    grid-template-columns: 1fr !important;
  }
  
  .booking-header h1 {
    font-size: 2rem !important;
  }
  
  .tip-card {
    padding: 2rem 1.5rem !important;
  }
  
  .tip-card h2 {
    font-size: 1.75rem !important;
  }
  
  .tip-card > div {
    grid-template-columns: 1fr !important;
  }
}

