/* 2026-09-28 15:42 CEST - The iOS location tour's night city, adapted as a quiet landing illustration that scrolls with the page.
   Venue heat, full presence rings and faint ticket rings keep the Map's meaning. site.css owns arrival. */

.landing {
  position: relative;
  isolation: isolate;
}

.landing-map {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  animation: light-on var(--arrive-light) var(--arrive-ease) backwards;
}

.landing-map-city {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  mask-image: radial-gradient(ellipse at 50% 46%, transparent 18%, white 70%);
}

.map-place {
  position: absolute;
  left: var(--map-x);
  top: var(--map-y);
  translate: -50% -50%;
  text-align: center;
  white-space: nowrap;
}

.map-place-arrival {
  --rise: var(--arrive-support-rise);
  position: relative;
  animation: arrive var(--arrive-support) var(--arrive-ease) var(--arrive-support-delay) backwards;
}

/* The warm field is the native Map's crowd illustration, attached to its venue. */
.map-place-warm::before {
  content: "";
  position: absolute;
  width: 270px;
  height: 270px;
  left: 50%;
  top: 40%;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 231, 186, 0.2), rgba(233, 168, 84, 0.13) 18%, rgba(158, 112, 52, 0.08) 40%, rgba(20, 16, 8, 0) 70%);
  animation: breathe 14s ease-in-out infinite alternate;
}

.map-place-garden { --map-x: 19%; --map-y: 16%; }
.map-place-club { --map-x: 83%; --map-y: 56%; }
.map-place-turbina { --map-x: 77%; --map-y: 79%; }
.map-place-akvarium { --map-x: 22%; --map-y: 69%; }

.map-faces {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.map-faces img {
  width: 48px;
  height: 48px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  object-fit: cover;
  background: var(--ground);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.map-faces img + img {
  margin-left: -12px;
}

.map-faces-expected img {
  border-color: var(--line);
}

.map-venue,
.map-detail {
  display: block;
  font-size: var(--small);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 8px var(--ground);
}

.map-venue {
  color: var(--ink);
}

.map-venue::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 6px 2px 0;
  border-radius: 50%;
  background: var(--ink-muted);
}

.map-place-warm .map-venue::before {
  background: #ffb45e;
}

.map-detail {
  color: var(--ink-muted);
}

.landing .map-credit {
  display: flex;
  justify-content: space-between;
  flex-basis: 100%;
  grid-column: 1 / -1;
  grid-row: 1;
  width: 100%;
  margin-bottom: 8px;
  color: var(--ink-muted);
}

.map-attribution {
  font-size: 9px;
  letter-spacing: 0;
}

.landing .map-attribution a {
  min-height: 24px;
}

@media (min-width: 721px) {
  .landing .foot-copy,
  .landing .foot-links {
    grid-row: 2;
  }
}

/* Narrow screens keep the friends above the line, with the city running behind the whole page. */
@media (max-width: 900px) {
  .map-place-garden { --map-x: 24%; --map-y: 17%; }
  .map-place-club { --map-x: 76%; --map-y: 17%; }
  .map-place-turbina,
  .map-place-akvarium { display: none; }

  .map-faces img { width: 40px; height: 40px; }
  .map-faces { margin-bottom: 6px; }
  .map-place-warm::before { width: 220px; height: 220px; }
  .landing .stage { padding-top: 140px; }
  .landing .map-credit { flex-direction: column; align-items: center; gap: 2px; }
}

@media (max-width: 900px) and (max-height: 740px) {
  .map-faces img { width: 32px; height: 32px; }
  .landing .stage { padding-top: 120px; }
  .landing { overflow-y: auto; touch-action: pan-y pinch-zoom; }
}

/* A keyboard or heavy zoom gets a quiet city instead of portraits competing with the form. */
@media (max-height: 500px) {
  .map-place { display: none; }
  .landing .stage { padding-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .landing-map,
  .map-place-arrival,
  .map-place-warm::before { animation: none; }
}
