.n3dr-wrapper{position:relative;width:100%;min-height:520px;background:#111;overflow:hidden;border-radius:18px;box-shadow:0 18px 50px rgba(0,0,0,.25);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.n3dr-map{position:absolute;inset:0 0 154px 0}.n3dr-route-overlay{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none}.n3dr-map .maplibregl-marker{z-index:3}.n3dr-panel{position:absolute;left:18px;top:18px;z-index:5;background:rgba(255,255,255,.92);backdrop-filter:blur(12px);border-radius:14px;padding:12px 14px;box-shadow:0 8px 26px rgba(0,0,0,.2);max-width:min(600px,calc(100% - 36px))}.n3dr-title{font-weight:750;margin-bottom:8px}.n3dr-stats{display:flex;flex-wrap:wrap;gap:8px 14px;font-size:14px;margin-bottom:10px}.n3dr-fly,.n3dr-download{display:inline-flex;align-items:center;gap:6px;border:0;border-radius:999px;padding:8px 13px;margin:0 6px 6px 0;background:#111;color:#fff!important;text-decoration:none;font-size:13px;cursor:pointer}.n3dr-download{background:#f1f1f1;color:#111!important}.n3dr-speed{display:inline-flex;background:#f3f3f3;border-radius:999px;padding:3px;margin:0 6px 6px 0;vertical-align:middle}.n3dr-speed button{border:0;background:transparent;border-radius:999px;padding:6px 9px;font-size:12px;cursor:pointer}.n3dr-speed button.is-active{background:#111;color:#fff}.n3dr-profile-wrap{position:absolute;left:0;right:0;bottom:0;height:154px;z-index:4;background:rgba(255,255,255,.96);border-top:1px solid rgba(0,0,0,.12);touch-action:pan-y}.n3dr-profile{width:100%;height:154px;display:block;cursor:crosshair}.n3dr-tooltip{position:absolute;display:none;pointer-events:none;z-index:10;background:rgba(20,20,20,.95);color:#fff;border-radius:7px;padding:7px 9px;font-size:12px;line-height:1.35;transform:translate(-50%,-110%);white-space:nowrap}.n3dr-marker{width:18px;height:18px;border-radius:50%;background:#fff;border:4px solid #00d5ff;box-shadow:0 4px 16px rgba(0,0,0,.35)}.n3dr-poi{width:24px;height:24px;border-radius:50%;background:#fff;border:3px solid #ffcc00;box-shadow:0 5px 18px rgba(0,0,0,.35)}.maplibregl-popup-content{border-radius:12px;padding:12px 14px;box-shadow:0 10px 35px rgba(0,0,0,.25)}@media(max-width:700px){.n3dr-wrapper{border-radius:0}.n3dr-map{inset:0 0 138px 0}.n3dr-profile-wrap,.n3dr-profile{height:138px}.n3dr-panel{left:10px;right:10px;top:10px;padding:10px}.n3dr-stats{font-size:12px}.n3dr-fly,.n3dr-download{font-size:12px;padding:7px 10px}.n3dr-speed button{font-size:11px;padding:6px 8px}}

/* v1.0 mobile refinements */
@media (max-width: 700px){
  .n3dr-wrapper{
    min-height: 560px;
    height: min(78vh, 680px) !important;
    border-radius: 16px;
    box-shadow: 0 10px 32px rgba(0,0,0,.18);
  }
  .n3dr-map{ inset: 0 0 128px 0; }
  .n3dr-profile-wrap,
  .n3dr-profile{ height:128px; }
  .n3dr-panel{
    left: 12px;
    right: auto;
    top: 12px;
    width: calc(100% - 88px); /* leave space for MapTiler controls */
    max-width: 380px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255,255,255,.88);
  }
  .n3dr-title{
    font-size: 17px;
    margin-bottom: 7px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .n3dr-stats{
    gap: 6px 10px;
    font-size: 13px;
    line-height: 1.25;
    margin-bottom: 8px;
  }
  .n3dr-fly,
  .n3dr-download{
    min-height: 42px;
    padding: 10px 13px;
    font-size: 14px;
    margin-bottom: 0;
  }
  .n3dr-fly{ font-weight: 750; }
  .n3dr-download{
    background: rgba(255,255,255,.72);
  }
  .n3dr-speed{
    display: none; /* keep mobile clean; Normal speed remains active */
  }
  .maplibregl-ctrl-top-right{
    top: 10px !important;
    right: 10px !important;
  }
  .maplibregl-ctrl-group button{
    width: 34px;
    height: 34px;
  }
  .n3dr-tooltip{
    font-size: 12px;
    max-width: 170px;
    white-space: normal;
  }
  .n3dr-marker{
    width: 20px;
    height: 20px;
    border-width: 4px;
  }
}

@media (max-width: 430px){
  .n3dr-wrapper{
    height: 640px !important;
    min-height: 560px;
  }
  .n3dr-panel{
    width: calc(100% - 76px);
    padding: 10px;
  }
  .n3dr-stats span:nth-child(3){
    display:none; /* hide max altitude on very narrow screens */
  }
  .n3dr-fly,
  .n3dr-download{
    font-size: 13px;
    padding: 9px 11px;
  }
  .n3dr-profile-wrap,
  .n3dr-profile{ height:116px; }
  .n3dr-map{ inset: 0 0 116px 0; }
}


/* v1.1 design refinements: Erlebnis-Modi */
.n3dr-panel{
  border: 1px solid rgba(255,255,255,.5);
}
.n3dr-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
}
.n3dr-fly{
  background:#0f4f5c;
  color:#fff!important;
  font-weight:800;
  letter-spacing:-.01em;
  min-height:44px;
  padding:11px 18px;
  box-shadow:0 8px 18px rgba(15,79,92,.22);
}
.n3dr-fly:hover{
  background:#0b3f49;
}
.n3dr-download{
  min-height:44px;
  padding:11px 16px;
  background:rgba(255,255,255,.58);
  color:#171717!important;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.04);
}
.n3dr-speed{
  background:rgba(255,255,255,.58);
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.045);
  padding:4px;
  gap:2px;
}
.n3dr-speed button{
  color:#111;
  font-weight:700;
  font-size:13px;
  padding:9px 12px;
  transition:background .18s ease,color .18s ease,transform .18s ease;
}
.n3dr-speed button:hover{
  background:rgba(15,79,92,.08);
}
.n3dr-speed button.is-active{
  background:#0f4f5c;
  color:#fff;
  box-shadow:0 5px 12px rgba(15,79,92,.22);
}

