/* Pohyblivý model z Google Earth nad šikmým záberom (earth-model.js, earth-viewer.js). */
.earthLayer{position:absolute;left:0;top:0;width:100%;pointer-events:none;z-index:2}
.earthLayer>*{pointer-events:auto}
.earthOpen{position:absolute;left:1rem;bottom:1rem;display:inline-flex;align-items:center;gap:.45rem;max-width:calc(100% - 2rem);min-height:2.75rem;margin:0;padding:.4rem 1.1rem;border:0;border-radius:var(--r-m);background:var(--ink);color:#fff;font:700 min(var(--fs-b),5vw)/1.2 var(--sans);cursor:pointer}
.earthOpen svg{width:1.15rem;height:1.15rem;flex:none;fill:none;stroke:#ffd644;stroke-width:1.8;stroke-linejoin:round}
@media(hover:hover){.earthOpen:hover,.earthTool:hover{background:var(--hover)}}
.earthOpen:focus-visible,.earthTool:focus-visible{outline:.1875rem solid #fff;outline-offset:-.3rem}
.earthOpen:disabled{cursor:progress;opacity:.85}
.earthOpen[hidden]{display:none}
.earthStatus{position:absolute;left:50%;top:.75rem;transform:translateX(-50%);z-index:3;width:max-content;max-width:88%;margin:0;padding:.45rem .9rem;border-radius:var(--r-m);background:#0e1220e6;color:#fff;text-align:center;font:600 var(--fs-s)/1.35 var(--sans)}
.earthStatus[hidden]{display:none}
.earthStatus .textAction{color:#fff;font:inherit;padding:0 .15rem}
/* Hlásenia pre čítačku (začiatok, koniec, chyba); percentá sú v .earthMeter s role=progressbar. */
.earthLive{position:absolute;width:1px;height:1px;margin:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.earthStage{position:absolute;inset:0;overflow:hidden;background:var(--sky)}
.earthStage[hidden]{display:none}
.earthCanvas{display:block;width:100%;height:100%;touch-action:pan-y;outline:none;cursor:grab}
.earthFull .earthCanvas{touch-action:none}
.earthCanvas:active{cursor:grabbing}
.earthCanvas:focus-visible{box-shadow:inset 0 0 0 .1875rem #ffd644}
.earthTools{position:absolute;top:1rem;right:1rem;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.4rem;max-width:calc(100% - 2rem)}
.earthTool{min-width:2.75rem;min-height:2.75rem;margin:0;padding:0 .8rem;border:0;border-radius:var(--r-m);background:var(--ink);color:#fff;font:700 min(var(--fs-b),5vw)/1.2 var(--sans);cursor:pointer}
.earthZoom{padding:0;font-size:1.25rem;line-height:1}
.earthWord{display:inline-flex;align-items:center;justify-content:center;gap:.45rem}
.earthGlyph{display:none;font-size:1.15rem;line-height:1}
svg.earthGlyph{width:1.2rem;height:1.2rem;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
/* Nápoveda, poznámka o vode a autorstvo v jednom stĺpci dolu: nikdy sa neprekrývajú. */
.earthFoot{position:absolute;left:0;right:0;bottom:0;display:flex;flex-direction:column;align-items:flex-start;gap:.5rem;padding:0 1rem 1rem;pointer-events:none}
.earthHint{max-width:100%;margin:0;padding:.4rem .75rem;border-radius:var(--r-m);background:#0e1220d9;color:#fff;font:600 var(--fs-s)/1.3 var(--sans);pointer-events:none}
.earthMoved .earthHint{display:none}
.earthNoteWater{width:max-content;max-width:100%;margin:0;padding:.4rem .8rem;border-radius:var(--r-m);background:#0b4f7ee8;color:#fff;font:600 var(--fs-s)/1.3 var(--sans)}
.earthNoteWater[hidden]{display:none}
.earthCredit{display:none;align-self:stretch;margin:0 -1rem -1rem;padding:.25rem .6rem;background:#ffffffe6;color:var(--text);font-size:var(--fs-s);line-height:1.35;pointer-events:none}
.earthFull .earthCredit{display:block}
/* Na požiadanie väčšie: cez celú stránku, stránka sama sa nehýbe. */
.earthLayer.earthFull{position:fixed;inset:0;width:auto;height:auto!important;z-index:1000;background:var(--ink)}
.earthFull .earthOpen,.earthFull .earthStatus{display:none}
html.earthNoScroll,html.earthNoScroll body{overflow:hidden}
@media (max-width:520px){
  .earthOpen{left:.6rem;bottom:.6rem}
  .earthFoot{padding:0 .6rem .6rem}
  .earthCredit{margin:0 -.6rem -.6rem}
  .earthTools{top:.6rem;right:.6rem;gap:.3rem}
  .earthTool{padding:0 .6rem}
  .earthWord{padding:0}
  .earthGlyph,svg.earthGlyph{display:block}
  .earthWordText{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .earthFull .earthGlyph{display:none}
  .earthFull .earthWord{padding:0 .6rem}
  .earthFull .earthWordText{position:static;width:auto;height:auto;clip-path:none}
}
/* Cieľ odkazu „Otočiť pozemok v 3D“: fokus vidno len pri klávesnici. */
.threeShot:focus{outline:none}
.threeShot:focus-visible{outline:.1875rem solid var(--ink);outline-offset:.25rem}
/* Tretí pohľad hlavného obrázka (oblique.js + threeSlot). */
.threeShot{margin:0;min-width:0}
.threeShot[hidden],.threeEarth[hidden],.threeOwn[hidden],.threeSources[hidden],.threeNote[hidden]{display:none}
.threeHead{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem 1rem;padding:0 0 .6rem}
.threeHead:empty,.threeHead:not(:has(>:not([hidden]))){display:none}
.threeSources{flex:none}
.threeNote{margin:0;flex:1 1 14rem;font-size:var(--fs-s);line-height:1.4;color:var(--text)}
.earthPoster .hiddenKey,.earthPoster .roofKey{display:inline-flex;align-items:center;gap:.4rem}
.earthPoster .hiddenKey:before{content:'';width:1rem;border-top:3px dashed #e8b700}
.earthPoster .roofKey:before{content:'';width:1.05rem;height:.7rem;border-radius:2px;box-shadow:0 0 0 1px #624617;background:repeating-linear-gradient(135deg,#ffc727 0 4px,#784309 4px 6px)}
.earthPoster.wet .roofKey{display:none}
.earthPoster.dry .waterKey,.earthPoster .roofNote{font-size:var(--fs-s);color:var(--muted)}
.earthPoster.dry .waterKey{visibility:hidden}
.earthPoster figcaption>.photoSwitch{flex:none}
/* Náš model v hlavnom obrázku: plocha drží pomer strán obrázka. */
.threeOwn{padding:0}
.threeOwn .sceneStage{height:auto;aspect-ratio:2;max-height:70vh}
/* Telefón: vyšší rám, aby lišta ovládania a náhľad mapy nezabrali väčšinu modelu. */
@media (max-width:520px){.threeOwn .sceneStage{aspect-ratio:1.2}}
/* Telefón: pohyblivý model dostane vyšší rám než obrázok 2 : 1 (181 px je na otáčanie málo). */
@media (max-width:520px){.threeEarth .earthPoster>img{display:block;width:100%;height:auto;aspect-ratio:1.3;object-fit:cover}}
/* V 3D má model vlastné Sucho / Pri povodni; prepínač pohľadu zboku by bol druhý. */
.shows3d .obliqueControls>.photoSwitch:not(.viewSwitch){display:none}
/* Sekcia nižšie je prázdna, keď sa jej model presunul hore. */
.parcelSpatial:has(#parcelScene:empty){display:none}
@media(forced-colors:active){.earthOpen,.earthTool{border:1px solid ButtonText}}
@media print{.earthLayer{display:none}.threeHead{display:none}}
