/* Header */
.tour-header {
  margin-bottom: 30px;
}

.tour-title {
  color: #9c0b0b;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.tour-meta {
  display: flex;
  gap: 24px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #666;
  font-size: 14px;
}

.meta-item i {
  color: #c41e3a;
}

/* Booking Card */
.booking-card {
  border: 1px solid #bbbbbb;
  border-radius: 10px;
  padding: 16px;
  position: sticky;
  top: 74px;
}

.price-amount {
  font-size: 24px;
  font-weight: 700;
  color: #9c0b0b;
}

/* Trip Review */
.trip-review {
  border-radius: 8px;
  margin-bottom: 16px;
}

.trip-review h3 {
  font-size: 16px;
  font-weight: 700;
  color: #9c0b0b;
  margin-bottom: 12px;
}

.review-item {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 14px;
  font-weight: 600;
}

.review-price {
  font-weight: 600;
}

/* Input Group for Discount */
.discount-section {
  padding: 8px 16px 16px;
  border: 1px dashed #ddd;
  border-radius: 6px;
  background-color: #fafafa;
}

.discount-input-group {
  position: relative;
}

.apply-btn {
  padding: 10px 20px;
  background: #c30e0e;
  color: white;
  border: none;
  font-weight: 600;
  border-radius: 10px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 86px;
}

.apply-btn:hover:not(:disabled) {
  background: #a01629;
  color: white;
}

.apply-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.alert-promo,
.success-promo {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 0;
}

.alert-promo {
  background: #fee;
  color: #c41e3a;
  border: 1px solid #fcc;
}

.success-promo {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.form-group .form-label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.form-select,
.form-control {
  border: 1px solid #ddd;
  border-radius: 10px;
}

.form-select:focus,
.form-control:focus {
  border-color: #ddd;
  box-shadow: none;
}

/* Price Summary */
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 14px;
  font-weight: 600;
}

.summary-row.total {
  font-size: 18px;
  font-weight: 700;
  color: #9c0b0b;
  padding-top: 12px;
  padding-bottom: 0;
  border-top: 2px solid #e0e0e0;
  margin-top: 8px;
}

.exchange-rate {
  font-size: 12px;
  color: #999;
  text-align: right;
  display: flex;
  justify-content: space-between;
}

/* Gallery */
.tour-gallery {
  margin-bottom: 30px;
}

