/*
 * Styles for the features added in October 2026: favorites, the sun and moon on hotspot maps, "Best time of year"
 * and "How it was shot", the photo wall, the favorites page, list tours/downloads/offline copies, and the home
 * page's bigger sections. Uses the theme's colors (theme-airbnb.css).
 */

/* The search popup: rounded inputs and button, to go with the round buttons elsewhere */
:root .search-modal .form-control {
  height: 48px;
  padding-left: 20px;
  padding-right: 20px;
  border-radius: 999px;
}

:root .search-modal .modal-footer .button,
:root .search-modal .button.-color-primary {
  border-radius: 999px;
}

:root .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------------ Header: favorites */

:root .favorites-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: 10px;
  border-radius: 50%;
  background-color: #fff;
  border: 1px solid var(--theme-border);
  color: var(--theme-red);
  transition: box-shadow 0.2s, transform 0.15s;
}

:root .favorites-link:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
}

:root .favorites-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

:root .favorites-link__count {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--theme-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
  box-sizing: border-box;
}

/* Not on the list and abandoned pages, nor on phones where the search bar sits beside the menu button: it's in the menu */
:root .page-list .favorites-link,
:root .page-abandoned .favorites-link {
  display: none;
}

@media (max-width: 767px) {
  :root .page-sidemap .favorites-link {
    display: none;
  }
}

:root .app-header .explore-link + .explore-link {
  margin-left: 4px;
}

:root .nav-menu .nav-count {
  display: inline-block;
  min-width: 18px;
  height: 18px;
  margin-left: 8px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--theme-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  vertical-align: 1px;
  box-sizing: border-box;
}

/* ------------------------------------------------------------------ Phones: the map's follow button */

:root .map-button--follow {
  color: var(--theme-text-secondary);
}

:root .map-button--follow svg {
  width: 20px;
  height: 20px;
}

:root .custom-control-container--follow.-on .map-button--follow {
  color: var(--theme-red);
}

@media (min-width: 768px) {
  :root .custom-control-container--follow {
    display: none !important;
  }
}

/* ------------------------------------------------------------------ Hearts on hotspot cards and photos */

:root .component-hotspot-card {
  position: relative;
}

:root .hotspot-favorite,
:root .photo-wall__favorite {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  transition: transform 0.15s;
}

:root .hotspot-favorite:hover,
:root .photo-wall__favorite:hover {
  transform: scale(1.1);
}

:root .hotspot-favorite:active,
:root .photo-wall__favorite:active {
  transform: scale(0.92);
}

:root .hotspot-favorite .component-icon,
:root .photo-wall__favorite .component-icon {
  display: flex;
}

:root .hotspot-favorite svg,
:root .photo-wall__favorite svg {
  position: static;
  width: 24px !important;
  height: 24px !important;
  overflow: visible;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

:root .hotspot-favorite svg path,
:root .photo-wall__favorite svg path {
  fill: rgba(0, 0, 0, 0.35);
  stroke: #fff;
}

:root .hotspot-favorite.-on svg path,
:root .photo-wall__favorite.-on svg path {
  fill: var(--theme-red);
  stroke: #fff;
}

:root .hotspot-favorite.-on svg,
:root .photo-wall__favorite.-on svg {
  animation: heart-pop 0.35s ease-out;
}

@keyframes heart-pop {
  0% { transform: scale(0.6); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* A card without photos has nowhere for the heart */
:root .component-hotspot-card.-none .hotspot-favorite {
  display: none;
}

/* The hotspot page's action row */
:root .hotspot-favorite-action.-on {
  color: var(--theme-red);
}

:root .hotspot-favorite-action.-on .component-icon,
:root .hotspot-favorite-action.-on .component-icon .text {
  color: var(--theme-red);
}

:root .hotspot-favorite-action.-on svg {
  animation: heart-pop 0.35s ease-out;
}

/* ------------------------------------------------------------------ Hotspot map: sun and moon (desktop) */

/* map-hotspot.css hides this corner (it held nothing before) */
:root .hotspot-map .leaflet-bottom.leaflet-left {
  display: block;
}

:root .sun-panel {
  width: 300px;
  margin: 0 0 16px 16px !important;
  border-radius: var(--theme-radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
  font-family: inherit;
  font-size: 13px;
  color: var(--theme-text);
  overflow: hidden;
}

:root .sun-panel__title {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 11px 14px;
  border: none;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--theme-text);
  cursor: pointer;
  text-align: left;
}

:root .sun-panel__title svg {
  width: 20px;
  height: 20px;
  color: #f2a900;
}

:root .sun-panel__title::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  opacity: 0.6;
  transition: transform 0.2s;
}

:root .sun-panel.-collapsed .sun-panel__title::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}

:root .sun-panel.-collapsed .sun-panel__body {
  display: none;
}

:root .sun-panel__body {
  padding: 0 14px 12px;
  border-top: 1px solid var(--theme-border-light);
}

:root .sun-panel__row {
  display: grid;
  grid-template-columns: 40px 1fr 92px;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  cursor: pointer;
}

:root .sun-panel__label {
  color: var(--theme-text-secondary);
  font-size: 12px;
}

:root .sun-panel__value {
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

:root .sun-panel__row.-date {
  grid-template-columns: 40px 1fr;
  cursor: default;
}

:root .sun-panel__date {
  display: flex;
  align-items: center;
  gap: 4px;
}

:root .sun-panel__date input[type="date"] {
  flex: 1;
  min-width: 0;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--theme-border);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--theme-text);
  accent-color: var(--theme-red);
}

