/* --- UI COMPONENTS --- */

/* --- CUSTOM BLOCK STYLES (FSE Clickable Options) --- */

.is-style-slavic-border {
    border: 3px solid var(--color-moss) !important;
    border-radius: 24px !important;
    box-shadow: 0 10px 30px rgba(0, 77, 64, 0.1) !important;
    padding: 40px !important;
}

.is-style-wyraj-glass {
    background: rgba(250, 249, 246, 0.6) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05) !important;
}

.is-style-slavic-organic {
    border-radius: 60% 40% 70% 30% / 40% 50% 60% 70% !important;
    overflow: hidden;
    border: 2px solid var(--color-moss) !important;
    transition: border-radius 1s ease-in-out;
}

.is-style-slavic-organic:hover {
    border-radius: 40% 60% 30% 70% / 60% 40% 70% 30% !important;
}

/* --- BACK TO TOP --- */
#wyraj-back-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9999;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--wp--preset--color--veles);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,77,64,0.3);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}
#wyraj-back-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
#wyraj-back-top:hover {
    background: var(--wp--preset--color--moss);
}
@media (prefers-reduced-motion: reduce) {
    #wyraj-back-top { transition: none; }
}

/* --- BREADCRUMBS --- */
.wyraj-breadcrumbs {
    font-size: 13px;
    margin-bottom: 24px;
}
.wyraj-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.wyraj-breadcrumbs li + li::before {
    content: '›';
    margin-right: 6px;
    color: var(--wp--preset--color--moss);
}
.wyraj-breadcrumbs a {
    color: var(--wp--preset--color--veles);
    text-decoration: none;
}
.wyraj-breadcrumbs a:hover { text-decoration: underline; }
.wyraj-breadcrumbs [aria-current="page"] { color: var(--color-text-mid); }

/* --- COUNTDOWN --- */
.wyraj-countdown {
    display: flex;
    gap: 12px;
    margin: 16px 0;
}
.wyraj-cd-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--wp--preset--color--veles);
    color: #fff;
    border-radius: 12px;
    padding: 12px 16px;
    min-width: 60px;
}
.wyraj-cd-unit span {
    font-family: var(--wp--preset--font-family--accent, monospace);
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
}
.wyraj-cd-unit small {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-top: 4px;
}
.wyraj-countdown-live {
    font-weight: 800;
    color: var(--wp--preset--color--veles);
    font-size: 18px;
}