.main-image-container {
  position: relative;
  width: 100%;
  height: 450px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.slider-btn:hover {
  background: #f0f0f0;
}

.prev-btn {
  left: 16px;
}

.next-btn {
  right: 16px;
}

.thumbnails-container {
  overflow: hidden;
}

.thumbnails-wrapper {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.thumbnail {
  flex-shrink: 0;
  width: 120px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
  border-color: #c41e3a;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail.see-more {
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 13px;
  font-weight: 600;
}

/* Tabs Navigation - Sticky */
.tabs-wrapper {
  position: sticky;
  top: 74px;
  z-index: 100;
  background: white;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 24px;
  height: 50px;
}

.tabs-navigation {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  overflow-x: auto;
  overflow-y: hidden;
  height: calc(100% + 12px);
  padding-bottom: 12px;
  scrollbar-width: none;
}

.tabs-navigation::-webkit-scrollbar {
  height: 4px;
}

.tabs-navigation::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 3px;
}

/* Khi hover */
.tabs-navigation:hover {
  height: 70px;
  scrollbar-width: thin;
  scrollbar-color: #888 transparent;
}

.tabs-navigation:hover::-webkit-scrollbar-thumb {
  background: #888;
}

.tabs-navigation:hover::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.tab-btn {
  padding: 12px 20px;
  background: none;
  border: none;
  color: #666;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  color: #c41e3a;
}

.tab-btn.active {
  color: #c41e3a;
  border-bottom-color: #c41e3a;
}

/* Sections Content */
.sections-content {
  background: white;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.content-section {
  padding-bottom: 20px;
  margin-bottom: 30px;
  border-bottom: 1px solid #e0e0e0;
}

.content-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.content-section h2 {
  color: #9c0b0b;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  scroll-margin-top: 80px;
  /* Offset for sticky nav */
}

/* Itinerary Days */
.itinerary-day {
  margin-bottom: 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.itinerary-day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #f8f8f8;
  cursor: pointer;
  transition: background 0.3s ease;
}

.itinerary-day-header:hover {
  background: #f0f0f0;
}

.itinerary-day-header.active {
  background: #c41e3a;
  color: white;
}

.day-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.day-number {
  font-weight: 700;
  font-size: 16px;
}

.day-name {
  font-size: 16px;
  font-weight: 500;
}

.chevron {
  transition: transform 0.3s ease;
  color: #666;
}

.itinerary-day-header.active .chevron {
  transform: rotate(180deg);
  color: white;
}

.itinerary-day-content {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    padding 0.4s ease;
  padding: 0 20px;
}

.itinerary-day-content.open {
  max-height: 2000px;
  padding: 20px;
}

/* Itinerary Items */
.itinerary-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  counter-reset: itinerary-counter;
}

.itinerary-item {
  padding-left: 40px;
  padding-top: 12px;
  padding-bottom: 12px;
  border-left: 2px dashed #c41e3a;
  position: relative;
  counter-increment: itinerary-counter;
}

.itinerary-item:before {
  content: counter(itinerary-counter);
  position: absolute;
  left: -15px;
  top: 0;
  width: 28px;
  height: 28px;
  background: #c41e3a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: 600;
}

.itinerary-item h4 {
  color: #333;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.itinerary-item p {
  color: #666;
  line-height: 1.6;
  font-size: 14px;
}

/* Pricing Table */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
}

.pricing-table.table > :not(:last-child) > :last-child > * {
  border-bottom: none;
}

.pricing-table th,
.pricing-table td {
  padding: 12px;
  text-align: left;
  border: 1px solid #e0e0e0;
}

.pricing-table th {
  background: #f5f5f5;
  font-weight: 600;
}

/* Passenger Selector */
#passengerDisplay {
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  font-weight: 600;
  padding: 5px;
  background-color: white;
}
.passenger-selector {
  position: relative;
}

.passenger-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 0px 8px;
  display: none;
  z-index: 1000;
  margin-top: 4px;
}

.passenger-dropdown.show {
  display: block;
}

.passenger-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.passenger-item:last-of-type {
  border-bottom: none;
  margin-bottom: 12px;
}

.passenger-info {
  flex: 1;
}

.passenger-label {
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.passenger-desc {
  font-size: 12px;
  color: #666;
}

.passenger-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-counter {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  color: white;
}

.btn-minus {
  background: #c30e0e;
}

.btn-minus:hover {
  background: #8b0000;
}

.btn-minus:disabled {
  background: #8b0000;
  cursor: not-allowed;
  opacity: 0.5;
}

.btn-plus {
  background: #c30e0e;
}

.btn-plus:hover {
  background: #8b0000;
}

.counter-value {
  font-weight: 600;
  font-size: 16px;
  min-width: 24px;
  text-align: center;
}

.passenger-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

/* Datepicker custom style */
.ui-datepicker {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#bookingDate {
  font-weight: 600;
  font-size: 14px;
  padding: 5px;
  cursor: pointer;
  background-color: white;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .booking-card {
    position: static !important;
    margin-top: 74px;
  }
}

@media (max-width: 768px) {
  .main-image-container {
    height: 300px;
  }

  .tabs-wrapper {
    top: 60.22px;
  }

  .tabs-navigation:hover {
    height: 60px;
    scrollbar-width: thin;
    scrollbar-color: #888 transparent;
  }

  .tab-btn {
    padding: 10px 14px;
    font-size: 13px;
  }
}
