/* station-page.css — Shared styles for all ski station detail pages
   I Love Canada by Viajes Scibasku
   ================================================================ */

/* ── 0. CSS VARIABLES ──────────────────────────────────────────── */
:root {
  --gold: #d4af37;
  --gold-soft: rgba(212,175,55,.12);
  --gold-glow: rgba(212,175,55,.25);
  --navy: #0a1628;
  --navy-mid: #0d2847;
  --navy-light: #112d50;
  --ice: #1fb4d1;
  --accent: #1fb4d1;
  --accent-soft: rgba(31,180,209,.1);
  --text: #e8edf3;
  --text-dim: #8a9bb5;
  --white: #fff;
  --radius: 12px;
  --radius-sm: 8px;
}

/* ── 1. RESET & BASE ──────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Montserrat', sans-serif;
  background: var(--navy);
  color: var(--text);
  line-height: 1.7;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--white); }

/* ── 2. TOPBAR ─────────────────────────────────────────────────── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,22,40,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212,175,55,.15);
  padding: 0 2rem; height: 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.topbar .back {
  display: flex; align-items: center; gap: .5rem;
  font-size: .95rem; color: var(--gold);
}
.topbar .back svg { width: 18px; height: 18px; fill: var(--gold); }
.topbar .brand { font-size: 1.1rem; font-weight: 700; color: var(--white); }
.topbar .brand span { color: var(--gold); }

/* ── 3. BREADCRUMBS ────────────────────────────────────────────── */
.breadcrumbs {
  max-width: 1100px; margin: 0 auto;
  padding: .8rem 1.5rem 0; font-size: .8rem;
}
.breadcrumbs a { color: var(--text-dim); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs span { color: var(--text-dim); margin: 0 .4rem; }
.breadcrumbs .current { color: var(--gold); }

/* ── 4. HERO ───────────────────────────────────────────────────── */
.hero {
  margin-top: 56px; position: relative;
  height: 50vh; min-height: 400px;
  background-position: center; background-size: cover; background-repeat: no-repeat;
  display: flex; align-items: flex-end;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--navy) 0%, rgba(13,40,71,.55) 50%, rgba(13,40,71,.55) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  padding: 2.5rem 2rem; max-width: 1100px; margin: 0 auto; width: 100%;
}
.hero .badge {
  display: inline-block;
  background: var(--gold-soft); border: 1px solid var(--gold);
  color: var(--gold); padding: .3rem 1rem; border-radius: 20px;
  font-size: .75rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 700;
  color: var(--white); margin-bottom: .5rem;
}
.hero .subtitle { font-size: 1.05rem; color: var(--text-dim); }

/* ── 5. QUICK FACTS GRID ──────────────────────────────────────── */
.quick-facts {
  max-width: 1100px; margin: -2rem auto 0;
  position: relative; z-index: 3;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px; background: rgba(212,175,55,.15);
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(212,175,55,.15);
}
.quick-facts .fact {
  background: var(--navy-mid); padding: 1.2rem 1rem; text-align: center;
}
.quick-facts .fact-value {
  font-size: 1.3rem; font-weight: 700; color: var(--gold);
}
.quick-facts .fact-label {
  font-size: .75rem; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 1px; margin-top: .2rem;
}

/* ── 6. CONTAINER & SECTIONS ──────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 3rem 0; }
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700;
  color: var(--white); margin-bottom: .3rem;
}
.section-subtitle {
  color: var(--text-dim); margin-bottom: 2rem; font-size: .95rem;
}

/* ── 7. DATA TABLES ───────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto; margin: 1rem 0;
  border: 1px solid rgba(212,175,55,.15); border-radius: var(--radius);
}
.data-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.data-table th {
  background: rgba(212,175,55,.15); color: var(--gold);
  text-align: left; padding: .8rem 1rem;
  font-size: .75rem; text-transform: uppercase; letter-spacing: 1px;
  border-bottom: 2px solid var(--gold); font-weight: 700; white-space: nowrap;
}
.data-table td {
  padding: .6rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: .85rem;
}
.data-table tr:hover { background: rgba(31,180,209,.05); }
.data-table .price { color: var(--ice); font-weight: 700; font-size: .95rem; }
.data-table .dates {
  font-size: .78rem; color: var(--text-dim); white-space: nowrap;
}
.data-table small { color: var(--text-dim); font-size: .75rem; }

/* EUR-first pricing display */
.price-eur {
  display: block; color: var(--ice); font-weight: 700; font-size: .95rem;
}
.price-cad {
  display: block; color: var(--text-dim); font-size: .78rem; font-weight: 400;
}

