/* Tour Page Styles */

/* Tour Header */
.tour-header {
  background-color: #e8e9ec;
  padding: 2rem 0 1rem;
  margin-top: 5.75rem;
}

.tour-header__container {
  max-width: 72.624rem;
  margin: 0 auto;
  padding: 0 0.938rem;
}

.tour-header__title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #303a4d;
  margin-bottom: 0.5rem;
}

/* Tour wrapper layout */
.tour-wrapper {
  max-width: 72.624rem;
  margin: 2rem auto;
  padding: 0 0.938rem;
  display: flex;
  gap: 2rem;
}

/* Sidebar */
.tour-sidebar {
  flex: 0 0 280px;
  background-color: #fff;
}

.tour-sidebar__box {
  background: #fff;
  border: 1px solid #e8e9ec;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.tour-sidebar__price {
  text-align: center;
  margin-bottom: 1rem;
}

.tour-sidebar__price-label {
  display: block;
  font-size: 0.9rem;
  color: #808793;
  margin-bottom: 0.25rem;
}

.tour-sidebar__price-value {
  font-size: 2.5rem;
  font-weight: bold;
  color: rgba(48, 58, 77, 1);
}

.tour-sidebar__price-value small {
  font-size: 1rem;
  color: #808793;
}

.tour-sidebar__facts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tour-sidebar__facts li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e8e9ec;
  font-size: 0.95rem;
  line-height: 1.5;
}

.tour-sidebar__facts li:last-child {
  border-bottom: none;
}

.tour-sidebar__facts li b {
  font-weight: 600;
  color: #303a4d;
}

.tour-sidebar__btn {
  display: block;
  width: 100%;
  padding: 0.875rem;
  background-color: #A62A21;
  color: rgba(227, 229, 209, 1);
  text-align: center;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.3s;
  border: none;
  outline: none;
  cursor: pointer;
}

.tour-sidebar__btn:hover {
  background-color: #A62A21;
  color: #fff;
}

