/* =============================================================================
   Single Product – Travel/Tour Detail Page
   ============================================================================= */

/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --sp-yellow:       #f5d000;
  --sp-yellow-dark:  #e6c400;
  --sp-red:          #d63031;
  --sp-text:         #1a1a1a;
  --sp-text-muted:   #777;
  --sp-border:       #eee;
  --sp-radius:       14px;
  --sp-radius-sm:    8px;
  --sp-shadow:       0 2px 16px rgba(0, 0, 0, 0.08);
  --sp-shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.14);
  --sp-sidebar-w:    300px;
  --sp-gap:          28px;
  --sp-content-max:  1180px;
}

/* ── Wrapper ───────────────────────────────────────────────────────────────── */
.sp-wrap {
  max-width: var(--sp-content-max);
  margin: 0 auto;
  padding: 0 0 60px;
  font-family: inherit;
  color: var(--sp-text);
}

/* ── A. Top Section ────────────────────────────────────────────────────────── */
.sp-top {
  padding: 20px 0 0;
}

/* Breadcrumbs */
.sp-breadcrumb .woocommerce-breadcrumb,
.sp-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #4A5565;
}
.sp-breadcrumb__list li {
  margin-bottom: 0;
}
.sp-breadcrumb a {
  color: #4A5565;
  text-decoration: none;
  text-transform: capitalize;
}

.sp-breadcrumb__sep {
  color: inherit;
  font-size: 20px;
  line-height: 20px;
  user-select: none;
}

/* Title */
.sp-title {
  margin: 0 0 14px;
  font-size: 30px;
  font-weight: 500;
  line-height: 41px;
  color: #0A0A0A;
}

/* Meta row */
.sp-meta { display: flex; flex-direction: column; gap: 10px; }

.sp-meta__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sp-meta__tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.sp-meta__tag--cat,
.sp-meta__tag--loc {
  background-color: #F3F4F6;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #364153;
  padding: 5px 12px;
  border-radius: 8px;
  text-transform: capitalize;
}

.sp-meta__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sp-meta__row .product-card__meta {
  margin-bottom: 0;
}
.sp-meta__row .gallery-library-btn {
  margin: 0;
  background-color: #FFFF00;
  border-radius: 84px;
  box-shadow: 0px 4px 6px -4px #0000001A, 0px 10px 15px -3px #0000001A;
  color: #434343;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}
.sp-meta__sep {
  color: #ccc;
  font-size: 14px;
  user-select: none;
}

.sp-meta__info {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--sp-text-muted);
}

/* Rating */
.sp-rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sp-meta__row .product-card__rating-score {
  font-size: 18px;
  line-height: 28px;
  color: #D5D50A;
  font-weight: 700;
}
.sp-meta__row .product-card__rating-star {
  color: #D5D50A;
}
.sp-meta__row .product-card__rating-count {
  font-size: 14px;
  color: #4A5565;
}
.sp-rating__stars {
  display: flex;
  gap: 1px;
  font-size: 15px;
  line-height: 1;
}

.sp-star--full  { color: #f5a623; }
.sp-star--half  { color: #f5a623; opacity: 0.55; }
.sp-star--empty { color: #d8d8d8; }

.sp-rating__value {
  font-size: 13px;
  font-weight: 700;
  color: var(--sp-text);
}

.sp-rating__count {
  font-size: 12px;
  color: var(--sp-text-muted);
  text-decoration: none;
}

.sp-rating__count:hover { text-decoration: underline; }

/* ── B + C. Two-column: Gallery + Sidebar ──────────────────────────────────── */
.sp-content {
  margin-top: 24px;
}

/* ── B. Gallery ────────────────────────────────────────────────────────────── */
.sp-gallery {}

/* Mosaic layout: large image left + 2×2 grid right */
.sp-gallery__mosaic {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 6px;
  border-radius: var(--sp-radius);
  overflow: hidden;
  height: 358px;
}

/* Primary (large) image */
.sp-gallery__primary {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.sp-gallery__main-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
}

.sp-gallery__main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  transition: transform 0.45s ease;
}

.sp-gallery__primary:hover .sp-gallery__main-img {
  transform: scale(1.04);
}

.sp-gallery__main-img--placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8e8e8 0%, #d4d4d4 100%);
}

.sp-gallery__zoom-icon {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.22s ease, transform 0.22s ease;
  color: #333;
}

.sp-gallery__primary:hover .sp-gallery__zoom-icon {
  opacity: 1;
  transform: scale(1);
}

/* Side grid: 2×2 thumbnails */
.sp-gallery__side-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 174px 174px;
  gap: 6px;
}

