/* ==============================================
   TRAVEL SLIDER — travel-slider.css
   Enqueue via: wp_enqueue_style()
   ============================================== */

/* ---------- Reset & box sizing ---------- */
#main-slider *,
#main-slider *::before,
#main-slider *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---------- Root tokens ---------- */
:root {
  --ts-blue:       #0d2f6e;
  --ts-blue-mid:   #1a4fa8;
  --ts-blue-light: #2979e8;
  --ts-gold:       #f5a623;
  --ts-gold-dark:  #d4880c;
  --ts-white:      #ffffff;
  --ts-text-light: rgba(255,255,255,0.85);
  --ts-radius:     14px;
  --ts-shadow:     0 8px 40px rgba(13,47,110,0.35);
  --ts-duration:   0.75s;
  --ts-ease:       cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Section wrapper ---------- */
#main-slider {
  width: 100%;
  overflow: hidden;
}

#main-slider .container {
  margin: 0 auto;
  padding: 0;
}

/* ---------- Slider shell ---------- */
.ts-slider {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
  border-radius: 0 0 var(--ts-radius) var(--ts-radius);
  box-shadow: var(--ts-shadow);
  user-select: none;
}

@media (max-width: 768px) {
  .ts-slider { height: auto; min-height: 560px; }
}

/* ---------- Track & slides ---------- */
.ts-track {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
}

.ts-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-color: #1a6ed8;            /* fallback when no image */
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ts-duration) var(--ts-ease);
  will-change: opacity;
}

.ts-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Overlay ---------- */
.ts-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(13, 47, 110, 0.82) 0%,
    rgba(13, 47, 110, 0.55) 55%,
    rgba(13, 47, 110, 0.15) 100%
  );
  z-index: 1;
}

/* ---------- Content ---------- */
.ts-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 95px 160px !important;
  gap: 0;
}

/* Animate content on active */
.ts-slide.is-active .ts-text-block > * {
  animation: tsSlideUp 0.7s var(--ts-ease) both;
}
.ts-slide.is-active .ts-subtitle    { animation-delay: 0.15s; }
.ts-slide.is-active .ts-title       { animation-delay: 0.28s; }
.ts-slide.is-active .ts-divider     { animation-delay: 0.38s; }
.ts-slide.is-active .ts-desc        { animation-delay: 0.48s; }
.ts-slide.is-active .ts-btn         { animation-delay: 0.60s; }
.ts-slide.is-active .ts-badge       { animation: tsBadgeIn 0.6s 0.7s var(--ts-ease) both; }
.ts-slide.is-active .ts-corner-badge{ animation: tsCornerIn 0.6s 0.5s var(--ts-ease) both; }
.ts-slide.is-active .ts-features    { animation: tsFeaturesIn 0.6s 0.8s var(--ts-ease) both; }

@keyframes tsSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes tsBadgeIn {
  from { opacity: 0; transform: scale(0.7) rotate(-6deg); }
  to   { opacity: 1; transform: scale(1) rotate(0deg); }
}
@keyframes tsCornerIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes tsFeaturesIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Text block ---------- */
.ts-text-block {
  max-width: 520px;
}

.ts-subtitle {
  font-family: 'Caveat', 'Dancing Script', cursive, Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--ts-white);
  line-height: 1;
  margin-bottom: 4px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.ts-title {
  font-family: 'Montserrat', 'Nunito Sans', Arial Black, sans-serif;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  color: var(--ts-white);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 16px;
  -webkit-text-stroke: 1px rgba(255,255,255,0.08);
}

.ts-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.ts-divider::before,
.ts-divider::after {
  content: '';
  flex: 0 0 60px;
  height: 2px;
  background: rgba(255,255,255,0.4);
  border-radius: 2px;
}

.ts-plane {
  font-size: 1.1rem;
  color: var(--ts-white);
  transform: rotate(45deg);
  display: inline-block;
}

.ts-desc {
  font-family: 'Nunito Sans', 'Open Sans', sans-serif;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  color: var(--ts-text-light);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 400px;
}

.ts-highlight {
  color: var(--ts-gold);
  font-weight: 600;
}

/* ---------- CTA button ---------- */
.ts-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ts-gold);
  color: var(--ts-blue);
  font-family: 'Montserrat', Arial Black, sans-serif;
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0px 20px 0px 0px !important;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  margin-top: 25px !important;
}

.ts-btn:hover {
  background: var(--ts-gold-dark);
}

.ts-btn-icon {
  font-size: 25px;
  background: var(--ts-blue);
  color: var(--ts-gold);
  border-radius: 100%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  flex-shrink: 0;
}

/* ---------- Gold badge (bottom right) ---------- */
.ts-badge {
  position: absolute;
  bottom: 110px;
  right: 48px;
  background: var(--ts-gold);
  color: var(--ts-blue);
  border-radius: 18px 4px 18px 4px;
  padding: 18px 24px 14px;
  text-align: center;
  min-width: 160px;
  box-shadow: 0 6px 28px rgba(245,166,35,0.5);
  z-index: 3;
}

