/* ==========================================================================
   City Page — strona miasta
   Wgraj do: wp-content/themes/generatepress_child/city-page.css
   ========================================================================== */

.cp-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.cp-section {
    margin: 56px 0;
}

.cp-section-title {
    font-family: "Lora", serif;
    font-size: 24px;
    font-weight: 700;
    color: #2B2B28;
    margin: 0 0 24px;
}

/* ==========================================================================
   1. Hero
   ========================================================================== */

.cp-hero {
    height: 420px;
    background-size: cover;
    background-position: center;
    background-color: #2B2B28; /* fallback gdy brak zdjęcia */
    position: relative;
}

.cp-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0.05) 100%);
    display: flex;
    align-items: flex-end;
}

.cp-hero-inner {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px 40px;
}

.cp-hero-title {
    font-family: "Lora", serif;
    font-size: 42px;
    font-weight: 700;
    color: #ffffff !important;
    margin: 0 0 8px;
}

.cp-hero-tagline {
    font-family: "Raleway", sans-serif;
    font-size: 16px;
    color: #ffffff !important;
    margin: 0;
}

/* ==========================================================================
   2. Breadcrumbs
   ========================================================================== */

.cp-breadcrumbs {
    font-family: "Raleway", sans-serif;
    font-size: 13px;
    color: #6B6B66;
    padding: 20px 0 0;
}

.cp-breadcrumbs a {
    color: #6B6B66;
    text-decoration: none;
}

.cp-breadcrumbs a:hover {
    color: #1E5B41;
}

.cp-breadcrumb-sep {
    margin: 0 6px;
}

.cp-breadcrumb-current {
    color: #2B2B28;
    font-weight: 600;
}

/* ==========================================================================
   3. Lead (rozwijany)
   ========================================================================== */

.cp-lead-wrap {
    margin: 20px 0 40px;
}

.cp-lead-first {
    font-family: "Raleway", sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #2B2B28;
}

.cp-lead-first p:first-child {
    margin-top: 0;
}

.cp-lead-rest {
    font-family: "Raleway", sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #2B2B28;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.cp-lead-rest.is-expanded {
    max-height: 3000px;
}

.cp-lead-rest p:first-child {
    margin-top: 0;
}

.cp-lead-toggle,
.cp-lead-toggle:hover,
.cp-lead-toggle:focus,
.cp-lead-toggle:active {
    background: none !important;
    background-color: transparent !important;
    -webkit-tap-highlight-color: transparent;
}

.cp-lead-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    color: #1E5B41 !important;
    font-family: "Raleway", sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    padding: 10px 0 0;
}

.cp-lead-toggle:hover {
    color: #A32D2D !important;
}

.cp-lead-arrow {
    transition: transform 0.3s ease;
    display: inline-block;
}

.cp-lead-toggle[aria-expanded="true"] .cp-lead-arrow {
    transform: rotate(180deg);
}

/* ==========================================================================
   4. Co warto zobaczyć
   ========================================================================== */

.cp-attractions-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
}

.cp-attractions-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid #ececec;
}

.cp-attraction-item {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    border-bottom: 1px solid #ececec;
    padding: 14px 10px;
    font-family: "Raleway", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #2B2B28;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

/* Miniaturka i strzałka są częścią markupu na potrzeby widoku mobile
   (patrz media query niżej) — na desktopie zostają ukryte, lista wygląda
   dokładnie tak jak wcześniej (sam tekst) */
.cp-attraction-item-thumb,
.cp-attraction-item-arrow {
    display: none;
}

.cp-attraction-item:hover {
    color: #1E5B41;
    background-color: #F7F5F0;
}

.cp-attraction-item.is-active {
    color: #ffffff !important;
    background-color: #1E5B41;
}

.cp-attraction-detail {
    background-color: #F7F5F0;
    border-radius: 6px;
    overflow: hidden;
}

.cp-attraction-detail-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    background-color: #e2e2e2;
}

.cp-attraction-detail-title {
    font-family: "Lora", serif;
    font-size: 20px;
    font-weight: 700;
    color: #2B2B28;
    margin: 20px 24px 10px;
}

.cp-attraction-detail-excerpt {
    font-family: "Raleway", sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #2B2B28;
    margin: 0 24px 16px;
}

.cp-attraction-detail-link {
    display: inline-block;
    margin: 0 24px 24px;
    color: #1E5B41;
    font-family: "Raleway", sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.cp-attraction-detail-link:hover {
    color: #A32D2D;
}

/* ==========================================================================
   5. Powiązane artykuły (karuzela)
   ========================================================================== */

.cp-related-swiper {
    position: relative;
    overflow: hidden;
}

.cp-related-slide {
    width: 240px;
}

.cp-related-card {
    display: block;
    text-decoration: none;
}

.cp-related-image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    margin-bottom: 10px;
    transition: opacity 0.2s ease;
}

