.header-actions { display: flex; align-items: center; gap: 14px; }
.location-button { display: inline-flex; align-items: center; gap: 10px; padding: 11px 17px; border: 1px solid #c3a77580; border-radius: 7px; background: #c3a7750d; color: var(--gold); font-size: 11px; white-space: nowrap; transition: background 250ms ease, border-color 250ms ease, transform 350ms var(--ease-out); }
.location-button:hover { background: #c3a77524; border-color: var(--gold); transform: translateY(-1px); }
.location-button svg { width: 19px; height: 22px; flex: none; }
#location-dialog { width: min(880px, calc(100vw - 32px)); max-width: 880px; padding: 40px; }
#location-dialog .eyebrow { margin-bottom: 8px; padding-right: 30px; }
#location-dialog .location-summary { margin: 0 0 20px; color: var(--muted); font-size: 12px; }
.location-map { border-radius: 16px; overflow: hidden; border: 1px solid #c3a77550; background: #30372b; height: min(480px, 50svh); }
.location-map iframe { display: block; width: 100%; height: 100%; border: 0; }
#location-dialog, #location-dialog[open], #location-dialog.is-closing[open] { transform: none; box-shadow: 0 14px 38px #00000035; }
#location-dialog::backdrop { backdrop-filter: none; background: #080b08e8; }
@starting-style { #location-dialog[open] { transform: none; } }
.location-map { position: relative; }
.location-map iframe { opacity: 0; pointer-events: none; transition: opacity 220ms ease; }
.location-map.is-loaded iframe { opacity: 1; pointer-events: auto; }
.location-map-status { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 26px; text-align: center; background: radial-gradient(ellipse at center, #394031, #20271e); color: var(--muted); transition: opacity 220ms ease, visibility 220ms; }
.location-map-status p { font-size: 12px; max-width: 340px; }
.location-map-pin { color: var(--gold); font-size: 42px; line-height: 1; }
.location-map-status button { border: 1px solid #c3a77580; border-radius: 8px; padding: 10px 18px; background: #c3a77515; color: var(--gold); min-height: 44px; }
.location-map-status button[hidden] { display: none; }
.location-map.is-loaded .location-map-status { opacity: 0; visibility: hidden; pointer-events: none; }
@media(prefers-reduced-motion:reduce) { .location-map iframe, .location-map-status { transition: none; } }
.location-map-actions { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 23px; }
.location-map-actions p { font-size: 11px; color: var(--muted); max-width: 310px; }
.location-map-actions .button { margin: 0; flex-shrink: 0; }
@media(max-width:1100px) { .header { gap: 15px; } .header-actions { gap: 9px; } .location-button { padding: 10px 12px; gap: 7px; } }
@media(max-width:800px) { .header-actions .small { display: none; } .header-actions { margin-left: auto; } .location-button { padding: 10px 13px; } #location-dialog { padding: 40px 22px 24px; } .location-map-actions { align-items: stretch; flex-direction: column; gap: 15px; } .location-map-actions .button { width: 100%; } }
@media(max-width:420px) { .header { gap: 10px; } .location-button { padding: 9px 10px; font-size: 10px; } .header .brand { gap: 7px; } .header .brand > span { font-size: 19px; } .header .brand small { font-size: 6px; letter-spacing: 1px; } .header .brand img { width: 35px; height: 35px; } .header .menu-toggle { padding: 4px 9px; } }
/* Allocate the remaining viewport height to the map, rather than scrolling
   the whole popup. The map itself remains fully interactive. */
@media(max-width:800px), (max-height:500px) and (pointer:coarse) {
  #location-dialog { width: min(620px, calc(100vw - 24px)); height: min(720px, calc(100svh - 24px)); height: min(720px, calc(100dvh - 24px)); max-height: calc(100svh - 24px); max-height: calc(100dvh - 24px); padding: 48px 18px 18px; }
  #location-dialog[open] { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; }
  #location-dialog .eyebrow { padding-right: 0; margin-bottom: 6px; line-height: 1.7; }
  #location-dialog .location-summary { margin-bottom: 12px; line-height: 1.6; }
  #location-dialog .location-map { height: auto; min-height: 0; }
  #location-dialog .location-map-actions { flex-direction: column; align-items: stretch; margin-top: 12px; gap: 9px; }
  #location-dialog .location-map-actions p { max-width: none; font-size: 11px; line-height: 1.6; }
  #location-dialog .location-map-actions .button { width: 100%; min-height: 48px; padding: 11px 14px; }
  #location-dialog .location-map-status { padding: 12px; gap: 10px; }
}
@media(max-height:540px) and (max-width:800px), (max-height:500px) and (pointer:coarse) {
  #location-dialog { padding: 18px 18px 12px; }
  #location-dialog .eyebrow { padding-right: 38px; font-size: 9px; letter-spacing: 1.3px; }
  #location-dialog .location-summary { margin-bottom: 8px; }
  #location-dialog .location-map-actions { margin-top: 8px; gap: 6px; }
  #location-dialog .location-map-actions .button { min-height: 44px; padding-block: 7px; }
  #location-dialog .location-map-pin { display: none; }
  #location-dialog .location-map-status { padding: 6px; gap: 6px; }
  #location-dialog .location-map-status p { font-size: 11px; line-height: 1.5; }
}