:root .sun-panel__step {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 30px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--theme-border);
  border-radius: 8px;
  background: #fff;
  color: var(--theme-text);
  cursor: pointer;
}

:root .sun-panel__step:hover {
  border-color: var(--theme-text);
}

:root .sun-panel__step svg {
  width: 16px;
  height: 16px;
}

:root .sun-panel input[type="range"] {
  width: 100%;
  margin: 0;
  accent-color: var(--theme-red);
  cursor: pointer;
}

:root .sun-panel__now {
  margin: 8px 0 2px 48px;
  padding: 3px 12px;
  border: 1px solid var(--theme-border);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--theme-text);
  cursor: pointer;
}

:root .sun-panel__now.-active {
  border-color: var(--theme-text);
}

:root .sun-panel__facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 12px;
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--theme-border-light);
}

:root .sun-panel__facts dt {
  color: var(--theme-text-secondary);
  white-space: nowrap;
}

:root .sun-panel__facts dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

:root .sun-panel__toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--theme-text-secondary);
  cursor: pointer;
}

:root .sun-panel__toggle input {
  accent-color: var(--theme-red);
}

:root .sun-panel__zone {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--theme-text-secondary);
}

/* Sunrise, sunset, moonrise and moonset labels at the ends of the lines */
:root .sun-label {
  width: 0 !important;
  height: 0 !important;
  border: none;
  background: none;
}

:root .sun-label span {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 4px 9px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.22);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
  color: var(--theme-text);
  text-align: center;
}