.cp-related-card:hover .cp-related-image {
    opacity: 0.85;
}

.cp-related-title {
    display: block;
    font-family: "Lora", serif;
    font-size: 15px;
    font-weight: 700;
    color: #2B2B28;
    line-height: 1.4;
}

.cp-related-card:hover .cp-related-title {
    color: #1E5B41;
}

.cp-nav {
    color: #2B2B28;
}

/* ==========================================================================
   6. Pogoda
   ========================================================================== */

.cp-weather-widget {
    max-width: 300px;
    margin-bottom: 32px;
}

/* --- 3 boksy aktualnej pogody (Dziś / Jutro / Pojutrze) --- */
.cp-weather-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.cp-weather-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #F7F5F0;
    border-radius: 6px;
    padding: 20px 12px;
}

.cp-weather-box:first-child {
    background-color: #1E5B41;
}

.cp-weather-box:first-child .cp-weather-box-label,
.cp-weather-box:first-child .cp-weather-box-temp,
.cp-weather-box:first-child .cp-weather-box-temp-min,
.cp-weather-box:first-child .cp-weather-box-condition,
.cp-weather-box:first-child .cp-weather-box-sea {
    color: #ffffff !important;
}

.cp-weather-box-label {
    font-family: "Raleway", sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6B6B66;
    margin-bottom: 8px;
}

.cp-weather-box-icon {
    font-size: 32px;
    margin-bottom: 8px;
    line-height: 1;
}

.cp-weather-box-temp {
    font-family: "Lora", serif;
    font-size: 24px;
    font-weight: 700;
    color: #2B2B28;
    margin-bottom: 4px;
}

.cp-weather-box-temp-min {
    font-family: "Raleway", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #6B6B66;
    margin-left: 4px;
}

.cp-weather-box-condition {
    font-family: "Raleway", sans-serif;
    font-size: 13px;
    color: #2B2B28;
    margin-bottom: 8px;
}

.cp-weather-box-sea {
    font-family: "Raleway", sans-serif;
    font-size: 12px;
    color: #6B6B66;
}

@media (max-width: 500px) {
    .cp-weather-boxes {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.cp-weather-subtitle {
    font-family: "Lora", serif;
    font-size: 18px;
    font-weight: 700;
    color: #2B2B28;
    margin: 0 0 14px;
}

.cp-weather-best-time {
    margin-bottom: 40px;
}

.cp-weather-best-time-content {
    font-family: "Raleway", sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #2B2B28;
}

.cp-weather-best-time-content p:first-child {
    margin-top: 0;
}

/* --- Tabela klimatu: miesiące jako kolumny, poziomy scroll na wąskich ekranach --- */
.cp-climate {
    margin-bottom: 40px;
}

.cp-climate-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #ececec;
    border-radius: 4px;
}

.cp-climate-table {
    border-collapse: collapse;
    font-family: "Raleway", sans-serif;
    font-size: 13px;
    min-width: 640px; /* wymusza scroll zamiast ściskania kolumn na mobile */
    width: 100%;
}

.cp-climate-table th,
.cp-climate-table td {
    padding: 10px 14px;
    text-align: center;
    white-space: nowrap;
    border-bottom: 1px solid #ececec;
}

.cp-climate-table thead th {
    background-color: #F7F5F0;
    color: #2B2B28;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.cp-climate-table tbody td {
    color: #2B2B28;
}

/* Pierwsza kolumna (nazwa metryki) przypięta podczas przewijania w bok */
.cp-climate-sticky-col {
    position: sticky;
    left: 0;
    z-index: 1;
    text-align: left !important;
    font-weight: 700;
    background-color: #ffffff;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.05);
}

.cp-climate-table thead .cp-climate-sticky-col {
    background-color: #F7F5F0;
    z-index: 2;
}

@media (max-width: 600px) {
    .cp-climate-table {
        font-size: 12px;
    }
    .cp-climate-table th,
    .cp-climate-table td {
        padding: 8px 10px;
    }
}

/* --- Sekcja sezonowa: Wiosna/Lato/Jesień/Zima (accordion) --- */
.cp-seasons {
    margin-bottom: 40px;
}

.cp-seasons-accordion {
    border-top: 1px solid #ececec;
}

.cp-season-item {
    border-bottom: 1px solid #ececec;
}

.cp-season-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 16px 4px;
    cursor: pointer;
}

