/* --- CARDS & GRIDS --- */

/* WordPress native post grid */
.wp-block-post-template {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: 30px;
    list-style: none;
}

.wp-block-post-template li {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s, border-color 0.2s;
}

.wp-block-post-template li:hover {
    transform: translateY(-4px);
    border-color: var(--wp--preset--color--veles);
}

.wp-block-post-featured-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* ============================================================
   KLGW-S-CARD — JEDEN STANDARD DLA WSZYSTKICH LIST WYDARZEŃ
   Używany przez: klgw_events, klgw_curated_list, klgw_recent,
   klgw_updated, event_ongoing, event_slider, oberon_events,
   oberon_infinite_feed, archiwum, wyszukiwarka, miejsca.
   ============================================================ */

.klgw-s-scope { width: min(1200px, calc(100% - 40px)); margin: 30px auto; color: var(--color-text-mid); padding: 0; }
.klgw-cur-scope { width: min(1200px, calc(100% - 40px)); margin: 30px auto; padding: 0; }

/* /* ============================================================
   KLGW-S-GRID — NOWOCZESNA SIATKA 3-KOLUMNOWA (AIRBNB / GOOGLE EVENTS)
   ============================================================ */
.klgw-s-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

@media (max-width: 1024px) {
    .klgw-s-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .klgw-s-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ============================================================
   KLGW-S-CARD — ZBALANSOWANA KARTA WYDARZENIA (STANDARD LUMA / GOOGLE)
   ============================================================ */
.klgw-s-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 4px 12px rgba(0, 0, 0, 0.02);
    text-decoration: none;
    color: #1e293b;
    position: relative;
}

.klgw-s-card:hover { 
    transform: translateY(-4px); 
    border-color: #cbd5e1;
    box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03); 
}

.klgw-s-card:active {
    transform: scale(0.99);
}

/* Niewidzialny link rozciągnięty na całą kartę */
.klgw-s-card-overlay-link {
    position: absolute;
    inset: 0;
    z-index: 5;
    text-indent: -9999px;
    cursor: pointer;
}

/* Boks na zdjęcie o zbalansowanych proporcjach 3:2 z optymalnym kadrowaniem */
.klgw-s-img-w { 
    width: 100%;
    aspect-ratio: 3 / 2;
    position: relative; 
    background: #0f172a;
    overflow: hidden;
    flex-shrink: 0;
}

.klgw-s-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    object-position: center 15%;
    transition: transform 0.4s ease; 
    display: block; 
}

.klgw-s-card:hover .klgw-s-img { 
    transform: scale(1.03); 
}

/* Dyskretny tag kategorii — Frosted Glass */
.klgw-s-badge-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    pointer-events: none;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    white-space: nowrap;
}

/* Plakietka daty na zdjęciu karty (Calendar Sheet) */
.klgw-s-date-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 2;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 6px 9px;
    min-width: 44px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    line-height: 1;
}

.klgw-s-date-badge .klgw-s-date-dow {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #38bdf8;
    line-height: 1;
    margin-bottom: 2px;
}

.klgw-s-date-badge .klgw-s-date-d {
    font-size: 18px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.05;
    font-family: var(--wp--preset--font-family--accent, 'Montserrat', sans-serif);
}

.klgw-s-date-badge .klgw-s-mon {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1;
    margin-top: 2px;
}

.klgw-s-date-badge.is-multiday {
    min-width: 52px;
    padding: 6px 8px;
}

.klgw-s-date-badge.is-multiday .klgw-s-date-d {
    font-size: 13px;
    letter-spacing: -0.3px;
}

/* Plakietka godziny / trwania na zdjęciu karty */
.klgw-s-time-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 2;
    pointer-events: none;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    letter-spacing: 0.3px;
    line-height: 1;
}

/* Treść karty */
.klgw-s-cont { 
    padding: 18px 20px 20px; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
    background: #ffffff; 
    min-width: 0;
    position: relative;
    z-index: 2;
}

