:root{--bg:#04101e;--nav:#061727;--line:rgba(92,172,219,.27);--glass:linear-gradient(145deg,rgba(13,47,71,.94),rgba(5,25,44,.98));--ink:#f0f8ff;--muted:#a9c7dc;--cyan:#11b9fa;--blue:#0d8fdf;--orange:#ffaf39;--card:#082238;--shadow:0 16px 45px rgba(0,0,0,.21)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--ink);font:15px/1.35 "Segoe UI",Inter,Arial,sans-serif}button,select,input{font:inherit}button{cursor:pointer}button:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid #6ddfff;outline-offset:2px} .app-shell{min-height:100vh;background:radial-gradient(ellipse at 50% -40px,rgba(5,69,105,.45),transparent 520px),var(--bg)} .masthead{height:78px;position:relative;display:flex;justify-content:space-between;align-items:center;padding:8px 32px 8px 26px;overflow:hidden;background:linear-gradient(90deg,#031726 3%,#061d31 62%,#020d17)}.masthead-glow{position:absolute;left:34%;right:8%;height:115px;top:-77px;transform:rotate(-4deg);border-radius:50%;box-shadow:0 13px 15px rgba(0,165,252,.65),0 20px 40px rgba(0,125,220,.28);background:radial-gradient(ellipse at 46% 90%,rgba(9,88,136,.6),transparent 65%);pointer-events:none}.brand,.brand-right{position:relative;z-index:1;display:flex;align-items:center}.brand{gap:12px}.brand-icon{width:76px;height:62px;flex:none}.brand-text h1{font-size:clamp(23px,2.15vw,38px);line-height:1.05;letter-spacing:-1.2px;margin:0;font-weight:750}.brand-text h1 span{color:#56cbff}.brand-text p{font-size:clamp(10px,.96vw,16px);color:#afe0f8;margin:5px 0 0}.brand-text p b{color:#72d9fd;font-size:17px;font-weight:400;padding:0 6px}.brand-right{font-size:23px;font-weight:750;letter-spacing:-.7px;gap:9px}.nav-bar{height:50px;margin:0 10px 14px;border:1px solid #22516a;border-radius:12px;display:flex;align-items:stretch;overflow:hidden;background:linear-gradient(180deg,#091e32,#061727);box-shadow:var(--shadow)}.nav-link{color:#f0f7fc;border:0;background:transparent;display:flex;align-items:center;gap:11px;padding:0 24px;font-size:15px;font-weight:600;white-space:nowrap}.nav-link:hover,.nav-link.active{background:linear-gradient(180deg,#154a6e,#075988);color:#71dcff}.nav-link.active{border-bottom:3px solid #14c1fb}.nav-ico{font-size:25px;font-weight:650}.nav-spacer{flex:1}.lang-switch,.moon{background:none;border:0;color:#e3eff8}.lang-switch{padding:0 13px;white-space:nowrap}.lang-switch span{color:#8faac3}.moon{margin:6px 9px 6px 0;padding:0 12px;border:1px solid #38617a;border-radius:10px;font-size:25px}.content{padding:0 10px 6px}.main-grid{display:grid;grid-template-columns: minmax(0,1.45fr) minmax(485px,1fr);gap:14px;align-items:stretch}.glass{background:var(--glass);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}.map-panel{overflow:hidden;display:flex;flex-direction:column;min-height:620px}.pollutant-bar{display:flex;align-items:center;gap:7px;padding:10px 13px;min-height:58px;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#245a7d transparent;white-space:nowrap}.bar-label{font-weight:700;margin-right:10px}.param-btn{padding:8px 12px;border:1px solid #2a5976;border-radius:9px;background:linear-gradient(180deg,#17415f,#082a46);color:#eaf7fd;white-space:nowrap;font-weight:680}.param-btn .pi{font-size:16px;margin-right:4px}.param-btn:hover{background:#1a5172}.param-btn.active{border-color:#61d4fc;background:linear-gradient(#237fe1,#08b0f2);color:white;box-shadow:0 0 0 2px rgba(42,180,252,.12)}.map-viewport{position:relative;flex:1;min-height:410px;overflow:hidden;background:linear-gradient(140deg,#0d2640,#073758 50%,#0d2237)}.map-scene{position:absolute;inset:0;transform-origin:center center;will-change:transform;transition:transform .24s ease}.map-scene canvas{position:absolute;inset:0;width:100%;height:100%;image-rendering:auto;filter:saturate(1.25) contrast(1.08)}.coastline{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none;filter:drop-shadow(0 1px 3px rgba(1,14,33,.45))}.markers-layer{position:absolute;inset:0;pointer-events:none}.map-marker{position:absolute;transform:translate(-50%,-50%);pointer-events:auto;display:flex;align-items:center;flex-direction:column;gap:3px;background:transparent;border:none;color:#fff;text-shadow:0 2px 5px #00121f,0 0 3px #000,-1px -1px 0 #12334d,1px 1px 0 #12334d;font-size:15px;font-weight:700;padding:2px}.marker-dot{display:block;border:2px solid #d1ffff;border-radius:50%;width:9px;height:9px;background:#008cff;box-shadow:0 0 8px #00d8f5}.map-marker.selected{color:#b9f6ff;font-size:16px}.map-marker.selected .marker-dot{background:#ffc049;width:12px;height:12px;box-shadow:0 0 16px #ffb232}.map-controls{position:absolute;left:19px;top:22px;display:flex;flex-direction:column;gap:0}.map-controls button{width:42px;height:42px;background:#06233e;border:1px solid #317a98;color:#fff;font-size:27px;font-weight:500}.map-controls button:first-child{border-radius:9px 9px 0 0}.map-controls button:nth-child(2){border-radius:0 0 9px 9px}.map-controls button:last-child{margin-top:12px;border-radius:9px}.map-legend{position:absolute;right:13px;top:55px;padding:13px 13px 11px;background:rgba(1,21,40,.88);border-radius:13px;min-width:125px;max-height:295px}.map-legend strong{display:block;font-size:13px;margin-bottom:10px;font-weight:600}.scale-body{display:flex;gap:8px;height:214px}.gradient-scale{width:17px;height:100%;border-radius:5px;background:linear-gradient(to top,#0050da 0%,#04b8d6 20%,#54da74 39%,#f0e52b 56%,#ff8b16 72%,#e43130 87%,#e50085 100%)}.scale-labels{display:flex;flex-direction:column;justify-content:space-between;font-size:11px;color:#fff}.map-credit{position:absolute;left:10px;bottom:12px;background:rgba(0,23,33,.76);padding:8px 13px;border-radius:8px;display:flex;flex-direction:column;gap:2px;font-size:12px}.map-credit b{font-size:14px}.map-time{position:absolute;bottom:12px;right:15px;background:rgba(3,37,63,.8);border:1px solid #6da6cd;padding:8px 15px;border-radius:20px;font-weight:600;font-size:12px}.time-controls{min-height:80px;display:flex;gap:15px;align-items:center;padding:7px 20px 8px 18px;background:linear-gradient(180deg,#08233d,#061b2e)}.play-button{width:51px;height:51px;border-radius:50%;background:linear-gradient(145deg,#178ee8,#07559f);color:white;border:1px solid #198edc;font-size:22px;flex-shrink:0}.skip{border:0;color:#d1eafd;background:transparent;font-size:17px;padding:8px 2px}.timeline-wrap{flex:1;min-width:0;padding-top:1px}.timeline-wrap input{display:block;width:100%;accent-color:#05c4f9;cursor:pointer;margin:0;height:19px}.timeline-ticks,.timeline-dates{display:flex;justify-content:space-between;color:#e5f4fe;font-size:10px}.timeline-dates{color:#95b8cf;padding-top:1px}.details{padding:10px;display:flex;flex-direction:column;gap:11px;min-width:0}.aside-head{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:0 1px 4px;min-height:49px}.city-picker{display:flex;align-items:center;position:relative;background:linear-gradient(145deg,#16425f,#0a2b47);border:1px solid #245b7d;border-radius:12px;min-width:0;width:min(58%,300px);height:50px}.city-picker .pin{font-size:25px;color:#36ceff;margin:0 10px 3px 14px}.city-picker select{border:0;appearance:none;background:transparent;color:white;font-size:23px;font-weight:750;width:100%;outline:none;cursor:pointer}.city-picker select option{background:#0d2b44;color:#fff}.chevron{font-size:23px;margin:0 12px 6px 0;color:#e3f4ff;pointer-events:none}.cycle{text-align:right;font-size:13px;line-height:1.45}.snapshot{color:#92b8cf;font-size:12px}.inner-glass{background:linear-gradient(135deg,#113d60,#09243e 72%);border:1px solid #2d6184;border-radius:13px;overflow:hidden;box-shadow:0 3px 18px rgba(0,0,0,.13)}.inner-title{height:52px;display:flex;gap:10px;align-items:center;padding:0 16px;background:linear-gradient(90deg,rgba(18,71,108,.8),rgba(13,56,87,.62));font-size:18px}.var-icon{color:#ffb33d;font-size:23px}.info-icon{color:#56cfff;margin-left:0;font-size:15px}.unit{font-size:13px;margin-left:auto}.stats{display:grid;grid-template-columns:1.2fr 1fr 1fr 1.1fr;gap:0;margin:17px 12px 17px}.stat{min-width:0;padding:0 13px;border-left:1px solid #476b86}.stat:first-child{border-left:0}.stat-caption{white-space:nowrap;color:#ddeef9;font-size:13px;margin-bottom:8px}.main-stat{display:flex;gap:5px;align-items:baseline}.main-stat span{font-size:clamp(24px,2.2vw,39px);line-height:1;font-weight:700;letter-spacing:-1px}.main-stat small{white-space:nowrap;font-size:13px}.other-stat{font-size:19px;font-weight:720;white-space:nowrap}.other-stat small{font-weight:400;font-size:11px}.peak-stat{font-size:17px;font-weight:750;color:#ffc24f;line-height:1.2}.chart-panel{flex:1;display:flex;flex-direction:column;min-height:285px}.chart-panel .inner-title{height:44px;font-size:16px;flex:none}.chart-holder{position:relative;flex:1;min-height:175px;padding:6px 12px 0}.chart-holder svg{display:block;width:100%;height:100%;overflow:visible}.chart-tooltip{position:absolute;display:none;min-width:136px;background:rgba(0,17,31,.95);border:1px solid #4cb0d6;border-radius:7px;color:#fff;padding:7px 10px;font-size:11px;pointer-events:none;z-index:5;box-shadow:0 5px 25px #0019}.chart-bottom{display:flex;justify-content:space-between;padding:0 21px 10px 43px;color:#b4cedf;font-size:11px}.compare-row{display:flex;align-items:center;gap:12px;color:#e6f4fb;padding:3px 0;font-size:14px}.compare-row[hidden]{display:none}.compare-row select{background:#0c344f;border:1px solid #357497;color:#fff;border-radius:8px;padding:8px;flex:1}.compare-row button{border:1px solid #357497;color:white;background:#103a56;border-radius:5px}.source-panel{min-height:64px;display:flex;gap:13px;align-items:center;padding:8px 15px;font-size:12px}.source-panel small{display:block;color:#b9d8e9;margin-top:4px}.source-i{color:#a4e8ff;font-size:22px}.copernicus{margin-left:auto;white-space:nowrap;color:#dbe9f8;font-size:12px;display:flex;align-items:center;gap:5px}.copernicus b{font-size:14px}.small-eu{background:#135bc6;border:1px solid #53b8fa;padding:8px 4px;font-weight:700}.city-strip{display:flex;gap:9px;padding:8px 9px;margin-top:14px;min-height:136px;align-items:stretch}.strip-title{width:255px;display:flex;align-items:center;gap:10px;padding:9px 8px;flex-shrink:0}.strip-title b{font-size:17px;line-height:1.35}.strip-title small{display:block;margin-top:9px;font-size:11px;color:#c4d9e7}.strip-icon{color:#4bc5ff;font-size:33px}.city-cards{min-width:0;flex:1;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.city-card{display:flex;flex-direction:column;gap:1px;min-width:0;padding:12px 9px 8px;background:linear-gradient(160deg,#11334d,#061d30);color:#fff;border:1px solid #34617b;border-radius:14px;text-align:left}.city-card:hover,.city-card.selected{border-color:#28d5fe;background:linear-gradient(160deg,#194f74,#083051)}.city-card h3{font-size:14px;margin:0 0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.city-card .max{font-size:20px;font-weight:760;line-height:1}.city-card .max small{font-size:11px;font-weight:450}.city-card svg{display:block;height:35px;width:100%;margin-top:auto}.city-card .when{color:#d3eaf8;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.footer{display:flex;justify-content:space-between;gap:18px;align-items:center;color:#87a8bd;font-size:11px;margin:8px 7px 3px}.modal-backdrop{position:fixed;inset:0;z-index:30;background:rgba(0,8,16,.8);display:flex;align-items:center;justify-content:center;padding:15px}.modal-backdrop[hidden]{display:none}.modal{width:min(680px,100%);padding:30px;line-height:1.6;position:relative}.modal h2{margin-top:0}.modal p{color:#c2d9e7}.modal-close{position:absolute;right:16px;top:14px;background:transparent;color:white;border:0;font-size:22px}.modal-ok{background:#0c8bd3;color:white;border:0;border-radius:8px;padding:10px 25px}.soft{--bg:#0b2030;--glass:linear-gradient(145deg,#17405a,#103149);--nav:#10344c}.soft .map-scene canvas{filter:saturate(.95) brightness(1.1)}
@media(max-width:1450px){.main-grid{grid-template-columns:minmax(0,1.3fr) minmax(435px,1fr)}.strip-title{width:200px}.city-card{padding:10px 6px}.city-card h3{font-size:12px}.city-card .max{font-size:17px}.nav-link{padding:0 16px}.pollutant-bar{gap:5px}.param-btn{padding:8px 9px}.stat{padding:0 7px}.stat-caption{font-size:11px}}
@media(max-width:1160px){.main-grid{grid-template-columns:1fr}.map-panel{min-height:550px}.map-viewport{min-height:390px}.details{min-height:490px}.chart-panel{min-height:265px}.city-strip{flex-direction:column}.strip-title{width:auto}.city-cards{grid-template-columns:repeat(4,minmax(0,1fr))}.city-card{min-height:115px}.brand-right{font-size:17px}.nav-link{font-size:13px;padding:0 12px}}
@media(max-width:700px){.masthead{height:75px;padding:7px 13px}.brand-icon{width:44px;height:48px}.brand{gap:6px}.brand-text h1{font-size:19px;letter-spacing:-.5px}.brand-text p{font-size:9px;max-width:250px}.brand-right{display:none}.nav-bar{margin:0 7px 9px;overflow-x:auto}.nav-link{padding:0 12px}.nav-link span:not(.nav-ico){display:none}.nav-ico{font-size:23px}.lang-switch{margin-left:auto}.content{padding:0 6px 6px}.map-panel{min-height:470px}.pollutant-bar{min-height:55px}.map-viewport{min-height:328px}.map-controls{left:8px;top:15px}.map-controls button{width:34px;height:34px;font-size:21px}.map-legend{right:7px;top:9px;min-width:90px;padding:8px}.scale-body{height:137px}.map-legend strong{font-size:10px}.map-marker{font-size:10px}.map-marker.selected{font-size:11px}.map-time{font-size:9px;right:6px;bottom:7px;padding:5px}.map-credit{font-size:9px;left:6px;bottom:7px}.map-credit b{font-size:10px}.time-controls{padding:5px 7px;gap:6px;min-height:67px}.play-button{width:40px;height:40px}.skip{font-size:11px}.timeline-ticks{font-size:8px}.timeline-dates{display:none}.aside-head{flex-direction:column;align-items:stretch}.city-picker{width:100%;height:44px}.city-picker select{font-size:21px}.cycle{text-align:left;font-size:11px}.metric-panel .inner-title{font-size:14px;padding:0 10px}.stats{margin:12px 5px;grid-template-columns:repeat(2,1fr);gap:14px}.stat{border:0;padding:0 8px}.stat-caption{font-size:12px}.main-stat span{font-size:29px}.other-stat{font-size:18px}.chart-panel{min-height:260px}.source-panel{font-size:11px}.copernicus{display:none}.city-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.city-card h3{font-size:14px}.city-card .max{font-size:21px}.footer{flex-direction:column;align-items:flex-start}}

/* ---------------------------------------------------------
   GREECE ATMOSPHERE WATCH UI V0.2
   1: centered max-width, 2: geographic aspect correction,
   3: ranked city maxima, 4: rounded Nunito typography.
   --------------------------------------------------------- */
html, body { font-family: "Nunito", "Trebuchet MS", "Segoe UI", sans-serif; font-weight: 500; }
button, select, input { font-family:inherit; }
.brand-text h1, .brand-right, .inner-title b, .strip-title b, .city-card h3, .city-card .max, .city-picker select { font-weight: 900; }
.bar-label, .param-btn, .nav-link, .main-stat span, .other-stat, .peak-stat { font-weight: 800; }
.app-shell { max-width: 1580px; margin: 0 auto; min-height: 100vh; border-left: 1px solid rgba(69,139,174,.12); border-right:1px solid rgba(69,139,174,.12); box-shadow:0 0 75px rgba(0,0,0,.28); }
.masthead { padding-left:24px; padding-right:25px; }
.main-grid { grid-template-columns:minmax(0,1.44fr) minmax(520px,1fr); gap:13px; }
.map-panel { min-height:690px; }
.map-viewport { min-height:510px; isolation:isolate;
 background:radial-gradient(ellipse at 50% 50%,#123b60 0%,#0a2945 47%,#06192f 100%); }
.map-viewport:before { content:"";position:absolute;inset:0;opacity:.30;pointer-events:none;
 background-image:linear-gradient(to right,rgba(100,167,208,.17) 1px,transparent 1px),linear-gradient(to bottom,rgba(100,167,208,.17) 1px,transparent 1px);
 background-size:65px 65px; }
.map-viewport:after { content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
 background:radial-gradient(ellipse at 50% 45%,transparent 41%,rgba(1,12,28,.32) 85%); }
.map-scene { inset:auto; transform-origin:center center; overflow:visible;
 box-shadow:0 0 55px rgba(12,116,185,.25),0 0 3px rgba(80,177,222,.8);
 border:1px solid rgba(106,191,219,.22); border-radius:3px; }
.map-scene canvas, .coastline, .markers-layer { position:absolute;inset:0;width:100%;height:100%; }
.map-scene canvas { image-rendering:auto; filter:saturate(1.13) contrast(1.05); }
.map-viewport .map-controls,.map-viewport .map-legend,.map-viewport .map-credit,.map-viewport .map-time { z-index:4; }
.map-marker { font-weight: 900; font-size:14px; }
.map-marker.selected { font-size:15px; }
.map-legend { top:21px; }
.time-controls { min-height:85px; }
.stats { margin:18px 10px; }
.stat { padding:0 10px; }
.stat-caption { white-space:normal; font-size:12px; }
.peak-stat { font-size:16px; }
.city-strip { gap:12px;min-height:170px;padding:11px;margin-top:13px; }
.strip-title { width:188px; padding:9px 5px; }
.strip-title b { font-size:16px; }
.strip-title small { font-size:12px;line-height:1.25; }
.city-cards { gap:8px; }
.city-card { position:relative; overflow:hidden; min-height:144px; padding:11px 10px 10px;
 border:1px solid rgba(71,132,166,.5);
 background:linear-gradient(145deg,rgba(19,57,82,.96),rgba(4,24,42,.99));
 transition:background .2s,border-color .2s, transform .2s; }
.city-card::before { content:"";pointer-events:none;position:absolute;inset:0 0 auto;height:3px;background:var(--rank-accent,#4eafd6);opacity:.95; }
.city-card::after { content:"";pointer-events:none;position:absolute;inset:-30% -15% auto 14%;height:90px;
 background:radial-gradient(ellipse,var(--rank-glow,rgba(70,162,192,.18)) 0%,transparent 70%);opacity:.72; }
.city-card:hover { transform:translateY(-2px);border-color:#54d4fb; }
.city-card.selected { border-color:#32cbfa; box-shadow:inset 0 0 0 1px rgba(55,193,242,.13); }
.city-card.is-top { border-color:rgba(255,143,79,.87);
 background:linear-gradient(145deg,#402a35,#161f35 73%,#0d1f32); }
.city-card.is-top.selected { border-color:#ffbd87; }
.city-card h3 { font-size:13px;line-height:1.2;margin:0;max-width:100%; }
.city-card .card-top { display:flex;justify-content:space-between;align-items:center;gap:4px;z-index:1;position:relative; }
.city-card .rank-number { font-size:10px;font-weight:900; flex:none;color:var(--rank-accent,#7ee2f1);
 border:1px solid currentColor;border-radius:6px;padding:2px 4px;background:rgba(2,22,41,.45); }
.city-card .max { position:relative;z-index:1;font-size:21px;margin-top:7px;white-space:nowrap; }
.city-card .max small { font-size:10px; }
.city-card svg {position:relative;z-index:1;margin-top:6px;height:31px;}
.city-card .intensity-track { background:rgba(88,130,149,.22);border-radius:8px;height:5px;overflow:hidden;margin-top:5px;z-index:1;position:relative; }
.city-card .intensity-fill { height:100%;border-radius:8px;background:var(--rank-accent,#58bfda); }
.city-card .peak-caption { position:relative;z-index:1; font-size:10px;font-weight:800;color:var(--rank-accent,#9ccee1); margin-top:6px; }
.city-card .when { position:relative;z-index:1;font-size:11px;font-weight:700; color:#e7f3fa;white-space:normal; }
.city-card .top-tag { position:relative;z-index:1;color:#ffd2a0;font-size:10px;font-weight:800; }
.footer { margin-top:11px; }
@media (max-width:1450px){
 .main-grid{grid-template-columns:minmax(0,1.27fr) minmax(465px,1fr)}
 .strip-title{width:158px}.city-card{padding:9px 7px}.city-card h3{font-size:12px}.city-card .max{font-size:18px}
}
@media (max-width:1160px){
 .main-grid{grid-template-columns:1fr}.map-panel{min-height:640px}.map-viewport{min-height:490px}
 .strip-title{width:auto}.city-cards{grid-template-columns:repeat(4,minmax(0,1fr))}.city-card{min-height:148px}
}
@media (max-width:700px){
 .app-shell{border:0}.masthead{padding-left:12px;padding-right:12px}
 .map-panel{min-height:525px}.map-viewport{min-height:380px}.map-legend{top:7px}
 .map-marker{font-size:10px}.map-marker.selected{font-size:11px}
 .city-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.city-card{padding:11px;min-height:148px}
 .city-card h3{font-size:14px}.city-card .max{font-size:22px}.city-strip{min-height:0}
 .strip-title b{font-size:16px}.strip-title small{font-size:11px}
}
@media(max-width:390px){ .map-legend{min-width:75px;padding:6px}.map-legend strong{font-size:9px}.map-marker{font-size:9px} }

/* -------------------------------------
   UI V0.3 | Wider 16:9 desktop composition
   ------------------------------------- */
@media (min-width:1161px) {
  .app-shell {max-width:1800px; width:100%; margin:auto;}
  .content {padding:0 16px 8px;}
  .main-grid {grid-template-columns:minmax(0,1.76fr) minmax(470px,1fr);gap:14px;}
  .map-panel {min-height:0;}
  .map-viewport {
    flex:0 0 auto; width:100%;min-height:0;
    aspect-ratio:16 / 9;
    height:auto;
    background:radial-gradient(ellipse at 58% 45%, #064a74 0%, #082e4a 62%, #062139 100%);
  }
  .pollutant-bar{min-height:54px;padding-block:8px;}
  .time-controls{min-height:76px;}
  .details{justify-content:space-between;}
  .chart-panel {min-height:250px;}
  .city-strip{min-height:151px;}
  .city-card{min-height:133px;}
}
/* Map values, coastlines and markers share one consistent view.
   Widescreen presentation is an intentional map composition, not a
   geodetically conformal projection. Original CAMS coordinates remain
   unchanged for click-to-grid and the 7 city extraction locations. */
.map-viewport {isolation:isolate;}
.map-viewport:before,.map-viewport:after {display:none;}
.map-scene {
  position:absolute; inset:0 auto auto 0;
  overflow:hidden; box-shadow:none; border:0; border-radius:0;
  will-change:transform;
}
.map-scene canvas {filter:saturate(1.10) contrast(1.04);}
.map-scene .coastline {filter:drop-shadow(0 0 2px rgba(1,25,41,.6));}
.map-legend {top:15px;right:12px;max-height:none;}
.map-controls{z-index:6;}
.map-credit,.map-time{z-index:6;}
.map-marker{font-weight:900;}
.map-marker .marker-label {white-space:nowrap;}
/* Keep peak ordering/color in cards, but remove the redundant bar. */
.city-card::before {display:none;}
.city-card .intensity-track {display:none;}
.city-card .peak-caption{margin-top:7px;}
.city-card .when{margin-top:2px;}
.city-card {border-radius:12px;}
@media (max-width:1160px) {
 .map-viewport {aspect-ratio:16 / 10;min-height:0;height:auto;flex:0 0 auto;}
 .map-panel {min-height:0;}
 .map-scene{overflow:hidden;}
}
@media (max-width:700px) {
 .app-shell{width:100%;}
 .map-viewport {aspect-ratio:4 / 3; min-height:0;}
 .map-legend{right:7px;top:9px;max-width:100px;}
 .map-credit{left:6px;bottom:7px;padding:6px 8px;}
 .map-credit b{font-size:10px;}
 .map-credit span{font-size:9px;}
 .map-time{bottom:7px;right:7px;padding:6px 8px;font-size:10px;}
 .map-marker .marker-label{font-size:10px;}
 .city-card .peak-caption{margin-top:7px;}
}


/* ========================================================
   UI V0.4 / user-requested final refinements
   - centered 1640px page instead of 1800px
   - more balanced map proportions (not over-wide 16:9)
   - approved AI-generated Earth asset in taller masthead
   - retain CAMS real grid, controls, city rankings and Nunito
   ======================================================== */
.app-shell {max-width:1640px; width:100%;}
.masthead {
  height:112px;
  padding:19px 27px 14px 27px;
  background:linear-gradient(90deg,#021322 0%,#06223a 55%,#031321 100%);
  border-bottom:1px solid rgba(61,174,227,.2);
}
.masthead-glow {
  position:absolute;
  z-index:0;
  inset:0 8% 0 40%;
  height:100%;
  transform:none;
  border-radius:0;
  box-shadow:none;
  background: url('earth-horizon.webp') center / 100% 100% no-repeat;
  opacity:.98;
  -webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 13%,#000 87%,transparent 100%);
  mask-image:linear-gradient(90deg,transparent 0%,#000 13%,#000 87%,transparent 100%);
  pointer-events:none;
}
.brand,.brand-right {z-index:2;}
.brand-text h1 {font-size:clamp(25px,2.1vw,38px);}
.brand-text p {font-size:clamp(11px,.94vw,15px);}
.nav-bar {margin-top:10px;}
@media(min-width:1161px){
  .app-shell{max-width:1640px;}
  .main-grid {grid-template-columns:minmax(0,1.64fr) minmax(480px,1fr);gap:14px;}
  .map-viewport {aspect-ratio: 25 / 16;min-height:0;height:auto;}
  .pollutant-bar{min-height:56px;}
  .details{justify-content:space-between;}
}
@media(max-width:1160px){
  .masthead{height:104px;padding:16px 19px 12px;}
  .masthead-glow{left:39%;right:0;opacity:.67;}
  .nav-bar{margin-top:7px;}
  .map-viewport{aspect-ratio: 8 / 5;}
}
@media(max-width:700px){
  .masthead{height:91px;padding:12px 12px 10px;}
  .masthead-glow {inset:0 0 0 36%;opacity:.34;}
  .brand-text h1{font-size:19px;}
  .nav-bar{margin-top:5px;}
  .map-viewport{aspect-ratio:4 / 3;}
}


/* ========================================================
   UI V0.5: Breathing room for stats; balanced shorter chart;
   local EU emblem and local preview Copernicus visual.
   No changes to maps, datasets, controls or max page width.
   ======================================================== */
.metric-panel .inner-title {height:57px;}
.metric-panel .stats {align-items:center;min-height:108px; margin:23px 13px 23px;}
.metric-panel .stat-caption {margin-bottom:14px;white-space:normal;line-height:1.25;}
.metric-panel .stat {min-height:65px;display:flex;flex-direction:column;justify-content:center;}
.chart-panel .chart-holder {min-height:168px;}
.source-panel {
 display:flex;flex-direction:column;align-items:stretch;justify-content:center;
 gap:9px;padding:11px 15px 10px;min-height:99px;
}
.source-meta {display:flex;gap:12px;align-items:center;min-width:0;}
.source-meta > div {min-width:0;}
.source-logos {
 display:flex;align-items:center;justify-content:center;gap:10px;
 border-top:1px solid rgba(105,182,231,.21);padding:8px 0 0;min-width:0;
}
.source-logos .eu-flag {display:block;width:35px;height:24px;object-fit:contain;flex:none;}
.source-logos .eu-note {font-size:9px;color:#e9f4fc;font-weight:800;line-height:1.08;white-space:nowrap;letter-spacing:.08px;}
.source-logos .copernicus-preview {display:block;object-fit:contain;width:113px;height:44px;flex:none;mix-blend-mode:screen;}
.source-logos .cams-source {white-space:nowrap;font-size:12px;color:#d4ebfa;font-weight:800;}
@media (min-width:1161px){
 .details {justify-content:space-between;gap:10px;}
 .metric-panel {flex:none;min-height:207px;}
 .chart-panel {flex:1 1 280px;min-height:240px;}
 .source-panel {flex:none;}
}
@media (max-width:1160px){
 .metric-panel .stats{margin:20px 12px 22px;min-height:90px;}
 .chart-panel{flex:none;min-height:270px;height:300px;}
 .source-panel{min-height:92px;}
}
@media (max-width:700px){
 .metric-panel .stats {margin:20px 8px 20px;min-height:90px;}
 .metric-panel .stat{min-height:58px;}
 .metric-panel .stat-caption{font-size:11px;margin-bottom:8px;}
 .chart-panel{min-height:260px;height:275px;}
 .source-logos{gap:7px;flex-wrap:wrap;}
 .source-logos .eu-flag{width:29px;height:20px;}
 .source-logos .eu-note{font-size:7px;}
 .source-logos .copernicus-preview{width:87px;height:36px;}
 .source-logos .cams-source{font-size:10px;}
}

/* UI V0.6 — refined page framing and geodetically anchored city dots.
   The pin center is the actual CAMS lat/lon position. Its label floats above
   independently and cannot displace the dot. Coastline and data stay intact. */
.app-shell {padding-top:18px;}
.map-marker {
  display:block;
  width:20px;
  height:20px;
  padding:0;
  gap:0;
  transform:translate(-50%,-50%);
}
.map-marker .marker-dot {
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
}
.map-marker .marker-label {
  position:absolute;
  bottom:calc(100% + 3px);
  left:50%;
  transform:translateX(-50%);
  white-space:nowrap;
  line-height:1.15;
}
.footer {
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:5px;
  margin:12px 8px 7px;
  padding:11px 12px 10px;
  border-top:1px solid rgba(112,183,218,.26);
  color:#a2bfd0;
  font-size:11px;
  line-height:1.4;
}
.footer-credits,.footer-details {display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;text-align:center;}
.footer-credits {color:#d1e6f2;}
.footer-credits b {color:#77c9ee;font-weight:800;}
.footer-details {color:#829eaf;font-size:10px;}
.footer a {color:#75ccef;text-decoration:none;border-bottom:1px solid rgba(117,204,239,.45);}
.footer a:hover {color:#b5eaff;border-bottom-color:#b5eaff;}
.footer-dot {color:#3d738f;}
@media (max-width:700px) {
  .app-shell {padding-top:10px;}
  .footer {padding:10px 5px;}
  .footer-credits,.footer-details {gap:5px 8px;}
  .footer-dot {display:none;}
}

/* UI V0.7 — quiet, rounded footer and a deliberate end to the page.
   This only changes the footer and page-height framing: CAMS map, charts,
   city cards, header, controls, and all data remain untouched. */
.app-shell {
  min-height:0;
  padding-bottom:12px;
}
.content {padding-bottom:0;}
.footer {
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:5px;
  margin:12px 0 0;
  padding:11px 16px 10px;
  background:linear-gradient(155deg,rgba(16,52,77,.86),rgba(6,27,45,.94));
  border:1px solid rgba(91,155,191,.38);
  border-radius:14px;
  box-shadow:0 4px 18px rgba(0,8,19,.16),inset 0 1px 0 rgba(175,221,245,.055);
  color:#a9c4d5;
}
.footer-credits {color:#d5e8f3;}
.footer-details {color:#9eb9c9;}
@media (max-width:700px) {
  .app-shell {min-height:0;padding-bottom:9px;}
  .footer {
    margin:10px 0 0;
    padding:11px 10px;
    gap:7px;
    border-radius:12px;
  }
  .footer-credits,.footer-details {justify-content:center;text-align:center;}
}
