.orchard-map-root{display:grid;gap:20px}
.map-toolbar{order:0}.map-upload-form{order:1}.map-layout{order:2}.map-location-panel{order:3}.map-layers-panel{order:4}.map-align-panel{order:5}
.map-toolbar{display:flex;align-items:end;justify-content:space-between;gap:18px;flex-wrap:wrap}
.map-background-select{min-width:min(100%,340px);margin:0}
.map-background-select select{min-height:56px;font-size:17px}
.map-toolbar-actions{display:flex;gap:12px;flex-wrap:wrap}
.map-toolbar-actions .button{min-height:56px;font-size:16px}
.map-toolbar-actions .button:disabled{opacity:.48;cursor:not-allowed}
.map-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(315px,.8fr);align-items:start;gap:20px}
.map-stage,.map-side{padding:24px;min-width:0}
.map-stage-heading,.map-side-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:18px}
.map-stage-heading h2,.map-side-heading h2{margin:2px 0 0;font:500 30px "Newsreader",serif;color:var(--olive)}
.map-stage-heading .eyebrow,.map-side-heading .eyebrow{margin:0}
.map-count,.map-side-heading>span{border-radius:30px;background:var(--sage-wash);padding:7px 12px;color:var(--olive);font-size:15px;font-weight:700}
.map-canvas{width:100%;height:610px;border-radius:14px;background:#e6eadc;overflow:hidden;border:1px solid #cbd5c4;z-index:0;touch-action:none}
.map-canvas-shell{position:relative}
.map-edit-overlay{position:absolute;inset:16px 16px 18px;z-index:1100;display:flex;flex-direction:column;align-items:center;justify-content:space-between;pointer-events:none}
.map-mode-badge{max-width:min(90%,420px);padding:10px 18px;border:1px solid #d9e4d2;border-radius:14px;background:#fffefaed;box-shadow:0 5px 18px #1e311e25;text-align:center;color:var(--olive)}
.map-mode-badge strong,.map-mode-badge small{display:block}
.map-mode-badge strong{font-size:17px}.map-mode-badge small{font-size:14px;color:var(--muted);margin-top:2px}
.map-edit-actions{display:flex;gap:10px;max-width:100%;padding:10px;border:1px solid #d9e4d2;border-radius:16px;background:#fffefaf2;box-shadow:0 6px 24px #1e311e30;pointer-events:auto}
.map-edit-actions .button{min-height:56px;font-size:16px;white-space:nowrap}
.map-edit-actions .button:disabled{opacity:.48;cursor:not-allowed}
.map-canvas.leaflet-container{font-family:inherit}
.map-canvas .leaflet-control-zoom{border:0;box-shadow:0 3px 18px #25371d24}
.map-canvas .leaflet-control-zoom a{width:52px;height:52px;line-height:48px;font-size:28px;color:var(--olive);border-color:var(--line)}
.map-marker-wrap{background:none;border:0}
.map-marker{height:60px;min-width:64px;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:16px 16px 16px 4px;background:var(--olive);color:white;border:3px solid white;box-shadow:0 5px 16px #1e311e66;transform:rotate(-7deg);cursor:pointer}
.map-marker>*{transform:rotate(7deg)}
.map-marker>span{font-size:23px;line-height:21px}
.map-marker strong{font-size:14px;line-height:20px;white-space:nowrap}
.map-marker.needs-look{background:#9b6d32}
.map-marker.selected{background:#f5bd59;color:#243524;border-color:#243524;transform:rotate(0deg) scale(1.12)}
.map-marker.selected>*{transform:none}
.map-status,.map-demo-note{margin:14px 0 0;color:var(--olive);font-size:16px}
.map-demo-note{color:var(--muted)}
.map-side{display:grid;gap:16px}
.map-side-heading{margin:0}
.map-side .field{margin:0}
.map-directory-filters{display:grid;grid-template-columns:1.2fr .8fr;gap:10px}
.map-directory-filters select{min-height:56px;font-size:16px}
.map-side .field input{min-height:56px;font-size:17px}
.map-tree-list{display:grid;gap:8px;max-height:505px;overflow:auto;padding-right:4px}
.map-tree-row{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:11px;background:#fbfaf6;min-height:73px;padding:5px 7px}
.map-tree-row[hidden]{display:none}
.map-tree-row>button:first-child{display:flex;align-items:center;gap:10px;flex:1;min-width:0;border:0;background:none;color:var(--olive);text-align:left;cursor:pointer;padding:5px}
.map-tree-row strong,.map-tree-row small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.map-tree-row strong{font-size:17px}.map-tree-row small{font-size:14px;color:var(--muted)}
.map-tree-dot{display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:11px;background:#dce7d4;color:var(--olive);font-size:22px}
.map-tree-dot.unplaced{background:#eeeae2;color:#979488}
.map-row-place{min-width:62px;min-height:44px;padding:7px;border:1px solid var(--line);border-radius:9px;background:white;color:var(--olive);font-size:14px;font-weight:700;cursor:pointer}
.map-selected-tree{padding:18px;border:1px solid #bad2b1;border-radius:12px;background:#eff5e9}
.map-selected-tree .eyebrow{margin:0}.map-selected-tree h3{margin:5px 0 2px;font:500 27px "Newsreader",serif;color:var(--olive)}
.map-selected-tree p:not(.eyebrow){font-size:16px;margin:0 0 12px;color:var(--muted)}
.map-selected-tree>div{display:flex;gap:9px;flex-wrap:wrap}.map-selected-tree .button{min-height:48px;font-size:15px;padding:10px 13px}
.map-selected-edit{margin-top:10px}
.map-delete-background{justify-self:start;border:0;background:none;color:#9b382e;font-size:15px;font-weight:700;text-decoration:underline;cursor:pointer}
.map-upload-form{display:grid;gap:16px;padding:24px}
.map-upload-form h2{font:500 29px "Newsreader",serif;margin:0 0 4px;color:var(--olive)}
.map-upload-form p{font-size:16px;color:var(--muted);margin:0}
.map-upload-fields{display:grid;grid-template-columns:1fr 1fr 1.3fr;gap:14px}
.map-upload-fields .field{margin:0}
.map-upload-fields input,.map-upload-fields select{min-height:56px;font-size:16px}
.map-upload-actions{display:flex;gap:10px;flex-wrap:wrap}
.map-error{padding:35px;border:1px solid var(--line);border-radius:14px;background:white}
@media(max-width:1300px){.map-layout{grid-template-columns:1fr}.map-side{grid-template-columns:1fr 1fr}.map-side-heading,.map-directory-filters,.map-selected-tree,.map-delete-background{grid-column:1/-1}.map-tree-list{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:340px}.map-canvas{height:540px}}
@media(max-width:850px){.map-upload-fields{grid-template-columns:1fr 1fr}.map-upload-fields .field:last-child{grid-column:1/-1}}
@media(max-width:700px){.map-directory-filters{grid-template-columns:1fr}
.map-stage,.map-side,.map-upload-form{padding:17px}.map-canvas{height:440px}.map-stage-heading h2,.map-side-heading h2{font-size:26px}.map-toolbar-actions{width:100%}.map-toolbar-actions .button{flex:1;min-width:0;font-size:15px;padding:9px}.map-tree-list{grid-template-columns:1fr;max-height:370px}.map-upload-fields{grid-template-columns:1fr}.map-upload-fields .field:last-child{grid-column:auto}.map-background-select{width:100%}}
@media(max-width:700px){.map-edit-overlay{inset:10px 8px 10px}.map-edit-actions{width:100%;gap:5px;padding:7px}.map-edit-actions .button{flex:1;min-width:0;padding:8px 5px;font-size:13px;white-space:normal;line-height:1.2}.map-mode-badge{max-width:90%;padding:8px 12px}.map-mode-badge strong{font-size:15px}.map-mode-badge small{font-size:12px}}
@media(max-width:400px){.map-canvas{height:370px}.map-count{font-size:13px}}
:lang(el) .map-stage-heading h2,:lang(el) .map-side-heading h2,:lang(el) .map-selected-tree h3,:lang(el) .map-upload-form h2{font-family:"Noto Sans",sans-serif}
.map-layers-panel,.map-align-panel{padding:22px;display:grid;gap:16px}
.map-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.map-panel-heading .eyebrow{margin:0 0 3px}
.map-panel-heading h2{font:500 29px "Newsreader",serif;color:var(--olive);margin:0}
.map-panel-heading .button{min-height:52px;font-size:16px}
.map-panel-heading .button:disabled{opacity:.48;cursor:not-allowed}
.map-layer-toggles{display:flex;gap:10px;flex-wrap:wrap}
.map-layer-toggle,.map-anchor{display:flex;align-items:center;gap:8px;min-height:48px;border:1px solid var(--line);border-radius:10px;padding:8px 13px;background:#f9faf4;color:var(--olive);font-size:16px;font-weight:700;cursor:pointer}
.map-layer-toggle input,.map-anchor input{width:21px;height:21px;accent-color:var(--olive);flex:none}
.map-feature-editor{display:grid;grid-template-columns:minmax(150px,.7fr) minmax(230px,1.2fr) auto;align-items:end;gap:12px}
.map-feature-editor .field,.map-align-controls .field{margin:0}
.map-feature-editor input,.map-feature-editor select,.map-align-controls select{min-height:54px;font-size:16px}
.map-feature-actions,.map-align-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.map-feature-actions .button,.map-align-actions .button{min-height:52px;font-size:15px}
.map-feature-actions .button:disabled,.map-align-actions .button:disabled{opacity:.48;cursor:not-allowed}
.map-point-count{font-size:15px;font-weight:700;color:var(--olive)}
.map-tool-help,.map-empty-layer,.map-aligned-note{margin:0;font-size:16px;color:var(--muted)}
.map-aligned-note{color:var(--olive);font-weight:700}
.map-feature-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(275px,1fr));gap:8px;max-height:240px;overflow:auto}
.map-feature-row{display:flex;align-items:center;gap:10px;padding:8px;border:1px solid var(--line);border-radius:10px;background:#fafbf7;min-height:62px}
.map-feature-row.selected{border-color:var(--olive);background:#edf4e7}
.map-feature-row>div{min-width:0;flex:1}
.map-feature-row strong,.map-feature-row small{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.map-feature-row strong{font-size:16px;color:var(--olive)}
.map-feature-row small{font-size:13px;color:var(--muted)}
.map-feature-row button{border:0;background:none;color:var(--olive);font-size:14px;font-weight:700;cursor:pointer;min-height:42px;padding:5px}
.map-feature-row button:last-child{color:#a04736}
.map-feature-row button:disabled{opacity:.4;cursor:not-allowed}
.map-feature-dot{width:15px;height:15px;border-radius:4px;flex:none;background:#61814e}
.map-feature-dot.map-feature-row{background:#426b85}
.map-feature-path{background:#af8050}.map-feature-gate{background:#a34e42}.map-feature-irrigation{background:#367d9c}
.map-align-controls{display:grid;grid-template-columns:minmax(240px,.7fr) minmax(300px,1.3fr);gap:15px;align-items:start}
.map-anchor-list{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.map-anchor-list>strong{width:100%;font-size:16px;color:var(--olive)}
.map-anchor-list>p{margin:0;color:var(--muted);font-size:15px}
.map-align-actions>span{color:var(--muted);font-size:15px}
.map-marker.aligned{background:#527d88}
.map-marker.preview{background:#527d88;border-style:dashed;opacity:.75}
:lang(el) .map-panel-heading h2{font-family:"Noto Sans",sans-serif}
@media(max-width:1150px){.map-feature-editor{grid-template-columns:1fr 1fr}.map-feature-actions{grid-column:1/-1}}
@media(max-width:700px){.map-layers-panel,.map-align-panel{padding:17px}.map-feature-editor,.map-align-controls{grid-template-columns:1fr}.map-feature-actions{grid-column:auto}.map-feature-list{grid-template-columns:1fr}.map-layer-toggle{flex:1;min-width:130px}.map-panel-heading .button{width:100%}}

.map-location-panel{padding:22px;display:grid;gap:16px}
.map-location-panel .map-panel-heading h2{font-size:29px}
.map-location-panel .map-panel-heading .button{min-height:52px;font-size:16px}
.map-location-saved{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;border:1px solid #bad2b1;border-radius:12px;background:#eff5e9;padding:16px 18px}
.map-location-saved strong,.map-location-saved span{display:block}
.map-location-saved strong{font-size:19px;color:var(--olive)}
.map-location-saved span{font-size:16px;color:var(--muted);font-variant-numeric:tabular-nums}
.map-location-saved .button{min-height:50px}
.map-location-empty{margin:0;color:var(--muted);font-size:16px}
.map-location-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.map-location-tool{display:grid;align-content:start;gap:12px;border:1px solid var(--line);border-radius:14px;background:#fafbf7;padding:18px;min-width:0}
.map-location-tool h3{margin:0;color:var(--olive);font-size:20px}
.map-location-tool p{margin:0;color:var(--muted);font-size:15px;line-height:1.45}
.map-location-tool form{display:grid;gap:12px}
.map-location-tool .field{margin:0}
.map-location-tool input{min-height:52px;font-size:16px;max-width:100%}
.map-location-tool .button{min-height:52px;justify-self:start;font-size:16px}
.map-location-tool a:not(.button){font-size:16px;color:var(--olive);font-weight:700}
.map-location-tool .form-error{min-height:20px;color:#a14436}
:lang(el) .map-location-tool h3{font-family:"Noto Sans",sans-serif}
@media(max-width:1100px){.map-location-tools{grid-template-columns:1fr 1fr}.map-location-tool:last-child{grid-column:1/-1}}
@media(max-width:700px){.map-location-panel{padding:17px}.map-location-tools{grid-template-columns:1fr}.map-location-tool:last-child{grid-column:auto}.map-location-saved .button{width:100%}.map-location-panel .map-panel-heading .button{width:100%}}

.map-location-tool .map-location-preview{min-height:26px;color:var(--olive);font-weight:700}
.map-feature-boundary{background:#496e47}
.map-source-note{margin:14px 0 0;color:var(--olive);font-size:16px;line-height:1.45;background:#eef5e8;border:1px solid #c3d5b7;border-radius:10px;padding:12px 15px}

.map-source-note{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.map-source-note p{margin:0;flex:1;min-width:240px}.map-source-note .button{min-height:50px;font-size:16px}
/* Dense orchard markers: small at overview scale; IDs appear on selection or close zoom. */
.map-marker.compact{position:relative;box-sizing:border-box;display:grid;place-items:center;width:24px;height:24px;min-width:0;margin:10px;border-radius:50%;border:2px solid #fff;transform:none;box-shadow:0 2px 6px #1e311e66}
.map-marker.compact>*{transform:none}.map-marker.compact>span{font-size:12px;line-height:1}
.map-marker.compact strong{display:none;position:absolute;z-index:1;left:20px;top:-6px;min-width:max-content;padding:5px 8px;border:2px solid white;border-radius:7px;background:var(--olive);color:white;box-shadow:0 2px 8px #1e311e4a;font-size:13px;line-height:18px}
.map-marker.compact.selected{background:#f5bd59;color:#243524;border-color:#243524}
.map-marker.compact.selected strong{background:#f5bd59;color:#243524;border-color:#243524}
.map-marker.compact.selected strong,.show-tree-labels .map-marker.compact strong{display:block}
.map-marker.compact.preview{border-style:dashed;opacity:.78}
.map-marker.compact.aligned{background:#527d88}
.map-dimensions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px;padding:11px 13px;border:1px solid #bfd3b4;border-radius:12px;background:#eef5e8;color:var(--olive)}
.map-dimensions span{display:grid;gap:2px;min-width:112px;padding-right:12px;border-right:1px solid #c7d9bc}.map-dimensions small{font-size:13px;color:var(--muted)}.map-dimensions strong{font-size:20px}.map-dimensions em{font-size:13px;font-style:normal;color:var(--muted)}
.map-layout-tool,.map-blank-form{padding:22px;display:grid;gap:13px}.map-layout-tool>p,.map-blank-form p{font-size:16px;color:var(--muted);margin:0}.map-layout-tool .map-panel-heading h2,.map-blank-form h2{font:500 28px "Newsreader",serif;color:var(--olive);margin:0}
.map-layout-form,.map-blank-form{grid-template-columns:repeat(2,minmax(150px,1fr)) auto;align-items:end}.map-layout-form{display:grid;gap:12px}.map-blank-form>div{grid-column:1/-1}.map-layout-form .field,.map-blank-form .field{margin:0}.map-layout-form input,.map-layout-form select,.map-blank-form input{min-height:54px;font-size:17px}.map-layout-form .button,.map-blank-form .button{min-height:54px;font-size:16px}.map-layout-form .form-error,.map-blank-form .form-error{grid-column:1/-1;color:#a14436;margin:0}.map-layout-replace{display:flex;align-items:center;gap:10px;grid-column:1/-1;font-size:16px;color:var(--olive)}.map-layout-replace input{width:23px;height:23px;min-height:0;accent-color:var(--olive)}
@media(max-width:800px){.map-layout-form,.map-blank-form{grid-template-columns:1fr 1fr}.map-layout-form .button,.map-blank-form .button{grid-column:1/-1}}
@media(max-width:550px){.map-layout-form,.map-blank-form{grid-template-columns:1fr}}
.map-layout-spacing{grid-column:1/-1;font-size:16px;font-weight:700;color:var(--olive);margin:0;padding:10px 13px;background:#eef5e8;border-radius:9px}

.map-blank-form{order:1}.map-layout-tool{order:4}.map-layers-panel{order:5}.map-align-panel{order:6}

.map-action-error,.map-render-error{margin:0;padding:14px 17px;border:2px solid #b85642;border-radius:12px;background:#fff2ed;color:#7c3022;font-size:17px;font-weight:700;line-height:1.4}
.map-action-error[hidden]{display:none}.map-render-error{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.map-render-error .button{min-height:48px}
