/* =====================================================================
   KOHWAN — Ski vertical (Gulmarg)
   Loaded only on /ski pages. Builds on the tokens declared in style.css
   (--green, --gold, --ink, --cream, --radius, --shadow-*, --ease) so the
   ski section reads as the same brand, with a cooler winter accent.
   ===================================================================== */

:root {
  --ski-ice:    #FAF8F3;   /* cool surface, the winter counterpart to --cream */
  --ski-ice-2:  #2e4755;
  --ski-blue:   #2e4755;   /* cold accent, used sparingly next to --green */
  --ski-line:   rgba(46, 71, 85, .1);
}

/* ------------------------------------------------------------ season bar */
.ski-season {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 11px 20px;
  background: var(--green);
  color: #FAF8F3;
  font-size: .86rem;
  font-weight: 600;
  text-align: center;
}
.ski-season--off { background: var(--ski-blue); }
.ski-season__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(189, 131, 13, .25);
  flex: none;
}
.ski-season b { color: var(--gold); }

/* ----------------------------------------------------------------- hero */
.ski-hero {
  position: relative;
  padding: clamp(52px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
  background:
    linear-gradient(180deg, rgba(46, 71, 85, .82), rgba(46, 71, 85, .62)),
    var(--ski-ice) center/cover no-repeat;
  color: #FAF8F3;
}
.ski-hero__inner { max-width: 760px; }
.ski-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(250, 248, 243, .15);
  border: 1px solid rgba(250, 248, 243, .28);
  font-size: .76rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 18px;
}
.ski-hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 16px;
  font-weight: 800;
}
.ski-hero h1 em { color: var(--gold); font-style: normal; }
.ski-hero p { font-size: clamp(1rem, 1.6vw, 1.12rem); line-height: 1.65; opacity: .93; margin: 0 0 26px; }
.ski-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ------------------------------------------------------- category cards */
.ski-cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.ski-cat {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--ski-line);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.ski-cat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ski-cat__ic {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--ski-ice);
  color: var(--green);
  margin-bottom: 16px;
  flex: none;
}
.ski-cat h3 { font-size: 1.14rem; margin: 0 0 7px; font-weight: 700; }
.ski-cat p { font-size: .89rem; color: var(--muted); line-height: 1.6; margin: 0 0 16px; }
.ski-cat__foot {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .82rem; font-weight: 700; color: var(--green);
}
.ski-cat__count { color: var(--muted); font-weight: 500; }

/* --------------------------------------------------------- product card */
.ski-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 22px;
}
.ski-card {
  display: flex; flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--ski-line);
  box-shadow: var(--shadow-sm);
  text-decoration: none; color: var(--ink);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.ski-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ski-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--ski-ice); }
.ski-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ski-card__level {
  position: absolute; top: 12px; left: 12px;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(250, 248, 243, .94);
  color: var(--green); font-size: .71rem; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase;
}
.ski-card__body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.ski-card__name { font-size: 1.03rem; font-weight: 700; margin: 0 0 6px; line-height: 1.35; }
.ski-card__meta { font-size: .8rem; color: var(--muted); margin: 0 0 12px; }
.ski-card__facts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.ski-chip {
  font-size: .7rem; font-weight: 700;
  padding: 4px 9px; border-radius: 7px;
  background: var(--ski-ice); color: var(--ski-blue);
  white-space: nowrap;
}
.ski-card__foot {
  margin-top: auto; padding-top: 13px;
  border-top: 1px solid var(--ski-line);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.ski-card__price { font-size: 1.12rem; font-weight: 800; color: var(--green); }
.ski-card__price sup { font-size: .68rem; top: -.5em; margin-right: 1px; }
.ski-card__price s { font-size: .82rem; color: var(--muted); font-weight: 500; margin-left: 6px; }
.ski-card__unit { font-size: .72rem; color: var(--muted); font-weight: 500; }

/* ------------------------------------------------------- filters (bar) */
.ski-filters {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 16px 18px; margin-bottom: 26px;
  border-radius: var(--radius);
  background: var(--ski-ice);
  border: 1px solid var(--ski-line);
}
.ski-filters__label {
  font-size: .76rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .07em; color: var(--muted); margin-right: 2px;
}
.ski-pill {
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--ski-line); background: var(--white);
  font-size: .82rem; font-weight: 600; color: var(--ink);
  cursor: pointer; transition: all .2s var(--ease);
}
.ski-pill:hover { border-color: var(--green); }
.ski-pill.is-active { background: var(--green); border-color: var(--green); color: #FAF8F3; }
.ski-empty { padding: 48px 20px; text-align: center; color: var(--muted); }

/* --------------------------------------------------------- detail page */
.ski-detail { padding: clamp(28px, 4vw, 48px) 0 clamp(48px, 7vw, 84px); }
.ski-detail__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 34px; align-items: start; }
@media (max-width: 980px) { .ski-detail__grid { grid-template-columns: 1fr; } }

