/*
 * static/css/app.css — The whole stylesheet.
 *
 * Mobile first: every screen is designed at 390px and centres in a column
 * on wider screens. Colours, type and radii are tokens on :root, taken from
 * the Snowdesk Groups mockups; components below use only the tokens.
 */

:root {
  --ground: #f2f0ec;
  --card: #ffffff;
  --sunk: #f5f3ef;
  --text-1: #1a1916;
  --text-2: #6b6860;
  --text-3: #6e6b65;
  --rule: rgba(0, 0, 0, 0.09);
  --rule-strong: rgba(0, 0, 0, 0.16);
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.12);
  /* Magic Pass resorts on the map: a violet square instead of a round pin. */
  --pass-magic: #7c3aed;
  --danger: #b42318;
  --ok: #067647;
  --map-ground: #e9e7e1;
  --radius-card: 12px;
  --radius-control: 8px;
  --radius-tag: 4px;
  --shadow-sheet: 0 -2px 16px rgba(0, 0, 0, 0.12);
  --shadow-float: 0 1px 4px rgba(0, 0, 0, 0.12);
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "DM Mono", ui-monospace, monospace;
  --tabbar-height: 64px;
  --column: 560px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text-1);
  font: 400 15px/1.5 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text-1);
}

a:hover {
  color: var(--text-2);
}

h1,
h2,
h3,
p {
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- Page frame -------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 56px;
  padding: 0 8px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ground);
  border-bottom: 1px solid var(--rule);
}

.topbar__brand {
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}

.page {
  max-width: var(--column);
  margin: 0 auto;
  padding: 20px 16px calc(var(--tabbar-height) + 32px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page--signed-out {
  padding-bottom: 48px;
}

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  height: calc(var(--tabbar-height) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--rule);
}

.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  color: var(--text-3);
  font: 500 11px var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tabbar a[aria-current="page"] {
  color: var(--text-1);
}

.tabbar svg {
  width: 22px;
  height: 22px;
}

/* --- Type --------------------------------------------------------------- */

.eyebrow {
  font: 400 12px var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.title {
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
}

.title--large {
  font-size: 28px;
  line-height: 34px;
}

.lede {
  font-size: 14px;
  color: var(--text-2);
}

.muted {
  color: var(--text-2);
}

.small {
  font-size: 13px;
}

.mono {
  font-family: var(--font-mono);
}

.heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

/* --- Cards and lists ---------------------------------------------------- */

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
}

.card--padded {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list > li + li {
  border-top: 1px solid var(--rule);
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 14px;
}

.row--link {
  text-decoration: none;
  color: inherit;
}

.row__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.row__date {
  width: 58px;
  flex-shrink: 0;
  font: 500 12px var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
}

.row__date--long {
  width: 84px;
}

.row__date--today {
  color: var(--accent);
}

.row__label {
  font-size: 15px;
  font-weight: 500;
}

.row__label--quiet {
  font-weight: 400;
  color: var(--text-3);
}

.row__note {
  font-size: 12px;
  color: var(--text-2);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px;
  text-decoration: none;
  color: var(--text-1);
}

.tile strong {
  font-weight: 600;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font: 500 9.5px var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 6px;
  border-radius: var(--radius-tag);
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-1);
  white-space: nowrap;
}

.tag--accent {
  background: var(--accent-soft);
  color: var(--accent);
}

.tag svg {
  width: 12px;
  height: 12px;
}

.empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--text-2);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

/* --- Buttons and controls ----------------------------------------------- */

.button {
  display: inline-grid;
  place-items: center;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--text-1);
  color: #ffffff;
  font: 600 15px var(--font-sans);
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  color: #ffffff;
  opacity: 0.9;
}

.button--block {
  display: grid;
  width: 100%;
}

.button--secondary {
  background: var(--card);
  color: var(--text-1);
  border: 1px solid var(--rule-strong);
  font-weight: 500;
}

.button--secondary:hover {
  color: var(--text-1);
}

.button--danger {
  background: var(--card);
  color: var(--danger);
  border: 1px solid var(--rule-strong);
  font-weight: 500;
}

.button--danger:hover {
  color: var(--danger);
}

.button--small {
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
}

.icon-button {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--text-1);
  text-decoration: none;
  cursor: pointer;
}

