.wrap {
  max-width: 1156px;
  margin: 24px auto;
  padding: 0 16px 64px;
}

.pagehead {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(16, 24, 40, .12);
  padding: 18px;
}

.pagehead h1 {
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: -.3px;
  line-height: 1.15;
}

.headgrid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: start;
}

.headmeta {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.layout-library-bus-tours {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 12px;
  align-items: start;
}

@media (max-width: 960px) {
  .headgrid {
    grid-template-columns: 1fr;
  }

  .layout-library-bus-tours {
    grid-template-columns: 1fr;
  }

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

  .cta,
  .actions {
    justify-content: flex-start;
  }

  .turn {
    max-width: 220px;
  }
}

.address {
  font-size: 13px;
  color: #111827;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed #e5e7eb;
  background: #fff;
}

.address .organization {
  font-weight: 700;
  hyphens: initial;
}

.contact .person {
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.contact .small {
    color: #6b7280;
    font-size: 13px;
    margin-top: 2px;
}

.contact .links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.contact .name {
    font-weight: 750;
}

.card-library-bus-tours {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(16, 24, 40, .10);
  padding: 16px;
}

.card-library-bus-tours h2 {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: .1px;
}

.card-library-bus-tours .hint {
  margin-top: 4px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.45;
}

.card-stops, .card-contact, .card-cta {
  margin-top: 14px;
}

.card-cta {
    text-align: center;
    background: none;
    border: none;
    box-shadow: none;
}

.kv {
  display: grid;
  gap: 10px;
}

.kv .k {
  color: #6b7280;
  font-size: 12px;
}

.kv .v {
  color: #111827;
  font-weight: 650;
  font-size: 13px;
  text-align: right;
}

.contact .person {
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

.kv .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

.bus-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.bus-timeline__item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: start;
}

.bus-timeline__rail {
  position: relative;
  display: grid;
  justify-items: center;
  padding-top: 6px;
}

.bus-timeline__dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--c-text-primary-black);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-global-primary) 70%, transparent);
}

.bus-timeline__line {
  width: 2px;
  height: calc(100% + 14px);
  margin-top: 8px;
  background: color-mix(in srgb, var(--c-text-primary-black) 20%, transparent);
  border-radius: 999px;
}

.bus-timeline__card {
  background: color-mix(in srgb, var(--c-global-primary) 92%, transparent);
  border: 1px solid color-mix(in srgb, var(--c-text-primary-black) 12%, transparent);
  border-radius: 16px;
  padding: 14px 14px 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.bus-timeline__item:hover .bus-timeline__card {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .10);
  border-color: color-mix(in srgb, var(--c-text-primary-black) 18%, transparent);
}

.bus-timeline__header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.bus-timeline__time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 650;
  line-height: 1;
  background: var(--c-global-secondary);
  color: var(--c-text-primary-black);
  border: 1px solid color-mix(in srgb, var(--c-text-primary-black) 18%, transparent);
  white-space: nowrap;
}

.bus-timeline__meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.bus-timeline__no {
  font-size: .9rem;
  opacity: .75;
}

.bus-timeline__locality {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c-global-secondary) 65%, transparent);
  border: 1px solid color-mix(in srgb, var(--c-text-primary-black) 10%, transparent);
  font-weight: 550;
  font-size: .95rem;
}

.bus-timeline__address {
  font-weight: 550;
  line-height: 1.35;
}

@media (min-width: 640px) {
  .bus-timeline {
    gap: 16px;
  }

  .bus-timeline__card {
    padding: 16px 16px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bus-timeline__card {
    transition: none;
  }
}

.bus-timeline__dot {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 650;
  background: var(--c-global-secondary);
  color: var(--c-text-primary-black);
  border: 2px solid var(--c-text-primary-black);
}

.list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 12px;
}

details.tour {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(16, 24, 40, .12);
  overflow: clip;
}

summary {
  cursor: pointer;
  list-style: none;
  padding: 16px;
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 14px;
  align-items: center;
}

summary::-webkit-details-marker {
  display: none;
}