:root .sun-label strong {
  display: block;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

:root .sun-label.-sunrise strong { color: #b07a00; }
:root .sun-label.-sunset strong { color: #c4410f; }
:root .sun-label.-moon strong { color: #4f6488; }

:root .leaflet-interactive.sun-now,
:root .sun-now {
  filter: drop-shadow(0 0 8px rgba(255, 190, 0, 0.9));
}

/* ------------------------------------------------------------------ Hotspot page: the photos, in rows */

:root .justified-gallery {
  width: 100%;
}

:root .justified-gallery__row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

:root .justified-gallery__photo {
  position: relative;
  min-width: 0;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #eee;
}

:root .justified-gallery__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

:root .justified-gallery__photo .img-credit {
  position: absolute;
  left: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  overflow: hidden;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
}

:root .justified-gallery__photo:hover .img-credit {
  opacity: 1;
}

@media (hover: none) {
  :root .justified-gallery__photo .img-credit {
    opacity: 0.85;
  }
}

/* ------------------------------------------------------------------ Hotspot page: best time of year, how it was shot */

:root .hotspot-insights {
  min-height: 1px;
  background-color: #fff;
}

:root .hotspot-insights.-empty {
  display: none;
}

:root .hotspot-insights__inner {
  display: grid;
  gap: 24px;
  padding-top: 48px;
  padding-bottom: 56px;
}

@media (min-width: 992px) {
  :root .hotspot-insights__inner {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    align-items: start;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  :root .insight-card {
    padding: 20px 18px;
  }

  :root .focal-chart li {
    grid-template-columns: 104px 1fr 36px;
    font-size: 12px;
  }

  :root .focal-chart__label small {
    display: none;
  }
}

:root .hotspot-insights__skeleton {
  height: 300px;
  border-radius: var(--theme-radius);
  background: linear-gradient(90deg, #f3f3f3 25%, #fafafa 50%, #f3f3f3 75%);
  background-size: 200% 100%;
  animation: insight-shimmer 1.4s infinite linear;
}

@keyframes insight-shimmer {
  to { background-position: -200% 0; }
}

:root .insight-card {
  padding: 24px;
  border: 1px solid var(--theme-border-light);
  border-radius: var(--theme-radius);
  box-shadow: var(--theme-shadow-small);
}

:root .insight-card .sub-heading1 {
  margin: 0 0 6px;
}

:root .insight-lede {
  margin: 0 0 20px;
  font-size: 16px;
  color: var(--theme-text);
}

:root .insight-note {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--theme-text-secondary);
}

/* Months: one column per month from a shared baseline; the busiest in red */
:root .month-chart {
  position: relative;
}

:root .month-chart__bars {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: end;
  gap: 2px;
  height: 160px;
  border-bottom: 1px solid var(--theme-border);
}

:root .month-chart__col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  outline: none;
  cursor: default;
}

:root .month-chart__bar {
  display: block;
  width: 100%;
  max-width: 24px;
  border-radius: 4px 4px 0 0;
  background-color: #d9dce3;
  transition: background-color 0.15s, height 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

:root .month-chart__col.-peak .month-chart__bar {
  background-color: var(--theme-red);
}

:root .month-chart__col.-active .month-chart__bar,
:root .month-chart__col:focus-visible .month-chart__bar {
  background-color: #9aa1b0;
}

:root .month-chart__col.-peak.-active .month-chart__bar,
:root .month-chart__col.-peak:focus-visible .month-chart__bar {
  background-color: #b5134a;
}

:root .month-chart__value {
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--theme-text);
  white-space: nowrap;
}

:root .month-chart__labels {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--theme-text-secondary);
  text-align: center;
}

:root .month-chart__labels .-peak {
  color: var(--theme-text);
  font-weight: 700;
}

:root .month-chart__tooltip {
  position: absolute;
  top: -8px;
  transform: translate(-50%, -100%);
  padding: 6px 10px;
  border-radius: 8px;
  background: #222;
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  pointer-events: none;
  text-align: center;
}

:root .month-chart__tooltip strong,
:root .month-chart__tooltip span {
  display: block;
}

/* Focal lengths: a bar per range, the most used in red */
:root .focal-chart {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

:root .focal-chart li {
  display: grid;
  grid-template-columns: 190px 1fr 40px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

:root .focal-chart__label {
  white-space: nowrap;
}

:root .focal-chart__label small {
  margin-left: 4px;
  color: var(--theme-text-secondary);
  font-size: 11px;
}

:root .focal-chart__track {
  height: 12px;
}

:root .focal-chart__bar {
  display: block;
  height: 100%;
  min-width: 2px;
  border-radius: 0 4px 4px 0;
  background-color: #d9dce3;
}

:root .focal-chart li.-top .focal-chart__bar {
  background-color: var(--theme-red);
}

:root .focal-chart__value {
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

:root .insight-stats {
  display: flex;
  gap: 10px;
  margin: 0 0 16px;
}

:root .insight-stats > div {
  flex: 1;
  padding: 10px 12px;
  border-radius: var(--theme-radius-small);
  background: var(--theme-bg-soft);
}

:root .insight-stats dt {
  font-size: 12px;
  color: var(--theme-text-secondary);
}

:root .insight-stats dd {
  margin: 2px 0 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

:root .insight-tip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: var(--theme-radius-small);
  background: #fff7e0;
  font-size: 14px;
}

:root .insight-tip svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: #8a6400;
}

:root .insight-gear {
  margin: 0 0 6px;
  font-size: 14px;
}

:root .insight-gear span {
  display: inline-block;
  min-width: 64px;
  color: var(--theme-text-secondary);
  font-size: 12px;
}

/* ------------------------------------------------------------------ Photo wall */

:root .page-photo-wall {
  background-color: #111;
  color: #fff;
}

:root .photo-wall-head {
  padding: calc(var(--nav-height) + 40px) var(--nav-padding-x) 28px;
  background: radial-gradient(ellipse at 20% 0%, rgba(227, 28, 95, 0.28), transparent 55%), #111;
}

:root .photo-wall-head__inner {
  max-width: 1100px;
}

:root .photo-wall-head .heading1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  color: #fff;
}

:root .photo-wall-head__lede {
  max-width: 560px;
  margin: 14px 0 24px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.75);
}

:root .photo-wall-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

:root .photo-wall-chip,
:root .photo-wall-shuffle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

:root .photo-wall-chip:hover,
:root .photo-wall-shuffle:hover {
  background: rgba(255, 255, 255, 0.14);
}

:root .photo-wall-chip.-active {
  background: #fff;
  border-color: #fff;
  color: #111;
}

:root .photo-wall-shuffle {
  border-color: transparent;
  background: var(--theme-accent-gradient);
}

:root .photo-wall-shuffle svg {
  width: 16px;
  height: 16px;
}

:root .photo-wall {
  padding: 6px;
  min-height: 60vh;
  overflow-x: clip;
}

:root .page-photo-wall {
  overflow-x: clip;
}

/* Phones: the types in one row that scrolls sideways */
@media (max-width: 767px) {
  :root .photo-wall-head {
    padding-bottom: 20px;
  }

  :root .photo-wall-filters {
    flex-wrap: nowrap;
    margin: 0 calc(var(--nav-padding-x) * -1);
    padding: 0 var(--nav-padding-x) 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  :root .photo-wall-filters::-webkit-scrollbar {
    display: none;
  }

  :root .photo-wall-chip,
  :root .photo-wall-shuffle {
    flex: none;
  }
}

:root .photo-wall__row {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

:root .photo-wall__tile {
  position: relative;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  border-radius: 6px;
  background-color: #222;
}

:root .photo-wall__tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.5s, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

:root .photo-wall__tile.-loaded img {
  opacity: 1;
  transform: scale(1);
}

:root .photo-wall__tile:hover img {
  transform: scale(1.05);
}

:root .photo-wall__link {
  display: block;
  width: 100%;
  height: 100%;
}

:root .photo-wall__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 12px 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent);
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}

:root .photo-wall__caption strong {
  display: block;
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:root .photo-wall__caption span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0.8;
}

:root .photo-wall__favorite {
  opacity: 0;
  transition: opacity 0.2s, transform 0.15s;
}

:root .photo-wall__favorite.-on {
  opacity: 1;
}

:root .photo-wall__credit {
  position: absolute;
  top: 10px;
  right: 10px;
  max-width: 50%;
  overflow: hidden;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.25s;
}

:root .photo-wall__tile:hover .photo-wall__caption,
:root .photo-wall__tile:focus-within .photo-wall__caption {
  opacity: 1;
  transform: none;
}

:root .photo-wall__tile:hover .photo-wall__favorite,
:root .photo-wall__tile:focus-within .photo-wall__favorite,
:root .photo-wall__tile:hover .photo-wall__credit {
  opacity: 1;
}

/* Touch screens have no hover: names always show, smaller */
@media (hover: none) {
  :root .photo-wall__caption {
    padding: 24px 8px 6px;
    opacity: 1;
    transform: none;
  }

  :root .photo-wall__caption strong {
    font-size: 12px;
  }

  :root .photo-wall__caption span {
    display: none;
  }

  :root .photo-wall__favorite {
    opacity: 1;
  }
}

:root .photo-wall__end {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 20px 80px;
  color: rgba(255, 255, 255, 0.75);
}

:root .photo-wall__end .component-icon {
  color: #fff;
}

:root .page-photo-wall .button {
  background: #fff;
}

/* ------------------------------------------------------------------ Favorites page */

:root .favorites-head {
  padding: calc(var(--nav-height) + 48px) var(--nav-padding-x) 32px;
  background: linear-gradient(180deg, var(--theme-red-tint), #fff);
  text-align: center;
}

:root .favorites-head__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #fff;
  color: var(--theme-red);
  box-shadow: 0 8px 24px rgba(227, 28, 95, 0.22);
}

:root .favorites-head__icon svg {
  width: 30px;
  height: 30px;
}

:root .favorites-head .heading1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 52px);
}

:root .favorites-head__lede {
  margin: 10px auto 0;
  max-width: 520px;
  font-size: 16px;
  color: var(--theme-text-secondary);
}

:root .favorites-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

:root .favorites-count {
  margin-right: 6px;
  font-weight: 700;
}

:root .favorites-body {
  padding: 16px var(--nav-padding-x) 80px;
  min-height: 40vh;
}

:root .favorites-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 380px;
  gap: 32px 24px;
  max-width: 1600px;
  margin: 0 auto;
}

