/* Pełna wersja poprawionego weather-new.css z uwzględnieniem nowych stylów dla przycisków dni */

/* Tooltipy ostrzegawcze na mapie */
.weather-warning-tooltip {
    background-color: rgba(255, 255, 255, 1) !important;
    border: 1px solid #dc2626 !important;
    border-radius: 4px !important;
    box-shadow: 0 3px 4px rgba(220, 38, 38, 0.5) !important;
    padding: 3px 4px !important;
    z-index: 1000 !important;
}

.weather-warning-tooltip::before {
    display: none !important; /* Ukryj strzałkę dla lepszej czytelności */
}

.warning-tooltip-content {
    white-space: nowrap;
    animation: warning-pulse 1.5s infinite;
}

@keyframes warning-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Strzałki nawigacji na mapie */
.map-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    height: 100px;
    padding: 20px;
    background: transparent;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #007bff;
    cursor: pointer;
    z-index: 9999999 !important;
    transition: all 0.3s ease;
    box-shadow: none;
    pointer-events: auto !important;
}

/* Widoczna część strzałki - wewnętrzny element */
.map-arrow::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #007bff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    pointer-events: none;
}

.map-arrow i {
    position: relative;
    z-index: 1;
}

.map-arrow:hover::before {
    background: #007bff;
    transform: scale(1.1);
}

.map-arrow:hover {
    color: white;
}

.map-arrow:active::before {
    transform: scale(0.95);
}

.map-arrow-left {
    left: 20px;
}

.map-arrow-right {
    right: 20px;
}

.map-arrow i {
    pointer-events: none;
}

.map-arrow[style*="opacity: 0.3"] {
    cursor: not-allowed;
    color: #999;
}

.map-arrow[style*="opacity: 0.3"]::before {
    background: rgba(200, 200, 200, 0.5);
    border-color: #ccc;
}

.map-arrow[style*="opacity: 0.3"]:hover::before {
    background: rgba(200, 200, 200, 0.5);
    transform: none;
}