.turn {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 12px;
  background: var(--identity-color-soft);
  border: 1px solid hsl(var(--identity-color-h), var(--identity-color-s), var(--identity-color-l), 0.4);
}

.turn .k {
  font-size: 11px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.turn .v {
  font-size: 50px;
  line-height: 1;
  font-weight: 500;
}

.turn .day {
  font-size: 12px;
  color: #6b7280;
}

.meta {
  display: grid;
  gap: 8px;
}

.route {
  font-weight: 750;
  letter-spacing: -.15px;
}

.pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #6b7280;
  font-size: 12px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06);
}

.pill strong {
  color: #111827;
  font-weight: 650;
}

.pill.primary {
  border-color: rgba(31, 95, 255, .22);
  background: rgba(31, 95, 255, .06);
  color: #111827;
}

.cta {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid hsl(var(--identity-color-h), var(--identity-color-s), var(--identity-color-l), 1);
  background: #fff;
  color: #111827;
  text-decoration: none;
  font-size: 13px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06);
  white-space: nowrap;
}

.btn.primary {
  border-color: hsl(var(--identity-color-h), var(--identity-color-s), var(--identity-color-l), 0.4);
  background: hsl(var(--identity-color-h), var(--identity-color-s), var(--identity-color-l), 1);
  color: #fff;
}

.body {
  border-top: 1px solid #e5e7eb;
  padding: 0 16px 16px;
  display: grid;
  gap: 14px;
}

.section {
  display: grid;
  gap: 8px;
}

.section.stopslist {
  margin-top: 14px;
}

.section-title {
  font-size: 12px;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: #6b7280;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

/* ========================================
   MINIMAL DATE LIST
======================================== */

.dates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Base pill */
.date-pill {
  display: inline-flex;
  align-items: center;

  padding: 6px 10px;
  border-radius: 10px;

  font-size: 13px;
  font-weight: 500;

  border: 1px solid rgba(0,0,0,0.18);
  background: #fff;

  line-height: 1.2;
  white-space: nowrap;

  font-variant-numeric: tabular-nums;
}

/* Status text */
.date-pill__status {
  margin-left: 6px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.75;
  letter-spacing: 0.02em;
}

/* ACTIVE */
.date-pill--active {
  border-color: rgba(0, 110, 60, 0.35);
  background: rgba(0, 110, 60, 0.05);
  color: rgba(0, 85, 45, 0.95);
}

/* CANCELLED */
.date-pill--cancelled {
  border-color: rgba(140, 30, 30, 0.35);
  background: rgba(140, 30, 30, 0.05);
  color: rgba(110, 25, 25, 0.85);
  opacity: 0.75;
}

/* Optional: separator dot */
.date-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 6px;
  background: currentColor;
  opacity: 0.6;
}

.stops {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  overflow: clip;
  background: #fff;
}

.stoprow {
  display: grid;
  grid-template-columns: 140px minmax(220px, 1fr) 1.2fr;
  gap: 12px;
  padding: 12px;
  align-items: start;
  border-top: 1px solid #e5e7eb;
}

.stoprow:first-child {
  border-top: none;
}

.stoprow:nth-child(odd) {
  background: #fafafa;
}

.time {
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  width: fit-content;
  white-space: nowrap;
}

.time .sep {
  color: #6b7280;
}

.names {
  display: grid;
  gap: 6px;
}

.da-name {
  font-weight: 750;
  line-height: 1.25;
}

.local-name {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.3;
}

.local-name .tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 11px;
  margin-right: 6px;
  color: #6b7280;
}

@media (max-width: 900px) {
  summary {
    grid-template-columns: 1fr;
  }

  .cta {
    justify-content: flex-start;
  }

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

  .time {
    justify-self: start;
  }
}

:root {
  --identity-color-soft: hsl(var(--identity-color-h), var(--identity-color-s), var(--identity-color-l), 0.1);
}

.library-bus-tours .content-list-library-bus-tour,
.wrap {
  font-family: "Noto Sans", sans-serif;
}

/* ========================================
   BUS TOUR DATES
======================================== */

/* List */
.bus-tour-dates__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

