/* Sunny Side Apartments guide - the printed booklet, on a phone.
   Palette and type deliberately match the booklet so they read as one thing. */

:root {
  --cream: #FCF5E8;
  --blue: #D4EBE9;
  --text: #23312F;
  --muted: #7D8F8C;
  --rule: #C9D8D5;

  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --tap: 3.25rem;  /* nothing tappable is smaller than a thumb */
  --gap: 1rem;
}

* { box-sizing: border-box; }

/* A class that sets `display` outruns the browser's rule for [hidden], which
   would otherwise leave the locate button and the map legend on screen with no
   JavaScript to make either of them mean anything. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

/* Jump links glide rather than teleport - unless the phone asks otherwise. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  /* Bottom padding clears the fixed essentials bar and the wave artwork. */
  padding: 0 0 11rem;
  background: var(--cream);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.5;
}

a { color: inherit; }

.wrap { max-width: 34rem; margin: 0 auto; padding: 0 var(--gap); }

/* ── header and breadcrumb ─────────────────────────────────────────────── */

.head {
  max-width: 34rem;
  margin: 0 auto;
  padding: 1.5rem var(--gap) 0.75rem;
  text-align: center;
}

.head__home {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}

.head__place {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
  font-style: italic;
}

/* A button, not a footnote. As muted underlined text this was invisible -
   the way out of the guide has to look like something you can press. */
.head__site { margin: 0.85rem 0 0; }

.head__site a {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 2.5rem;
  padding: 0 1.1rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--blue);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 160ms cubic-bezier(.2,.7,.3,1), background 160ms ease;
}

.head__site a:hover { background: color-mix(in srgb, var(--blue) 70%, var(--text) 8%); }
.head__site a:active { transform: scale(.97); }
.head__site .arrow { transition: translate 200ms cubic-bezier(.2,.7,.3,1); }
.head__site a:hover .arrow { translate: 0.2rem 0; }

/* Sticky so the way back up never scrolls off, whatever the page length. */
.crumbs {
  position: sticky;
  top: 0;
  z-index: 3;
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(8px);
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.crumbs__inner {
  display: block;
  max-width: 34rem;
  margin: 0 auto;
  padding: 0.75rem var(--gap);
}

.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); }
.crumbs__sep { padding: 0 0.4em; }

/* ── headings ──────────────────────────────────────────────────────────── */

