/* V13 – 3D Mars elevation-mode controls. Keeps the original globe/canvas and drag events. */
.planet-tools .elevation-toggle{
  border:1px solid rgba(109,207,234,.65);
  background:linear-gradient(115deg,rgba(15,54,76,.72),rgba(13,31,46,.94));
  color:#a7f2fc;
  box-shadow:inset 0 1px 0 rgba(183,236,255,.11);
  min-width:112px;
  font-weight:700;
}
.planet-tools .elevation-toggle:hover,
.planet-tools .elevation-toggle.is-active{
  color:#061c2c;
  border-color:#8decf7;
  background:linear-gradient(115deg,#6de2f0,#b9ffe6);
  box-shadow:0 0 22px rgba(69,208,239,.36),inset 0 1px 0 rgba(255,255,255,.42);
}
.planet-tools .elev-icon{font-size:17px;line-height:1;letter-spacing:0;}
.elevation-legend{
 position:absolute;bottom:clamp(169px,18vh,201px);left:52.5%;transform:translateX(-50%);
 z-index:10;width:374px;max-width:calc(100vw - 44px);padding:13px 15px 12px;
 border:1px solid rgba(109,209,227,.54);border-radius:12px;
 background:linear-gradient(160deg,rgba(8,23,36,.94),rgba(9,16,29,.95));
 box-shadow:0 16px 45px rgba(0,0,0,.64),0 0 45px rgba(34,163,191,.15),inset 0 1px 0 rgba(208,250,255,.12);
 backdrop-filter:blur(16px);pointer-events:auto;
 animation:elev-appear .3s cubic-bezier(.19,.82,.21,1) both;
}
@keyframes elev-appear{from{opacity:0;transform:translate(-50%,9px) scale(.96)}to{opacity:1;transform:translate(-50%,0) scale(1)}}
.elev-legend-top{display:flex;gap:10px;align-items:center;justify-content:space-between;color:#d6faff;margin-bottom:10px}
.elev-legend-top strong{font:700 10px 'Space Grotesk',Arial,sans-serif;letter-spacing:2px;flex:1}
.elev-led{width:7px;height:7px;flex:none;background:#67deec;box-shadow:0 0 14px rgba(87,235,255,.8);border-radius:50%}
.elev-legend-top button{border:0;background:rgba(255,255,255,.075);color:#bde9f1;border-radius:5px;height:22px;width:25px;font-size:11px;line-height:20px}
.elev-legend-top button:hover{background:rgba(255,255,255,.15)}
.elev-gradient{height:15px;width:100%;border-radius:4px;border:1px solid rgba(255,255,255,.23);
 background:linear-gradient(to right,#272155 0%,#263a84 12%,#166cae 22%,#34c3db 32%,#49be69 42%,#d0d653 51%,#f19a35 62%,#da4930 72%,#844d4a 81%,#c4c1be 91%,#fff 100%);
 box-shadow:0 0 17px rgba(39,181,217,.18)}
.elev-ticks{display:flex;justify-content:space-between;gap:0;font:700 9px 'Space Grotesk',Arial,sans-serif;color:#d4e9f0;letter-spacing:.3px;margin:7px 0 11px;font-variant-numeric:tabular-nums}
.elev-source{font-size:10px;color:#98bdca;line-height:1.55;font-weight:600;letter-spacing:.3px;margin-bottom:6px}
.elevation-legend a{display:inline-block;font-size:9px;font-weight:700;letter-spacing:.7px;color:#7bdbe7;text-decoration:underline;text-underline-offset:3px}
.elevation-legend a:hover{color:#e2f9ff}
body.elevation-active .planet-aura{
 background:radial-gradient(circle at 50% 50%,transparent 48%,rgba(63,174,216,.21) 60%,transparent 74%);
 box-shadow:0 0 52px rgba(54,177,213,.18);
}
body.elevation-active .planet-target{border-color:rgba(66,204,245,.18);box-shadow:0 0 34px rgba(63,184,222,.17)}
body.elevation-active .globe-hint{opacity:0}
/* This is a deliberately labeled offline visualization, not numeric MOLA elevation. */
.planet-css-fallback.using-elevation{
 background-image:radial-gradient(circle at 31% 24%,rgba(255,255,255,.28),transparent 39%),url('assets/mars-relief-schematic.jpg');
 background-size:auto,auto 100%;
 box-shadow:inset -85px -44px 100px rgba(3,11,29,.95),0 0 82px rgba(38,166,220,.28);
}
[lang="ar"] .elevation-toggle,[lang="ar"] .elev-legend-top strong,[lang="ar"] .elev-source,[lang="ar"] .elevation-legend a{font-family:'Cairo',Arial,sans-serif;letter-spacing:0}
[lang="ar"] .elevation-legend{text-align:right;direction:rtl}
[lang="ar"] .elev-ticks{direction:ltr}
@media (max-width:1450px){
 .planet-tools .elevation-toggle{min-width:93px;padding:0 6px;font-size:9px;letter-spacing:.3px}
 .elevation-legend{bottom:clamp(171px,18.6vh,204px)}
}
@media (max-width:900px){
 .elevation-legend{left:50%;bottom:155px;width:320px}
 .planet-tools .elevation-toggle{min-width:85px;padding:0 5px}
}
@media (max-width:760px){
 .planet-tools .elevation-toggle{height:32px;font-size:9px}
 .planet-tools .elev-icon{font-size:13px}
 .elevation-legend{top:445px;bottom:auto;width:min(350px,92vw);z-index:14;max-width:none}
 .elevation-legend .elev-source{font-size:9px}
}
@media (prefers-reduced-motion:reduce){.elevation-legend{animation:none}}
