/* =============================================================
   MeteoFace — Ana sayfa (hava durumu haritası) | home.css
   Ortak tasarım dili ../assets/mf-ui.css'ten gelir; bu dosya yalnız
   ana sayfanın yerleşimini, şehir kartını ve harita işaretçilerini tanımlar.

   Yerleşim: üst bar (sol üst) · şehir kartı (masaüstünde sol panel,
   mobilde alttan açılan sayfa) · katman + zaman çubuğu (alt orta,
   lejant da içinde) · araçlar ortak sağ sütunda. Alt çubuğun gerçek
   yüksekliği app.js tarafından --tb-h olarak yazılır.
============================================================= */

:root {
    --tb-h: 112px;
    --top-h: 48px;
    --bottom-0: max(var(--nav-b), var(--safe-b));
    --above-tb: calc(var(--bottom-0) + var(--tb-h) + var(--gap) * 2);
}

*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
    margin: 0; height: 100%; overflow: hidden;
    background: var(--base); color: var(--ink);
    font-family: var(--font); font-size: 14px;
    -webkit-font-smoothing: antialiased; overscroll-behavior: none;
}
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

#map { position: absolute; inset: 0; z-index: 0; }
.map-vignette {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        linear-gradient(180deg, rgba(4,10,16,.40) 0%, transparent 16%),
        linear-gradient(0deg,   rgba(4,10,16,.50) 0%, transparent 22%);
}

.hud-top, .time-bar, .city-card, .search-results {
    background: var(--glass);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

/* açılış: paneller yükleyici kalkınca belirir */
.hud-top, .time-bar, .mf-side { transition: opacity .45s var(--ease), transform .45s var(--ease); }
body.booting .hud-top, body.booting .mf-side { opacity: 0; transform: translateY(-6px); }
body.booting .time-bar { opacity: 0; transform: translate(-50%, 10px); }

/* =============================================
   ÜST BAR
============================================= */
.hud-top {
    position: absolute; z-index: 1100;
    top: calc(var(--gap) + var(--safe-t));
    left: calc(var(--gap) + var(--safe-l));
    height: var(--top-h);
    display: flex; align-items: center; gap: 10px;
    padding: 6px 6px 6px 8px; border-radius: var(--r-lg);
}
.brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.brand-logo { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; font-size: 14px; letter-spacing: -.01em; }
.brand-module { font-size: 12px; color: var(--muted); white-space: nowrap; }

.search-wrap { position: relative; display: flex; align-items: center; margin-left: 6px; }
.search-wrap > i { position: absolute; left: 12px; font-size: 12px; color: var(--muted); pointer-events: none; }
#city-search {
    width: 180px; height: 36px; padding: 0 12px 0 32px;
    border-radius: 12px; border: 1px solid transparent;
    background: rgba(255,255,255,.06); color: var(--ink);
    font: inherit; font-size: 13px; outline: none;
    transition: width .3s var(--ease), border-color .2s, background .2s;
}
#city-search::placeholder { color: var(--muted); }
#city-search:focus { width: 240px; border-color: var(--line-hi); background: rgba(255,255,255,.09); }
#city-search::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }
.search-results {
    display: none;
    position: absolute; top: calc(100% + 8px); left: 0;
    width: 280px; max-height: 300px; overflow-y: auto; padding: 6px;
    background: var(--glass-hi); border-radius: var(--r-md);
}
.search-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 10px; border-radius: var(--r-sm);
    font-size: 13px; cursor: pointer;
}
.search-item::before { content: '\f3c5'; font: var(--fa-font-solid); font-size: 11px; color: var(--muted); }
.search-item:hover, .search-item.active { background: rgba(255,255,255,.07); }

.tr-badge {
    display: grid; place-items: center;
    width: 22px; height: 16px; border-radius: 4px;
    background: #e30a17; color: #fff; font-size: 9px; font-weight: 700; letter-spacing: .04em;
}

