/* Hunting + Trails layer groups */
.hunt-panel .hunt-blurb{margin:6px 0 4px;color:#b9cfdc}
.hunt-disclaimer{font-size:10.5px;color:#ffd8a8;background:#3a2a12;border:1px solid #7a5418;border-radius:6px;padding:5px 7px;margin:6px 0}
.hunt-state{margin:2px 0 6px;color:#9fb8c7}
.hunt-cat>summary{display:flex;align-items:center;gap:6px;list-style:none}.hunt-cat>summary::-webkit-details-marker{display:none}
.hunt-cat>summary::before{content:'▸';color:#65d0c8;font-size:10px;width:10px}.hunt-cat[open]>summary::before{content:'▾'}
.hunt-cat>summary input{width:auto;margin:0;accent-color:#65d0c8}.hunt-cat-name{flex:1}
.hunt-cat-swatch{width:14px;height:10px;border-radius:2px;border:1px solid #fff5;flex:0 0 auto}
.hunt-cat-swatch.uses{background:linear-gradient(90deg,#c92a2a 0 20%,#f76707 20% 40%,#ae3ec9 40% 60%,#2f9e44 60% 80%,#1971c2 80%)}
.hunt-cat.hunt-unavailable>summary{opacity:.6}.hunt-gap{color:#ffc078;margin:2px 0 2px 16px}.hunt-gap:empty{display:none}
.hunt-cat-legend{margin:2px 0 4px 16px}
.hunt-line-swatch{height:4px!important;border:0!important;border-radius:2px}.hunt-line-swatch.dash{background-image:repeating-linear-gradient(90deg,transparent 0 3px,#fff8 3px 5px)}
.hunt-row.hunt-other-state{opacity:.55}.hunt-row .hunt-st{font-size:9px;font-weight:700;color:#0a1622;background:#93e1dc;border-radius:3px;padding:0 3px;flex:0 0 auto}
.hunt-panel .hz-row>label{display:flex;align-items:center;gap:6px;justify-content:flex-start;text-align:left;font-size:11px;padding:4px 2px 4px 14px}
.hunt-panel .hz-row>label input[type=checkbox]{width:auto;flex:0 0 auto;margin:0}.hunt-panel .hz-name{flex:1 1 auto;min-width:0}
.hunt-panel .hz-row>label a{flex:0 0 auto;font-size:10px}.hunt-panel input.hz-opacity{padding:0;margin:2px 0;border:0;background:transparent}
.hunt-actions{display:flex;align-items:center;gap:8px;margin:8px 0 2px;flex-wrap:wrap}
.hunt-popup .maplibregl-popup-content{padding:8px 10px;max-height:58vh;overflow:auto;font-size:12px;color:#14202b}
.hunt-pop-hit{border-bottom:1px solid #e3e8ec;padding:4px 0 6px}.hunt-pop-hit:last-of-type{border-bottom:0}
.hunt-pop-cat{font-size:10px;color:#5c6b77;text-transform:uppercase;letter-spacing:.02em}
.hunt-pop table{border-collapse:collapse;margin:3px 0;width:100%}.hunt-pop td{padding:1px 4px;vertical-align:top;font-size:11px}.hunt-pop td:first-child{color:#5c6b77;white-space:nowrap;width:1%}
.hunt-pop-sw{display:inline-block;width:14px;height:4px;border-radius:2px;margin-right:5px;vertical-align:middle}
.hunt-pop-disc{font-size:10px;color:#7a4a00;background:#fff4e0;border-radius:4px;padding:4px 6px;margin:6px 0 0}
.hunt-pop-err{font-size:10px;color:#b42318}.hunt-pop-sel{margin-top:4px}
.parcel-hunting .hunt-disc-inline{color:#b7791f}
.hunt-export{max-width:560px;width:calc(100vw - 24px);border:1px solid #34556b;border-radius:12px;background:#0f2433;color:#dae6ee;padding:0}
.hunt-export::backdrop{background:#0008}.hunt-ex-form{padding:12px 14px;display:flex;flex-direction:column;gap:8px}
.hunt-ex-head{display:flex;justify-content:space-between;align-items:center}.hunt-ex-head h3{margin:0;font-size:16px}
.hunt-export fieldset{border:1px solid #34556b;border-radius:8px;padding:6px 10px;margin:0}.hunt-export legend{font-size:12px;font-weight:700;color:#93e1dc;padding:0 4px}
.hunt-ex-scope label{display:flex;gap:6px;align-items:flex-start;font-size:12px;margin:3px 0}.hunt-ex-scope input{width:auto;margin:2px 0 0}
.hunt-ex-sel{list-style:none;margin:4px 0;padding:0;max-height:120px;overflow:auto}.hunt-ex-sel li{display:flex;align-items:center;gap:6px;font-size:11px;padding:2px 0}.hunt-ex-sel li span:nth-child(2){flex:1}
.hunt-ex-fmts{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0}
.hunt-ex-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px 10px}.hunt-ex-grid label{display:flex;flex-direction:column;font-size:11px;gap:2px}
.hunt-ex-grid select,.hunt-ex-grid input{font-size:12px;padding:4px 6px;margin:0}.hunt-ex-check{flex-direction:row!important;align-items:center;gap:6px!important}.hunt-ex-check input{width:auto}
.hunt-ex-title{grid-column:1/-1}.hunt-ex-print{margin-top:6px}
.hunt-ex-result{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.hunt-ex-result a{text-decoration:none}
.hunt-print-frame{width:100%;height:340px;border:1px solid #34556b;border-radius:6px;background:#fff}
.hunt-ex-disc{color:#ffc078}
@media (max-width:760px){.hunt-ex-grid{grid-template-columns:1fr}.hunt-print-frame{display:none}.hunt-export{max-height:92vh;overflow:auto}}

/* phone: show the popup as a card pinned under the header, above the bottom sheet and the tool rail */
.maplibregl-popup.hunt-popup.hunt-sheet{position:fixed!important;transform:none!important;left:8px!important;right:8px!important;top:calc(env(safe-area-inset-top,0px) + 72px)!important;bottom:auto!important;max-width:none!important;z-index:2147483000}
.hunt-popup.hunt-sheet .maplibregl-popup-tip{display:none}
.hunt-popup.hunt-sheet .maplibregl-popup-content{max-height:calc(100dvh - 72px - 230px);box-shadow:0 6px 24px rgba(0,0,0,.45);border-radius:10px}
.hunt-popup.hunt-sheet .maplibregl-popup-close-button{font-size:22px;width:36px;height:36px}

/* posted land: orange diagonal hatch (matches ND G&F service renderer) */
.hunt-cat-swatch.hatch,.hz-swatch.hatch{background:repeating-linear-gradient(45deg,var(--hc,#ff7800) 0 2px,transparent 2px 5px),repeating-linear-gradient(-45deg,var(--hc,#ff7800) 0 2px,transparent 2px 5px)!important;border:1px solid var(--hc,#ff7800)}
.hunt-pop-posted{border-left:3px solid #ff7800;padding-left:6px}
.hunt-pop-note{margin:4px 0}

/* Hunting mode: quick "essentials" button + popup contact / regulation links */
.hunt-quick{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;margin:.35rem 0 .5rem}
.hunt-quick .hunt-quick-msg{flex:1 1 100%}
.hunt-lp-first > .hunt-panel > summary{font-weight:700}
.hunt-pop-contact{margin:.3rem 0 0}
.hunt-pop-links{margin:.25rem 0 0;line-height:1.5}
.hunt-pop-links a{white-space:nowrap}
/* phone landscape (body.ga-land): the hunting popup becomes a right-hand card between the search bar and the map
   tool buttons instead of a full-width sheet that would cover the whole short map */
body.ga-land .maplibregl-popup.hunt-popup.hunt-sheet{left:auto!important;right:calc(172px + env(safe-area-inset-right,0px))!important;top:calc(var(--ga-top,44px) + 54px)!important;width:min(340px,40vw)}
body.ga-land .hunt-popup.hunt-sheet .maplibregl-popup-content{max-height:calc(100dvh - var(--ga-top,44px) - 112px)}