.sp-gallery__thumb {
  position: relative;
  overflow: hidden;
  display: block;
  cursor: pointer;
  text-decoration: none;
  border-radius: 8px;
}

.sp-gallery__thumb img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.sp-gallery__thumb:hover img {
  transform: scale(1.07);
}

/* ── C. Sticky Sidebar ─────────────────────────────────────────────────────── */
.sp-sidebar {
  flex-shrink: 0;
  width: var(--sp-sidebar-w);
}

.sp-sidebar__inner {
  background: #fff;
  border: 1px solid #F3F3F3;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0px 4px 16.3px -3px #00000008;
  position: sticky;
  top: 115px;
}

/* Price */
.sp-sidebar__price {
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sp-sidebar__price.on_sale {
  padding-top: 0;
}

.sp-sidebar__price-divider {
  background-color: #E5E7EB;
  width: 100%;
  height: 1px;
}

.sp-sidebar__price-label {
  display: block;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: #434343;
}

.on_sale .sp-sidebar__price-label {
  font-size: 12px;
  line-height: 12px;
  color: #969696;
}

.sp-sidebar__price-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.sp-sidebar__price-old {
  font-size: 13px;
  color: #bbb;
  text-decoration: line-through;
}

.sp-sidebar__badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  background: rgba(214, 48, 49, 0.1);
  color: var(--sp-red);
  border: 1px solid rgba(214, 48, 49, 0.22);
  border-radius: 4px;
}

.sp-sidebar__price-current {
  display: block;
  font-size: 20px;
  line-height: 20px;
  font-weight: 600;
  color: #D5D50A;
}

.on_sale .sp-sidebar__price-current {
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #99A1AF;
}

.sp-sidebar__price-current .woocommerce-Price-amount { 
  font-size: inherit;
  color: #D5D50A;
}

.sp-sidebar__cart { 
  margin-bottom: 0; 
}

#wrapper .sp-sidebar__cta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  background: #FFFF00;
  border: none;
  border-radius: 76px;
  color: #434343;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  cursor: pointer;
  margin: 12px 0 0;
}

.sp-sidebar__cta:active { transform: translateY(0); }

/* Out of stock */
.sp-sidebar__out-of-stock {
  text-align: center;
  padding: 12px;
  background: #f8f8f8;
  border-radius: var(--sp-radius-sm);
  font-size: 13px;
  color: var(--sp-text-muted);
  margin-bottom: 14px;
}

/* Info box */
.sp-sidebar__info-box {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--sp-border);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sp-sidebar__info-box li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--sp-text-muted);
  line-height: 1.5;
}

