:root {
    --bg-color: #0a0a0a;
    --text-color: #f5f5f5;
    --header-bg: rgba(10, 10, 10, 0.9);
    --accent-color: rgba(255, 255, 255, 0.08);
    --accent-hover: rgba(255, 255, 255, 0.15);
    --border-color: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(15, 15, 15, 0.8);
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --blue: #3b82f6;
    --sky: #0ea5e9;
    --orange: #f97316;
    --yellow: #eab308;
    --card-radius: 16px;
}
[data-theme="light"] {
    --bg-color: #fafafa;
    --text-color: #111827;
    --header-bg: rgba(249, 250, 251, 0.9);
    --accent-color: rgba(0, 0, 0, 0.05);
    --accent-hover: rgba(0, 0, 0, 0.1);
    --border-color: rgba(0, 0, 0, 0.08);
    --card-bg: rgba(255, 255, 255, 0.9);
    --success-color: #059669;
    --warning-color: #d97706;
    --error-color: #dc2626;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --blue: #2563eb;
    --sky: #0284c7;
    --orange: #ea580c;
    --yellow: #ca8a04;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
    position: relative;
}
body.w-scroll {
    overflow: auto;
}
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 60px;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1200;
    box-shadow: var(--shadow-sm);
}
.header-container {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    height: 100%; display: flex;
    align-items: center; justify-content: space-between;
}
.logo {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none; color: var(--text-color);
    flex-shrink: 0; transition: var(--transition);
}
.logo:hover { opacity: 0.9; }
.logo img { width: 32px; height: 32px; filter: brightness(0) invert(1); }
[data-theme="light"] .logo img { filter: brightness(0); }
@font-face {
    font-family: "B1ackFont";
    src: url("../font.otf") format("opentype");
    font-weight: normal; font-style: normal;
}
.logo-text {
    font-family: "B1ackFont", sans-serif;
    font-size: 1.5rem; font-weight: 700; letter-spacing: -0.5px;
}
.nav {
    display: none; position: absolute; top: 60px; left: 0; right: 0;
    background: var(--bg-color); border-bottom: 1px solid var(--border-color);
    padding: 20px; flex-direction: column; gap: 15px;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.nav.active { display: flex; }
.nav-link {
    color: var(--text-color); text-decoration: none;
    padding: 12px 16px; border-radius: 10px; transition: var(--transition);
    font-weight: 500; text-align: center; font-size: 0.95rem;
    border: 1px solid transparent;
}
.nav-link:hover { background: var(--accent-color); border-color: var(--border-color); }
.nav-link.active { background: var(--accent-color); border-color: var(--border-color); }
@media (min-width: 768px) {
    .nav {
        position: static; display: flex; flex-direction: row; padding: 0;
        background: none; border: none; backdrop-filter: none; gap: 8px; box-shadow: none;
    }
    .nav-link { position: relative; z-index: 3; padding: 8px 16px; font-size: 0.9rem; }
}
.controls { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.lang-dropdown { position: relative; }
.lang-dropdown-btn { cursor: pointer; }
.lang-dropdown-menu {
    position: absolute; top: calc(100% + 8px); left: 50%;
    transform: translateX(-50%) translateY(-8px) scale(0.95);
    background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: 12px; padding: 6px; min-width: 180px;
    opacity: 0; visibility: hidden;
    transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: var(--shadow-lg); z-index: 1001;
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.lang-dropdown-menu.active { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0) scale(1); }
.lang-dropdown-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px;
    border-radius: 8px; color: var(--text-color); text-decoration: none;
    font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: var(--transition);
    border: none; background: none; width: 100%; text-align: left;
}
.lang-dropdown-item:hover { background: var(--accent-color); }
.lang-dropdown-item img { width: 22px; height: 22px; border-radius: 2px; object-fit: contain; flex-shrink: 0; }
.lang-dropdown-item .lang-name { flex: 1; }
.lang-dropdown-item .lang-check { opacity: 0; transition: var(--transition); font-size: 0.85rem; }
.lang-dropdown-item.active .lang-check { opacity: 0.6; }
.lang-dropdown-item.active { background: var(--accent-color); }
.control-btn {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--accent-color); border: 1px solid var(--border-color);
    color: var(--text-color); cursor: pointer; display: flex;
    align-items: center; justify-content: center; font-size: 1rem;
    transition: var(--transition); text-decoration: none; box-shadow: var(--shadow-sm);
}
.control-btn:hover { background: var(--accent-hover); transform: scale(1.05); box-shadow: var(--shadow-md); }
.control-btn img { width: 20px; height: 20px; object-fit: contain; }
.theme-img { filter: brightness(0) invert(1); }
[data-theme="light"] .theme-img { filter: brightness(0); }
@media (min-width: 768px) { .control-btn { width: 40px; height: 40px; } }
.menu-toggle {
    display: flex; flex-direction: column; gap: 5px; padding: 8px;
    background: none; border: none; cursor: pointer;
}
.menu-toggle span { width: 24px; height: 2px; background: var(--text-color); transition: var(--transition); border-radius: 1px; }
@media (min-width: 768px) { .menu-toggle { display: none; } }
@media (max-width: 767px) { .controls .lang-dropdown { display: none; } }
.nav-lang-bar { display: none; }
@media (max-width: 767px) {
    .nav-lang-bar { display: flex; justify-content: center; gap: 12px; padding: 16px 0 8px 0; }
}
.nav-lang-btn {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--accent-color); border: 1px solid var(--border-color);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: var(--transition); text-decoration: none; box-shadow: var(--shadow-sm);
}
@media (min-width: 768px) { .nav-lang-btn { display: none; } }
.nav-lang-btn:hover, .nav-lang-btn.active { background: var(--accent-hover); transform: scale(1.05); box-shadow: var(--shadow-md); }
.nav-lang-btn img { width: 20px; height: 20px; object-fit: contain; }
main { padding-top: 80px; min-height: calc(100vh - 60px); flex: 1; }
.container { max-width: 1200px; margin: 0 auto; padding: 16px 20px; }
footer {
    height: 60px; background: var(--header-bg);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color); box-shadow: 0 -1px 2px 0 rgba(0, 0, 0, 0.1);
}
.footer-container {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.footer-center { display: flex; align-items: center; gap: 24px; }
.footer-right { display: flex; align-items: center; flex-shrink: 0; }
footer a { color: var(--text-color); text-decoration: none; opacity: 0.7; transition: var(--transition); font-size: 0.875rem; font-weight: 400; }
footer a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
footer img { height: 31px; width: auto; opacity: 0.7; transition: var(--transition); }
footer img:hover { opacity: 1; }
@media (max-width: 767px) {
    footer { height: auto; padding: 20px 0; }
    .footer-container { flex-direction: column; gap: 16px; }
    .footer-center { justify-content: center; gap: 16px; }
    .footer-licenses { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; }
    .footer-licenses img { height: 24px; }
    .footer-left, .footer-right { display: none; }
}
.cookie-consent {
    position: fixed; bottom: 32px; left: 32px; right: 32px; max-width: 420px;
    background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 20px;
    padding: 28px; z-index: 1000; box-shadow: var(--shadow-lg);
    transform: translateY(150%); opacity: 0; transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.cookie-consent.show { transform: translateY(0); opacity: 1; }
.cookie-consent h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.cookie-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-color); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.1); } }
.cookie-consent p { font-size: 0.95rem; opacity: 0.7; margin-bottom: 24px; line-height: 1.6; }
.cookie-btn {
    width: 100%; padding: 16px; background: var(--text-color); color: var(--bg-color);
    border: none; border-radius: 14px; font-weight: 600; cursor: pointer;
    transition: var(--transition); font-size: 1rem; box-shadow: var(--shadow-md);
}
.cookie-btn:hover { opacity: 0.95; transform: scale(1.02); box-shadow: var(--shadow-lg); }
@media (max-width: 767px) { a.control-btn[href="donate"] { display: none; } }
.nav-link.donate-link { display: none; }
@media (max-width: 767px) { .nav-link.donate-link { display: block; border-color: var(--border-color); } }
@media (max-width: 500px) { .cookie-consent { left: 20px; right: 20px; bottom: 20px; max-width: none; padding: 24px; } }
.nav-more { display: flex; flex-direction: column; width: 100%; }
.nav-more-toggle { display: none; }
.nav-more-menu { display: flex; flex-direction: column; gap: 15px; width: 100%; }
@media (min-width: 768px) {
    .nav-more { position: relative; display: inline-flex; width: auto; align-items: center; }
    .nav-more-toggle {
        position: relative; z-index: 3; display: flex; align-items: center;
        justify-content: center; width: 36px; height: 36px; border-radius: 10px;
        background: var(--accent-color); border: 1px solid var(--border-color);
        color: var(--text-color); cursor: pointer; transition: var(--transition); flex-shrink: 0;
    }
    .nav-more-toggle:hover { background: var(--accent-hover); }
    .nav-more-toggle.active { background: var(--accent-hover); box-shadow: var(--shadow-md); }
    .more-arrow { transition: transform 0.3s ease; }
    .nav-more-toggle.active .more-arrow { transform: rotate(180deg); }
    .nav-more-menu {
        position: fixed; top: 4px; transform: translateY(-10px) scale(0.97);
        background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 16px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.37); z-index: 2;
        backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
        opacity: 0; visibility: hidden;
        transition: opacity 0.22s cubic-bezier(0.23, 1, 0.32, 1), transform 0.22s cubic-bezier(0.23, 1, 0.32, 1), visibility 0.22s;
        padding: 24px;
    }
    .nav-more-menu.active { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
    .nav-more-header-section { display: none; }
    .nav-more-body-section { padding: 0; width: 100%; position: relative; padding-top: 35px; }
    .nav-more-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
    .nav-more-grid .nav-link {
        flex: 0 0 auto; padding: 10px 16px; text-align: center; border-radius: 12px;
        font-size: 0.9rem; white-space: nowrap; color: var(--text-color);
        text-decoration: none; border: 1px solid transparent;
    }
    .nav-more-grid .nav-link:hover { background: var(--accent-hover); border-color: var(--border-color); }
}
@media (max-width: 767px) {
    .nav-more-header-section { display: none; }
    .nav-more-body-section { padding: 0; width: 100%; }
    .nav-more-grid { display: flex; flex-direction: column; gap: 15px; width: 100%; }
    .nav-more-grid .nav-link { width: 100%; text-align: center; }
}