.icon-button svg {
  width: 20px;
  height: 20px;
}

.icon-button--boxed {
  background: var(--card);
  border: 0.5px solid var(--rule-strong);
}

.link-button {
  border: 0;
  background: none;
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
}

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

.actions > * {
  flex: 1;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field > label,
.field > legend,
.field > .eyebrow {
  font: 400 12px var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 0;
}

fieldset.field {
  border: 0;
  margin: 0;
  padding: 0;
}

.input {
  width: 100%;
  height: 48px;
  padding: 0 12px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-control);
  background: var(--card);
  font-size: 16px;
}

.input--search {
  padding-left: 38px;
  background: var(--card)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236e6b65' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E")
    no-repeat 12px center;
}

.help {
  font-size: 13px;
  color: var(--text-2);
}

.errors {
  margin: 0;
  padding: 10px 12px;
  list-style: none;
  border-radius: var(--radius-control);
  background: #fef3f2;
  color: var(--danger);
  font-size: 14px;
}

.check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
}

.check input {
  width: 22px;
  height: 22px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

/* Segmented control: a radio group drawn as one bar. */
.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  background: var(--sunk);
  border-radius: var(--radius-control);
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented label {
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  font: 500 14px var(--font-sans);
  color: var(--text-2);
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}

.segmented input:checked + label {
  background: var(--card);
  color: var(--text-1);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.segmented input:focus-visible + label {
  outline: 2px solid var(--accent);
}

/* Choice list: a radio group drawn as rows. */
.choices {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  background: var(--card);
  overflow: hidden;
}

.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
}

.choice + .choice {
  border-top: 1px solid var(--rule);
}

.choice input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.choice:has(input:checked) {
  background: var(--sunk);
}

.choice__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.choice__title {
  font-size: 15px;
  font-weight: 500;
}

.choice__meta {
  font-size: 13px;
  color: var(--text-2);
}

.choice__count {
  font: 500 12px var(--font-mono);
  color: var(--text-3);
  text-align: right;
  white-space: nowrap;
}

/* --- Messages ----------------------------------------------------------- */

.messages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.message {
  padding: 12px 14px;
  border-radius: var(--radius-control);
  background: var(--text-1);
  color: #ffffff;
  font-size: 14px;
}

.message--error {
  background: var(--danger);
}

/* --- Sheet: the bottom panel that opens over a page ----------------------- */

.sheet {
  width: 100%;
  max-width: var(--column);
  max-height: 92dvh;
  margin: auto auto 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  background: var(--card);
  color: var(--text-1);
  box-shadow: var(--shadow-sheet);
}

.sheet::backdrop {
  background: rgba(0, 0, 0, 0.4);
}

.sheet__body {
  padding: 10px 20px calc(24px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sheet__grip {
  align-self: center;
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--rule-strong);
}

.sheet-page {
  max-width: var(--column);
  margin: 0 auto;
  background: var(--card);
  min-height: 100dvh;
}

.htmx-request .spinner,
.htmx-request.spinner {
  opacity: 1;
}

.spinner {
  opacity: 0;
  transition: opacity 0.2s;
}

/* --- Who's where board -------------------------------------------------- */

.board {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.board table {
  border-collapse: collapse;
  width: 100%;
  font: 500 10.5px var(--font-mono);
}

.board th,
.board td {
  border-top: 1px solid var(--rule);
}

.board thead th {
  border-top: 0;
  border-bottom: 1px solid var(--rule);
  padding: 0;
  min-width: 44px;
}

.board thead a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 6px 0;
  text-decoration: none;
  color: var(--text-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.board thead a span + span {
  font-size: 13px;
  color: var(--text-1);
}

.board thead .is-today a span + span {
  color: var(--accent);
}

.board__name {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--card);
  text-align: left;
  padding: 0 8px 0 12px;
  height: 44px;
  font: 400 14px var(--font-sans);
  white-space: nowrap;
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.board__me .board__name,
.board__me td {
  background: #fafaf8;
}

.board__me .board__name {
  font-weight: 600;
}

.board td {
  text-align: center;
  color: var(--text-1);
}

.board td.is-quiet {
  color: var(--text-3);
}

.board td a {
  color: inherit;
  text-decoration: none;
}

.board__lock {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--text-3);
}

.board__lock svg {
  width: 9px;
  height: 9px;
}

.board__meetup {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 38px;
  margin: 7px 0;
  border-radius: var(--radius-control);
  text-decoration: none;
}

.board__meetup--set {
  background: var(--text-1);
  color: #ffffff !important;
  font: 500 9px var(--font-mono);
  letter-spacing: 0.04em;
}

.board__meetup--add {
  border: 1px dashed var(--rule-strong);
  color: var(--text-2);
}

.board__meetup--add svg {
  width: 16px;
  height: 16px;
}

.legend {
  margin: 0;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 6px 8px;
  font-size: 13px;
  color: var(--text-2);
}

.legend dt {
  font: 500 11px var(--font-mono);
  color: var(--text-1);
}

.legend dd {
  margin: 0;
}

.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

/* --- Map ---------------------------------------------------------------- */

.map-page {
  position: fixed;
  inset: 0 0 calc(var(--tabbar-height) + env(safe-area-inset-bottom)) 0;
  background: var(--map-ground);
}

/* MapLibre sets position: relative on its container, so size it outright. */
.map-canvas {
  width: 100%;
  height: 100%;
}

.map-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.map-overlay > * {
  pointer-events: auto;
}

.map-bar {
  /* Above the search box, so the calendar opens over it. */
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.float {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 44px;
  padding: 0 4px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 0.5px solid var(--rule);
  box-shadow: var(--shadow-float);
}

.float__label {
  font: 600 11px var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 4px;
  white-space: nowrap;
}

.float .icon-button {
  width: 36px;
  height: 36px;
}

/* The day label opens the calendar. */
.float {
  position: relative;
}

.float__label--button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--text-1);
  cursor: pointer;
}

.float__label--button:hover,
.float__label--button[aria-expanded="true"] {
  background: var(--sunk);
}

.float__label--button svg {
  width: 14px;
  height: 14px;
  color: var(--text-2);
}

/* My days: the same control, on the page rather than over the map. */
.float--page {
  align-self: flex-start;
  background: var(--card);
}

.icon-button--off {
  color: var(--text-3);
  opacity: 0.35;
  cursor: default;
}

/* --- Calendar ------------------------------------------------------------ */

.calendar {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  width: 304px;
  max-width: calc(100vw - 24px);
  padding: 12px;
  border-radius: var(--radius-card);
  background: var(--card);
  border: 0.5px solid var(--rule-strong);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
}

.calendar[hidden] {
  display: none;
}

.calendar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.calendar__title {
  font-size: 15px;
  font-weight: 600;
}

.calendar .calendar__step {
  width: 36px;
  height: 36px;
}

.calendar__step:disabled {
  opacity: 0.3;
  cursor: default;
}

.calendar__grid {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.calendar__weekday {
  padding: 6px 0;
  font: 500 10px var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.calendar__grid td {
  padding: 1px;
  text-align: center;
}

.calendar__day {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-1);
  font: 500 14px var(--font-sans);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.calendar__day:hover:not(:disabled) {
  background: var(--sunk);
}

.calendar__day:disabled {
  color: var(--text-3);
  opacity: 0.4;
  cursor: default;
}

.calendar__day--today {
  color: var(--accent);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

.calendar__day--selected,
.calendar__day--selected:hover:not(:disabled) {
  background: var(--text-1);
  color: var(--card);
}

.calendar__mark {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.calendar__day .calendar__mark {
  position: absolute;
  left: 50%;
  bottom: 3px;
  transform: translateX(-50%);
}

/* Skiing is a filled dot; not sure is a ring; not skiing a faint dot. */
.calendar__mark--resort {
  background: var(--accent);
}

.calendar__mark--not_sure {
  box-shadow: inset 0 0 0 1.25px var(--accent);
}

.calendar__mark--not_skiing {
  background: var(--text-3);
  opacity: 0.5;
}

.calendar__day--selected .calendar__mark--resort {
  background: var(--card);
}

.calendar__day--selected .calendar__mark--not_sure {
  box-shadow: inset 0 0 0 1.25px var(--card);
}

.calendar__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.calendar__legend {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-2);
}

.calendar__key {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.calendar .calendar__today {
  min-height: 36px;
  padding: 0 14px;
  font-size: 14px;
}

.chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

.chip {
  height: 32px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 0.5px solid var(--rule-strong);
  box-shadow: var(--shadow-float);
  font: 500 12px var(--font-mono);
  text-decoration: none;
  white-space: nowrap;
}

.chip[aria-current="true"] {
  background: var(--text-1);
  color: #ffffff;
}

/* The chip's key to its pins: only passes with their own pin style have one. */
.chip__swatch {
  display: none;
}

.chip__swatch--pass-magic-pass {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 2px;
  background: var(--pass-magic);
  box-shadow: 0 0 0 1px #ffffff;
}

/* Resort search: a field over the map with suggestions under it. */
.map-search {
  position: relative;
}

.map-search__icon {
  position: absolute;
  z-index: 1;
  left: 14px;
  top: 12px;
  width: 20px;
  height: 20px;
  color: var(--text-3);
  pointer-events: none;
}

.map-search__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.map-search__input {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 42px;
  border-radius: 22px;
  border: 0.5px solid var(--rule);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-float);
  font: 400 16px var(--font-sans);
  color: var(--text-1);
}

.map-search__input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.map-search__list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 6;
  max-height: min(50vh, 360px);
  overflow-y: auto;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
}

.map-search__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 0 14px;
  cursor: pointer;
}

.map-search__option[aria-selected="true"] {
  background: var(--sunk);
}

.map-search__name {
  font-size: 15px;
}

.map-search__canton {
  font: 500 11px var(--font-mono);
  color: var(--text-3);
}

.map-search__empty {
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text-3);
}

.map-hint {
  align-self: flex-start;
  max-width: 300px;
  padding: 10px 12px;
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-float);
  font-size: 13px;
}

/* Resort pins: HTML markers so they draw without a glyph server. */
.pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

.pin__dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--text-3);
}