.cp-season-label {
    font-family: "Lora", serif;
    font-size: 17px;
    font-weight: 700;
    color: #2B2B28;
}

.cp-season-range {
    font-family: "Raleway", sans-serif;
    font-size: 13px;
    color: #6B6B66;
    flex: 1;
}

.cp-season-caret {
    width: 9px;
    height: 9px;
    border-right: 2px solid #1E5B41;
    border-bottom: 2px solid #1E5B41;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.cp-season-item.is-open .cp-season-caret {
    transform: rotate(-135deg);
}

.cp-season-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.cp-season-item.is-open .cp-season-panel {
    max-height: 3000px;
    padding-bottom: 18px;
}

.cp-month-block {
    padding: 0 4px;
}

.cp-month-block + .cp-month-block {
    border-top: 1px solid #f2f2ee;
    margin-top: 8px;
    padding-top: 8px;
}

.cp-month-title {
    font-family: "Raleway", sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #1E5B41;
    margin: 12px 0 8px;
}

.cp-month-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.cp-month-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: "Raleway", sans-serif;
    font-size: 15px;
    font-weight: 700;
    background-color: #F7F5F0;
    padding: 12px 14px;
    border-radius: 8px;
}

.cp-month-stat-value {
    color: #2B2B28;
}

.cp-season-content {
    font-family: "Raleway", sans-serif;
    font-size: 14px;
    line-height: 1.8;
    color: #2B2B28;
    padding: 0 0 12px;
}

.cp-season-content p:first-child {
    margin-top: 0;
}

/* --- FAQ accordion --- */
.cp-faq-accordion {
    border-top: 1px solid #ececec;
}

.cp-faq-item {
    border-bottom: 1px solid #ececec;
}

.cp-faq-question-wrap {
    margin: 0;
    font-weight: normal; /* wygląd steruje .cp-faq-question, nie domyślny styl H3 */
}

.cp-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 16px 4px;
    font-family: "Raleway", sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #2B2B28;
    cursor: pointer;
}

.cp-faq-question:hover {
    color: #1E5B41;
}

.cp-faq-caret {
    width: 9px;
    height: 9px;
    border-right: 2px solid #1E5B41;
    border-bottom: 2px solid #1E5B41;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.cp-faq-item.is-open .cp-faq-caret {
    transform: rotate(-135deg);
}

.cp-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.cp-faq-item.is-open .cp-faq-answer {
    max-height: 2000px;
}

.cp-faq-answer p {
    font-family: "Raleway", sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #2B2B28;
    padding: 0 4px 18px;
    margin: 0;
}

/* ==========================================================================
   7. Jak dojechać (accordion)
   ========================================================================== */

.cp-transport-intro {
    font-family: "Raleway", sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #2B2B28;
    margin-bottom: 24px;
}

.cp-transport-intro p:first-child {
    margin-top: 0;
}

.cp-transport-accordion {
    border-top: 1px solid #ececec;
}

.cp-transport-item {
    border-bottom: 1px solid #ececec;
}

.cp-transport-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 18px 4px;
    font-family: "Lora", serif;
    font-size: 17px;
    font-weight: 700;
    color: #2B2B28;
    cursor: pointer;
}

.cp-transport-caret {
    width: 10px;
    height: 10px;
    border-right: 2px solid #1E5B41;
    border-bottom: 2px solid #1E5B41;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.cp-transport-item.is-open .cp-transport-caret {
    transform: rotate(-135deg);
}

.cp-transport-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.cp-transport-item.is-open .cp-transport-panel {
    max-height: 6000px;
}

.cp-transport-table-wrap {
    padding: 4px 4px 24px;
}

.cp-transport-table {
    width: 100%;
    border-collapse: collapse;
    font-family: "Raleway", sans-serif;
    font-size: 14px;
}

.cp-transport-table thead th {
    text-align: left;
    padding: 10px 12px;
    background-color: #F7F5F0;
    color: #2B2B28;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.cp-transport-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #ececec;
    color: #2B2B28;
}

/* --- Responsywna tabela na mobile: karty zamiast poziomego scrolla --- */
@media (max-width: 600px) {
    .cp-transport-table thead {
        display: none;
    }

    .cp-transport-table,
    .cp-transport-table tbody,
    .cp-transport-table tr,
    .cp-transport-table td {
        display: block;
        width: 100%;
    }

    .cp-transport-table tr {
        border: 1px solid #ececec;
        border-radius: 4px;
        margin-bottom: 12px;
        padding: 8px 0;
    }

    .cp-transport-table td {
        display: block;
        padding: 8px 14px;
        border-bottom: none;
    }

    .cp-transport-table td::before {
        display: none;
    }

    .cp-td-value {
        display: block;
        font-size: 14px;
        color: #2B2B28;
    }
}