/* ── 8. EXCURSIONS GRID ───────────────────────────────────────── */
.exc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.exc-card {
  background: var(--navy-mid);
  border: 1px solid rgba(212,175,55,.1);
  border-radius: var(--radius-sm);
  padding: 1.2rem; transition: .3s;
}
.exc-card:hover { border-color: var(--gold); }
.exc-card h4 { font-size: .95rem; color: var(--white); margin-bottom: .3rem; }
.exc-card .exc-provider {
  font-size: .75rem; color: #a3b4c9; margin-bottom: .5rem;
  text-transform: uppercase; letter-spacing: .5px;
}
.exc-card .exc-price { color: var(--ice); font-weight: 700; }
.exc-card small { color: var(--text-dim); font-size: .8rem; margin-left: .3rem; }

/* ── 9. CTA SECTION ───────────────────────────────────────────── */
.cta-section {
  text-align: center; padding: 3rem 1.5rem; margin: 2rem 0;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
  border: 1px solid rgba(212,175,55,.15); border-radius: var(--radius);
}
.cta-section h2 {
  font-family: 'Playfair Display', serif;
  color: var(--white); margin-bottom: .5rem; font-size: 1.5rem;
}
.cta-section p { color: var(--text-dim); margin-bottom: 1.5rem; }

/* ── 10. BUTTONS ──────────────────────────────────────────────── */
.btn-gold {
  display: inline-block; background: var(--gold); color: var(--navy);
  padding: .9rem 2.5rem; border-radius: 30px;
  font-weight: 700; font-size: 1rem;
  transition: .3s; border: none; cursor: pointer;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--gold-glow); color: var(--navy);
}
.btn-outline {
  display: inline-block; border: 2px solid var(--ice); color: var(--ice);
  padding: .8rem 2rem; border-radius: 30px;
  font-weight: 600; font-size: .95rem; margin-left: 1rem; transition: .3s;
}
.btn-outline:hover { background: var(--ice); color: var(--navy); }
.btn-buy {
  display: inline-block; background: #d4af37;
  color: #0a1628 !important; padding: 8px 16px;
  border-radius: 20px; font-weight: 700; font-size: 0.8rem;
  text-decoration: none !important; transition: all 0.3s;
}
.btn-buy:hover { background: #e8c84a; }

/* ── 11. FOOTER ───────────────────────────────────────────────── */
footer {
  border-top: 1px solid rgba(212,175,55,.15);
  padding: 2rem; text-align: center;
  color: var(--text-dim); font-size: .8rem;
}

/* ── 12. WHATSAPP FLOAT ───────────────────────────────────────── */
.whatsapp-float {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 998;
  background: #25d366; color: #fff;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer; border: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37,211,102,0.6);
}
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }


/* ══════════════════════════════════════════════════════════════════
   FORFAIT TAB SYSTEM
   ══════════════════════════════════════════════════════════════════ */

/* Tab bar container */
.forfait-tabs {
  display: flex; gap: 0; align-items: stretch;
  border-bottom: 2px solid rgba(212,175,55,.2);
  margin-bottom: 1.2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.forfait-tabs::-webkit-scrollbar { display: none; }

/* Individual tab button */
.forfait-tab {
  flex: 0 0 auto;
  background: none; border: none;
  color: var(--text-dim);
  font-family: 'Montserrat', sans-serif;
  font-size: .85rem; font-weight: 600;
  padding: .8rem 1.4rem;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: color .25s;
}
.forfait-tab:hover { color: var(--white); }

/* Active tab — gold underline */
.forfait-tab.active {
  color: var(--gold);
}
.forfait-tab.active::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  border-radius: 3px 3px 0 0;
}

/* Tab badge — option count */
.forfait-tab .tab-count {
  display: inline-block;
  background: rgba(212,175,55,.15);
  color: var(--text-dim);
  font-size: .65rem; font-weight: 500;
  padding: .15rem .5rem; border-radius: 10px;
  margin-left: .4rem;
  vertical-align: middle;
}
.forfait-tab.active .tab-count {
  background: rgba(212,175,55,.25);
  color: var(--gold);
}

/* Tab content panel */
.forfait-tab-content {
  display: none;
}
.forfait-tab-content.active {
  display: block;
}
/* Sub-section headers within forfait tabs */
.forfait-subsection-title {
  font-family: 'Montserrat', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 1.2rem 0 .5rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid rgba(212,175,55,.15);
}
.forfait-subsection-title:first-child {
  margin-top: 0;
}
.forfait-subsection-restricted {
  color: var(--text-dim);
  border-bottom-color: rgba(138,155,181,.15);
}



/* ══════════════════════════════════════════════════════════════════
   DURATION FILTER PILLS
   ══════════════════════════════════════════════════════════════════ */

.duration-pills {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-bottom: 1rem;
}
.duration-pill {
  background: rgba(212,175,55,.08);
  border: 1px solid rgba(212,175,55,.2);
  color: var(--text-dim);
  font-family: 'Montserrat', sans-serif;
  font-size: .78rem; font-weight: 600;
  padding: .4rem 1rem; border-radius: 20px;
  cursor: pointer; transition: all .25s;
  white-space: nowrap;
}
.duration-pill:hover {
  border-color: var(--gold); color: var(--white);
}
.duration-pill.active {
  background: var(--gold); color: var(--navy);
  border-color: var(--gold);
}
.duration-pill .pill-count {
  font-size: .65rem; font-weight: 400;
  opacity: .7; margin-left: .3rem;
}