.weather-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}
.weather-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.12); }
[data-theme="light"] .weather-card:hover { border-color: rgba(0, 0, 0, 0.12); }

.wloc-bar {
    display: flex; gap: 10px; margin-bottom: 20px; position: relative; z-index: 100;
}
.wloc-input-wrap { flex: 1; position: relative; }
.wloc-input {
    width: 100%; padding: 14px 16px; padding-right: 48px;
    background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: 14px; color: var(--text-color); font-size: 1rem;
    transition: var(--transition); outline: none;
}
.wloc-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); }
.wloc-input::placeholder { opacity: 0.4; }
.wloc-clear {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--text-color); opacity: 0.3;
    cursor: pointer; font-size: 1.2rem; padding: 4px; display: none;
    transition: var(--transition);
}
.wloc-clear:hover { opacity: 0.7; }
.wloc-clear.show { display: block; }
.wloc-btn {
    padding: 10px 18px; border-radius: 14px; border: 1px solid var(--border-color);
    background: var(--accent-color); color: var(--text-color); cursor: pointer;
    font-size: 0.9rem; font-weight: 500; white-space: nowrap;
    transition: var(--transition); display: flex; align-items: center; gap: 6px;
}
.wloc-btn:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.wloc-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.wloc-autocomplete {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0;
    background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: 14px; box-shadow: var(--shadow-lg);
    max-height: 280px; overflow-y: auto; display: none; z-index: 200;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.wloc-autocomplete.active { display: block; }
.wloc-ac-item {
    padding: 12px 16px; cursor: pointer; transition: var(--transition);
    display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border-color);
}
.wloc-ac-item:last-child { border-bottom: none; }
.wloc-ac-item:hover { background: var(--accent-color); }
.wloc-ac-name { font-weight: 500; font-size: 0.95rem; }
.wloc-ac-country { font-size: 0.8rem; opacity: 0.5; }
.wloc-ac-coords { font-size: 0.75rem; opacity: 0.3; margin-left: auto; }