.pin__name {
  display: none;
  font: 400 10px var(--font-mono);
  color: var(--text-3);
  white-space: nowrap;
  text-shadow: 0 0 3px #fff, 0 0 3px #fff;
}

.pin--friends .pin__dot {
  width: 16px;
  height: 16px;
  border-color: var(--text-1);
}

.pin--friends .pin__name,
.map-zoomed .pin__name {
  display: block;
}

.pin--friends .pin__name {
  font-weight: 600;
  font-size: 11px;
  color: var(--text-1);
}

.pin__count {
  position: absolute;
  top: -14px;
  left: 9px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--text-1);
  color: #ffffff;
  font: 500 11px/20px var(--font-mono);
  text-align: center;
}

/* Magic Pass resorts: square and violet, so they read apart from the rest
   at a glance. Square rather than only a colour, for colour-blind eyes. */
.pin--pass-magic-pass .pin__dot {
  border-radius: 3px;
  border-color: #ffffff;
  background: var(--pass-magic);
  box-shadow: 0 0 0 1px var(--pass-magic);
}

.pin--pass-magic-pass.pin--friends .pin__dot {
  border-color: var(--pass-magic);
  background: #ffffff;
  box-shadow: none;
}

.pin--pass-magic-pass.pin--mine .pin__dot {
  background: var(--text-1);
}

.pin--pass-magic-pass .pin__name {
  color: var(--pass-magic);
}

.pin--pass-magic-pass.pin--friends .pin__name {
  color: var(--text-1);
}

.pin--meetup .pin__dot {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.pin--selected .pin__dot {
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.3);
}

.pin--mine .pin__dot {
  background: var(--text-1);
}

.pin-picker {
  position: relative;
  height: 220px;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--map-ground);
  border: 1px solid var(--rule);
}

.meeting-pin {
  width: 28px;
  height: 36px;
}

.friend-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
}

.friend-line:last-child {
  border-bottom: 0;
}

/* --- Signed-out landing ------------------------------------------------- */

.hero {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 12px;
}

.steps {
  margin: 0;
  padding: 0 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* --- Wider screens ------------------------------------------------------ */

@media (min-width: 720px) {
  .page {
    padding-top: 32px;
  }

  .sheet {
    margin: auto;
    border-radius: var(--radius-card);
  }
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

[data-resort-picker][hidden] {
  display: none;
}

[hidden] {
  display: none !important;
}