@media (max-width: 1199px) {
  :root .favorites-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 899px) {
  :root .favorites-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 599px) {
  :root .favorites-grid {
    grid-template-columns: 1fr;
  }
}

/* With the map: the cards on the left, the map beside them, staying on screen while they scroll */
@media (min-width: 900px) {
  :root .favorites-body.-with-map {
    display: grid;
    grid-template-columns: 1fr 42%;
    align-items: start;
    gap: 24px;
    padding-right: 0;
  }

  :root .favorites-body.-with-map .favorites-grid {
    grid-template-columns: repeat(2, 1fr);
    margin: 0;
  }
}

@media (min-width: 1500px) {
  :root .favorites-body.-with-map .favorites-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

:root .favorites-map {
  position: sticky;
  top: 0;
  height: 100vh;
}

:root .favorites-map__map {
  width: 100%;
  height: 100%;
  background: #eef0f2;
}

@media (max-width: 899px) {
  :root .favorites-map {
    position: relative;
    height: 60vh;
    margin: 0 calc(var(--nav-padding-x) * -1) 24px;
    order: -1;
  }

  :root .favorites-body.-with-map {
    display: flex;
    flex-direction: column;
  }
}

:root .favorites-map__leaflet-popup .leaflet-popup-content {
  margin: 0;
}

:root .favorites-map__leaflet-popup .leaflet-popup-content-wrapper {
  padding: 0;
  overflow: hidden;
  border-radius: var(--theme-radius);
}

:root .favorites-map__popup {
  display: block;
  color: var(--theme-text);
}

:root .favorites-map__popup img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
}

:root .favorites-map__popup strong {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
}

:root .favorites-grid .hotspot-outer > .component-hotspot-card {
  width: 100%;
}

:root .favorites-loading {
  display: flex;
  justify-content: center;
  padding: 60px 0;
}