/* ══════════════════════════════════════════════════════════════════
   STATION FACTS PANEL
   ══════════════════════════════════════════════════════════════════ */

.station-facts {
  background: var(--navy-mid);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin: 1.5rem 0;
  max-width: 100%;
}
.station-facts h3 {
  color: var(--gold); margin-top: 0; margin-bottom: .8rem;
  font-family: 'Playfair Display', serif; font-size: 1.1rem;
}
.station-facts table {
  width: 100%; border-collapse: collapse; color: var(--text-dim);
}
.station-facts td {
  padding: 6px 0; font-size: .9rem;
}
.station-facts strong { color: var(--text); }


/* ══════════════════════════════════════════════════════════════════
   RICH CONTENT — LIGHT BG SECTIONS
   ══════════════════════════════════════════════════════════════════ */

.rich-section {
  padding: 3rem 0;
  background: #fff;
}
.rich-section-alt {
  padding: 3rem 0;
  background: #f8f9fa;
}
.rich-section-dark {
  padding: 3rem 0;
  background: var(--navy);
}

.rich-section h2,
.rich-section-alt h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; color: #0a1628;
  border-left: 4px solid var(--gold);
  padding-left: 1rem; margin-bottom: 2rem;
}
.rich-section-dark h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; color: var(--gold);
  border-left: 4px solid var(--gold);
  padding-left: 1rem; margin-bottom: 2rem;
}

/* 2-column editorial grid */
.rich-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem; align-items: start;
}
.rich-grid p {
  color: #333; line-height: 1.7;
}

/* ── Pista / Run cards ────────────────────────────────────────── */
.pista-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.pista-card {
  background: #fff; padding: 1.5rem;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
/* Difficulty colors via modifier */
.pista-card--green  { border-left: 4px solid #2e7d32; }
.pista-card--blue   { border-left: 4px solid #1565C0; }
.pista-card--black  { border-left: 4px solid #212121; }
.pista-card--double { border-left: 4px solid #b71c1c; }

.pista-card h4 { color: #0a1628; margin-bottom: .4rem; }
.pista-card .pista-level {
  font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em;
}
.pista-card p {
  color: #555; margin-top: .8rem; line-height: 1.6; font-size: .95rem;
}

/* ── Apres-Ski cards ──────────────────────────────────────────── */
.apres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.apres-card {
  background: #fff;
  border-left: 4px solid var(--gold);
  padding: 1.5rem; border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.apres-card h4 { color: #0a1628; margin-bottom: .8rem; }
.apres-card p { color: #555; line-height: 1.6; font-size: .95rem; }

/* ── Info / How to get there cards ────────────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.info-card {
  background: rgba(255,255,255,0.05);
  border-left: 3px solid var(--gold);
  padding: 1.5rem; border-radius: 4px;
}
.info-card--accent { border-left-color: var(--ice); }
.info-card h4 {
  color: var(--gold); margin-bottom: .8rem;
}
.info-card--accent h4 { color: var(--ice); }
.info-card p {
  color: var(--text-dim); line-height: 1.6; font-size: .95rem;
}


/* ══════════════════════════════════════════════════════════════════
   SEARCH FILTER INPUT
   ══════════════════════════════════════════════════════════════════ */

.forfait-search {
  width: 100%; padding: .7rem 1rem; margin-bottom: .8rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(212,175,55,.25);
  border-radius: var(--radius-sm);
  color: #fff; font-family: inherit; font-size: .9rem;
  outline: none; box-sizing: border-box;
}
.forfait-search:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,.1);
}
.forfait-search::placeholder { color: var(--text-dim); }


/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE
   ══════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .hero { height: 40vh; min-height: 320px; }
  .hero h1 { font-size: 1.6rem; }

  .quick-facts {
    grid-template-columns: repeat(2, 1fr);
    margin: -1.5rem 1rem 0;
  }

  .exc-grid { grid-template-columns: 1fr; }

  .btn-outline { margin-left: 0; margin-top: .8rem; display: block; }

  /* Tabs: horizontal scroll on mobile */
  .forfait-tabs { gap: 0; padding-bottom: 2px; }
  .forfait-tab { padding: .7rem 1rem; font-size: .8rem; }

  /* Rich content grids go single-column */
  .rich-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .pista-grid { grid-template-columns: 1fr; }
  .apres-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .topbar { padding: 0 1rem; }
  .topbar .brand { font-size: .95rem; }
  .hero-content { padding: 1.5rem 1rem; }
  .container { padding: 0 1rem; }

  .forfait-tab { padding: .6rem .8rem; font-size: .75rem; }
  .duration-pill { padding: .35rem .8rem; font-size: .72rem; }
}

/* ── Station Facts Section — fixed below forfaits ──────────────── */
.station-facts-section {
  padding: 1rem 0 2rem;
}
