/* The Area — what is around the project (13 Oct 2026). Uses folio.css's variables only: no new colours. */
.area-body { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.area-fail { flex: 1; }

/* ---------- the website's aerial frames ---------- */
.area-stage { flex: 1; min-height: 0; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.area-stage.dragging { cursor: grabbing; }
.area-stage .af {
  position: absolute; left: 0; top: 0; max-width: none; opacity: 0; pointer-events: none;
  -webkit-user-drag: none; user-select: none; will-change: opacity, transform;
}
.area-lines, .area-pins { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity var(--dur-fade) var(--ease); }
.area-lines { width: 100%; height: 100%; overflow: visible; }
.area-stage.pins-on .area-lines, .area-stage.pins-on .area-pins { opacity: 1; }
.area-lines line { stroke: #fff; stroke-width: 1.5; stroke-linecap: round; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .45)); }
.apin-dot {
  position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--gold); border: 2px solid #fff; box-shadow: 0 0 0 4px rgba(176, 141, 69, .25), 0 1px 4px rgba(0, 0, 0, .4);
}
.apin-card { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.apin-card img {
  display: block; width: 104px; height: 70px; object-fit: cover; border-radius: 10px; border: 2px solid #fff;
  background: var(--scene-canvas); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); -webkit-user-drag: none;
}
.apin-card.compact img { display: none; }
.apin-lbl {
  display: block; max-width: 210px; padding: 4px 10px; border-radius: var(--radius-pill);
  background: var(--card); color: var(--ink); border: var(--hairline-w) solid var(--hairline); box-shadow: var(--shadow-panel);
  font: 600 var(--text-caption)/1.3 var(--font-ui); text-align: center; overflow-wrap: anywhere;
}
.apin-card.edge .apin-lbl { display: inline-flex; align-items: center; gap: 3px; direction: ltr; padding-inline: 6px 10px; }
.apin-card.edge .apin-lbl svg { width: 14px; height: 14px; flex: none; color: var(--gold-text); }
.apin-card.edge .apin-lbl span + svg { margin-inline-start: 1px; }
.apin-card.edge .apin-lbl:has(span + svg) { padding-inline: 10px 6px; }
@media (min-width: 700px) {
  .apin-card img { width: 150px; height: 100px; border-radius: 12px; }
  .apin-lbl { max-width: 260px; font-size: var(--text-footnote); padding: 5px 12px; }
}

.area-nav { display: flex; align-items: center; justify-content: center; gap: 12px; }
.area-nav .round-btn { box-shadow: none; }
html[dir=rtl] .area-nav .flip { transform: scaleX(-1); }
.area-dots {
  display: flex; gap: 2px; padding: 3px; background: var(--card);
  border: var(--hairline-w) solid var(--hairline); border-radius: var(--radius-pill);
}
.area-dots button {
  width: 30px; height: 30px; padding: 0; border: 0; background: none; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
}
.area-dots button::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 26%, transparent); transition: transform .2s var(--ease), background .2s;
}
.area-dots button:hover::before { background: color-mix(in srgb, var(--ink) 50%, transparent); }
.area-dots button[aria-current=true]::before { background: var(--ink); transform: scale(1.3); }

/* ---------- the way in: on the building's first screen, filled so it stands out beside "Outdoor views" ---------- */
.btn-accent.compact { width: auto; padding: 9px 18px; font-size: var(--text-sub); }
#b-area svg { color: var(--gold-light); }

@media (prefers-reduced-motion: reduce) { .area-lines, .area-pins { transition: none; } }