:root .favorites-empty {
  max-width: 420px;
  margin: 20px auto;
  text-align: center;
}

:root .favorites-empty > svg {
  width: 72px;
  height: 72px;
  color: var(--theme-border);
}

:root .favorites-empty p {
  color: var(--theme-text-secondary);
}

:root .favorites-empty__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

/* ------------------------------------------------------------------ List page: tour, download, offline */

:root .list-tools {
  margin: 20px 0 4px;
}

:root .list-tools .list-tools__play {
  border-color: transparent;
  background: var(--theme-accent-gradient);
  color: #fff;
}

:root .list-tools .list-tools__play:hover {
  border-color: transparent;
  filter: brightness(0.95);
}

:root .list-tools__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

:root .list-tools__menu {
  position: relative;
}

:root .list-tools__button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  overflow: hidden;
  border: 1px solid var(--theme-border);
  border-radius: 999px;
  background: #fff;
  color: var(--theme-text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s;
}

:root .list-tools__button:hover {
  border-color: var(--theme-text);
}

:root .list-tools__button svg {
  width: 18px;
  height: 18px;
}

:root .list-tools__button.-busy {
  cursor: default;
}

:root .list-tools__progress {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--theme-red-tint);
  transition: width 0.3s;
  z-index: -1;
}

:root .list-tools__button.-busy {
  isolation: isolate;
}

:root .list-tools__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  display: grid;
  min-width: 280px;
  padding: 6px;
  border-radius: var(--theme-radius);
  background: #fff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

:root .list-tools__dropdown button {
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: none;
  color: var(--theme-text-secondary);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

:root .list-tools__dropdown button:hover {
  background: var(--theme-bg-soft);
}

:root .list-tools__dropdown strong {
  display: inline-block;
  min-width: 40px;
  color: var(--theme-text);
}

:root .list-tools__saved {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #1a7f4b;
}

:root .list-tools__saved svg {
  width: 18px;
  height: 18px;
}

:root .list-tools__saved .link {
  margin-left: 6px;
  padding: 0;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 400;
  color: var(--theme-text-secondary);
  text-decoration: underline;
  cursor: pointer;
}

/* The tour */
body.tour-open {
  overflow: hidden;
}

:root .list-tour {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #0b0d10;
  color: #fff;
  animation: tour-in 0.4s ease-out;
}

@keyframes tour-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

:root .list-tour__map {
  position: absolute;
  inset: 0;
  background: #0b0d10;
}

:root .list-tour__map .leaflet-control-attribution {
  background: rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
}

:root .list-tour__map .leaflet-control-attribution a {
  color: inherit;
}

:root .list-tour__intro {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 500;
  width: min(90vw, 760px);
  transform: translate(-50%, -50%);
  text-align: center;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  transition: opacity 0.8s, transform 0.8s;
}

:root .list-tour__intro.-out {
  opacity: 0;
  transform: translate(-50%, -60%);
}

:root .list-tour__kicker {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}

:root .list-tour__intro h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #fff;
}

:root .list-tour__photo {
  position: absolute;
  top: 50%;
  right: 40px;
  z-index: 500;
  width: min(42vw, 680px);
  aspect-ratio: 4 / 3;
  margin: 0;
  transform: translateY(-55%);
  overflow: hidden;
  border-radius: 18px;
  background: #1b1f24;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  transition: opacity 0.6s, transform 0.6s;
}

:root .list-tour__photo.-hidden {
  opacity: 0;
  transform: translateY(-50%) scale(0.96);
  pointer-events: none;
}

:root .list-tour__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s ease;
}

:root .list-tour__photo img.-in {
  opacity: 1;
  animation: tour-zoom 12s ease-out forwards;
}

@keyframes tour-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

:root .list-tour__photo figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 60px 22px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent);
}

:root .list-tour__count {
  width: 100%;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0.75;
}

:root .list-tour__photo figcaption strong {
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

:root .list-tour__link {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  opacity: 0.9;
}

:root .list-tour__credit {
  width: 100%;
  font-size: 11px;
  opacity: 0.6;
}

:root .list-tour__timer {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  height: 3px;
  width: 100%;
  background: var(--theme-accent-gradient);
  transform-origin: left;
  animation: tour-timer 6.5s linear forwards;
}

:root .list-tour__timer.-paused {
  animation-play-state: paused;
}

@keyframes tour-timer {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

:root .list-tour__end {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 500;
  transform: translate(-50%, -50%);
  text-align: center;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
  animation: tour-in 0.6s ease-out;
}

:root .list-tour__end h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 48px);
  color: #fff;
}

:root .list-tour__controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(15, 17, 20, 0.7);
  backdrop-filter: blur(10px);
  transform: translateX(-50%);
}

:root .list-tour__controls button,
:root .list-tour__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s;
}

:root .list-tour__controls button:hover:not(:disabled),
:root .list-tour__close:hover {
  background: rgba(255, 255, 255, 0.24);
}

