.weather { padding: 1rem 0 2rem; }
.weather__title { text-align: center; margin: .5rem 0 1rem; }

.weather-map-wrap {
    position: relative; max-width: 820px; margin: 0 auto;
    background: #eef3f8; border-radius: 12px; overflow: hidden;
}
.weather-map { width: 100%; height: auto; display: block; cursor: grab; touch-action: none; }
.wx-region { cursor: pointer; transition: fill .15s, stroke-width .1s; }
.wx-region:hover { stroke: #1a2733; stroke-width: 2; }

/* Zoom kontrolleri */
.weather-zoom { position: absolute; top: 8px; right: 8px; display: flex; flex-direction: column; gap: 4px; z-index: 6; }
.weather-zoom button {
    width: 30px; height: 30px; border: 1px solid #cdd9e5; background: #fff; color: #1a2733;
    border-radius: 6px; font-size: 17px; line-height: 1; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.15);
}
.weather-zoom button:hover { background: #f0f4f8; }

/* Tooltip */
.weather-tooltip {
    position: absolute; background: #1a2733; color: #fff; padding: 4px 9px; border-radius: 6px;
    font-size: 12px; pointer-events: none; white-space: nowrap; z-index: 10; box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.weather-tooltip[hidden] { display: none; }

/* Legend — kondisyon renkleri */
.weather-legend { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .35rem .9rem; margin-top: .75rem; font-size: 12px; color: #5a6b7b; }
.wx-lg { display: inline-flex; align-items: center; gap: 5px; }
.wx-lg i { width: 13px; height: 13px; border-radius: 3px; border: 1px solid rgba(0,0,0,.12); display: inline-block; }

/* Harita üzeri ana şehir etiketleri (SVG) */
.wx-labels text.wx-label {
    fill: #16222e; font-weight: 700; paint-order: stroke; stroke: #fff;
    stroke-linejoin: round; font-family: inherit;
}
.wx-tip-row { display: block; margin-top: 2px; font-size: 11px; opacity: .92; }

.weather-updated { text-align: center; color: #8895a3; font-size: 12px; margin-top: 1rem; }

/* Bölge listesi tablosu (Gün içi / Haftalık) */
.weather-table { max-width: 820px; margin: 1.5rem auto 0; }
.wx-tabs { display: flex; gap: 6px; margin-bottom: .6rem; }
.wx-tab { flex: 0 0 auto; padding: 6px 16px; border: 1px solid #cdd9e5; background: #fff; color: #4a5b6b; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.wx-tab.is-active { background: #1a2733; color: #fff; border-color: #1a2733; }
.wx-search { width: 100%; box-sizing: border-box; padding: 9px 12px; margin-bottom: .6rem; border: 1px solid #cdd9e5; border-radius: 8px; font-size: 14px; }
.wx-tbl-wrap { max-height: 70vh; overflow: auto; border: 1px solid #e3eaf1; border-radius: 10px; }
.wx-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.wx-tbl th, .wx-tbl td { padding: 7px 6px; text-align: center; border-bottom: 1px solid #eef3f8; white-space: nowrap; }
.wx-tbl thead th { background: #f3f6f9; color: #5a6b7b; font-weight: 600; position: sticky; top: 0; z-index: 1; }
.wx-tbl tbody tr:last-child td { border-bottom: 0; }
.wx-th-name, .wx-td-name { text-align: left !important; position: sticky; left: 0; background: #fff; }
.wx-tbl thead .wx-th-name { background: #f3f6f9; z-index: 2; }
.wx-td-name { font-weight: 600; color: #1a2733; }
.wx-td-name span { vertical-align: middle; }
.wx-ic-sm { width: 20px; height: 20px; display: inline-block; vertical-align: middle; }
.wx-tbl td b { font-weight: 700; margin-left: 2px; }
.wx-tbl td small { color: #8895a3; margin-left: 3px; }
.wx-tbl td.wx-na { color: #c2ccd6; }
.wx-fav { border: 0; background: none; cursor: pointer; font-size: 16px; line-height: 1; color: #c2ccd6; margin-right: 6px; padding: 0; vertical-align: middle; }
.wx-fav.on { color: #f3b800; }
.wx-tbl-hint { font-size: 11px; color: #8895a3; margin: .5rem 0 0; }
.wx-tbl-empty { padding: 1rem; text-align: center; color: #8895a3; }
.wx-label-g { cursor: pointer; }

/* Modal */
.weather-modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.weather-modal[hidden] { display: none; }
.weather-modal__box { background: #fff; color: #1a2733; border-radius: 12px; padding: 1.25rem 1.25rem 1.5rem; max-width: 560px; width: 92%; max-height: 86vh; overflow: auto; position: relative; }
.weather-modal__box h3 { margin: 0 1.5rem .75rem 0; display: flex; align-items: center; }
.weather-modal__box h4 { margin: 1rem 0 .4rem; font-size: .9rem; color: #4a5b6b; }
.wx-meta { margin: 0 0 .5rem; color: #5a6b7b; font-size: 13px; }
.weather-modal__close { position: absolute; top: .4rem; right: .6rem; border: 0; background: none; font-size: 1.7rem; line-height: 1; cursor: pointer; color: #5a6b7b; }

.wx-ic { width: 22px; height: 22px; display: block; margin: 2px auto; }
.wx-ic-lg { width: 26px; height: 26px; margin-right: 8px; }
.wx-hours { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .3rem; }
.wx-h { flex: 0 0 auto; text-align: center; background: #f3f6f9; border-radius: 8px; padding: .4rem .5rem; font-size: 12px; min-width: 52px; }
.wx-h small { display: block; color: #7890a0; font-size: 10px; }
.wx-days { display: flex; flex-wrap: wrap; gap: .4rem; }
.wx-d { flex: 1 1 80px; text-align: center; background: #f3f6f9; border-radius: 8px; padding: .45rem; font-size: 12px; }
.wx-d b { font-size: 13px; }
.wx-d small { color: #7890a0; margin-left: 3px; }
.wx-d em { display: block; color: #7890a0; font-style: normal; font-size: 10px; margin-top: 2px; }
