/* Oldenburg aktuell – gemeinsamer Stylesheet
   Eine CSS-Datei für Übersicht, Tankstellenkarte, Tankstellendetails
   und Wetter inkl. Radar, Niederschlag und Warnungen.
   Basis: index(1).txt; Detail-Komponenten aus tdetails.txt übernommen.
*/

:root {
  --navy:#092b55;
  --blue:#087ef5;
  --green:#179b59;
  --orange:#f59e0b;
  --red:#dc2626;
  --text:#173253;
  --muted:#66768b;
  --bg:#f5f8fc;
  --line:#e4eaf1;
  --card:#fff;
  --shadow:0 12px 32px rgba(16,43,77,.08);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
html,body{margin:0;min-height:100%;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--text);background:var(--bg)}
body{display:flex;flex-direction:column}
button,input,select{font:inherit}

/* =========================
   Header & Navigation
   ========================= */

.site-header{
  position:fixed;
  z-index:2000;
  inset:0 0 auto;
  height:76px;
  background:rgba(255,255,255,.97);
  border-bottom:1px solid var(--line);
  box-shadow:0 3px 18px rgba(9,43,85,.07);
  backdrop-filter:blur(14px);
}

.header-inner,.footer-inner{
  width:min(1480px,calc(100% - 36px));
  margin:auto;
}

.header-inner{
  height:100%;
  display:flex;
  align-items:center;
  gap:30px;
}

.brand{
  display:flex;
  align-items:center;
  gap:11px;
  text-decoration:none;
  color:var(--navy);
  font-size:25px;
  font-weight:800;
  white-space:nowrap;
}

.brand em{color:var(--blue);font-style:normal;font-weight:500}

.mark{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  background:var(--navy);
  color:#fff;
  border-radius:13px;
  font-size:14px;
}

.nav{display:flex;margin-right:auto}
.nav a{
  position:relative;
  padding:29px 18px;
  color:#52647b;
  text-decoration:none;
  font-size:15px;
}
.nav a:hover,.nav a.active{color:var(--blue)}
.nav a.active:after{
  content:"";
  position:absolute;
  left:18px;
  right:18px;
  bottom:0;
  height:3px;
  background:var(--blue);
}

.head-status{
  display:flex;
  gap:16px;
  align-items:center;
  color:#607087;
  font-size:14px;
  white-space:nowrap;
}

.mini{border-left:1px solid var(--line);padding-left:16px;color:var(--text)}

.loc{
  border:0;
  background:var(--navy);
  color:#fff;
  padding:11px 15px;
  border-radius:10px;
  cursor:pointer;
}

.hamb{
  display:none;
  margin-left:auto;
  border:0;
  background:none;
  color:var(--navy);
  cursor:pointer;
  width:44px;
  height:44px;
  padding:9px;
  position:relative;
}

.hamb span{
  display:block;
  height:2px;
  background:var(--navy);
  border-radius:2px;
  margin:5px 0;
  transition:.2s ease;
}

.hamb.open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.hamb.open span:nth-child(2){opacity:0}
.hamb.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

.mobile-nav{display:none}

/* =========================
   Allgemeines Seitenlayout
   ========================= */

.page{
  width:min(1480px,calc(100% - 36px));
  margin:0 auto;
  padding:106px 0 34px;
  flex:1;
}

.title{
  margin:0 0 4px;
  font-size:clamp(28px,3vw,38px);
  letter-spacing:-.035em;
}

.subtitle{
  margin:0 0 20px;
  color:var(--muted);
  font-size:17px;
}

.crumbs{
  font-size:12px;
  color:var(--muted);
  margin-bottom:14px;
}

.crumbs a{color:var(--blue);text-decoration:none}

/* =========================
   Gemeinsame Karten / Controls
   ========================= */

.card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:21px;
}

.card h2{font-size:19px;margin:0 0 4px}
.card-sub{font-size:12px;color:var(--muted);margin:0 0 16px}

.control{
  width:100%;
  border:1px solid #dbe3ec;
  background:#fff;
  color:var(--text);
  border-radius:10px;
  padding:11px;
  outline:0;
}

.control:focus{border-color:var(--blue)}

/* =========================
   Tankstellenkarte
   ========================= */