:root .list-tour__controls button:disabled {
  opacity: 0.35;
  cursor: default;
}

:root .list-tour__controls button.-main {
  width: 54px;
  height: 54px;
  background: #fff;
  color: #111;
}

:root .list-tour__controls button.-main:hover {
  background: #f1f1f1;
}

:root .list-tour__controls svg,
:root .list-tour__close svg {
  width: 22px;
  height: 22px;
}

:root .list-tour__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 600;
  background: rgba(15, 17, 20, 0.6);
}

/* Phones: the photo across the top, the map below */
@media (max-width: 767px) {
  :root .list-tour__photo {
    top: 0;
    right: 0;
    left: 0;
    width: auto;
    aspect-ratio: auto;
    height: 46vh;
    border-radius: 0 0 18px 18px;
    transform: none;
  }

  :root .list-tour__photo.-hidden {
    transform: translateY(-20px);
  }

  :root .list-tour__photo figcaption {
    padding: 40px 16px 14px;
  }

  :root .list-tour__close {
    top: 12px;
    right: 12px;
  }

  :root .list-tour__controls {
    bottom: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root .list-tour__photo img.-in {
    animation: none;
  }
}

/* ------------------------------------------------------------------ Home page sections */

:root .home-kicker {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--theme-red);
}

:root .home-section {
  padding: 80px var(--nav-padding-x);
}

:root .home-section__head {
  max-width: 620px;
  margin-bottom: 36px;
}

:root .home-section__title {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

:root .home-section__lede,
:root .home-marquee__card h2,
:root .home-marquee__card p,
:root .home-stats__lede,
:root .home-feature h3,
:root .photo-wall-head__lede,
:root .favorites-head__lede {
  text-wrap: balance;
}

:root .home-section__lede {
  margin: 12px 0 0;
  font-size: 17px;
  color: var(--theme-text-secondary);
}

/* Sections and their tiles rise in as they scroll into view */
:root .home-section .home-section__head,
:root .home-type,
:root .home-destination,
:root .home-feature {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

:root .home-section.-seen .home-section__head,
:root .home-section.-seen .home-type,
:root .home-section.-seen .home-destination,
:root .home-section.-seen .home-feature {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  :root .home-section .home-section__head,
  :root .home-type,
  :root .home-destination,
  :root .home-feature {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Spot of the day: a full-width banner whose photos slowly zoom and fade from one to the next */
:root .home-spotlight {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(88vh, 860px);
  overflow: hidden;
  background: #111;
  color: #fff;
}

:root .home-spotlight__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.6s ease, transform 8s ease-out;
}

:root .home-spotlight__media img.-in {
  opacity: 1;
  transform: scale(1);
}

:root .home-spotlight__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0) 70%),
    linear-gradient(to right, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0) 60%);
}

:root .home-spotlight__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 0 var(--nav-padding-x) clamp(48px, 9vh, 96px);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease-out 0.2s, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s;
}

:root .home-spotlight.-seen .home-spotlight__content {
  opacity: 1;
  transform: none;
}

:root .home-spotlight .home-kicker {
  color: #fff;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  font-size: 12px;
}

:root .home-spotlight__name {
  margin: 6px 0 10px;
  font-size: clamp(40px, 6.5vw, 88px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}

:root .home-spotlight__name a {
  color: #fff;
}

:root .home-spotlight__place {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  opacity: 0.92;
}

:root .home-spotlight__place svg {
  width: 18px;
  height: 18px;
}

:root .home-spotlight__desc {
  max-width: 560px;
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.55;
  opacity: 0.85;
}

:root .home-spotlight__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

:root .home-spotlight__actions .button {
  height: 50px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  font-size: 16px;
}

:root .home-spotlight__save {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

:root .home-spotlight__save:hover {
  background: rgba(255, 255, 255, 0.2);
}

:root .home-spotlight__save .component-icon {
  display: flex;
}

:root .home-spotlight__save svg {
  position: static;
  width: 20px !important;
  height: 20px !important;
}

:root .home-spotlight__save.-on svg path {
  fill: var(--theme-red);
  stroke: var(--theme-red);
}

:root .home-spotlight__thumbs {
  position: absolute;
  right: var(--nav-padding-x);
  bottom: clamp(48px, 9vh, 96px);
  z-index: 1;
  display: flex;
  gap: 8px;
}

:root .home-spotlight__thumbs button {
  width: 64px;
  height: 64px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #222;
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
}

:root .home-spotlight__thumbs button:hover {
  opacity: 0.9;
}

:root .home-spotlight__thumbs button.-active {
  border-color: #fff;
  opacity: 1;
  transform: translateY(-4px);
}

:root .home-spotlight__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

:root .home-spotlight__credit {
  position: absolute;
  right: var(--nav-padding-x);
  bottom: 16px;
  z-index: 1;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 991px) {
  :root .home-spotlight__thumbs {
    display: none;
  }
}

@media (max-width: 767px) {
  :root .home-spotlight {
    min-height: 82vh;
  }

  :root .home-spotlight__desc {
    display: none;
  }

  :root .home-spotlight__credit {
    left: var(--nav-padding-x);
    right: auto;
  }
}

/* Hotspot types: a grid of photo tiles, the first two bigger */
:root .home-types__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 15vw, 230px);
  grid-auto-flow: dense;
  gap: 14px;
}

