/* Compact surroundings control inside the existing weather panel. */
#photo-background-control{margin-top:14px;padding-top:12px;border-top:1px solid #dce3d9}
.photo-background-choice{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px;cursor:pointer;color:#31554d;font-size:12px;font-weight:500}
.photo-background-choice input{appearance:none;-webkit-appearance:none;position:relative;flex:0 0 44px;width:44px;height:26px;margin:0;border:1px solid #b9c8bf;border-radius:20px;background:#bdc7be;cursor:pointer;transition:background .15s}
.photo-background-choice input:before{content:'';position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fffdf6;box-shadow:0 1px 4px #274a372b;transition:transform .15s}
.photo-background-choice input:checked{background:#005a5a;border-color:#005a5a}.photo-background-choice input:checked:before{transform:translateX(18px)}
.photo-background-choice input:focus-visible{outline:3px solid #ab783a;outline-offset:4px}
#photo-background-description,#photo-background-provenance{font-size:10px;line-height:1.65;color:#687c71;margin:0 0 6px}
.photo-background-feedback{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:22px;font-size:10px;line-height:1.5;color:#6b7e72}
#photo-background-retry{flex-shrink:0;min-height:44px;padding:6px 10px;border:1px solid #cbd6ce;border-radius:6px;font-size:11px;background:#fffdf8}
#photo-background-details{font-size:10px;line-height:1.65;color:#687c71}
#photo-background-details summary{display:flex;align-items:center;min-height:44px;cursor:pointer;list-style:none;text-decoration:underline;text-underline-offset:3px}
#photo-background-details summary::after{content:'+';margin-left:auto;text-decoration:none;font-size:15px}
#photo-background-details[open] summary::after{content:'−'}
#photo-background-details summary::-webkit-details-marker{display:none}
.photo-background-source{font-size:10px;line-height:1.7;margin:2px 0 0;color:#687c71}.photo-background-source a{text-underline-offset:3px}
#photo-background-credit{position:absolute;z-index:50;right:18px;bottom:39px;max-width:calc(100% - 36px);display:inline-flex;align-items:center;min-height:24px;padding:3px 8px;border:0;border-radius:5px;background:#163c35d9;font:inherit;font-size:9px;letter-spacing:0;color:#fff;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
#photo-background-credit[hidden],#photo-background-retry[hidden],#photo-background-source-link[hidden],#photo-background-license[hidden],.photo-background-feedback[hidden]{display:none}
#photo-background-details summary:focus-visible,#photo-background-credit:focus-visible,#photo-background-retry:focus-visible{outline:3px solid #ab783a;outline-offset:2px}
.scene-note.photo-background-noted{align-items:center}
/* The shared viewport credit also covers apartment views. */
.viewport.photo-background-noted .apartment-disclaimer{display:none}
@media(max-width:900px){#photo-background-credit{right:calc(10px + var(--mobile-safe-right,0px));bottom:calc(89px + var(--mobile-safe-bottom,0px));max-width:calc(100% - 148px);font-size:9px;line-height:1.3;min-height:24px;text-align:right}.photo-background-choice{font-size:12px}}
@media(max-width:900px) and (max-height:500px) and (orientation:landscape){#photo-background-credit{bottom:calc(36px + var(--mobile-safe-bottom,0px));max-width:230px;font-size:8px}}
@media(prefers-reduced-motion:reduce){.photo-background-choice input,.photo-background-choice input:before{transition:none}}