/* ==========================================================================
   8. Jak dolecieć z Polski / Noclegi (WYSIWYG + miejsce pod afiliację)
   ========================================================================== */

.cp-flights-content,
.cp-accommodation-content {
    font-family: "Raleway", sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #2B2B28;
}

.cp-flights-content p:first-child,
.cp-accommodation-content p:first-child {
    margin-top: 0;
}

/* ==========================================================================
   9. Co warto wiedzieć
   ========================================================================== */

.cp-gtk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.cp-gtk-card {
    background-color: #F7F5F0;
    border-radius: 6px;
    padding: 20px;
    border-left: 3px solid #1E5B41;
}

.cp-gtk-title {
    font-family: "Lora", serif;
    font-size: 16px;
    font-weight: 700;
    color: #2B2B28;
    margin: 0 0 8px;
}

.cp-gtk-text {
    font-family: "Raleway", sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #2B2B28;
    margin: 0;
}

.cp-gtk-text a {
    color: #1E5B41;
    text-decoration: underline;
}

.cp-gtk-text a:hover {
    color: #A32D2D;
}

/* ==========================================================================
   Responsywność ogólna
   ========================================================================== */

@media (max-width: 700px) {
    .cp-hero {
        height: 280px;
    }
    .cp-hero-title {
        font-size: 30px;
    }
    .cp-attractions-layout {
        grid-template-columns: 1fr;
    }
    .cp-attraction-detail {
        /* Na mobile nie pokazujemy panelu z podglądem — kliknięcie w listę
           od razu przenosi na pełny artykuł (patrz city-page.js) */
        display: none;
    }
    .cp-attractions-list {
        display: block;
        border-top: 1px solid #ececec;
        overflow-x: visible;
        gap: 0;
        padding-bottom: 0;
    }
    .cp-attraction-item {
        display: flex;
        align-items: center;
        gap: 14px;
        white-space: normal;
        border: none;
        border-bottom: 1px solid #ececec;
        border-radius: 0;
        width: 100%;
        padding: 12px 4px;
    }
    .cp-attraction-item.is-active {
        color: #2B2B28 !important;
        background-color: transparent;
    }
    .cp-attraction-item-thumb {
        display: block;
        width: 56px;
        height: 56px;
        border-radius: 6px;
        background-size: cover;
        background-position: center;
        background-color: #e2e2e2;
        flex-shrink: 0;
    }
    .cp-attraction-item-label {
        flex: 1;
        min-width: 0;
        line-height: 1.4;
    }
    .cp-attraction-item-arrow {
        display: block;
        width: 8px;
        height: 8px;
        border-right: 2px solid #c9c4b4;
        border-bottom: 2px solid #c9c4b4;
        transform: rotate(-45deg);
        flex-shrink: 0;
    }
    .cp-section {
        margin: 40px 0;
    }
    .cp-section-title {
        font-size: 20px;
    }

    /* Tabelki w kontencie (strony miast/regionów) — na mobile przewijają się
       w bok zamiast łamać wiersze/kolumny (display: block + overflow-x: auto) */
    table {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        border-collapse: collapse !important;
    }

    table thead {
        display: table !important;
        width: 100% !important;
    }

    table tbody {
        display: block !important;
    }

    table tr {
        display: table !important;
        width: 100% !important;
        table-layout: fixed !important;
    }

    table th,
    table td {
        min-width: 100px !important;
        word-break: break-word !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        display: table-cell !important;
        padding: 8px 12px !important;
    }
}

/* ==========================================================================
   Wykres klimatu roczny (SVG sparkline) — weather-chart.php
   ========================================================================== */

.cp-chart {
    background-color: #ffffff;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    padding: 20px 24px 8px;
    margin-bottom: 40px;
}

.cp-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.cp-chart-title {
    font-family: "Raleway", sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #2B2B28;
    margin: 0;
}

.cp-chart-months {
    display: grid;
    grid-template-columns: 160px 1fr;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #ececec;
}

.cp-chart-months-labels {
    display: flex;
    justify-content: space-between;
    padding: 0 3%;
}

.cp-chart-months-labels span {
    font-family: "Raleway", sans-serif;
    font-size: 12px;
    color: #9a9689;
    flex: 1;
    text-align: center;
}

.cp-chart-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #ececec;
}

