/*
Theme Name: OceanWP Child Theme
Theme URI: https://oceanwp.org/
Description: OceanWP WordPress theme. Sample child theme.
Author: OceanWP
Author URI: https://oceanwp.org/
Template: oceanwp
Version: 1.1
*/

/* Parent stylesheet should be loaded from functions.php not using @import */


:root {
  --orange:  #E8621A;
  --white:   #FFFFFF;
  --glass:   rgba(255,255,255,0.10);
  --glassbr: rgba(255,255,255,0.18);
  --radius:  18px;
  --speed:   700ms;
  --card-w:  300px;
  --card-h:  305px;
  --card-gap: 14px;
}



/* ── BACKGROUNDS ─────────────────────────────── */
.bg-box{
    position: relative;
}
.bg-wrap { position: absolute; inset: 0; z-index: 0; }

.bg-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.07);
  transition: opacity var(--speed) ease;
}
.bg-slide.active {
  opacity: 1;
  animation: kenBurns 9s ease forwards;
}
@keyframes kenBurns {
  from { transform: scale(1.07); }
  to   { transform: scale(1.00); }
}

.overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to right, rgba(0,0,0,.75) 0%, rgba(0,0,0,.30) 55%, rgba(0,0,0,.12) 100%),
    linear-gradient(to top,   rgba(0,0,0,.55) 0%, transparent 45%);
}


/* ── HERO LAYOUT ─────────────────────────────── */
.hero {
  position: relative; z-index: 2;
  height: 100vh;
  display: flex; align-items: center;
  padding: 0 52px;
  gap: 36px;
}

/* ── PAGINATION (left) ───────────────────────── */
.pagination {
  display: flex; flex-direction: column;
  align-items: center;
  position: relative;
  padding: 8px 0;
  flex-shrink: 0;
}
/* vertical track line */
.pagination::before {
  content: '';
  position: absolute;
  left: 50%; top: 8px; bottom: 8px;
  width: 1.5px;
  background: rgba(255,255,255,.15);
  transform: translateX(-50%);
  border-radius: 2px;
}
/* animated fill line */
.pagination::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 8px;
  width: 1.5px;
  background: var(--orange);
  transform: translateX(-50%);
  border-radius: 2px;
  transition: height var(--speed) ease;
}

.pg-item {
  position: relative; z-index: 1;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  margin: 9px 0;
  cursor: pointer;
}
.pg-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid transparent;
  transition: border-color .35s;
}
.pg-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.32);
  transition: background .35s, transform .35s;
}
.pg-num {
  position: absolute;
  right: calc(100% + 7px);
  font-size: 10px; font-weight: 600;
  color: rgba(255,255,255,.28);
  letter-spacing: .5px;
  white-space: nowrap;
  transition: color .35s;
}
.pg-item.active .pg-ring  { border-color: var(--orange); }
.pg-item.active .pg-dot   { background: var(--orange); transform: scale(1.25); }
.pg-item.active .pg-num   { color: rgba(255,255,255,.92); }
.pg-item:not(.active):hover .pg-dot { background: rgba(255,255,255,.6); }

/* ── HERO TEXT (center) ──────────────────────── */
.hero-content {
  flex: 1;
  display: flex; flex-direction: column;
  gap: 20px;
  max-width: 490px;
  padding-top: 56px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 2.8px; text-transform: uppercase;
  color: var(--orange);
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 26px; height: 1.5px;
  background: var(--orange); border-radius: 2px;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 5.2vw, 68px);
  font-weight: 700; line-height: 1.1;
  color: #fff; letter-spacing: -.4px;
}
.hero-title em { font-style: italic; color: var(--orange); }
.hero-sub {
  font-size: 15px; font-weight: 300;
  color: rgba(255,255,255,.68);
  line-height: 1.65; max-width: 355px;
}
.search-wrap {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.11);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 50px;
  padding: 6px 6px 6px 18px;
  max-width: 430px;
  transition: background .2s, border-color .2s;
}
.search-wrap:focus-within {
  background: rgba(255,255,255,.17);
  border-color: rgba(255,255,255,.38);
}
.search-wrap input {
  flex: 1; background: transparent;
  border: none; outline: none;
  font-size: 14px; font-weight: 400;
  color: #fff;
}
.search-wrap input::placeholder { color: rgba(255,255,255,.45); }
.search-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: none; cursor: pointer; flex-shrink: 0;
  background: linear-gradient(135deg,#ff8c42,var(--orange));
  color: #fff; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(232,98,26,.50);
  transition: transform .2s, box-shadow .2s;
}
.search-btn:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(232,98,26,.65); }