.sp-sidebar__info-box li svg { flex-shrink: 0; margin-top: 2px; color: #555; }
.sp-sidebar__info-box strong { color: var(--sp-text); }

/* ── D. Description Body ───────────────────────────────────────────────────── */
.sp-body {
  display: flex;
  margin-top: 36px;
}
.sp-body .col {
  padding-bottom: 0;
}
.sp-body__main { 
  flex: 1;
  margin-right: var(--sp-gap);
}

/* Sections */
.sp-section {
  margin-bottom: 36px;
  padding: 0;
  background: #fff;
}

.sp-section__title {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 800;
  color: var(--sp-text);
  padding-bottom: 14px;
  border-bottom: 2px solid var(--sp-border);
}
.sp-section__content .col {
  padding-left: 0;
  padding-right: 0;
}
.sp-section__content .col-inner {
  padding: 12px;
  border-radius: 12px;
  background-color: #FEFFF0;
}
.sp-section__content h3 {
  font-size: 22px;
  line-height: 24px;
  font-weight: 600;
  color: #000;
}
#wrapper .sp-section__content .icon-box {
  margin-bottom: 5px;
}
#wrapper .sp-section__content .icon-box-text h3 {
  margin-top: 10px;
}
#wrapper .sp-section__content ul {
  padding-left: 0;
}
.sp-section__content p,
.sp-section__content li,
.sp-section__content strong,
.sp-section__content b,
.sp-section__content span {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: #000000;
}
.sp-section__content strong,
.sp-section__content b {
  font-weight: 600;
}
.sp-section__content.entry-content {
  font-size: 14px;
  line-height: 1.75;
  color: #444;
  padding: 0;
}
.sp-section__content .progress .icon-box-text {
  padding-top: 10px;
}
.sp-section__content .progress .icon-box-img {
  position: relative;
}
.sp-section__content .progress .icon-box-img::before {
  content: '';
  position: absolute;
  width: 2px;
  height: calc(100% - 65px);
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #FFFF00;
}
.sp-section__content .schedule .icon-box-img {
  width: 16px !important;
}
.sp-section__content.entry-content h2,
.sp-section__content.entry-content h3,
.sp-section__content.entry-content h4 {
  font-weight: 700;
  margin: 20px 0 8px;
  color: var(--sp-text);
}

.sp-section__content.entry-content p { margin: 0 0 12px; }

.sp-section__content.entry-content ul,
.sp-section__content.entry-content ol {
  padding-left: 20px;
  margin: 0 0 12px;
}

.sp-section__content.entry-content li { margin-bottom: 6px; }

/* E. Benefits (short desc) */
.sp-benefits {
  font-size: 14px;
  line-height: 1.8;
  color: #444;
}

.sp-benefits ul { list-style: none; padding: 0; margin: 0; }

.sp-benefits ul li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid #f5f5f5;
}

.sp-benefits ul li:last-child { border-bottom: none; }

.sp-benefits ul li::before {
  content: '✓';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--sp-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: #111;
  margin-top: 1px;
}

/* E. Process steps */
.sp-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sp-steps__item {
  display: flex;
  gap: 16px;
  position: relative;
  padding-bottom: 24px;
}

.sp-steps__item:last-child { padding-bottom: 0; }

.sp-steps__item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 38px;
  bottom: 0;
  width: 2px;
  background: var(--sp-border);
}

.sp-steps__num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--sp-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #111;
  z-index: 1;
}

.sp-steps__body { padding-top: 4px; }
.sp-steps__heading { display: block; font-size: 14px; font-weight: 700; color: var(--sp-text); margin-bottom: 4px; }
.sp-steps__desc { margin: 0; font-size: 13px; color: var(--sp-text-muted); line-height: 1.6; }

/* Reviews wrapper */
.sp-section--reviews .woocommerce-Reviews { font-size: 14px; }

/* ── F. Related Products ───────────────────────────────────────────────────── */
.sp-related {
  margin-top: 48px;
}

.sp-related__title {
  font-size: 30px;
  line-height: 30px;
  font-weight: 700;
  margin: 0 0 20px;
  color: #0A0A0A;
}

.sp-related__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.sp-rel-card {
  background: #fff;
  border-radius: var(--sp-radius);
  overflow: hidden;
  box-shadow: var(--sp-shadow);
  border: 1.5px solid var(--sp-border);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.sp-rel-card:hover {
  box-shadow: var(--sp-shadow-hover);
  transform: translateY(-3px);
}

.sp-rel-card__img-link { display: block; flex-shrink: 0; }

.sp-rel-card__img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #efefef;
}

.sp-rel-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.sp-rel-card:hover .sp-rel-card__img { transform: scale(1.06); }