@media (max-width: 700px){
  .n3dr-actions{
    gap:8px;
  }
  .n3dr-fly,
  .n3dr-download{
    min-height:40px;
    padding:9px 12px;
  }
  .n3dr-speed{
    display:flex;
    order:3;
    width:100%;
    margin-top:2px;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .n3dr-speed::-webkit-scrollbar{display:none;}
  .n3dr-speed button{
    flex:1 0 auto;
    font-size:12px;
    padding:8px 9px;
    white-space:nowrap;
  }
}

@media (max-width: 430px){
  .n3dr-speed button{
    font-size:11px;
    padding:8px 7px;
  }
  .n3dr-fly,
  .n3dr-download{
    font-size:12px;
  }
}

/* v1.2: cleaner flight speed dropdown */
.n3dr-speed-select{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:0 14px;
  margin:0 6px 6px 0;
  border-radius:999px;
  background:rgba(255,255,255,.62);
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.045);
  color:#555;
  font-size:13px;
  font-weight:650;
  vertical-align:middle;
}
.n3dr-speed-select span{white-space:nowrap;}
.n3dr-speed-select select{
  appearance:none;
  -webkit-appearance:none;
  border:0;
  outline:0;
  border-radius:999px;
  background:#0f4f5c;
  color:#fff;
  font:inherit;
  font-weight:750;
  padding:9px 34px 9px 14px;
  cursor:pointer;
  box-shadow:0 6px 14px rgba(15,79,92,.22);
  background-image:linear-gradient(45deg,transparent 50%,#fff 50%),linear-gradient(135deg,#fff 50%,transparent 50%);
  background-position:calc(100% - 18px) 52%,calc(100% - 13px) 52%;
  background-size:5px 5px,5px 5px;
  background-repeat:no-repeat;
}
.n3dr-speed-select select:focus{box-shadow:0 0 0 3px rgba(15,79,92,.18),0 6px 14px rgba(15,79,92,.22);}
@media (max-width:700px){
  .n3dr-speed-select{
    order:3;
    width:auto;
    min-height:40px;
    padding:0 10px;
    gap:8px;
  }
  .n3dr-speed-select select{padding:8px 32px 8px 12px;}
}
@media (max-width:430px){
  .n3dr-speed-select{font-size:12px;}
}

/* v1.4: walking time stat */
.n3dr-stats [data-stat="duration"]{font-weight:650;color:#555;white-space:nowrap;}

/* v1.5.1: tour duration modes */
.n3dr-tourmode{
  display:inline-flex;
  gap:3px;
  padding:4px;
  margin:2px 0 8px;
  border-radius:999px;
  background:rgba(255,255,255,.62);
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.055);
}
.n3dr-tourmode button{
  border:0;
  background:transparent;
  border-radius:999px;
  padding:8px 13px;
  color:#222;
  font-size:13px;
  font-weight:750;
  cursor:pointer;
  line-height:1;
}
.n3dr-tourmode button.is-active{
  background:#0f4f5c;
  color:#fff;
  box-shadow:0 5px 12px rgba(15,79,92,.20);
}
.n3dr-hint{
  margin:-2px 0 10px;
  color:rgba(0,0,0,.52);
  font-size:12px;
  line-height:1.25;
}
.n3dr-stats [data-stat="duration"]{
  color:#0f4f5c;
  font-weight:800;
}
@media(max-width:700px){
  .n3dr-tourmode{width:100%;box-sizing:border-box;margin-bottom:6px;}
  .n3dr-tourmode button{flex:1;padding:9px 8px;font-size:12px;}
  .n3dr-hint{font-size:11px;margin-bottom:8px;}
}

/* v1.6.1: cleaner collapsible info button */
.n3dr-collapse-toggle{
  position:absolute;
  top:12px;
  right:12px;
  z-index:8;
  border:0;
  border-radius:999px;
  width:36px;
  height:36px;
  min-width:36px;
  padding:0;
  background:rgba(255,255,255,.78);
  color:#0f4f5c;
  font-weight:850;
  font-size:22px;
  line-height:36px;
  cursor:pointer;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.06),0 5px 14px rgba(0,0,0,.12);
}
.n3dr-panel{transition:width .22s ease,max-width .22s ease,padding .22s ease,background .22s ease,box-shadow .22s ease,border-color .22s ease;}
.n3dr-panel.is-collapsed{
  width:46px!important;
  height:46px!important;
  min-width:46px!important;
  max-width:46px!important;
  padding:0!important;
  border-radius:999px!important;
  background:transparent!important;
  border-color:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
.n3dr-panel.is-collapsed .n3dr-title,
.n3dr-panel.is-collapsed .n3dr-stats,
.n3dr-panel.is-collapsed .n3dr-tourmode,
.n3dr-panel.is-collapsed .n3dr-hint,
.n3dr-panel.is-collapsed .n3dr-actions{
  display:none!important;
}
.n3dr-panel.is-collapsed .n3dr-collapse-toggle{
  position:static;
  display:flex;
  align-items:center;
  justify-content:center;
  width:46px;
  height:46px;
  min-width:46px;
  line-height:46px;
  color:#fff;
  background:#0f4f5c;
  font-family:Georgia,serif;
  font-style:italic;
  font-size:27px;
  font-weight:700;
  box-shadow:0 10px 24px rgba(15,79,92,.28);
}
@media(max-width:700px){
  .n3dr-collapse-toggle{top:10px;right:10px;width:34px;height:34px;min-width:34px;line-height:34px;font-size:21px;}
  .n3dr-panel.is-collapsed{width:44px!important;height:44px!important;min-width:44px!important;max-width:44px!important;}
  .n3dr-panel.is-collapsed .n3dr-collapse-toggle{width:44px;height:44px;min-width:44px;line-height:44px;font-size:26px;}
}


/* v1.6.2 clean info toggle */
.n3dr-panel{
  overflow:visible!important;
}
.n3dr-collapse-toggle{
  position:absolute!important;
  top:12px!important;
  right:12px!important;
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  padding:0!important;
  border:1px solid rgba(15,79,92,.12)!important;
  border-radius:50%!important;
  background:rgba(255,255,255,.86)!important;
  color:#0f4f5c!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  font-style:normal!important;
  font-size:19px!important;
  font-weight:850!important;
  line-height:1!important;
  box-shadow:0 6px 16px rgba(0,0,0,.14)!important;
  backdrop-filter:blur(8px)!important;
  cursor:pointer!important;
}
.n3dr-panel:not(.is-collapsed){
  padding-right:58px!important;
}
.n3dr-panel:not(.is-collapsed) .n3dr-collapse-toggle{
  font-size:22px!important;
  background:rgba(255,255,255,.68)!important;
}
.n3dr-panel.is-collapsed{
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  max-width:44px!important;
  padding:0!important;
  border:0!important;
  border-radius:999px!important;
  background:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
.n3dr-panel.is-collapsed .n3dr-collapse-toggle{
  position:absolute!important;
  inset:0!important;
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  background:rgba(255,255,255,.92)!important;
  color:#0f4f5c!important;
  border:1px solid rgba(15,79,92,.12)!important;
  font-family:Georgia,serif!important;
  font-style:italic!important;
  font-size:25px!important;
  font-weight:700!important;
  box-shadow:0 8px 22px rgba(0,0,0,.16)!important;
}
@media(max-width:700px){
  .n3dr-panel:not(.is-collapsed){padding-right:52px!important;}
  .n3dr-collapse-toggle{top:10px!important;right:10px!important;width:32px!important;height:32px!important;min-width:32px!important;font-size:18px!important;}
  .n3dr-panel.is-collapsed{width:42px!important;height:42px!important;min-width:42px!important;max-width:42px!important;}
  .n3dr-panel.is-collapsed .n3dr-collapse-toggle{width:42px!important;height:42px!important;min-width:42px!important;font-size:24px!important;}
}


/* v1.6.3 default collapsed polish */
.n3dr-panel.is-collapsed{
  left:18px!important;
  top:18px!important;
}
.n3dr-panel.is-collapsed .n3dr-collapse-toggle{
  transform:none!important;
}
@media(max-width:700px){
  .n3dr-panel.is-collapsed{left:14px!important;top:14px!important;}
}


/* v2.0 story highlights */
.n3dr-story{
  position:absolute;
  left:50%;
  bottom:174px;
  z-index:7;
  width:min(420px,calc(100% - 32px));
  transform:translate(-50%,16px);
  opacity:0;
  pointer-events:none;
  background:rgba(255,255,255,.94);
  color:#111;
  border:1px solid rgba(15,79,92,.10);
  border-radius:18px;
  box-shadow:0 16px 44px rgba(0,0,0,.22);
  backdrop-filter:blur(14px);
  padding:14px 16px;
  transition:opacity .28s ease,transform .28s ease;
}
.n3dr-story.is-visible{opacity:1;transform:translate(-50%,0);}
.n3dr-story strong{display:block;font-size:16px;line-height:1.2;margin-bottom:4px;color:#0f4f5c;}
.n3dr-story span{display:block;font-size:13px;line-height:1.35;color:#333;}
.n3dr-highlight{
  width:28px;height:28px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:#fff;color:#0f4f5c;border:3px solid #0f4f5c;
  font-size:12px;font-weight:850;
  box-shadow:0 8px 22px rgba(0,0,0,.28);
}
.n3dr-highlight-summit{border-color:#d64b23;color:#d64b23;}
.n3dr-highlight-steep{border-color:#111;color:#111;}
.n3dr-highlight-view{border-color:#f2b705;color:#8a6200;}
@media(max-width:700px){
  .n3dr-story{bottom:146px;width:calc(100% - 28px);padding:12px 14px;border-radius:16px;}
  .n3dr-story strong{font-size:15px;}
  .n3dr-story span{font-size:12px;}
  .n3dr-highlight{width:26px;height:26px;font-size:11px;border-width:2px;}
}


/* v2.0.2 popup polish - clean MapLibre popups */
.maplibregl-popup{
  z-index:8;
  max-width:min(360px,calc(100vw - 40px))!important;
}
.maplibregl-popup-content{
  position:relative!important;
  padding:18px 56px 18px 20px!important;
  border-radius:18px!important;
  background:rgba(255,255,255,.96)!important;
  color:#333!important;
  box-shadow:0 18px 48px rgba(0,0,0,.26)!important;
  border:1px solid rgba(15,79,92,.10)!important;
  backdrop-filter:blur(14px);
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  font-size:15px!important;
  line-height:1.45!important;
  overflow:visible!important;
}
.maplibregl-popup-content strong{
  display:block;
  color:#4f4f4f;
  font-size:18px;
  line-height:1.25;
  font-weight:800;
  margin:0 0 8px;
}
.maplibregl-popup-content small{
  display:block;
  margin-top:10px;
  color:#666;
  font-size:13px;
  font-weight:650;
}
.maplibregl-popup-close-button{
  position:absolute!important;
  top:12px!important;
  right:12px!important;
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  min-height:34px!important;
  border:0!important;
  border-radius:50%!important;
  background:#0f4f5c!important;
  color:#fff!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0!important;
  line-height:1!important;
  font-size:0!important;
  box-shadow:0 8px 22px rgba(15,79,92,.22)!important;
  cursor:pointer!important;
  transform:none!important;
}
.maplibregl-popup-close-button::before{
  content:"×";
  font-size:20px;
  line-height:1;
  font-weight:750;
  color:#fff;
  transform:translateY(-1px);
}
.maplibregl-popup-tip{
  border-top-color:rgba(255,255,255,.96)!important;
  border-bottom-color:rgba(255,255,255,.96)!important;
}
@media(max-width:700px){
  .maplibregl-popup{max-width:calc(100vw - 28px)!important;}
  .maplibregl-popup-content{padding:16px 52px 16px 16px!important;border-radius:16px!important;font-size:14px!important;}
  .maplibregl-popup-content strong{font-size:16px;}
  .maplibregl-popup-close-button{top:10px!important;right:10px!important;width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;}
}

/* Defend the MapTiler/MapLibre navigation controls against site-wide button styles
   (Elementor/global theme often paints all <button> with brand color + no icon). */
.n3dr-wrapper .maplibregl-ctrl-group{
  background:#fff!important;
  border-radius:12px!important;
  border:0!important;
  overflow:hidden!important;
  box-shadow:0 6px 18px rgba(0,0,0,.16)!important;
}
.n3dr-wrapper .maplibregl-ctrl-group:not(:empty){
  background:#fff!important;
}
.n3dr-wrapper .maplibregl-ctrl button,
.n3dr-wrapper .maplibregl-ctrl-group button,
.n3dr-wrapper .maplibregl-ctrl-group:not(:empty) button{
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
  min-height:38px!important;
  padding:0!important;
  margin:0!important;
  background-color:#fff!important;
  background-image:none!important;
  color:#111!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-size:0!important;
  letter-spacing:normal!important;
  text-transform:none!important;
  opacity:1!important;
  transform:none!important;
}
.n3dr-wrapper .maplibregl-ctrl-group button + button{
  border-top:1px solid rgba(0,0,0,.08)!important;
}
.n3dr-wrapper .maplibregl-ctrl button:hover,
.n3dr-wrapper .maplibregl-ctrl-group button:hover{
  background-color:#f4f6f6!important;
  color:#111!important;
}
.n3dr-wrapper .maplibregl-ctrl button .maplibregl-ctrl-icon,
.n3dr-wrapper .maplibregl-ctrl-group button .maplibregl-ctrl-icon{
  display:block!important;
  width:24px!important;
  height:24px!important;
  background-color:transparent!important;
  background-repeat:no-repeat!important;
  background-position:center!important;
  background-size:22px 22px!important;
  opacity:1!important;
}
.n3dr-wrapper .maplibregl-ctrl-attrib{
  background:rgba(255,255,255,.86)!important;
}
.n3dr-wrapper .maplibregl-ctrl-attrib a,
.n3dr-wrapper .maplibregl-ctrl-attrib button{
  color:#111!important;
  background:transparent!important;
}
