/* Single Tour Page Styles */

.single-tour-page {
  margin: 0;
  padding: 0;
}

/* Tour Gallery Section */
.tour-gallery-section {
  width: 100vw;
  height: 510px;
  max-height: 510px;
  overflow: hidden;
  position: relative;
  margin-left: calc(-50vw + 50%);
}

.tour-gallery-swiper {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  touch-action: pan-y;
}

.tour-gallery-swiper .swiper-wrapper {
  align-items: center;
  height: 100%;
  /* Position for 4-7-4 ratio: hide 3/7 of first 50vw image = 21.43vw */
  transform: translateX(-21.43vw);
}

/* All slides same size for consistent image dimensions */
.tour-gallery-swiper .swiper-slide {
  width: 50vw; /* All images same size */
  height: 100%;
  flex-shrink: 0;
}

/* 4-7-4 visibility ratio achieved through centering and spacing */
/* Center slide fully visible (50vw), side slides show ~4/7ths (~28vw visible each) */

.tour-gallery-image {
  width: 100%;
  height: 100%;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.tour-gallery-image:hover .gallery-image {
  transform: scale(1.05);
}

/* Tour Gallery Drag Button */
.tour-gallery-drag-button {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  opacity: 1;
  transition: all 0.3s ease;
  cursor: pointer;
  pointer-events: none; /* Don't interfere with swiper interaction */
}

.tour-gallery-drag-button:hover {
  transform: translateY(-50%) scale(1.1);
}

.tour-gallery-drag-button.dragging {
  opacity: 0;
  visibility: hidden;
}

.tour-gallery-drag-button svg {
  width: 89px;
  height: 89px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Gallery Lightbox */
.tour-gallery-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.tour-gallery-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.lightbox-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.lightbox-content {
  position: relative;
  max-width: 95%;
  max-height: 95%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lightbox-counter {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 16px;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.7);
  padding: 8px 16px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

/* Lightbox Controls */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(0, 0, 0, 0.9);
  opacity: 0.9;
}

.lightbox-close:active,
.lightbox-prev:active,
.lightbox-next:active {
  opacity: 0.7;
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.tour-content {
  max-width: 1512px;
  margin: 40px auto;
  padding: 0 40px;
  display: flex;
  gap: 20px;
}

.tour-content > div {
  flex: 1;
}

/* Tour Details Container */
.tour-details-container {
}

/* Tour Details Header */
.tour-details-header {
  margin-bottom: 40px;
}

.tour-details-title {
  font-size: 48px;
  font-weight: 600;
  color: #f99c28;
  line-height: 1.2;
  margin: 0 0 30px 0;
}

.tour-details-short-desc {
  font-size: 16px;
  font-weight: 500;
  color: #3d5e44;
  font-family: var(--wp--preset--font-family--epilogue);
  margin: 0 0 30px 0;
}

/* Tour Metadata Badges */
.tour-meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 20px;
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #000000;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.meta-badge svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

/* Tour Reviews Summary */
.tour-reviews-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}

.tour-stars-inline {
  display: flex;
  gap: 2px;
}

.tour-stars-inline .star {
  display: inline-block;
  height: 23px;
}

.tour-stars-inline .star svg {
  display: block;
  width: 24px;
  height: 23px;
}

.tour-stars-inline .star.half svg {
  display: block;
  width: 24px;
  height: 23px;
}

.tour-reviews-text {
  color: #5a6c7d;
  font-weight: 500;
}

/* Tour Tabs Navigation */
.tour-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 2px solid #e9ecef;
}

.tour-tab {
  background: transparent;
  border: 1px solid #00000026;
  padding: 15px 30px;
  font-size: 20px;
  font-family: var(--wp--preset--font-family--inter-tight);
  font-weight: 500;
  color: #000000;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  flex: 1;
}

.tour-tab:hover {
  color: #2c3e50;
  background: #f8f9fa;
}

.tour-tab.active {
  background: #f5ef82;
  border: 1px solid #f5ef82;
}

/* Tab Content */
.tour-tab-content {
  position: relative;
}

.tab-panel {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tab-panel.active {
  display: block;
  opacity: 1;
}

/* Description Content */
.tour-description-content {
  font-size: 20px;
  line-height: 1.6;
  color: #000000;
  opacity: 0.75;
}

.tour-description-content p {
  margin: 0 0 20px 0;
}

.tour-description-content p:last-child {
  margin-bottom: 0;
}

/* Placeholder Content */
.placeholder-content {
  text-align: center;
  padding: 60px 20px;
  color: #6c757d;
  font-style: italic;
}

/* Inclusions & Exclusions Section */
.tour-inclusions-exclusions {
  margin-top: 40px;
}

.inclusions-exclusions-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.inclusions-section,
.exclusions-section {
  flex: 1;
}

.inclusions-section .section-title,
.exclusions-section .section-title {
  font-size: 25px;
  font-weight: 700;
  font-family: var(--wp--preset--font-family--epilogue);
  color: #f99c28;
  margin: 0 0 10px 0;
}

.inclusions-list,
.exclusions-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.inclusion-item,
.exclusion-item {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-bottom: 24px;
  font-size: 18px;
  line-height: 1.5;
}

.exclusion-item {
  align-items: center;
  margin-bottom: 5px;
}

.inclusion-item:last-child,
.exclusion-item:last-child {
  margin-bottom: 0;
}

.check-icon {
  flex-shrink: 0;
  width: 25px;
  height: 24px;
  margin-top: 2px;
}

.x-icon {
  flex-shrink: 0;
  width: 15px;
  height: 14px;
}

.inclusion-content {
  flex: 1;
}

.inclusion-title {
  display: block;
  font-weight: 600;
  font-size: 20px;
  color: #3db87d;
  margin-bottom: 5px;
}

.inclusion-description,
.exclusion-description {
  display: block;
  color: #000000;
  font-size: 16px;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .tour-content {
    flex-direction: column;
    gap: 30px;
    margin: 30px auto;
    padding: 0 20px;
  }

  .tour-details-container {
    padding: 30px 25px;
  }

  .tour-tab {
    padding: 12px 20px;
    font-size: 15px;
  }

  .tour-details-header {
    margin-bottom: 30px;
  }

  .tour-details-short-desc {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .meta-badge {
    padding: 6px 14px;
    font-size: 13px;
  }

  .tour-gallery-swiper .swiper-slide {
    width: 55vw !important; /* All images same size on tablet */
  }

  .tour-gallery-swiper .swiper-wrapper {
    /* Adjust transform for 55vw images: hide 3/7 of 55vw = 23.57vw */
    transform: translateX(-23.57vw);
  }

  .inclusions-exclusions-grid {
    gap: 40px;
  }

  .tour-inclusions-exclusions {
    margin-top: 40px;
    padding: 40px 0;
  }
}

@media (max-width: 768px) {
  .tour-gallery-section {
    height: 450px;
    max-height: 450px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
  }

  .tour-gallery-swiper .swiper-slide {
    width: 100vw !important; /* Full width images on mobile */
  }

  .tour-content {
    margin: 0;
    padding: 0;
    background: white;
    position: relative;
    z-index: 5;
    top: -30px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
  }

  .tour-details-container {
    padding: 30px 15px;
  }

  .tour-details-title {
    margin: 0 0 20px 0;
  }

  .tour-tabs {
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 25px;
  }

  .tour-tab {
    padding: 10px 15px;
    font-size: 14px;
    flex: 1;
    min-width: 100px;
  }

  .tour-description-content {
    font-size: 15px;
    line-height: 1.5;
  }

  .placeholder-content {
    padding: 40px 15px;
  }

  .tour-details-header {
    margin-bottom: 25px;
  }

  .tour-details-short-desc {
    font-size: 15px;
    margin-bottom: 18px;
  }

  .tour-meta-badges {
    gap: 8px;
    margin-bottom: 15px;
  }

  .meta-badge {
    padding: 5px 12px;
    font-size: 12px;
    gap: 6px;
  }

  .meta-badge svg {
    width: 20px;
    height: 20px;
  }

  .tour-reviews-summary {
    font-size: 14px;
    gap: 8px;
  }

  .tour-stars-inline .star svg {
    width: 16px;
    height: 16px;
  }

  .tour-gallery-swiper .swiper-wrapper {
    /* Reset transform for mobile - use centering instead */
    transform: none;
  }

  /* Hide drag button on mobile - touch is natural */
  .tour-gallery-drag-button {
    display: none;
  }

  /* Disable lightbox completely on mobile */
  .tour-gallery-lightbox {
    display: none !important;
  }

  .lightbox-container {
    padding: 20px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .inclusions-exclusions-grid {
    gap: 30px;
  }

  .tour-inclusions-exclusions {
    margin-top: 30px;
    padding: 30px 0;
  }

  .inclusions-section .section-title,
  .exclusions-section .section-title {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .inclusion-item,
  .exclusion-item {
    font-size: 16px;
    gap: 12px;
    margin-bottom: 15px;
  }

  .check-icon,
  .x-icon {
    width: 20px;
    height: 20px;
  }
}