.layout{
  display:grid;
  grid-template-columns:440px minmax(0,1fr);
  gap:14px;
  align-items:start;
}

.panel{
  height:690px;
  min-height:0;
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:0 10px 28px #102b4d14;
  padding:16px;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

.tabs{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin-bottom:12px;
}

.tab{
  border:1px solid var(--line);
  background:#f1f4f8;
  color:var(--text);
  border-radius:10px;
  padding:11px 5px;
  cursor:pointer;
  font-weight:650;
}

.tab.active{
  background:var(--navy);
  color:#fff;
  border-color:var(--navy);
}

.filters{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.update{
  display:flex;
  justify-content:space-between;
  padding:13px 2px;
  color:var(--muted);
  font-size:13px;
}

.list{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
}

.station{
  display:grid;
  grid-template-columns:30px 46px minmax(0,1fr) auto;
  gap:9px;
  align-items:center;
  padding:14px 6px;
  border:1px solid transparent;
  border-bottom-color:var(--line);
  cursor:pointer;
}

.station:hover,.station.selected{
  background:#f5fbff;
  border-color:#b7dcff;
  border-radius:12px;
}

.rank{
  width:25px;
  height:25px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:var(--green);
  color:#fff;
  font-size:12px;
  font-weight:800;
}

.rank.gray{background:#e2e6eb;color:#4b596a}

.logo{
  width:42px;
  height:42px;
  border-radius:50%;
  display:grid;
  place-items:center;
  border:1px solid var(--line);
  background:#f8fafc;
  color:var(--navy);
  font-size:10px;
  font-weight:900;
}

.name{font-size:15px;font-weight:750;margin-bottom:4px}
.address{color:var(--muted);font-size:12px;line-height:1.4}

.best{
  margin-left:5px;
  padding:3px 6px;
  border-radius:6px;
  background:#d9f5e5;
  color:#117544;
  font-size:9px;
  font-weight:800;
}

.pricebox{text-align:right;white-space:nowrap}

.price{
  font-size:23px;
  line-height:1;
  font-weight:850;
  color:var(--navy);
}

.price sup{font-size:11px}

.unit,.distance{
  font-size:11px;
  color:var(--muted);
  margin-top:4px;
}

.status{font-weight:750}
.open{color:var(--green)}
.limited{color:var(--orange)}
.closed{color:var(--red)}

.refresh{
  margin-top:12px;
  border:1px solid var(--line);
  background:#fff;
  border-radius:10px;
  padding:11px;
  cursor:pointer;
  color:var(--text);
}

.mapcard{
  position:relative;
  min-width:0;
  height:690px;
  overflow:hidden;
  border-radius:18px;
  border:1px solid var(--line);
  box-shadow:0 10px 28px #102b4d14;
  background:#e8f0e3;
}

#map{width:100%;height:690px}

.search{
  position:absolute;
  z-index:500;
  top:16px;
  left:16px;
  width:min(300px,calc(100% - 32px));
  padding:13px 15px;
  border:1px solid var(--line);
  border-radius:10px;
  box-shadow:0 4px 18px #102b4d22;
  outline:0;
}

.tools{
  position:absolute;
  z-index:500;
  right:16px;
  top:16px;
  display:grid;
  gap:7px;
}

.tool{
  width:42px;
  height:42px;
  border:0;
  border-radius:9px;
  background:#fff;
  box-shadow:0 4px 18px #102b4d22;
  cursor:pointer;
  font-size:18px;
  color:var(--navy);
}

.legend{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  padding:11px 15px;
  color:#52647b;
  font-size:12px;
}

.mapcard>.legend{
  position:absolute;
  z-index:500;
  left:15px;
  bottom:15px;
  background:#fffffff5;
  border-radius:10px;
  box-shadow:0 4px 18px #102b4d22;
}

.legend span{display:flex;align-items:center;gap:6px}
.dot{width:11px;height:11px;border-radius:50%}
.dot.g{background:var(--green)}
.dot.o{background:var(--orange)}
.dot.r{background:var(--red)}

.marker{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  width:max-content;
  min-width:76px;
  min-height:38px;
  padding:7px 10px;
  border-radius:9px;
  background:#fff;
  border:2px solid #dfe7ef;
  box-shadow:0 5px 18px #102b4d2e;
  text-align:center;
  color:var(--navy);
  font-weight:850;
  line-height:1.05;
  white-space:nowrap;
  box-sizing:border-box;
  overflow:visible;
}

.marker strong{display:inline-block;font-size:14px;line-height:1;white-space:nowrap}
.marker small{display:inline-block;color:var(--muted);font-size:9px;line-height:1;white-space:nowrap}
.marker.bestmarker{border-color:#68c895;background:#f5fff8}

a.maplinkstyle,
a.maplinkstyle:link,
a.maplinkstyle:visited,
a.maplinkstyle:hover,
a.maplinkstyle:active{
  color:var(--text);
  text-decoration:inherit;
}

/* =========================
   Tankstellendetails
   ========================= */

.detail-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:25px;
  margin-bottom:18px;
}

.eyebrow{
  font-size:12px;
  color:var(--blue);
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-bottom:6px;
}

.detail-head h1{
  font-size:clamp(27px,4vw,40px);
  line-height:1.06;
  letter-spacing:-.04em;
  margin:0 0 8px;
  color:var(--navy);
}

.detail-head .address{font-size:15px;line-height:1.5}

.detail-head .status{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:7px 10px;
  background:#e3f7eb;
  color:#117544;
  border-radius:8px;
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
}

.detail-head .status i{
  width:8px;
  height:8px;
  background:var(--green);
  border-radius:50%;
}

.actions{display:flex;gap:8px;margin-top:13px}

.action{
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  border-radius:9px;
  padding:10px 13px;
  text-decoration:none;
  font-size:12px;
  font-weight:700;
}

.action.primary{
  background:var(--navy);
  border-color:var(--navy);
  color:#fff;
}

.price-hero{
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  box-shadow:var(--shadow);
  padding:21px;
  margin-bottom:14px;
}

.price-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  margin-bottom:15px;
}

.price-top h2{font-size:18px;margin:0}
.last{font-size:12px;color:var(--muted)}

.prices{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}

.price-card{
  border:1px solid var(--line);
  border-radius:14px;
  padding:17px;
  background:#fbfcfe;
}

.price-card.best{
  border-color:#a9dfc0;
  background:#f7fff9;
}

.fuel{font-size:13px;font-weight:750}

.price-card .price{
  font-size:34px;
  margin:11px 0 3px;
  letter-spacing:-.045em;
}

.price-card .price sup{
  font-size:14px;
  vertical-align:top;
  position:relative;
  top:4px;
}

.trend{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-top:12px;
  font-size:11px;
}

.fall{color:var(--green);font-weight:800}
.rise{color:var(--red);font-weight:800}

.recommend{
  padding:3px 6px;
  border-radius:5px;
  background:#d9f5e5;
  color:#117544;
  font-size:9px;
  font-weight:800;
}

.main-grid{
  display:grid;
  grid-template-columns:1.22fr .78fr;
  gap:14px;
}

.detail-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin-top:10px;
}

.metric{
  background:#f7f9fb;
  border:1px solid var(--line);
  border-radius:11px;
  padding:12px;
}

.metric small{
  display:block;
  color:var(--muted);
  font-size:10px;
  margin-bottom:5px;
}

.metric strong{font-size:15px}

.chart{
  height:175px;
  margin-top:17px;
  border:1px solid var(--line);
  border-radius:12px;
  padding:13px;
  position:relative;
  overflow:hidden;
  background:linear-gradient(180deg,#fff,#fbfcfd);
}

.chart svg{width:100%;height:100%}

.line-dot{
  width:18px;
  height:3px;
  background:var(--blue);
  border-radius:2px;
}

.line-dot.green{background:var(--green)}

.note{
  margin-top:13px;
  padding:11px 12px;
  border-radius:9px;
  background:#fff8e8;
  color:#76500a;
  font-size:11px;
  line-height:1.5;
}

.map{
  height:270px;
  border-radius:14px;
  overflow:hidden;
  position:relative;
  background:#e8f0e3;
  background-image:
    linear-gradient(35deg,transparent 44%,#fff 45%,#fff 48%,transparent 49%),
    linear-gradient(115deg,transparent 44%,#fff 45%,#fff 48%,transparent 49%),
    linear-gradient(#dfe9dc 1px,transparent 1px),
    linear-gradient(90deg,#dfe9dc 1px,transparent 1px);
  background-size:auto,auto,42px 42px,42px 42px;
}

.road{position:absolute;background:#fff;box-shadow:0 0 0 1px #d6dfd4}
.road.one{width:130%;height:15px;left:-15%;top:48%;transform:rotate(-8deg)}
.road.two{width:18px;height:125%;left:58%;top:-10%;transform:rotate(13deg)}

.pin{
  position:absolute;
  left:58%;
  top:48%;
  transform:translate(-50%,-100%);
  width:27px;
  height:27px;
  border-radius:50% 50% 50% 0;
  transform-origin:center;
  rotate:-45deg;
  background:var(--blue);
  box-shadow:0 3px 10px #092b5540;
}

.pin:after{
  content:"";
  position:absolute;
  width:9px;
  height:9px;
  border-radius:50%;
  background:#fff;
  left:9px;
  top:9px;
}

.map-label{
  position:absolute;
  left:18px;
  top:16px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px;
  padding:8px 10px;
  box-shadow:0 4px 12px #102b4d15;
  font-size:11px;
  font-weight:700;
}

.route{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-top:11px;
}

.route a{font-size:12px;color:var(--blue);font-weight:750;text-decoration:none}

.hours{width:100%;border-collapse:collapse;font-size:12px}
.hours td{padding:8px 0;border-bottom:1px solid var(--line)}
.hours tr:last-child td{border-bottom:0}
.hours td:last-child{text-align:right;font-weight:700}
.today td{color:var(--blue);font-weight:800}

.services{display:flex;flex-wrap:wrap;gap:7px;margin-top:17px}

.service{
  padding:7px 9px;
  background:#f4f7fa;
  border:1px solid var(--line);
  border-radius:7px;
  font-size:11px;
  color:#52647b;
}

.contact{
  margin-top:17px;
  padding-top:16px;
  border-top:1px solid var(--line);
  font-size:12px;
}

.contact div{margin-top:7px}
.contact a{color:var(--blue);text-decoration:none}

/* =========================
   Wetter
   ========================= */

.title-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:20px;
  margin-bottom:18px;
}

.title-row h1{
  font-size:clamp(29px,4vw,42px);
  line-height:1.05;
  letter-spacing:-.045em;
  margin:0 0 7px;
  color:var(--navy);
}

.updated{font-size:12px;color:var(--muted);white-space:nowrap}

.current{
  position:relative;
  overflow:hidden;
  border-radius:22px;
  background:linear-gradient(135deg,#092b55,#0b4d8d 58%,#087ef5);
  color:#fff;
  padding:24px 26px;
  box-shadow:0 18px 40px rgba(9,43,85,.17);
  margin-bottom:14px;
}

.current:after{
  content:"";
  position:absolute;
  width:310px;
  height:310px;
  border-radius:50%;
  right:-100px;
  top:-165px;
  background:#ffffff12;
}

.current-grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:28px;
  align-items:center;
}

.place{font-size:14px;opacity:.82;margin-bottom:7px}
.now{display:flex;align-items:center;gap:18px}
.icon{font-size:70px}

.temp{
  font-size:69px;
  line-height:1;
  font-weight:850;
  letter-spacing:-.06em;
}

.temp sup{
  font-size:27px;
  vertical-align:top;
  position:relative;
  top:6px;
}

.condition{font-size:17px;margin-top:6px;opacity:.9}
.feels{font-size:12px;opacity:.72;margin-top:5px}

.stats{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:9px;
}

.stat{
  padding:13px;
  background:#ffffff12;
  border:1px solid #ffffff14;
  border-radius:12px;
}

.stat small{display:block;font-size:10px;opacity:.7;margin-bottom:4px}
.stat b{font-size:14px}

.alert{
  position:relative;
  z-index:1;
  margin-top:17px;
  padding:10px 12px;
  border-radius:9px;
  background:#f59e0b20;
  border:1px solid #ffffff1e;
  font-size:11px;
}

.alert strong{color:#ffe0a0}

.weather-grid{
  display:grid;
  grid-template-columns:1.25fr .75fr;
  gap:14px;
}

.hourly{display:flex;gap:7px;overflow:auto;padding-bottom:3px}

.hour{
  min-width:72px;
  text-align:center;
  padding:11px 7px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fbfcfe;
}

.hour.active{
  background:#eef7ff;
  border-color:#b8dfff;
  color:var(--blue);
}

.hour time{font-size:10px;color:var(--muted)}
.hour .hicon{font-size:23px;margin:7px 0}
.hour strong{font-size:14px}
.rain{font-size:9px;color:#3a88c8;margin-top:4px}

.days{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
}

.day{
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px;
  text-align:center;
}

.day small{display:block;color:var(--muted);font-size:10px}
.day .dicon{font-size:25px;margin:8px 0}
.day b{font-size:14px}
.day span{font-size:10px;color:var(--muted);display:block;margin-top:3px}

.info-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:9px;
}

.sun{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:15px;
  padding-top:15px;
  border-top:1px solid var(--line);
}

.sun div{text-align:center}
.sun b{display:block;font-size:14px}
.sun small{font-size:10px;color:var(--muted)}

.aqi{
  margin-top:15px;
  padding:13px;
  border-radius:12px;
  background:#f2fbf5;
  border:1px solid #ccebd7;
}

.aqi strong{font-size:22px;color:var(--green)}
.aqi small{display:block;color:var(--muted);font-size:10px;margin-top:2px}

/* =========================
   Wetterradar / Niederschlag / Warnungen
   ========================= */

.weather-tools{
  display:grid;
  grid-template-columns:1.35fr .65fr;
  gap:14px;
  margin-top:14px;
}

.radar-card,.warning-card,.precip-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:20px;
}

.radar-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:15px;
  margin-bottom:14px;
}

.radar-head h2{margin:0;font-size:19px}
.radar-head p{margin:4px 0 0;color:var(--muted);font-size:12px}

.radar-tabs{display:flex;gap:6px;flex-wrap:wrap}

.radar-tab{
  border:1px solid var(--line);
  background:#fff;
  color:var(--muted);
  padding:7px 9px;
  border-radius:8px;
  font-size:10px;
  font-weight:750;
  cursor:pointer;
}

.radar-tab.active{
  background:#eef7ff;
  border-color:#b8dfff;
  color:var(--blue);
}

.radar-map{
  height:330px;
  border-radius:14px;
  overflow:hidden;
  position:relative;
  background:#dfe9ed;
  border:1px solid #d6e0e5;
}

.radar-map:before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(ellipse at 24% 62%,#65aef040 0 9%,transparent 10%),
    radial-gradient(ellipse at 37% 52%,#7fd0e875 0 8%,transparent 9%),
    radial-gradient(ellipse at 51% 46%,#55b4e8aa 0 7%,transparent 8%),
    radial-gradient(ellipse at 63% 40%,#86d5e1cc 0 6%,transparent 7%),
    radial-gradient(ellipse at 75% 35%,#9ee07d99 0 5%,transparent 6%),
    linear-gradient(32deg,transparent 48%,#ffffffaa 49%,#ffffffaa 50%,transparent 51%),
    linear-gradient(112deg,transparent 48%,#ffffff99 49%,#ffffff99 50%,transparent 51%);
  filter:saturate(.9);
}

.radar-map:after{
  content:"";
  position:absolute;
  left:52%;
  top:43%;
  width:155px;
  height:95px;
  background:radial-gradient(ellipse,#4a9fe6bb 0 22%,#74d6d8aa 35%,transparent 68%);
  transform:rotate(-20deg);
  filter:blur(5px);
}

.map-city{
  position:absolute;
  z-index:2;
  font-size:10px;
  font-weight:800;
  color:#29435d;
  text-shadow:0 1px 0 #fff;
}

.city-oldenburg{left:46%;top:48%}
.city-bremen{left:58%;top:27%}
.city-emden{left:22%;top:43%}
.city-osna{left:38%;top:77%}

.radar-pin{
  position:absolute;
  z-index:4;
  left:46%;
  top:47%;
  width:13px;
  height:13px;
  border-radius:50%;
  background:var(--blue);
  box-shadow:0 0 0 5px #087ef52b,0 2px 6px #092b5544;
}

.radar-pin:after{
  content:"Oldenburg";
  position:absolute;
  left:17px;
  top:-7px;
  white-space:nowrap;
  background:#fff;
  padding:5px 7px;
  border-radius:6px;
  border:1px solid var(--line);
  font-size:10px;
  font-weight:800;
}

.radar-controls{
  position:absolute;
  z-index:5;
  left:12px;
  bottom:12px;
  display:flex;
  gap:6px;
}

.radar-play{
  border:0;
  background:#fff;
  color:var(--navy);
  border-radius:8px;
  padding:9px 12px;
  font-size:11px;
  font-weight:800;
  box-shadow:0 4px 14px #102b4d20;
}

.timeline{
  position:absolute;
  z-index:5;
  left:110px;
  right:12px;
  bottom:12px;
  height:36px;
  background:#ffffffea;
  border-radius:8px;
  border:1px solid var(--line);
  display:flex;
  align-items:center;
  padding:0 10px;
  gap:8px;
}

.timeline span{font-size:9px;color:var(--muted)}

.timeline .bar{
  height:4px;
  flex:1;
  border-radius:3px;
  background:linear-gradient(90deg,#a9d9ee,#54b6dc,#f0d56b,#e47c70);
  position:relative;
}

.timeline .bar:after{
  content:"";
  position:absolute;
  left:55%;
  top:-4px;
  width:12px;
  height:12px;
  background:#fff;
  border:2px solid var(--blue);
  border-radius:50%;
}

.radar-legend{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:9px;
  font-size:10px;
  color:var(--muted);
}

.legend-rain{
  height:8px;
  flex:1;
  max-width:210px;
  border-radius:4px;
  background:linear-gradient(90deg,#bde8f4,#53b7df,#74cf89,#f3d15d,#e46b67);
}

.warning-card h2{margin:0;font-size:19px}

.warning-intro{
  font-size:12px;
  color:var(--muted);
  margin:4px 0 14px;
}

.warning{
  border-radius:12px;
  padding:14px;
  margin-bottom:9px;
  border:1px solid;
}

.warning:last-child{margin-bottom:0}
.warning.level2{background:#fff7e8;border-color:#f7d48a}
.warning.level1{background:#fff9ec;border-color:#f5e2b4}

.wtop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}

.badge{
  font-size:9px;
  font-weight:850;
  padding:4px 7px;
  border-radius:5px;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.badge.orange{background:#f59e0b;color:#fff}
.badge.yellow{background:#f7c948;color:#4c3700}

.warning strong{font-size:13px}
.warning p{font-size:10px;line-height:1.5;color:#6f5b36;margin:8px 0 0}

.source{font-size:9px;color:var(--muted);margin-top:11px}
.source a{color:var(--blue);text-decoration:none}

.precip-grid{
  display:grid;
  grid-template-columns:1fr .9fr;
  gap:14px;
  margin-top:14px;
}

.bars{
  display:flex;
  align-items:flex-end;
  height:150px;
  gap:7px;
  border-bottom:1px solid var(--line);
  padding:0 3px;
}

.barcol{flex:1;text-align:center}

.barcol i{
  display:block;
  margin:auto;
  width:100%;
  max-width:28px;
  border-radius:5px 5px 0 0;
  background:linear-gradient(180deg,#35a4ff,#087ef5);
}

.barcol small{
  display:block;
  font-size:8px;
  color:var(--muted);
  margin-top:5px;
}

.barcol b{display:block;font-size:9px;margin-bottom:3px}

.precip-note{
  margin-top:10px;
  padding:10px 11px;
  background:#eef7ff;
  border-radius:9px;
  color:#47627e;
  font-size:10px;
  line-height:1.45;
}

/* =========================
   Footer
   ========================= */

.footer{
  position:relative;
  z-index:1;
  min-height:72px;
  background:var(--navy);
  color:#fff;
  margin-top:20px;
}

.footer-inner{
  min-height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.copy{font-size:12px;color:#ffffffd1}

.links{
  display:flex;
  flex-wrap:wrap;
  gap:22px;
}

.links a{
  color:#fff;
  text-decoration:none;
  font-size:13px;
}

.links a:hover{text-decoration:underline}

/* =========================
   Responsive: Tablet
   ========================= */

@media(max-width:1050px){
  .layout{grid-template-columns:360px 1fr}
  .head-status .loc{display:none}
  .station{grid-template-columns:28px 42px minmax(0,1fr)}
  .pricebox{
    grid-column:3;
    text-align:left;
    margin-top:3px;
  }
}

@media(max-width:900px){
  .nav,.head-status{display:none}
  .hamb{display:block}

  .mobile-nav{
    position:absolute;
    left:0;
    right:0;
    top:66px;
    display:flex;
    flex-direction:column;
    background:rgba(255,255,255,.98);
    border-top:1px solid var(--line);
    border-bottom:1px solid var(--line);
    box-shadow:0 10px 24px #092b551f;
    padding:8px 12px 12px;
    transform:translateY(-12px);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:.2s ease;
  }

  .mobile-nav.open{
    transform:translateY(0);
    opacity:1;
    visibility:visible;
    pointer-events:auto;
  }

  .mobile-nav a{
    padding:15px 12px;
    color:var(--text);
    text-decoration:none;
    font-size:16px;
    font-weight:600;
    border-radius:9px;
  }

  .mobile-nav a:hover,.mobile-nav a.active{
    background:#f1f7ff;
    color:var(--blue);
  }

  .main-grid,.weather-grid,.weather-tools,.precip-grid{
    grid-template-columns:1fr;
  }

  .current-grid{grid-template-columns:1fr}
}

@media(max-width:820px){
  .site-header{height:66px}

  .header-inner,.page,.footer-inner{
    width:min(100% - 24px,700px);
  }

  .brand{font-size:20px}
  .mark{width:38px;height:38px}

  .page{
    padding-top:88px;
    padding-bottom:28px;
  }

  .layout{
    display:flex;
    flex-direction:column;
    gap:14px;
  }

  .mapcard{
    order:1;
    width:100%;
    height:58vh;
    min-height:420px;
  }

  #map{
    width:100%;
    height:100%;
    min-height:420px;
  }

  .panel{
    order:2;
    width:100%;
    height:auto;
    min-height:0;
    overflow:visible;
  }

  .list{
    max-height:520px;
    min-height:0;
    overflow-y:auto;
    overflow-x:hidden;
  }

  .footer-inner{
    padding:18px 0;
    align-items:flex-start;
    flex-direction:column;
  }

  .links{gap:12px 18px}
}

@media(max-width:650px){
  .header-inner,.page,.footer-inner{width:calc(100% - 24px)}
  .brand{font-size:20px}
  .mark{width:38px;height:38px}
  .page{padding-top:90px}

  .detail-head,.title-row{display:block}
  .detail-head h1,.title-row h1{font-size:29px}

  .detail-head .status{
    margin-top:10px;
  }

  .prices{grid-template-columns:1fr}

  .price-card{
    display:grid;
    grid-template-columns:1fr auto;
    align-items:center;
  }

  .price-card .price,.price-card .unit{
    grid-column:2;
    grid-row:1 / span 2;
  }

  .price-card .trend{
    grid-column:1;
    margin-top:8px;
  }

  .price{font-size:21px}
  .price-card .price{font-size:30px}

  .price-top{display:block}
  .last{display:block;margin-top:5px}
  .detail-grid{grid-template-columns:1fr}

  .card,.radar-card,.warning-card,.precip-card{padding:17px}

  .map{height:260px}
  .days{grid-template-columns:repeat(2,1fr)}

  .radar-map{height:270px}
  .radar-head{display:block}
  .radar-tabs{margin-top:10px}

  .title{font-size:28px}
  .subtitle{font-size:15px}

  .tabs{gap:6px}
  .tab{font-size:12px;padding:10px 3px}
  .filters{grid-template-columns:1fr}

  .search{
    top:10px;
    left:10px;
    width:calc(100% - 20px);
  }

  .tools{top:60px;right:10px}

  .mapcard>.legend{
    left:10px;
    bottom:10px;
    gap:8px 12px;
    padding:9px 11px;
  }

  .station{
    grid-template-columns:25px 40px minmax(0,1fr);
    gap:7px;
    padding:12px 4px;
  }

  .logo{width:38px;height:38px}

  .now{gap:12px}
  .icon{font-size:55px}
  .temp{font-size:57px}
  .stats{grid-template-columns:repeat(2,1fr)}

  .timeline{left:90px}
}

@media(max-width:520px){
  .page{padding-top:82px}
  .title{font-size:28px}
  .subtitle{font-size:15px}
}
