/* Keep the original FT Land form styling; only adapt the new data viewer. */
[data-ft-map-data] [hidden]{display:none!important}
[data-ft-map-data] [data-photo]{display:block;width:100%;max-height:560px;object-fit:contain;background:#f5f7f8;margin-top:18px}
[data-ft-map-data] [data-map]{height:420px;width:100%}
[data-ft-map-data] [data-result-map]{position:absolute;inset:0}
[data-ft-map-data] [data-result-map] [data-map]{height:100%}
[data-ft-map-data] [data-aligned-map]{display:block;width:100%;height:100%}
[data-ft-map-data] [data-alignment-credit]{position:absolute;bottom:0;right:0;max-width:100%;padding:3px 6px;background:#ffffffe6;font-size:10px;line-height:1.4}
[data-ft-map-data].showing-photo-map .maplibregl-ctrl-top-right,
[data-ft-map-data].showing-photo-map .maplibregl-marker{display:none}
[data-ft-map-data] [data-photo-workspace] .fl-view{background:#f5f7f8}
[data-ft-map-data] .fl-image-views button:disabled{opacity:.35;cursor:not-allowed}
/* ft-land.css gives .fl-scan two passes and stops. Here the sweep has to
   outlast a lookup of unknown length, so it is set to repeat and the module
   stops it on a completed out-and-back. The modifier keeps the two-pass
   default for the other UI that shares this class. */
[data-ft-map-data] .fl-scan--loop::before{animation-iteration-count:infinite}
[data-ft-map-data] [data-status],[data-ft-map-data] [data-gate],[data-ft-map-data] [data-result-note]{margin-top:16px}
[data-ft-map-data] .fl-image-views{margin-top:20px;flex-wrap:wrap}
[data-ft-map-data] .fl-image-views button[aria-pressed="true"]{background:var(--fl-ink);color:#fff;opacity:1}
[data-ft-map-data] [data-search-results] button{display:block;width:100%;padding:12px;text-align:left;background:#fff;color:var(--fl-ink);border:0;cursor:pointer}

[data-ft-map-data] [data-photo-workspace]{margin-top:20px;border:1px solid var(--fl-line);height:620px;position:relative}
[data-ft-map-data] [data-photo-workspace] [data-photo]{height:100%;max-height:none;margin:0;object-fit:contain}
[data-ft-map-data] [data-photo-workspace] .fl-metrics>div{display:flex;justify-content:space-between;gap:16px;padding:8px 0;border-bottom:1px solid var(--fl-line)}
[data-ft-map-data] [data-photo-workspace] dd{margin:0;text-align:right;overflow-wrap:anywhere;max-width:65%}
[data-ft-map-data] [data-photo-workspace] .fl-panel-tools p{font-size:12px;line-height:1.5;margin:6px 0}
/* The panel opens on the button, and one line — the tools block's bottom
   border — separates it from Project. The tools block holds only messages and
   the view strip, so with nothing in it it closes to that line alone. */
[data-ft-map-data] [data-photo-workspace] .fl-panel-actions{border-bottom:0}
[data-ft-map-data] [data-photo-workspace] .fl-panel-actions[hidden]{display:none}
[data-ft-map-data] [data-photo-workspace] .fl-panel-tools{padding:0 20px}
[data-ft-map-data] [data-photo-workspace] .fl-panel-tools>:empty{display:none}
[data-ft-map-data] [data-photo-workspace] .fl-panel-tools:has(>:not(:empty):not([hidden])){padding-bottom:12px}
@media(max-width:900px){
 [data-ft-map-data] [data-photo-workspace]{height:auto;grid-template-columns:minmax(0,1fr)}
 [data-ft-map-data] [data-photo-workspace] .fl-view{height:360px;min-height:240px;max-height:420px}
 [data-ft-map-data] [data-photo-workspace] .fl-panel{position:static;max-height:none;box-shadow:none;border-radius:0}
 [data-ft-map-data] [data-photo-workspace] .fl-group{display:block}
}
