/* The same profile-location picker on planning, calendar and catalogue pages. */
.location-attribution { display: block; margin-top: 10px; font-size: 11px; text-align: end; color: var(--site-muted); }
.location-attribution a { color: inherit; }
.location-popup.shared-location-popup {
    position: fixed;
    z-index: 2400;
    display: none;
    box-sizing: border-box;
    width: min(320px, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
    overflow: auto;
    padding: 16px;
    border: 1px solid var(--site-border);
    border-radius: 12px;
    background: var(--site-surface-raised);
    box-shadow: none;
    color: var(--site-text);
    font-size: 13px;
    line-height: 1.45;
    scrollbar-color: var(--site-border) var(--site-surface-raised);
    scrollbar-width: thin;
    scroll-padding-block: 12px;
    overscroll-behavior: contain;
}
.shared-location-popup.show { display: block; }
.shared-location-popup .location-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 4px;
    color: var(--site-text);
    font-size: 16px;
    font-weight: 600;
}
.shared-location-popup .location-popup-close {
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--site-muted);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.shared-location-popup .location-popup-close:hover { background: var(--site-surface); }
.shared-location-popup .location-popup-help { margin: 0 0 16px; color: var(--site-muted); }
.shared-location-popup .location-form { min-width: 0; padding: 0; border-radius: 0; background: transparent; }
.shared-location-popup .location-inputs { display: flex; flex-direction: column; gap: 12px; }
.shared-location-popup .location-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; margin: 0; color: var(--site-text); font-size: 12px; }
.shared-location-popup .location-coords { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.shared-location-popup .location-input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid var(--site-border);
    border-radius: 6px;
    background: var(--site-surface);
    color: var(--site-text);
    font: inherit;
    font-size: 14px;
    caret-color: var(--site-accent);
}
.shared-location-popup .location-input::placeholder { color: var(--site-muted); opacity: 1; }
.shared-location-popup .location-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid var(--site-border);
    border-radius: 6px;
    background: var(--site-surface);
    color: var(--site-text);
    font: inherit;
    cursor: pointer;
}
.shared-location-popup .location-btn:hover { background: var(--site-header-control-hover); }
.shared-location-popup .location-btn.primary { border-color: #1565c0; background: #1565c0; color: #fff; }
.shared-location-popup .location-btn.primary:hover { background: #0d47a1; }
.shared-location-popup .location-btn:disabled { opacity: .65; cursor: wait; }
.shared-location-popup :is(button, input):focus-visible { outline: 2px solid var(--site-accent); outline-offset: 2px; }
.shared-location-popup .location-suggestions:empty { display: none; }
.shared-location-popup .suggestions-list { position: static; max-height: 180px; overflow: auto; border: 1px solid var(--site-border); border-radius: 6px; background: var(--site-surface); box-shadow: none; }
.shared-location-popup .suggestion-item { display: block; width: 100%; padding: 8px 10px; border: 0; background: transparent; color: var(--site-text); font: inherit; text-align: start; cursor: pointer; }
.shared-location-popup .suggestion-item:hover { background: var(--site-header-control-hover); }
.shared-location-popup .location-status { margin: 0; color: var(--site-muted); }
.shared-location-popup .location-status[data-kind="error"] { color: var(--ui-danger, #d65d58); }
.shared-location-popup .location-input[aria-invalid="true"] { border-color: var(--ui-danger, #d65d58); }
.location-settings-trigger { display: inline-flex; align-items: center; gap: 4px; padding: 2px 0; border: 0; background: transparent; color: var(--site-accent); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.location-settings-trigger:focus-visible { outline: 2px solid var(--site-accent); outline-offset: 3px; }
@media (max-width: 600px) {
    .shared-location-popup .location-input { min-height: 44px; font-size: 16px; }
    .shared-location-popup .location-btn { min-height: 44px; }
    .shared-location-popup .location-popup-close { flex-basis: 44px; width: 44px; height: 44px; }
}
