/* relative root for TESTVERSJON badge */
body{position:relative}
/* TOCN v3-test: rik stasjonsvisning inne i .price-station-kortet.
   Endrer ikke base.css. Inneholder panelet, ingen overlapp til neste rad. */

/* Kortet skal klippe innhold og ikke la panelet lekke ut */
.price-station {
  overflow: hidden;
  min-width: 0;
}

.price-station-hours {
  grid-area: hours;
  margin-top: 0.4rem;
  padding-top: 0.35rem;
  border-top: 1px solid #d5e4d7;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.price-station-hours > .sd-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 0.55rem;
  min-width: 0;
  overflow: hidden;
}

.sd-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 1.25rem 1.5rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.15rem 0 0.35rem;
  font-size: 0.875rem;
  color: var(--text, #15181e);
  background: transparent;
  position: relative;
  z-index: 1;
}

.sd-col {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.sd-sect {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #393c41;
  margin: 0.85rem 0 0.45rem;
}

.sd-col > .sd-sect:first-child,
.sd-sect-gap {
  margin-top: 1rem;
}
.sd-col-prices > .sd-sect:first-child,
.sd-col-info > .sd-sect:first-child {
  margin-top: 0;
}

.sd-unit {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: #8e8e8e;
  margin-left: 6px;
  font-size: 0.75rem;
}

.sd-weeknote {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  color: #b3261e;
  margin-left: 6px;
  font-size: 0.75rem;
}

/* Farget timepris-grid (som tocn-ladepriser) */
.sd-plabel {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
}
.sd-plabel span {
  font-weight: 600;
}
.sd-plabel-gap {
  margin-top: 0.85rem;
}

.sd-pbar,
.sd-ticks {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 2px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.sd-pc {
  height: 28px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
}
.sd-pc span {
  pointer-events: none;
}
.sd-pc.g {
  background: #c6efce;
  color: #1d5e2b;
}
.sd-pc.y {
  background: #ffeb9c;
  color: #7a5b00;
}
.sd-pc.r {
  background: #ffc7ce;
  color: #8c1d27;
}
.sd-pc.na {
  background: #d9d9d9;
}
.sd-ticks {
  margin-top: 2px;
}
.sd-tk {
  font-size: 0.55rem;
  color: #8e8e8e;
  text-align: center;
  min-width: 0;
  overflow: hidden;
}
.sd-seg {
  font-size: 0.75rem;
  color: #5c5e62;
  margin-top: 0.35rem;
  line-height: 1.5;
  word-break: break-word;
}
.sd-seg b {
  color: #171a20;
  font-weight: 600;
}
.sd-legend {
  font-size: 0.75rem;
  color: #5c5e62;
  margin-top: 0.7rem;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.sd-legend-gap {
  margin-top: 0.35rem;
}
.sd-lg {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
}
.sd-lg.g {
  background: #c6efce;
}
.sd-lg.y {
  background: #ffeb9c;
  margin-left: 6px;
}
.sd-lg.r {
  background: #ffc7ce;
  margin-left: 6px;
}

/* Travelt */
.sd-dchips {
  margin-bottom: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.sd-dchip {
  font: inherit;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 12px;
  background: #fff;
  color: #4b5669;
  border: 1px solid #d5e4d7;
  cursor: pointer;
}
.sd-dchip.on {
  background: #15181e;
  color: #fff;
  border-color: #15181e;
}
.sd-busy {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 62px;
  border-bottom: 1px solid #ccd6cd;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.sd-bb {
  flex: 1;
  background: #b8bcc2;
  border-radius: 2px 2px 0 0;
  min-height: 2px;
  min-width: 0;
}
.sd-bb.hot {
  background: var(--tocn-red, #e31937);
}
.sd-bt {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: #8e8e8e;
  margin-top: 2px;
}
.sd-busynote {
  font-size: 0.8rem;
  color: #393c41;
  margin-top: 0.4rem;
}

/* Om stasjonen / fasiliteter / nærheten */
.sd-facts,
.sd-near {
  border-collapse: collapse;
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
}
.sd-facts td {
  padding: 0.4rem 0;
  border-bottom: 1px solid #dfe8e0;
  vertical-align: top;
  word-wrap: break-word;
}
.sd-facts td:first-child {
  color: #4b5669;
  width: 48%;
}
.sd-ok {
  color: #1b7f3b;
  font-weight: 600;
}
.sd-no {
  color: #b3261e;
  font-weight: 600;
}
.sd-ni {
  color: #8a8a8a;
  font-style: italic;
}
.sd-muted {
  color: #7a7f87;
  font-weight: 400;
}
.sd-small {
  font-size: 0.8rem;
}
.sd-src {
  font-size: 0.7rem;
  color: #8e8e8e;
  margin-top: 2px;
}
.sd-ams {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}
.sd-am {
  text-align: center;
  font-size: 0.72rem;
  color: #393c41;
  background: #fff;
  border: 1px solid #e1e9e2;
  border-radius: 8px;
  padding: 7px 2px;
  min-width: 0;
}
.sd-am svg {
  display: block;
  margin: 0 auto 3px;
}
.sd-am.off {
  color: #b5b5b5;
  text-decoration: line-through;
}
.sd-amnote {
  font-size: 0.78rem;
  color: #4b5669;
  margin-top: 0.4rem;
}
.sd-near td {
  font-size: 0.78rem;
  padding: 0.3rem 0.4rem 0.3rem 0;
  border-bottom: 1px solid #dfe8e0;
  vertical-align: top;
  word-wrap: break-word;
}
.sd-nt {
  color: #8e8e8e;
  width: 28%;
}
.sd-nh {
  color: #393c41;
}

/* Type 2 som pillepar (samme .price-toggle-stil som Billigst nå) */
.price-type2 {
  /* bruker .price-toggle + .price-toggle-btn fra base.css */
}

.sd-pagenote {
  font-size: 0.75rem;
  color: #6b6d70;
  margin-top: 0.4rem;
  line-height: 1.5;
}
.sd-pagenote a {
  color: inherit;
}

.tocn-testbadge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 50;
  font: 600 11px/1 Outfit, Arial, sans-serif;
  background: #e82127;
  color: #fff;
  border-radius: 4px;
  padding: 5px 9px;
  letter-spacing: 0.06em;
}

/* Kopi-/utskriftssperre gjelder også panelet (base.css dekker body; ekstra sikkerhet) */
.sd-wrap,
.sd-panel,
.sd-panel * {
  -webkit-user-select: none;
  user-select: none;
}

@media print {
  .sd-wrap,
  .sd-panel,
  .tocn-testbadge {
    visibility: hidden !important;
  }
}

@media (max-width: 860px) {
  .sd-panel {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
  .sd-col-info > .sd-sect:first-child {
    margin-top: 1rem;
  }
  .sd-pc span {
    display: none;
  }
  .sd-pc {
    height: 20px;
  }
  .sd-tk:nth-child(odd) {
    visibility: hidden;
  }
}

@media (max-width: 560px) {
  .sd-ams {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Tilhengervennlig-stemming */
.sd-vote {
  margin-top: 0.55rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #d5e4d7;
  border-radius: 8px;
  background: #f7faf7;
  max-width: 100%;
  box-sizing: border-box;
}
.sd-vote-title {
  font-weight: 600;
  font-size: 0.82rem;
  margin-bottom: 0.2rem;
}
.sd-vote-tally {
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}
.sd-vote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.35rem;
}
.sd-vote-btn {
  appearance: none;
  border: 1px solid #2f6b3a;
  background: #fff;
  color: #1e4d28;
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.sd-vote-btn:hover:not(:disabled) {
  background: #e8f3ea;
}
.sd-vote-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.sd-vote-coming {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a5a00;
  background: #ffe8a8;
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  margin-right: 0.25rem;
}
.sd-vote-thanks {
  font-size: 0.85rem;
  color: #1e4d28;
  font-weight: 600;
}
.sd-vote-note {
  margin: 0;
  font-size: 0.72rem;
  color: #5a6570;
  line-height: 1.35;
}

/* Medlemsbilder */
.sd-photos {
  margin-top: 0.15rem;
  max-width: 100%;
  box-sizing: border-box;
}
.sd-photos-count {
  font-size: 0.78rem;
  color: #5a6570;
  margin: 0 0 0.4rem;
}
.sd-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.6rem;
}
.sd-photos-empty,
.sd-photos-full,
.sd-photos-note,
.sd-photos-msg {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  color: #5a6570;
  line-height: 1.35;
}
.sd-photos-thumb {
  appearance: none;
  border: 1px solid #d5e4d7;
  background: #f3f6f3;
  padding: 0;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  display: block;
}
.sd-photos-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}
.sd-photos-thumb:hover {
  border-color: #2f6b3a;
}
.sd-photos-upload {
  margin-top: 0.5rem;
}
.sd-photos-btn {
  display: inline-block;
  appearance: none;
  border: 1px solid #2f6b3a;
  background: #fff;
  color: #1e4d28;
  border-radius: 999px;
  padding: 0.28rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.sd-photos-btn:hover {
  background: #e8f3ea;
}
.sd-photos-msg-ok { color: #1e4d28; font-weight: 600; }
.sd-photos-msg-err { color: #8a1f1f; }
.sd-photos-msg-info { color: #4a5560; }
.sd-photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 16, 12, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 1rem;
  box-sizing: border-box;
}
.sd-photo-lightbox[hidden] { display: none; }
.sd-photo-lightbox img {
  max-width: min(1100px, 96vw);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  pointer-events: none;
  -webkit-user-drag: none;
}
.sd-photo-lb-close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.sd-photo-lb-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: calc(90vh - 4.5rem);
}
.sd-photo-lb-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1.6rem 1rem 0.85rem;
  box-sizing: border-box;
  background: linear-gradient(transparent, rgba(10, 16, 12, 0.88) 45%);
}
.sd-photo-report-btn {
  appearance: none;
  border: 0;
  background: rgba(255,255,255,0.92);
  color: #1e4d28;
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}
.sd-photo-report-btn:hover { background: #fff; }
.sd-photo-report-form,
.sd-photo-report-thanks {
  background: rgba(255,255,255,0.96);
  color: #1a2420;
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
  font-size: 0.8rem;
  max-width: 22rem;
  width: 100%;
  box-sizing: border-box;
}
.sd-photo-report-form[hidden],
.sd-photo-report-thanks[hidden] { display: none; }
.sd-photo-report-why { margin: 0 0 0.35rem; font-weight: 600; }
.sd-photo-report-form label {
  display: block;
  margin: 0.15rem 0;
  cursor: pointer;
}
.sd-photo-report-detail {
  width: 100%;
  margin-top: 0.35rem;
  border: 1px solid #c5d0c6;
  border-radius: 4px;
  padding: 0.25rem 0.4rem;
  box-sizing: border-box;
}
.sd-photo-report-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.45rem;
}
.sd-photo-report-send,
.sd-photo-report-cancel {
  appearance: none;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.sd-photo-report-send {
  border: 1px solid #2f6b3a;
  background: #2f6b3a;
  color: #fff;
}
.sd-photo-report-cancel {
  border: 1px solid #c5d0c6;
  background: #fff;
  color: #1e4d28;
}
.sd-photo-report-thanks { font-weight: 600; text-align: center; }

/* Unngå at nettleseren flytter siden når lista tegnes på nytt under søk */
.price-explorer, .price-list, #pris, main { overflow-anchor: none; }

/* Ingen MiniGuiden-referanse ved utskrift (Terje 10.11.2026) */
@media print {
  body::after { content: none !important; display: none !important; }
}