.wcurrent { padding: 28px; }
.wcurrent-location { font-size: 0.8rem; opacity: 0.4; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px; }
.wcurrent-city { font-size: 1.4rem; font-weight: 700; }
.wcurrent-main { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.wcurrent-temp-group { display: flex; align-items: flex-start; gap: 4px; }
.wcurrent-temp { font-size: 4.5rem; font-weight: 100; line-height: 1; }
.wcurrent-temp-unit { font-size: 1.8rem; font-weight: 300; opacity: 0.4; margin-top: 8px; }
.wcurrent-icon { font-size: 3rem; }
.wcurrent-condition { font-size: 1.1rem; margin-top: 2px; }
.wcurrent-feels { font-size: 0.9rem; opacity: 0.5; margin-top: 2px; }
.wcurrent-stats {
    display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap;
}
.wcurrent-stat {
    flex: 1; min-width: 100px; text-align: center;
    padding: 12px 8px; background: var(--accent-color); border-radius: 12px;
}
.wcurrent-stat-val { font-size: 1.2rem; font-weight: 600; }
.wcurrent-stat-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.5; margin-top: 2px; }

.wsection { margin-bottom: 20px; margin-top: 24px; }
.wsection-title {
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px;
    opacity: 0.4; margin-bottom: 14px; font-weight: 600;
}