/* Główny kontener */
.weather-container {
    width: 100%;
    height: calc(100vh - 60px); /* Odejmujemy wysokość nagłówka */
    max-width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.weather-content {
    flex-grow: 1;
    display: flex;
    padding: 0;
    height: 100%;
}

.weather-row {
    display: flex;
    flex-grow: 1;
    gap: 10px;
    min-height: 100%;
    max-height: 100%;
    padding: 10px;
    box-sizing: border-box;
}

/* Panel województw */
.voivodeship-panel {
    width: 280px;
    display: flex;
    flex-direction: row;
    background: #0096d6;
    color: white;
    border-radius: 10px;
    flex-shrink: 0;

    overflow: hidden;
}
.time-panel .panel-cumulus {
    background: linear-gradient(180deg, #0096d6 0%, #0073b7 100%);
    padding: 3px;
    color: #fff;
    border-radius: 4px 4px 0 0;
    margin-top: 2px;
  }


  .logo-cumulus {
    display: block;
    margin: 0 auto;
    width: 150px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;

    /* efekt 3D: cień i lekka perspektywa */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform-style: preserve-3d;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .logo-cumulus:hover {
    transform: scale(1.2) rotateX(3deg) rotateY(3deg);
    box-shadow: 0 10px 20px rgba(0, 140, 186, 0.4);
  }


  .address-cumulus {
    width: 100%;
    text-align: center;
    margin-top: .4rem;
  }

/* Pionowy napis "LOKALIZACJE" */
.vertical-label {
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    padding: 10px 5px;
    font-weight: bold;
    font-size: 16px;
    background: #0073b7;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

/* Kontener z przełącznikiem i regionami */
.region-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Przełącznik Polska/Bałtyk */
.region-toggle {
    display: flex;
    background: #0073b7;
    border-radius: 20px;
    margin-bottom: 10px;
    margin-top: 10px;
    padding: 2px;
    position: relative;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.toggle-option {
    flex: 1;
    text-align: center;
    padding: 5px 10px;
    z-index: 1;
    transition: color 0.3s;
    cursor: pointer;
}

.toggle-option.active {
    color: #0073b7;
}

.toggle-slider {
    position: absolute;
    width: 50%;
    height: 100%;
    background: white;
    border-radius: 18px;
    transition: transform 0.3s;
}

.toggle-slider.baltic {
    transform: translateX(100%);
}

/* Grupy regionów */
.region-groups {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Obszar przewijania dla województw */
.scrollable-regions {
    overflow-y: auto;
    flex-grow: 1;
    max-height: calc(100vh - 180px);
    /* Pasek przewijania */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(0, 115, 183, 0.2);
}

.scrollable-regions::-webkit-scrollbar {
    width: 6px;
}

.scrollable-regions::-webkit-scrollbar-track {
    background: rgba(0, 115, 183, 0.2);
}

.scrollable-regions::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
}

/* Panel mapy */
.map-panel {
    flex-grow: 1;
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

#weather-map {
    flex-grow: 1;
    width: 100%;
    height: 100%;
    min-height: 300px;
    background: #e8f4f8;
}

/* Panel czasu */
.time-panel {
    width: 350px;

    background: #f5f5f5;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.weather-header {
    background: linear-gradient(180deg, #0096d6 0%, #0073b7 100%);
    padding: 3px;
    color: white;
    border-radius: 4px 4px 0 0;
}

.search-bar {
    background: rgb(229, 246, 248);
    padding: 5px;
    border-radius: 5px;
    color: #055888;
    margin: 0;
    display: flex;
    align-items: center;
}

.search-bar input {
    border: none;
    padding: 5px;
    flex-grow: 1;
    outline: none;
    width: 100%;
    background: transparent;
}

.search-bar button {
    border: none;
    background: none;
    color: #0073b7;
    padding: 5px 10px;
    cursor: pointer;
}

.panel-header {
    background: #0073b7;
    color: white;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    margin: 10px;
    font-weight: bold;
    font-size: 14px;
}

/* Przyciski województw */
.voivodeship-btn {
    display: block;
    width: 100%;
    padding: 8px;
    margin: 3px 0;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    text-align: left;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background-color 0.2s ease;
}

.voivodeship-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.voivodeship-btn.active {
    background: #00a8e8;
    border-color: white;
}

/* Selektor interwału */
.interval-selector {
    background: white;
    padding: 10px;
    border-radius: 5px;
    margin: 10px;
    display: flex;
    justify-content: space-between;
}

.interval-btn {
    padding: 6px 4px;
    background: #e8f4f8;
    color: #055888;
    border: 1px solid #b3d9e6;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    flex: 1;
    margin: 0 2px;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.interval-btn.active {
    background: linear-gradient(135deg, #0096d6 0%, #0073b7 100%);
    color: white !important;
    border-color: #005a8a;
    box-shadow: 0 4px 8px rgba(0, 115, 183, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.interval-btn:hover:not(.active) {
    background: linear-gradient(135deg, #00a8e8 0%, #0096d6 100%);
    color: white !important;
    border-color: #0073b7;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 168, 232, 0.3);
}

/* Przyciski dni i godzin */
#time-buttons {
    flex-grow: 1;
    overflow: auto;
    padding: 0 10px 10px 10px;
}

/* Zakładki dni - poprawiona wersja */
.days-tabs-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    margin-bottom: 8px;
    max-height: 250px;
    overflow-y: auto;
}

/* Przycisk dnia z datą i nazwą dnia tygodnia */
.day-tab {
    padding: 2px 4px;
    background: #f0f0f0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background-color 0.2s ease;
    height: auto;
    min-height: 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.day-tab-date {
    font-weight: bold;
    margin-bottom: 1px;
    font-size: 10px;
}

.day-tab-name {
    font-size: 9px;
    color: #555;
}

.day-tab.active {
    background: #0073b7;
    color: white;
}

.day-tab.active .day-tab-name {
    color: rgba(255, 255, 255, 0.9);
}

.day-tab:hover:not(.active):not(.disabled) {
    background: #e0e0e0;
}

.day-tab.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
    color: #999;
}

.day-tab.disabled:hover {
    background: #f5f5f5;
}

/* Separator między przyciskami dziennymi a godzinowymi */
.hours-separator {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 150, 214, 0.3) 20%, rgba(0, 150, 214, 0.5) 50%, rgba(0, 150, 214, 0.3) 80%, transparent 100%);
    margin: 8px 10px;
    border-radius: 1px;
}

/* Kontener na godziny */
.hours-container {
    margin-top: 10px;
    overflow-y: auto;
}

/* Siatka przycisków godzin */
.hours-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin-bottom: 3px;
}

/* Siatka dla trybu 12h (tylko 2 przyciski - Dzień i Noc) - wypełniają całą linię */
.hours-grid.hours-grid-12h {
    display: flex !important;
    gap: 6px !important;
}

/* Przyciski w trybie 12h wypełniają całą dostępną szerokość (po 50% każdy) */
.hours-grid.hours-grid-12h .time-btn,
div.hours-grid.hours-grid-12h button.time-btn,
#time-buttons .hours-grid.hours-grid-12h .time-btn,
#time-buttons div.hours-grid.hours-grid-12h button.time-btn {
    flex: 1 1 50% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.time-btn {
    padding: 5px 4px;
    background: #e8f4f8;
    color: #055888;
    border: 1px solid #b3d9e6;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    min-height: 32px;
}

.time-btn:hover {
    background: linear-gradient(135deg, #00a8e8 0%, #0096d6 100%);
    color: white;
    border-color: #0073b7;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 168, 232, 0.4), 0 2px 4px rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.time-btn:active {
    transform: translateY(0) scale(1);
    box-shadow: 0 2px 4px rgba(0, 168, 232, 0.3);
}

.time-btn.active {
    background: linear-gradient(135deg, #0096d6 0%, #0073b7 100%);
    color: white;
    border-color: #005a8a;
    box-shadow: 0 2px 6px rgba(0, 115, 183, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-weight: 600;
}

/* Info o dacie i godzinie prognozy */
.weather-date-time-info {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: normal;
    color: #0073b7;
    font-size: 11px;
    z-index: 990;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    border: 1px solid rgba(0, 115, 183, 0.2);
    max-width: 300px;
    line-height: 1.3;
}

/* Info o wschodzie/zachodzie słońca na środku górnej krawędzi */
.weather-sun-info {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    z-index: 990;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    border: 1px solid rgba(0, 115, 183, 0.2);
    display: flex;
    gap: 12px;
    align-items: center;
}

.weather-sun-info .sun-info {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.weather-sun-info .sun-info i {
    font-size: 12px;
}

.weather-date-time-info .forecast-date {
    font-weight: normal;
    margin-bottom: 4px;
    font-size: 12px;
}

.weather-date-time-info .sun-times {
    display: flex;
    gap: 12px;
    margin-top: 4px;
    font-size: 10px;
    border-top: 1px solid rgba(0, 115, 183, 0.1);
    padding-top: 4px;
}

.weather-date-time-info .sun-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

.weather-date-time-info .sun-time i {
    font-size: 11px;
}

.weather-date-time-info .sun-time .text-warning {
    color: #ffc107;
}

.weather-date-time-info .sun-time .text-info {
    color: #17a2b8;
}

.weather-date-time-info .gfs-info {
    font-size: 10px;
    color: #666;
    font-style: italic;
}

/* Pogoda i markery */
.weather-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
    width: fit-content;
    max-width: none;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 115, 183, 0.15);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 2px;
    margin: 0;
    cursor: pointer;
    opacity: 0.95;
    transition: transform 0.2s ease, background-color 0.3s ease;
    z-index: 100;
}

.weather-marker.day-mode {
    background-color: rgba(235, 245, 255, 0.95);
    border-color: rgba(0, 115, 183, 0.2);
}

.weather-marker.night-mode {
    background-color: rgba(230, 230, 230, 0.95);
    border-color: rgba(0, 0, 0, 0.15);
}

.weather-marker:hover {
    transform: scale(1.1);
    z-index: 9999 !important;
    opacity: 1;
}

.weather-marker.position-adjusted {
    z-index: 200;
    opacity: 0.9;
}

.weather-marker.position-adjusted .city-name-container {
    border-color: #ff6b35;
    background-color: #fff3cd80;
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.3);
}

.weather-marker.position-adjusted .adjust-indicator {
    color: #ff6b35;
    font-size: 10px;
    font-weight: bold;
    margin-top: 2px;
    text-align: center;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    line-height: 16px;
    margin-left: auto;
    margin-right: auto;
}

.weather-marker:hover {
    border-color: #0073b7;
    border-width: 4px;
    box-shadow: 0 0 8px rgba(0, 115, 183, 0.6);
}

.city-name-container {
    padding: 0px 4px;
    margin-top: -1px;
    margin-bottom: 2px;
    width: fit-content;
    min-width: 50px;
    max-width: none;
    text-align: center;
    z-index: 10;
    background-color: transparent;
    border: none;
    box-shadow: none;
    white-space: nowrap;
    line-height: 1.1;
}

.city-name {
    font-size: 15px;
    font-weight: normal;
    font-style: normal;
    color: #000;
    text-shadow: none;
    text-align: center;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    word-wrap: normal;
    display: inline-block;
    width: fit-content;
    max-width: none;
}

.weather-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    padding: 0px 2px;
    border-radius: 0;
    box-shadow: none;
    border: none;
    width: fit-content;
    min-width: 70px;
    max-width: none;
}

.temp {
    font-size: 30px;
    font-weight: normal;
    font-style: normal;
    color: #cc340e;
    margin-right: 2px;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.8);
    line-height: 1;
}

.weather-icon-container {
    line-height: 0;
    display: inline-block;
    vertical-align: middle;
    border-radius: 50%;
    padding: 3px;
    transition: background-color 0.3s ease;
}

.day-mode .weather-icon-container {
    background-color: rgba(100, 180, 240, 0.45);
    box-shadow: inset 0 0 6px rgba(0,0,0,0.05);
}

.night-mode .weather-icon-container {
    background-color: rgba(80, 80, 80, 0.4);
    box-shadow: inset 0 0 8px rgba(0,0,0,0.1);
}

.weather-icon-container img {
    display: block;
    margin: 0;
    width: 39px;
    height: 39px;
}

/* Style dla Baltic */
#baltic-regions button {
    background-color: rgba(0, 115, 183, 0.2);
}

#baltic-regions button:hover {
    background-color: rgba(0, 115, 183, 0.3);
}

#baltic-regions button.active {
    background-color: #0073b7;
    color: white;
}

/* Media queries */
@media (max-width: 768px) {
    .weather-marker {
        min-width: 40px;
        padding: 1px;
    }

    .temp {
        font-size: 16px;
        margin-right: 1px;
    }

    .weather-icon-container img {
        width: 21px;
        height: 21px;
    }

    .city-name {
        font-size: 10px;
    }

    .weather-marker:hover {
        transform: scale(1.15);
    }
}

@media (max-width: 1200px) {
    .weather-row {
        flex-wrap: wrap;
    }

    .voivodeship-panel {
        width: 100%;
        max-width: 100%;
        order: 1;
    }

    .map-panel {
        width: 100%;
        order: 2;
        min-height: 500px;
    }

    .time-panel {
        width: 100%;
        max-width: 100%;
        order: 3;
    }

    .voivodeship-panel {
        flex-direction: row;
    }

    .vertical-label {
        writing-mode: horizontal-tb;
        transform: none;
        padding: 5px;
        margin-right: 10px;
        margin-bottom: 0;
        height: auto;
    }

    .scrollable-regions {
        max-height: none;
        display: flex;
        flex-wrap: wrap;
    }

    .voivodeship-btn {
        width: calc(25% - 5px);
        margin: 2px;
    }

    .hours-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;
    }

    .time-btn {
        padding: 6px 5px;
        font-size: 12px;
        min-height: 35px;
    }

    .day-tab {
        min-height: 35px;
        padding: 2px 3px;
    }

    .day-tab-date {
        font-size: 9px;
    }

    .day-tab-name {
        font-size: 8px;
    }

    .interval-btn {
        padding: 4px 6px;
        font-size: 11px;
    }
}

@media (max-width: 992px) {
    .hours-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .time-btn {
        padding: 11px 7px;
        font-size: 13px;
        min-height: 42px;
    }
}

/* Menu hamburger dla małych ekranów */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 70px;
    left: 10px;
    z-index: 1000;
    background: #0096d6;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: #0073b7;
    transform: scale(1.05);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: white;
    z-index: 9999;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    display: block;
    left: 0;
}

