/* Wild Gaze – Explore Safari Types / Choose Your Safari Adventure */
.wg-pop-safaris {
  --gold: var(--gold, #b8941a);
  --gold-lt: var(--gold-lt, #e8b020);
  --gold-pale: var(--gold-pale, #f5d060);
  --orange: var(--orange, #d45a00);
  --rust: var(--rust, #c0390a);
  --dark: var(--dark, #1a1408);
  --card-border: var(--card-border, #e8dfc8);
  --pop-text: #221a0c;
  --pop-text-body: #342a18;
  --pop-text-muted: #4a3d26;
  --pop-text-soft: #5e4f34;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  background: linear-gradient(180deg, #f7f1e4 0%, #faf6ec 38%, #f5efe2 100%);
  color: var(--pop-text-body);
  border-top: 3px solid var(--gold);
  position: relative;
  overflow: hidden;
}

.wg-pop-safaris::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 45% at 50% 0%, rgba(184, 148, 26, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

.wg-pop-safaris * {
  box-sizing: border-box;
}

.wg-pop-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 30px 72px;
  position: relative;
  z-index: 1;
}

/* ── Header ───────────────────────────────────────────── */
.wg-pop-header {
  text-align: center;
  margin-bottom: 36px;
}

.wg-pop-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-brand, 'Cinzel', serif);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(212, 90, 0, 0.08);
  border: 1px solid rgba(212, 90, 0, 0.22);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.wg-pop-eyebrow i {
  font-size: 0.75rem;
}

.wg-pop-title {
  font-family: var(--font-brand, 'Cinzel', serif);
  font-size: clamp(1.65rem, 3.6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pop-text);
  line-height: 1.12;
  margin-bottom: 14px;
}

.wg-pop-sub {
  font-size: 0.92rem;
  color: var(--pop-text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ── Category type picker ───────────────────────────────── */
.wg-pop-types-wrap {
  position: relative;
  margin-bottom: 12px;
}

.wg-pop-types-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 12px 4px 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}

.wg-pop-types-scroll.is-dragging {
  cursor: grabbing;
}

.wg-pop-types-scroll::-webkit-scrollbar {
  display: none;
}

.wg-pop-type {
  flex: 0 0 auto;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 118px;
  height: 118px;
  padding: 14px 10px;
  background: linear-gradient(165deg, #ffffff 0%, #faf5ea 100%);
  border: 2px solid rgba(184, 148, 26, 0.28);
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 4px 14px rgba(26, 20, 8, 0.07);
  transition: border-color 0.45s ease, background 0.45s ease, transform 0.45s cubic-bezier(0.22, 0.68, 0, 1.05), box-shadow 0.45s ease;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.wg-pop-type:hover {
  border-color: rgba(184, 148, 26, 0.55);
  transform: translateY(-3px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 10px 24px rgba(26, 20, 8, 0.12);
}

.wg-pop-type.is-active {
  border-color: var(--gold);
  background: linear-gradient(165deg, #fff8e6 0%, #f5e8c4 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 8px 22px rgba(184, 148, 26, 0.22),
    0 0 0 1px rgba(184, 148, 26, 0.12);
}

.wg-pop-type-icon {
  font-size: 1.45rem;
  color: var(--gold);
  margin-bottom: 8px;
  transition: transform 0.45s cubic-bezier(0.22, 0.68, 0, 1.05), color 0.35s ease;
}

.wg-pop-type.is-active .wg-pop-type-icon {
  transform: scale(1.12);
  color: var(--orange);
}

@keyframes wg-pop-icon-wiggle {
  0%   { transform: scale(1.12) rotate(0deg); }
  25%  { transform: scale(1.14) rotate(-9deg); }
  50%  { transform: scale(1.12) rotate(9deg); }
  75%  { transform: scale(1.14) rotate(-5deg); }
  100% { transform: scale(1.12) rotate(0deg); }
}

.wg-pop-type-icon.wg-pop-icon-pulse {
  animation: wg-pop-icon-wiggle 0.55s cubic-bezier(0.22, 0.68, 0, 1.05);
}

.wg-pop-type-name {
  font-family: var(--font-brand, 'Cinzel', serif);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pop-text-body);
  text-align: center;
  line-height: 1.35;
  transition: color 0.35s ease;
}

.wg-pop-type.is-active .wg-pop-type-name {
  color: #7a5500;
}

/* ── Dots ───────────────────────────────────────────────── */
.wg-pop-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  min-height: 12px;
}

.wg-pop-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(184, 148, 26, 0.35);
  cursor: pointer;
  transition: width 0.55s cubic-bezier(0.22, 0.68, 0, 1.05), background 0.35s ease;
}

.wg-pop-dot.is-active {
  width: 32px;
  background: var(--gold);
}

/* ── Detail panel ───────────────────────────────────────── */
.wg-pop-detail {
  min-height: 360px;
}

.wg-pop-detail-panel {
  display: none;
  background: #fff;
  border: 1px solid rgba(184, 148, 26, 0.28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 10px 32px rgba(26, 20, 8, 0.1),
    0 0 0 1px rgba(184, 148, 26, 0.06);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  overflow: hidden;
}

.wg-pop-detail-panel.is-active {
  display: block;
  animation: wg-pop-panel-in 0.55s cubic-bezier(0.22, 0.68, 0, 1.05) both;
}

@keyframes wg-pop-panel-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wg-pop-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}

.wg-pop-detail-text {
  padding: 36px 36px 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, #fffdf8 0%, #f8f1e2 52%, #fffef9 100%);
  border-right: 1px solid rgba(184, 148, 26, 0.1);
}

.wg-pop-detail-title {
  font-family: var(--font-brand, 'Cinzel', serif);
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pop-text);
  margin-bottom: 14px;
  padding-bottom: 12px;
  line-height: 1.2;
  border-bottom: 2px solid rgba(184, 148, 26, 0.22);
}

.wg-pop-detail-desc {
  font-size: 0.9rem;
  color: var(--pop-text-muted);
  line-height: 1.78;
  margin-bottom: 22px;
}

.wg-pop-features {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wg-pop-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--pop-text-body);
}

.wg-pop-feature-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(184, 148, 26, 0.16);
  color: #8a6a10;
  font-size: 0.7rem;
  clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
}

.wg-pop-features li:nth-child(1) .wg-pop-feature-icon {
  background: rgba(184, 148, 26, 0.18);
  color: #8a6a10;
}

.wg-pop-features li:nth-child(2) .wg-pop-feature-icon {
  background: rgba(212, 90, 0, 0.14);
  color: #b84e00;
}

.wg-pop-features li:nth-child(3) .wg-pop-feature-icon {
  background: rgba(192, 57, 10, 0.12);
  color: #a83208;
}

.wg-pop-detail-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  font-family: var(--font-brand, 'Cinzel', serif);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #1a1408;
  background: linear-gradient(135deg, #f0c840 0%, #d4a820 48%, #b8941a 100%);
  padding: 13px 26px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(184, 148, 26, 0.28);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: opacity 0.2s, gap 0.2s, box-shadow 0.25s ease, transform 0.25s ease;
}

.wg-pop-detail-cta:hover {
  opacity: 1;
  gap: 14px;
  color: #1a1408;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(184, 148, 26, 0.35);
}

.wg-pop-detail-visual {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  background: var(--dark);
}

.wg-pop-detail-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wg-pop-detail-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(26, 20, 8, 0.15) 0%, transparent 40%);
  pointer-events: none;
}

/* ── View all link ──────────────────────────────────────── */
.wg-pop-viewall-wrap {
  text-align: center;
  margin-top: 36px;
}

.wg-pop-viewall {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-brand, 'Cinzel', serif);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  border-bottom: 1px solid rgba(212, 90, 0, 0.35);
  padding-bottom: 3px;
  text-decoration: none;
  transition: gap 0.2s, color 0.2s;
}

.wg-pop-viewall:hover {
  gap: 12px;
  color: var(--rust);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 820px) {
  .wg-pop-detail-grid {
    grid-template-columns: 1fr;
  }

  .wg-pop-detail-visual {
    min-height: 240px;
    order: -1;
  }

  .wg-pop-detail-text {
    padding: 28px 24px 32px;
    border-right: none;
    border-bottom: 1px solid rgba(184, 148, 26, 0.1);
  }
}

@media (max-width: 620px) {
  .wg-pop-inner {
    padding: 44px 20px 56px;
  }

  .wg-pop-type {
    width: 104px;
    height: 104px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wg-pop-detail-panel.is-active,
  .wg-pop-type,
  .wg-pop-type-icon {
    animation: none !important;
    transition: none !important;
  }
}
