/* Ski Hills. Same filing type and tag buttons as the rest of the archive. */

.sh-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75em;
  margin: 0.2rem 0 0.45rem;
}

.sh-name {
  margin: 0;
  color: #000;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sh-zoom {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-left: auto;
}

.sh-find {
  -webkit-appearance: none;
  appearance: none;
  width: 9.5rem;
  margin: 0;
  padding: 0.22em 0.55em;
  border: 1px solid rgba(0, 0, 0, 0.55);
  border-radius: 0;
  background: transparent;
  color: #111;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.sh-find::placeholder {
  color: rgba(0, 0, 0, 0.45);
}

.sh-find:focus {
  outline: 1px solid #000;
  outline-offset: 2px;
}

.sh-zslider {
  -webkit-appearance: none;
  appearance: none;
  width: 170px;
  height: 22px;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  touch-action: none;
}

.sh-zslider:active {
  cursor: grabbing;
}

.sh-zslider:focus {
  outline: none;
}

.sh-zslider::-webkit-slider-runnable-track {
  height: 3px;
  border: 0;
  border-radius: 3px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.75) var(--sh-p, 0%), rgba(0, 0, 0, 0.14) var(--sh-p, 0%));
}

.sh-zslider::-moz-range-track {
  height: 3px;
  border: 0;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.14);
}

.sh-zslider::-moz-range-progress {
  height: 3px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.75);
}

.sh-zslider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5.5px;
  border: 0;
  border-radius: 50%;
  background: #111;
  box-shadow: 0 0 0 3px rgba(243, 239, 228, 0.95), 0 1px 4px rgba(0, 0, 0, 0.25);
}

.sh-zslider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: #111;
  box-shadow: 0 0 0 3px rgba(243, 239, 228, 0.95), 0 1px 4px rgba(0, 0, 0, 0.25);
}

.sh-note,
.sh-count,
.sh-credit {
  margin: 0;
  max-width: 42em;
  color: rgba(0, 0, 0, 0.55);
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: 0.04em;
}

.sh-count {
  margin: 0;
  color: rgba(0, 0, 0, 0.75);
}

.sh-tags {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  margin-top: 0.9rem;
}

.sh-prov,
.sh-sub,
.sh-kinds {
  display: block;
}

.sh-sub {
  margin-left: 0;
}

.sh-sub[hidden] {
  display: none;
}

.sh-tag {
  display: inline-block;
  box-sizing: border-box;
  margin: 0 0.5em 0.35em 0;
  padding: 0.25em 0.75em;
  border: 1px solid rgba(0, 0, 0, 0.55);
  border-radius: 0;
  background: transparent;
  color: #111;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.sh-tag:hover {
  border-color: #000;
  background: rgba(0, 0, 0, 0.04);
}

.sh-tag.sh-on {
  background: #111;
  border-color: #111;
  color: #fff;
}

.sh-tag:focus-visible {
  outline: 1px solid #000;
  outline-offset: 2px;
}

.sh-grid {
  display: grid;
  grid-template-columns: repeat(var(--sh-cols, 6), minmax(0, 1fr));
  gap: 1.15rem 0.85rem;
  margin-top: 1.1rem;
}

@media (max-width: 767px) {
  .sh-zoom {
    width: 100%;
    margin-left: 0;
  }

  .sh-find {
    flex: 0 0 8.2rem;
    width: 8.2rem;
  }

  .sh-zslider {
    flex: 1 1 auto;
    width: auto;
    max-width: 100%;
  }
}

.sh-hill {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
}

.sh-hill[hidden] {
  display: none;
}

.sh-hill svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  background: transparent;
}

.sh-hill polyline,
.sh-lb polyline {
  fill: none;
  stroke: #111;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.sh-hill polyline {
  stroke-width: var(--sh-stroke, 0.3px);
}

.sh-lb polyline {
  stroke-width: 1.15;
}