.cp-chart-row:last-child {
    border-bottom: none;
}

.cp-chart-row-label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cp-chart-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    flex-shrink: 0;
}

.cp-chart-label-text {
    font-family: "Raleway", sans-serif;
    font-size: 14px;
    color: #2B2B28;
    line-height: 1.3;
}

.cp-chart-svg-wrap {
    width: 100%;
}

.cp-chart-svg {
    width: 100%;
    height: 70px;
    display: block;
    overflow: visible;
}

.cp-chart-value {
    font-family: "Raleway", sans-serif;
    font-size: 10px;
    font-weight: 700;
    fill: #2B2B28;
}

/* --- Karta "zobacz pełną pogodę" (skrócona wersja na stronie miasta) --- */
.cp-weather-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background-color: #F7F5F0;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.cp-weather-cta-text {
    font-family: "Raleway", sans-serif;
    font-size: 14px;
    color: #2B2B28;
}

.cp-weather-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #1E5B41;
    color: #ffffff !important;
    font-family: "Raleway", sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 2px;
    white-space: nowrap;
}

.cp-weather-cta-link:hover {
    background-color: #A32D2D;
}

/* ==========================================================================
   Responsywność wykresu — POZIOMY SCROLL całej sekcji na mobile (zamiast
   ściskania 12 miesięcy w wąski ekran, co robiło dane nieczytelnymi).
   Kolumna z etykietą (ikona + nazwa) zostaje przypięta z lewej strony
   podczas przewijania, tak jak w tabeli klimatu.
   ========================================================================== */

@media (max-width: 700px) {
    .cp-chart {
        padding: 16px 0 4px 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .cp-chart-header {
        padding-right: 16px;
    }

    /* Wymuszamy stałą, czytelną szerokość — to ONA się przewija w bok,
       nie ściska się do szerokości ekranu.
       UWAGA: display:flex zamiast display:grid — position:sticky wewnątrz
       CSS grid ma znane problemy w przeglądarkach mobilnych (Safari/iOS),
       flex jest tu dużo bardziej niezawodny. */
    .cp-chart-months,
    .cp-chart-row {
        display: flex;
        align-items: center;
        min-width: 736px;
        gap: 0;
    }

    .cp-chart-row-label {
        position: sticky;
        left: 0;
        top: auto;
        z-index: 5;
        background-color: #ffffff;
        padding-right: 10px;
        width: 96px;
        min-width: 96px;
        flex-shrink: 0;
    }

    .cp-chart-months .cp-chart-row-label {
        z-index: 6;
    }

    .cp-chart-svg-wrap {
        flex: 1;
        min-width: 640px;
    }

    .cp-chart-icon {
        width: 32px;
        height: 32px;
        font-size: 15px;
        flex-shrink: 0;
    }

    .cp-chart-label-text {
        font-size: 12px;
    }

    .cp-chart-months-labels span {
        font-size: 12px;
    }

    .cp-chart-value {
        font-size: 11px;
    }

    .cp-weather-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   Naprawa: domyślne podświetlenie dotyku (mobile) na przyciskach
   rozwijanych sekcji było w kolorze bordowym, robiąc ciemny tekst
   nieczytelnym przez ułamek sekundy po dotknięciu. Wyłączamy to
   podświetlenie i dodatkowo zabezpieczamy kolor tekstu na wszelki wypadek.
   ========================================================================== */

.cp-season-header,
.cp-faq-question,
.cp-transport-header,
.cp-attraction-item,
.mn-menu-link,
.cp-lead-toggle {
    -webkit-tap-highlight-color: transparent;
}

/* ==========================================================================
   NAPRAWA: globalne kolory przycisków ustawione w Customizerze WordPressa
   (tło czerwone na hover/focus) "wyciekały" na nasze przyciski rozwijanych
   sekcji, bo technicznie też są elementami <button>. Wymuszamy przezroczyste
   tło na stałe, niezależnie od globalnych ustawień motywu.
   ========================================================================== */

.cp-season-header,
.cp-season-header:hover,
.cp-season-header:focus,
.cp-season-header:active,
.cp-faq-question,
.cp-faq-question:hover,
.cp-faq-question:focus,
.cp-faq-question:active,
.cp-transport-header,
.cp-transport-header:hover,
.cp-transport-header:focus,
.cp-transport-header:active {
    background: none !important;
    background-color: transparent !important;
}

.cp-season-header,
.cp-season-header *,
.cp-faq-question,
.cp-faq-question *,
.cp-transport-header,
.cp-transport-header * {
    color: #2B2B28 !important;
}