/* LIVE STATUS badge */
.klgw-status-live {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px; font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* PUBLIC FORM (shortcode [klgw_formularz]) */
.klgw-box {
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid var(--color-border);
}
.klgw-label         { display: block; font-weight: 700; margin-bottom: 8px; color: var(--color-text-mid); font-size: 14px; }
.klgw-input         { width: 100%; padding: 12px; border: 1px solid var(--color-border); border-radius: 8px; margin-bottom: 20px; font-size: 16px; }
.klgw-row           { padding: 20px; background: var(--color-surface); border-radius: 10px; margin-bottom: 20px; border: 1px solid #f0f0f0; }
.klgw-section-title { font-size: 16px; color: #2271b1; font-weight: 800; margin-bottom: 15px; text-transform: uppercase; }
.klgw-submit {
    width: 100%;
    background: var(--wp--preset--color--veles);
    color: #fff;
    border: none;
    padding: 20px;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    font-size: 18px;
    transition: 0.3s;
}
.klgw-submit:hover { filter: brightness(1.1); }

/* MODALS */
.klgw-modal-wrap {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
.klgw-modal-wrap.open { display: flex; }
.klgw-modal-content   { background: #fff; border-radius: 24px; max-width: 700px; width: 100%; padding: 30px; }

/* MZK transport box (shown on event pages) */
.klgw-mzk-box { background: var(--color-surface); border-left: 4px solid var(--color-warning); padding: 12px; border-radius: 0 8px 8px 0; }

.mzk-access-card   { background: #fff; border-radius: 20px; border: 1px solid var(--color-border); margin-top: 25px; overflow: hidden; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.mzk-access-head   { background: var(--color-text); color: #fff; padding: 15px; }
.mzk-access-title  { font-size: 14px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; display: block; }
.mzk-access-sub    { font-size: 11px; opacity: 0.8; margin-top: 2px; display: block; }
.mzk-access-body   { padding: 15px; }
.mzk-stop-row      { margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid var(--color-border-light); }
.mzk-stop-row:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.mzk-stop-header   { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.mzk-stop-info     { flex-grow: 1; }
.mzk-stop-name     { font-size: 15px; font-weight: 800; color: var(--color-text); display: block; }
.mzk-stop-dist     { font-size: 11px; font-weight: 700; color: var(--color-slate); background: var(--color-border-light); padding: 2px 8px; border-radius: 10px; }
.mzk-lines-cloud   { display: flex; flex-wrap: wrap; gap: 5px; }
.mzk-line-badge    { background: #eff6ff; color: var(--color-blue); padding: 3px 10px; border-radius: 8px; font-size: 12px; font-weight: 800; border: 1px solid #dbeafe; }
.mzk-line-badge.tram { background: #fef2f2; color: #dc2626; border-color: #fee2e2; }
.mzk-walk-tip      { font-size: 11px; color: var(--color-slate-light); margin-top: 5px; display: block; }

/* MAP FILTERS (public place map) */
.klgw-map-filters  { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 20px; }
.klgw-map-cat-btn  { background: #fff; border: 1px solid var(--color-border); padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; color: var(--color-slate); cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 6px; }
.klgw-map-cat-btn.active { background: var(--color-blue); color: #fff; border-color: var(--color-blue); }
.klgw-map-dot      { width: 8px; height: 8px; border-radius: 50%; }
.leaflet-div-icon  { background: transparent; border: none; }

/* PUBLIC STATS (shortcode [oberon_stats]) */
.oberon-stats-container { margin: 20px 0; color: #333; line-height: 1.5; display: flex; flex-direction: column; gap: 30px; }
.oberon-stats-table     { width: 100%; max-width: 600px; border-collapse: collapse; background: #fff; border: 1px solid #e0e0e0; }
.oberon-stats-table th,
.oberon-stats-table td  { padding: 10px 15px; text-align: left; border-bottom: 1px solid #f0f0f0; }
.oberon-stats-table th  { background: #f8f9fa; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: #666; font-weight: 600; }
.oberon-stats-val        { font-weight: 700; font-size: 15px; color: #000; text-align: right; }
.oberon-stats-sub        { font-size: 12px; color: #888; }
.oberon-stats-group-title { background: #fdfdfd; font-weight: 700; font-size: 13px; border-left: 3px solid #333; padding-top: 15px; padding-bottom: 5px; }
.oberon-row-small td     { font-size: 13px; padding-top: 6px; padding-bottom: 6px; }

/* ============================================================
   WYRAJ HERO SLIDER
   ============================================================ */
.wyraj-hero {
    position: relative;
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    height: min(42vh, 380px);
    min-height: 240px;
    overflow: hidden;
    background: #111;
    border-radius: 20px;
    isolation: isolate;
    box-shadow: 0 8px 40px rgba(0,0,0,0.25);
}

.wyraj-hero-track {
    position: absolute;
    inset: 0;
}

.wyraj-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.wyraj-hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.wyraj-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    transition: transform 6s ease;
}

.wyraj-hero-slide.is-active .wyraj-hero-bg {
    transform: scale(1);
}

.wyraj-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.75) 0%,
        rgba(0,0,0,0.45) 50%,
        rgba(0,0,0,0.15) 100%
    );
}

.wyraj-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: min(580px, 80%);
    padding: 48px 48px 56px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wyraj-hero-badge {
    display: inline-block;
    align-self: flex-start;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    background: var(--wp--preset--color--veles);
}

.wyraj-hero-title {
    font-size: clamp(22px, 3.5vw, 42px);
    font-weight: 900;
    line-height: 1.15;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.wyraj-hero-meta {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    gap: 8px;
}

.wyraj-hero-btn {
    display: inline-block;
    align-self: flex-start;
    margin-top: 8px;
    padding: 12px 28px;
    background: #fff;
    color: #111;
    font-weight: 800;
    font-size: 14px;
    border-radius: 30px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.wyraj-hero-btn:hover {
    background: var(--wp--preset--color--veles);
    color: #fff;
    transform: translateY(-2px);
}

/* Arrows */
.wyraj-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wyraj-hero-arrow:hover { background: rgba(255,255,255,0.3); }
.wyraj-hero-prev { left: 16px; }
.wyraj-hero-next { right: 16px; }

/* Dots */
.wyraj-hero-dots {
    position: absolute;
    bottom: 20px;
    right: 24px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.wyraj-hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    padding: 0;
}

.wyraj-hero-dot.is-active {
    background: #fff;
    transform: scale(1.4);
}

/* Footer Veles */
.klgw-footer-veles { display: flex; justify-content: flex-end; }
.klgw-veles-sign   { opacity: 0.3; }

/* Responsive */
@media (max-width: 600px) {
    .wyraj-hero {
        height: min(35vh, 260px);
    }
    .wyraj-hero-content {
        width: 100%;
        padding: 28px 20px 60px;
    }
    .wyraj-hero-arrow { display: none; }
}

/* --- STRONA 404 --- */
.w404-wrap {
    width: min(680px, calc(100% - 40px));
    margin: 0 auto 60px;
    font-family: 'Inter', sans-serif;
}

.w404-ticket {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.08);
    overflow: hidden;
    position: relative;
    margin-bottom: 32px;
}

/* Czerwony ukośny stempel ODWOŁANO */
.w404-stamp {
    position: absolute;
    top: 42px; left: -28px;
    background: #ef4444;
    color: #fff;
    font-size: 18px; font-weight: 900;
    letter-spacing: 4px; text-transform: uppercase;
    padding: 8px 50px;
    transform: rotate(-20deg);
    box-shadow: 0 4px 12px rgba(239,68,68,0.4);
    z-index: 10;
    border: 3px solid rgba(255,255,255,0.3);
}

.w404-ticket-top {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #004d40 100%);
    padding: 32px 32px 24px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.w404-org { font-size: 11px; font-weight: 900; letter-spacing: 3px; text-transform: uppercase; opacity: 0.7; }
.w404-event-type { font-size: 13px; font-weight: 700; background: rgba(255,255,255,0.15); padding: 5px 12px; border-radius: 20px; }

.w404-ticket-body { padding: 32px; }

.w404-number {
    font-size: clamp(80px, 18vw, 140px);
    font-weight: 900;
    line-height: 1;
    color: var(--color-border);
    letter-spacing: -6px;
    margin-bottom: 8px;
    font-family: 'Montserrat', sans-serif;
}

.w404-title {
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 900;
    color: var(--color-text-dark);
    margin: 0 0 28px;
    line-height: 1.2;
}

.w404-meta { display: flex; flex-direction: column; gap: 14px; }
.w404-meta-item { display: flex; flex-direction: column; gap: 3px; }
.w404-meta-label {
    font-size: 9px; font-weight: 900; text-transform: uppercase;
    letter-spacing: 2px; color: var(--color-slate-light);
}
.w404-meta-val { font-size: 14px; font-weight: 600; color: var(--color-text-mid); }

/* Perforowana linia odcięcia */
.w404-ticket-tear {
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--color-border) 0px, var(--color-border) 8px, transparent 8px, transparent 16px);
    margin: 0 -0px;
    position: relative;
}
.w404-ticket-tear::before,
.w404-ticket-tear::after {
    content: '';
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 24px; height: 24px;
    background: var(--color-surface);
    border-radius: 50%;
    border: 2px solid var(--color-border);
}
.w404-ticket-tear::before { left: -13px; }
.w404-ticket-tear::after  { right: -13px; }

.w404-ticket-foot {
    padding: 24px 32px;
    display: flex; gap: 12px; flex-wrap: wrap;
    background: var(--color-surface);
}

.w404-btn-home,
.w404-btn-search {
    display: inline-flex; align-items: center;
    padding: 12px 22px; border-radius: 12px;
    font-size: 13px; font-weight: 800; text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.w404-btn-home {
    background: var(--color-text-dark); color: #fff;
}
.w404-btn-search {
    background: var(--color-blue); color: #fff;
}
.w404-btn-home:hover,
.w404-btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Sugestie wydarzeń */
.w404-suggestions { }
.w404-sug-label {
    font-size: 11px; font-weight: 900; text-transform: uppercase;
    letter-spacing: 2px; color: var(--color-slate-light); margin-bottom: 12px;
}
.w404-sug-list { display: flex; flex-direction: column; gap: 8px; }
.w404-sug-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; background: #fff; border-radius: 12px;
    border: 1.5px solid var(--color-border);
    text-decoration: none; color: inherit;
    transition: border-color 0.15s, transform 0.15s;
}
.w404-sug-item:hover { border-color: var(--color-blue); transform: translateX(4px); }
.w404-sug-title { font-size: 14px; font-weight: 700; color: var(--color-text-dark); }
.w404-sug-date  { font-size: 12px; color: var(--color-slate-light); white-space: nowrap; }

@media (max-width: 480px) {
    .w404-ticket-top { flex-direction: column; gap: 10px; }
    .w404-ticket-foot { flex-direction: column; }
    .w404-btn-home, .w404-btn-search { justify-content: center; }
    .w404-sug-item { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* --- BLOG SINGLE POST --- */
.klgw-blog-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: -8px 0 24px;
    font-size: 13px;
    color: var(--color-slate-light);
    font-weight: 600;
}
.klgw-blog-meta .wp-block-post-date a,
.klgw-blog-meta .wp-block-post-terms a {
    color: var(--color-slate-light);
    text-decoration: none;
}
.klgw-blog-meta .wp-block-post-terms a:hover { color: var(--wp--preset--color--veles); }
.klgw-blog-meta .wp-block-post-terms::before { content: '·'; margin-right: 12px; }

.klgw-blog-hero {
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid var(--color-moss);
    box-shadow: 0 8px 24px rgba(0,77,64,0.12);
    margin-bottom: 32px;
}
.klgw-blog-hero img { width: 100%; height: auto; display: block; }

.klgw-blog-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text);
}
.klgw-blog-content h2 {
    font-family: var(--wp--preset--font-family--accent);
    font-weight: 900;
    font-size: clamp(18px, 3vw, 24px);
    color: var(--wp--preset--color--veles);
    margin: 40px 0 16px;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}
.klgw-blog-content h3 {
    font-weight: 800;
    font-size: 18px;
    margin: 28px 0 12px;
    color: var(--color-text-dark);
}
.klgw-blog-content p { margin: 0 0 20px; }
.klgw-blog-content ul, .klgw-blog-content ol { padding-left: 24px; margin: 0 0 20px; }
.klgw-blog-content li { margin-bottom: 6px; }
.klgw-blog-content code {
    font-family: monospace;
    font-size: 13px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 1px 6px;
    color: var(--wp--preset--color--veles);
}
.klgw-blog-content strong { color: var(--color-text-dark); }

/* --- BLOG LISTING --- */
.wyraj-blog-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--color-border);
}
.wyraj-blog-header .klgw-main-title { margin: 0; }
.wyraj-blog-header-meta { font-size: 12px; color: var(--color-slate-light); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.wyraj-blog-header-meta a { color: inherit; text-decoration: none; }

.wyraj-blog-grid.wp-block-post-template {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(min(320px,100%), 1fr));
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
}
.wyraj-blog-grid.wp-block-post-template > li { margin: 0; }

.wyraj-blog-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--color-border-light);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    height: 100%;
}
.wyraj-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,77,64,.1);
    border-color: var(--wp--preset--color--moss);
}

.wyraj-blog-card-img { margin: 0; display: block; }
.wyraj-blog-card-img img { width: 100%; height: 200px; object-fit: cover; display: block; transition: transform .4s; }
.wyraj-blog-card:hover .wyraj-blog-card-img img { transform: scale(1.04); }

.wyraj-blog-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }

.wyraj-blog-card-date { font-size: 11px; font-weight: 800; color: var(--color-slate-light); text-transform: uppercase; letter-spacing: .06em; margin: 0; }
.wyraj-blog-card-date a { color: inherit; text-decoration: none; }

.wyraj-blog-card-title { font-size: 17px !important; font-weight: 800; line-height: 1.3; margin: 0; color: var(--wp--preset--color--veles); }
.wyraj-blog-card-title a { color: inherit; text-decoration: none; }
.wyraj-blog-card-title a:hover { text-decoration: underline; }

.wyraj-blog-card-exc { font-size: 13px; color: var(--color-slate); line-height: 1.6; margin: 0; flex: 1; }
.wyraj-blog-card-exc p { margin: 0; }

.wyraj-blog-card-more { margin-top: auto; font-size: 13px; font-weight: 800; color: var(--wp--preset--color--veles); text-decoration: none; letter-spacing: .02em; }
.wyraj-blog-card-more:hover { text-decoration: underline; }

.wyraj-blog-pagination {
    margin-top: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}
.wyraj-blog-pagination .wp-block-query-pagination-previous,
.wyraj-blog-pagination .wp-block-query-pagination-next {
    font-size: 13px; font-weight: 800; color: var(--wp--preset--color--veles);
    text-decoration: none; padding: 8px 16px;
    border: 1.5px solid var(--color-border); border-radius: 10px;
    transition: all .15s;
}
.wyraj-blog-pagination .wp-block-query-pagination-previous:hover,
.wyraj-blog-pagination .wp-block-query-pagination-next:hover {
    border-color: var(--wp--preset--color--veles);
    background: var(--color-surface);
}
.wyraj-blog-pagination .wp-block-query-pagination-numbers { display: flex; gap: 6px; align-items: center; }
.wyraj-blog-pagination .page-numbers { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 8px; text-decoration: none; color: var(--color-text-mid); border: 1.5px solid var(--color-border); transition: all .15s; }
.wyraj-blog-pagination .page-numbers.current { background: var(--wp--preset--color--veles); color: #fff; border-color: var(--wp--preset--color--veles); }
.wyraj-blog-pagination .page-numbers:hover:not(.current) { border-color: var(--wp--preset--color--veles); }

.wyraj-blog-empty { text-align: center; color: var(--color-slate-light); padding: 60px 0; font-size: 15px; }


/* MZK stop labels on Leaflet map */
.mzk-stop-label {
    background: rgba(255,255,255,0.92) !important;
    border: 1px solid #2563eb !important;
    border-radius: 6px !important;
    padding: 2px 7px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #1e3a8a !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15) !important;
    white-space: nowrap !important;
}
.mzk-stop-label::before { display: none !important; }
.venue-label {
    border-color: #004d40 !important;
    color: #004d40 !important;
    font-size: 12px !important;
}

/* --- APP INSTALL BANNER --- */
.wyraj-app-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #004d40 0%, #4a5d23 100%);
    border-radius: 16px;
    padding: 14px 16px;
    margin: 8px 16px 0;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,77,64,0.25);
}
.wyraj-app-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    flex: 1;
    min-width: 0;
}
.wyraj-app-link:hover { color: #fff; text-decoration: none; }
.wyraj-app-icon { font-size: 28px; flex-shrink: 0; }
.wyraj-app-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.wyraj-app-text strong {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}
.wyraj-app-text span {
    font-size: 12px;
    color: rgba(255,255,255,0.75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wyraj-app-cta {
    background: #fff;
    color: #004d40;
    font-size: 13px;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.15s;
}
.wyraj-app-link:hover .wyraj-app-cta {
    background: #d4a017;
    color: #fff;
    transform: scale(1.04);
}
.wyraj-app-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.55);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 6px;
    flex-shrink: 0;
    line-height: 1;
    transition: color 0.2s;
}
.wyraj-app-close:hover { color: #fff; }
@media (max-width: 480px) {
    .wyraj-app-cta { display: none; }
    .wyraj-app-text span { display: none; }
    .wyraj-app-text strong { font-size: 14px; }
}

/* --- WYRAJ EVENTS STATS BAR (COUNTER) --- */
.wyraj-events-stats-bar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px 20px;
    width: min(1200px, calc(100% - 40px));
    margin: 12px auto 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(0, 0, 0, 0.03);
    position: relative;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wyraj-events-stats-bar:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.wyraj-stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    justify-content: center;
    padding: 4px 10px;
}

.wyraj-stat-icon {
    font-size: 24px;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.06));
    flex-shrink: 0;
}

.wyraj-stat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wyraj-stat-number {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
    color: #0f172a;
    font-family: var(--wp--preset--font-family--accent, 'Montserrat', sans-serif);
    letter-spacing: -0.5px;
}

.wyraj-stat-highlight .wyraj-stat-number {
    color: #0284c7;
}

.wyraj-stat-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.wyraj-stat-divider {
    width: 1px;
    height: 32px;
    background: #e2e8f0;
    flex-shrink: 0;
}

@media (max-width: 680px) {
    .wyraj-events-stats-bar {
        padding: 10px 8px;
        width: calc(100% - 24px);
        margin: 10px auto;
    }
    .wyraj-stat-item {
        gap: 6px;
        padding: 2px 4px;
    }
    .wyraj-stat-icon {
        font-size: 20px;
    }
    .wyraj-stat-number {
        font-size: 18px;
    }
    .wyraj-stat-label {
        font-size: 10px;
        letter-spacing: 0.2px;
    }
    .wyraj-stat-divider {
        height: 24px;
    }
}

@media (max-width: 440px) {
    .wyraj-stat-icon {
        display: none;
    }
    .wyraj-stat-info {
        align-items: center;
        text-align: center;
    }
    .wyraj-stat-number {
        font-size: 17px;
    }
    .wyraj-stat-label {
        font-size: 9px;
    }
}

/* --- EU AI ACT COMPLIANCE BADGES & NOTICES --- */
.wyraj-ai-notice {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    padding: 2px 8px;
    background: rgba(212, 160, 23, 0.1);
    color: var(--wp--preset--color--amber, #d4a017);
    border: 1px solid rgba(212, 160, 23, 0.25);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: help;
    transition: all 0.2s ease;
}
.wyraj-ai-notice:hover {
    background: rgba(212, 160, 23, 0.2);
    border-color: rgba(212, 160, 23, 0.5);
}

.wyraj-ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    background: rgba(0, 77, 64, 0.06);
    color: var(--wp--preset--color--moss, #004d40);
    border: 1px solid rgba(0, 77, 64, 0.15);
    border-radius: 14px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: help;
    transition: background 0.2s, border-color 0.2s;
}
.wyraj-ai-badge:hover {
    background: rgba(0, 77, 64, 0.12);
    border-color: rgba(0, 77, 64, 0.3);
}
.wyraj-ai-badge svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

/* --- BENTO HERO GRID & PILL NAV (CITY MAGAZINE) --- */
.wyraj-bento-hero {
    width: min(1200px, calc(100% - 40px));
    margin: 18px auto 8px;
    box-sizing: border-box;
}

.wyraj-bento-grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 16px;
    align-items: stretch;
}

.wyraj-bento-card {
    border-radius: 22px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wyraj-bento-feature {
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    background-size: cover;
    background-position: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    text-decoration: none;
}

.wyraj-bento-feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.wyraj-bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.65) 55%, rgba(15, 23, 42, 0.92) 100%);
    z-index: 1;
}

.wyraj-bento-badge-top {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.wyraj-bento-tag {
    background: #0284c7;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

.wyraj-bento-cat {
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 9999px;
    backdrop-filter: blur(8px);
}

.wyraj-bento-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.wyraj-bento-title {
    color: #fff !important;
    font-size: clamp(1.3rem, 2.2vw, 1.85rem) !important;
    font-weight: 900 !important;
    margin: 0 0 10px !important;
    line-height: 1.25 !important;
    font-family: var(--wp--preset--font-family--accent, 'Montserrat', sans-serif);
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.wyraj-bento-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: rgba(255,255,255,0.95);
    margin-bottom: 14px;
    font-weight: 600;
}

.wyraj-bento-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 18px;
    border-radius: 9999px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.wyraj-bento-feature:hover .wyraj-bento-cta {
    background: #0284c7;
    color: #fff;
    transform: scale(1.03);
}

.wyraj-bento-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wyraj-bento-weekend {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 20px;
    color: #0f172a;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 6px 16px -2px rgba(0,0,0,0.04);
}

.wyraj-bento-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.wyraj-bento-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wyraj-bento-card-icon {
    font-size: 22px;
}

.wyraj-bento-card-title strong {
    font-size: 15px;
    color: #0f172a;
    display: block;
    line-height: 1.2;
    font-weight: 800;
}

.wyraj-bento-card-title small {
    font-size: 12px;
    color: #64748b;
    display: block;
}

.wyraj-bento-more-link {
    color: #0284c7 !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
}

.wyraj-bento-more-link:hover {
    color: #0369a1 !important;
    text-decoration: underline;
}

.wyraj-bento-weekend-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wyraj-bento-w-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.wyraj-bento-w-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.wyraj-bento-w-date {
    font-size: 11px;
    font-weight: 800;
    color: #b45309;
    text-transform: uppercase;
}

.wyraj-bento-w-title {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wyraj-bento-stats {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 16px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 6px 16px -2px rgba(0,0,0,0.04);
}

.wyraj-bento-stats .wyraj-bento-card-title strong {
    color: #0f172a;
}

.wyraj-bento-stats .wyraj-bento-card-title small {
    color: #64748b;
}

.wyraj-bento-stats-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.wyraj-bento-stat-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2px;
    flex: 1;
}

.wyraj-bento-num {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    font-family: var(--wp--preset--font-family--accent, 'Montserrat', sans-serif);
}

.wyraj-bento-stat-hl .wyraj-bento-num {
    color: #0284c7;
}

.wyraj-bento-lbl {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* PILL FILTER BAR */
.wyraj-pill-nav {
    width: min(1200px, calc(100% - 40px));
    margin: 14px auto 20px;
    box-sizing: border-box;
}

.wyraj-pill-track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 6px 2px 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.wyraj-pill-track::-webkit-scrollbar {
    display: none;
}

.wyraj-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 9999px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.wyraj-pill:hover {
    background: #f1f5f9;
    color: #0f172a !important;
    border-color: #cbd5e1;
}

.wyraj-pill.is-active {
    background: #0f172a;
    color: #ffffff !important;
    border-color: #0f172a;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
}

.wyraj-pill-today {
    color: #0284c7;
}

.wyraj-pill-weekend {
    color: #b45309;
}

.wyraj-pill-search {
    color: #64748b;
}

/* RESPONSIVE BENTO */
@media (max-width: 860px) {
    .wyraj-bento-hero {
        width: calc(100% - 24px);
        margin: 12px auto 6px;
    }
    .wyraj-bento-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .wyraj-bento-feature {
        min-height: 280px;
        padding: 18px;
    }
    .wyraj-pill-nav {
        width: calc(100% - 24px);
        margin: 8px auto 14px;
    }
}

/* FOOTER MINIMALIST LIGHT STYLING */
footer.wp-block-group {
    color: #64748b;
    background-color: #ffffff !important;
    border-top: 1px solid #e2e8f0;
    padding-top: 40px !important;
    padding-bottom: 40px !important;
}
footer.wp-block-group .wp-block-site-title a {
    color: #0f172a !important;
    font-weight: 800;
}
footer.wp-block-group a {
    color: #475569 !important;
    text-decoration: none;
}
footer.wp-block-group a:hover {
    color: #0f172a !important;
    text-decoration: underline;
}
footer.wp-block-group .wp-block-separator {
    border-color: #e2e8f0 !important;
}

/* ==========================================================================
   CITY EXPLORER HERO & VIBE CARDS (NOWA WIZJA: PORTAL MIEJSKI)
   ========================================================================== */

.wyraj-explorer-hero {
    width: min(1200px, calc(100% - 40px));
    margin: 24px auto 30px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 36px 32px 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 12px 30px -10px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    text-align: center;
}

.wyraj-explorer-container {
    max-width: 900px;
    margin: 0 auto;
}

.wyraj-explorer-badge-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 16px;
}

.wyraj-explorer-city-tag {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f1f5f9;
    color: #0f172a;
    padding: 5px 14px;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
}

.wyraj-explorer-stats-pill {
    font-size: 12px;
    font-weight: 600;
    color: #0284c7;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    padding: 5px 14px;
    border-radius: 9999px;
}

.wyraj-explorer-headline {
    font-size: clamp(1.8rem, 3.5vw, 2.7rem);
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.03em;
    line-height: 1.18;
    margin: 0 0 12px;
    font-family: var(--wp--preset--font-family--accent, 'Montserrat', sans-serif);
}

.wyraj-explorer-subtext {
    font-size: 15px;
    color: #64748b;
    margin: 0 auto 26px;
    max-width: 580px;
    line-height: 1.5;
}

/* Wyszukiwarka */
.wyraj-explorer-searchbar {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 9999px;
    padding: 6px 8px 6px 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    transition: all 0.2s ease;
    max-width: 640px;
    margin: 0 auto 28px;
}

.wyraj-explorer-searchbar:focus-within {
    border-color: #0284c7;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
}

.wyraj-explorer-search-icon {
    font-size: 18px;
    color: #94a3b8;
    margin-right: 8px;
}

.wyraj-explorer-search-input {
    border: none;
    background: transparent;
    flex: 1;
    font-size: 15px;
    color: #0f172a;
    outline: none;
    font-family: inherit;
}

.wyraj-explorer-search-input::placeholder {
    color: #94a3b8;
    font-size: 14px;
}

.wyraj-explorer-search-btn {
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    letter-spacing: 0.3px;
}

.wyraj-explorer-search-btn:hover {
    background: #0284c7;
}

/* Kafelki zamiaru (Vibe Grid) */
.wyraj-explorer-vibe-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    text-align: left;
}

@media (max-width: 820px) {
    .wyraj-explorer-vibe-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .wyraj-explorer-vibe-grid {
        grid-template-columns: 1fr;
    }
    .wyraj-explorer-hero {
        padding: 24px 16px 20px;
        width: calc(100% - 24px);
        margin: 16px auto 20px;
    }
    .wyraj-explorer-searchbar {
        padding: 4px 6px 4px 14px;
    }
    .wyraj-explorer-search-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

.wyraj-vibe-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    text-decoration: none;
    color: #0f172a;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.wyraj-vibe-card:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.wyraj-vibe-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

.wyraj-vibe-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.wyraj-vibe-text strong {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wyraj-vibe-text small {
    font-size: 11px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Wyróżnione obramowania dla najważniejszych */
.wyraj-vibe-today {
    background: #fff7ed;
    border-color: #fed7aa;
}
.wyraj-vibe-today:hover {
    border-color: #f97316;
}
.wyraj-vibe-weekend {
    background: #f0fdf4;
    border-color: #bbf7d0;
}
.wyraj-vibe-weekend:hover {
    border-color: #22c55e;
}