.sh-hill polyline.sh-contour {
  stroke: rgba(0, 0, 0, 0.1);
  stroke-width: var(--sh-contour, 0.17px);
}

.sh-lb polyline.sh-contour {
  stroke: rgba(0, 0, 0, 0.1);
  stroke-width: 0.65;
}

.sh-hill polyline.sh-contour-shade,
.sh-lb polyline.sh-contour-shade {
  fill: none;
  pointer-events: none;
}

.sh-hill polyline.sh-contour-shade[data-depth="1"],
.sh-lb polyline.sh-contour-shade[data-depth="1"] {
  stroke: rgba(0, 0, 0, 0.14);
}

.sh-hill polyline.sh-contour-shade[data-depth="2"],
.sh-lb polyline.sh-contour-shade[data-depth="2"] {
  stroke: rgba(0, 0, 0, 0.18);
}

.sh-hill polyline.sh-contour-shade[data-depth="3"],
.sh-lb polyline.sh-contour-shade[data-depth="3"] {
  stroke: rgba(0, 0, 0, 0.22);
}

.sh-hill polyline.sh-contour-shade[data-depth="4"],
.sh-lb polyline.sh-contour-shade[data-depth="4"] {
  stroke: rgba(0, 0, 0, 0.26);
}

.sh-hill line,
.sh-lb line {
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
}

.sh-hill line {
  stroke-width: var(--sh-key, 0.85px);
}

.sh-lb line {
  stroke-width: 3.2;
}

