/* Shared with the admin app. Keep this file and js/location-editor.js in sync. */
.location-editor { border: 0; border-radius: 20px; padding: 0; width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: hidden; background: var(--surface, #fff); color: var(--text, #172033); box-shadow: 0 20px 80px #0005; }
.location-editor::backdrop { background: #0f172a99; }
.location-editor-form { padding: 20px; display: flex; flex-direction: column; max-height: calc(100dvh - 24px); box-sizing: border-box; }
.location-editor header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.location-editor h2 { margin: 0 0 5px; font-size: 21px; }
.location-editor p { font-size: 13px; line-height: 1.5; margin: 6px 0 12px; }
.location-editor-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.location-editor fieldset { padding: 3px; margin: 0; border: 0; min-width: 0; }
.location-editor header, .location-editor footer, .location-save-status { flex-shrink: 0; }
.location-editor label { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; font-size: 13px; font-weight: 600; }
.location-editor input { box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; border: 1px solid var(--border, #dbe1e8); border-radius: 10px; padding: 10px 12px; background: var(--surface, #fff); color: inherit; font: inherit; font-size: 16px; }
.location-editor button { min-height: 44px; border: 1px solid var(--border, #dbe1e8); border-radius: 10px; padding: 9px 12px; background: var(--surface-2, #eef2f7); color: inherit; cursor: pointer; font: inherit; font-size: 14px; }
.location-editor button:disabled { opacity: .6; cursor: wait; }
.location-editor :focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
.location-actions, .location-columns { display: flex; gap: 8px; flex-wrap: wrap; }
.location-columns > label { flex: 1; min-width: 100px; }
.location-results { display: grid; gap: 6px; margin: 10px 0; }
.location-results button { text-align: left; background: var(--surface, #fff); }
.location-message { min-height: 20px; }
.location-map { height: 310px; border: 1px solid var(--border, #dbe1e8); border-radius: 12px; background: #e8eee8; isolation: isolate; }
.location-editor .leaflet-control-attribution { font-size: 10px; color: #222; background: #ffffffe6; }
.location-pin { background: transparent; border: 0; }
.location-pin span { display: block; width: 32px; height: 32px; background: #2563eb; border: 3px solid white; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: -2px 2px 5px #0005; }
.location-pin span::after { content: ''; display: block; width: 9px; height: 9px; background: white; border-radius: 50%; margin: 8px; }
.location-coordinates { display: block; margin: 10px 0; font-size: 12px; font-variant-numeric: tabular-nums; }
.location-address { margin: 16px 0 0; border-top: 1px solid var(--border, #dbe1e8); padding-top: 12px; }
.location-address summary { cursor: pointer; font-size: 14px; min-height: 32px; }
.location-editor footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.location-editor .location-save { background: #2563eb; color: white; border-color: #2563eb; }
.location-save-status { color: var(--text, #172033); }
@media (max-width: 440px) { .location-editor-form { padding: 16px; } .location-map { height: 270px; } .location-actions > button { flex: 1; } }