/* Pełna data i godzina — czysta typografia, wyrazisty akcent bez emoji */
.klgw-s-meta-top {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.klgw-s-fulldate {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #0284c7;
    display: block;
    line-height: 1.2;
}

/* Tytuł wydarzenia — ściśle kontrolowane 2 linie z line-clamp */
.klgw-s-h3 { 
    font-size: 17px; 
    font-weight: 800; 
    margin: 0 0 8px; 
    line-height: 1.35; 
    color: #0f172a; 
    font-family: var(--wp--preset--font-family--accent, 'Montserrat', sans-serif); 
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
    word-break: break-word;
    hyphens: auto;
}

.klgw-s-h3 a { 
    color: inherit; 
    text-decoration: none; 
    transition: color 0.15s ease; 
}

.klgw-s-card:hover .klgw-s-h3 a { 
    color: #0284c7; 
}

/* Miejsce z mikro-ikoną wektorową SVG */
.klgw-s-place { 
    font-size: 12px; 
    font-weight: 600; 
    color: #64748b; 
    margin-bottom: 10px; 
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}

.klgw-s-pin-icon {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    display: inline-block;
    background-color: #94a3b8;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") no-repeat center / contain;
}

.klgw-s-place-link { 
    position: relative;
    z-index: 6;
    color: inherit; 
    text-decoration: none; 
    transition: color 0.15s ease; 
}

.klgw-s-place-link:hover { 
    color: #0284c7; 
}

/* Krótki opis wydarzenia (zajawka) — zbalansowane 2 linie dające natychmiastowy kontekst */
.klgw-s-exc { 
    font-size: 13px; 
    color: #64748b; 
    line-height: 1.5; 
    margin: 0 0 14px; 
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3em;
    word-break: break-word;
}

/* Stopka karty wyrównana do dołu */
.klgw-s-foot { 
    margin-top: auto; 
    padding-top: 14px; 
    border-top: 1px solid #f1f5f9; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    gap: 10px;
}

.klgw-s-price { 
    font-size: 12px; 
    font-weight: 700; 
    color: #0f172a; 
    background: #f1f5f9; 
    border: 1px solid #e2e8f0; 
    padding: 3px 10px; 
    border-radius: 9999px; 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.klgw-s-price.is-free {
    color: #047857; 
    background: #ecfdf5; 
    border-color: #a7f3d0; 
}

.klgw-s-more { 
    font-size: 12px; 
    font-weight: 700; 
    color: #0284c7; 
    display: inline-flex; 
    align-items: center; 
    gap: 4px;
    transition: transform 0.2s ease, color 0.2s ease;
    letter-spacing: 0.2px;
}

.klgw-s-arrow-icon {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    display: inline-block;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") no-repeat center / contain;
    transition: transform 0.2s ease;
}

.klgw-s-card:hover .klgw-s-more { 
    color: #0369a1; 
}

.klgw-s-card:hover .klgw-s-arrow-icon {
    transform: translateX(3px);
}

/* ============================================================
   SEPARATOR DNIA — CZYSTY, MINIMALISTYCZNY, BEZ DUBLOWANIA DATY
   ============================================================ */
.klgw-s-sep {
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    gap: 16px;
    margin: 44px 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

.klgw-s-sep-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.klgw-s-dayname { 
    margin: 0;
    line-height: 1.2;
    font-size: 20px; 
    font-weight: 900; 
    color: #0f172a; 
    font-family: var(--wp--preset--font-family--accent, 'Montserrat', sans-serif);
    letter-spacing: -0.3px;
}

.klgw-day-now {
    font-size: 11px; 
    font-weight: 900; 
    text-transform: uppercase; 
    letter-spacing: 0.5px;
    background: #0284c7; 
    color: #ffffff;
    padding: 3px 10px; 
    border-radius: 9999px;
}

.klgw-day-tomorrow { 
    background: #10b981; 
}

.klgw-s-sep-line {
    flex-grow: 1;
}

.klgw-sep-count {
    font-size: 12px; 
    font-weight: 700; 
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 12px; 
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .klgw-s-sep {
        margin: 32px 0 16px;
        gap: 10px;
    }
    .klgw-s-dayname {
        font-size: 17px;
    }
    .klgw-sep-count {
        font-size: 11px;
        padding: 3px 10px;
    }
}

/* Ukrycie zduplikowanego wielkiego nagłówka — czystość viewportu */
.klgw-main-header  { display: none; }

/* Pasek toggle filtrów */
.klgw-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.klgw-filter-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 18px;
    border-radius: 12px;
    border: 1.5px solid var(--color-border);
    background: #fff;
    font-size: 12px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.04em;
    cursor: pointer; color: var(--color-text-mid);
    transition: all 0.15s;
    white-space: nowrap;
}
.klgw-filter-toggle:hover { border-color: var(--color-slate); background: var(--color-surface); }
.klgw-filter-toggle .klgw-ft-arrow { font-size: 10px; transition: transform 0.2s; }
.klgw-filter-toggle.is-open .klgw-ft-arrow { transform: rotate(180deg); }
.klgw-filter-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; padding: 0 5px;
    background: var(--color-blue); color: #fff;
    border-radius: 99px; font-size: 10px; font-weight: 800;
}
.klgw-filter-badge.is-hidden { display: none; }

/* Segment control: Redakcja / Wszystkie */
.klgw-macro-btns {
    display: inline-flex;
    background: var(--color-border-light);
    border-radius: 12px;
    padding: 4px;
    gap: 0;
}
.klgw-macro-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 20px;
    border-radius: 9px; border: none;
    font-weight: 700; font-size: 12px;
    text-transform: uppercase; letter-spacing: 0.5px;
    cursor: pointer; transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    background: transparent; color: var(--color-slate-dark);
    white-space: nowrap;
}
.klgw-macro-btn:hover { background: rgba(255,255,255,0.7); }
.klgw-btn-editor { color: #b45309; }
.klgw-btn-live {
    color: #e11d48;
    position: relative;
}
.klgw-btn-live.is-segment-active {
    background: #e11d48 !important;
    color: #fff !important;
    box-shadow: 0 2px 10px rgba(225, 29, 72, 0.4) !important;
}
.klgw-btn-live.is-segment-active .klgw-live-pulse-dot {
    background: #fff;
    box-shadow: 0 0 8px #fff;
}
.klgw-btn-live.is-segment-active .klgw-live-badge {
    background: rgba(255,255,255,0.3);
    color: #fff;
}
.klgw-live-pulse-dot {
    width: 8px;
    height: 8px;
    background: #e11d48;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7);
    animation: klgw-pulse-anim 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
}
@keyframes klgw-pulse-anim {
    0% {
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7);
    }
    70% {
        box-shadow: 0 0 0 7px rgba(225, 29, 72, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0);
    }
}
.klgw-live-badge {
    background: rgba(225, 29, 72, 0.12);
    color: #e11d48;
    padding: 1px 6px;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 800;
}
.klgw-live-badge.is-hidden { display: none; }