.mobile-menu-header {
    background: #0096d6;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-menu-header h3 {
    margin: 0;
    font-size: 18px;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-content {
    padding: 15px;
    background: white;
}

.mobile-menu-content > div {
    display: block !important;
    visibility: visible !important;
}

.mobile-menu-content .voivodeship-panel,
.mobile-menu-content .time-panel {
    width: 100%;
    position: relative;
    height: auto;
    margin-bottom: 20px;
    display: block !important;
    visibility: visible !important;
}

.mobile-menu-content .region-container {
    width: 100%;
    display: flex !important;
    flex-direction: column;
    visibility: visible !important;
}

.mobile-menu-content .region-toggle {
    display: flex !important;
    visibility: visible !important;
}

.mobile-menu-content .region-groups {
    display: flex !important;
    flex-direction: column;
    visibility: visible !important;
}

.mobile-menu-content .scrollable-regions {
    display: flex !important;
    flex-wrap: wrap;
    gap: 5px;
    max-height: none;
    overflow-y: visible;
    visibility: visible !important;
}

.mobile-menu-content .voivodeship-btn {
    display: block !important;
    visibility: visible !important;
    flex: 1 1 calc(33.33% - 4px);
    min-width: calc(33.33% - 4px);
    margin: 0;
    padding: 5px 3px;
    background: #0096d6;
    color: white;
    border: 1px solid #0073b7;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    text-align: center;
    line-height: 1.2;
}

.mobile-menu-content .voivodeship-btn:hover {
    background: #0073b7;
}

.mobile-menu-content .interval-selector {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 4px;
    margin-bottom: 10px;
    justify-content: space-between !important;
}

.mobile-menu-content .interval-btn {
    flex: 1 1 auto !important;
    padding: 4px 6px;
    font-size: 11px;
    min-height: 28px;
    width: auto !important;
    min-width: 0 !important;
}

.mobile-menu-content .day-tab {
    min-height: 32px;
    padding: 2px 3px;
    font-size: 10px;
}

.mobile-menu-content .day-tab-date {
    font-size: 9px;
}

.mobile-menu-content .day-tab-name {
    font-size: 8px;
}

.mobile-menu-content .time-btn {
    padding: 4px 3px;
    font-size: 10px;
    min-height: 28px;
}

.mobile-menu-content .hours-grid {
    gap: 3px;
}

.mobile-menu-content .days-tabs-grid {
    gap: 3px;
    margin-bottom: 8px;
}

.mobile-menu-content .panel-cumulus {
    display: block !important;
    visibility: visible !important;
    margin-top: 15px;
    padding: 10px;
    background: linear-gradient(180deg, #0096d6 0%, #0073b7 100%) !important;
    border-radius: 5px;
    color: white !important;
}

.mobile-menu-content .panel-cumulus a {
    color: white !important;
}

.mobile-menu-content .panel-cumulus .address-cumulus {
    color: white !important;
}

.mobile-menu-content .region-groups {
    display: flex;
    flex-direction: column;
}

.mobile-menu-content #poland-regions,
.mobile-menu-content #poland-regions-mobile,
.mobile-menu-content #baltic-regions,
.mobile-menu-content #baltic-regions-mobile {
    display: flex;
    flex-direction: column;
}

/* Wymuś ukrycie gdy style inline mówi display: none */
.mobile-menu-content #poland-regions[style*="display: none"],
.mobile-menu-content #poland-regions-mobile[style*="display: none"] {
    display: none !important;
}

