/* The standalone resort page, its all-resorts index, and the share control.
   The list expands the same panel in place; this is what a cold arrival —
   a shared link, a search result — gets around it. */

.resort__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 12px;
  margin-top: 10px;
}

/* Breaks inside a word only when a long name has no other way to fit. */
.resort__title {
  min-width: 0;
  flex: 1 1 180px;
  margin: 0;
  font-size: var(--type-page);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: normal;
  overflow-wrap: anywhere;
}

.resort__name {
  display: block;
}

.resort__region {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: var(--type-caption);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: normal;
  text-transform: uppercase;
}

.resort__alt {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: var(--type-caption);
  line-height: 1.5;
}

.resort__elevations {
  margin: 2px 0 12px;
  color: var(--muted);
  font-size: var(--type-caption);
  line-height: 1.5;
}

/* Webcam and website ----------------------------------------------------- */

.resort__links {
  margin: 0 0 12px;
}

.resort__link-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 4px 24px;
}

.resort__camera {
  min-width: 0;
  max-width: 100%;
}

/* Wide enough that the qualifier wraps under its own link rather than
   squeezing beside the website. */
.resort__camera--qualified {
  flex: 1 1 200px;
}

/* The host sits inside the anchor so a screen reader announces where the
   link goes along with what it does. */
.resort__link {
  display: flex;
  max-width: 100%;
  min-height: 44px;
  flex-direction: column;
  justify-content: center;
  padding-block: 4px;
  font-size: var(--type-body);
  line-height: 1.5;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.resort__link-label {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.resort__link:hover .resort__link-label {
  color: var(--accent-bright);
}

.resort__link-host {
  color: var(--muted);
  font-size: var(--type-caption);
}

.resort__link-note {
  margin: 0 0 4px;
  color: var(--ink-soft);
  font-size: var(--type-caption);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.resort__link-note--missing {
  color: var(--muted);
}

/* Share ------------------------------------------------------------------ */

.share {
  position: relative;
  flex: none;
  margin-left: auto;
}

.share__open {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid var(--control-edge);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: .75rem;
  list-style: none;
  cursor: pointer;
}

.share__open::-webkit-details-marker {
  display: none;
}

/* Sized to the viewport rather than its content, so the URL and button wrap
   inside the phone canvas instead of running off its edge. */
.share__popup {
  display: flex;
  position: absolute;
  z-index: 5;
  top: calc(100% + 6px);
  right: 0;
  flex-wrap: wrap;
  gap: 8px;
  width: min(320px, calc(100vw - 40px));
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--raised);
}

.share__url {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  flex: 1 1 150px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink-soft);
  font: inherit;
  font-size: .75rem;
}

.share__copy {
  max-width: 100%;
  min-height: 44px;
  padding: 4px 10px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: var(--bg);
  font: inherit;
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
}

/* All-resorts index ------------------------------------------------------ */

.directory-page .resort__title {
  margin-bottom: 8px;
}

/* A step above the list's region label: here it is the only heading between
   the page title and the names. */
.directory-page .group__header {
  margin-bottom: 4px;
  font-size: .8125rem;
}

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

.index__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2px 12px;
  min-height: 52px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.index__link {
  display: inline-flex;
  min-height: 44px;
  flex: 1 1 140px;
  align-items: center;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.index__link:hover {
  color: var(--accent-bright);
}

.index__meta {
  flex: 1 1 120px;
  color: var(--muted);
  font-size: var(--type-caption);
  line-height: 1.5;
  text-align: right;
  overflow-wrap: anywhere;
}

/* Narrow rows usually stack the two names, and a right-aligned second line
   reads as detached from the first. */
@media (max-width: 360px) {
  .index__meta {
    text-align: left;
  }
}

.list-footer {
  margin: 8px 0 0;
  font-size: 11px;
}
