/* Snow map (/snevejr/snekort/) */

.snk { --snk-sea: #d6e1e6; }

/* Heading and controls above the map */
.snk-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 20px; flex-wrap: wrap; padding: 6px 0 14px; }
.snk .snk-head .dst-h1 { padding: 8px 0 2px; margin: 0; }
.snk-when { font-size: 14px; color: var(--sk-muted); margin: 0; }
.snk-when b { color: var(--sk-ink); font-weight: 500; }
.snk-ctl { display: flex; gap: 8px; flex-wrap: wrap; }
.snk-seg { display: inline-flex; background: #fff; border: 1px solid var(--sk-line-strong); border-radius: 999px; padding: 3px; gap: 2px; }
.snk-seg button { border: 0; background: none; padding: 6px 13px; border-radius: 999px; cursor: pointer; font-size: 13.5px; color: var(--sk-text); white-space: nowrap; line-height: 1.3; }
.snk-seg button:hover { color: var(--sk-ink); }
.snk-seg button[aria-pressed="true"] { background: var(--sk-accent); color: #fff; }

/* The map card: dark control band on top, map below */
.snk-card { border-radius: var(--sk-radius); overflow: hidden; background: var(--sk-ink); color: #fff; }
.snk-band { padding: 12px 18px; }
.snk-band-row { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; flex-wrap: wrap; }
.snk-play { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--sk-travel); color: var(--sk-ink); font-weight: 500; border-radius: 999px; padding: 7px 15px 7px 11px; cursor: pointer; font-size: 13.5px; line-height: 1.3; }
.snk-play .sk-ic { width: 15px; height: 15px; }
.snk-src { font-size: 12.5px; color: var(--sk-muted); margin: 8px 0 0; }
.snk-legend { margin-left: auto; background: rgba(255, 255, 255, .94); color: var(--sk-ink); border-radius: var(--sk-radius-sm); padding: 6px 9px 5px; font-size: 11.5px; line-height: 1.3; }
.snk-legend-bar, .snk-legend-ticks { display: flex; }
.snk-legend-bar { margin-top: 4px; }
.snk-legend-bar span, .snk-legend-ticks span { width: 34px; }
.snk-legend-bar span { height: 8px; }
.snk-legend-ticks { color: var(--sk-muted); font-variant-numeric: tabular-nums; }
.snk-legend-ticks span { font-size: 10.5px; }

/* Timeline */
.snk-tl { user-select: none; -webkit-user-select: none; }
.snk-tl-bars { display: grid; gap: 2px; height: 42px; align-items: end; cursor: pointer; touch-action: none; }
.snk-tl-bars span { position: relative; height: 100%; display: flex; align-items: flex-end; border-radius: 2px; }
.snk-tl-bars span i { display: block; width: 100%; border-radius: 2px 2px 0 0; background: rgba(255, 255, 255, .26); }
.snk-tl-bars span.is-night { background: rgba(255, 255, 255, .06); }
.snk-tl-bars span.is-in i { background: rgba(156, 192, 227, .7); }
.snk-tl-bars span.is-cur i { background: #9cc0e3; }
.snk-tl-bars span.is-cur::after { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: #fff; border-radius: 1px; }
.snk-tl-bars:focus-visible { outline: 2px solid #fff; outline-offset: 5px; border-radius: 2px; }
.snk-tl-days { position: relative; height: 17px; margin-top: 5px; font-size: 11.5px; color: #b9c6cc; }
.snk-tl-days span { position: absolute; top: 0; padding-left: 5px; border-left: 1px solid rgba(255, 255, 255, .2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Map */
.snk-map { position: relative; background: var(--snk-sea); }
.snk-stage { position: relative; width: 100%; aspect-ratio: 1230 / 700; overflow: hidden; cursor: grab; }
.snk-stage:active { cursor: grabbing; }
.snk-raster { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.snk-raster img { position: absolute; display: block; max-width: none; user-select: none; -webkit-user-drag: none; }
.snk-heat { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: 0 0; pointer-events: none; }
.snk-stage > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.snk-dot { fill: #fff; stroke: #2b3140; cursor: pointer; }
.snk-dot.is-big { fill: #2b3140; stroke: #fff; }
.snk-dot:hover, .snk-dot.is-on { fill: var(--sk-travel); stroke: #2b3140; }
.snk-lbl { font-family: Rubik, sans-serif; font-weight: 500; fill: #2b3140; paint-order: stroke; stroke: rgba(255, 255, 255, .94); stroke-linejoin: round; cursor: pointer; }
.snk-lbl:hover { fill: var(--sk-accent); }
.snk-lbl-cm { font-weight: 400; fill: #2b5f9d; }
.snk-cty { font-family: Rubik, sans-serif; font-weight: 500; fill: rgba(43, 49, 64, .34); text-transform: uppercase; pointer-events: none; }
.snk-readout { position: absolute; pointer-events: none; background: var(--sk-ink); color: #fff; font-size: 12.5px; padding: 4px 9px; border-radius: var(--sk-radius-sm); transform: translate(14px, -50%); white-space: nowrap; box-shadow: 0 2px 8px rgba(0, 0, 0, .22); }
.snk-readout b { font-weight: 500; }
.snk-hint, .snk-loading { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 4; background: rgba(20, 28, 40, .82); color: #fff; font-size: 14px; padding: 9px 16px; border-radius: 999px; pointer-events: none; white-space: nowrap; }
.snk-loading { display: none; }
.snk-map.is-loading .snk-loading { display: block; }
.snk-zoom { position: absolute; top: 12px; right: 12px; z-index: 4; display: flex; flex-direction: column; background: #fff; border-radius: var(--sk-radius-sm); box-shadow: 0 1px 5px rgba(20, 28, 40, .22); overflow: hidden; }
.snk-zoom button { width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: #fff; color: var(--sk-ink); cursor: pointer; padding: 0; }
.snk-zoom button + button { border-top: 1px solid var(--sk-line); }
.snk-zoom button:hover:not(:disabled) { background: var(--sk-soft); }
.snk-zoom button:disabled { color: var(--sk-line-strong); cursor: default; }
.snk-zoom .sk-ic { width: 18px; height: 18px; }

/* Popup */
.snk-pop { position: absolute; z-index: 6; width: 280px; background: #fff; color: var(--sk-text); border-radius: var(--sk-radius); box-shadow: 0 10px 30px rgba(20, 28, 40, .3); padding: 14px 15px 15px; }
.snk-pop h3 { margin: 0; font-size: 17px; color: var(--sk-ink); font-weight: 500; padding-right: 26px; line-height: 1.25; }
.snk-pop-meta { font-size: 12.5px; color: var(--sk-muted); margin: 1px 0 10px; }
.snk-pop .snk-x { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; display: grid; place-items: center; border: 0; background: none; border-radius: 50%; cursor: pointer; color: var(--sk-muted); padding: 0; }
.snk-pop .snk-x:hover { background: var(--sk-soft); color: var(--sk-ink); }
.snk-pop .snk-x .sk-ic { width: 16px; height: 16px; }
.snk-pop-big { font-size: 26px; font-weight: 500; color: var(--sk-ink); line-height: 1.15; margin: 0; font-variant-numeric: tabular-nums; }
.snk-pop-big small { display: block; font-size: 12.5px; font-weight: 400; color: var(--sk-muted); margin-top: 2px; }
.snk-pop-bars { display: grid; gap: 1px; height: 52px; align-items: end; margin-top: 12px; }
.snk-pop-bars span { height: 100%; display: flex; align-items: flex-end; opacity: .35; }
.snk-pop-bars span.is-in { opacity: 1; }
.snk-pop-bars span i { display: block; width: 100%; border-radius: 2px 2px 0 0; min-height: 2px; }
.snk-pop-days { position: relative; height: 16px; font-size: 10.5px; color: var(--sk-muted); border-top: 1px solid var(--sk-line); margin-bottom: 10px; }
.snk-pop-days span { position: absolute; top: 2px; white-space: nowrap; overflow: hidden; }
.snk-pop .lnd-price { margin: 0 0 10px; display: block; }
.snk-pop-none { font-size: 12.5px; color: var(--sk-muted); margin: 0 0 10px; }
.snk-pop-acts { display: flex; gap: 8px; }
.snk-btn-travel { flex: 1; display: inline-flex; justify-content: center; align-items: center; background: var(--sk-travel); color: var(--sk-ink); font-weight: 500; font-size: 14px; border-radius: var(--sk-radius-sm); padding: 9px 10px; }
.snk .snk-btn-travel:hover { filter: brightness(.96); color: var(--sk-ink); text-decoration: none; }
.snk-btn-ghost { display: inline-flex; align-items: center; border: 1px solid var(--sk-line-strong); color: var(--sk-accent); border-radius: var(--sk-radius-sm); padding: 9px 10px; font-size: 13.5px; white-space: nowrap; }
.snk-pop.is-sheet { left: 8px; right: 8px; bottom: 8px; top: auto; width: auto; }

/* Top 10 in view */
.snk-top { margin-top: 26px; }
.snk-top .dst-sec-hd { margin-bottom: 8px; }
.snk-rank { list-style: none; margin: 0; padding: 0; }
.snk-rank li { display: grid; grid-template-columns: 26px 240px minmax(0, 1fr) 90px 150px; gap: 12px; align-items: center; padding: 7px 0; border-top: 1px solid var(--sk-line); font-size: 14px; }
.snk-rank li:last-child { border-bottom: 1px solid var(--sk-line); }
.snk-rank li.snk-rank-none { display: block; color: var(--sk-muted); }
.snk-rk-i { color: var(--sk-muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.snk-rk-name { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; color: var(--sk-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.snk-rk-name:hover { color: var(--sk-accent); text-decoration: underline; }
.snk-rk-name small { color: var(--sk-muted); margin-left: 4px; font-size: 12.5px; }
.snk-rk-bar { display: block; height: 10px; border-radius: 3px; background: var(--sk-soft); overflow: hidden; }
.snk-rk-bar b { display: block; height: 100%; border-radius: 3px; }
.snk-rk-cm { text-align: right; color: var(--sk-ink); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.snk .snk-rk-go { justify-self: end; font-size: 13px; white-space: nowrap; color: var(--sk-ink); background: var(--sk-travel); border-radius: var(--sk-radius-sm); padding: 5px 10px; }
.snk .snk-rk-go:hover { filter: brightness(.96); color: var(--sk-ink); text-decoration: none; }
.snk-top .snv-yr { margin-top: 12px; }
.snk-top { margin-bottom: 40px; }

@media (max-width: 760px) {
	.snk-stage { aspect-ratio: 5 / 4; }
	.snk-band { padding: 12px 14px; }
	.snk-legend { margin-left: 0; }
	.snk-zoom { top: 8px; right: 8px; }
	.snk-zoom button { width: 34px; height: 34px; }
	.snk-rank li { grid-template-columns: 22px minmax(0, 1fr) auto; row-gap: 4px; }
	.snk-rk-bar { grid-column: 2 / 4; grid-row: 2; }
	.snk .snk-rk-go { grid-column: 2 / 4; justify-self: start; grid-row: 3; }
}
@media (max-width: 640px) {
	.snk-legend-bar span, .snk-legend-ticks span { width: 20px; }
	.snk-legend-ticks span { font-size: 9.5px; }
	.snk-legend { font-size: 10.5px; padding: 4px 7px; }
}

/* The map inside a resort's or a country's page */
.snk-dot.is-focus { fill: var(--sk-travel); stroke: #2b3140; }
.snk-lbl.is-focus { font-weight: 600; }
.snk-embed { margin-bottom: 34px; }
.snk-embed .dst-sec-hd { align-items: center; }
.snk-focus { font-size: 15px; color: var(--sk-text); margin: -4px 0 12px; }
.snk-focus b { color: var(--sk-ink); font-weight: 600; font-size: 22px; font-variant-numeric: tabular-nums; margin-right: 2px; }
.snk-embed .snk-top { margin: 18px 0 0; }
.snk-embed .snk-top h3 { font-size: 17px; font-weight: 500; color: var(--sk-ink); margin: 0 0 8px; }
.snk-embed .snk-rank li { grid-template-columns: 22px 190px minmax(0, 1fr) 84px 140px; }
.snk-all { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; font-size: 14px; }
@media (max-width: 760px) {
	.snk-embed .snk-rank li { grid-template-columns: 22px minmax(0, 1fr) auto; }
}

/* Temperature and clouds */
.snk-layers { margin-right: 4px; }
.snk-pop-wx { font-size: 13px; color: var(--sk-text); margin: 8px 0 0; line-height: 1.45; }
.snk-pop-wx b { color: var(--sk-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.snk-pop-wx small { display: block; font-size: 11.5px; color: var(--sk-muted); }
.snk-legend-bar.snk-legend-cloud span, .snk-legend-ticks.snk-legend-cloud span { width: 54px; }
.snk-seg[hidden] { display: none; }
