/* Event detail venue map brick (portal_node_map in
 * pkg/cmsruntime/templates/portal/bricks.tmpl, js/portal-map.js), split out of
 * portal-detail.css with its consent placeholder (C2, 2026-10-25). */
[data-portal-node="map"] { display: flex; flex-direction: column; gap: 1.5rem; }
[data-portal-node="map"] h3 { font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; }
[data-portal-node="map"] p { font-size: .95rem; }
/* Venue map (fix round 4, 2026-09-20). Tile, marker, address label, window,
 * panel, header and close button are prod's event-detail map classes resolved
 * through twdict (prod's radial-gradient/glow utilities never compiled, so
 * they are not here); the preview iframe under the marker is the owner's
 * addition: the real map, not prod's placeholder. */
[data-portal-node="map"] h3 { font-weight: 700; }
.portal-map-tile { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: var(--portal-radius); border: 1px solid color-mix(in oklab, #fff 5%, transparent); background: var(--portal-surface); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25); }
.portal-map-preview { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.portal-map-veil { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; background: color-mix(in oklab, var(--portal-accent) 5%, transparent); transition: background-color .15s cubic-bezier(.4, 0, .2, 1); }
.portal-map-tile:hover .portal-map-veil { background: transparent; }
.portal-map-marker { display: flex; align-items: center; justify-content: center; width: 4rem; height: 4rem; border-radius: 999px; border: 4px solid #000; background: var(--portal-accent); color: #000; transition: scale .15s cubic-bezier(.4, 0, .2, 1); }
.portal-map-marker svg { width: 1.5rem; height: 1.5rem; }
.portal-map-tile:hover .portal-map-marker { scale: 1.1; }
.portal-map-address { position: absolute; inset-inline: 1rem; bottom: 1rem; margin: 0; border-radius: calc(var(--portal-radius) + 3px); background: rgba(0, 0, 0, .7); padding: .75rem 1rem; font-size: .75rem !important; line-height: 1.375; font-weight: 700; color: #fff; backdrop-filter: blur(12px); pointer-events: none; }
.portal-map-open { position: absolute; inset: 0; z-index: 10; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: var(--portal-radius); font: inherit; font-family: var(--ui-font, inherit); }
.portal-map-open:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--portal-bg), 0 0 0 4px var(--portal-accent); }
.portal-map-window { position: fixed; inset: 0; z-index: 100; padding: 1rem; background: rgba(0, 0, 0, .75); backdrop-filter: blur(8px); }
.portal-map-window[hidden] { display: none; }
@media (min-width: 768px) { .portal-map-window { padding: 2rem; } }
.portal-map-backdrop { position: absolute; inset: 0; }
.portal-map-panel {
  position: absolute; left: 50%; top: 50%; width: min(92vw, 1100px); height: 76vh; transform: translate(-50%, -50%);
  display: flex; resize: both; overflow: hidden; min-height: 360px; min-width: 320px; max-height: 92vh; max-width: 96vw;
  border-radius: calc(var(--portal-radius) + 7px); border: 1px solid color-mix(in oklab, #fff 10%, transparent); background: var(--portal-surface);
}
.portal-map-head { position: absolute; inset-inline: 0; top: 0; z-index: 20; display: flex; height: 3.5rem; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 1rem; cursor: move; user-select: none; border-bottom: 1px solid color-mix(in oklab, #fff 10%, transparent); background: rgba(0, 0, 0, .8); backdrop-filter: blur(24px); color: #fff; }
.portal-map-head-text { min-width: 0; flex: 1; }
.portal-map-title { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .75rem; line-height: 1.333; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--portal-accent); }
.portal-map-subtitle { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px !important; font-weight: 700; color: rgba(255, 255, 255, .75); }
.portal-map-external, .portal-map-close { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; padding: 0; border-radius: 999px; border: 1px solid color-mix(in oklab, #fff 10%, transparent); background: color-mix(in oklab, #fff 5%, transparent); color: #fff; cursor: pointer; transition: background-color .15s, color .15s; }
.portal-map-external:hover, .portal-map-close:hover { background: var(--portal-accent); color: #000; }
.portal-map-frame { width: 100%; height: 100%; padding-top: 3.5rem; border: 0; background: var(--portal-surface-alt); }
@media (max-width: 767.98px) {
  .portal-map-window { padding: .5rem; }
  .portal-map-panel { inset: .5rem; width: auto; height: auto; min-width: 0; min-height: 0; max-width: none; max-height: none; transform: none; resize: none; }
  .portal-map-head { cursor: default; }
}
/* Consent placeholder: covers the tile (above .portal-map-open) until the
 * visitor grants the "external" purpose; theme tokens only. */
.portal-map-consent { position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 1.5rem; text-align: center; background: var(--portal-surface-alt, var(--portal-surface)); color: var(--portal-text, inherit); }
.portal-map-consent[hidden] { display: none; }
.portal-map-consent-text { margin: 0; max-width: 22rem; font-size: .9rem !important; line-height: 1.5; color: var(--portal-muted, inherit); }
.portal-map-consent-button { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1.1rem; border: 0; border-radius: 999px; background: var(--portal-accent); color: var(--portal-accent-ink); font: inherit; font-family: var(--ui-font, inherit); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.portal-map-consent-button:hover { opacity: .9; }
.portal-map-consent-button:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--portal-bg), 0 0 0 4px var(--portal-accent); }
