/* =====================================================================
   venue.css: the Venue section (partials/site/venue.html)
   ---------------------------------------------------------------------
   Desktop uses a two-column grid: the photo on the left, and the header,
   address and map stacked on the right (see grid-template-areas).
   On phones it becomes a single column (see responsive.css).
   ===================================================================== */

.venue {
  min-height: 100vh;
  padding: 50px;
  background: var(--sand);
  display: grid;
  /* Text column: 488px at most, but never more than 46% of the row, so the
     photo keeps a sensible width on tablets too. */
  grid-template-columns: minmax(0, 1fr) min(488px, 46%);
  grid-template-rows: 1fr auto auto auto 1fr;
  grid-template-areas:
    "photo ."
    "photo header"
    "photo address"
    "photo map"
    "photo .";
  column-gap: 56px; row-gap: 24px;
}
.venue__header { grid-area: header; display: flex; flex-direction: column; gap: 10px; }
.venue__title { font: 400 56px/1 var(--serif); outline: none; }
.venue__place { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.venue__photo { grid-area: photo; min-height: 420px; }
.venue__address { grid-area: address; display: flex; flex-direction: column; gap: 8px; }
.venue__address .eyebrow { letter-spacing: .24em; }
address { font-style: normal; line-height: 1.5; color: var(--muted); }
.venue__map { grid-area: map; }

/* Map preview: a <button> drawn with SVG (partials/site/venue-map.svg).
   Clicking it opens the maps dialog (js/maps-dialog.js). */
.map {
  position: relative; display: block; width: 100%; height: 230px; padding: 0;
  border: 0; border-radius: 4px; overflow: hidden; cursor: pointer;
  background: #E8E0D0; font: inherit;
}
.map__art { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .5s ease; }
.map:hover .map__art { transform: scale(1.04); }
.map__pin {
  position: absolute; left: 50%; top: 50%; width: 32px; height: 40px;
  transform: translate(-50%, -100%);
}
.map__pin path { fill: var(--olive); }
.map__pin circle { fill: var(--paper); }
.map__label {
  position: absolute; left: 50%; top: calc(50% + 6px); transform: translateX(-50%);
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
  background: var(--paper); box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
  font-size: 12px; font-weight: 500; color: var(--ink);
}
