/* #10692: ski-slo.si – izbira smučišča (Views/Start/Index.aspx) in stran Krvavec (Views/Krvavec/Index.aspx), po potrjenem demu
   (Dino 26. 11.). Modra podoba je iz site.css (glava, plošče, gumbi); tu so samo deli, ki jih Kope nima. */

[hidden] { display: none !important; }

/* ===== izbira smučišča ===== */
.pick {
  display: grid;
  gap: 12px;
}
.resort {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: inherit;
}
.resort:hover,
.resort:focus {
  text-decoration: none;
  color: inherit;
  border-color: #99b3d9;
}
.resort img {
  width: 92px;
  height: 78px;
  object-fit: contain;
}
.resort .n {
  font-size: 18px;
  font-weight: 700;
  color: #004080;
}
.resort .d {
  color: #444;
  font-size: 13.5px;
}
.resort .go {
  margin-top: 6px;
  display: inline-block;
  font-weight: 600;
  color: #007bff;
  font-size: 13.5px;
}
.resort:hover .go,
.resort:focus .go {
  text-decoration: underline;
}
.hint {
  text-align: center;
  color: #666;
  font-size: 12.5px;
  margin: 14px 0 0;
}

/* ===== #10859: 3D mapa prog pod izbiro smučišča (Views/Start/Index.aspx) ===== */
.map3d {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  border-radius: 10px;
  overflow: hidden;
  background: #0f1d2e;
  color: #fff;
  box-shadow: 0 4px 14px rgba(15, 29, 46, 0.22);
}
.map3d img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.map3d-txt {
  padding: 12px 14px 12px 0;
  display: grid;
  gap: 4px;
}
.map3d-txt b {
  font-size: 20px;
}
.map3d-txt span {
  font-size: 13.5px;
  color: #cfdbe8;
}
.map3d-txt .map3d-new {
  justify-self: start;
  background: #f0a020;
  color: #0f1d2e;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 1px 8px;
  border-radius: 4px;
}
.map3d-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.map3d-btns a {
  background: #ffd23f;
  color: #0f1d2e;
  font-weight: 700;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
}
.map3d-btns a:hover,
.map3d-btns a:focus {
  background: #fff;
  color: #0f1d2e;
  text-decoration: none;
}
@media (max-width: 520px) {
  .map3d {
    grid-template-columns: minmax(0, 1fr);
  }
  .map3d-txt {
    padding: 0 14px 14px;
  }
}

