/* =========================================================
   AOO components/ski-details.css
   ---------------------------------------------------------
   Purpose:
   - Compacte skigebied-details in de sidebar (hoogte, pistes,
     pisteverdeling, liften) in de stijl van jullie infobox.
   ---------------------------------------------------------
   Notes:
   - Gebruikt bestaande card/sticky wrapper (hotel-info-box).
   - Werkt met lichte én donkere modus (met fallbacks).
   ========================================================= */

.aoo-ski-details {
  margin: 0;
}

.aoo-ski-details__row1 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.aoo-ski-details__k {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
  color: var(--aoo-text, var(--text, currentColor));
}

.aoo-ski-details__v {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.25;
  color: var(--aoo-text, var(--text, currentColor));
  white-space: nowrap;
}

.aoo-ski-details__hr {
  border: 0;
  height: 1px;
  margin: 14px 0;
  background: var(--aoo-border, var(--border, rgba(0,0,0,.12)));
}

/* Pisteverdeling bars */

.aoo-ski-bars {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.aoo-ski-bar {
  display: grid;
  grid-template-columns: 92px 1fr 48px;
  gap: 10px;
  align-items: center;
}

.aoo-ski-bar__label {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  color: var(--aoo-text, var(--text, currentColor));
}

.aoo-ski-bar__track {
  position: relative;
  height: 16px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--aoo-track, rgba(0,0,0,.08));
}

/* Dark mode fallback (als je tokens hebt, pakken die het over) */
@media (prefers-color-scheme: dark) {
  .aoo-ski-bar__track {
    background: var(--aoo-track, rgba(255,255,255,.12));
  }
  .aoo-ski-details__hr {
    background: var(--aoo-border, var(--border, rgba(255,255,255,.16)));
  }
}

.aoo-ski-bar__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 4px;
}

.aoo-ski-bar__fill.is-easy   { background: #3b82f6; }
.aoo-ski-bar__fill.is-medium { background: #ef4444; }
.aoo-ski-bar__fill.is-hard   { background: #111827; }

.aoo-ski-bar__km {
  font-weight: 600;
  font-size: 13px;
  line-height: 1.2;
  text-align: right;
  color: var(--aoo-text, var(--text, currentColor));
  white-space: nowrap;
}

/* Liften grid */

.aoo-ski-lifts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

.aoo-ski-lift {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.aoo-ski-lift__icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: .85;
}

.aoo-ski-lift__label {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  color: var(--aoo-text, var(--text, currentColor));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aoo-ski-lift__value {
  font-weight: 600;
  font-size: 13px;
  line-height: 1.2;
  color: var(--aoo-text, var(--text, currentColor));
}

/* Kleine screens (smalle sidebar) */
@media (max-width: 520px) {
  .aoo-ski-bar {
    grid-template-columns: 1fr;
  }
  .aoo-ski-bar__km {
    text-align: left;
  }
  .aoo-ski-lifts {
    grid-template-columns: 1fr;
  }
}
.aoo-single--hike .aoo-ski-details {
  display: grid;
  gap: 8px;
}

.aoo-single--hike .aoo-ski-details__row1 {
  padding: 8px 0;
  border-bottom: 1px solid var(--aoo-border, var(--border, rgba(0,0,0,.10)));
}

.aoo-single--hike .aoo-ski-details__row1:last-child {
  border-bottom: 0;
}

.aoo-single--hike .aoo-ski-details__v {
  text-align: right;
  white-space: normal;
}
/* =========================================================
   Hike details — sidebar wandelkaart
   Plaats onderaan: assets/css/aoo/components/ski-details.css
   ========================================================= */

.aoo-single--hike .aoo-hike-details {
  display: grid;
  gap: 0;
}

.aoo-single--hike .aoo-hike-details__group {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--aoo-muted, var(--muted, rgba(17,24,39,.58)));
}

.aoo-single--hike .aoo-hike-detail-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--aoo-border, var(--border, rgba(0,0,0,.10)));
}

.aoo-single--hike .aoo-hike-detail-row:last-child {
  border-bottom: 0;
}

.aoo-single--hike .aoo-hike-detail-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-size: 14px;
  font-weight: 750;
}

.aoo-single--hike .aoo-hike-detail-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--aoo-accent, #2563eb);
}

.aoo-single--hike .aoo-hike-detail-icon svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.aoo-single--hike .aoo-hike-detail-value {
  max-width: 180px;
  text-align: right;
  white-space: normal;
  font-size: 14px;
  font-weight: 800;
}

.aoo-single--hike .aoo-ski-details__hr {
  margin: 16px 0 14px;
}

@media (max-width: 520px) {
  .aoo-single--hike .aoo-hike-detail-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px 0;
  }

  .aoo-single--hike .aoo-hike-detail-value {
    max-width: none;
    text-align: left;
    padding-left: 29px;
  }
}

