dialog { padding: 0; border: 0; color: var(--ink); }
dialog::backdrop { background: rgba(40,10,6,.8); backdrop-filter: blur(4px); }
.modal-close { position: absolute; z-index: 2; top: 12px; right: 12px; display: grid; width: 38px; height: 38px; place-items: center; border: 0; border-radius: 50%; background: rgba(244,241,225,.92); color: var(--wine); cursor: pointer; font-size: 1.25rem; }

/* Photo lightbox */
.gallery-modal { width: min(960px, calc(100% - 32px)); max-height: 90vh; overflow: hidden; border-radius: 14px; background: #2a0a06; }
.modal-stage { position: relative; }
.gallery-modal img { display: block; width: 100%; max-height: 78vh; object-fit: contain; }
.gallery-modal p { display: flex; justify-content: space-between; gap: 16px; margin: 0; padding: 14px 20px; color: var(--on-wine); font-size: .75rem; }
.modal-counter { color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.modal-nav { position: absolute; top: 50%; display: grid; width: 44px; height: 44px; place-items: center; border: 0; border-radius: 50%; background: rgba(244,241,225,.9); color: var(--wine); cursor: pointer; font-size: 1.7rem; line-height: 1; transform: translateY(-50%); transition: background .2s ease; }
.modal-nav:hover, .modal-nav:focus-visible { background: var(--accent); }
.modal-prev { left: 12px; }
.modal-next { right: 12px; }

/* Expanded map */
.map-modal { width: min(1320px, calc(100% - 32px)); height: min(900px, 90vh); overflow: hidden; border: 1px solid rgba(141,111,77,.28); border-radius: 18px; background: var(--ivory); }
.map-modal[open] { display: flex; flex-direction: column; }
.map-modal-header { display: flex; min-height: 92px; align-items: center; justify-content: space-between; gap: 30px; padding: 18px 76px 18px 28px; border-bottom: 1px solid rgba(141,111,77,.24); background: var(--ivory); }
.map-modal-header .eyebrow { margin-bottom: 4px; }
.map-modal-header h2 { font-size: clamp(1.65rem, 2.5vw, 2.4rem); }
.map-modal-reset { min-height: 38px; padding: 0 15px; border: 1px solid rgba(141,111,77,.4); border-radius: 999px; background: transparent; color: var(--wine); cursor: pointer; font-size: .64rem; font-weight: var(--fw-strong); }
.map-modal-reset:hover, .map-modal-reset:focus-visible { border-color: var(--wine); background: var(--wine); color: var(--on-wine); }
.expanded-location-map { position: relative; min-height: 0; flex: 1; inset: auto; }

@media (max-width: 560px) {
  .map-modal { width: calc(100% - 16px); height: 92dvh; border-radius: 14px; }
  .map-modal-header { min-height: 76px; padding: 13px 58px 13px 16px; }
  .map-modal-header .eyebrow { display: none; }
  .map-modal-header h2 { font-size: 1.45rem; }
  .map-modal-reset { display: none; }
}
