/* Shared photo triggers and one native modal. No gallery library or extra window. */
.location-card-trigger { appearance: none; position: relative; padding: 0; border: 0; font: inherit; line-height: 0; text-align: inherit; }
.location-card-trigger:enabled { cursor: zoom-in; }
.location-card-trigger:disabled { cursor: default; opacity: 1; }
.location-card-trigger:focus-visible { outline: 2px solid #9d753a; outline-offset: 4px; }
.location-card-trigger img { display: block; }
.location-card-trigger .location-card-trigger__zoom { position: absolute; right: 3px; bottom: 3px; z-index: 2; display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid #e9dbbc99; border-radius: 50%; background: #153547e0; color: #fff8e9; font: 18px/1 Arial, sans-serif; opacity: .88; pointer-events: none; }
.location-card-trigger:disabled .location-card-trigger__zoom { display: none; }
.location-card-trigger:hover .location-card-trigger__zoom { background: #80532c; opacity: 1; }
.place-row__portrait { align-self: start; justify-self: start; background: transparent; }
.map-clergy__portrait { width: 48px; height: 60px; flex: 0 0 48px; background: transparent; }
.map-clergy__portrait .location-card-trigger__zoom { width: 17px; height: 17px; right: 1px; bottom: 1px; font-size: 13px; }
.map-panel__media.location-card-trigger { display: block; }
.location-dialog { position: fixed; inset: 0; width: min(1100px, calc(100vw - 48px)); max-width: none; max-height: min(900px, calc(100vh - 48px)); max-height: min(900px, calc(100dvh - 48px)); margin: auto; padding: 0; border: 1px solid #bda574; border-radius: 5px; background: #f7f3eb; color: #25352f; box-shadow: 0 24px 100px #0007; overflow: auto; overscroll-behavior: contain; }
.location-dialog:not([open]) { display: none !important; }
.location-dialog::backdrop { background: #071b2bcc; backdrop-filter: blur(4px); }
.location-dialog [hidden] { display: none !important; }
.location-dialog__close { position: sticky; top: 12px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; margin: 12px 12px -56px auto; padding: 0; border: 1px solid #c0ab83; border-radius: 50%; background: #fbf8f1; color: #183b4c; cursor: pointer; font: 30px/1 Arial, sans-serif; box-shadow: 0 2px 12px #182f4012; }
.location-dialog__close:hover { background: #183b4c; color: #fff; }
.location-dialog :is(button, a):focus-visible { outline: 2px solid #9b6b2c; outline-offset: 4px; }
.location-dialog__body { padding: clamp(22px, 3vw, 38px); }
.location-dialog__header { padding-right: 46px; padding-bottom: 23px; margin-bottom: 24px; border-bottom: 1px solid #c4ad8166; }
.location-dialog__header .eyebrow { margin: 0 0 10px; color: #8c633b; font: 700 11px/1.6 Arial, sans-serif; letter-spacing: .09em; }
.location-dialog__header h2 { margin: 0; max-width: 34ch; font: 400 clamp(24px, 2.5vw, 33px)/1.3 Georgia, serif; letter-spacing: -.02em; overflow-wrap: anywhere; }
.location-dialog__area { margin: 10px 0 0; color: #756447; font: 14px/1.6 Arial, sans-serif; }
.location-dialog__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 38px); align-items: start; }
.location-dialog__photo { min-width: 0; margin: 0; display: grid; align-items: center; min-height: 280px; background: #eae4d7; border-radius: 3px; overflow: hidden; }
.location-dialog__photo > img { display: block; width: 100%; height: auto; max-height: 510px; object-fit: contain; }
.location-dialog__no-photo { padding: 35px; text-align: center; color: #8f7953; }
.location-dialog__no-photo span { font: 64px/1.5 Georgia, serif; }
.location-dialog__no-photo p { font: 14px/1.6 Arial, sans-serif; }
.location-dialog__details { min-width: 0; }
.location-dialog__clergy { display: grid; grid-template-columns: 128px minmax(0, 1fr); align-items: center; gap: 20px; margin-bottom: 24px; }
.location-dialog__clergy figure { margin: 0; }
.location-dialog__clergy img { display: block; width: 128px; height: 160px; border-radius: 3px; object-fit: contain; background: #eee8dd; }
.location-dialog__clergy [data-location-dialog-contact] > div + div { margin-top: 16px; }
.location-dialog__clergy p { margin: 0; white-space: pre-line; font: 16px/1.8 Georgia, serif; overflow-wrap: anywhere; }
.location-dialog__details h3 { margin: 0 0 6px; font: 700 11px/1.5 Arial, sans-serif; color: #846845; letter-spacing: .035em; }
.location-dialog__details .location-dialog__clergy-label { margin-bottom: 5px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.location-dialog__address { border-top: 1px solid #c4ad8155; padding-top: 18px; margin-bottom: 18px; }
.location-dialog__address address { font: normal 15px/1.7 Arial, sans-serif; }
.location-dialog__phone { margin-bottom: 20px; }
.location-dialog__phone a { display: inline-block; padding: 5px 0; color: #762737; font: 700 18px/1.6 Arial, sans-serif; text-decoration: none; }
.location-dialog__directions { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 46px; padding: 10px 20px; background: #183b4c; color: #fff8e9; font: 700 12px/1.6 Arial, sans-serif; text-decoration: none; border-radius: 2px; }
.location-dialog__directions:hover { background: #244f62; }
.impc-map-shared-choice { display: block; width: 100%; margin-top: 8px; padding: 8px 10px; border: 1px solid #d8c9ad; border-radius: 3px; background: #f7f3eb; color: #183b4c; text-align: left; font: 600 12px/1.5 Arial, sans-serif; cursor: pointer; }
.impc-map-shared-choice:hover, .impc-map-shared-choice:focus-visible { background: #e9dfcb; outline: 2px solid #183b4c; outline-offset: 2px; }
.place-row__phone-label, .location-dialog__phone [data-location-dialog-phone-label] { margin: 4px 0; font: 11px/1.5 Arial, sans-serif; color: #686258; }
.map-toolbar { flex-wrap: wrap; }
.map-filters { flex-wrap: wrap; }
@media (max-width: 760px) { .map-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
	.location-dialog { width: calc(100vw - 24px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
	.location-dialog__body { padding: 22px; }
	.location-dialog__header { margin-bottom: 18px; padding-bottom: 18px; }
	.location-dialog__grid { grid-template-columns: 1fr; gap: 24px; }
	.location-dialog__photo { min-height: 140px; }
	.location-dialog__photo > img { max-height: 38vh; max-height: 38dvh; }
	.location-dialog__clergy { grid-template-columns: 110px minmax(0, 1fr); gap: 18px; }
	.location-dialog__clergy img { width: 110px; height: 138px; }
	.location-dialog__directions { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
	.location-dialog[open] { animation: location-card-appear 160ms ease-out; }
	@keyframes location-card-appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