.whourly-wrap {
    position: relative;
}
.whourly-scroll {
    overflow-x: auto; display: flex; gap: 10px; padding: 4px 0 8px 0;
    scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
    scrollbar-width: auto;
}
.whourly-scroll::-webkit-scrollbar { height: 8px; }
.whourly-scroll::-webkit-scrollbar-track { background: transparent; }
.whourly-scroll::-webkit-scrollbar-thumb {
    background: var(--accent-color); border-radius: 4px;
    border: 2px solid transparent; background-clip: content-box;
}
.whourly-scroll::-webkit-scrollbar-thumb:hover { background: var(--accent-hover); }
.whourly-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--card-bg); border: 1px solid var(--border-color);
    color: var(--text-color); cursor: pointer; z-index: 10;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.25s ease, transform 0.2s ease;
    box-shadow: var(--shadow-md); backdrop-filter: blur(8px);
}
.whourly-btn svg { width: 20px; height: 20px; }
.whourly-btn:hover {
    background: var(--accent-hover); transform: translateY(-50%) scale(1.1);
    border-color: var(--blue);
}
.whourly-btn-prev { left: -18px; }
.whourly-btn-next { right: -18px; }
.whourly-wrap:hover .whourly-btn { opacity: 0.9; }
@media (max-width: 767px) {
    .whourly-btn { display: none; }
}
.whourly-item {
    flex: 0 0 auto; min-width: 80px; text-align: center;
    padding: 16px 12px; border-radius: 14px;
    background: var(--card-bg); border: 1px solid var(--border-color);
    transition: var(--transition);
}
.whourly-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(255,255,255,0.12); }
[data-theme="light"] .whourly-item:hover { border-color: rgba(0,0,0,0.12); }
.whourly-item.active { border-color: var(--blue); background: rgba(59,130,246,0.08); }
.whourly-time { font-size: 0.8rem; font-weight: 600; opacity: 0.6; }
.whourly-icon { font-size: 1.5rem; margin: 8px 0; }
.whourly-temp { font-size: 1.1rem; font-weight: 600; }
.whourly-rain { font-size: 0.75rem; opacity: 0.5; margin-top: 4px; }

.wdaily-grid { display: grid; gap: 10px; }
.wdaily-item {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; border-radius: 14px;
    background: var(--card-bg); border: 1px solid var(--border-color);
    transition: var(--transition); cursor: pointer;
}
.wdaily-item:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); border-color: rgba(255,255,255,0.12); }
[data-theme="light"] .wdaily-item:hover { border-color: rgba(0,0,0,0.12); }
.wdaily-name { width: 70px; font-size: 0.9rem; font-weight: 600; white-space: nowrap; }
.wdaily-name.today { color: var(--blue); }
.wdaily-icon { font-size: 1.5rem; width: 36px; text-align: center; flex-shrink: 0; }
.wdaily-temps { display: flex; gap: 8px; font-size: 0.95rem; flex: 1; }
.wdaily-item .wdaily-temps:nth-child(3) { justify-content: flex-start; }
.wdaily-item .wdaily-temps:nth-child(5) { justify-content: flex-end; }
.wdaily-high { font-weight: 600; }
.wdaily-low { opacity: 0.4; }
.wdaily-bar-wrap { flex: 1; max-width: 120px; display: flex; align-items: center; }
.wdaily-bar {
    height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--blue), var(--orange));
    position: relative;
}
.wdaily-rain { font-size: 0.8rem; opacity: 0.5; width: 36px; text-align: right; }

.wdaily-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 16px;
    border-radius: 10px;
    background: var(--accent-color);
    border: 1px solid var(--border-color);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    opacity: 0.4;
    margin-bottom: 8px;
}
.wdaily-header-name { width: 70px; }
.wdaily-header-icon { width: 36px; text-align: center; flex-shrink: 0; }
.wdaily-header-min { flex: 1; text-align: left; }
.wdaily-header-bar { flex: 1; max-width: 120px; text-align: center; }
.wdaily-header-max { flex: 1; text-align: right; }
.wdaily-header-rain { width: 36px; text-align: right; flex-shrink: 0; }

@media (max-width: 767px) {
    .wdaily-header-bar, .wdaily-header-rain { display: none; }
}