.h1 {
  margin: 1.5rem 0 1rem;
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.h2 {
  margin: 0 0 0.75rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.h2 a { text-decoration: none; }

.lede { margin: 1.25rem 0; font-size: 1.25rem; font-style: italic; }

.h3 {
  margin: 1.75rem 0 0.25rem;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Intro paragraphs on an activity page. */
.prose { margin: 0 0 1rem; }


.aside {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9375rem;
  font-style: italic;
}

.group { margin-bottom: 2rem; }

/* ── tiles ─────────────────────────────────────────────────────────────── */

.tiles { list-style: none; margin: 1.5rem 0; padding: 0; }
.tiles li + li { margin-top: 0.75rem; }

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
  min-height: 5.5rem;
  padding: 1.1rem 1.25rem;
  margin: 0;
  background: var(--blue);
  border: 1px solid var(--rule);
  border-radius: 4px;
  text-decoration: none;
  overflow: hidden;
  transition: transform 220ms cubic-bezier(.2,.7,.3,1), box-shadow 220ms ease;
}

/* A chevron that leans in on press - the tile says "this goes somewhere". */
.tile[href] { padding-right: 2.75rem; }

.tile[href]::after {
  content: "›";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  translate: 0 -55%;
  font-size: 1.75rem;
  color: var(--muted);
  transition: translate 220ms cubic-bezier(.2,.7,.3,1);
}

.tile[href]:hover { transform: translateY(-2px); box-shadow: 0 6px 18px -12px var(--text); }
.tile[href]:hover::after { translate: 0.25rem -55%; }
.tile[href]:active { transform: scale(.985); }

.tile--sub { min-height: var(--tap); }

.tile__title {
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tile__sub {
  color: var(--muted);
  font-size: 0.875rem;
  font-style: italic;
  line-height: 1.35;
}

.tile--soon { background: transparent; opacity: 0.55; }

/* ── cards ─────────────────────────────────────────────────────────────── */

.card {
  padding: 1.1rem 0 1.35rem;
  border-top: 1px solid var(--rule);
  /* Clears the sticky breadcrumb when a jump link lands here. */
  scroll-margin-top: 4rem;
}

/* ── jump nav ──────────────────────────────────────────────────────────── */

.jump {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0 var(--gap) 0.25rem;
  margin-inline: calc(var(--gap) * -1);
  overflow-x: auto;
  scrollbar-width: none;
  /* Fades the right edge so the row reads as scrollable, not clipped. */
  mask-image: linear-gradient(90deg, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
}

.jump::-webkit-scrollbar { display: none; }

.jump__link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 0.95rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--blue);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms cubic-bezier(.2,.7,.3,1), background 160ms ease;
}

.jump__link:hover { background: color-mix(in srgb, var(--blue) 70%, var(--text) 8%); }
.jump__link:active { transform: scale(.96); }

@media (min-width: 40rem) {
  .jump { flex-wrap: wrap; overflow: visible; mask-image: none; -webkit-mask-image: none; }
}

.card + .card { margin-top: 0; }

.card--emergency {
  padding: 1.1rem 1.25rem 1.35rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--blue);
}

/* The one number on the site that has to be legible at arm's length. */
.card--emergency .card__name { font-size: 2.75rem; line-height: 1.1; }

/* Whole picture, never a crop. These are portrait and landscape in equal
   measure, and a fixed height with object-fit: cover was cutting the top off
   the tall ones - which is exactly the part worth looking at. The width and
   height attributes in the markup hold the space while it loads. */
.card__photo {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 0.9rem;
  border-radius: 4px;
  background: var(--blue);
}

.card__name { margin: 0; font-size: 1.3125rem; font-weight: 700; }

.card__tagline {
  margin: 0.15rem 0 0.75rem;
  color: var(--muted);
  font-style: italic;
}

.card__note { margin: 0.75rem 0 0; font-size: 0.9375rem; }

.tag {
  margin-left: 0.5rem;
  padding: 0.1rem 0.45rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  vertical-align: middle;
}

/* ── meta rows ─────────────────────────────────────────────────────────── */

.meta { display: grid; grid-template-columns: 5.5rem 1fr; gap: 0.2rem 0.75rem; margin: 0; }

.meta:empty { display: none; }

.meta dt {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.25rem;
}

.meta dd { margin: 0; font-size: 0.9375rem; }

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.notes { margin: 0.5rem 0 0; padding-left: 1.1rem; font-size: 0.9375rem; }
.notes li + li { margin-top: 0.35rem; }

/* ── routes (Sunny Side Cycling) ───────────────────────────────────────── */

.routes { list-style: none; margin: 0.9rem 0 0; padding: 0; }

.route {
  display: flex;
  flex-direction: column;
  padding: 0.6rem 0 0.6rem 0.9rem;
  border-left: 2px solid var(--rule);
  font-size: 0.9375rem;
}

.route + .route { margin-top: 0.35rem; }
.route a { font-weight: 700; }
.route__where, .route__stats, .route__note { color: var(--muted); }
.route__where { font-style: italic; }
.route__stats { font-family: var(--sans); font-size: 0.8125rem; }
.route__note { font-size: 0.875rem; margin-top: 0.25rem; }

/* ── actions ───────────────────────────────────────────────────────────── */

.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }
.actions:empty { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 1rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: transparent;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 160ms cubic-bezier(.2,.7,.3,1), background 160ms ease;
}

.btn:hover { background: var(--blue); }
.btn:active { transform: scale(.96); }

/* The WiFi reveal is a real <button>, which inherits neither colour nor font. */
button.btn { color: inherit; cursor: pointer; -webkit-appearance: none; appearance: none; }
button.btn:disabled { opacity: 0.6; cursor: default; transform: none; }
[aria-disabled="true"].btn { opacity: 0.6; }