.sp-rel-card__img--placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8e8e8 0%, #d4d4d4 100%);
}

.sp-rel-card__cat {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #333;
  backdrop-filter: blur(4px);
}

.sp-rel-card__body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.sp-rel-card__title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sp-rel-card__title a { color: inherit; text-decoration: none; }
.sp-rel-card__title a:hover { color: #0073aa; }

.sp-rel-card__desc {
  margin: 0;
  font-size: 12px;
  color: var(--sp-text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sp-rel-card__rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}

.sp-rel-card__stars { display: flex; gap: 1px; font-size: 12px; }
.sp-rel-card__rating-val { font-size: 12px; font-weight: 700; }
.sp-rel-card__rating-count { font-size: 11px; color: var(--sp-text-muted); }

.sp-rel-card__price { font-size: 15px; font-weight: 700; }
.sp-rel-card__price-old { font-size: 12px; color: #bbb; text-decoration: line-through; margin-right: 4px; font-weight: 400; }
.sp-rel-card__price-cur ins { text-decoration: none; color: var(--sp-red); }

.sp-rel-card__labels { display: flex; gap: 6px; flex-wrap: wrap; }

.sp-rel-card__label {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.sp-rel-card__label--disc { background: rgba(214, 48, 49, 0.08); color: var(--sp-red); }
.sp-rel-card__label--sale { background: rgba(214, 48, 49, 0.85); color: #fff; }

/* ── Lightbox ──────────────────────────────────────────────────────────────── */
.sp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  cursor: pointer;
}

.sp-lightbox__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 90vw;
  max-height: 90vh;
  width: 100%;
}

.sp-lightbox__img-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.sp-lightbox__img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  transition: opacity 0.22s ease;
}

.sp-lightbox__img.sp-lightbox__img--loading { opacity: 0; }

.sp-lightbox__loader {
  display: none;
  position: absolute;
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--sp-yellow);
  border-radius: 50%;
  animation: sp-spin 0.7s linear infinite;
}

.sp-lightbox__loader--visible { display: block; }

@keyframes sp-spin { to { transform: rotate(360deg); } }

.sp-lightbox__nav {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s ease;
}

.sp-lightbox__nav:hover { background: rgba(255, 255, 255, 0.25); }
.sp-lightbox__nav:disabled { opacity: 0.25; cursor: default; }

.sp-lightbox__close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  padding: 0;
  transition: background 0.2s ease;
}

.sp-lightbox__close:hover { background: rgba(255, 255, 255, 0.25); }

.sp-lightbox__counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Lightbox open: prevent body scroll */
body.sp-lightbox-open { overflow: hidden; }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --sp-sidebar-w: 260px; }
  .sp-related__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .sp-content {
    grid-template-columns: 1fr;
  }

  .sp-sidebar__inner {
    position: static;
  }

  .sp-body__main {
    max-width: 100%;
    margin-right: 0;
  }

  .sp-gallery__mosaic {
    grid-template-columns: 1fr;
    aspect-ratio: auto;
  }

  .sp-gallery__primary {
    aspect-ratio: 16 / 9;
  }

  .sp-gallery__side-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr;
    aspect-ratio: auto;
  }

  .sp-gallery__thumb {
    aspect-ratio: 4 / 3;
  }

  .sp-lightbox__content { max-width: 96vw; gap: 8px; }
  .sp-lightbox__nav { width: 36px; height: 36px; }

  .sp-body {
    flex-direction: column-reverse;
  }
  .sp-sidebar {
    width: 100%;
  }
  .sp-wrap { padding: 0 20px 40px; }
  .sp-title { font-size: 20px; }
  .sp-related__grid { grid-template-columns: 1fr; }
  .sp-gallery__side-grid { grid-template-columns: repeat(3, 1fr); }
  .sp-section { 
    padding: 20px 0; 
    margin-bottom: 0;
  }
  .sp-related {
    margin-top: 0;
  }
  .sp-lightbox__nav { display: none; }
}