/* Areas · new version — option C, made automatic: a tour plays through the towns on its own while the map flies to each,
   with controls, a clear index of every town grouped by distance, and the lookup. */
.ar2-hero { padding: calc(var(--head-h) + 80px) 0 50px; background: var(--paper); }
.ar2-hero__top { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 80px); align-items: end; }
.ar2-hero .tag { margin-bottom: 22px; }
.ar2-hero .d-xl em { color: var(--crimson); }
.ar2-hero .lede { margin: 0 0 24px; }

.ar2-tour { --tint: var(--paper); --c: #9f102c; background: var(--tint); transition: background-color .8s; padding: 30px 0 110px; }
.ar2-tour__grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; align-items: stretch; }

/* the big photo of the current town */
.ar2-stage { position: relative; min-height: 600px; border-radius: 30px; overflow: hidden; background: #1a1c21; color: #fff; isolation: isolate; box-shadow: 0 0 0 0 var(--c), 0 40px 70px -45px rgba(0, 0, 0, .55); transition: box-shadow .6s; }
.ar2-stage::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(10, 11, 14, .86), rgba(10, 11, 14, 0) 58%), linear-gradient(180deg, rgba(10, 11, 14, .35), transparent 25%); pointer-events: none; }
.ar2-stage__pics img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .7s ease, transform 4s linear; }
.ar2-stage__pics img.is-on { opacity: 1; transform: scale(1); }
.ar2-stage__txt { position: absolute; z-index: 2; left: 30px; right: 30px; bottom: 30px; display: grid; gap: 8px; justify-items: start; }
.ar2-stage__txt small { font-size: 14px; color: rgba(255, 255, 255, .78); }
.ar2-stage__txt b { font: 800 clamp(60px, 7.4vw, 124px)/.86 var(--display); font-variation-settings: "wdth" 80; letter-spacing: -.04em; }
.ar2-stage__txt > span { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.ar2-stage__txt .is-swap { animation: ar2-up .7s var(--ease) both; }
@keyframes ar2-up { from { opacity: 0; transform: translateY(18px); } }

/* map + controls */
.ar2-side { display: grid; grid-template-rows: 1fr auto; gap: 12px; }
.ar2-map { position: relative; min-height: 460px; border-radius: 30px; overflow: hidden; background: #e9e6df; z-index: 0; box-shadow: 0 30px 60px -45px rgba(0, 0, 0, .5); }
.ar2-map .leaflet-tile-pane { filter: grayscale(.9) sepia(.2) brightness(1.05) contrast(.92); }
.ar2-map .leaflet-control-attribution { font-size: 10px; background: rgba(255, 255, 255, .7); }
.ar2-pin { position: relative; display: block; transform: translate(-50%, -100%); }
.ar2-pin i { display: block; width: 16px; height: 16px; margin: 0 auto; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--c); box-shadow: 0 0 0 2.5px #fff, 0 6px 10px -4px rgba(0, 0, 0, .4); transition: width .4s var(--ease), height .4s var(--ease); }
.ar2-pin b { position: absolute; left: 50%; top: -26px; transform: translateX(-50%); padding: 5px 9px; border-radius: 99px; background: #fff; font: 700 12px/1 var(--sans); white-space: nowrap; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .35); opacity: 0; transition: opacity .3s, top .3s; pointer-events: none; }
.ar2-pin:hover b { opacity: 1; }
.ar2-pin.is-on i { width: 32px; height: 32px; }
.ar2-pin.is-on b { opacity: 1; top: -36px; }
.ar2-ctl { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 22px; background: #fff; box-shadow: 0 16px 30px -24px rgba(0, 0, 0, .4); }
.ar2-ctl button { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: none; font: 600 16px/1 var(--sans); color: var(--ink); transition: .25s; }
.ar2-ctl button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.ar2-ctl__lab { flex: 1; font: 600 13px/1.2 var(--sans); color: var(--muted); text-align: right; padding-right: 8px; }

/* the index: every town, grouped by how far it is */
.ar2-index { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.ar2-grp { padding: 20px 18px 14px; border-radius: 22px; background: rgba(255, 255, 255, .78); backdrop-filter: blur(6px); }
.ar2-grp h3 { margin: 0 0 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font: 700 18px/1.1 var(--display); font-variation-settings: "wdth" 88; }
.ar2-grp h3 small { font: 500 12px/1 var(--sans); color: var(--muted); }
.ar2-grp h3 span { flex: 1; }
.ar2-grp ul { list-style: none; margin: 0; padding: 0; }
.ar2-grp button { width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 9px 8px; border: 0; border-radius: 10px; background: none; text-align: left; font: 600 15.5px/1.1 var(--sans); color: var(--ink); transition: background .25s, padding .3s; }
.ar2-grp button small { font-weight: 500; font-size: 12.5px; color: var(--muted); }
.ar2-grp button:hover { background: var(--paper); }
.ar2-grp button[aria-current="true"] { background: var(--c); color: var(--ink2, #fff); padding-left: 12px; }
.ar2-grp button[aria-current="true"] small { color: inherit; opacity: .8; }

@media (max-width: 900px) {
  .ar2-hero { padding: calc(var(--head-h) + 36px) 0 30px; }
  .ar2-hero__top { grid-template-columns: 1fr; gap: 20px; }
  .ar2-tour { padding: 10px 0 80px; }
  .ar2-tour__grid { grid-template-columns: 1fr; }
  .ar2-stage { min-height: 0; aspect-ratio: 4 / 4.4; border-radius: 22px; }
  .ar2-stage__txt { left: 18px; right: 18px; bottom: 18px; }
  .ar2-stage__txt b { font-size: clamp(48px, 15vw, 72px); }
  .ar2-side { grid-template-rows: auto auto; }
  .ar2-map { min-height: 240px; border-radius: 22px; }
  .ar2-index { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ar2-grp { padding: 14px 10px 8px; }
  .ar2-grp h3 { font-size: 15px; flex-wrap: wrap; row-gap: 4px; }
  .ar2-grp h3 small { flex-basis: 100%; }
  .ar2-grp button { font-size: 14px; padding: 8px 6px; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .ar2-stage__pics img { transition: none; } }
