.pogoda-container {
    max-width: 100%;
    margin: 20px 0;
}

.pogoda-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pogoda-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.pogoda-location {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.pogoda-date {
    color: #666;
    font-size: 14px;
}

.pogoda-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.pogoda-item {
    display: flex;
    flex-direction: column;
}

.pogoda-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.pogoda-value {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.pogoda-temp {
    font-size: 48px;
    font-weight: bold;
    color: #2196F3;
}

.pogoda-comparison {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.pogoda-comparison-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.pogoda-comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.pogoda-comparison-item {
    text-align: center;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 5px;
}

.pogoda-comparison-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.pogoda-comparison-value {
    font-size: 16px;
    font-weight: bold;
}

.pogoda-comparison-diff {
    font-size: 12px;
    margin-top: 5px;
}

.pogoda-comparison-diff.positive {
    color: #4CAF50;
}

.pogoda-comparison-diff.negative {
    color: #f44336;
}

.pogoda-condition-icon {
    width: 64px;
    height: 64px;
}

/* Accordion dla wielu miast */
.pogoda-cities-accordion {
    max-width: 100%;
    margin: 20px 0;
}

.pogoda-city-item {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.pogoda-city-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    cursor: pointer;
    transition: background-color 0.3s;
    border-bottom: 1px solid #ddd;
}

.pogoda-city-header:hover {
    background: #e9ecef;
}

.pogoda-city-header.active {
    background: #2271b1;
    color: #fff;
}

.pogoda-city-header.active .pogoda-city-toggle {
    transform: rotate(180deg);
}

.pogoda-city-name {
    font-size: 18px;
    font-weight: bold;
    flex: 1;
}

.pogoda-city-temp {
    font-size: 20px;
    font-weight: bold;
    color: #2196F3;
    margin-right: 15px;
}

.pogoda-city-header.active .pogoda-city-temp {
    color: #fff;
}

.pogoda-city-toggle {
    font-size: 12px;
    transition: transform 0.3s;
    color: #666;
}

.pogoda-city-header.active .pogoda-city-toggle {
    color: #fff;
}

.pogoda-city-content {
    padding: 0;
    background: #fff;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 2000px;
    }
}

/* Średnia miesięczna */
.pogoda-monthly-average {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.pogoda-monthly-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.pogoda-monthly-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.pogoda-monthly-item {
    text-align: center;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
}

.pogoda-monthly-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    text-transform: uppercase;
    font-weight: 600;
}

.pogoda-monthly-values {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pogoda-monthly-year-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.pogoda-monthly-year-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.pogoda-monthly-current {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.pogoda-monthly-last-year {
    font-size: 18px;
    color: #666;
    font-weight: 500;
}

.pogoda-monthly-diff {
    font-size: 14px;
    margin-top: 6px;
    font-weight: bold;
}

.pogoda-monthly-diff.positive {
    color: #4CAF50;
}

.pogoda-monthly-diff.negative {
    color: #f44336;
}

/* Mapa pogodowa */
.pogoda-map-container {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#pogoda-map {
    border-radius: 8px;
}

.pogoda-map-popup {
    min-width: 150px;
}

.pogoda-map-popup h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
}

.pogoda-map-recent-days {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.pogoda-map-days-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.pogoda-map-days-table td {
    padding: 4px 6px;
    text-align: center;
    border-right: 1px solid #f0f0f0;
    vertical-align: top;
}

.pogoda-map-days-table td:last-child {
    border-right: none;
}

.pogoda-map-day-date {
    font-size: 10px;
    color: #999;
    margin-bottom: 2px;
    font-weight: 500;
}

/* Style dla tabelki z historią temperatur w accordionie */
.pogoda-recent-days {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    margin-left: -20px;
    margin-right: -20px;
    margin-bottom: -20px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

.pogoda-recent-days-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.pogoda-recent-days-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.pogoda-recent-days-table tr {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pogoda-recent-days-table td {
    flex: 1;
    min-width: 60px;
    padding: 8px 6px;
    text-align: center;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.pogoda-recent-day-date {
    font-size: 11px;
    color: #666;
    margin-bottom: 4px;
    font-weight: 500;
}

.pogoda-recent-day-temp {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.pogoda-recent-day-temp-last-year {
    font-size: 11px;
    color: #999;
    font-weight: 400;
}

.pogoda-recent-day-temp-last-year.warmer {
    color: #f44336; /* Czerwony - było zimniej */
}

.pogoda-recent-day-temp-last-year.colder {
    color: #2196F3; /* Niebieski - było cieplej */
}

.pogoda-map-day-temp {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.pogoda-map-marker {
    background: transparent !important;
    border: none !important;
}

.pogoda-map-marker-box {
    display: flex;
    flex-direction: column;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(0,0,0,0.4);
    border: 2px solid white;
}

.pogoda-map-marker-top,
.pogoda-map-marker-bottom {
    color: white;
    padding: 4px 8px;
    text-align: center;
    min-width: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pogoda-map-marker-top {
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

.pogoda-map-marker-year {
    font-size: 9px;
    font-weight: 600;
    opacity: 0.9;
    line-height: 1;
    margin-bottom: 2px;
}

.pogoda-map-marker-temp {
    font-size: 16px;
    font-weight: bold;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .pogoda-main {
        grid-template-columns: 1fr;
    }
    
    .pogoda-comparison-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pogoda-monthly-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pogoda-city-header {
        padding: 12px 15px;
        flex-wrap: wrap;
    }
    
    .pogoda-city-name {
        font-size: 16px;
        width: 100%;
        margin-bottom: 5px;
    }
    
    .pogoda-city-temp {
        font-size: 18px;
    }
}

/* Kalendarz pogodowy */
.pogoda-calendar-container {
    max-width: 100%;
    margin: 20px 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pogoda-calendar-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.pogoda-calendar-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0 0 5px 0;
}

.pogoda-calendar-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0 0 15px 0;
    font-weight: normal;
}

.pogoda-calendar-years {
    display: flex;
    gap: 20px;
    font-size: 14px;
}

.pogoda-year-label {
    font-weight: 600;
}

.pogoda-year-current {
    color: #2196F3;
}

.pogoda-year-last {
    color: #666;
}

.pogoda-calendar-grid {
    margin-bottom: 20px;
}

.pogoda-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.pogoda-calendar-weekday {
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    color: #666;
    padding: 8px 4px;
    text-transform: uppercase;
}

.pogoda-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.pogoda-calendar-day {
    min-height: 100px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 8px;
    background: #fafafa;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.pogoda-calendar-day:hover {
    background: #f0f0f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pogoda-calendar-day-empty {
    background: transparent;
    border: none;
    min-height: auto;
}

.pogoda-calendar-day-empty:hover {
    background: transparent;
    box-shadow: none;
}

.pogoda-calendar-day-no-data {
    opacity: 0.5;
}

.pogoda-calendar-day-number {
    font-weight: bold;
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
}

.pogoda-calendar-temps {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
}

.pogoda-temp-current,
.pogoda-temp-last-year {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pogoda-temp-label {
    color: #666;
    font-size: 10px;
}

.pogoda-temp-value {
    font-weight: bold;
    color: #333;
}

.pogoda-temp-current .pogoda-temp-value {
    color: #2196F3;
}

.pogoda-temp-last-year .pogoda-temp-value {
    color: #666;
}

.pogoda-temp-diff {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
    font-weight: bold;
    font-size: 11px;
}

.pogoda-diff-warmer {
    color: #f44336;
}

.pogoda-diff-colder {
    color: #2196F3;
}

.pogoda-diff-same {
    color: #4CAF50;
}

.pogoda-calendar-day.pogoda-temp-warmer {
    background: #fff5f5;
    border-color: #ffcdd2;
}

.pogoda-calendar-day.pogoda-temp-colder {
    background: #e3f2fd;
    border-color: #bbdefb;
}

.pogoda-calendar-day.pogoda-temp-similar {
    background: #f1f8e9;
    border-color: #c5e1a5;
}

.pogoda-calendar-no-data {
    color: #999;
    font-size: 10px;
    text-align: center;
    margin-top: auto;
    font-style: italic;
}

.pogoda-calendar-legend {
    display: flex;
    gap: 20px;
    justify-content: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

.pogoda-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #666;
}

.pogoda-legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.pogoda-legend-color.pogoda-temp-warmer {
    background: #fff5f5;
    border-color: #ffcdd2;
}

.pogoda-legend-color.pogoda-temp-colder {
    background: #e3f2fd;
    border-color: #bbdefb;
}

.pogoda-legend-color.pogoda-temp-similar {
    background: #f1f8e9;
    border-color: #c5e1a5;
}

@media (max-width: 768px) {
    .pogoda-calendar-day {
        min-height: 80px;
        padding: 6px;
    }
    
    .pogoda-calendar-temps {
        font-size: 10px;
    }
    
    .pogoda-temp-value {
        font-size: 12px;
    }
    
    .pogoda-calendar-day-number {
        font-size: 12px;
    }
}