.mobile-menu-content #baltic-regions[style*="display: none"],
.mobile-menu-content #baltic-regions-mobile[style*="display: none"] {
    display: none !important;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .voivodeship-panel,
    .time-panel {
        display: none !important;
    }

    .voivodeship-panel.mobile-visible,
    .time-panel.mobile-visible {
        display: flex !important;
    }

    .weather-row {
        flex-direction: column;
    }

    .map-panel {
        order: -1; /* Mapa na górze */
        width: 100%;
        min-height: 50vh;
        height: 50vh;
    }

    .voivodeship-btn {
        width: calc(33.33% - 5px);
    }

    .days-tabs-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .day-tab {
        min-height: 45px;
    }

    .hours-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .time-btn {
        padding: 8px 6px;
        font-size: 13px;
        min-height: 40px;
    }

    .day-tab {
        min-height: 40px;
        padding: 3px 4px;
    }

    .day-tab-date {
        font-size: 10px;
    }

    .day-tab-name {
        font-size: 9px;
    }

    .interval-btn {
        padding: 5px 7px;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .mobile-menu {
        width: 90%;
    }

    .voivodeship-btn {
        width: calc(50% - 5px);
    }

    .days-tabs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hours-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .time-btn {
        padding: 10px 7px;
        font-size: 14px;
        min-height: 45px;
    }

    .day-tab {
        min-height: 42px;
        padding: 3px 4px;
    }

    .day-tab-date {
        font-size: 10px;
    }

    .day-tab-name {
        font-size: 9px;
    }

    .interval-selector {
        flex-wrap: wrap;
        gap: 4px;
    }

    .interval-btn {
        flex: 1 1 calc(50% - 4px);
        min-width: calc(50% - 4px);
        padding: 6px 8px;
        font-size: 12px;
    }
}

/* Style dla ikon markerów Leaflet */
.weather-icon-marker {
    background: transparent !important;
    border: none !important;
    width: auto !important;
    height: auto !important;
}

.weather-icon-marker div {
    width: fit-content !important;
    max-width: none !important;
    margin: 0 auto !important;
    text-align: center !important;
}

/* Style dla loading overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    border-radius: 10px;
}

.spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #0073b7;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    text-align: center;
    z-index: 1000;
}

.error-message h3 {
    color: #e74c3c;
    margin-top: 0;
}

.retry-btn {
    background: #0073b7;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.retry-btn:hover {
    background: #005a8e;
}