:root .home-type {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--theme-radius);
  background: #222;
  color: #fff;
}

:root .home-type.-n0 {
  grid-column: span 2;
  grid-row: span 2;
}

:root .home-type.-n1 {
  grid-row: span 2;
}

:root .home-type img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

:root .home-type:hover img {
  transform: scale(1.07);
}

:root .home-type::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0) 55%);
}

:root .home-type__label {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 1;
}

:root .home-type__label strong {
  display: block;
  font-size: clamp(18px, 1.8vw, 24px);
  letter-spacing: -0.01em;
}

:root .home-type.-n0 .home-type__label strong {
  font-size: clamp(26px, 3vw, 40px);
}

:root .home-type__label small {
  font-size: 13px;
  opacity: 0.85;
}

@media (max-width: 767px) {
  :root .home-types__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
    gap: 10px;
  }

  :root .home-type.-n1 {
    grid-row: span 1;
  }
}

/* Destinations: tall photo cards */
:root .home-destinations {
  background: var(--theme-bg-soft);
}

:root .home-destinations__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

:root .home-destination {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 18px;
  background: #222;
  color: #fff;
  box-shadow: var(--theme-shadow-small);
}

:root .home-destination img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

:root .home-destination:hover img {
  transform: scale(1.06);
}

:root .home-destination::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0) 60%);
}

:root .home-destination__text {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1;
}

:root .home-destination__text small {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
}

:root .home-destination__text strong {
  display: block;
  margin: 2px 0 6px;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

:root .home-destination__spots {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  opacity: 0.8;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (max-width: 991px) {
  :root .home-destinations__grid {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: minmax(220px, 42vw);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--nav-padding-x);
    margin: 0 calc(var(--nav-padding-x) * -1);
    padding: 0 var(--nav-padding-x) 8px;
    scrollbar-width: none;
  }

  :root .home-destination {
    scroll-snap-align: start;
  }
}

@media (max-width: 767px) {
  :root .home-section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  :root .home-destinations__grid {
    grid-auto-columns: 72vw;
  }
}

/* The moving strip of photos, with a card leading to the photo wall */
:root .home-marquee {
  position: relative;
  padding: 72px 0;
  overflow: hidden;
  background: #111;
}

:root .home-marquee__band {
  overflow: hidden;
}

:root .home-marquee__band + .home-marquee__band {
  margin-top: 10px;
}

:root .home-marquee__track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: marquee 90s linear infinite;
}

:root .home-marquee__band:nth-child(even) .home-marquee__track {
  animation-direction: reverse;
  animation-duration: 110s;
}

:root .home-marquee__band:nth-child(3) .home-marquee__track {
  animation-duration: 100s;
}

:root .home-marquee__band:nth-child(4) .home-marquee__track {
  animation-duration: 125s;
}

:root .home-marquee:hover .home-marquee__track {
  animation-play-state: paused;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

:root .home-marquee__track a {
  display: block;
  height: clamp(110px, 11vw, 170px);
  overflow: hidden;
  border-radius: 10px;
  background: #222;
}

:root .home-marquee__track img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: opacity 0.3s, transform 0.5s;
}

:root .home-marquee__track a:hover img {
  opacity: 1;
  transform: scale(1.05);
}

:root .home-marquee__card {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: min(88vw, 460px);
  padding: 32px;
  border-radius: 22px;
  background: rgba(17, 17, 17, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  color: #fff;
  text-align: center;
  transform: translate(-50%, -50%);
}

:root .home-marquee__card h2 {
  margin: 0 0 10px;
  font-size: clamp(30px, 3.6vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #fff;
}

:root .home-marquee__card p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
}

:root .home-marquee__card .button {
  height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 26px;
}

@media (prefers-reduced-motion: reduce) {
  :root .home-marquee__track {
    animation: none;
  }
}

/* Phones: the card under the moving photos rather than over them */
@media (max-width: 767px) {
  :root .home-marquee {
    padding: 40px 0 48px;
  }

  :root .home-marquee__card {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    margin: 24px var(--nav-padding-x) 0;
    padding: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: none;
  }
}

/* Latest hotspots, on light grey */
:root .page-home .component-slider.home-latest {
  --bg-color: #f7f7f7;
  background-color: var(--theme-bg-soft);
}

/* From the blog: four cards in a row */
:root .home-blog__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
}