.btn--call { background: var(--blue); }
.btn--call:hover { background: color-mix(in srgb, var(--blue) 70%, var(--text) 8%); }

/* WhatsApp's own green, so it is recognised before it is read. */
.btn--wa { background: #25D366; border-color: #1eb257; color: #0b2e18; }
.btn--wa:hover { background: #1eb257; }

.back { margin: 2rem 0 0; font-family: var(--sans); font-size: 0.875rem; }

/* ── waves and the persistent essentials bar ───────────────────────────── */

.waves {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: -1;
  width: 100%;
  height: 13rem;
  pointer-events: none;
}

/* A control strip, not a caption. It is tinted and lifted off the page so it
   reads as tappable at a glance - on a phone in a kitchen, "is that a button?"
   is a question nobody should have to ask. */
.bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  border-top: 1px solid var(--rule);
  background: var(--blue);
  box-shadow: 0 -8px 24px -18px var(--text);
  padding-bottom: env(safe-area-inset-bottom);
}

.bar__link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  min-width: 0;
  min-height: var(--tap);
  padding: 0 0.5rem;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 160ms ease;
}

.bar__link:active { background: color-mix(in srgb, var(--blue) 70%, var(--text) 10%); }

.bar__link--back { border-right: 1px solid var(--rule); }
.bar__arrow { font-size: 1.1em; transition: translate 200ms cubic-bezier(.2,.7,.3,1); }
.bar__link--back:hover .bar__arrow { translate: -0.2rem 0; }

/* Essentials is the one thing on here nobody knows they need until they do,
   so it gets the underline that says "this is a link". */
.bar__link--essentials { border-right: 1px solid var(--rule); }
.bar__link--essentials span { border-bottom: 1px solid currentColor; padding-bottom: 1px; }

/* 112 in the emergency colour, filled, so it never reads as a label. */
.bar__link--emergency {
  flex: 0 0 5rem;
  background: var(--text);
  color: var(--cream);
  font-size: 0.875rem;
}
.bar__link--emergency:active { background: #16211f; }

@media (min-width: 40rem) {
  /* Kept a full-width strip on desktop too. As a small pill in the corner it
     was easy to miss entirely, which defeats the point of it. */
  .bar { justify-content: center; }
  .bar__link { flex: 0 1 14rem; padding: 0 1.5rem; font-size: 0.8125rem; min-height: 3.5rem; }
  .bar__link--emergency { flex: 0 0 7rem; }
}

/* ── motion ────────────────────────────────────────────────────────────────
   All of it is enhancement. Nothing below changes what is on the page, and
   the whole block is switched off for anyone who asked for less movement. */

/* Cross-document zoom between levels. Unsupported browsers just navigate.
   Top level on purpose: nesting @view-transition inside @media is not reliably
   supported, and the reduced-motion block below switches it off instead. */
@view-transition { navigation: auto; }

@media (prefers-reduced-motion: no-preference) {

  /* The chrome stays put while the content zooms - that is the whole trick. */
  .head { view-transition-name: head; }
  .crumbs { view-transition-name: crumbs; }
  .bar { view-transition-name: bar; }
  .waves { view-transition-name: waves; }

  ::view-transition-old(root) { animation: zoom-out 220ms cubic-bezier(.4,0,1,1) both; }
  ::view-transition-new(root) { animation: zoom-in 320ms cubic-bezier(.2,.7,.3,1) both; }

  /* Going back up reverses the direction, so the levels feel like one space. */
  :root[data-dir="back"]::view-transition-old(root) { animation-name: zoom-in-reverse; }
  :root[data-dir="back"]::view-transition-new(root) { animation-name: zoom-out-reverse; }

  @keyframes zoom-in    { from { opacity: 0; transform: scale(.94); } }
  @keyframes zoom-out   { to   { opacity: 0; transform: scale(1.05); } }
  @keyframes zoom-out-reverse { from { opacity: 0; transform: scale(1.06); } }
  @keyframes zoom-in-reverse  { to   { opacity: 0; transform: scale(.95); } }

  @keyframes rise {
    from { opacity: 0; transform: translateY(1.25rem); }
  }

  .tiles li, .group, .card, .lede {
    animation: rise 520ms cubic-bezier(.2,.7,.3,1) both;
  }

  /* Stagger, so a screen assembles itself rather than appearing all at once. */
  .tiles li:nth-child(2), .group:nth-of-type(2) { animation-delay: 80ms; }
  .tiles li:nth-child(3), .group:nth-of-type(3) { animation-delay: 160ms; }
  .tiles li:nth-child(4), .group:nth-of-type(4) { animation-delay: 240ms; }
  .card:nth-of-type(2) { animation-delay: 70ms; }
  .card:nth-of-type(3) { animation-delay: 140ms; }
  .card:nth-of-type(4) { animation-delay: 210ms; }
  .card:nth-of-type(n+5) { animation-delay: 280ms; }

  /* Where the browser can drive an animation from scroll position, cards fade
     up as they arrive instead of on a timer. Chrome today, others later.

     The range is a single `cover` phase on purpose. Mixing phases (entry ->
     cover) resolves unpredictably for elements taller than the viewport, and a
     card that never finishes revealing is a phone number a guest cannot read.
     `cover 25%` is well defined at any element size and lands early - the card
     is fully opaque by the time it is properly on screen. */
  @supports (animation-timeline: view()) {
    .card {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 15%;
      animation-delay: 0s;
    }
  }
}

/* Belt and braces: kill every transition animation if movement is unwelcome. */
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}

