/* Dedicated map layout. Overrides shared marketing-page spacing without changing search. */
.fp-map-workspace { --fp-map-sidebar:340px; }
.fp-map-workspace .fp-map-workspace-title { position:absolute;width:1px;height:1px;padding:0!important;overflow:hidden;clip-path:inset(50%);white-space:nowrap; }
.fp-map-workspace .fp-map-workspace-toolbar { display:grid!important;grid-template-columns:minmax(220px,1fr) minmax(210px,260px) auto auto;gap:10px; }
.fp-map-workspace .fpc-filterbox { padding:10px 14px!important; }
.fp-map-workspace .fpc-searchbar { max-width:none;flex-wrap:nowrap;align-items:center; }
.fp-map-workspace .fp-map-view-choice { margin:0;min-width:0;gap:8px;font-size:12px; }
.fp-map-workspace .fp-map-view-choice select { margin:0;min-width:0;max-width:none;width:100%; }
.fp-map-workspace .fp-map-workspace-toolbar>button { white-space:nowrap; }
#fp-public-search .fpc-searchbar .fp-map-project-search { flex:none;background:transparent;color:#165b57;border-color:transparent;font-size:12px!important;padding:8px;white-space:nowrap; }
#fp-public-search .fpc-searchbar .fp-map-project-search:hover { background:#edf5f2;text-decoration:underline; }
.fp-map-workspace #fp-map-view-description { padding:0 0 14px!important;background:transparent;border:0;margin:0!important;max-width:none;color:#355651;font-size:13px; }

/* Shared template.css gives every aside 5rem of bottom padding. The drawer must use all of its height. */
.fp-map-workspace #fp-map-results-drawer { padding:0!important;min-height:0;overflow:hidden; }
.fp-map-workspace.fp-map-list-open #fp-map-results-drawer { display:grid;grid-template-rows:auto minmax(0,1fr) auto; }
.fp-map-workspace .fp-map-list-heading { padding:8px 10px;gap:10px; }
.fp-map-workspace .fp-map-list-caption { min-width:0; }
.fp-map-workspace .fp-map-list-heading h2 { margin:0;font-size:14px;line-height:1.35; }
.fp-map-workspace .fp-map-close-results { min-height:44px; }
#fp-map-results-drawer .fp-map-result-range { margin:3px 0 0;min-height:0;font-size:12px;line-height:1.4;color:#486462;overflow-wrap:anywhere; }
.fp-map-workspace #fp-map-results-drawer #fp-search-results { height:100%;min-height:0;overflow:auto;overscroll-behavior:contain;padding:10px!important;scrollbar-gutter:stable; }
.fp-map-workspace #fp-search-results .fp-result-grid { margin:0;gap:10px; }
#fp-map-results-drawer .fp-map-result-pager { position:static;display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-auto-rows:auto;align-items:center;padding:7px 10px max(7px,env(safe-area-inset-bottom));gap:6px;border-top:1px solid #c7d9d6;background:#fff;margin:0; }
#fp-map-results-drawer .fp-map-result-pager button { min-height:44px;margin:0; }
#fp-map-results-drawer .fp-map-result-pager button:last-child { grid-column:1/-1; }

