/* Atlas map, discovery, and contribution views. Shared tokens are in brand.css. */


*{box-sizing:border-box}
.app{min-height:100vh}
.hero{padding:27px clamp(20px,5vw,76px) 20px;display:flex;align-items:end;justify-content:space-between;gap:20px}
.eyebrow{font-size:var(--text-small);letter-spacing:.16em;text-transform:uppercase;font-weight:700;color:var(--muted)}
.hero h1{font-family:Georgia,serif;font-size:clamp(30px,3.6vw,42px);font-weight:500;line-height:1.05;margin:7px 0 9px}
.hero p{margin:0;color:var(--muted);max-width:620px}
.hero-note{color:var(--muted);font-size:var(--text-ui);max-width:180px;text-align:right}
.workspace{margin:0 0 36px;display:grid;grid-template-columns:minmax(0,1fr) 370px;min-height:calc(100vh - 230px);background:transparent;border:0;border-radius:0;overflow:visible;box-shadow:none}
.map-side{position:relative;min-height:590px;background:#e9eddf}
.map-toolbar{position:absolute;z-index:500;top:18px;left:18px;right:18px;display:flex;justify-content:space-between;align-items:center;pointer-events:none}
.map-toolbar>*{pointer-events:auto}
.search{height:44px;width:min(310px,48vw);border:1px solid #e1e5dc;border-radius:12px;background:#fffefaee;padding:0 14px 0 40px;outline:0;box-shadow:0 4px 12px #1c37200e;background-image:radial-gradient(circle at 19px 20px,transparent 5px,#75857c 5.5px,#75857c 6.5px,transparent 7px),linear-gradient(45deg,transparent 48%,#75857c 49%,#75857c 55%,transparent 56%);background-size:18px 18px,8px 8px;background-repeat:no-repeat;background-position:11px 11px,24px 24px}
.map-tools{display:flex;gap:8px}
.map-layer-toggle{position:absolute;z-index:500;left:18px;bottom:66px;border:1px solid #d9e0d6;border-radius:12px;background:#fffefaf2;color:var(--ink);padding:9px 13px;font-size:var(--text-ui);font-weight:700;box-shadow:0 4px 12px #1c372014}
.map-layer-toggle[aria-pressed="true"]{background:#ffdf6c;border-color:#f0c94a}
.map-layer-toggle:focus-visible{outline:3px solid #354a21;outline-offset:2px}
.icon-btn{border:1px solid #e1e5dc;background:#fffefaee;color:var(--ink);border-radius:11px;height:42px;padding:0 13px;box-shadow:0 4px 12px #1c37200e}
.leaflet-container{height:100%;width:100%;min-height:590px;background:#e7ebdf;font-family:inherit}
.leaflet-container.ortho-active{background-color:#3d758b;background-image:url("../images/sea-texture.svg"),radial-gradient(ellipse at 48% 45%,#6496a5 0%,#386b81 100%);background-size:256px 256px,100% 100%;background-repeat:repeat,no-repeat}
.leaflet-tile-pane{filter:saturate(.7) sepia(.08)}
.leaflet-control-attribution{font-size:var(--text-caption)!important}
.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fffefa;color:var(--ink)}
.leaflet-popup-content{font:var(--text-ui)/1.4 inherit}
.leaflet-popup-content b{font-family:Georgia,serif;font-size:var(--text-ui)}
.atlas-map-popup .leaflet-popup-content-wrapper{padding:0;overflow:hidden;border-radius:18px;box-shadow:0 12px 32px #354a2138}
.atlas-map-popup .leaflet-popup-content{width:280px!important;margin:0}
.atlas-map-popup .leaflet-popup-tip{box-shadow:0 5px 10px #354a211c}
.map-popup-card{height:176px;position:relative;overflow:hidden;background:linear-gradient(145deg,#879b80,#344f40);color:white}
.map-popup-image,.map-popup-fallback{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.map-popup-fallback{display:grid;place-items:center;font-size:42px;background:linear-gradient(145deg,#82977a,#304c3e)}
.map-popup-shade{position:absolute;inset:0;background:linear-gradient(180deg,#10251f99 0%,#10251f12 47%,#10251fbd 100%);pointer-events:none}
.map-popup-title{position:absolute;top:19px;left:17px;right:42px;font:700 21px/1.12 Georgia,serif;text-shadow:0 2px 9px #10251f88}
.map-popup-area{position:absolute;left:17px;right:17px;bottom:13px;font-size:var(--text-ui);color:#ffffffed;text-shadow:0 1px 5px #10251f88}
.atlas-map-popup .leaflet-popup-close-button{z-index:2;top:8px!important;right:9px!important;width:27px!important;height:27px!important;border-radius:50%;background:#fffefaed!important;color:#354a21!important;font:bold 20px/25px Tahoma,Verdana,sans-serif!important;text-align:center}
.map-legend{position:absolute;z-index:500;bottom:18px;left:18px;background:#fffefaed;border:1px solid #e3e6de;border-radius:12px;padding:11px 14px;box-shadow:0 4px 12px #1c37200e;color:var(--muted);font-size:var(--text-small)}
.legend-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#fb6757;margin-right:7px}
.map-count{position:absolute;z-index:500;bottom:18px;right:18px;border-radius:12px;background:#fffefaed;padding:10px 13px;color:var(--green);font-size:var(--text-ui);font-weight:700}
.panel{border-left:1px solid var(--line);display:flex;flex-direction:column;min-height:590px}
.panel-head{padding:28px var(--page-gutter);border-bottom:1px solid var(--line)}
.panel-top{display:flex;align-items:center;justify-content:space-between}
.panel h2{margin:0;font:22px Georgia,serif}
.count{font-size:var(--text-small);color:var(--muted);background:#f0f2ec;padding:5px 9px;border-radius:20px}
.tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:18px;overflow:visible}
.theme-filters{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.theme-filter{min-height:44px;display:inline-flex;align-items:center;gap:6px;border:1px solid #e0e5db;border-radius:999px;background:#fffefa;color:var(--muted);padding:9px 13px;font-size:var(--text-ui);line-height:1.4}
.theme-filter span{color:var(--muted);font-size:var(--text-small)}
.theme-filter.selected{background:#e7eee4;border-color:#c5d3c2;color:#354a21;font-weight:700}
.theme-filter:focus-visible{outline:2px solid #354a21;outline-offset:2px}
.tab{min-width:0;white-space:normal;background:transparent;border:1px solid var(--control-line);border-radius:var(--radius-control);padding:11px 14px;color:var(--text-color);font-size:var(--text-ui);line-height:1.25;text-align:center;min-height:48px}
.tab.selected{background:#ffdf6c;color:#354a21;border-color:#f0cf4f;font-weight:700}
.results{overflow:auto;padding:12px;max-height:270px;border-bottom:1px solid var(--line)}
.place{width:100%;text-align:left;background:transparent;border:1px solid transparent;border-radius:13px;padding:12px;display:flex;gap:12px;color:inherit}
.place:hover,.place.active{background:#f5f6f0;border-color:#e8ebe3}
.thumb{flex:none;width:58px;height:58px;border-radius:11px;background:linear-gradient(145deg,#d5dfcf,#a8b8a0);display:grid;place-items:center;font-size:25px}
.place:nth-child(2) .thumb{background:linear-gradient(145deg,#eed9c2,#c4a886)}
.place:nth-child(3) .thumb{background:linear-gradient(145deg,#d9e5d5,#9aa88c)}
.place:nth-child(4) .thumb{background:linear-gradient(145deg,#eee2d0,#c2a77c)}
.place-text{min-width:0}
.place-title{display:block;font:22px Georgia,serif;line-height:1.25;margin:2px 0 3px}
.place-meta{display:block;font-size:var(--text-small);line-height:1.5;color:var(--muted)}
.place-desc{font-size:var(--text-ui);color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:5px}
.detail{padding:19px 23px 22px;overflow:auto;flex:1}
.detail-kicker{font-size:var(--text-caption);text-transform:uppercase;letter-spacing:.14em;color:var(--muted);font-weight:700}
.detail h3{font:25px/1.15 Georgia,serif;margin:6px 0 5px}
.location{color:var(--muted);font-size:var(--text-ui)}
.location-note{margin:9px 0 12px;padding:9px 11px;border-left:2px solid #d7e1d4;border-radius:0 9px 9px 0;background:#f5f7f2;color:var(--muted);font-size:var(--text-small);line-height:1.5}
.ai-tag{display:inline-flex;gap:6px;align-items:center;background:#eef4ed;color:#47634f;border-radius:20px;padding:6px 9px;font-size:var(--text-caption);font-weight:700;margin:15px 0 9px}
.ai-tag span{font-size:var(--text-ui)}
.summary{font-size:var(--text-ui);line-height:1.65;color:var(--text-color);margin:3px 0 14px}
.fact{border-left:2px solid #d5e0d3;padding:2px 0 2px 11px;color:#748077;font-size:var(--text-small);margin-bottom:16px}
.source-head{font-size:var(--text-small);font-weight:700;color:#41574a;margin-bottom:7px}
.sources{list-style:none;padding:0;margin:0 0 15px}
.sources li{font-size:var(--text-small);margin:5px 0}
.sources a{color:#58745f;text-decoration:underline;text-decoration-color:#b9c9b9;text-underline-offset:2px}
.coordinates{font-size:var(--text-caption);color:var(--muted)}
.report{margin-top:15px;width:100%;height:41px;border:1px solid #dbe3da;background:#fffefa;border-radius:11px;color:#425e4b;font-size:var(--text-ui);font-weight:700}
.report:hover{background:#f5f8f3}
.footer{padding:12px 20px;text-align:center;color:var(--muted);font-size:var(--text-caption);border-top:1px solid var(--line)}
.modal-backdrop{position:fixed;inset:0;background:#10251fb0;z-index:1000;display:none;place-items:center;padding:20px}
.modal-backdrop.open{display:grid}
.modal{width:min(480px,100%);background:var(--paper);border-radius:18px;padding:24px;box-shadow:var(--shadow)}
.modal h2{font:25px Georgia,serif;margin:0 0 6px}
.modal p{margin:0 0 16px;color:var(--muted);font-size:var(--text-ui)}
.field{display:block;font-size:var(--text-ui);font-weight:700;color:var(--muted);margin:12px 0 6px}
.modal select,.modal textarea,.modal input{width:100%;border:1px solid #dfe5dc;background:white;border-radius:9px;padding:10px;color:var(--ink);outline-color:#8ca891}
.modal textarea{height:95px;resize:vertical}
.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:17px}
.modal-actions button{border:0;border-radius:9px;padding:10px 15px}
.cancel{background:#f0f2ed;color:var(--muted)}
.submit{background:var(--green);color:white;font-weight:700}
.toast{position:fixed;bottom:22px;left:50%;transform:translate(-50%,20px);opacity:0;background:#1e4838;color:white;border-radius:12px;padding:12px 18px;z-index:1100;transition:.2s;font-size:var(--text-ui);pointer-events:none}
.toast.show{opacity:1;transform:translate(-50%,0)}
.pin{width:34px;height:40px;position:relative}
.pin:before{content:"";position:absolute;width:30px;height:30px;left:2px;top:1px;border-radius:50% 50% 50% 4px;transform:rotate(-45deg);background:#fb6757;border:2px solid white;box-shadow:0 3px 9px #22362f66}
.pin:after{content:"✦";position:absolute;left:11px;top:6px;color:white;font-size:var(--text-ui)}
.pin.active:before{background:#354a21;transform:rotate(-45deg) scale(1.15)}
.place-marker-icon{background:none;border:0}
.pin-label-wrap{position:relative;width:220px;height:42px}
.pin-label{position:absolute;left:41px;top:5px;max-width:172px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:6px 10px;border:1px solid #ffffffd9;border-radius:9px;background:#fffefaed;color:#354a21;box-shadow:0 3px 10px #354a2130;font:600 var(--text-ui)/1.25 ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;pointer-events:none}
.pin-label.left{left:auto;right:calc(100% + 4px)}
.pin-label.offset-up{top:-16px}
.pin-label.offset-down{top:27px}
.pin-label.offset-up-2{top:-37px}
.pin-label.offset-down-2{top:49px}
.pin-label.overlap-hidden{visibility:hidden}
.place-marker-card{position:relative;width:var(--marker-width,124px);height:var(--marker-height,80px);margin-bottom:8px;border:2px solid #fffefa;border-radius:13px;background:linear-gradient(145deg,#82977a,#304c3e);box-shadow:0 5px 15px #354a2155;overflow:visible}
.place-marker-card:after{content:"";position:absolute;left:50%;bottom:-8px;width:14px;height:14px;transform:translateX(-50%) rotate(45deg);background:#304c3e;border-right:2px solid #fffefa;border-bottom:2px solid #fffefa;z-index:0}
.place-marker-card img{position:absolute;inset:0;width:100%!important;height:100%!important;max-width:none;aspect-ratio:auto!important;object-fit:cover!important;object-position:center;border-radius:11px}
.place-marker-fallback{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:11px}
.place-marker-fallback{display:grid;place-items:center;background:linear-gradient(145deg,#82977a,#304c3e);color:white;font-size:25px}
.place-marker-title{position:absolute;z-index:1;left:0;right:0;bottom:0;min-height:30px;display:flex;align-items:end;padding:15px 7px 5px;border-radius:0 0 10px 10px;background:linear-gradient(transparent,#10251fd9);color:white;font:600 var(--text-small)/1.2 ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;text-shadow:0 1px 4px #10251f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.place-marker-card.active{border-color:#354a21;box-shadow:0 0 0 2px #fffefa,0 6px 18px #354a2166}
.place-marker-card.active:after{background:#304c3e}
.place-marker-card.compact{width:88px;height:62px;left:18px;top:8px}
.place-marker-card.compact .place-marker-title{min-height:24px;padding:11px 5px 4px;font-size:var(--text-caption)}
.place-marker-card.compact:after{bottom:-8px}
.place-marker-fallback-pin{display:none;position:absolute;left:45px;top:48px;z-index:2}
.place-marker-card.overlap-hidden{visibility:visible}
.empty{padding:30px 16px;color:var(--muted);font-size:var(--text-ui);text-align:center}

.thumb img{width:100%;height:100%;object-fit:cover;border-radius:11px;display:block}
.photo{margin:14px 0 2px}
.photo img{display:block;width:100%;height:175px;object-fit:cover;border-radius:13px;background:#edf0e8}
.photo-credit{font-size:var(--text-caption);line-height:1.4;color:var(--muted);margin-top:5px}
.photo-credit a{color:var(--brand-link);text-decoration:underline;text-underline-offset:2px}

.veg-content{color:#485b50}
.veg-lead{font:16px/1.6 Georgia,serif;margin:2px 0 15px}
.veg-note{border-radius:12px;background:#f2f4ed;padding:12px 13px;color:#66756a;font-size:var(--text-small);line-height:1.55;margin:0 0 17px}
.veg-section{font-size:var(--text-caption);letter-spacing:.14em;text-transform:uppercase;color:#859188;font-weight:700;margin:18px 0 9px}
.plant-card{border:1px solid var(--line);border-radius:13px;padding:13px;margin:9px 0;background:#fffefa}
.plant-card h4{font:18px Georgia,serif;margin:0 0 2px;color:var(--ink)}
.plant-card em{font-size:var(--text-small);color:var(--muted)}
.plant-card p{font-size:var(--text-ui);line-height:1.6;margin:8px 0 0;color:#64736a}
.veg-sources{border-top:1px solid var(--line);margin-top:17px;padding-top:13px}
.veg-sources a{display:block;font-size:var(--text-small);line-height:1.5;color:#58745f;margin:7px 0;text-decoration:underline;text-decoration-color:#b9c9b9;text-underline-offset:2px}

@media(min-width:741px){.workspace[data-view="map"]{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,370px);min-height:0}
.workspace[data-view="map"] .map-side{grid-column:1;grid-row:1;height:68vh;min-height:590px}
.workspace[data-view="map"] .panel{display:contents}
.workspace[data-view="map"] .panel>.detail{grid-column:2;grid-row:1;min-height:590px;max-height:68vh;overflow:auto;border-left:1px solid var(--line);flex:none}
.workspace[data-view="map"] .panel>.panel-head{grid-column:1/-1;grid-row:2}
.workspace[data-view="map"] .panel>.results{grid-column:1/-1;grid-row:3;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));gap:8px;max-height:none;overflow:visible;padding:18px}
.workspace[data-view="map"] .panel>.footer{grid-column:1/-1;grid-row:4}
}
@media(max-width:950px){.workspace{grid-template-columns:minmax(0,1fr) 330px}
.hero-note{display:none}
}
@media(max-width:740px){
.nav span:not(.active){display:none}
.hero{padding:25px 20px 20px}
.workspace{display:flex;flex-direction:column;margin:0 0 20px;border-radius:0}
.map-side{min-height:52vh}
.leaflet-container{min-height:52vh}
.panel{border-left:0;border-top:1px solid var(--line);min-height:auto}
.panel .detail{order:1;overflow:visible}
.panel .panel-head{order:2}
.panel .results{order:3;max-height:none;overflow:visible}
.workspace[data-view="map"] .results-toggle{display:block;margin:12px auto 4px}
.panel .footer{order:4}
.map-toolbar{top:12px;left:12px;right:12px}
.map-legend{bottom:12px;left:12px}
.map-count{bottom:12px;right:12px}
.search{height:40px}
.icon-btn{height:39px;padding:0 10px}
}


.favorite-btn{display:inline-flex;align-items:center;gap:7px;border:1px solid #dfe6dc;border-radius:999px;background:#fffefa;color:#54705b;padding:7px 11px;font-size:var(--text-small);font-weight:700;cursor:pointer}
.favorite-btn:hover,.favorite-btn.is-favorite{background:#edf4eb;border-color:#cbdcc9;color:#354a21}
.share-btn{display:inline-flex;align-items:center;gap:7px;border:1px solid #dfe6dc;border-radius:999px;background:#fffefa;color:#54705b;padding:7px 11px;font-size:var(--text-small);font-weight:700;cursor:pointer}
.share-btn:hover{background:#f2f5ef;border-color:#cbdcc9;color:#354a21}
.favorite-btn .star{font-size:var(--text-ui);line-height:1}
.place-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.detail-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.maps-link{display:flex;align-items:center;justify-content:center;gap:8px;min-height:41px;margin:10px 0 12px;border:1px solid #d5e2d5;border-radius:11px;background:#edf4ec;color:#315d43;text-decoration:none;font-size:var(--text-ui);font-weight:700}
.maps-link:hover{background:#e5efe3;border-color:#bed3bf}
.maps-link:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.maps-info-link{display:block;margin:-4px 0 10px;text-align:center;color:#58745f;font-size:var(--text-small);text-decoration:underline;text-decoration-color:#c2d0c1;text-underline-offset:2px}
.maps-info-link:hover{color:#354a21}
.maps-info-link:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.workspace[data-view="collection"]{display:block;min-height:0}
.workspace[data-view="collection"] .map-side{display:none}
.workspace[data-view="collection"] .panel{border-left:0;min-height:0}
.workspace[data-view="collection"] .panel .detail{width:min(100%,1120px);margin:0 auto;padding:26px clamp(20px,5vw,62px) 38px;overflow:visible}
.workspace[data-view="collection"] .panel .panel-head{border-bottom:0;padding-bottom:13px}
.collection-wrap{max-width:1000px;margin:0 auto}
.collection-lead{font:18px/1.6 Georgia,serif;color:#485b50;max-width:760px;margin:7px 0 17px}
.collection-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:15px 0}
.collection-card{overflow:hidden;border:1px solid var(--line);border-radius:16px;background:#fffefa}
.collection-image{margin:0;height:190px;background:#edf1e9;display:grid;place-items:center;overflow:hidden}
.collection-image img{width:100%;height:100%;object-fit:cover}
.collection-image svg{width:100%;height:100%;display:block}
.collection-image-note{font-size:var(--text-caption);color:#809087;padding:5px 10px;background:#f6f7f2}
.collection-card-body{padding:15px}
.collection-card h3{font:21px Georgia,serif;margin:0 0 5px}
.collection-meta{font-size:var(--text-caption);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.collection-card p{font-size:var(--text-ui);line-height:1.6;color:#64736a;margin:9px 0 13px}
.collection-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.collection-link{font-size:var(--text-small);color:#58745f;text-decoration:underline;text-underline-offset:2px}
.notice{background:#f2f4ed;border-radius:13px;padding:13px 15px;color:var(--muted);font-size:var(--text-small);line-height:1.6;margin:15px 0}
.data-chip{display:inline-flex;border:1px solid #e3e8df;border-radius:99px;padding:5px 9px;color:var(--muted);font-size:var(--text-caption);margin:3px}
.climate-layout{display:grid;grid-template-columns:1.2fr .8fr;gap:16px}
.climate-chart{background:#f7f8f3;border:1px solid var(--line);border-radius:16px;padding:16px}
.climate-chart svg{width:100%;height:auto;display:block}
.climate-chart figcaption{font-size:var(--text-caption);color:var(--muted);margin-top:8px}
.season-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:13px}
.season{border:1px solid var(--line);border-radius:12px;padding:10px;background:#fffefa}
.season b{display:block;font:var(--text-ui) Georgia,serif;margin-bottom:4px}
.season span{font-size:var(--text-caption);color:var(--muted)}
.favorite-empty{padding:28px;border:1px dashed #cfd9ce;border-radius:14px;color:var(--muted);text-align:center}
.favorite-empty b{display:block;color:#40594a;font:20px Georgia,serif;margin-bottom:6px}

@media(max-width:700px){.collection-grid{grid-template-columns:1fr}
.collection-image{height:175px}
.climate-layout{grid-template-columns:1fr}
.season-grid{grid-template-columns:repeat(2,1fr)}
.workspace[data-view="collection"] .panel .detail{padding:18px 17px 28px}
.workspace[data-view="collection"] .panel .panel-head{padding:18px 17px 10px}
.tabs{margin-top:12px}
}


.contribute{margin:44px clamp(16px,4vw,64px) 54px;overflow:hidden;border:1px solid #dfe6dc;border-radius:22px;background:var(--paper);box-shadow:var(--shadow)}
.contribute-intro{display:grid;grid-template-columns: minmax(0,1.05fr) minmax(250px,.95fr);min-height:240px;padding-bottom:28px;background:linear-gradient(112deg,#eef4ec,#faf9f4)}
.contribute-copy{padding:clamp(24px,4vw,48px);align-self:center}
.contribute-kicker{font-size:var(--text-caption);letter-spacing:.16em;text-transform:uppercase;color:var(--muted);font-weight:700}
.contribute-copy h2{font:clamp(27px,3vw,38px)/1.1 Georgia,serif;font-weight:500;margin:9px 0}
.contribute-copy p{max-width:540px;color:var(--muted);line-height:1.65;margin:0}
.contribute-art{display:block;width:100%;height:100%;min-height:240px;object-fit:contain}
.contribute-content{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.85fr);gap:24px;padding:clamp(20px,4vw,44px)}
.contribute-form h3{font:23px Georgia,serif;margin:0 0 5px}
.contribute-help{font-size:var(--text-ui);line-height:1.55;color:var(--muted);margin:0 0 16px}
.contribute-form .field{margin:13px 0 6px}
.contribute-form input,.contribute-form select,.contribute-form textarea{width:100%;border:1px solid #dfe5dc;background:white;border-radius:10px;padding:11px 12px;color:var(--ink);outline-color:#8ca891}
.contribute-form textarea{min-height:110px;resize:vertical}
.contribute-map-wrap{margin-top:7px;border:1px solid #dfe5dc;border-radius:13px;overflow:hidden}
.contribute-map{height:280px;background:#e7ebdf}
.contribute-map-help{display:flex;justify-content:space-between;gap:10px;padding:9px 11px;background:#f7f8f3;color:var(--muted);font-size:var(--text-caption)}
.contribute-coords{font-variant-numeric:tabular-nums;white-space:nowrap}
.contribute-file{display:block;padding:10px;background:#f7f8f3;border:1px dashed #cbd7ca;border-radius:10px}
.contribute-preview{display:none;max-width:100%;max-height:220px;border-radius:11px;margin-top:10px}
.contribute-preview.visible{display:block}
.contribute-check{display:flex;gap:9px;align-items:flex-start;font-size:var(--text-small);line-height:1.5;color:var(--muted);margin-top:14px}
.contribute-check input{width:auto!important;margin-top:2px}
.contribute-submit{border:0;border-radius:11px;background:var(--green);color:white;padding:12px 17px;font-size:var(--text-ui);font-weight:700;margin-top:17px}
.contribute-private-note{font-size:var(--text-caption);color:var(--muted);line-height:1.5;margin:10px 0 0}
.contribute-side{align-self:start;border:1px solid #e4e9e1;border-radius:15px;padding:18px;background:#f8f9f5}
.contribute-side h4{font:18px Georgia,serif;margin:0 0 8px}
.contribute-side p,.contribute-side li{font-size:var(--text-small);line-height:1.6;color:var(--muted)}
.contribute-side ul{padding-left:17px;margin:8px 0 0}
.contribute-content[hidden]{display:none!important}
.contribute-toggle{display:inline-block;margin-top:18px;padding:11px 17px;border:0;border-radius:999px;background:#354a21;color:#fff9e9;font-size:var(--text-ui);font-weight:700;box-shadow:4px 4px 0 #b9ebbd;transition:transform .16s,box-shadow .16s}
.contribute-toggle:hover{transform:translate(-1px,-1px);box-shadow:5px 5px 0 #b9ebbd}
.contribute-toggle:focus-visible{outline:3px solid #ffdf6c;outline-offset:3px}
.contribute-demo-tag{display:inline-flex;border-radius:20px;background:#edf3ea;color:#55705b;padding:6px 9px;font-size:var(--text-caption);font-weight:700;margin-top:14px}

.contribute-context{margin:0 0 16px!important;padding:10px 12px;border-radius:10px;background:#edf4ec;color:#42634d!important;font-size:var(--text-ui)!important;font-weight:700}
.contribute-field-help{margin:0 0 8px;color:var(--muted);font-size:var(--text-small);line-height:1.55}
.contribute-photo-help{margin:8px 0 0;color:var(--muted);font-size:var(--text-small);line-height:1.55}
.contribute-photo-status{margin:8px 0 0;color:#56705e;font-size:var(--text-small);font-weight:700}
.contribute-photo-previews{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}
.contribute-photo-preview{position:relative;min-width:0;overflow:hidden;border:1px solid #dfe5dc;border-radius:10px;background:#f7f8f3}
.contribute-photo-preview img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover}
.contribute-photo-preview span{display:block;overflow:hidden;padding:6px 7px;color:#64736a;font-size:var(--text-caption);line-height:1.35;text-overflow:ellipsis;white-space:nowrap}

@media(max-width:720px){.contribute{margin:28px 12px 36px;border-radius:17px}
.contribute-intro{grid-template-columns:1fr}
.contribute-copy{padding:25px 21px 12px}
.contribute-art{min-height:155px;height:155px}
.contribute-content{grid-template-columns:1fr;padding:21px 17px 25px;gap:15px}
.contribute-map{height:240px}
}

.photo-consent[hidden]{display:none}
.photo-consent{margin-top:10px;padding:9px 11px;border:1px solid #e1e8df;border-radius:10px;background:#fbfcf8}
.photo-consent-check{margin:0;font-size:var(--text-small)}
.photo-consent-check input{flex:none;margin-top:2px}
.photo-consent-check strong{white-space:nowrap}
.photo-consent-details{margin:7px 0 0 24px;color:#758178;font-size:var(--text-caption);line-height:1.5}
.photo-consent-details summary{width:max-content;max-width:100%;color:#526b58;text-decoration:underline;text-underline-offset:2px;cursor:pointer}
.photo-consent-details div{padding-top:4px}
.photo-consent-details p{margin:5px 0}
.photo-consent-details a{color:#526b58}





/* Landscape images keep their source ratio; portrait images are center-cropped to 4:3. */
.thumb{width:64px;height:auto;min-height:48px;aspect-ratio:auto;background:#edf0e8;align-self:flex-start}

.thumb img{display:block;width:100%;height:auto;aspect-ratio:auto;object-fit:initial;background:#edf0e8}

.photo{width:100%;margin:14px 0 2px;border-radius:13px;overflow:hidden;background:#edf0e8}

.photo-contribute{margin:13px 0 16px;padding:14px;border:1px dashed #cad8c9;border-radius:13px;background:#f7f8f3}
.photo-contribute strong{display:block;font:16px Georgia,serif;color:#40594a;margin-bottom:4px}
.photo-contribute p{margin:0 0 10px;color:var(--muted);font-size:var(--text-small);line-height:1.5}
.photo-contribute input{display:block;width:100%;font-size:var(--text-small);color:#64736a}
.photo-contribute input::file-selector-button{border:1px solid #dbe3da;border-radius:8px;background:#fffefa;color:#425e4b;padding:7px 10px;margin-right:8px;cursor:pointer}
.photo-contribute small{display:block;margin-top:7px;color:var(--muted);font-size:var(--text-caption)}
.photo-contribute-preview{display:none;max-width:100%;max-height:230px;object-fit:cover;border-radius:10px;margin-top:10px}
.photo-contribute-preview.visible{display:block}

.photo img,.collection-image img{display:block;width:100%;height:auto;aspect-ratio:auto;object-fit:initial;object-position:center;background:#edf0e8;border-radius:0}

.photo img.portrait-crop,.plant-photo img.portrait-crop,.collection-image img.portrait-crop,.thumb img.portrait-crop{aspect-ratio:4/3;object-fit:cover;object-position:center;height:auto}

.collection-image{aspect-ratio:auto;height:auto;min-height:0;background:#edf0e8;display:block}

.collection-image svg{width:100%;height:auto;aspect-ratio:auto;display:block}

@media(max-width:740px){.plant-photo img{height:auto}
}



.lightbox-backdrop{position:fixed;inset:0;z-index:1500;background:#10251fc9;display:none;place-items:center;padding:22px;backdrop-filter:blur(5px)}
.lightbox-backdrop.open{display:grid}
.lightbox-card{position:relative;width:min(1120px,96vw);max-height:94vh;background:#fffefa;border:1px solid #ffffff70;border-radius:18px;padding:13px;box-shadow:0 26px 90px #07140f80;display:flex;flex-direction:column;align-items:center}
.lightbox-close{position:absolute;top:8px;right:8px;z-index:2;width:39px;height:39px;border:1px solid #dfe6dc;border-radius:50%;background:#fffefaf2;color:#29483a;font-size:25px;line-height:1}
.lightbox-media{width:100%;min-height:80px;display:grid;place-items:center;overflow:auto}
.lightbox-media img{display:block;width:auto;height:auto;max-width:100%;max-height:calc(94vh - 92px);object-fit:contain;cursor:zoom-out;border-radius:9px}
.lightbox-media svg{display:block;width:auto;height:auto;max-width:100%;max-height:calc(94vh - 92px);cursor:zoom-out}
.lightbox-caption{width:100%;padding:10px 5px 2px;text-align:center;color:var(--muted);font-size:var(--text-small);line-height:1.45}
.lightbox-hint{font-size:var(--text-caption);color:var(--muted);margin-top:4px}
.collection-image img,.thumb img{cursor:zoom-in}
.collection-image svg{cursor:zoom-in}

@media(max-width:620px){.lightbox-backdrop{padding:10px}
.lightbox-card{width:100%;padding:9px;border-radius:14px;max-height:96vh}
.lightbox-media img,.lightbox-media svg{max-height:calc(96vh - 83px)}
.lightbox-close{top:5px;right:5px;width:35px;height:35px}
.lightbox-caption{font-size:var(--text-caption)}
}


.workspace[data-view="map"] .results-toggle{border:1px solid #dbe3da;border-radius:999px;background:#fffefa;color:#42644f;padding:9px 16px;font-size:var(--text-ui);font-weight:700}
.workspace[data-view="map"] .results-toggle:hover{background:#f1f5ef;border-color:#cbd9cb}
.workspace[data-view="map"] .results-toggle[hidden]{display:none}
@media(min-width:741px){.workspace[data-view="map"] .results-toggle{grid-column:1/-1;justify-self:center}
}


.eyebrow,.detail-kicker,.count,.map-count,.map-legend,.coordinates,.source-head,.photo-credit,.contribute-kicker{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}

.item-page-link{color:inherit;text-decoration:none}
.item-page-link:hover{text-decoration:underline;text-decoration-color:#b9c9b9;text-underline-offset:3px}
.full-entry-cta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 15px;padding:12px 14px;border:1px solid #d9e4d8;border-radius:12px;background:#edf4ec;color:#315d43;text-decoration:none;font-size:var(--text-ui);font-weight:750}
.full-entry-cta:hover{background:#e5efe3;border-color:#bed3bf}
.full-entry-cta:focus-visible{outline:2px solid #354a21;outline-offset:2px}

.content-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:17px}
.content-filters label{display:grid;gap:5px;min-width:0;font-size:var(--text-small);font-weight:650;color:#5c6e53}
.content-filters select{width:100%;min-width:0;min-height:40px;border:1px solid #d5dece;border-radius:10px;padding:8px;background:#fffefa;color:#354a21;font:var(--text-ui)/1.35 system-ui,sans-serif}
.content-filters select:focus-visible,.content-filters button:focus-visible{outline:3px solid #ffdf6c;outline-offset:2px}
.content-filters button{justify-self:start;border:0;background:none;color:#526a32;font-size:var(--text-small);padding:3px 0;text-decoration:underline;text-underline-offset:3px}
.content-filter-note{grid-column:1/-1;font-size:var(--text-small);color:var(--muted);margin:0}
.content-filters [hidden]{display:none!important}
@media(max-width:620px){.content-filters{grid-template-columns:1fr}
.content-filters label{grid-template-columns:85px minmax(0,1fr);align-items:center}
.content-filters select{min-height:44px}
}

.workspace:not([data-view="map"]) .panel-head{order:0}

.registry-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:9px}
.registry-list .discovery-record{min-width:0}
.registry-search{display:block;width:100%;margin-top:14px;padding-left:14px;background-image:none}
.registry-prompt{padding:16px;border:1px solid #e4e9e1;border-radius:13px;background:#f8f9f5;color:var(--muted)}
.registry-prompt strong{font:17px Georgia,serif;color:#354a21}
.registry-prompt p{font-size:var(--text-ui);line-height:1.55;margin:6px 0 0}

@media(max-width:520px){
.hero{padding-top:19px}
.hero p{font-size:var(--text-ui)}
}
.quick-photo-link{display:block;cursor:pointer}
.quick-photo-link img{cursor:pointer}
.quick-photo-link:focus-visible{outline:3px solid #354a21;outline-offset:3px;border-radius:13px}


@media(min-width:741px){.workspace[data-view="map"]{grid-template-columns:minmax(0,1fr) minmax(320px,370px);grid-template-rows:auto auto auto}
.workspace[data-view="map"] .panel{display:contents}
.workspace[data-view="map"] .panel>.panel-head{grid-column:1/-1;grid-row:1}
.workspace[data-view="map"] .map-side{grid-column:1;grid-row:2;height:64vh;min-height:540px}
.workspace[data-view="map"] .panel>.detail{grid-column:2;grid-row:2;max-height:64vh;min-height:540px}
.workspace[data-view="map"] .panel>.results{grid-column:1/-1;grid-row:3;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:9px;max-height:none;overflow:visible;padding:18px}
.registry-list{grid-column:1/-1}
}

@media(max-width:740px){.workspace[data-view="map"] .panel{display:contents}
.workspace[data-view="map"] .panel>.panel-head{order:0}
.workspace[data-view="map"] .map-side{order:1}
.workspace[data-view="map"] .panel>.results{order:2}
.workspace[data-view="map"] .panel>.detail{order:3}
.workspace[data-view="map"] .map-side{height:max(46vh,360px);min-height:360px}

  .workspace[data-view="map"] #map{min-height:0}
.tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
}


/* Registry map and quick view layout. */
@media(min-width:741px){
  .workspace[data-view="map"]{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto;align-content:start}

  .workspace[data-view="map"].quick-view-open{grid-template-columns:minmax(0,1fr) minmax(320px,370px)}

  .workspace[data-view="map"] .panel{display:contents}

  .workspace[data-view="map"] .panel>.panel-head{grid-column:1/-1;grid-row:1}

  .workspace[data-view="map"] .map-side{grid-column:1/-1;grid-row:2;width:100%;height:max(64vh,590px);min-height:590px}

  .workspace[data-view="map"] #map{min-height:0}

  .workspace[data-view="map"].quick-view-open .map-side{grid-column:1;grid-row:2}

  .workspace[data-view="map"] .panel>.detail{display:none}

  .workspace[data-view="map"].quick-view-open .panel>.detail{display:block;grid-column:2;grid-row:2;min-width:0;min-height:590px;max-height:max(64vh,590px);overflow:auto;border-left:1px solid var(--line);padding:32px 22px 24px}

  .workspace[data-view="map"] .panel>.results{grid-column:1/-1;grid-row:3;display:block;max-height:none;overflow:visible;padding:28px var(--page-gutter);border-bottom:0}

  .workspace[data-view="map"][data-section="favorites"] .panel>.favorite-collection{grid-column:1/-1;grid-row:3;padding:28px var(--page-gutter) 30px}

  .workspace[data-view="map"] .panel>.footer{grid-column:1/-1;grid-row:4}

  .workspace[data-view="map"] .quick-view-close{display:none}

  .workspace[data-view="map"].quick-view-open .quick-view-close{display:grid;grid-column:2;grid-row:2;justify-self:end;align-self:start;position:relative;z-index:3;margin:12px 12px 0 0;width:34px;height:34px;place-items:center;border:1px solid #dce3d9;border-radius:50%;background:#fffefa;color:#354a21;font:24px/1 system-ui,sans-serif}

  .registry-list{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:18px}

  .registry-more{display:block;margin:22px auto 4px;min-height:44px;padding:10px 20px;border:1px solid #bfcdb5;border-radius:999px;background:#fffefa;color:#354a21;font-size:var(--text-ui);font-weight:700}

  .registry-more:hover{background:#f2f5ed;border-color:#aebfa7}

  .registry-more:focus-visible{outline:3px solid #ffdf6c;outline-offset:3px}

  .registry-list .discovery-record{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:1fr auto auto;align-content:start;min-height:0;padding:12px 14px 10px}

  .registry-list .discovery-record>.place{grid-column:1/-1;min-height:105px;padding:4px 4px 12px;align-items:flex-start}

  .registry-list .discovery-record>.show-on-map,.registry-list .discovery-record>.plan-button{align-self:center;margin:0 4px;min-height:30px}

}

@media(min-width:741px) and (max-width:1199px){.registry-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:740px){
  .workspace[data-view="map"] .panel{display:contents}

  .workspace[data-view="map"] .panel>.panel-head{order:0}

  .workspace[data-view="map"] .map-side{order:1}

  .workspace[data-view="map"] .panel>.detail{display:none;order:2}

  .workspace[data-view="map"].quick-view-open .panel>.detail{display:block;order:2;max-height:none;min-height:0;padding:22px 18px;border-top:1px solid var(--line)}

  .workspace[data-view="map"] .panel>.results{order:3;display:block;max-height:none;overflow:visible;padding:24px var(--page-gutter);border-bottom:0}

  .workspace[data-view="map"][data-section="favorites"] .panel>.favorite-collection{order:3;padding:24px var(--page-gutter) 28px}

  .workspace[data-view="map"] .map-side{height:max(46vh,360px);min-height:360px}

  .workspace[data-view="map"] #map{min-height:0}

  .registry-list{grid-template-columns:1fr;gap:10px}

  .registry-more{display:block;margin:20px auto 4px;min-height:44px;padding:10px 18px;border:1px solid #bfcdb5;border-radius:999px;background:#fffefa;color:#354a21;font-size:var(--text-ui);font-weight:700}

}

@media(min-width:741px){
  .workspace[data-view="collection"].quick-view-open{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,370px);grid-template-rows:auto auto auto;align-content:start}

  .workspace[data-view="collection"] .panel{display:contents}

  .workspace[data-view="collection"] .panel>.panel-head{grid-column:1/-1;grid-row:1}

  .workspace[data-view="collection"] .panel>.map-side{grid-column:1/-1;grid-row:2;width:100%;height:max(64vh,590px);min-height:590px}

  .workspace[data-view="collection"] #map{min-height:0}

  .workspace[data-view="collection"].quick-view-open .panel>.map-side{grid-column:1;grid-row:2}

  .workspace[data-view="collection"] .panel>.detail{display:none}

  .workspace[data-view="collection"].quick-view-open .panel>.detail{display:block;grid-column:2;grid-row:2;min-width:0;min-height:590px;max-height:max(64vh,590px);overflow:auto;border-left:1px solid var(--line);padding:32px 22px 24px;width:auto;margin:0}

  .workspace[data-view="collection"] .favorite-collection{grid-column:1/-1;grid-row:3}

  .workspace[data-view="collection"] .quick-view-close{display:none}

  .workspace[data-view="collection"].quick-view-open .quick-view-close{display:grid;grid-column:2;grid-row:2;justify-self:end;align-self:start;position:relative;z-index:3;margin:12px 12px 0 0;width:34px;height:34px;place-items:center;border:1px solid #dce3d9;border-radius:50%;background:#fffefa;color:#354a21;font:24px/1 system-ui,sans-serif}

}

@media(max-width:740px){
  .workspace[data-view="collection"] .panel>.panel-head{order:0}

  .workspace[data-view="collection"] .panel>.map-side{height:max(46vh,360px);min-height:360px}

  .workspace[data-view="collection"] .panel>.map-side{order:1}

  .workspace[data-view="collection"] .panel>.results{order:2}

  .workspace[data-view="collection"] #map{min-height:0}

  .workspace[data-view="collection"] .favorite-collection{order:4;padding:24px var(--page-gutter) 28px}

  .workspace[data-view="collection"] .panel>.detail{display:none}

  .workspace[data-view="collection"].quick-view-open .panel>.detail{display:block;order:3;width:100%;max-height:none;min-height:0;margin:0;padding:22px 18px;border-top:1px solid var(--line)}

  .workspace[data-view="collection"] .quick-view-close{display:none}

  .workspace[data-view="collection"].quick-view-open .quick-view-close{display:grid;order:2;align-self:flex-end;position:relative;z-index:3;margin:8px 14px -44px 0;width:34px;height:34px;place-items:center;border:1px solid #dce3d9;border-radius:50%;background:#fffefa;color:#354a21;font:24px/1 system-ui,sans-serif}

}

@media(min-width:741px){
  .workspace.map-fullscreen[data-view="map"]{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);align-content:stretch}

  .workspace.map-fullscreen[data-view="map"].fullscreen-detail-open{grid-template-columns:minmax(0,1fr) minmax(280px,min(38vw,420px));grid-template-rows:minmax(0,1fr)}

  .workspace.map-fullscreen[data-view="map"] .map-side{grid-column:1;grid-row:1;width:100%;height:100%;min-height:0}

  .workspace.map-fullscreen[data-view="map"] #map{width:100%;height:100%;min-height:0}

}

@media(max-width:740px){
  .workspace.map-fullscreen[data-view="map"]{display:block!important}

  .workspace.map-fullscreen[data-view="map"] .map-side,.workspace.map-fullscreen[data-view="map"] #map{width:100%;height:100%;min-height:0}

}

@media(min-width:741px){
  .workspace.map-fullscreen[data-view="map"].fullscreen-detail-open .quick-view-close{position:absolute;top:12px;right:12px;display:grid;grid-column:auto;grid-row:auto;justify-self:auto;align-self:auto;margin:0}

}

@media(max-width:740px){
  .workspace.map-fullscreen[data-view="map"].fullscreen-detail-open .panel{position:absolute}

  .workspace.map-fullscreen[data-view="map"].fullscreen-detail-open .quick-view-close{position:absolute;top:10px;right:12px;display:grid;grid-column:auto;grid-row:auto;justify-self:auto;align-self:auto;margin:0}

}


/* Discovery controls and record groups. */
[hidden]{display:none!important}
.hero.atlas-page-intro{display:block;margin:0;padding:28px var(--page-gutter);background:#fffdf7;border-top:5px solid #526c39;border-bottom:1px solid #ded8c9}
.atlas-page-eyebrow{margin:0 0 8px;color:var(--muted);font-size:var(--text-caption);font-weight:750;letter-spacing:.14em;text-transform:uppercase}
.atlas-page-intro h1.atlas-intro{margin:0 0 11px;font:500 clamp(30px,3.6vw,42px)/1.1 var(--font-heading);color:#27381e}
.atlas-page-description{max-width:1000px;margin:0;color:var(--text-color);font-size:var(--text-body);line-height:1.65}
@media(max-width:740px){.hero.atlas-page-intro{padding-block:20px;margin:0;padding:28px var(--page-gutter);}}
.workspace[data-view="collection"] .heritage-search{display:none}
.heritage-search{margin-top:0;}
.panel[data-section="churches"] .panel-top{display:none}
.panel[data-section="favorites"] .panel-top{display:none}
.panel[data-section="favorites"] .panel-head{padding-top:14px}
.panel[data-section="favorites"] .heritage-search{margin-top:0}
.map-bottom-tools{position:absolute;z-index:500;left:18px;bottom:66px;display:flex;align-items:center;gap:8px}
.map-bottom-tools .map-layer-toggle{position:static}
.map-interactions{position:absolute;z-index:500;top:18px;left:18px;display:grid;justify-items:start;gap:7px;max-width:min(230px,calc(100% - 90px));pointer-events:none}
.map-interactions>*{pointer-events:auto}
.map-interactions-toggle{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:9px 13px;border:1px solid #d9e0d6;border-radius:12px;background:#fffefaf2;color:var(--ink);font-size:var(--text-ui);font-weight:700;box-shadow:0 4px 12px #1c372014}
.map-interactions-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.map-interactions-toggle:hover{background:#fff}
.map-interactions-toggle[aria-pressed="true"]{background:#ffdf6c;border-color:#f0c94a}
.map-interactions-toggle:focus-visible{outline:3px solid #354a21;outline-offset:2px}
.map-interactions-note{margin:0;padding:9px 11px;border:1px solid #e3e6de;border-radius:10px;background:#fffefaf2;color:#526458;font-size:var(--text-small);line-height:1.5;box-shadow:0 4px 12px #1c372014}
.map-interactions-legend{margin:0;padding:6px 9px 8px;border:1px solid #d9e0d6;border-radius:10px;background:#fffefa;color:#263e31;font-size:var(--text-small);box-shadow:0 4px 12px #1c372014}
.map-interactions-legend summary{padding:3px 0;font-weight:700;cursor:pointer;min-height:24px}
.map-interactions-legend summary:focus-visible{outline:2px solid #354a21;outline-offset:3px}
.map-interactions-legend fieldset{margin:4px 0 0;padding:0;border:0}
.map-interactions-legend .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.map-interactions-legend label{display:flex;align-items:center;gap:6px;min-height:30px;cursor:pointer}
.map-interactions-legend input{margin:0;accent-color:#354a21;width:15px;height:15px}
.interaction-swatch{width:24px;border-top:3px dashed #6b492c;flex-shrink:0}
.interaction-swatch-locality{border-top-style:solid;border-color:#075b9b}
.interaction-swatch-neighbours{border-top-style:dotted;border-color:#713a83}
.atlas-interaction-hit{cursor:pointer}
.atlas-interaction-hit:focus-visible{stroke:#866443;stroke-opacity:.3;outline:none}
.map-hover-hint.leaflet-tooltip{width:max-content;max-width:min(260px,calc(100vw - 36px));padding:9px 12px;border:1px solid #8a9a7b;border-radius:10px;background:#fffefa;color:#354a21;box-shadow:0 4px 15px #22362f30;white-space:normal;pointer-events:none;font:var(--text-ui)/1.45 ui-sans-serif,system-ui,sans-serif}
.map-hover-hint strong,.map-hover-hint span,.map-hover-hint small{display:block}
.map-hover-hint span{margin-top:3px;color:#526458}
.map-hover-hint small{margin-top:5px;color:var(--muted);font-size:var(--text-small)}
.interaction-hover-hint.leaflet-tooltip{border-color:#354a21;background:#fff6ce}
.place-marker-icon.leaflet-interactive,.favorite-number-marker.leaflet-interactive{pointer-events:none}
.place-marker-icon>.pin,.place-marker-icon>.pin-label,.place-marker-icon>.place-marker-card,.favorite-number-marker>.favorite-number-dot{pointer-events:auto;cursor:pointer}
#map.interactions-active .pin-label{max-width:160px;padding:5px 8px;border-color:#7a896c;background:#fffefa;box-shadow:0 2px 7px #16211155;font-size:var(--text-small);line-height:1.3}
#map .place-marker-icon:hover,#map .place-marker-icon:focus-visible,#map .favorite-number-marker:hover,#map .favorite-number-marker:focus-visible{opacity:1!important}
#map .place-marker-icon:hover .pin:before,#map .place-marker-icon:focus-visible .pin:before{border-color:#354a21;box-shadow:0 0 0 4px #ffdf6c,0 4px 12px #22362f80}
.place-marker-icon:hover .place-marker-card,.place-marker-icon:focus-visible .place-marker-card{border-color:#354a21;outline:4px solid #ffdf6c;box-shadow:0 5px 18px #22362f80}
.place-marker-icon:hover .pin-label,.place-marker-icon:focus-visible .pin-label{border-color:#354a21;background:#ffdf6c;color:#243518}
.favorite-number-marker:hover .favorite-number-dot,.favorite-number-marker:focus-visible .favorite-number-dot{outline:4px solid #ffdf6c;border-color:#354a21}
.interaction-popup .interaction-pair{margin:0 0 7px;color:#718077;font-size:var(--text-small);line-height:1.5}
.interaction-popup h3{margin:0 0 8px;color:#354a21;font:700 16px/1.35 ui-sans-serif,system-ui,sans-serif}
.interaction-popup p{margin:0 0 12px;color:var(--text-color);font-size:var(--text-ui);line-height:1.6}
.interaction-popup a.interaction-story{color:#354a21;font-weight:700;text-underline-offset:3px}
@media(max-width:520px){.map-interactions{top:12px;left:12px}.map-interactions-toggle{padding:8px 9px;font-size:var(--text-small);min-height:44px;}}
.map-location-toggle{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:9px 13px;border:1px solid #d9e0d6;border-radius:12px;background:#fffefaf2;color:var(--ink);font-size:var(--text-ui);font-weight:700;box-shadow:0 4px 12px #1c372014}
.map-location-toggle:hover{background:#fff}
.map-location-toggle:focus-visible{outline:3px solid #354a21;outline-offset:2px}
.map-location-toggle:disabled{cursor:wait;opacity:.7}
.location-control-dot{width:10px;height:10px;border:2px solid #fff;border-radius:50%;background:#2584d8;box-shadow:0 0 0 1px #2584d8}
.user-location-marker{border:0;background:transparent}
.user-location-dot{position:relative;display:block;width:20px;height:20px;border:3px solid #fff;border-radius:50%;background:#2584d8;box-shadow:0 1px 8px #17354e80}
.user-location-dot::before{position:absolute;inset:-8px;z-index:-1;border-radius:50%;background:#2584d833;content:""}
@media(max-width:520px){.map-bottom-tools{left:12px;bottom:62px;gap:6px}.map-location-toggle,.map-bottom-tools .map-layer-toggle{padding:8px 9px;font-size:var(--text-small)}}
.heritage-search-heading,.heritage-search-fields{display:grid;grid-template-columns:minmax(0, 1.45fr) minmax(140px, 1fr) auto;align-items:center;gap:8px 10px}
.heritage-search-heading .heritage-field-label{margin-bottom:0;font-size:var(--text-small);}
.heritage-search-heading #count{margin-left:0;justify-self:end;white-space:nowrap;font-size:var(--text-small);}
.heritage-field-label{display:block;margin-bottom:6px;color:var(--muted);font-size:var(--text-ui);font-weight:700}
.heritage-search .registry-search{display:block;width:100%;height:46px;min-height:46px;margin-top:0;padding:10px 13px;border:1px solid #dce3d8;border-radius:11px;background:#fffefa;box-shadow:none;color:var(--ink);font-size:var(--text-ui);background-image:none}
.heritage-search .registry-search:focus{border-color:#8ca891;outline:2px solid #c6d6bf;outline-offset:1px}
.heritage-search-fields .registry-search{grid-column:1;grid-row:1;width:100%;min-width:0;height:46px;min-height:46px;padding:10px 13px;border:1px solid #dce3d8;border-radius:11px;background:#fffefa;color:var(--ink);font-size:var(--text-ui)}
.municipality-picker{position:relative;grid-column:2;grid-row:1;min-width:0}
.municipality-trigger{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;height:46px;min-height:46px;padding:10px 13px;border:1px solid #dce3d8;border-radius:11px;background:#fffefa;color:var(--ink);font-size:var(--text-ui);text-align:left}
.municipality-trigger:hover,.municipality-trigger[aria-expanded="true"]{border-color:#a8bba5;background:#f8faf5}
.municipality-trigger:focus-visible,.municipality-option:focus-visible{outline:2px solid #8ca891;outline-offset:2px}
.municipality-chevron{width:8px;height:8px;flex:none;border-right:1.7px solid var(--muted);border-bottom:1.7px solid var(--muted);transform:rotate(45deg) translateY(-2px);transition:transform .16s ease}
.municipality-trigger[aria-expanded="true"] .municipality-chevron{transform:rotate(225deg) translate(-2px,-1px)}
.municipality-options{position:absolute;z-index:1400;top:calc(100% + 6px);right:0;width:max(100%,260px);max-width:min(360px,calc(100vw - 32px));max-height:min(55vh,420px);overflow:auto;padding:6px;border:1px solid #dce3d8;border-radius:13px;background:#fffefa;box-shadow:0 12px 30px #24362426}
.municipality-option{display:block;width:100%;padding:9px 11px;border:1px solid transparent;border-radius:9px;background:transparent;color:#354a21;text-align:left}
.municipality-option:hover{background:#f4f6ef}
.municipality-option[aria-pressed="true"]{border-color:#d6dfcf;background:#eef3e9}
.municipality-option-name{display:block;font-size:var(--text-ui);font-weight:700;line-height:1.35}
.municipality-option-settlements{display:block;margin:4px 0 0 12px;padding-left:10px;border-left:2px solid #d9e2d4;color:var(--muted);font-size:var(--text-small);line-height:1.4}
.heritage-category-filters{margin-top:12px}
.theme-filter-heading{display:flex;flex-wrap:wrap;align-items:baseline;gap:7px 12px;font-size:var(--text-ui);font-weight:700;color:var(--ink)}
.theme-filter-help{color:var(--muted);font-size:var(--text-small);font-weight:400}
.heritage-category-filters .theme-filters{margin-top:10px}
@media(max-width:520px){.heritage-search-heading,.heritage-search-fields{grid-template-columns:minmax(0, 1.45fr) minmax(140px, 1fr) auto;gap:7px}.heritage-search-heading #count{font-size:var(--text-small);padding:5px 7px}.heritage-search-fields .registry-search,.municipality-trigger{padding:9px 8px;font-size:var(--text-ui)}}
.discovery-filter-buttons{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 10px}
.discovery-filter-buttons button{padding:10px 16px;border:1px solid #d6dfcf;border-radius:999px;background:#f3f5ee;color:#354a21;font-size:var(--text-ui)}
.discovery-filter-buttons button[aria-pressed=true]{background:#ffdf6c;border-color:#efca42;font-weight:750}
.discovery-filter-buttons button:focus-visible,.group-more:focus-visible,.group-action:focus-visible,.plan-button:focus-visible,.show-on-map:focus-visible,.discovery-record .place:focus-visible{outline:3px solid #ffdf6c;outline-offset:3px}
.discovery-group{margin:0 0 30px;padding-bottom:26px;border-bottom:1px solid #e4e7dc}.discovery-group:last-child{border-bottom:0;margin-bottom:0}
.discovery-group>header{margin:0 0 16px}.discovery-group h3{font:27px/1.2 Georgia,serif;margin:0 0 7px}
.discovery-group h3 span{display:inline-block;font:var(--text-ui) system-ui,sans-serif;background:#eef2e9;border-radius:20px;padding:4px 9px;vertical-align:middle}
.discovery-group header p{max-width:760px;color:var(--muted);font-size:var(--text-ui);margin:0}
.photo-help-list>header{margin:0 0 18px;padding:0 0 20px;border:0;border-radius:0;background:transparent;border-bottom:1px solid var(--line);}
.photo-help-list>header h3{font:24px/1.2 Georgia,serif;margin:0 0 6px;color:#354a21}
.photo-help-list>header p{max-width:760px;color:#66766b;font-size:var(--text-ui);line-height:1.55;margin:0}
.grouped-results{display:block!important;max-height:none!important;overflow:visible!important;padding:24px}
.workspace[data-view="map"][data-section="favorites"] #results{display:none!important}
.workspace[data-view="collection"] .grouped-results{display:none!important}
.favorite-count{display:inline-block;margin-left:5px;padding:4px 9px;border-radius:20px;background:#eef2e9;color:var(--muted);font:var(--text-ui) system-ui,sans-serif;vertical-align:middle}
.favorite-collection-list{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.workspace[data-view="map"][data-section="favorites"] .favorite-collection .collection-wrap{display:grid;width:100%;max-width:1600px;margin:0 auto;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.workspace[data-view="map"][data-section="favorites"] .favorite-collection .collection-wrap>h3,.workspace[data-view="map"][data-section="favorites"] .favorite-collection .collection-wrap>p{grid-column:1/-1;margin-bottom:0}
.workspace[data-view="map"][data-section="favorites"] .favorite-collection .collection-wrap>h3{font:27px/1.2 Georgia,serif}
.workspace[data-view="map"][data-section="favorites"] .favorite-collection .collection-wrap>p{max-width:760px;color:var(--muted);font-size:var(--text-ui)}
.workspace[data-view="map"][data-section="favorites"] .favorite-status-group{min-width:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;}
.workspace[data-view="map"][data-section="favorites"] .favorite-status-group>h4{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 14px;font:21px/1.25 Georgia,serif;color:#354a21}
.workspace[data-view="map"][data-section="favorites"] .favorite-collection-list{grid-template-columns:1fr!important;gap:10px}
.favorite-number-label{display:inline-grid;place-items:center;width:21px;height:21px;margin-right:7px;border-radius:50%;background:#354a21;color:#fff;font:700 var(--text-small)/1 system-ui,sans-serif;vertical-align:2px}
.favorite-number-marker{border:0;background:transparent}
.favorite-number-dot{display:grid;place-items:center;width:42px;height:42px;border:3px solid #fff;border-radius:50%;background:var(--category-color,#354a21);color:#fff;font:800 var(--text-ui)/1 system-ui,sans-serif;box-shadow:0 2px 9px #152a1d70,0 0 0 2px #354a21}
.workspace[data-view="collection"] .panel>.map-side{display:block;width:100%;height:max(64vh,590px);min-height:590px;margin:0;border:0;border-radius:0;overflow:hidden}
.workspace[data-view="collection"] .panel>.map-side .leaflet-container{height:100%;min-height:0}
.workspace[data-view="collection"] .favorite-collection{padding:22px clamp(20px,5vw,64px) 36px}
.workspace[data-view="collection"] .favorite-collection .collection-wrap{max-width:none;margin:0}
.workspace[data-view="collection"] .favorite-collection .collection-wrap>h3{font:27px/1.2 Georgia,serif;margin:0 0 7px}
.workspace[data-view="collection"] .favorite-collection .collection-wrap>p{max-width:760px;color:var(--muted);font-size:var(--text-ui);margin:0 0 18px}
.favorite-status-group{margin:22px 0 30px}.favorite-status-group>h4{font:21px/1.25 Georgia,serif;margin:0 0 12px;color:#354a21}.favorite-group-empty{margin:0;padding:14px 16px;border:1px dashed #d6dfd1;border-radius:12px;color:var(--muted);font-size:var(--text-ui)}
.favorite-personal{grid-column:1/-1;display:grid;gap:7px;margin:8px 12px;padding:16px 0 0;border-radius:0;background:transparent;border-top:1px solid var(--line);}
.favorite-visited{display:inline-flex;align-items:center;justify-self:start;gap:8px;color:#435c48;font-size:var(--text-ui);font-weight:700;cursor:pointer}.favorite-visited input{width:16px;height:16px;margin:0;accent-color:#526f51}
.favorite-note-label{color:var(--muted);font-size:var(--text-caption);font-weight:700}.favorite-note{width:100%;min-height:58px;resize:vertical;border:1px solid #dfe5dc;border-radius:8px;background:#fffefa;padding:8px;color:var(--text-color);font:inherit;font-size:var(--text-ui);line-height:1.45}.favorite-note:focus{outline:2px solid #a9bea4;outline-offset:1px}
.favorite-note-footer{display:flex;align-items:center;gap:9px;min-height:27px}.favorite-note-save{padding:5px 9px;border:1px solid #cbd9c6;border-radius:999px;background:#fffefa;color:#456247;font-size:var(--text-caption);font-weight:700}.favorite-note-save:hover{background:#e9f0e5}.favorite-note-save:disabled{opacity:.6;cursor:wait}.favorite-personal-status{color:var(--muted);font-size:var(--text-caption)}
.discovery-record.is-visited{border-color:#cad8c5;background:#fbfcf8}.discovery-record.is-visited .favorite-personal{background:transparent;}
.discovery-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:12px}
.discovery-record{min-width:0;position:relative;padding:4px;border:1px solid #e3e7db;border-radius:var(--radius-card);background:#fffefa}
.discovery-record.favorite-fade-out{opacity:0;transform:translateY(8px);transition:opacity .22s ease,transform .22s ease;pointer-events:none}
.discovery-record.favorite-fade-in{animation:favorite-card-in .32s ease both}
@keyframes favorite-card-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.discovery-record.favorite-fade-out{transition:none}.discovery-record.favorite-fade-in{animation-duration:.01ms}}
.discovery-record .place{text-decoration:none;min-height:105px;border:0;border-radius:0;}.discovery-record.text-only .place{min-height:0}
.discovery-record .place:hover .place-title,.discovery-record .place:focus-visible .place-title{text-decoration:underline;text-decoration-color:currentColor;text-underline-offset:3px}
.discovery-record .thumb{position:relative}
.record-category-badge{position:absolute;z-index:2;top:5px;left:5px;display:grid;place-items:center;width:25px;height:25px;border:1px solid #ffffffdc;border-radius:50%;background:var(--category-color);color:#fff;box-shadow:0 2px 6px #17251c55}
.record-category-badge svg{width:15px;height:15px;pointer-events:none}
.discovery-record .place-text{position:relative}
.record-category-corner{top:0;right:0;left:auto}
.discovery-record.text-only .place-title{padding-right:31px}
.discovery-record .uncertainty-icon{width:15px;height:15px;margin-right:7px;vertical-align:-1px;fill:none;stroke:#879283;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.discovery-record .thumb{width:68px;height:60px}.discovery-record .thumb img{width:100%;height:100%;object-fit:cover;border-radius:10px;cursor:pointer}
.discovery-record .thumb-placeholder{display:grid;place-items:center;border-radius:10px;background:#f0f3eb;color:#859585}
.discovery-record .thumb-placeholder svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.25;stroke-linecap:round;stroke-linejoin:round}
.show-on-map{display:block;margin:0 12px 6px;padding:5px 0;border:0;background:none;color:#526a32;font-size:var(--text-small);text-decoration:underline;text-underline-offset:3px}
.group-action{display:inline-block;margin:2px 12px 8px;color:#526a32;font-size:var(--text-ui);text-underline-offset:3px}
.plan-button{display:block;margin:2px 12px 10px;padding:5px 0;border:0;background:none;color:#64735d;font-size:var(--text-small);min-height:28px}.plan-button[aria-pressed=true]{color:#354a21;font-weight:700}
.plan-button.remove-favorite{display:inline-flex;align-items:center;justify-self:start;gap:4px;width:max-content;max-width:100%;padding:5px 10px;border:1px solid #e4c9c2;border-radius:999px;background:#fffefa;color:#8a5146;font-weight:650}
.plan-button.remove-favorite:hover{border-color:#d6aaa0;background:#fbefec;color:#a13f35}
.plan-button.remove-favorite>span{font-size:17px;line-height:1}
.favorite-map-link{display:inline-flex;align-items:center;justify-self:start;gap:5px;width:max-content;max-width:100%;min-height:30px;margin:2px 4px 10px;padding:5px 9px;border:1px solid #cbd9c6;border-radius:999px;background:#f3f6ef;color:#456247;font-size:var(--text-small);font-weight:700;text-decoration:none}
.favorite-map-link:hover{border-color:#aebfa7;background:#e9f0e5;color:#354a21}
.group-more{display:block;margin:18px auto 0;min-height:44px;padding:10px 16px;border:1px solid #bfcdb5;border-radius:999px;background:transparent;color:#354a21;font-size:var(--text-ui);font-weight:600;letter-spacing:.01em;box-shadow:none}
.group-more:hover{text-decoration:underline;text-underline-offset:4px}
.text-only{background:#f8f8f1;border-style:solid}.location-status{font-size:var(--text-ui);font-weight:650;color:#667653}
.approximate-marker .pin{outline:0}
.quick-contributions{display:flex;flex-wrap:wrap;gap:12px;margin-top:18px}.quick-contributions a{font-size:var(--text-ui);color:#526a32;text-underline-offset:3px}
.quick-photo-invite{display:flex;align-items:center;gap:15px;min-height:150px;margin:14px 0 2px;padding:20px;border:1px dashed #b8c9b3;border-radius:13px;background:#f3f6ef;color:#354a21;text-decoration:none;transition:background .16s,border-color .16s}
.quick-photo-invite:hover{background:#edf3e9;border-color:#91aa90}
.quick-photo-invite:focus-visible{outline:3px solid #ffdf6c;outline-offset:3px}
.quick-photo-invite>svg{width:38px;height:38px;flex:none;fill:none;stroke:#66806a;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.quick-photo-invite>span{display:grid;gap:5px}.quick-photo-invite strong{font:700 var(--text-ui)/1.3 system-ui,sans-serif}.quick-photo-invite>span>span{color:#617356;font-size:var(--text-ui);font-weight:650}
.contribution-invitation{font-size:var(--text-ui);color:#617356;background:#f0f5e9;padding:14px;border-radius:12px}
.observation-fields{border:0;border-radius:0;padding:20px 0;margin:16px 0;border-top:1px solid var(--line);}.observation-fields p{font-size:var(--text-ui);color:#6a7c65}.observation-fields legend{font-weight:700;padding:0 6px}
.relationship-contribution{min-width:0;margin:18px 0;padding:20px 0;border:0;border-radius:0;background:transparent;border-top:1px solid var(--line);}
.relationship-contribution legend{padding:0 6px;color:#354a21;font-weight:700}
.relationship-contribution select{display:block;width:100%;max-width:100%;min-width:0;min-height:44px;margin:6px 0 14px;padding:10px;border:1px solid #cad6c3;border-radius:9px;background:#fffefa;color:#354a21;font:inherit}
.contribute-relationship-link{display:inline-block;margin:12px 0;color:#354a21;font-size:var(--text-ui);font-weight:700;text-underline-offset:3px}
.contribute-copy>.contribute-relationship-link{display:block;width:fit-content}
.relationship-contribution select:focus-visible{outline:3px solid #8ba16d;outline-offset:2px}
.commercial-contribution{min-width:0;margin:20px 0 16px;padding:20px 0;border:0;border-radius:0;background:transparent;border-top:1px solid var(--line);}
.commercial-contribution legend{padding:0 6px;color:#455446;font-size:var(--text-ui);font-weight:700}
.commercial-contribution .contribute-check{margin-top:0;font-size:var(--text-ui);color:#455446}
.commercial-contribution input[type=checkbox]{flex:none;accent-color:#354a21}
.commercial-contribution .commercial-field-help{margin:7px 0;color:#697160;font-size:var(--text-ui);line-height:1.55}
.commercial-contribution .field{font-size:var(--text-ui)}
.commercial-contribution textarea{display:block;width:100%;min-height:90px;height:auto;resize:vertical;padding:10px 12px;border:1px solid #dfe5dc;border-radius:10px;background:#fff;color:#354a21;font:inherit}
.modal-backdrop .modal{max-height:calc(100dvh - 40px);overflow-y:auto}
.coordinate-inputs{display:grid;grid-template-columns:1fr 1fr;gap:12px}.coordinate-inputs label{font-size:var(--text-ui)}.observation-fields button{padding:9px 13px;border:1px solid #c5d4b9;background:#f5f8ed;border-radius:10px;color:#354a21;margin-top:12px}
@media(max-width:740px){.grouped-results{padding:18px}.discovery-grid{grid-template-columns:1fr}.discovery-group h3,.photo-help-list>header h3{font-size:24px}.discovery-filter-buttons{display:grid;grid-template-columns:1fr;gap:7px}.discovery-filter-buttons button{text-align:left}.coordinate-inputs{grid-template-columns:1fr}}
@media(min-width:741px) and (max-width:1199px){.favorite-collection-list{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:740px){.favorite-collection-list{grid-template-columns:1fr!important}}
@media(max-width:740px){.favorite-status-group{margin:18px 0 24px}.favorite-personal{margin-top:4px;padding:16px 0 0;margin:8px 12px;border-radius:0;background:transparent;border-top:1px solid var(--line);}}
@media(max-width:900px){.workspace[data-view="map"][data-section="favorites"] .favorite-collection .collection-wrap{grid-template-columns:1fr;gap:12px}}

/* Keep labels aligned with their fields; the record count has its own mobile row. */
.heritage-search-heading, .heritage-search-fields { grid-template-columns: minmax(0, 1.45fr) minmax(140px, 1fr); }
.heritage-search-heading { position: relative; margin-bottom: 6px; }
.heritage-search-heading #count { position: absolute; right: 0; top: -5px; }
.heritage-search-heading .heritage-field-label:nth-child(2) { padding-right: 130px; }
.map-toolbar { justify-content: flex-end; }
.map-tools { flex-direction: column; align-items: flex-end; }
.map-tools .map-fullscreen-toggle { order: -1; min-width: 44px; min-height: 44px; }
#resetView { font-size: var(--text-small); }
@media (max-width: 520px) {
  .heritage-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .heritage-search-heading, .heritage-search-fields { display: contents; }
  .heritage-search-heading .heritage-field-label:first-child { grid-column: 1; grid-row: 1; }
  .heritage-search-heading .heritage-field-label:nth-child(2) { grid-column: 1 / -1; grid-row: 3; padding: 8px 0 0; }
  .heritage-search-heading #count { position: static; grid-column: 2; grid-row: 1; }
  .heritage-search-fields .registry-search { grid-column: 1 / -1; grid-row: 2; padding-inline: 12px; }
  .municipality-picker { grid-column: 1 / -1; grid-row: 4; }
}
.show-on-map, .plan-button, .favorite-map-link { font-size: var(--text-ui); min-height: 44px; text-align: left; }
.map-count { right: 60px; }
@media (min-width: 741px) {
  .registry-list .discovery-record { grid-template-columns: minmax(0, 1fr) auto; }
  .registry-list .discovery-record > .show-on-map,
  .registry-list .discovery-record > .plan-button { justify-self: start; min-height: 44px; }
}