/* ── map ───────────────────────────────────────────────────────────────────
   The map is an enhancement over the list below it. Until the script runs the
   container has no height, so nothing reserves space for a map that may never
   appear. */

:root {
  --eat:  #B4553A;   /* rust   */
  --shop: #8A6E3F;   /* bronze */
  --do:   #2E7D8B;   /* teal   */
}

.map { height: 0; }

.map--on {
  height: min(62vh, 28rem);
  margin: 0 0 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--blue);
}

/* Raster OSM is a loud green-and-grey. Easing the saturation and warming it
   slightly settles it into the booklet palette without hiding any detail. */
.leaflet-tile-pane { filter: saturate(0.72) contrast(0.96) brightness(1.03) sepia(0.06); }

.map__foot { margin: 0 0 1.5rem; }
.map__count { margin: 0 0 0.5rem; font-family: var(--sans); font-size: 0.8125rem; color: var(--muted); }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--muted);
}

.legend li { display: inline-flex; align-items: center; gap: 0.4rem; }

.key {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  border: 2px solid var(--cream);
  box-shadow: 0 0 0 1px var(--rule);
}

.key--home { background: var(--text); }
.key--eat  { background: var(--eat); }
.key--shop { background: var(--shop); }
.key--do   { background: var(--do); }
.key--place{ background: var(--cream); box-shadow: 0 0 0 1px var(--muted); border-color: var(--do); }

/* ── filters ─────────────────────────────────────────────────────────────── */

.tiles--filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.tiles--filter li { margin: 0 !important; flex: 1 1 8rem; }
.tiles--filter .tile { min-height: 3.25rem; padding: 0.75rem 1rem; }
.tiles--filter .tile[href] { padding-right: 1rem; }
.tiles--filter .tile[href]::after { content: none; }
.tiles--filter .tile__title { font-size: 0.8125rem; letter-spacing: 0.12em; }
.tiles--filter .tile[aria-current="true"],
.jump__link[aria-current="true"] {
  background: var(--text);
  color: var(--cream);
  border-color: var(--text);
}

/* ── markers ─────────────────────────────────────────────────────────────
   Drawn in CSS: no image requests, and the colour can carry meaning. Colour
   is which part of the guide it belongs to; a hollow centre means somewhere
   to go rather than a business to ring.

   Everything visual sits on the inner <i>. The marker element itself is
   positioned by Leaflet with a transform, so styling or animating transform
   on it would move the pin off its own coordinates. */

.pin i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2.5px solid var(--cream);
  box-shadow: 0 2px 6px rgba(35, 49, 47, .45);
  transition: transform 180ms cubic-bezier(.2, .7, .3, 1);
}

.pin--eat  i { background: var(--eat); }
.pin--shop i { background: var(--shop); }
.pin--do   i { background: var(--do); }