.klgw-macro-btn.is-segment-active {
    background: #fff; color: var(--color-text-dark);
    box-shadow: 0 1px 6px rgba(0,0,0,0.1);
}

/* Przycisk Partnerzy w Macro Buttons (Wolf Ads) */
.klgw-btn-partner {
    color: #b45309;
    border-left: 1px solid rgba(0,0,0,0.06);
    transition: background 0.18s, color 0.18s, opacity 0.18s, box-shadow 0.18s;
}
.klgw-btn-partner:hover {
    background: rgba(255, 255, 255, 0.7);
}
.klgw-btn-partner.is-active {
    color: #92400e;
    font-weight: 800;
}
.klgw-btn-partner.is-off {
    opacity: 0.75;
    background: rgba(0, 0, 0, 0.04) !important;
    box-shadow: none !important;
    color: #64748b;
}
.klgw-btn-partner .klgw-partner-star {
    font-size: 13px;
    display: inline-block;
    transition: transform 0.2s ease, filter 0.2s ease;
}
.klgw-btn-partner:hover .klgw-partner-star {
    transform: scale(1.2);
}
.klgw-btn-partner.is-off .klgw-partner-star {
    filter: grayscale(100%);
    opacity: 0.5;
}

/* Karta oznaczona jako PARTNER (Wolf Ads) */
.klgw-s-card.is-partner-card {
    border: 1.5px solid rgba(212, 160, 23, 0.45) !important;
    background: linear-gradient(180deg, #ffffff 0%, #fffdfa 100%) !important;
    box-shadow: 0 4px 14px rgba(212, 160, 23, 0.08);
}
.klgw-s-card.is-partner-card:hover {
    border-color: #d4a017 !important;
    box-shadow: 0 8px 24px rgba(212, 160, 23, 0.18) !important;
}
.klgw-s-badge-cat.is-partner-badge {
    background: #d4a017 !important;
    color: #111111 !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px;
}

/* Karta oznaczona jako TRWA TERAZ */
.klgw-s-card.is-live-now {
    border: 2px solid #e11d48 !important;
    box-shadow: 0 4px 18px rgba(225, 29, 72, 0.18) !important;
    position: relative;
}
.klgw-s-badge-live {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e11d48;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.5);
    animation: klgw-live-flash 2.5s infinite;
}
.klgw-s-badge-live.is-soon {
    background: #f59e0b;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.5);
}
@keyframes klgw-live-flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}
.klgw-s-badge-live::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    display: inline-block;
}