.ski-gallery { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 26px; background: var(--ski-ice); }
.ski-gallery img { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.ski-thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.ski-thumbs img {
  width: 84px; height: 60px; object-fit: cover;
  border-radius: 9px; cursor: pointer; opacity: .68;
  transition: opacity .2s var(--ease);
}
.ski-thumbs img:hover, .ski-thumbs img.is-active { opacity: 1; }

.ski-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px; margin: 0 0 30px; padding: 20px;
  border-radius: var(--radius); background: var(--ski-ice); border: 1px solid var(--ski-line);
}
.ski-fact__k {
  display: block; font-size: .7rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .07em; color: var(--muted); margin-bottom: 4px;
}
.ski-fact__v { font-size: .95rem; font-weight: 700; color: var(--ink); }

.ski-sec { margin-bottom: 32px; }
.ski-sec h2 { font-size: 1.28rem; font-weight: 700; margin: 0 0 14px; }
.ski-sec p { line-height: 1.75; color: #2e4755; }
.ski-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.ski-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; line-height: 1.55; }
.ski-list li svg { flex: none; margin-top: 3px; }
.ski-list--yes li svg { color: #2e4755; }
.ski-list--no li svg { color: #2e4755; }
.ski-safety {
  padding: 18px 20px; border-radius: var(--radius);
  background: #FAF8F3; border: 1px solid #BD830D;
}
.ski-safety h2 { font-size: 1.05rem; margin-bottom: 10px; }

/* ------------------------------------------------------ booking widget */
.ski-book {
  position: sticky; top: calc(var(--header-h) + 18px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--ski-line);
  background: var(--white);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.ski-book__top { padding: 20px; background: var(--green); color: #FAF8F3; }
.ski-book__price { font-size: 1.9rem; font-weight: 800; line-height: 1; }
.ski-book__price sup { font-size: .9rem; top: -.7em; }
.ski-book__price small { font-size: .78rem; font-weight: 500; opacity: .8; margin-left: 5px; }
.ski-book__was { font-size: .9rem; opacity: .65; text-decoration: line-through; margin-left: 8px; font-weight: 500; }
.ski-book__name { font-size: .9rem; opacity: .9; margin-top: 7px; }
.ski-book__tabs { display: flex; border-bottom: 1px solid var(--ski-line); }
.ski-book__tab {
  flex: 1; padding: 13px 8px; border: 0; background: none;
  font-size: .85rem; font-weight: 700; color: var(--muted);
  cursor: pointer; border-bottom: 2px solid transparent;
}
.ski-book__tab.is-active { color: var(--green); border-bottom-color: var(--green); }
.ski-book__panel { padding: 20px; }
.ski-book__field { margin-bottom: 14px; }
.ski-book__field label {
  display: block; font-size: .78rem; font-weight: 700;
  color: var(--ink); margin-bottom: 6px;
}
.ski-book__field input,
.ski-book__field select,
.ski-book__field textarea {
  width: 100%; padding: 11px 13px;
  border: 1px solid var(--ski-line); border-radius: 10px;
  font: inherit; font-size: .9rem; background: var(--white); color: var(--ink);
}
.ski-book__field input:focus,
.ski-book__field select:focus,
.ski-book__field textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.ski-book__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ski-book__total {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 0; margin-top: 4px;
  border-top: 1px dashed var(--ski-line);
  font-size: .88rem;
}
.ski-book__total b { font-size: 1.2rem; color: var(--green); }
.ski-book__submit {
  width: 100%; padding: 14px; border: 0; border-radius: 11px;
  background: var(--green); color: #FAF8F3;
  font: inherit; font-size: .93rem; font-weight: 700; cursor: pointer;
  transition: background .2s var(--ease);
}
.ski-book__submit:hover { background: var(--green-deep); }
.ski-book__submit[disabled] { opacity: .55; cursor: not-allowed; }
.ski-book__note { font-size: .76rem; color: var(--muted); text-align: center; margin: 11px 0 0; line-height: 1.5; }
.ski-book__msg { margin-top: 12px; padding: 11px 13px; border-radius: 10px; font-size: .85rem; font-weight: 600; }
.ski-book__msg--ok { background: #FAF8F3; color: #2e4755; }
.ski-book__msg--err { background: #FAF8F3; color: #2e4755; }
.ski-book__soldout { padding: 20px; text-align: center; color: var(--muted); font-size: .88rem; }

/* --------------------------------------------- homepage split (Ski/Tours)
   A compact "choose your journey" chooser that sits ABOVE the existing hero
   slider, so the two business lines get equal billing without displacing the
   hero's lead-capture form. */
/* Min-height absorbs the fixed header + utility bar, so bottom-aligned panel
   content never rides up underneath the nav. */
.split-hero { display: grid; grid-template-columns: 1fr 1fr;
  min-height: calc(clamp(300px, 38vh, 400px) + var(--header-h) + var(--ubar-h)); }
@media (max-width: 860px) { .split-hero { grid-template-columns: 1fr; } }
.split-hero__panel {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(24px, 3.4vw, 44px);
  color: #FAF8F3; text-decoration: none;
  overflow: hidden;
  min-height: 260px;
}
.split-hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.02);
  transition: transform .6s var(--ease);
}
.split-hero__panel:hover .split-hero__bg { transform: scale(1.07); }
.split-hero__panel::after {
  content: ''; position: absolute; inset: 0;
  /* Heavier at the very top: the transparent site header sits over this band
     and its links are #FAF8F3, so they need a dark ground to read against. */
  background: linear-gradient(180deg,
      rgba(46, 71, 85, .72) 0%,
      rgba(46, 71, 85, .3) calc(var(--header-h) + var(--ubar-h)),
      rgba(46, 71, 85, .42) 55%,
      rgba(46, 71, 85, .82) 100%);
}
.split-hero__panel > * { position: relative; z-index: 1; }
.split-hero__tag {
  display: inline-flex; align-items: center; gap: 7px;
  align-self: flex-start;
  padding: 6px 13px; border-radius: 999px;
  background: rgba(250, 248, 243, .16);
  border: 1px solid rgba(250, 248, 243, .3);
  font-size: .72rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 14px;
}
.split-hero__tag--now { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.split-hero__panel h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); font-weight: 800; margin: 0 0 10px; line-height: 1.1; }
.split-hero__panel p { font-size: .96rem; line-height: 1.6; opacity: .92; margin: 0 0 20px; max-width: 42ch; }
.split-hero__go {
  display: inline-flex; align-items: center; gap: 9px;
  align-self: flex-start;
  padding: 12px 22px; border-radius: 999px;
  background: var(--white); color: var(--ink);
  font-size: .88rem; font-weight: 700;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.split-hero__panel:hover .split-hero__go { background: var(--gold); }

/* ------------------------------------------------------ homepage section */
.ski-home { padding: clamp(48px, 7vw, 88px) 0; background: var(--ski-ice); }
.ski-home__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 30px;
}
.ski-home__head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; margin: 0 0 8px; }
.ski-home__head p { color: var(--muted); margin: 0; font-size: .95rem; }

@media (prefers-reduced-motion: reduce) {
  .ski-cat, .ski-card, .split-hero__bg { transition: none; }
  .ski-cat:hover, .ski-card:hover { transform: none; }
  .split-hero__panel:hover .split-hero__bg { transform: scale(1.02); }
}

/* =====================================================================
   DARK THEME — ski vertical
   The winter palette inverts to a cold near-black; gold carries the
   accent, matching the site-wide dark comp.
   ===================================================================== */
:root[data-theme="dark"] {
  --ski-ice:   #2e4755;
  --ski-ice-2: #2e4755;
  --ski-blue:  rgba(46, 71, 85, .39);
  --ski-line:  #2e4755;
}

/* In season the bar is gold, so its text must be dark ink. Off season the bar
   is a dark surface, so the emphasis has to go back to gold — otherwise the
   dates render dark-on-dark and vanish. */
:root[data-theme="dark"] .ski-season { background: var(--primary); color: var(--on-primary); }
:root[data-theme="dark"] .ski-season b { color: var(--on-primary); text-decoration: underline; }
:root[data-theme="dark"] .ski-season--off { background: var(--surface-2); color: var(--ink); }
:root[data-theme="dark"] .ski-season--off b { color: var(--primary); text-decoration: none; }
:root[data-theme="dark"] .ski-season__dot { background: var(--primary); box-shadow: 0 0 0 4px rgba(189, 131, 13, .22); }
:root[data-theme="dark"] .ski-season--off .ski-season__dot { background: var(--ski-blue); box-shadow: 0 0 0 4px rgba(46, 71, 85, .06); }

:root[data-theme="dark"] .ski-hero { background-color: var(--bg); }
:root[data-theme="dark"] .ski-hero h1 em { color: var(--primary); }

:root[data-theme="dark"] .ski-cat,
:root[data-theme="dark"] .ski-card,
:root[data-theme="dark"] .ski-book { background: var(--surface); border-color: var(--ski-line); }
:root[data-theme="dark"] .ski-cat__ic { background: var(--ski-ice); color: var(--primary); }
:root[data-theme="dark"] .ski-cat__foot { color: var(--primary); }
:root[data-theme="dark"] .ski-card__media { background: var(--ski-ice); }
:root[data-theme="dark"] .ski-card__level { background: rgba(46, 71, 85, .92); color: var(--primary); }
:root[data-theme="dark"] .ski-chip { background: var(--ski-ice); color: var(--ski-blue); }
:root[data-theme="dark"] .ski-card__price { color: var(--primary); }
:root[data-theme="dark"] .ski-card__foot { border-top-color: var(--ski-line); }

:root[data-theme="dark"] .ski-filters { background: var(--ski-ice); border-color: var(--ski-line); }
:root[data-theme="dark"] .ski-pill { background: var(--surface); border-color: var(--ski-line); color: var(--ink); }
:root[data-theme="dark"] .ski-pill.is-active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }

:root[data-theme="dark"] .ski-facts { background: var(--ski-ice); border-color: var(--ski-line); }
:root[data-theme="dark"] .ski-fact__v { color: var(--ink); }
:root[data-theme="dark"] .ski-sec p { color: rgba(250, 248, 243, .8); }
:root[data-theme="dark"] .ski-gallery { background: var(--ski-ice); }
:root[data-theme="dark"] .ski-safety { background: rgba(189, 131, 13, .08); border-color: rgba(189, 131, 13, .28); }

:root[data-theme="dark"] .ski-book__top { background: var(--primary); color: var(--on-primary); }
:root[data-theme="dark"] .ski-book__tabs { border-bottom-color: var(--ski-line); }
:root[data-theme="dark"] .ski-book__tab.is-active { color: var(--primary); border-bottom-color: var(--primary); }
:root[data-theme="dark"] .ski-book__field label { color: var(--ink); }
:root[data-theme="dark"] .ski-book__field input,
:root[data-theme="dark"] .ski-book__field select,
:root[data-theme="dark"] .ski-book__field textarea { background: var(--surface-2); border-color: var(--ski-line); color: var(--ink); }
:root[data-theme="dark"] .ski-book__total { border-top-color: var(--ski-line); }
:root[data-theme="dark"] .ski-book__total b { color: var(--primary); }
:root[data-theme="dark"] .ski-book__submit { background: var(--primary); color: var(--on-primary); }
:root[data-theme="dark"] .ski-book__submit:hover { background: var(--gold-soft); }
:root[data-theme="dark"] .ski-book__msg--ok { background: rgba(46, 71, 85, .09); color: rgba(250, 248, 243, .76); }
:root[data-theme="dark"] .ski-book__msg--err { background: rgba(46, 71, 85, .1); color: rgba(250, 248, 243, .64); }

:root[data-theme="dark"] .ski-home { background: var(--ski-ice); }
:root[data-theme="dark"] .split-hero__go { background: var(--primary); color: var(--on-primary); }
:root[data-theme="dark"] .split-hero__panel:hover .split-hero__go { background: var(--gold-soft); }
:root[data-theme="dark"] .split-hero__tag--now { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
