/* Общее для всех дизайнов: сброс, карта, метки, переключатель макетов */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

.app { min-height: 100%; position: relative; }

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

.search svg { width: 16px; height: 16px; flex-shrink: 0; }
.back { display: inline-flex; align-items: center; gap: 6px; }
.back svg { width: 16px; height: 16px; }

.map-photo {
  position: absolute;
  inset: 0;
  background:
    url("assets/map-spb.jpg") center / cover no-repeat;
  filter: var(--map-filter, none);
}

.map-stage { position: relative; overflow: hidden; }

.pin {
  position: absolute;
  transform: translate(-50%, -100%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px 5px 5px;
  border: 0;
  cursor: pointer;
  z-index: 3;
  font-family: var(--font-ui, var(--font-body));
}

.pin.is-on { z-index: 5; }

.pin-ico {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.pin-ico svg { width: 14px; height: 14px; }

.pin-rate {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pin-rate small {
  font-weight: 500;
  opacity: 0.7;
  font-size: 0.78em;
}

.cluster {
  position: absolute;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  cursor: pointer;
  z-index: 2;
  font-weight: 700;
}

.mock-tag {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 80;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
  max-width: min(920px, calc(100vw - 24px));
  padding: 6px 8px;
  font-size: 0.68rem;
  line-height: 1.2;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
}

.mock-tag a { text-decoration: underline; }
.mock-tag a.is-on { text-decoration: none; font-weight: 700; color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