.hero-stats {
  display: flex; align-items: center; gap: 24px; margin-top: 2px;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px; font-weight: 700; color: #fff; line-height: 1;
}
.stat-label {
  font-size: 10px; font-weight: 400;
  color: rgba(255,255,255,.48);
  letter-spacing: .5px; margin-top: 2px;
}
.stat-div {
  width: 1px; height: 28px;
  background: rgba(255,255,255,.16);
}

/* ── CARDS SECTION (right) ───────────────────── */
.cards-section {
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 14px;
  padding-top: 72px;
  flex-shrink: 0;
}

/* viewport clips cards — shows active + peek of next */
.cards-viewport {
  width: calc(var(--card-w) * 2 + 30px);
  overflow: hidden;
  position: relative;
  padding: 10px;
  /* border-radius: var(--radius); */
}

/* fade edges */
/* .cards-viewport::after {
  content: '';
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 60px;
  background: linear-gradient(to right, transparent, rgba(0,0,0,.45));
  pointer-events: none;
  z-index: 2;
} */

.cards-track {
  display: flex;
  gap: var(--card-gap);
  transition: transform .58s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

/* ── CARD ────────────────────────────────────── */
.dest-card {
  width: var(--card-w);
  height: var(--card-h);
  min-width: var(--card-w);   /* ensure uniform size */
  max-width: var(--card-w);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.08);
  /* box-shadow: 0 8px 28px rgba(0,0,0,.40); */
  transition: transform .3s, box-shadow .3s, opacity .35s;
  cursor: pointer;
}
.dest-card.is-active {
  /* box-shadow: 0 16px 48px rgba(0,0,0,.55); */
  border-color: rgba(255,255,255,.18);
}
.dest-card:not(.is-active) {
  opacity: .60;
  transform: scale(.96);
}
.dest-card:hover { transform: translateY(-5px) scale(1.01); }
.dest-card:not(.is-active):hover { opacity: .80; }

.dest-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
  display: block;
}
.dest-card:hover img { transform: scale(1.06); }

.dest-card-overlay {
  position: absolute; inset: 0;
  /* background: linear-gradient(to top,rgba(0,0,0,.80) 0%,rgba(0,0,0,.08) 50%,transparent 100%); */
}
.dest-card-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--orange);
  color: #fff; font-size: 9px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 4px 9px; border-radius: 20px;
  box-shadow: 0 2px 8px rgba(232,98,26,.45);
}
.dest-card-info {
  position: absolute; bottom: 14px; left: 14px; right: 14px;
}
.dest-card-country {
  font-size: 10px; font-weight: 500;
  color: rgba(255,255,255,.60);
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 3px;
}
.dest-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px; font-weight: 700;
  color: #fff; line-height: 1.15;
}
.card-tag {
  display: inline-block; margin-top: 6px;
  font-size: 9px; font-weight: 500;
  color: rgba(255,255,255,.65);
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  padding: 3px 9px; border-radius: 20px;
}

/* ── CARD CONTROLS ───────────────────────────── */
.cards-controls {
  display: flex; gap: 10px;
  margin-right: 10px;
}
.card-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: none; cursor: pointer; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.card-btn.prev {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
  color: #fff;
  border: 1px solid rgba(255,255,255,.20);
}
.card-btn.prev:hover { background: rgba(255,255,255,.22); transform: scale(1.07); }
.card-btn.next {
  background: linear-gradient(135deg,#ff8c42,var(--orange));
  color: #fff;
  box-shadow: 0 4px 14px rgba(232,98,26,.48);
}
.card-btn.next:hover { transform: scale(1.07); box-shadow: 0 6px 20px rgba(232,98,26,.65); }

/* ── PROGRESS BAR ────────────────────────────── */
.progress-bar {
  position: fixed; bottom: 0; left: 0;
  height: 3px; z-index: 200;
  background: var(--orange);
  border-radius: 0 2px 2px 0;
  width: 0;
}
.progress-bar.running {
  animation: pgAnim var(--pg-dur, 5000ms) linear forwards;
}
@keyframes pgAnim { from { width: 0%; } to { width: 100%; } }

/* ── TEXT ANIMATION ──────────────────────────── */
.fade-up {
  animation: fadeUp .65s ease forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 1080px) { .cards-section { display: none; } }
@media (max-width: 700px)  { .hero-stats { display: none; } nav { padding: 14px 20px; } .hero { padding: 0 20px; } }
@media (max-width: 520px)  { .nav-links { display: none; } }