/* Empty state dla trybu LIVE */
.klgw-live-empty-state {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 40px 24px;
    text-align: center;
    margin: 20px 0 32px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.03);
}
.klgw-les-icon {
    font-size: 40px;
    margin-bottom: 12px;
}
.klgw-les-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-text-dark);
    margin-bottom: 8px;
}
.klgw-les-desc {
    font-size: 14px;
    color: var(--color-text-mid);
    max-width: 480px;
    margin: 0 auto 20px;
    line-height: 1.5;
}
.klgw-les-btn {
    background: var(--color-blue);
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 99px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: transform 0.15s, background 0.15s;
}
.klgw-les-btn:hover {
    background: var(--color-blue-dark);
    transform: translateY(-1px);
}

/* Panel filtrów (składany) */
.klgw-controls-container {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    margin-bottom: 32px;
    overflow: hidden;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.28s ease;
}
.klgw-controls-container.is-open {
    grid-template-rows: 1fr;
}
.klgw-controls-inner {
    overflow: hidden;
    padding: 0 20px;
    transition: padding 0.28s ease;
}
.klgw-controls-container.is-open .klgw-controls-inner {
    padding: 18px 20px 20px;
}

/* Etykieta sekcji */
.klgw-filter-section { margin-bottom: 18px; }
.klgw-filter-section:last-child { margin-bottom: 0; }
.klgw-filter-label {
    font-size: 10px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.07em;
    color: var(--color-slate-light);
    margin-bottom: 10px;
    display: flex; align-items: center; gap: 8px;
}
.klgw-filter-label::after {
    content: ''; flex: 1; height: 1px; background: var(--color-border);
}