/* Count/range belongs to the results heading. Keep errors, partial-layer notices and loading feedback visible. */
.fp-map-workspace.fp-map-list-open #fp-results-status[data-tone=summary],
.fp-map-workspace #fp-results-status:empty { display:none!important; }
.fp-map-workspace #fp-results-status { top:12px; }
.fp-map-workspace #fp-search-map-status { top:64px; }
.fp-map-workspace .fp-map-cluster-hint { position:absolute;top:12px;left:12px;z-index:600;display:flex;align-items:center;gap:8px;max-width:calc(100% - 86px);padding:0 4px 0 12px;border:1px solid #cfdfdb;border-radius:8px;background:#fffffff5;box-shadow:0 2px 6px #153c4910;font-size:12px;line-height:1.4;color:#284e4b; }
.fp-map-workspace .fp-map-cluster-hint[hidden] { display:none!important; }
.fp-map-workspace .fp-map-dismiss-hint { min-width:44px;min-height:44px;border:0;background:transparent;font-size:22px!important;padding:4px; }
.fp-map-workspace #fp-search-output:has(#fp-results-status:not([data-tone=summary]):not(:empty)) .fp-map-cluster-hint,
.fp-map-workspace:not(.fp-map-list-open) .fp-map-cluster-hint { display:none; }
.fp-map-workspace .fp-map-actions { top:64px; }
.fp-map-workspace .fp-map-bottom-tools { bottom:28px; }

/* Map cards: title and place first; source evidence stays available in a native disclosure. */
.fp-map-workspace #fp-search-results .fp-result-body { padding:12px!important;gap:8px; }
.fp-map-workspace #fp-search-results .fp-result-body h3 { font-size:16px!important;line-height:1.35;margin:0!important;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden; }
.fp-map-workspace #fp-search-results .fp-map-card-location { color:#496763;font-size:12px;line-height:1.45;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden; }
.fp-map-workspace #fp-search-results .fp-result-labels { gap:5px;font-size:11px; }
.fp-map-workspace #fp-search-results .fp-result-objective { padding:2px 6px; }
.fp-map-workspace #fp-search-results .fp-map-card-date { font-size:11px;color:#486462; }
.fp-map-workspace #fp-search-results .fp-map-card-more { font-size:12px;line-height:1.5;margin:0; }
.fp-map-workspace #fp-search-results .fp-map-card-more summary { display:list-item;min-height:32px;padding:6px 0;cursor:pointer;color:#335d58; }
.fp-map-workspace #fp-search-results .fp-map-card-more[open] { border-top:1px solid #e1ebe6;padding-top:3px; }
.fp-map-workspace #fp-search-results .fp-map-card-more p { font-size:12px; }
.fp-map-workspace #fp-search-results .fp-map-card-more .fp-result-source { margin-bottom:8px!important; }
.fp-map-workspace #fp-search-results .fp-result:has(.fp-map-card-more[open]) h3,
.fp-map-workspace #fp-search-results .fp-result:has(.fp-map-card-more[open]) .fp-map-card-location { display:block;-webkit-line-clamp:unset;overflow:visible; }
.fp-map-workspace #fp-search-results .fp-map-card-actions { display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 10px;border-top:1px solid #e1ebe6;padding-top:6px; }
.fp-map-workspace #fp-search-results .fp-map-card-actions .fp-result-action { padding:0;margin:0;min-height:36px;font-size:12px; }
.fp-map-workspace #fp-search-results .fp-map-card-actions .fp-show-on-map { width:auto;min-height:36px;padding:6px 10px;font-size:12px!important; }
.fp-map-workspace #fp-search-results .fp-map-card-actions .fp-result-action[href^="/search?"] { display:none; }

@media(min-width:1000px) {
 .fp-map-workspace.fp-map-list-open #fp-search-map-panel { left:var(--fp-map-sidebar)!important; }
 .fp-map-workspace.fp-map-list-open #fp-map-results-drawer { width:var(--fp-map-sidebar); }
}
@media(max-width:999px) {
 .fp-map-workspace .fp-map-workspace-toolbar { grid-template-columns:minmax(0,1fr) auto auto;gap:7px; }
 .fp-map-workspace .fp-map-workspace-toolbar .fpc-searchbar { grid-column:1/-1; }
 .fp-map-workspace .fp-map-view-choice { grid-column:1; }
 .fp-map-workspace .fp-map-workspace-toolbar>button { width:auto; }
 .fp-map-workspace.fp-map-list-open #fp-map-results-drawer { height:72%;max-height:100%; }
 .fp-map-workspace.fp-map-list-open #fp-results-status:not([data-tone=summary]) { top:8px;max-width:calc(100% - 86px); }
 .fp-map-workspace .fp-map-cluster-hint { display:none; }
 .fp-map-workspace #fp-search-results .fp-map-card-actions .fp-result-action,
 .fp-map-workspace #fp-search-results .fp-map-card-actions .fp-show-on-map,
 .fp-map-workspace #fp-search-results .fp-map-card-more summary { min-height:44px; }
}
@media(max-width:620px) {
 .fp-map-workspace .fpc-filterbox { padding:8px 10px!important; }
 #fp-public-search .fpc-searchbar .fp-map-project-search { font-size:0!important;width:44px;padding:4px; }
 #fp-public-search .fpc-searchbar .fp-map-project-search::before { content:'☷';font-size:23px;line-height:1; }
 .fp-map-workspace .fp-map-view-choice { gap:5px;font-size:11px; }
 .fp-map-workspace .fp-map-view-choice select { font-size:12px!important; }
 .fp-map-workspace .fp-map-workspace-toolbar>button { padding:8px;font-size:12px!important; }
}
@media(min-width:700px) and (max-height:500px) {
 .fp-map-workspace .fp-map-workspace-toolbar { grid-template-columns:minmax(180px,1fr) minmax(180px,220px) auto auto; }
 .fp-map-workspace .fp-map-workspace-toolbar .fpc-searchbar { grid-column:auto; }
 .fp-map-workspace .fp-map-view-choice { grid-column:auto; }
 #fp-public-search .fpc-searchbar .fp-map-project-search { font-size:0!important;width:44px;padding:4px; }
 #fp-public-search .fpc-searchbar .fp-map-project-search::before { content:'☷';font-size:23px; }
 .fp-map-workspace.fp-map-list-open #fp-map-results-drawer { top:0;bottom:0;left:0;right:auto;width:320px;height:100%;border-radius:0; }
}
@media(max-width:699px) and (max-height:650px) {
 .fp-map-workspace.fp-map-list-open #fp-map-results-drawer { height:100%;border-radius:0; }
}