:root .home-blog__post {
  display: flex;
  flex-direction: column;
  color: var(--theme-text);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

:root .home-blog.-seen .home-blog__post {
  opacity: 1;
  transform: none;
}

:root .home-blog__image {
  display: block;
  aspect-ratio: 4 / 5;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 16px;
  background: #eee;
}

:root .home-blog__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

:root .home-blog__post:hover .home-blog__image img {
  transform: scale(1.05);
}

:root .home-blog__post small {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--theme-red);
}

:root .home-blog__post strong {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

:root .home-blog__dek {
  display: -webkit-box;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.5;
  color: var(--theme-text-secondary);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

:root .home-blog__all {
  display: inline-block;
  margin-top: 32px;
  font-weight: 600;
}

@media (max-width: 1199px) {
  :root .home-blog__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  :root .home-blog__image {
    aspect-ratio: 3 / 2;
  }
}

@media (max-width: 600px) {
  :root .home-blog__grid {
    grid-template-columns: 1fr;
  }
}

/* Abandoned places: dark, with a collage of photos */
:root .home-abandoned {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) 1.4fr;
  align-items: center;
  gap: 48px;
  padding: 88px var(--nav-padding-x);
  background:
    radial-gradient(ellipse at 0% 100%, rgba(120, 90, 60, 0.25), transparent 55%),
    #141312;
  color: #fff;
}

:root .home-abandoned__text h2 {
  margin: 0 0 14px;
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #fff;
  text-wrap: balance;
}

:root .home-abandoned__text p {
  margin: 0 0 26px;
  max-width: 440px;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

:root .home-abandoned__text .button {
  height: 50px;
  display: inline-flex;
  align-items: center;
  padding: 0 26px;
  font-size: 16px;
}

:root .home-abandoned__text .home-abandoned__note {
  margin: 18px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

:root .home-abandoned__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, clamp(130px, 12vw, 200px));
  gap: 10px;
}

:root .home-abandoned__photo {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: #222;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease-out, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

:root .home-abandoned.-seen .home-abandoned__photo {
  opacity: 1;
  transform: none;
}

:root .home-abandoned__photo.-n0 {
  grid-column: span 2;
  grid-row: span 2;
}

:root .home-abandoned__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.55) contrast(1.08);
  transition: filter 0.6s, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

:root .home-abandoned__photo:hover img {
  filter: none;
  transform: scale(1.04);
}

:root .home-abandoned__photo span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px 14px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

:root .home-abandoned__photo small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  opacity: 0.75;
}

@media (max-width: 991px) {
  :root .home-abandoned {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

@media (max-width: 600px) {
  :root .home-abandoned__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 200px 120px 120px;
  }

  :root .home-abandoned__photo.-n0 {
    grid-row: span 1;
  }
}

/* The planning tools */
:root .home-features {
  background: var(--theme-bg-soft);
}

:root .home-features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

:root .home-feature {
  padding: 14px 14px 22px;
  border: 1px solid var(--theme-border-light);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--theme-shadow-small);
}

:root .home-feature:nth-child(2) { transition-delay: 0.08s; }
:root .home-feature:nth-child(3) { transition-delay: 0.16s; }
:root .home-feature:nth-child(4) { transition-delay: 0.24s; }

:root .home-feature__art {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 18px;
}

:root .home-feature h3 {
  margin: 0 6px 6px;
  font-size: 19px;
  letter-spacing: -0.01em;
}

:root .home-feature p {
  margin: 0 6px;
  color: var(--theme-text-secondary);
  font-size: 15px;
}

:root .home-feature .link {
  display: inline-block;
  margin: 12px 6px 0;
  font-weight: 600;
}

@media (max-width: 1199px) {
  :root .home-features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  :root .home-features__grid {
    grid-template-columns: 1fr;
  }
}

/* The numbers */
:root .home-stats {
  position: relative;
  padding: 96px var(--nav-padding-x);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(227, 28, 95, 0.55), transparent 50%),
    radial-gradient(ellipse at 85% 80%, rgba(242, 169, 0, 0.35), transparent 55%),
    #15161a;
  color: #fff;
  text-align: center;
}

:root .home-stats__lede {
  margin: 0 0 36px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}

:root .home-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto 40px;
}

:root .home-stats__grid > div {
  display: flex;
  flex-direction: column-reverse;
}

:root .home-stats__grid dd {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

:root .home-stats__grid dt {
  margin-top: 8px;
  font-size: 15px;
  opacity: 0.75;
}

:root .home-stats .button {
  height: 50px;
  display: inline-flex;
  align-items: center;
  padding: 0 30px;
  font-size: 16px;
}

@media (max-width: 767px) {
  :root .home-stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 16px;
  }
}

/* ------------------------------------------------------------------ "..." menus: a note beside an action */

:root .modal-container.-action-list small {
  margin-left: 6px;
  font-size: 12px;
  font-weight: 400;
  color: var(--theme-text-secondary);
}
