/* =====================================================================
   KOHWAN — the ski packages page (/ski/packages).
   A split hero, then the packages by topic on a deep navy ground: each card
   a tall photograph that turns over to its details. Builds on ski-landing.css
   for the tokens, the header, the footer and the buttons.
   ===================================================================== */

/* ------------------------------- the hero ------------------------------- */
/* A band of the panel's own colour above and below the banner, so it sits
   clear of the header instead of running straight into it. */
.skpk-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: stretch;
  padding-block: clamp(20px, 2.4vw, 34px);
  background: #26333a;
}
.skpk-hero__copy { display: flex; align-items: center; padding: clamp(34px, 5vw, 76px) clamp(22px, 4vw, 64px); background: #26333a; color: #F3F5F6; }
.skpk-hero__in { width: min(560px, 100%); margin-left: auto; }
.skpk-hero__title {
  margin: 0 0 18px;
  font-family: var(--skl-head);
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.skpk-hero__copy p { margin: 0 0 16px; font-size: .96rem; line-height: 1.75; color: rgba(243, 245, 246, .88); }
.skpk-hero__copy b { color: #FFFFFF; }
.skpk-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px !important; }
.skpk-hero__cta .skl-btn--line { border-color: rgba(255, 255, 255, .6); color: #FFFFFF; }
.skpk-hero__cta .skl-btn--line:hover { background: #FFFFFF; color: var(--skl-navy); }
.skpk-hero__tel { font-size: .82rem !important; color: rgba(243, 245, 246, .7) !important; }
.skpk-hero__tel a { color: #FFFFFF; font-weight: 700; }
.skpk-hero__media { position: relative; min-height: clamp(280px, 38vw, 520px); }
.skpk-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ----------------------------- the topics ----------------------------- */
.skpk { background: #22333d; }
.skpk-topic { padding-block: clamp(34px, 4.4vw, 62px); scroll-margin-top: 90px; }
.skpk-topic + .skpk-topic { border-top: 1px solid rgba(255, 255, 255, .08); }
.skpk-topic__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: clamp(18px, 2.4vw, 28px); }
.skpk-topic__h {
  margin: 0;
  font-family: var(--skl-head);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #FFFFFF;
}
.skpk-topic__lead { margin: 8px 0 0; max-width: 70ch; font-size: .92rem; line-height: 1.65; color: rgba(243, 245, 246, .72); }
.skpk-topic__count { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--skl-gold); }

/* the rail */
.skpk-rail { position: relative; }
.skpk-rail__track {
  display: flex;
  gap: clamp(14px, 1.8vw, 22px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.skpk-rail__track::-webkit-scrollbar { display: none; }

/* ------------------------------ the cards ------------------------------ */
.skpk-card {
  flex: 0 0 clamp(250px, 24vw, 320px);
  scroll-snap-align: start;
  perspective: 1400px;
}
.skpk-card__inner {
  position: relative;
  height: clamp(390px, 40vw, 470px);
  transition: transform .65s cubic-bezier(.22, .61, .36, 1);
  transform-style: preserve-3d;
}
.skpk-card.is-flipped .skpk-card__inner { transform: rotateY(180deg); }
.skpk-card__face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 14px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* the face */
.skpk-card__front { background: var(--skl-navy); }
.skpk-card__front img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 6s var(--skl-ease); }
.skpk-card:hover .skpk-card__front img { transform: scale(1.05); }
.skpk-card__front::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 34, 44, .12) 35%, rgba(18, 30, 38, .82));
}
.skpk-card__txt { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 20px 20px 22px; color: #FFFFFF; }
.skpk-card__txt small { font-size: .72rem; letter-spacing: .06em; opacity: .82; }
.skpk-card__txt h3 { margin: 6px 0 0; font-family: var(--skl-head); font-size: 1.45rem; font-weight: 700; letter-spacing: .02em; line-height: 1.1; }
.skpk-card__txt p { margin: 8px 0 0; font-size: .82rem; line-height: 1.5; color: rgba(255, 255, 255, .84); }

/* the "+" that turns the card over */
.skpk-card__flip, .skpk-card__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(18, 30, 38, .72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--skl-gold);
  cursor: pointer;
  transition: background-color .2s, transform .2s, color .2s;
}
.skpk-card__flip svg, .skpk-card__close svg { width: 18px; height: 18px; }
.skpk-card__flip:hover, .skpk-card__close:hover { background: var(--skl-gold); color: #FFFFFF; transform: rotate(90deg); }
.skpk-card__flip:focus-visible, .skpk-card__close:focus-visible { outline: 2px solid var(--skl-gold); outline-offset: 3px; }

/* the back */
.skpk-card__back {
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: #FFFFFF;
  color: var(--skl-ink);
  transform: rotateY(180deg);
  overflow-y: auto;
}
.skpk-card__close { background: var(--skl-sky-soft); color: var(--skl-navy); }
.skpk-card__bhead { padding-right: 44px; }
.skpk-card__bhead h3 { margin: 0; font-family: var(--skl-head); font-size: 1.2rem; font-weight: 700; line-height: 1.15; color: var(--skl-navy); }
.skpk-card__shot { display: block; margin: 12px 0; overflow: hidden; border-radius: 8px; background: var(--skl-sky-soft); }
.skpk-card__shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.skpk-card__facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.skpk-card__facts span { padding: 3px 9px; border: 1px solid var(--skl-line); border-radius: 999px; font-size: .72rem; color: var(--skl-muted); }

.skpk-meter { margin-bottom: 12px; }
.skpk-meter p { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 5px; font-size: .74rem; }
.skpk-meter b { font-weight: 700; color: var(--skl-navy); }
.skpk-meter span { color: var(--skl-muted); }
.skpk-meter__bar { display: block; height: 5px; border-radius: 999px; background: var(--skl-sky-soft); overflow: hidden; }
.skpk-meter__bar i { display: block; height: 100%; border-radius: 999px; background: var(--skl-gold); }
.skpk-meter__ends { margin-top: 4px !important; }
.skpk-meter__ends small { font-size: .66rem; color: var(--skl-muted); }

.skpk-card__price { margin: auto 0 10px; font-size: .86rem; color: var(--skl-ink); }
.skpk-card__price b { color: var(--skl-gold); font-size: 1rem; }
.skpk-card__go { margin: 0; }
.skpk-card__go a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 1.5px solid var(--skl-navy);
  font-size: .88rem;
  font-weight: 700;
  color: var(--skl-navy);
  text-decoration: none;
}
.skpk-card__go svg { width: 16px; height: 16px; transition: transform .2s var(--skl-ease); }
.skpk-card__go a:hover { color: var(--skl-gold); border-color: var(--skl-gold); }
.skpk-card__go a:hover svg { transform: translateX(3px); }

/* ------------------------------ the foot ------------------------------ */
.skpk-topic__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: clamp(16px, 2vw, 24px); }
.skpk-steps { display: flex; gap: 8px; margin: 0; }
.skpk-step {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  background: none;
  color: #FFFFFF;
  cursor: pointer;
  transition: background-color .2s, color .2s, opacity .2s;
}
.skpk-step svg { width: 18px; height: 18px; }
.skpk-step:hover:not(:disabled) { background: #FFFFFF; color: var(--skl-navy); }
.skpk-step:disabled { opacity: .35; cursor: default; }
.skpk-topic__all { background: var(--skl-gold) !important; }

/* ----------------------------- the closing ----------------------------- */
.skpk-end__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }

/* --------------------------- smaller screens --------------------------- */
@media (max-width: 900px) {
  .skpk-hero { grid-template-columns: 1fr; }
  .skpk-hero__in { margin: 0; }
  .skpk-hero__media { min-height: 260px; }
  .skpk-card { flex-basis: min(280px, 78vw); }
}
@media (prefers-reduced-motion: reduce) {
  .skpk-card__inner, .skpk-card__front img, .skpk-card__go svg, .skpk-card__flip { transition: none; }
  .skpk-rail__track { scroll-behavior: auto; }
}