.tour-sidebar__contact {
  background: linear-gradient(135deg, #303a4d 0%, #4a5568 100%);
  color: #fff;
  text-align: center;
}

.tour-sidebar__contact-text {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.tour-sidebar__contact-phone {
  font-size: 1.5rem;
  font-weight: bold;
  color: #BFD71D;
}

/* Main Content */
.tour-content {
  flex: 1 1 600px;
  min-width: 0;
}

.tour-banner {
  margin-bottom: 2rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tour-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* Tabs */
.tour-tabs {
  background: #fff;
  border: 1px solid #e8e9ec;
  border-radius: 8px;
  overflow: hidden;
}

.tour-tabs__nav {
  display: flex;
  border-bottom: 2px solid #e8e9ec;
  background-color: #f8f9fa;
  flex-wrap: wrap;
}

.tour-tabs__link {
  padding: 1rem 1.5rem;
  text-decoration: none;
  color: #808793;
  font-weight: 600;
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-size: 1rem;
}

.tour-tabs__link:hover {
  color: #fff;
  background-color: #303a4d;
  opacity: 0.9;
}

.tour-tabs__link.active {
  color: #fff;
  border-bottom-color: #A62A21;
  background-color: #303a4d;
}

.tour-tabs__content {
  padding: 2rem;
}

.tour-tabs__pane {
  display: none;
}

.tour-tabs__pane.active {
  display: block;
}

/* Tour Section Headings */
.tour-section__title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #303a4d;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(48, 58, 77, 1);
}

/* Overview Section */
.tour-overview p {
  line-height: 1.8;
  margin-bottom: 1rem;
  color: #303a4d;
}

.tour-highlights {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.tour-highlights__title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #303a4d;
  margin-bottom: 1rem;
}

.tour-highlights ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tour-highlights li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.tour-highlights li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #A62A21;
  font-weight: bold;
  font-size: 1.25rem;
}

/* Itinerary */
.tour-itinerary {
  margin: 1.5rem 0;
}

.tour-itinerary__outline {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.tour-itinerary__outline-day {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e8e9ec;
  line-height: 1.6;
}

.tour-itinerary__outline-day:last-child {
  border-bottom: none;
}

.tour-itinerary__outline-day span {
  font-weight: 700;
  color: #A62A21;
}

.tour-itinerary__detail {
  margin-bottom: 2rem;
}

.tour-itinerary__day {
  background: #fff;
  border: 1px solid #e8e9ec;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tour-itinerary__day-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #303a4d;
  margin-bottom: 0.75rem;
}

.tour-itinerary__day-number {
  display: inline-block;
  color: #A62A21;
  margin-right: 0.5rem;
  font-size: inherit;
  font-weight: inherit;
}

.tour-itinerary__day-desc {
  line-height: 1.8;
  color: #303a4d;
}

/* Cost Details */
.tour-cost {
  margin: 1.5rem 0;
}

.tour-cost__section {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.tour-cost__section-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #303a4d;
  margin-bottom: 1rem;
}

.tour-cost ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tour-cost li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.tour-cost__section--includes li:before {
  content: "+";
  position: absolute;
  left: 0;
  color: #303A4D;
  font-weight: bold;
  font-size: 1.5rem;
  line-height: 1;
}

.tour-cost__section--excludes li:before {
  content: "−";
  position: absolute;
  left: 0;
  color: #303A4D;
  font-weight: bold;
  font-size: 1.5rem;
  line-height: 1;
}

/* Gallery */
.tour-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.tour-gallery__item {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s;
}

.tour-gallery__item:hover {
  transform: scale(1.05);
}

.tour-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Map */
.tour-map {
  margin: 1.5rem 0;
}

.tour-map iframe {
  width: 100%;
  height: 500px;
  border: none;
  border-radius: 8px;
}

/* Important Note */
.tour-note {
  background: #fff9e6;
  border-left: 4px solid rgba(166, 42, 33, 1);
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
}

.tour-note__title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #303a4d;
  margin-bottom: 1rem;
}

.tour-note p {
  line-height: 1.8;
  margin-bottom: 1rem;
  color: #303a4d;
}

/* Responsive */
@media (max-width: 1024px) {
  .tour-wrapper {
    gap: 1.5rem;
  }

  .tour-sidebar {
    flex: 0 0 220px;
  }
}

@media (max-width: 768px) {
  .tour-wrapper {
    gap: 1rem;
  }

  .tour-sidebar {
    flex: 0 0 200px;
  }

  .tour-sidebar__box {
    padding: 1rem;
  }

  .tour-header__title {
    font-size: 1.75rem;
  }

  .tour-tabs__nav {
    overflow-x: auto;
    white-space: nowrap;
  }

  .tour-tabs__link {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .tour-tabs__content {
    padding: 1rem;
  }

  .tour-gallery {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

@media (max-width: 600px) {
  .tour-wrapper {
    gap: 1rem;
  }

  .tour-sidebar {
    flex: 0 0 180px;
  }

  .tour-sidebar__box {
    padding: 0.75rem;
  }

  .tour-sidebar__price-value {
    font-size: 1.75rem;
  }

  .tour-sidebar__facts {
    font-size: 0.85rem;
  }

  .tour-gallery {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}

@media (max-width: 480px) {
  .tour-wrapper {
    flex-direction: column;
  }

  .tour-sidebar {
    flex: 1 1 100%;
  }

  .tour-content {
    flex: 1 1 100%;
  }

  .tour-sidebar__box {
    padding: 1rem;
  }

  .tour-gallery {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}

/* Lightbox styles */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.5rem;
}

.lightbox__close:hover {
  opacity: 0.8;
}

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 4px;
}

.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox__prev {
  left: 1rem;
}

.lightbox__next {
  right: 1rem;
}

.lightbox__prev.disabled,
.lightbox__next.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}