.wdetails-grid { display: flex; flex-wrap: nowrap; gap: 10px; }
.wdetail-item {
    padding: 18px; border-radius: 14px;
    background: var(--card-bg); border: 1px solid var(--border-color);
    transition: var(--transition); text-align: center;
}
@media (min-width: 768px) {
    .wdetail-item { flex: 1; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
}
.wdetail-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.wdetail-icon { width: 24px; height: 24px; margin: 0 auto 10px; opacity: 0.5; }
.wdetail-icon svg { width: 100%; height: 100%; }
.wdetail-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.4; margin-bottom: 6px; }
.wdetail-value { font-size: 1.4rem; font-weight: 600; }
.wdetail-unit { font-size: 0.8rem; opacity: 0.4; font-weight: 400; }
.wdetail-sub { font-size: 0.8rem; opacity: 0.4; margin-top: 4px; }
.wdetail-sub.good { color: var(--success-color); opacity: 1; }
.wdetail-sub.moderate { color: var(--warning-color); opacity: 1; }
.wdetail-sub.bad { color: var(--error-color); opacity: 1; }

.wmap-wrap { border-radius: var(--card-radius); overflow: hidden; border: 1px solid var(--border-color); }
#weather-map { height: 350px; width: 100%; }
.leaflet-container { background: var(--bg-color) !important; }
.leaflet-control-zoom a { background: var(--card-bg) !important; color: var(--text-color) !important; border-color: var(--border-color) !important; }
.leaflet-control-attribution { display: none !important; }

.wloc-initial {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 60px - 60px - 32px - 80px);
    padding-bottom: 80px;
}
.wloc-prompt {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 28px;
    color: var(--text-color);
    letter-spacing: -0.5px;
}
.wloc-center {
    width: 100%;
}

.wloading {
    text-align: center; padding: 60px 20px; opacity: 0.5;
}
.wloading-spinner {
    width: 40px; height: 40px; border: 3px solid var(--border-color);
    border-top-color: var(--blue); border-radius: 50%;
    margin: 0 auto 16px; animation: wspin 0.8s linear infinite;
}
@keyframes wspin { to { transform: rotate(360deg); } }

.wproviders {
    font-size: 0.7rem;
    opacity: 0.35;
    margin-bottom: 12px;
    letter-spacing: 0.2px;
}
.wunits {
    display: flex; gap: 16px; margin-bottom: 20px; flex-wrap: wrap;
    align-items: center;
}
.wunits-group {
    display: flex; align-items: center; gap: 8px;
}
.wunits-label {
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px;
    opacity: 0.4; font-weight: 600; white-space: nowrap;
}
.wunits-btns {
    display: flex; border: 1px solid var(--border-color);
    border-radius: 10px; overflow: hidden;
}
.wunits-btns button {
    padding: 6px 12px; border: none; background: none;
    color: var(--text-color); font-size: 0.82rem; font-weight: 500;
    cursor: pointer; transition: var(--transition);
    opacity: 0.4;
}
.wunits-btns button:hover { opacity: 0.7; background: var(--accent-color); }
.wunits-btns button.active { opacity: 1; background: var(--accent-color); }

@keyframes wfadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.wanimate { animation: wfadeInUp 0.5s ease forwards; }

@media (max-width: 767px) {
    .wloc-initial {
        min-height: calc(100vh - 60px - 80px - 32px);
        justify-content: center;
        padding-bottom: 40px;
    }
    .wloc-prompt { font-size: 1.1rem; margin-bottom: 20px; }
    .wcurrent-temp { font-size: 3rem; }
    .wcurrent { padding: 20px; }
    .wloc-bar { flex-direction: column; }
    .wcurrent-main { flex-direction: column; align-items: flex-start; gap: 12px; }
    .wcurrent-stats { gap: 6px; }
    .wcurrent-stat { min-width: 70px; padding: 10px 6px; }
    .wcurrent-stat-val { font-size: 1rem; }
    .wdetails-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
    .whourly-item { min-width: 68px; padding: 12px 8px; }
    .wdaily-item { padding: 12px 14px; }
    .wdaily-bar-wrap { display: none; }
    .wunits-label { display: none; }
    #weather-map { height: 250px; }
}
.wloc-initial.wloc-determined {
    min-height: 0;
    padding: 0;
    margin-bottom: 20px;
    justify-content: flex-start;
    align-items: stretch;
}
.wloc-initial.wloc-determined .wloc-prompt {
    display: none;
}
@media (max-width: 767px) {
    .wloc-initial.wloc-determined {
        min-height: 0;
        padding: 0;
        padding-bottom: 0;
        margin-bottom: 16px;
    }
}
@media (max-width: 500px) {
    .wdetails-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
    .container { padding: 12px; }
}
