/* Public, fictional demo only. Reuses production Søkekart design and geometry unchanged. */
body{background:#f1f3eb}
.shell{max-width:1700px}
.topbar{height:69px;background:#fbfcf7}
.topbar .privacy{background:#e6f2da}
.public-demo-banner{margin:14px clamp(13px,4vw,56px) 19px;padding:14px 19px;display:flex;gap:20px;justify-content:space-between;align-items:center;border:1px solid #b8d3af;border-radius:14px;background:linear-gradient(110deg,#e7f1db,#fafbf5);box-shadow:0 6px 21px #1838240a}
.public-demo-banner>div{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px}
.public-demo-banner strong{font:600 17px/1.2 Georgia,serif;color:#234630}
.public-demo-banner>div>span:last-child{color:#60745c;font-size:12px}
.public-demo-pill{font-size:10px;font-weight:800;letter-spacing:.1em;color:#f9f8ec;background:#2b633f;border-radius:20px;padding:5px 9px}
.public-demo-banner button{border:1px solid #b4c9ad;border-radius:9px;background:#fffdf8;padding:10px 13px;font-size:11px;font-weight:750;color:#29543b;white-space:nowrap}
.public-demo-banner button:hover{background:#eaf2e4}
main{padding:0 clamp(13px,4vw,56px)}
.metrics{margin-bottom:17px}
.metric{padding:13px 16px;box-shadow:0 3px 13px #21402808}
.metric strong{margin-top:5px}
.workspace{grid-template-columns:minmax(290px,345px) minmax(0,1fr);align-items:start}
.controls{position:sticky;top:8px;max-height:calc(100dvh - 30px);overflow-y:auto;scrollbar-width:thin;padding:20px}
.public-sector-tools{border:1px solid #b7d0b2;border-radius:13px;background:#eff5e9;margin:10px 0 16px;padding:0 11px}
.public-sector-tools summary{font-size:13px;font-weight:820;color:#294c35;cursor:pointer;padding:14px 5px}
.public-sector-tools[open] summary{border-bottom:1px solid #cddfc6;margin-bottom:7px}
.public-sector-tools .sector-setup{display:grid;grid-template-columns:1fr;gap:8px;margin:0 0 8px}
.public-sector-tools .sector-select{min-width:0;max-width:none}
.public-sector-tools .sector-select select{width:100%;max-width:100%}
.public-sector-tools .sector-setup .control-label{margin:8px 0 5px}
.public-sector-tools .sector-reset{width:100%}
.public-sector-tools .sector-save-status{font-size:11px;line-height:1.55;margin:10px 0}
.public-sector-tools .sector-adjust{display:grid;grid-template-columns:minmax(0,1fr);padding:10px;gap:7px;margin:9px 0 14px}
.public-sector-tools .sector-adjust label{display:flex;justify-content:space-between;white-space:normal}
.public-sector-tools .sector-adjust input{width:100%;margin:0 0 7px;min-height:17px}
.map-column{box-shadow:0 9px 30px #17382112}
.map-stage{height:min(68vh,720px);min-height:440px}
.basemap-toolbar{flex-wrap:wrap}
.sector-section{margin-top:14px}
.sector-heading{gap:15px}
.sector-heading h2{font-size:25px}
.sector-section .sector-cards{margin-top:18px}
.footer{text-transform:none}
@media(max-width:930px){
  .workspace{grid-template-columns:minmax(245px,300px) minmax(0,1fr)}
  .controls{padding:14px}
  .map-stage{min-height:395px;height:510px}
  .public-demo-banner{margin:10px 13px 14px}
}
@media(max-width:800px){
  .workspace{display:flex;flex-direction:column}
  .controls{position:static;max-height:none;overflow:visible;width:100%}
  .map-column{width:100%;order:-1}
  .map-stage{height:min(59vh,580px);min-height:350px}
  .controls>.layers{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .public-sector-tools .sector-adjust{grid-template-columns:repeat(2,minmax(0,1fr))}
  .public-sector-tools .sector-adjust label{grid-column:auto}
  .public-sector-tools .sector-adjust input{grid-column:auto}
  .public-demo-banner{align-items:flex-start;flex-direction:column;gap:9px}
}
@media(max-width:550px){
  .public-demo-banner{padding:12px}
  .public-demo-banner>div{gap:6px 9px}
  .public-demo-banner>div>span:last-child{font-size:11px}
  .public-demo-banner strong{font-size:16px}
  .map-stage{height:410px;min-height:340px}
  .controls>.layers{grid-template-columns:1fr 1fr;gap:5px}
  .controls>.layers .layer{padding:8px 7px;gap:6px}
  .controls>.layers .layer small{display:none}
  .controls>.layers .layer-icon{width:21px;height:21px}
  .public-sector-tools .sector-adjust{grid-template-columns:minmax(0,1fr)}
  .public-sector-tools .sector-adjust input{margin-bottom:9px}
  .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Luna owns this demo. Make the fictitious-dog identity unmistakable and polished. */
.public-demo-banner{gap:13px;align-items:center;background:linear-gradient(111deg,#e3ecd9 0%,#f9faf3 72%,#edf3e6 100%)}
.public-demo-banner .public-demo-dog{display:grid;place-items:center;flex:0 0 71px;width:71px;height:71px;
 overflow:hidden;background:radial-gradient(circle at 50% 15%,#f6f8ed 0%,#c6d9c1 100%);border:1px solid #c8d9c4;border-radius:13px}
.public-demo-banner .public-demo-dog img{display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom}
.public-demo-banner .public-demo-copy{display:flex;align-items:flex-start;flex:1;flex-direction:column;gap:4px;min-width:240px}
.public-demo-banner .public-demo-copy strong{font:600 21px/1.2 Georgia,serif;letter-spacing:-.015em;color:#20452f}
.public-demo-banner .public-demo-copy>span:not(.public-demo-pill){max-width:830px;font-size:12px;color:#4f6c55}
.public-demo-banner .public-demo-copy>.public-demo-status{font-size:10px!important;color:#73866c!important}
.public-demo-banner .public-demo-pill{align-self:flex-start;font-size:9px;letter-spacing:.13em}
.public-demo-banner>button{margin-left:auto;flex-shrink:0}
@media(max-width:720px){
 .public-demo-banner{flex-direction:row;flex-wrap:wrap;align-items:flex-start}
 .public-demo-banner .public-demo-dog{width:59px;height:59px;flex-basis:59px}
 .public-demo-banner .public-demo-copy{flex:1;min-width:calc(100% - 78px)}
 .public-demo-banner .public-demo-copy strong{font-size:18px}
 .public-demo-banner>button{margin:5px 0 0 auto;width:auto}
}

/* Søkekart 3.0 — additive public Luna modules; never restyle old sector controls. */
.jb-custom-area{margin:15px 0;padding:17px 14px 13px;border:1px solid #b4ceb1;border-radius:14px;
 background:linear-gradient(135deg,#f0f6ec,#fffef7);box-shadow:0 5px 17px #1c462008}
.jb-area-kicker{display:block;font-size:9px;font-weight:850;letter-spacing:.13em;color:#658765}
.jb-custom-area h3{font:normal 23px/1.15 Georgia,serif;margin:6px 0 7px;color:#244a34}
.jb-custom-area>p{margin:0 0 11px;font-size:11px;color:#55725a;line-height:1.55}
.jb-area-actions{display:flex;flex-wrap:wrap;gap:6px}
.jb-area-actions button,.jb-area-bottom button{border:1px solid #cadbc6;border-radius:8px;background:#fffdf8;
 padding:9px 11px;color:#325b3d;font-size:11px;font-weight:770}
.jb-area-actions button:hover,.jb-area-bottom button:hover{background:#e9f1e2}
.jb-area-actions .jb-area-primary{background:#255637;color:white;border-color:#255637}
.jb-area-actions .jb-area-primary:hover{background:#387048}
.jb-area-actions button[disabled]{cursor:default;opacity:.5}
.jb-custom-area .jb-area-notice{min-height:19px;color:#63795e;margin:11px 0;font-size:11px}
.jb-area-list{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.jb-area-list:empty{display:none}
.jb-area-chip{border:1px solid #b5d0b3;border-radius:30px;background:#f3f7ef;padding:7px 10px;
 color:#366048;font-size:11px;font-weight:740}
.jb-area-chip[aria-pressed=true]{background:#285839;color:#fff;border-color:#285839}
.jb-area-results{padding-top:5px}.jb-area-results:empty{display:none}
.jb-area-result-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:8px 0 12px}
.jb-area-result-head strong{font:normal 18px Georgia,serif}
.jb-area-delete{border:1px solid #d8bfad;background:#fff8f4;color:#824f30;
 border-radius:8px;width:29px;height:29px;font-size:18px;font-weight:bold}
.jb-area-stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.jb-area-stat-grid>div{padding:10px;border:1px solid #d6e3d2;border-radius:9px;background:white}
.jb-area-stat-grid strong{display:block;color:#234b32;font:normal 21px Georgia,serif}
.jb-area-stat-grid small{display:block;color:#738571;font-size:10px;margin-top:2px}
.jb-area-bottom{display:flex;justify-content:flex-end;margin-top:10px}
#leafletMap.jb-map-drawing{cursor:crosshair!important}
#leafletMap.jb-map-drawing .leaflet-interactive{cursor:crosshair!important}
#leafletMap.jb-map-drawing .leaflet-container{cursor:crosshair!important}
.jb-weather-example{margin:14px 0 3px;padding:13px;border:1px solid #d5e1d0;border-radius:12px;background:#f6f9ef}
.jb-weather-example-badge{display:inline-block;padding:4px 7px;border-radius:5px;background:#d6e7cb;
 color:#2a6240;font-size:9px;font-weight:900;letter-spacing:.08em}
.jb-weather-example h4{margin:8px 0 11px;font:normal 19px Georgia,serif;color:#244830}
.jb-weather-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.jb-weather-grid>div{background:#fff;border:1px solid #e0e8d9;border-radius:8px;padding:9px}
.jb-weather-grid strong{display:block;font-size:13px;color:#254e36}
.jb-weather-grid small{display:block;margin-top:2px;font-size:10px;color:#738771}
.jb-weather-example p{margin:10px 0 0!important;font-size:10px!important;line-height:1.6!important;color:#72846b!important}
#publicTourStart{border:1px solid #98b49d;background:#fdfdf7;color:#285738;border-radius:9px;
 padding:10px 13px;font-weight:800;font-size:11px;white-space:nowrap}
#publicTourStart:hover{background:#eaf3e8}
.jb-tour-card{position:fixed;right:max(18px,calc((100vw - 1650px)/2));bottom:20px;z-index:3500;
 width:min(410px,calc(100vw - 30px));max-height:85dvh;overflow:auto;
 background:#fffef8;color:#203e2a;border:1px solid #c7d9bf;border-radius:16px;
 box-shadow:0 16px 66px #11281750;padding:21px;font-family:Arial,sans-serif}
.jb-tour-card[hidden]{display:none}
.jb-tour-top{display:flex;align-items:center;justify-content:space-between}
.jb-tour-marker{font-size:10px;color:#6b8c68;letter-spacing:.12em;font-weight:850}
.jb-tour-close{border:1px solid #d7e0ce;background:transparent;border-radius:50%;
 color:#456847;width:32px;height:32px;font-size:20px;line-height:1}
.jb-tour-card h3{font:normal 25px/1.16 Georgia,serif;margin:12px 0;color:#224931}
.jb-tour-card p{font-size:13px;color:#5d705b;line-height:1.65;margin:0 0 13px}
.jb-tour-progress{font-size:10px;font-weight:800;letter-spacing:.08em;color:#6b876c}
.jb-tour-footer{display:flex;gap:7px;flex-wrap:wrap;margin-top:13px}
.jb-tour-footer button{flex:1;border-radius:8px;border:1px solid #cdddc7;padding:10px 9px;
 background:#fffdf9;color:#30583b;font-size:12px;font-weight:780}
.jb-tour-footer .jb-tour-action{background:#e9f2e3}
.jb-tour-footer .jb-tour-next{background:#255439;color:white;border-color:#255439}
.jb-tour-footer button:disabled{opacity:.4;cursor:default}
.jb-tour-target{outline:3px solid #d5a755!important;outline-offset:4px!important}
@media(max-width:720px){
 .jb-custom-area{padding:14px;margin:11px 0}
 #publicTourStart{order:4}
 .jb-tour-card{right:8px;bottom:8px;padding:17px;width:calc(100vw - 16px);border-radius:13px}
 .jb-tour-card h3{font-size:22px}
 .jb-tour-footer{gap:5px}
 .jb-tour-footer button{font-size:11px;padding:9px 7px}
}

/* Public Luna demo: make real observation markers reliably clickable even
 * when sector-number / drag handles overlap them. These small 24px targets
 * stay above map editing handles; actual user/customer data are untouched.
 */
#leafletMap .sokekart-observation-marker{
 z-index:4200!important;
 pointer-events:auto!important;
 cursor:pointer!important;
}
#leafletMap .sokekart-observation-marker:focus-visible{
 outline:3px solid #d8a457;
 outline-offset:3px;
}

/* Marketing card: expose the TRUE fictional Søkekart map and real sector
 * geometry, not a parallel hand-drawn SVG. Only active for ?marketingPreview=1.
 * The public full-screen demo and all customer maps keep their original UI. */
html.jb-marketing-preview,
html.jb-marketing-preview body{width:100%;height:100%;margin:0;overflow:hidden;background:#d6dfcf}
html.jb-marketing-preview .shell{width:100%;max-width:none!important;height:100%;min-height:0;overflow:hidden;margin:0;padding:0}
html.jb-marketing-preview .shell>header,
html.jb-marketing-preview #publicDemoBanner,
html.jb-marketing-preview .metrics,
html.jb-marketing-preview .controls,
html.jb-marketing-preview .underneath,
html.jb-marketing-preview .sector-section,
html.jb-marketing-preview .comparison,
html.jb-marketing-preview .footer,
html.jb-marketing-preview .map-head,
html.jb-marketing-preview .basemap-toolbar,
html.jb-marketing-preview .map-footer,
html.jb-marketing-preview .trip-zoom,
html.jb-marketing-preview .map-service-notice,
html.jb-marketing-preview .map-tools,
html.jb-marketing-preview .map-tile-status,
html.jb-marketing-preview .map-diagnostic,
html.jb-marketing-preview .map-popup,
html.jb-marketing-preview .map-consent,
html.jb-marketing-preview .map-compass,
html.jb-marketing-preview .map-legend,
html.jb-marketing-preview .map-watermark,
html.jb-marketing-preview .map-empty,
html.jb-marketing-preview .legend{display:none!important}
html.jb-marketing-preview main{width:100%!important;height:100%!important;min-height:0!important;padding:0!important;margin:0!important}
html.jb-marketing-preview .workspace{display:block!important;width:100%!important;height:100%!important;min-height:0!important;margin:0!important;padding:0!important;gap:0!important}
html.jb-marketing-preview .map-column{display:block!important;width:100%!important;height:100%!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important}
html.jb-marketing-preview .map-stage{display:block!important;position:relative;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important;margin:0!important;padding:0!important;overflow:hidden;border:0!important;border-radius:0!important;background:#d0ddcc!important}
html.jb-marketing-preview #leafletMap.leaflet-map-root{border-radius:0!important;inset:0}
html.jb-marketing-preview .leaflet-control-container{display:none!important}


/* Sector comparison mini-maps: actual sector polygons reprojected north-up. */
.sector-card{min-width:0}
.sector-card-content{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:9px 0 12px}
.sector-card-details{flex:1;min-width:0;align-self:center}
.sector-card-content h3{margin:0 0 8px;line-height:1.12;overflow-wrap:anywhere}
.sector-card-content .sector-main{line-height:1.15}
.sector-card-content .sector-main small{display:block;margin-top:4px;font-size:10px;line-height:1.2}
.sector-mapmini{flex:0 0 112px;width:112px;display:block;min-width:0;border:1px solid #bdcdbb;border-radius:9px;overflow:hidden;background:#edf2e8;box-shadow:0 3px 9px #24462e19}
.sector-mapmini svg{display:block;width:100%;height:auto;aspect-ratio:124/88}
.sector-mini-ground{fill:#e6ecdf}
.sector-mini-contours{fill:none;stroke:#c5d3bf;stroke-width:1.8;stroke-dasharray:2 3}
.sector-mini-other{fill:#f5f8f1;fill-opacity:.7;stroke:#93ae91;stroke-width:1.7;stroke-linejoin:round}
.sector-mini-active{fill:#3c8058;fill-opacity:.92;stroke:#215d3a;stroke-width:2.7;stroke-linejoin:round}
.sector-mini-dot{fill:#ecce89;stroke:#173d29;stroke-width:1.6}
.sector-mini-index{fill:#1b3e2b;font-size:13px;font-family:system-ui,sans-serif;font-weight:850;text-anchor:middle}
.sector-mini-north{font-size:9px;font-family:system-ui,sans-serif;font-weight:850;fill:#557661;text-anchor:middle}
.sector-card[aria-pressed="true"] .sector-mapmini{border-color:#2c7147;box-shadow:0 0 0 2px #a6c89f,0 6px 15px #275f3238}
.sector-card:hover .sector-mapmini{border-color:#679876}
@media(max-width:640px){
 .sector-card-content{gap:6px}
 .sector-mapmini{flex-basis:86px;width:86px}
 .sector-card-content h3{font-size:16px}
 .sector-card-content .sector-main{font-size:23px}
}
@media(max-width:380px){
 .sector-mapmini{flex-basis:70px;width:70px}
 .sector-card-content .sector-main{font-size:20px}
}


/* Choose hunting ground above map: owner, signed-in customer and fictional Luna */
.map-area-picker{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(195px,305px);align-items:center;gap:12px;
 padding:12px 14px;margin:0 0 12px;background:linear-gradient(105deg,#e6f0e2,#f5f8f0);
 border:1px solid #aec9aa;border-radius:12px;box-shadow:0 2px 10px #254d3010}
.map-area-picker-copy{display:grid;gap:3px;min-width:0}
.map-area-picker-copy strong{font-size:13px;color:#214c32;font-weight:850}
.map-area-picker-copy small{font-size:11px;color:#637a69;line-height:1.4}
.map-area-select-label{font-size:11px;font-weight:800;color:#315e42;white-space:nowrap}
.map-area-picker select{width:100%;min-width:0;min-height:42px;border:1px solid #96b59a;border-radius:8px;
 background:#fffef9;color:#244b32;font:750 12px system-ui,sans-serif;padding:9px 12px;outline-offset:2px}
.map-area-picker select:focus-visible{outline:3px solid #a1c7a6}
.map-area-picker select:disabled{opacity:.65;cursor:progress}
.sector-card .sector-card-content{margin-bottom:6px}
.sector-preview-heading{display:block;font-size:10px;letter-spacing:.015em;font-weight:800;color:#3c6c4c;
 margin:12px 0 7px;padding:0;line-height:1.35}
.sector-map-slot{display:block;width:100%;min-height:0}
.sector-map-slot .sector-mapmini{display:block;position:relative;flex:none;width:100%;min-width:0;max-width:none;
 border-radius:10px;border:1px solid #a9c2a6;overflow:hidden;background:#e3ecd9;box-shadow:0 3px 10px #173d2621}
.sector-map-slot .sector-mapmini svg{display:block;width:100%;height:auto;aspect-ratio:320/165}
.sector-map-slot .sector-mini-credit{font-size:9px;bottom:5px;left:6px}
.sector-card:hover .sector-preview-heading{color:#245b38}
.sector-card:focus-visible{outline:3px solid #6d9e74;outline-offset:3px}
@media(max-width:1150px){
 .map-area-picker{grid-template-columns:minmax(0,1fr) minmax(190px,265px)}
 .map-area-select-label{display:none}
}
@media(max-width:650px){
 .map-area-picker{grid-template-columns:1fr;gap:8px;padding:12px}
 .map-area-select-label{display:block}
 .map-area-picker select{min-height:44px}
 .sector-map-slot .sector-mapmini svg{aspect-ratio:320/165}
}

html.jb-marketing-preview .map-area-picker{display:none!important}


/* The full Luna explorer owns one scrollbar. The standalone Søkekart demo
   keeps its original sticky/scrollable control panel. */
html.luna-page-scroll,html.luna-page-scroll body{
 height:auto!important;min-height:0!important;overflow-x:hidden!important;overflow-y:auto!important;
}
html.luna-page-scroll .shell,html.luna-page-scroll main,
html.luna-page-scroll #sokekartWorkspace{
 height:auto!important;max-height:none!important;overflow:visible!important;
}
html.luna-page-scroll .controls{
 position:static!important;top:auto!important;height:auto!important;
 max-height:none!important;overflow:visible!important;
}


/* Mobile native scroll: do not programmatically touch-scroll multiple frames.
   Stop scroll anchoring from jerking the page while map cards finish loading. */
html.luna-page-scroll,html.luna-page-scroll body{scroll-behavior:auto!important;overscroll-behavior-y:auto!important}
html.luna-page-scroll .shell{overflow-anchor:none}
@media(max-width:800px){
 html.luna-page-scroll .controls{overflow-y:visible!important}
}

/* iPhone Search Map uses its OWN first-level page; no nested scroll,
   scrollBy or iframe resize. Keep an always-visible return to Luna. */
html.luna-mobile-tool,html.luna-mobile-tool body{
 height:auto!important;min-height:100%!important;overflow-y:auto!important;
 scroll-behavior:auto!important;overscroll-behavior-y:auto!important
}
html.luna-mobile-tool .topbar{
 position:sticky;top:0;z-index:110;min-height:62px;height:auto;
 padding:10px 12px;box-shadow:0 4px 15px #153c2524
}
html.luna-mobile-tool .mini-link{
 background:#e9d9ad;border:1px solid #a49157;padding:10px 12px;
 border-radius:9px;font-weight:800;color:#234631;line-height:1.3;
 min-height:42px;text-decoration:none
}
html.luna-mobile-tool main,html.luna-mobile-tool .shell,
html.luna-mobile-tool .workspace{overflow-y:visible!important;max-height:none!important}
@media(max-width:800px){
 html.luna-mobile-tool .topbar .brand{min-width:0;flex:1}
 html.luna-mobile-tool .topbar .head-actions{flex-shrink:0;min-width:0}
 html.luna-mobile-tool .topbar .privacy{display:none}
 html.luna-mobile-tool .mini-link{display:inline-flex;align-items:center;max-width:195px;font-size:11px}
 html.luna-mobile-tool .controls{position:static!important;max-height:none!important;overflow:visible!important}
}

/* Luna full explorer: iframe is a rendering surface, NOT a second scroll view.
   The parent sizes this frame to the whole original sector tool so iPhone
   swipes use the browser's main document normally. */
html.luna-page-scroll.luna-frame-embedded,
html.luna-page-scroll.luna-frame-embedded body{
 height:auto!important;min-height:0!important;
 overflow-y:hidden!important;overflow-x:hidden!important;
 overscroll-behavior-y:auto!important;
 scroll-behavior:auto!important;
}
html.luna-page-scroll.luna-frame-embedded .shell,
html.luna-page-scroll.luna-frame-embedded main,
html.luna-page-scroll.luna-frame-embedded .workspace{
 height:auto!important;max-height:none!important;overflow:visible!important;
}
html.luna-page-scroll.luna-frame-embedded .controls{
 position:static!important;max-height:none!important;height:auto!important;
 overflow:visible!important;overscroll-behavior-y:auto!important;
}
html.luna-page-scroll.luna-frame-embedded #searchMap{
 touch-action:pan-y!important;overscroll-behavior-y:auto!important;
}
@media(max-width:800px){
 html.luna-page-scroll.luna-frame-embedded .map-stage,
 html.luna-page-scroll.luna-frame-embedded .map-column{touch-action:pan-y}
}
