:root{
  --page:#0f1115; --panel:#0f1115; --card:#1c1c1c; --cardbg:#171717;
  --text:#f2f2f2; --muted:#8d8d8d; --accent:#b9d9f2; --ink:#14212c;
  --line:#333; --land:#2d2d2d; --land2:#3b3b3b;
  --glass:rgba(28,28,28,0.6); --glass-border:rgba(255,255,255,0.08);
}
body.light{
  --page:#eef1f5; --panel:#fff; --card:#eef1f5; --cardbg:#e3ebf3;
  --text:#14181d; --muted:#6f7780; --line:#d3d9e0; --land:#f6f7f9; --land2:#d4dae1;
  --glass:rgba(255,255,255,0.7); --glass-border:rgba(0,0,0,0.05);
}

*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%;}
body{background:var(--page);color:var(--text);font-family:"Plus Jakarta Sans","Segoe UI",system-ui,sans-serif;font-size:16px;overflow-x:hidden;overflow-y:auto;}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
button:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

.app{position:relative;width:100vw;min-height:100vh;background:var(--panel);padding:22px 32px 26px;display:flex;flex-direction:column;}
.top{display:flex;align-items:center;gap:14px;margin-bottom:24px;flex:none}
.circle{width:42px;height:42px;border-radius:50%;background:var(--card);display:grid;place-items:center;font-size:15px;position:relative}
.dot{position:absolute;top:10px;right:11px;width:8px;height:8px;border-radius:50%;background:#ff5a4f}
.dot.off{display:none}
.loc{font-size:.95rem;margin-left:14px;white-space:nowrap}
.search-wrap{position:relative;flex:0 1 460px;margin-left:50px;width:100%}
.search{display:flex;align-items:center;gap:10px;background:var(--card);border-radius:24px;height:42px;padding:0 18px;font-size:.9rem}
.search input{background:none;border:0;outline:0;color:var(--text);width:100%;font:inherit;font-size:.85rem}
.results{position:absolute;top:48px;left:0;right:0;background:var(--card);border:1px solid var(--line);border-radius:18px;padding:6px;z-index:30;max-height:300px;overflow:auto}
.results small{color:var(--muted)}
.results .dist-tag{font-size:.65rem;color:var(--muted);margin-left:4px}

/* --- ARAMA SONUÇLARI VE KALP BUTONU (HİZALANDI) --- */
.result-row { display: flex; align-items: center; justify-content: space-between; border-radius: 12px; transition: 0.2s; padding-right: 8px; }
.result-row:hover { background: var(--line); }
.result-row .city-result { flex: 1; display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; text-align: left; border-radius: 12px; }
.fav-btn { font-size: 1.1rem; padding: 6px; cursor: pointer; border-radius: 50%; transition: transform 0.2s, background 0.2s; display: grid; place-items: center; line-height: 1; flex-shrink: 0; }
.fav-btn:hover { transform: scale(1.15); background: rgba(255,255,255,0.1); }
.fav-btn.is-fav { filter: none; }
.fav-btn.not-fav { filter: grayscale(100%) opacity(0.6); }

.circle.gps{position:relative}
.circle.gps.active{background:var(--accent);color:var(--ink)}
.circle.gps.loading{pointer-events:none;opacity:.5}
.circle.gps .spin{position:absolute;inset:0;border:2px solid transparent;border-top-color:var(--ink);border-radius:50%;animation:spin .7s linear infinite}

.user-btn{margin-left:auto; display:flex; align-items:center; gap:12px; background:var(--card); border-radius:24px; padding:6px 6px 6px 16px; text-decoration:none; color:var(--text); transition:all 0.3s ease; border:1px solid transparent;}
.user-btn:hover{border-color:var(--accent);}
.user-btn span{font-size:.85rem; font-weight:600; white-space:nowrap;}
.avatar-sm{width:34px;height:34px;border-radius:50%;background:var(--cardbg);display:grid;place-items:center;color:var(--accent);}
.avatar-sm svg{width:18px;height:18px;}
.settings-btn {width: 42px; height: 42px; border-radius: 50%; background: var(--card); display: grid; place-items: center; color: var(--text); text-decoration: none; margin-left: 10px; transition: 0.2s;}
.settings-btn:hover { color: var(--accent); }
.settings-btn svg { width: 20px; height: 20px; }

.grid{flex:1;display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:32px;align-items:start;transition: all 0.3s ease;}
.left{display:flex;flex-direction:column;}
.row-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
.range button{color:var(--muted);font-size:1.05rem;margin-right:22px;transition:0.2s;}
.range .active{color:var(--text);font-weight:600}
.seg{background:var(--card);border-radius:24px;padding:3px;display:flex;font-size:.78rem}
.seg button{padding:9px 28px;border-radius:20px;color:var(--muted);transition:0.2s;}
.seg .active{background:var(--accent);color:var(--ink);font-weight:600}
.days{display:grid;grid-template-columns:1.7fr repeat(6,1fr);gap:14px;margin-bottom:26px}
.day{background:var(--card);border-radius:26px;padding:18px 0;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:space-between;height:clamp(190px,26vh,260px);font-size:.95rem}
.day .nm{width:62%;padding-bottom:10px;border-bottom:1px solid var(--line);text-transform:capitalize}
.day .ic{font-size:clamp(2rem,3.4vw,3rem);line-height:1}
.day .t{font-size:clamp(1.3rem,2vw,1.8rem);font-weight:600}
.day small{font-size:.7rem;color:var(--muted);margin-top:-8px}
.aq.good{color:#7fe0a0}.aq.mid{color:#f3c969}.aq.bad{color:#ff7f72}
.day.today{background:var(--accent);color:var(--ink);text-align:left;align-items:stretch;padding:0;overflow:hidden;justify-content:flex-start}
.today .hd{background:#a5c6e0;display:flex;justify-content:space-between;padding:14px 20px;font-weight:600;text-transform:capitalize}
.today .bd{display:flex;justify-content:space-between;align-items:center;padding:14px 20px 0}
.today .big{font-size:clamp(2.6rem,4.4vw,3.8rem);font-weight:700;line-height:1}
.today .ic{font-size:clamp(3rem,5vw,4.2rem)}
.today .info{display:flex;justify-content:space-between;gap:12px;padding:10px 20px;font-size:.72rem;line-height:1.55}
h2{font-size:1.1rem;font-weight:600}
h3{font-size:1rem;font-weight:600}
.map-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;flex:none}
.pill{background:var(--card);border-radius:18px;padding:9px 18px;font-size:.8rem}
.map{position:relative;flex:1;min-height:220px;border-radius:28px;background:var(--cardbg);overflow:hidden;margin-bottom: 24px;transition: all 0.3s ease;}
.stage{position:absolute;inset:0;transform-origin:0 0;transition:transform .4s;--z:1}
.stage svg{position:absolute;inset:0;width:100%;height:100%}
.stage polygon{vector-effect:non-scaling-stroke}
.sea{position:absolute;font-size:.7rem;letter-spacing:.2em;color:var(--muted);transform:translate(-50%,-50%) scale(calc(1/var(--z)));opacity:.7}
.mbtn,.zoom button{position:absolute;width:34px;height:34px;border-radius:50%;background:var(--card);font-size:15px;z-index:5;border:1px solid var(--line)}
.tl{top:16px;left:16px}.tr{top:16px;right:16px}.locate{bottom:16px;right:16px}
.zoom{position:absolute;right:16px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:10px;z-index:5}
.zoom button{position:static}
.tag{position:absolute;top:18px;left:50%;transform:translateX(-50%);background:var(--card);border:1px solid var(--line);border-radius:14px;padding:5px 14px;font-size:.72rem;z-index:5}
.mk{position:absolute;min-width:32px;height:32px;padding:0 6px;border-radius:16px;background:#000;color:#fff;display:flex;align-items:center;justify-content:center;font-size:.8rem;transform:translate(-50%,-50%) scale(calc(1/var(--z)));cursor:pointer;z-index:1;border:2px solid transparent;transition:border-color .2s}
.mk:hover,.mk.sel{border-color:var(--accent);z-index:2}
.mk em{position:absolute;left:calc(100% + 6px);font-style:normal;font-size:.72rem;white-space:nowrap;color:var(--text);background:var(--card);padding:2px 8px;border-radius:8px}
.promo{position:absolute;left:16px;bottom:16px;width:200px;background:#fff;color:#111;border-radius:22px;padding:18px;text-align:center;z-index:6}
.promo p{font-size:.78rem;font-weight:600;line-height:1.4;margin-bottom:10px}
.storm{height:56px;border-radius:12px;margin-bottom:12px;background:radial-gradient(circle,#eef 0 12%,#b9c3d6 30%,#3d4a66 62%,#1a2133)}
.cta{width:100%;background:#c8b8f0;color:#3a2f66;border-radius:14px;padding:11px;font-size:.8rem;font-weight:600}
.app.wide .days-wrap{display:none}
.right{display:flex;flex-direction:column;position:sticky;top:22px;}
.right h3{margin-top:6px}
.cities-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:14px;flex:none}
.cities-head button{font-size:.78rem}
.cities{display:flex;flex-direction:column;gap:12px;overflow:auto;padding-right:4px}
.city{background:var(--card);border-radius:22px;padding:18px 20px;display:flex;justify-content:space-between;align-items:center;text-align:left;width:100%;flex:none;transition:transform .15s}
.city:hover{transform:translateX(-3px)}
.city small{font-size:.7rem;color:var(--muted);display:block;margin-bottom:4px}
.city b{font-size:1.05rem;font-weight:600;display:block;margin-bottom:10px}
.city span{font-size:.75rem;color:var(--muted)}
.city .r{text-align:center}.city .r i{font-style:normal;font-size:2.2rem;display:block}
.city .r strong{font-size:1.3rem}
.pop{position:fixed;z-index:50;min-width:230px;background:var(--card);border:1px solid var(--line);border-radius:18px;padding:8px;box-shadow:0 12px 40px #0006}
.pop button{display:block;width:100%;text-align:left;padding:10px 14px;border-radius:12px;font-size:.85rem}
.pop button:hover{background:var(--line)}
.pop .n{padding:10px 14px;font-size:.82rem;line-height:1.4}
.pop .n small{display:block;color:var(--muted);font-size:.7rem}
.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:var(--accent);color:var(--ink);padding:10px 20px;border-radius:20px;font-size:.85rem;font-weight:600;z-index:60}
.day.skeleton{background:var(--card);animation:pulse 1.2s ease-in-out infinite}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.5}}

/* --- HARİTA TAM EKRAN MODU --- */
.map.fullscreen { position: fixed !important; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 1000; margin: 0; border-radius: 0; }
.map.fullscreen .map-head { display: none; }
.fs-close { display: none; position: absolute; bottom: 20px; left: 20px; width: 44px; height: 44px; font-size: 18px; background: #ff5a4f; color: #fff; border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; z-index: 1001; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.map.fullscreen .fs-close { display: grid; place-items: center; }

/* --- GÜN SEÇİMİ GÖRSELLERİ --- */
.days { transition: all 0.3s ease; }
.day:not(.today) { cursor: pointer; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); border: 2px solid transparent; position: relative; overflow: hidden; }
.day:not(.today):hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.day.sel { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(185, 217, 242, 0.15); background: var(--cardbg); }
.day.sel::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 40%; height: 3px; background: var(--accent); border-radius: 3px 3px 0 0; }

/* --- SAATLİK ŞERİT --- */
.hourly-wrap{margin:6px 0 22px;flex:none}
.hourly-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:10px}
.hourly-head h3{font-size:.95rem}
.hourly-sub{font-size:.72rem;color:var(--muted)}
.hourly{display:flex;gap:10px;overflow-x:auto;padding-bottom:6px;scroll-snap-type:x mandatory}
.hourly::-webkit-scrollbar{height:6px}
.hourly::-webkit-scrollbar-thumb{background:var(--line);border-radius:3px}
.hour{flex:0 0 78px;scroll-snap-align:start;background:var(--card);border-radius:20px;padding:12px 6px;display:flex;flex-direction:column;align-items:center;gap:8px;font-size:.78rem}
.hour .h-time{color:var(--muted);font-size:.7rem}
.hour .h-ic{font-size:1.6rem;line-height:1}
.hour .h-t{font-size:1rem;font-weight:600}
.hour .h-pop{font-size:.65rem;color:var(--accent)}
.hour.now{background:var(--accent);color:var(--ink)}
.hour.now .h-time,.hour.now .h-pop{color:var(--ink)}
.hour.now .h-pop{font-weight:600}
.hourly .hour.skeleton{animation:pulse 1.2s ease-in-out infinite}

/* --- GRAFİK --- */
.chart-wrap { margin: 10px 0 24px; flex: none; }
.chart-wrap h3 { font-size: 0.95rem; margin-bottom: 12px; }
.chart { position: relative; height: 160px; }
.chart .lines i { position: absolute; left: 56px; right: 0; border-top: 1px dashed var(--line); }
.chart .y { position: absolute; left: 0; font-size: 0.72rem; color: var(--muted); transform: translateY(-50%); }
.bars { position: absolute; left: 56px; right: 0; top: 0; bottom: 0; display: flex; justify-content: space-around; align-items: flex-end; }
.bar { position: relative; width: 9px; border-radius: 5px; background: var(--accent); height: 0; transition: height 0.6s; }
.bar span { position: absolute; top: calc(100% + 9px); left: 50%; transform: translateX(-50%); font-size: 0.65rem; color: var(--muted); white-space: nowrap; }

#favorites .city { background: var(--cardbg); border: 1px solid var(--line); }

/* --- FAVORİ DÜZENLEME MODU VE EKSİ BUTONU (YENİ) --- */
.city-wrap { position: relative; display: flex; align-items: center; width: 100%; margin-bottom: 12px; }
.city-wrap .city { margin-bottom: 0; }

.fav-remove {
  position: absolute; 
  top: -8px; right: -8px;
  width: 24px; height: 24px;
  border-radius: 50%; 
  background: #ff5a4f; 
  color: #fff;
  display: none; /* Varsayılan olarak gizli */
  place-items: center; 
  font-size: 16px; font-weight: bold; line-height: 1;
  border: 2px solid var(--panel); 
  z-index: 2; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Sadece düzenleme modu aktifken görünür yap */
#favorites.edit-mode .fav-remove {
  display: grid;
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.fav-empty {
  background: var(--cardbg); border: 1px dashed var(--line);
  border-radius: 22px; padding: 24px 20px; text-align: center;
  color: var(--muted); font-size: 0.85rem; cursor: pointer; transition: 0.2s;
}
.fav-empty:hover { border-color: var(--accent); color: var(--text); }

/* --- LOGIN / PROFİL / AYARLAR SAYFALARI --- */
.auth-page { background: var(--page); display: grid; place-items: center; overflow: hidden; position: relative; }
.bg-shape { position: absolute; border-radius: 50%; filter: blur(80px); z-index: 0; opacity: 0.4; animation: float 10s infinite ease-in-out alternate; }
.shape-1 { width: 400px; height: 400px; background: #b9d9f2; top: -100px; left: -100px; }
.shape-2 { width: 300px; height: 300px; background: #c8b8f0; bottom: -50px; right: -50px; animation-delay: -5s; }
@keyframes float { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(30px, 50px) scale(1.1); } }
.glass { background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--glass-border); box-shadow: 0 30px 60px rgba(0,0,0,0.4); z-index: 1; width: 100%; max-width: 420px; padding: 40px 32px; border-radius: 32px; position: relative; }
.auth-close { position: absolute; top: 20px; right: 20px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); display: grid; place-items: center; font-size: 14px; color: var(--text); transition: 0.2s; text-decoration: none; }
.auth-close:hover { background: rgba(255,255,255,0.2); }
.auth-header { text-align: center; margin-bottom: 30px; }
.auth-header h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 8px; }
.auth-sub { color: var(--muted); font-size: 0.9rem; }
.field { display: block; margin-bottom: 20px; }
.field[hidden] { display: none; }
.field span { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 8px; font-weight: 500; }
.field input { width: 100%; background: rgba(0,0,0,0.2); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; font: inherit; font-size: 0.95rem; color: var(--text); outline: none; transition: 0.3s; }
body.light .field input { background: rgba(255,255,255,0.5); }
.field input:focus { border-color: var(--accent); background: rgba(0,0,0,0.3); box-shadow: 0 0 0 4px rgba(185,217,242,0.1); }
body.light .field input:focus { background: #fff; }
.auth-err { color: #ff7f72; font-size: 0.85rem; margin-bottom: 15px; text-align: center; }
.auth-submit { width: 100%; background: var(--accent); color: var(--ink); border-radius: 16px; padding: 15px; font-weight: 700; font-size: 1rem; transition: 0.2s; border: none; cursor: pointer; }
.auth-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(185,217,242,0.3); }
.auth-switch { margin-top: 24px; text-align: center; font-size: 0.85rem; color: var(--muted); }
.auth-switch button { color: var(--accent); font-weight: 600; margin-left: 6px; transition: 0.2s; }
.auth-switch button:hover { text-decoration: underline; }

.profile-avatar-wrap { width: 100px; height: 100px; border-radius: 50%; background: rgba(185,217,242,0.1); border: 2px solid var(--accent); display: grid; place-items: center; margin: 0 auto 20px; color: var(--accent); }
.profile-avatar-wrap svg { width: 50px; height: 50px; }
.btn-danger { width: 100%; background: transparent; color: #ff7f72; border: 1px solid rgba(255,127,114,0.3); border-radius: 16px; padding: 15px; font-weight: 600; font-size: 0.95rem; transition: 0.2s; cursor: pointer; }
.btn-danger:hover { background: rgba(255,127,114,0.1); }

.settings-group { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.settings-row { display: flex; justify-content: space-between; align-items: center; background: rgba(0,0,0,0.15); padding: 16px; border-radius: 16px; border: 1px solid var(--line); }
body.light .settings-row { background: rgba(0,0,0,0.03); }
.settings-row b { display: block; font-size: 0.95rem; margin-bottom: 4px; }
.settings-row span { font-size: 0.8rem; color: var(--muted); }
.theme-toggle { display: flex; background: var(--card); border-radius: 12px; padding: 4px; border: 1px solid var(--line); }
.theme-toggle button { width: 40px; height: 36px; border-radius: 8px; font-size: 14px; transition: 0.2s; }
.theme-toggle button.active { background: var(--accent); color: var(--ink); }
.btn-toggle { padding: 8px 16px; border-radius: 12px; font-size: 0.85rem; font-weight: 600; background: var(--accent); color: var(--ink); }

/* --- ARAMA SONUÇLARI DÜZELTME --- */
.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 2px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Sonuçlar arasına ince çizgi */
}
.result-row:last-child {
  border-bottom: none;
}
.city-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  padding: 12px 14px;
  text-align: left;
  border-radius: 12px;
  transition: 0.2s;
}
.city-result:hover {
  background: var(--line);
}
.city-result span {
  font-weight: 600;
  font-size: 0.9rem;
}
.city-result small {
  color: var(--muted);
  font-size: 0.75rem;
}
.fav-btn {
  font-size: 1.2rem;
  padding: 10px;
  cursor: pointer;
  transition: transform 0.2s;
  background: transparent;
  border: none;
}
.fav-btn:hover {
  transform: scale(1.2);
}

/* --- ARAMA SONUÇLARI DÜZELTME (TAŞMA VE ÜST ÜSTE BİNME) --- */
.results {
  max-height: 350px !important;
  overflow-y: auto;
  padding: 8px !important;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.result-row:last-child {
  border-bottom: none;
}

.city-result {
  display: flex;
  flex-direction: column; /* Şehir ve bölgeyi alt alta yapar */
  align-items: flex-start;
  flex: 1;
  padding: 8px 12px;
  text-align: left;
  border-radius: 12px;
  transition: 0.2s;
  overflow: hidden; /* Taşmayı engeller */
}

.city-result:hover {
  background: var(--line);
}

.city-result span {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* Uzun isimleri ... şeklinde keser */
  width: 100%;
}

.city-result small {
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  margin-top: 2px;
}

/* Arama sonucundaki ilçeler için genel buton stili */
.results > button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 10px 14px;
  text-align: left;
  border-radius: 12px;
  margin-bottom: 2px;
  transition: 0.2s;
}
.results > button:hover {
  background: var(--line);
}
.results > button small {
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.fav-btn {
  font-size: 1.2rem;
  padding: 10px;
  cursor: pointer;
  transition: transform 0.2s;
  background: transparent;
  border: none;
  flex-shrink: 0; /* Kalbin sıkışmasını engeller */
}

.fav-btn:hover {
  transform: scale(1.2);
}


/* =========================================
   MOBİL DÜZEN - ESKİ TASARIMI KORUYAN SÜRÜM
   ========================================= */

@media (max-width: 768px) {

  /* GENEL */

  html, body {
    width: 100%;
    overflow-x: hidden;
  }

  .app {
    width: 100%;
    min-height: 100vh;
    padding: 14px;
    overflow-x: hidden;
  }

  .grid {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 22px;
  }

  .left,
  .right {
    width: 100%;
    min-width: 0;
  }

  .right {
    position: static;
    max-height: none;
    overflow: visible;
  }

  /* ÜST MENÜ */

  .top {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
  }

  .loc {
    white-space: normal;
    font-size: .8rem;
    margin-left: 5px;
  }

  .search-wrap {
    order: 10;
    flex: 1 1 100%;
    width: 100%;
    margin: 0;
  }

  .user-btn {
    margin-left: auto;
  }

  /* GÜN BAŞLIĞI */

  .row-head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 14px;
  }

  .range {
    display: flex;
    align-items: center;
  }

  .range button {
    margin: 0;
    font-size: .9rem;
  }

  .seg {
    width: 100%;
    display: flex;
  }

  .seg button {
    flex: 1;
    padding: 10px 5px;
    font-size: .75rem;
  }

  /* GÜN KARTLARI */

  .days {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin-bottom: 22px;
  }

  .day {
    position: relative;
    width: 100%;
    min-width: 0;
    height: 145px;
    min-height: 145px;
    padding: 12px 7px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    font-size: .8rem;
  }

  .day .nm {
    width: 85%;
    min-width: 0;
    padding-bottom: 7px;
    font-size: .76rem;
  }

  .day .ic {
    font-size: 1.9rem;
  }

  .day .t {
    font-size: 1.15rem;
  }

  .day small {
    font-size: .65rem;
    margin: 0;
  }

  /* BUGÜN KARTI */

  .day.today {
    grid-column: 1 / -1;
    width: 100%;
    height: auto;
    min-height: 145px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    border-radius: 18px;
  }

  .today .hd {
    padding: 11px 15px;
    font-size: .85rem;
  }

  .today .bd {
    padding: 12px 16px 0;
  }

  .today .big {
    font-size: 2.5rem;
  }

  .today .ic {
    font-size: 2.8rem;
  }

  .today .info {
    padding: 10px 15px;
    gap: 8px;
    font-size: .68rem;
  }

  /* HARİTA BAŞLIĞI */

  .map-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
  }

  .map-head h2 {
    font-size: 1rem;
  }

  .pill {
    padding: 8px 11px;
    font-size: .7rem;
    white-space: nowrap;
  }

  /* HARİTA */

  .map {
    position: relative;
    display: block;
    width: 100%;
    height: 300px;
    min-height: 300px;
    max-height: 300px;
    flex: none;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 20px;
  }

  .stage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .stage svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .mk {
    min-width: 28px;
    height: 28px;
    padding: 0 5px;
    font-size: 10px;
  }

  .mk em {
    font-size: 9px;
    padding: 3px 6px;
  }

  .sea {
    font-size: 8px;
    letter-spacing: .12em;
  }

  .promo {
    display: none;
  }

  .zoom {
    right: 9px;
    gap: 7px;
  }

  .zoom button,
  .mbtn {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .tag {
    top: 10px;
    font-size: 10px;
    padding: 5px 9px;
  }

  /* TAM EKRAN HARİTA */

  .map.fullscreen {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0;
    border-radius: 0;
    z-index: 1000;
  }

  .map.fullscreen .stage {
    width: 100%;
    height: 100%;
  }

  /* SAATLİK */

  .hourly-wrap {
    width: 100%;
    min-width: 0;
  }

  .hourly {
    width: 100%;
    overflow-x: auto;
    gap: 8px;
  }

  .hour {
    flex: 0 0 62px;
    padding: 10px 4px;
  }

  /* ŞEHİRLER */

  .cities {
    max-height: none;
    overflow: visible;
  }

  .city-wrap {
    width: 100%;
    margin-bottom: 9px;
  }

  .city {
    width: 100%;
    padding: 12px;
  }

  .city .r i {
    font-size: 1.5rem;
  }

  /* GRAFİK */

  .chart {
    width: 100%;
    height: 130px;
    overflow: hidden;
  }

  .chart-wrap {
    width: 100%;
    min-width: 0;
  }

  /* GİRİŞ */

  .glass {
    width: calc(100% - 24px);
    max-width: 420px;
    padding: 28px 18px;
    border-radius: 24px;
  }
}

/* =========================================
   ÇOK KÜÇÜK TELEFONLAR
   ========================================= */

@media (max-width: 380px) {

  .app {
    padding: 10px;
  }

  .days {
    gap: 8px;
  }

  .day {
    height: 135px;
    min-height: 135px;
    padding: 9px 4px;
  }

  .day .nm {
    font-size: .7rem;
  }

  .day .ic {
    font-size: 1.65rem;
  }

  .day .t {
    font-size: 1.05rem;
  }

  .day small {
    font-size: .6rem;
  }

  .day.today {
    height: auto;
    min-height: 135px;
  }

  .today .big {
    font-size: 2.2rem;
  }

  .today .ic {
    font-size: 2.4rem;
  }

  .map {
    height: 260px;
    min-height: 260px;
    max-height: 260px;
  }

  .pill {
    padding: 7px 8px;
    font-size: .65rem;
  }

  .hour {
    flex-basis: 56px;
  }
}



/* GÜNLER - EŞİT VE ORANTILI KUTULAR */

@media (max-width: 768px) {

  .days {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 5px !important;
    width: 100%;
  }

  /* BUGÜN KARTI */
  .day.today {
    grid-column: 1 / -1 !important;
    width: 100%;
    height: 145px !important;
    min-height: 145px !important;
    max-height: 145px !important;
  }

  /* ALTTAKİ 6 GÜN */
  .day:not(.today) {
    width: 100% !important;
    min-width: 0 !important;
    height: 125px !important;
    min-height: 125px !important;
    max-height: 125px !important;
    padding: 9px 2px !important;

    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;

    border-radius: 12px;
    overflow: hidden;
  }

  .day:not(.today) .nm {
    width: 100%;
    min-width: 0;
    font-size: clamp(9px, 2.5vw, 12px);
    padding-bottom: 5px;
    white-space: nowrap;
  }

  .day:not(.today) .ic {
    font-size: clamp(17px, 5vw, 23px);
  }

  .day:not(.today) .t {
    font-size: clamp(12px, 3.5vw, 16px);
  }

  .day:not(.today) small {
    font-size: clamp(8px, 2vw, 10px);
    white-space: nowrap;
  }
}
