.oimionach-map-widget {
    margin: 20px 0;
}

/* Panel sterowania mapą – desktop */
.oimionach-map-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1em;
    margin-bottom: 1em;
    text-align: center;
    flex-wrap: wrap;
}

/* Suwak roku */
.oimionach-map-controls input[type="range"] {
    vertical-align: middle;
}

/* Wersja mobilna – kolumna */
@media (max-width: 600px) {
    .oimionach-map-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5em;
    }

    .oimionach-map-controls label {
        width: 100%;
        font-size: 16px;
    }

    .oimionach-map-controls button {
        width: auto;
        max-width: 200px;
        margin: 0 auto;
        display: block;
    }
}

.oimionach-map-controls label {
    font-weight: 500;
}

/* Guzik animacji w kolorze brand */
#oim-play {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    color: #fff;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 16px;
    border-radius: 999px;
    transition: background .2s ease, transform .15s ease;
    border: 0;
    cursor: pointer;
    background: var(--map-color);   /* brandowy kolor */
}
#oim-play:hover { filter: brightness(.92); transform: translateY(-1px); }
#oim-play:active { transform: translateY(0); }
#oim-play[aria-pressed="true"] { filter: brightness(.88); }

.oimionach-figure { margin: 0; }
#oim-map { width: 100%; height: 600px; }

#oim-fallback {
    padding: 1em;
    margin-top: 1em;
    border-radius: 8px;
}
#oim-fallback table {
    width: 100%;
    border-collapse: collapse;
}
#oim-fallback th, #oim-fallback td {
    padding: 6px 10px;
    border: 1px solid #ddd;
    text-align: center; /* wyśrodkowanie nagłówków i danych */
}
#oim-fallback th {
    background: #f3f4f6;
}

/* Style Highcharts/ECharts map title like h3-chart */
.highcharts-title,
.echarts-title {
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    fill: #333;
    font-family: inherit;
}

/* Styl podpisów pod mapą i wykresami */
.oimionach-figure figcaption,
figure figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: #555;
    margin-top: 0.5em;
    font-style: italic;
}

/* Styl suwaka roku – brandowy */
.oimionach-map-controls input[type="range"] {
    -webkit-appearance: none;
    width: 200px;
    height: 6px;
    background: #ddd;
    border-radius: 6px;
    outline: none;
    margin: 0 0.5em;
    cursor: pointer;
    transition: background 0.3s;
}
.oimionach-map-controls input[type="range"]:hover {
    background: #ccc;
}
.oimionach-map-controls input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--map-color);  /* brandowy kolor */
    border: 2px solid #fff;
    box-shadow: 0 0 2px rgba(0,0,0,0.4);
    cursor: pointer;
    transition: background 0.3s;
}
.oimionach-map-controls input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--map-color);
}
.oimionach-map-controls input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--map-color);  /* brandowy kolor */
    border: 2px solid #fff;
    box-shadow: 0 0 2px rgba(0,0,0,0.4);
    cursor: pointer;
    transition: background 0.3s;
}
.oimionach-map-controls input[type="range"]::-moz-range-thumb:hover {
    background: var(--map-color);
}

/* Kolory płci */
.gender-male {
    --map-color: #1659C8;   /* Royal Blue */
}
.gender-female {
    --map-color: #D110A7;   /* Hot Pink */
}
.gender-neutral {
    --map-color: #6b7280;   /* Emerald Green */
}

.echarts path {
    stroke-width: inherit !important;
    stroke: inherit !important;
}

#oim-map {
    width: 100%;
    height: 600px; /* desktop */
}

@media (max-width: 600px) {
    #oim-map {
        height: 400px !important;
    }
}


.oim-map-title {
    display: block !important;
    text-align: center;
    margin: 1em 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #0D0F16;
}
