/* ============================================================
   components/area-map.css — Airbnb-style "general area" display
   Shown wherever the exact studio address is withheld. A static
   map (no pin) with a soft circle over the centre conveys the
   neighbourhood without pinpointing the residence.
   Markup: partials/_general_area.html
   ============================================================ */

.dd-area {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.dd-area__map {
  position: relative;
  width: 100%;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-tint);
  box-shadow: var(--shadow-sm);
}

.dd-area__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Soft, brand-tinted circle over the studio's general area. top/left are the
   dead-centre fallback; the template overrides them inline so the circle can
   float over a spot away from the map centre (area_circle_position). It is
   deliberately large so it reads as "this area", not a precise drop pin. */
.dd-area__circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: var(--radius-pill);
  background: rgba(255, 139, 136, 0.22);          /* coral-500 wash */
  border: 2px solid rgba(255, 139, 136, 0.55);
  box-shadow: 0 0 0 9999px rgba(26, 26, 26, 0.04); /* faint dim outside the circle */
  pointer-events: none;
}

.dd-area__attribution {
  position: absolute;
  right: 6px;
  bottom: 4px;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  line-height: 1.6;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.72);
  pointer-events: none;
}

.dd-area__label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  color: var(--text-soft);
  font-weight: 600;
}

.dd-area__icon {
  flex: none;
  color: var(--accent-strong);
}

.dd-area__note {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* The location marker + the "exact address" note form one tight caption group,
   so the large map↔caption gap doesn't push the note far from the marker. */
.dd-area__caption {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* Shared "where you'll be" section (partials/_general_area_section.html). Styled
   here in the global layer so it looks identical on every page that includes it,
   like the platform band. */
.dd-where__head {
  max-width: 52rem;
  /* Sets the gap ABOVE the map; matched to the map→label gap below so the map
     has even spacing on both sides. */
  margin: 0 auto var(--space-8);
  text-align: center;
}
.dd-where__head .dd-kicker { margin-bottom: var(--space-4); }
.dd-where__head .section-title { margin-bottom: 0; }
.dd-where__lead {
  margin: var(--space-4) auto 0;
  max-width: 52ch;
  font-size: var(--fs-lead);
  line-height: var(--lh-body);
  color: var(--text-muted);
}

/* In-page placement (service pages, the space.): centred, readable max-width,
   label + note centred under the map. */
.dd-area--page {
  max-width: 680px;
  margin-inline: auto;
  /* gap BELOW the map (map→label), kept equal to .dd-where__head's margin so the
     map sits evenly between its header above and its marker below. */
  gap: var(--space-8);
}

.dd-area--page .dd-area__label,
.dd-area--page .dd-area__note {
  justify-content: center;
  text-align: center;
}

.dd-area--page .dd-area__label {
  font-size: 1.2rem;
}

/* Compact footer placement: smaller map, tighter type, no extra note.
   gap is the spacing between the map and the location label below it. */
.dd-area--footer {
  gap: var(--space-4);
}

.dd-area--footer .dd-area__map {
  max-width: 280px;
}

.dd-area--footer .dd-area__label {
  font-weight: 500;
}

.dd-area--footer .dd-area__note {
  display: none;
}