/* ===== Krvavec: polji z gumbom »Skeniraj« v polju ===== */
.scan {
  position: relative;
  display: flex;
  align-items: center;
}
.form-control.inp {
  padding-right: 104px;
}
/* številka KeyCarda v eni vrstici; pisavo do 11 px zmanjša krvavec-nalaganje.js (fitCard) */
.form-control.inp.num {
  padding-left: 10px;
  padding-right: 100px;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.form-control.inp.err {
  border-color: #d9534f;
  background: #fff6f6;
}
.form-control.inp.okb {
  border-color: #5cb85c;
}
.bscan {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  height: 36px;
  padding: 5px 10px;
  border: 1px solid #adb5bd;
  border-radius: 6px;
  background: #f8f9fa;
  color: #212529;
  font: 600 13px "Segoe UI", Roboto, Arial, sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
.bscan:hover {
  background: #e2e6ea;
}
/* kupon je v redu, številke še ni: naslednji korak */
.bscan.next {
  background: #007bff;
  color: #fff;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(51, 122, 183, 0.35);
}
.help {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #004080;
}

/* izid preverbe kupona */
.cinfo {
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13.5px;
  white-space: pre-line;
}
.cinfo.ok {
  background: #dff0d8;
  color: #2b542c;
}
.cinfo.bad {
  background: #f2dede;
  color: #a94442;
}
.cinfo b {
  font-weight: 600;
}

/* sporočilo pod številko KeyCarda (pravilna, napačna kontrolna števka, branje fotografije) */
.fmsg {
  margin-top: 4px;
  font-size: 12.5px;
  white-space: pre-line;
}
.fmsg.ok {
  color: #2b7a3d;
}
.fmsg.bad {
  color: #c0392b;
}
.fmsg.muted {
  color: #666;
}

/* sporočilo pod NALOŽI (besedila strežnika z vrsticami) */
.kstatus {
  margin: 12px 0 0;
  white-space: pre-line;
}
.alert .big {
  display: block;
  font-size: 15.5px;
  margin-bottom: 4px;
}
.alert.kvs {
  display: grid;
  gap: 3px;
}
.alert.kvs .big {
  margin-bottom: 2px;
}
/* številka KeyCarda v naslovu uspeha v eni vrstici (krvavec-nalaganje.js, titleWithCard) */
.alert .kcnum {
  white-space: nowrap;
}
/* pod 340 px številka v eni vrstici ne gre v okvir – tam se sme prelomiti (brez vodoravnega drsnika) */
@media (max-width: 339px) {
  .alert .kcnum {
    white-space: normal;
  }
}
.alert.kvs .k {
  font-weight: 600;
}
.alert.kvs .ready {
  margin-top: 4px;
  font-weight: 600;
}

.howto {
  margin: 0;
  padding-left: 20px;
}

/* ===== Kje je številka na kartici (odpre se s klikom) ===== */
details.sd > summary {
  cursor: pointer;
  list-style: none;
}
details.sd > summary::-webkit-details-marker {
  display: none;
}
details.sd > summary::before {
  content: "\25B8\00A0";
}
details.sd[open] > summary::before {
  content: "\25BE\00A0";
}
details.sd:not([open]) > summary {
  border-bottom: 0;
  border-radius: 8px;
}
.where {
  display: grid;
  gap: 8px;
}
.where p {
  margin: 0;
}
/* oblika številke s kartice v besedilu (KrvWhereText {0}) */
.where .mono {
  font-family: Consolas, "SF Mono", Menlo, monospace;
  white-space: nowrap;
}
.zoomcap {
  font-size: 12.5px;
  color: #555;
  margin: -2px 0 0;
}
svg.kc {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== kamera (številka KeyCarda: krvavec-kamera.js) in skener QR kupona ===== */
.cam {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2000;
  background: #0b1420;
  color: #fff;
  overflow-y: auto;
  font-size: 15px;
  line-height: 1.4;
}
.cam-box {
  max-width: 520px;
  margin: 0 auto;
  padding: 12px 12px 24px;
}
.cam-hint {
  margin: 0 0 10px;
}
/* okvir branja: velikost in lega sta del branja (izrez iz slike kamere v krvavec-kamera.js) */
.cam-wrap {
  position: relative;
  width: 100%;
  padding-top: 75%;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}
.cam-wrap video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.guide {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 39%;
  height: 22%;
  border: 3px solid #fff;
  border-radius: 8px;
  box-shadow: 0 0 0 2000px rgba(0, 0, 0, 0.45);
}
.guide.hit {
  border-color: #3ddc84;
}
.cam-status {
  margin: 10px 0 0;
  min-height: 1.3em;
  font-weight: 600;
}
.cam-status.warn {
  color: #ffd27a;
}
.cam-tip {
  margin: 6px 0 0;
  color: #ffd27a;
  font-size: 14px;
}
.cam-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  align-items: center;
}
.cam-btn {
  display: block;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: #22344a;
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.cam-tools .cam-btn {
  flex: 1 1 auto;
}
.zoom {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 100%;
  font-size: 14px;
  font-weight: 400;
  margin: 0;
}
.zoom input {
  flex: 1;
}
.cam-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.cam-row .cam-btn {
  flex: 1;
}
.cam-close {
  background: #fff;
  color: #0b1420;
}
/* skener QR kupona: kvadratna slika z okvirjem na sredini */
.qr-wrap {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}
.qr-wrap video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.qr-frame {
  position: absolute;
  left: 20%;
  top: 20%;
  width: 60%;
  height: 60%;
  border: 3px solid #fff;
  border-radius: 8px;
  box-shadow: 0 0 0 2000px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
