/* Vila Flamuri: the location page. Loaded after styles.css on that page only; the walk map and the lists of
   distances are in styles.css, shared with the home page. */

/* the walk map beside the walks it numbers */
.loc-walk { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.loc-walk__text > * + * { margin-top: 16px; }
.loc-walk__text .wave { margin-top: 12px; }
@media (max-width: 860px) { .loc-walk { grid-template-columns: 1fr; } }

/* getting here: four short cards */
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.arrive .card__body > .icon { width: 30px; height: 30px; color: var(--terra); }
.arrive p { color: var(--ink); }
@media (max-width: 1080px) { .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards--4 { grid-template-columns: 1fr; } }

/* ---------- the street map, loaded on request (streetmap.js) ---------- */
.streetmap { margin-top: 18px; }
/* a button is display:inline-flex, which outranks [hidden]: without the script there is no button */
.streetmap [data-streetmap-open][hidden] { display: none; }
.streetmap__note { margin-bottom: 12px; font-size: 0.92rem; color: var(--muted); }
.streetmap__map { position: relative; margin-bottom: 10px; }
.streetmap__frame { position: relative; height: 340px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--map-land); }
.streetmap__tiles { position: absolute; inset: 0; }
.streetmap__tile { position: absolute; width: 256px; height: 256px; max-width: none; }
.streetmap__overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.streetmap__pin circle { fill: var(--terra); stroke: var(--white); stroke-width: 2px; }
.streetmap__pole { fill: none; stroke: var(--petrol); stroke-width: 2.5px; stroke-linecap: round; }
.streetmap__flag { fill: var(--terra); }
.streetmap__credit { position: absolute; right: 1px; bottom: 1px; min-height: 24px; padding: 2px 8px; border-radius: 8px 0 var(--radius) 0; background: var(--white); color: var(--petrol); font-size: 0.78rem; line-height: 1.6; }
.streetmap__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.streetmap__zoom { width: 44px; height: 44px; border: 1.5px solid var(--petrol); border-radius: var(--pill); background: var(--white); color: var(--petrol); font-size: 1.3rem; font-weight: 700; line-height: 1; }
.streetmap__zoom:hover:not(:disabled) { background: var(--petrol); color: var(--white); }
.streetmap__zoom:disabled { border-color: var(--line); color: var(--muted); cursor: default; }
.streetmap__osm { display: inline-flex; align-items: center; min-height: 44px; margin-left: 6px; font-weight: 700; }
.streetmap__error { margin-top: 8px; color: var(--error); font-size: 0.92rem; font-weight: 700; }
.streetmap + .link-list { margin-top: 18px; }
@media (max-width: 700px) { .streetmap__frame { height: 300px; } }
@media (forced-colors: active) {
  .streetmap__zoom:disabled { color: GrayText; border-color: GrayText; }
}