.pin--place i { background: var(--cream); border-color: var(--do); border-width: 4px; }
.pin--eat.pin--place  i { border-color: var(--eat); }
.pin--shop.pin--place i { border-color: var(--shop); }

.pin--home i { background: var(--text); border-color: var(--cream); box-shadow: 0 2px 8px rgba(35,49,47,.6); }

.pin:hover i, .pin:focus i { transform: scale(1.35); }
.pin:hover, .pin:focus { z-index: 500; }

@media (prefers-reduced-motion: no-preference) {
  /* Pins arrive rather than appear, staggered from the script. */
  .leaflet-marker-icon.pin i { animation: pin-in 380ms cubic-bezier(.2, 1, .3, 1) both; }

  @keyframes pin-in {
    from { opacity: 0; transform: translateY(-10px) scale(.4); }
    to   { opacity: 1; transform: scale(1); }
  }

  /* A slow ring off the apartment, so the eye finds "you are here" first. */
  .pin--home i::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--text);
    animation: pin-ping 2.8s ease-out infinite;
  }

  @keyframes pin-ping {
    0%   { opacity: .55; transform: scale(.8); }
    70%  { opacity: 0;   transform: scale(2.1); }
    100% { opacity: 0;   transform: scale(2.1); }
  }
}

/* ── popups ──────────────────────────────────────────────────────────────── */

.leaflet-popup-content-wrapper { border-radius: 6px; box-shadow: 0 10px 30px -12px rgba(35,49,47,.6); }
.leaflet-popup-content { margin: 0.85rem 0.9rem; font-family: var(--serif); }
.pop__pic { width: 100%; height: auto; border-radius: 3px; margin-bottom: 0.5rem; display: block; }
.pop__name { font-size: 1.0625rem; font-weight: 700; text-decoration: none; }
.pop__tag { margin: 0.15rem 0 0; color: var(--muted); font-style: italic; }
.pop__offers, .pop__note { margin: 0.35rem 0 0; font-size: 0.8125rem; color: var(--muted); }
.pop__actions { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.6rem; }

.pop__btn {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0 0.7rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
}

.pop__btn--call { background: var(--blue); }
.pop__btn--wa { background: #25D366; border-color: #1eb257; color: #0b2e18; }

.offmap { list-style: none; margin: 0.75rem 0 0; padding: 0; font-size: 0.9375rem; }
.offmap li { padding: 0.6rem 0; border-top: 1px solid var(--rule); }
.offmap span { color: var(--muted); font-style: italic; }
.offmap__call { display: block; margin-top: 0.25rem; font-family: var(--sans); font-size: 0.875rem; }

/* The map sits under the three tiles, deliberately quieter than them: it is a
   different way into the same places, not a fourth thing to do. */
.tile--map { margin-top: 0.75rem; background: transparent; }
.tile--map .tile__title { font-size: 0.9375rem; }

/* ── map: house, you-are-here, and the locate control ───────────────────── */

.map__tools { display: flex; align-items: center; gap: 0.75rem; margin: 0 0 0.75rem; flex-wrap: wrap; }
.map__hint { font-family: var(--sans); font-size: 0.8125rem; color: var(--muted); }
.btn--locate { min-height: 2.75rem; font-size: 0.8125rem; background: var(--blue); }

/* The apartment: a house rather than a dot, because it is the one pin that is
   not an option you are weighing up. */
.pin--home i {
  display: grid;
  place-items: center;
  background: var(--text);
  border: 2.5px solid var(--cream);
}

.pin--home svg { width: 62%; height: 62%; fill: var(--cream); }

/* Your own position, if you ask for it. */
.pin--you i { background: #2F6FEA; border-color: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .pin--you i::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #2F6FEA;
    animation: pin-ping 2.2s ease-out infinite;
  }
}

.pop__far {
  margin: 0.35rem 0 0;
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--muted);
}

/* Rows in the list under the map are map controls too. */
.offmap a[data-pin] { text-decoration: none; border-bottom: 1px solid var(--rule); }
.offmap a[data-pin]:hover { border-bottom-color: var(--text); }