/* =============================================
   ALT ÇUBUK — katmanlar, lejant, zaman
============================================= */
.time-bar {
    position: absolute; z-index: 1050;
    left: 50%; transform: translateX(-50%);
    bottom: calc(var(--gap) + var(--bottom-0));
    width: min(760px, calc(100vw - 2 * var(--gap) - var(--safe-l) - var(--safe-r)));
    padding: 10px 14px 12px 10px;
    border-radius: var(--r-lg);
}
.mode-bar { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.mode-chip {
    display: inline-flex; align-items: center; gap: 7px;
    height: 34px; padding: 0 12px; border: 1px solid transparent; border-radius: 11px;
    background: transparent; color: var(--muted);
    font-size: 13px; font-weight: 600; cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}
.mode-chip i { font-size: 13px; }
.mode-chip:hover { color: var(--ink); background: rgba(255,255,255,.05); }
.mode-chip.active { background: var(--amber-bg); border-color: rgba(255,181,74,.45); color: var(--amber); }

.legend {
    margin-left: auto; display: flex; align-items: center; gap: 8px;
    min-width: 180px; transition: opacity .3s;
}
.legend-bar { flex: 1; height: 8px; border-radius: 4px; border: 1px solid rgba(255,255,255,.12); }
.legend-labels { display: contents; }
.legend-labels span { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.legend-labels span:first-child { order: -1; }
/* renk alanı lejantı: işaretli ölçek */
.legend.ticks { flex-direction: column; align-items: stretch; gap: 3px; min-width: 230px; }
.legend.ticks .legend-labels { display: block; position: relative; height: 13px; margin: 0 6px; }
.legend.ticks .legend-labels span { position: absolute; top: 0; transform: translateX(-50%); font-size: 10.5px; }
.legend.ticks .legend-labels span:first-child { transform: none; margin-left: -6px; }
.legend.ticks .legend-labels span:last-child { transform: translateX(-100%); margin-left: 6px; }
.legend.ticks .legend-labels em { font-style: normal; opacity: .75; }
.legend-title { display: none; }
.legend.ticks .legend-title { display: block; font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--ink); }
.legend.ticks .legend-title small { font-weight: 500; color: var(--muted); margin-left: 4px; }
.legend.ticks .legend-bar { flex: none; height: 10px; }

/* =============================================
   ALTLIK + RENK ALANI PANELİ (sağ araç grubunun solunda)
============================================= */
.view-pop {
    position: absolute; right: calc(100% + 10px); top: 0; z-index: 1150;
    width: 292px; padding: 12px 14px 14px; border-radius: var(--r-md);
    animation: pop-in .22s var(--ease);
}
@keyframes pop-in { from { opacity: 0; transform: translateX(6px) scale(.98); } to { opacity: 1; transform: none; } }
.pop-title { margin: 0 0 8px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pop-title.pop-gap { margin-top: 14px; }
.basemap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.bm-tile {
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    padding: 0 0 6px; border: 1px solid var(--line); border-radius: 10px;
    background: rgba(255,255,255,.03); font: inherit; font-size: 11px; font-weight: 600; color: var(--muted);
    cursor: pointer; overflow: hidden; transition: border-color .2s, color .2s;
}
.bm-tile:hover { color: var(--ink); }
.bm-tile[aria-checked="true"] { border-color: var(--amber); color: var(--ink); }
.bm-swatch { width: 100%; height: 40px; display: block; }
.bm-realistic { background: radial-gradient(circle at 30% 40%, #c9d6b0 0 8%, transparent 9%), linear-gradient(135deg, #2b5876 0%, #4e7d5b 45%, #b9a77b 70%, #1f4f74 100%); }
.bm-dark  { background: linear-gradient(135deg, #1b1f24, #2a3038 50%, #15181c); box-shadow: inset 0 0 0 1px #3a424c; }
.bm-light { background: linear-gradient(135deg, #eef1f3, #d9e0e5 55%, #c8d3da); }
.bm-night { background: radial-gradient(circle at 60% 55%, #ffcf70 0 2%, transparent 3%), radial-gradient(circle at 35% 40%, #ffcf70 0 1.5%, transparent 2.5%), linear-gradient(135deg, #0b1630, #1a2a52); }
.pop-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; font-size: 13px; cursor: pointer; }
.pop-range { flex-direction: column; align-items: stretch; gap: 6px; margin-top: 12px; }
.pop-range span { display: flex; justify-content: space-between; }
.pop-range output { color: var(--muted); font-variant-numeric: tabular-nums; }
.pop-range input[type=range] { width: 100%; accent-color: var(--amber); }
.pop-note { margin: 12px 0 0; font-size: 11.5px; line-height: 1.45; color: var(--muted); }

.cc-link-wait { display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; font-size: 12.5px; color: var(--muted); }

.tb-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.play-btn {
    position: relative; width: 44px; height: 44px; flex: none;
    display: grid; place-items: center;
    border: 0; border-radius: 50%;
    background: var(--amber); color: #1a1204; font-size: 15px; cursor: pointer;
    transition: transform .15s, box-shadow .3s;
}
.play-btn:hover { box-shadow: 0 0 0 6px rgba(255,181,74,.16); }
.play-btn:active { transform: scale(.94); }
.play-btn .fa-play { margin-left: 3px; }
.play-btn.playing::after {
    content: ''; position: absolute; inset: -4px; border-radius: 50%;
    border: 2px solid rgba(255,181,74,.35); animation: tb-ring 2s infinite;
}
@keyframes tb-ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }

.tb-clock { display: flex; flex-direction: column; width: 150px; flex: none; min-width: 0; }
.tb-time { font-size: 20px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.tb-rel { font-size: 12px; color: var(--muted); margin-top: 2px; white-space: nowrap; }
.tb-rel.is-now { color: var(--cyan); }
.tb-rel.is-now::before {
    content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 6px; vertical-align: 1px;
    border-radius: 50%; background: var(--cyan); animation: mf-pulse 1.8s infinite;
}

.tb-track { position: relative; flex: 1; min-width: 0; padding-bottom: 16px; }
#time-slider {
    -webkit-appearance: none; appearance: none;
    width: 100%; height: 26px; margin: 0; background: transparent; cursor: pointer;
    --p: 0%;
}
#time-slider:disabled { opacity: .4; cursor: default; }
#time-slider::-webkit-slider-runnable-track {
    height: 6px; border-radius: 3px;
    background: linear-gradient(90deg, var(--amber) 0 var(--p), rgba(150,195,225,.18) var(--p) 100%);
}
#time-slider::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(150,195,225,.18); }
#time-slider::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--amber); }
#time-slider::-webkit-slider-thumb {
    -webkit-appearance: none; width: 18px; height: 18px; margin-top: -6px; border-radius: 50%;
    background: #fff; border: 3px solid var(--amber); box-shadow: 0 0 10px rgba(255,181,74,.5);
}
#time-slider::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--amber); }
.tb-labels { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; }
.tb-labels span { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* =============================================
   ŞEHİR KARTI
============================================= */
.city-card {
    position: absolute; z-index: 1080;
    top: calc(var(--gap) * 2 + var(--top-h) + var(--safe-t));
    left: calc(var(--gap) + var(--safe-l));
    width: 340px;
    max-height: calc(100% - var(--gap) * 3 - var(--top-h) - var(--safe-t) - var(--above-tb) + var(--gap));
    overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
    border-radius: var(--r-lg);
    animation: cc-in .3s var(--ease);
}
@keyframes cc-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.cc-handle { display: none; }
.sheet-backdrop { display: none; }

.cc-head { display: flex; align-items: center; gap: 10px; padding: 14px 12px 4px 16px; }
.cc-title { flex: 1; min-width: 0; }
.cc-title b { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-title small { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.cc-badge { flex: none; }
.cc-badge.live { background: var(--cyan-bg); color: var(--cyan); }
.cc-badge.fc { background: var(--amber-bg); color: var(--amber); }
.cc-x {
    width: 32px; height: 32px; flex: none; display: grid; place-items: center;
    border: 0; border-radius: 10px; background: var(--surface); color: var(--muted); cursor: pointer;
}
.cc-x:hover { background: var(--surface-2); color: var(--ink); }

.cc-main { display: flex; align-items: center; gap: 12px; padding: 6px 16px 12px; }
.cc-temp { font-size: 54px; font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.cc-temp sup { font-size: 20px; font-weight: 600; vertical-align: 26px; margin-left: 2px; color: var(--muted); letter-spacing: 0; }
.cc-desc { flex: 1; min-width: 0; }
.cc-desc b { display: block; font-size: 14px; font-weight: 600; }
.cc-desc small { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.cc-icon { width: 64px; height: 64px; flex: none; }
.cc-icon svg { width: 64px; height: 64px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); }

.cc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 12px; }
.cc-tile {
    display: flex; align-items: center; gap: 10px;
    padding: 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
}
.cc-tile > i { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 8px; background: rgba(87,211,234,.1); color: var(--cyan); font-size: 12px; }
.cc-tile b { display: block; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cc-tile small { display: block; font-size: 11px; color: var(--muted); }
.cc-wdir { display: inline-block; font-size: 10px; color: var(--muted); margin-left: 4px; transform-origin: center; }

.cc-sec { padding: 12px 12px 0; }
.cc-sec-title { margin: 0 4px 6px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cc-hours {
    display: flex; gap: 4px; overflow-x: auto; padding-bottom: 6px;
    scrollbar-width: thin; scroll-snap-type: x proximity;
}
.cc-hour {
    flex: none; width: 52px; display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 8px 2px; border: 1px solid transparent; border-radius: 12px;
    background: var(--surface); cursor: pointer; scroll-snap-align: start;
    transition: background .2s, border-color .2s;
}
.cc-hour:hover { background: var(--surface-2); }
.cc-hour.current { border-color: rgba(255,181,74,.55); background: var(--amber-bg); }
.cc-hour span { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cc-hour b { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cc-hour svg { width: 26px; height: 26px; }
.cc-hour svg * { animation: none !important; }

.cc-links { display: flex; gap: 6px; padding: 12px; }
.cc-links a {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    height: 36px; border-radius: 11px; background: var(--surface); border: 1px solid var(--line);
    font-size: 12.5px; font-weight: 600; color: var(--ink-2);
    transition: background .2s, color .2s;
}
.cc-links a:hover { background: var(--surface-2); color: var(--amber); }
.cc-share {
    flex: none; width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer;
    border-radius: 11px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
    transition: background .2s, color .2s;
}
.cc-share:hover { background: var(--surface-2); color: var(--amber); }

/* =============================================
   HARİTA İŞARETÇİLERİ (şehirler)
============================================= */
.city-marker { display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; }
.marker-content {
    display: flex; flex-direction: column; align-items: center;
    transform: translateY(-18px) scale(var(--marker-scale, 1));
    transform-origin: bottom center;
    transition: transform .12s linear;
}
.city-marker:hover { z-index: 9999; }
.city-marker:hover .marker-content { transform: translateY(-18px) scale(calc(var(--marker-scale, 1) * 1.25)); }
.city-marker.selected .marker-content { transform: translateY(-18px) scale(calc(var(--marker-scale, 1) * 1.25)); filter: drop-shadow(0 0 8px rgba(255,181,74,.7)); }
.temp-value {
    font-size: 15px; font-weight: 700; line-height: 1;
    text-shadow: 0 0 4px rgba(0,0,0,.8);
    background: rgba(4,12,20,.55); padding: 3px 6px; border-radius: 6px;
    font-variant-numeric: tabular-nums;
}
.icon-box, .icon-box svg { width: 48px; height: 48px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.8)); }
.wind-arrow { font-size: 19px; filter: drop-shadow(0 2px 3px black); }

/* animasyonlu hava ikonları (js/icons.js) */
@keyframes mf-spin { to { transform: rotate(360deg); } }
@keyframes mf-float3 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes mf-rain { 0% { transform: translateY(-5px); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateY(5px); opacity: 0; } }
@keyframes mf-snow { 0% { transform: translateY(-5px); opacity: 0; } 100% { transform: translateY(5px); opacity: 1; } }
@keyframes mf-flash { 0%, 90%, 100% { opacity: 0; } 92%, 98% { opacity: 1; } }
.anm-sun { animation: mf-spin 12s linear infinite; transform-origin: 32px 32px; transform-box: view-box; }
.anm-cloud { animation: mf-float3 3s ease-in-out infinite; }
.anm-drop { animation: mf-rain 1s linear infinite; }
.anm-flake { animation: mf-snow 2s linear infinite; }
.anm-bolt { animation: mf-flash 3s infinite; }

/* =============================================
   MAPBOX — logo ve atıf alt çubuğun üstünde
============================================= */
.mapboxgl-ctrl-bottom-left, .mapboxgl-ctrl-bottom-right { bottom: var(--bottom-0); }
@media (max-width: 1200px) {
    .mapboxgl-ctrl-bottom-left, .mapboxgl-ctrl-bottom-right { bottom: var(--above-tb); }
}
body { --mf-toast-b: calc(var(--tb-h) + var(--gap)); }

/* =============================================
   KISA EKRAN
============================================= */
@media (min-width: 761px) and (max-height: 640px) {
    .cc-sec-title { display: none; }
    .cc-hour { padding: 5px 2px; }
    .cc-hour svg { width: 22px; height: 22px; }
}

/* =============================================
   MOBİL
============================================= */
@media (max-width: 760px) {
    :root { --top-h: 46px; }
    .hud-top { right: calc(var(--gap) * 2 + var(--side-w) + var(--safe-r)); padding: 5px 5px 5px 7px; }
    .brand-module { display: none; }
    .search-wrap { margin-left: auto; min-width: 0; flex: 1; justify-content: flex-end; }
    #city-search, #city-search:focus { width: 100%; max-width: 220px; }
    .search-results { left: auto; right: 0; width: min(300px, calc(100vw - 24px)); }

    .time-bar { padding: 8px 10px 10px 8px; border-radius: 18px; }
    .mode-bar { gap: 3px; }
    .mode-chip { flex: 1; justify-content: center; padding: 0 6px; gap: 5px; font-size: 12px; height: 32px; }
    .legend, .legend.ticks { flex-basis: 100%; min-width: 0; margin: 6px 4px 0; }
    /* panel telefonda ekranın ortasında, araçların altında */
    /* telefonda panel üst çubuğun altında, araç sütununun soluna açılır */
    .view-pop {
        position: fixed;
        top: calc(var(--gap) + var(--safe-t) + var(--top-h) + 10px);
        right: calc(var(--gap) * 2 + var(--side-w) + var(--safe-r));
        width: min(292px, calc(100vw - var(--gap) * 3 - var(--side-w) - var(--safe-l) - var(--safe-r)));
        max-height: calc(100dvh - var(--gap) - var(--safe-t) - var(--top-h) - 20px - var(--tb-h, 140px) - var(--nav-b));
        overflow: auto;
    }
    .tb-row { gap: 10px; margin-top: 8px; }
    .play-btn { width: 40px; height: 40px; font-size: 14px; }
    .tb-clock { width: 112px; }
    .tb-time { font-size: 17px; }

    /* şehir kartı → alttan açılan sayfa */
    .sheet-backdrop {
        display: block; position: fixed; inset: 0; z-index: 1240;
        background: rgba(2,8,14,.35); opacity: 0; transition: opacity .25s;
    }
    .sheet-backdrop.show { opacity: 1; }
    .city-card {
        position: fixed; z-index: 1245;
        top: auto; left: 0; right: 0; bottom: var(--nav-b);
        width: 100%; max-height: 72vh; max-height: 72dvh;
        border-radius: 22px 22px 0 0; border-width: 1px 1px 0;
        animation: cc-up .32s var(--ease);
        touch-action: pan-y;
    }
    @keyframes cc-up { from { transform: translateY(100%); } to { transform: none; } }
    .mapboxgl-ctrl-bottom-left, .mapboxgl-ctrl-bottom-right { bottom: max(var(--above-tb), calc(var(--nav-b) + var(--cc-h, 0px))); }
    .cc-handle { display: block; width: 40px; height: 4px; margin: 8px auto 0; border-radius: 4px; background: rgba(255,255,255,.22); }
    .cc-head { padding-top: 8px; }
    .cc-links { padding-bottom: 14px; }
}
@media (max-width: 380px) {
    .brand-text { display: none; }
    .mode-chip span { font-size: 11.5px; }
    .tb-clock { width: 96px; }
}

/* Analiz katmanları */
.mf-flow { position: absolute; top: 0; left: 0; pointer-events: none; }
.pop-sub { margin-left: 4px; font-size: 11px; color: var(--muted); font-weight: 500; }
.front-key { display: flex; gap: 12px; margin: 6px 0 0; font-size: 12px; color: var(--ink-2, #c4d4e1); }
.front-key span { display: inline-flex; align-items: center; gap: 5px; }
.fk { display: inline-block; width: 18px; height: 3px; border-radius: 2px; position: relative; }
.fk-cold { background: #3d7eff; } .fk-warm { background: #ff4d4d; } .fk-stat { background: #b56cff; }
.fk-cold::after { content: ""; position: absolute; left: 5px; bottom: 2px; border: 4px solid transparent; border-bottom: 6px solid #3d7eff; border-top: 0; }
.fk-warm::after { content: ""; position: absolute; left: 5px; bottom: 2px; width: 8px; height: 4px; border-radius: 8px 8px 0 0; background: #ff4d4d; }

/* haritaya dokununca değer */
.mf-probe {
    position: absolute; z-index: 5; transform: translate(-50%, calc(-100% - 8px)); pointer-events: none;
    display: flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 10px;
    background: rgba(10,18,32,.88); color: #fff; font-size: 14px; font-variant-numeric: tabular-nums;
    border: 1px solid rgba(255,255,255,.18); box-shadow: 0 6px 18px rgba(0,0,0,.35); white-space: nowrap;
}
.mf-probe[hidden] { display: none; }
.mf-probe i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(255,255,255,.7); }
.mf-probe::after { content: ''; position: absolute; left: 50%; bottom: -5px; width: 8px; height: 8px; background: inherit; border-right: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); transform: translateX(-50%) rotate(45deg); }