.ts-badge-plane {
  position: absolute;
  top: -14px;
  right: 16px;
  font-size: 1.2rem;
  transform: rotate(45deg);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.ts-badge-label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 2px;
}

.ts-badge-value {
  display: block;
  font-family: 'Montserrat', Arial Black, sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  color: var(--ts-blue);
}

.ts-badge-tagline {
  display: block;
  font-family: 'Caveat', cursive;
  font-size: 0.85rem;
  color: var(--ts-blue);
  opacity: 0.8;
  margin-top: 6px;
}

.ts-badge-tagline em {
  font-style: italic;
  font-weight: 700;
}

/* ---------- Corner badge (top right) ---------- */
.ts-corner-badge {
  position: absolute;
  top: 28px;
  right: 48px;
  background: var(--ts-blue);
  color: var(--ts-white);
  padding: 14px 20px 12px !important;
  border-radius: 6px 18px 6px 18px;
  text-align: center;
  min-width: 150px;
  z-index: 3;
  box-shadow: 0 4px 20px rgba(13,47,110,0.6);
}

.ts-corner-script {
  display: block;
  font-family: 'Caveat', cursive;
  font-size: 1.3rem;
  color: var(--ts-gold);
  font-weight: 600;
  line-height: 1.1;
}

.ts-corner-badge strong {
  display: block;
  font-family: 'Montserrat', Arial Black, sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2px;
}

.ts-corner-plane {
  display: inline-block;
  font-size: 1rem;
  margin-top: 6px;
  color: var(--ts-gold);
}

/* ---------- Feature pills ---------- */
.ts-features {
  position: absolute;
  bottom: 80px;
  left: 95px;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: flex-start;
  gap: 15px;
  flex-wrap: wrap;
  max-width: 720px;
  border-radius: 40px;
  background: rgba(255,255,255,0.95);
}

.ts-feature strong {
    display: block;
}

.ts-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ts-blue);
  padding: 8px 30px !important;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 13px;
  border-right: var(--ts-blue);;
  white-space: nowrap;
}

.ts-feat-icon {
  font-size: 30px;
}

/* ---------- Arrows ---------- */
.ts-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.35);
  color: var(--ts-white);
  font-size: 1.1rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.ts-arrow:hover {
  background: var(--ts-gold);
  border-color: var(--ts-gold);
  color: var(--ts-blue);
  transform: translateY(-50%) scale(1.1);
}

.ts-arrow--prev { left: 16px; }
.ts-arrow--next { right: 16px; }

/* ---------- Dots ---------- */
.ts-dots {
  position: absolute;
  bottom: 34px;
  right: 56px;
  z-index: 10;
  display: flex;
  gap: 8px;
  align-items: center;
}

.ts-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s, width 0.25s;
}

.ts-dot.is-active {
  background: var(--ts-gold);
  width: 28px;
  border-radius: 6px;
  transform: scale(1.05);
}

/* ---------- Category nav bar ---------- */
.ts-categories {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: var(--ts-blue);
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 0;
}

.ts-cat {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 8px 28px !important;
  border-right: 1px solid rgba(255,255,255,0.12);
  transition: color 0.2s, background 0.2s;
}

.ts-cat:last-child { border-right: none; }

.ts-cat:hover {
  color: var(--ts-gold);
  background: rgba(255,255,255,0.06);
}

.ts-cat span { font-size: 1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .ts-content  { padding: 36px 36px 100px; }
  .ts-badge    { right: 24px; bottom: 100px; }
  .ts-corner-badge { right: 24px; }
  .ts-features { padding: 0 36px; }
  .ts-dots     { right: 36px; }
}

@media (max-width: 768px) {
  .ts-slider { height: auto; min-height: 600px; }
  .ts-content { padding: 28px 20px 120px; flex-direction: column; }
  .ts-text-block { max-width: 100%; }
  .ts-badge { position: static; margin: 16px 0 0 0; align-self: flex-start; }
  .ts-corner-badge { top: 14px; right: 14px; min-width: 120px; }
  .ts-corner-badge strong { font-size: 0.9rem; }
  .ts-features { flex-wrap: wrap; gap: 6px; padding: 0 14px; bottom: 56px; }
  .ts-feature  { font-size: 0.72rem; padding: 6px 10px; }
  .ts-cat      { padding: 10px 14px; font-size: 0.68rem; }
  .ts-dots     { right: 14px; bottom: 30px; }
}

@media (max-width: 480px) {
  .ts-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .ts-cat { border-right: 1px solid rgba(255,255,255,0.1); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .ts-slide,
  .ts-slide.is-active,
  .ts-slide.is-active * {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}