/* Item: flad "panel" */
.bus-tour-dates__item {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.14);
  border-radius: 10px;
  overflow: hidden;
}

/* Diskret status-markør (venstre kant) */
.bus-tour-dates__item--active {
  border-left: 4px solid rgba(0, 110, 60, 0.55);
}

.bus-tour-dates__item--cancelled {
  border-left: 4px solid rgba(140, 30, 30, 0.55);
  opacity: 0.92;
}

/* Row layout: kompakt og stabil */
.tour-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem 0.75rem;
}

/* ========================================
   DATE – ONE LINE PILL (very subdued)
======================================== */

.tour-date-inline {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;

  padding: 0.28rem 0.55rem;
  border-radius: 8px;

  border: 1px solid rgba(0,0,0,0.14);
  background: rgba(0,0,0,0.015);

  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  line-height: 1.1;
}

.tour-date-inline__day {
  font-weight: 750;
  letter-spacing: -0.01em;
}

.tour-date-inline__month {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.78;
}

.tour-date-inline__year {
  font-weight: 650;
  opacity: 0.55;
  position: relative;
}

.tour-date-inline__year::before {
  content: "•";
  opacity: 0.35;
  margin: 0 0.35rem 0 0.15rem;
}

/* Statusfarver: meget afdæmpede */
.bus-tour-dates__item--active .tour-date-inline {
  border-color: rgba(0, 110, 60, 0.22);
  background: rgba(0, 110, 60, 0.04);
}

.bus-tour-dates__item--active .tour-date-inline__day {
  color: rgba(0, 110, 60, 0.9);
}

.bus-tour-dates__item--cancelled .tour-date-inline {
  border-color: rgba(140, 30, 30, 0.22);
  background: rgba(140, 30, 30, 0.04);
}

.bus-tour-dates__item--cancelled .tour-date-inline__day {
  color: rgba(140, 30, 30, 0.9);
}

.bus-tour-dates__item--cancelled .tour-date-inline__month,
.bus-tour-dates__item--cancelled .tour-date-inline__year {
  opacity: 0.5;
}

/* ========================================
   META CHIPS
======================================== */

.tour-row__meta {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 0.4rem;
  align-items: center;
  justify-content: end;
}

.badge,
.meta-chip {
  height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.55rem;
  border-radius: 8px;

  font-size: 0.82rem;
  white-space: nowrap;

  border: 1px solid rgba(0,0,0,0.14);
  background: rgba(0,0,0,0.015);
}

/* Bus: bare neutral label */
.badge--bus {
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge--bus::before {
  content: "";
  display: inline-block;
  width: 29px;
  height: 16px;
  background: url("../img/busicon.svg") no-repeat center;
  background-size: contain;
  flex-shrink: 0;
}

/* Status: kun tekstfarve, ikke “badge i badge” */
.badge--status {
  font-weight: 650;
}

.badge--status-active {
  color: rgba(0, 110, 60, 0.9);
}

.badge--status-cancelled {
  color: rgba(140, 30, 30, 0.9);
}

/* Meta chip: nøgtern typografi */
.meta-chip {
  gap: 0.35rem;
}

.meta-chip__k {
  color: rgba(0,0,0,0.62);
}

.meta-chip__v {
  font-weight: 600;
}

/* ========================================
   Responsive
======================================== */

@media (max-width: 768px) {

    .tour-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .tour-date-inline {
        grid-column: 1 / -1;
    }

    .tour-row__meta {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-auto-flow: row;          /* VIGTIG */
        grid-auto-columns: unset;     /* nulstil */
        justify-content: stretch;     /* fjern justify-content:end */
        gap: 0.4rem;
    }
    .tour-date-inline {
        font-size: 1.3rem;
        line-height: 1.5;
    }
}

.content-list-library-bus-tour {
    max-width: 1156px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
    margin-top: 12px;
    margin-bottom: 12px;
}

/* 
.library-bus-tours .content-list-page__heading::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 28px;
  margin-left: 8px;
  background: url("../img/busicon.svg") no-repeat center;
  background-size: contain;
  vertical-align: middle;
}
  */