/* Kategorie — pigułki */
.klgw-cats-grid {
    display: flex; flex-wrap: wrap; gap: 8px;
}
.klgw-cat-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 30px;
    cursor: pointer; user-select: none;
    border: 1.5px solid var(--color-border);
    background: #fff; font-size: 12px; font-weight: 700;
    color: var(--color-slate-dark); transition: all 0.15s;
    white-space: nowrap;
    min-height: 36px;
    box-sizing: border-box;
}
.klgw-cat-toggle:hover { border-color: var(--color-slate); transform: translateY(-1px); }
.klgw-cat-toggle:not(.is-active) { opacity: 0.35; background: var(--color-surface); }
.klgw-cat-toggle.is-active { border-color: var(--cat-color, var(--color-blue)); background: #fff; opacity: 1; }
.klgw-cat-toggle.is-active .klgw-toggle-dot { background: var(--cat-color, var(--color-blue)); }
.klgw-toggle-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--color-border); flex-shrink: 0; transition: background 0.15s;
}
.klgw-cat-name { font-size: 12px; font-weight: 700; color: inherit; }

/* Budżet — pigułki (zawsze widoczne) */
.klgw-budget-row {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: 10px;
}
.klgw-budget-pill {
    font-family: var(--wp--preset--font-family--primary, inherit);
    font-size: 12px; font-weight: 700;
    padding: 7px 15px; border-radius: 99px;
    border: 1.5px solid var(--color-border);
    background: #fff; color: var(--color-text-mid);
    cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.klgw-budget-pill:hover { border-color: var(--color-slate); transform: translateY(-1px); }
.klgw-budget-pill.is-active {
    color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    background: var(--color-text-dark); border-color: var(--color-text-dark);
}
.klgw-budget-pill[data-budget="free"].is-active  { background: #059669; border-color: #059669; }
.klgw-budget-pill[data-budget="0-20"].is-active  { background: #2563eb; border-color: #2563eb; }
.klgw-budget-pill[data-budget="21-39"].is-active { background: #7c3aed; border-color: #7c3aed; }
.klgw-budget-pill[data-budget="40-59"].is-active { background: #d97706; border-color: #d97706; }
.klgw-budget-pill[data-budget="60-100"].is-active{ background: #dc2626; border-color: #dc2626; }
.klgw-budget-pill[data-budget="101+"].is-active  { background: #7f1d1d; border-color: #7f1d1d; }

/* Miejsce + share */
.klgw-share-btn { background: var(--color-success); color: #fff; border: none; border-radius: 12px; padding: 0 16px; cursor: pointer; font-weight: 700; height: 38px; flex-shrink: 0; }
.klgw-select-place {
    padding: 9px 16px; border-radius: 12px;
    border: 1.5px solid var(--color-border);
    font-size: 13px; font-weight: 600;
    color: var(--color-slate-dark); background: #fff;
    outline: none; cursor: pointer; width: 100%;
    transition: border-color 0.15s;
}
.klgw-select-place:hover { border-color: var(--color-slate); }


/* Stany przeszłości */
.is-past { opacity: 0.65; filter: grayscale(40%); }
.is-past:hover { opacity: 1; filter: grayscale(0); }

/* --- CALENDAR MONTH NAV --- */
.klgw-nav-wrap { width: min(1200px, calc(100% - 40px)); margin: 20px auto; padding: 0; }
.klgw-nav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.klgw-nav-m    { background: #fff; padding: 10px; border-radius: 8px; border: 1px solid var(--color-border-light); box-shadow: 0 1px 3px rgba(0,0,0,0.02); }
.klgw-nav-mt   { font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--color-slate); margin-bottom: 8px; text-align: center; }
.klgw-nav-ds   { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.klgw-nav-d    { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 10px; border-radius: 4px; background: var(--color-surface); color: var(--color-slate-light); text-decoration: none; font-weight: 700; transition: 0.2s; }
.klgw-nav-d.active       { background: var(--color-blue); color: #fff; cursor: pointer; }
.klgw-nav-d.active:hover { background: var(--color-blue-dark); }

@media (max-width: 600px) {
    .klgw-s-info { flex-direction: column; align-items: flex-start; gap: 5px; }
}