.sh-hill polyline.sh-easy,
.sh-lb polyline.sh-easy,
.sh-hill line.sh-easy,
.sh-lb line.sh-easy { stroke: #1b7a32; }
.sh-hill polyline.sh-intermediate,
.sh-lb polyline.sh-intermediate,
.sh-hill line.sh-intermediate,
.sh-lb line.sh-intermediate { stroke: #1a4f9c; }
.sh-hill polyline.sh-advanced,
.sh-lb polyline.sh-advanced,
.sh-hill line.sh-advanced,
.sh-lb line.sh-advanced { stroke: #111; }
.sh-hill polyline.sh-unrated,
.sh-lb polyline.sh-unrated { stroke: #8a8a8a; }

.sh-hill .sh-lift,
.sh-lb .sh-lift {
  stroke-dasharray: 4 3;
}

.sh-lb {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0);
  overflow: hidden;
  transition: background 0.32s ease;
  cursor: zoom-out;
}

.sh-lb.sh-lb-on {
  background: rgba(0, 0, 0, 0.82);
}

.sh-lb svg {
  display: block;
  background: #fff;
  border: 0;
  outline: 0;
  box-shadow: none;
  transform-origin: center center;
  transition: transform 0.4s ease-out;
  cursor: default;
}

.sh-lb text {
  font-family: "Courier New", Courier, monospace;
  fill: #111;
}

.sh-lb.sh-lb-closing {
  background: rgba(0, 0, 0, 0);
}

.sh-lb.sh-lb-closing svg {
  transition: transform 0.32s ease-out;
}

.sh-hill-name {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 5px;
  transform: translateX(-50%);
  margin: 0;
  padding: 1px 4px;
  border: 1px solid rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.1s ease;
}

.sh-hill.sh-name-on .sh-hill-name {
  opacity: 1;
}

html.sh-lb-open .sh-hill .sh-hill-name {
  opacity: 0;
}

.sh-credit {
  margin-top: 1.6rem;
}

.sh-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 2px;
  background: transparent;
  color: #111;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
  opacity: 0.9;
  transform-origin: center center;
  transition: opacity 0.15s ease, transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.sh-icon:hover {
  opacity: 1;
  border-color: #000;
  background: transparent;
}

.sh-icon:active {
  transform: scale(0.92);
}

.sh-icon.sh-icon-on {
  background: #111;
  border-color: #111;
  color: #fff;
  opacity: 1;
}

.sh-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.sh-icon:focus-visible {
  outline: 1px solid #000;
  outline-offset: 2px;
}

.sh-grid.sh-held {
  display: none;
}

.sh-map {
  position: relative;
  width: 100%;
  margin-top: 1.1rem;
  overflow: hidden;
  background: none;
}

.sh-map-tiles {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: auto;
  background: #e4e2dc;
  opacity: 0;
}

.sh-map.sh-map-in .sh-map-tiles {
  opacity: 1;
  transition: opacity 0.4s ease;
}

.sh-map-tiles .maplibregl-map,
.sh-map-tiles .maplibregl-canvas-container {
  width: 100%;
  height: 100%;
}

.sh-map-credit {
  position: absolute;
  right: 0.4rem;
  bottom: 0.3rem;
  z-index: 2;
  margin: 0;
  pointer-events: none;
  font-size: 10px;
  letter-spacing: 0.02em;
  color: rgba(0, 0, 0, 0.45);
}

.sh-dot {
  position: absolute;
  z-index: 1;
  width: 8px;
  height: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #111;
  box-shadow: 0 0 0 1.5px #fff, 0 0.5px 1.5px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  transform-origin: center center;
}

.sh-dot[hidden] {
  display: none;
}

.sh-dot-downhill { background: #1a4f9c; }
.sh-dot-cross-country { background: #1b7a32; }

.sh-map-zoom {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sh-map-zoom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.55);
  border-radius: 0;
  background: #fff;
  color: #111;
  font-family: "Courier New", Courier, monospace;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}

.sh-map-zoom-btn:hover,
.sh-map-zoom-btn:focus-visible {
  background: #111;
  border-color: #111;
  color: #fff;
}

.sh-map-zoom-btn:focus-visible {
  outline: 1px solid #000;
  outline-offset: 2px;
}

.sh-map-tip {
  position: fixed;
  z-index: 80;
  margin: 0;
  padding: 3px 6px;
  border: 1px solid rgba(0, 0, 0, 0.4);
  background: #fff;
  color: #111;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  letter-spacing: 0.03em;
  line-height: 1.35;
  white-space: nowrap;
  pointer-events: none;
}

.sh-map-tip[hidden] {
  display: none;
}

@media print {
  .sh-hill {
    background: #fff;
    break-inside: avoid;
  }

  .sh-hill svg {
    width: 90%;
    margin: 5%;
  }

  .sh-hill-name {
    display: none;
  }

  html:not(.sh-credit-print) .sh-credit {
    display: none;
  }

  .sh-cart-panel,
  .sh-cart-btn {
    display: none;
  }
}

.sh-view {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(92vw, 1100px);
}

.sh-stack-btn {
  align-self: flex-start;
  margin: 0.4rem 0 0;
}

.sh-lb.sh-framed .sh-stack-btn {
  display: none;
}

.sh-print-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sh-cart-add {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  cursor: pointer;
}

.sh-cart-add svg {
  display: block;
  width: 22px;
  height: 22px;
  pointer-events: none;
}

.sh-cart-n {
  display: inline-block;
  transition: transform 0.2s ease;
}

.sh-cart-n.sh-bump {
  transform: scale(1.35);
}

.sh-cart-size {
  display: block;
  width: 100%;
  max-width: 220px;
  margin-top: 0.28rem;
  padding: 0.15em 0.2em;
  border: 1px solid #111;
  border-radius: 0;
  background: #fff;
  color: #111;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.03em;
}

.sh-stage {
  position: relative;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.sh-edge {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  font: 20px/1 "Courier New", Courier, monospace;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.sh-edge-next { right: 8px; }
.sh-edge-prev { left: 8px; }

.sh-lb:not(.sh-framed) .sh-edge-prev,
.sh-lb.sh-framed .sh-edge-next {
  visibility: hidden;
}

.sh-lb:not(.sh-framed) .sh-stage:hover .sh-edge-next,
.sh-lb.sh-framed .sh-stage:hover .sh-edge-prev {
  opacity: 1;
  pointer-events: auto;
}

.sh-lb:not(.sh-framed) .sh-stage.sh-touch-hint .sh-edge-next,
.sh-lb.sh-framed .sh-stage.sh-touch-hint .sh-edge-prev {
  opacity: 0.4;
  pointer-events: auto;
}

.sh-stage.sh-dragging {
  cursor: grabbing;
}

.sh-stage svg {
  -webkit-user-drag: none;
  user-select: none;
}

.sh-lb:not(.sh-lb-on) .sh-stage {
  overflow: visible;
}

.sh-lb:not(.sh-lb-on) .sh-slide-frame {
  visibility: hidden;
}

.sh-track {
  display: flex;
  width: 200%;
  transition: transform 400ms ease-out;
}

.sh-lb.sh-framed .sh-track {
  transform: translateX(-50%);
}

.sh-slide {
  display: flex;
  flex: 0 0 50%;
  flex-direction: column;
  align-items: center;
  width: 50%;
}

.sh-slide-art,
.sh-wall {
  position: relative;
  width: 100%;
}

.sh-slide-art .sh-card {
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
}

.sh-frame-art .sh-card {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
}

.sh-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  margin-top: 0.55rem;
  padding: 0.45rem 0.4rem 0.15rem;
  box-sizing: border-box;
  background: #fff;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.sh-lb.sh-lb-on .sh-buy {
  opacity: 1;
}

.sh-lb.sh-lb-closing .sh-buy {
  opacity: 0;
}

.sh-buy .sh-tag {
  margin: 0 0.4em 0.35em 0;
}

.sh-add,
.sh-cart-btn {
  margin: 0 0 0.35em 0.15em;
  padding: 0.25em 0.75em;
  border: 1px solid #111;
  border-radius: 0;
  background: #111;
  color: #fff;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
}

.sh-cart-btn {
  margin: 0;
  background: transparent;
  color: #111;
}

.sh-zoom .sh-cart-btn {
  flex-shrink: 0;
}

.sh-add:disabled,
.sh-add:disabled:hover {
  background: transparent;
  color: rgba(0, 0, 0, 0.35);
  border-color: rgba(0, 0, 0, 0.28);
  cursor: default;
}

.sh-cart-panel {
  position: fixed;
  z-index: 100010;
  top: 58px;
  right: 16px;
  width: min(320px, calc(100vw - 32px));
  max-height: min(70vh, 480px);
  overflow: auto;
  box-sizing: border-box;
  padding: 0.7rem 0.75rem 0.55rem;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  letter-spacing: 0.03em;
  line-height: 1.45;
}

.sh-cart-panel[hidden] {
  display: none;
}

.sh-cart-panel h2,
.sh-cart-empty,
.sh-cart-sub {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sh-cart-list {
  margin: 0.55rem 0;
  padding: 0;
  list-style: none;
}

.sh-cart-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 0.6rem;
  padding: 0.4rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.18);
}

.sh-cart-list button {
  align-self: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #111;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.sh-cart-sub {
  padding-top: 0.35rem;
  border-top: 1px solid #111;
}

.sh-wall {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(130% 95% at 0% 0%, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 56%),
    linear-gradient(180deg, #f7f6f3 0%, #e6e3dc 100%);
}

.sh-wall::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}

.sh-hang {
  position: relative;
  z-index: 1;
  width: 88%;
  filter: drop-shadow(9px 16px 14px rgba(0, 0, 0, 0.28));
}

.sh-mould {
  box-sizing: border-box;
  padding: 1.8%;
  background: #111;
  box-shadow: none;
}

.sh-mat {
  box-sizing: border-box;
  padding: 10.5%;
  background: #f4f0e6;
  box-shadow: none;
}

.sh-frame-art {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: #fff;
  box-shadow: none;
}

