/* ═══════════════════════════════════════════════════════════
   Podgorica Events – Frontend CSS
   podgorica.travel kolor shema
   Studio Piksel © 2026
═══════════════════════════════════════════════════════════ */

:root {
    --pe-navy:        #0C3C6B;
    --pe-blue:        #1472BC;
    --pe-blue-hover:  #0F5EA0;
    --pe-teal:        #009ACB;
    --pe-light:       #E8F2FB;
    --pe-light-2:     #F0F7FF;
    --pe-border:      #C5D9EE;
    --pe-text:        #0F1C2E;
    --pe-muted:       #526378;
    --pe-radius:      8px;
    --pe-shadow:      0 1px 3px rgba(12,60,107,.08), 0 4px 16px rgba(12,60,107,.07);
    --pe-transition:  0.18s ease;
    --pe-font:        'Roboto Slab', sans-serif;
}

/* Global font for all plugin elements */
.pe-events-wrap,
.pe-single-wrap,
.pe-with-sidebar,
.pe-events-wrap *,
.pe-single-wrap *,
.pe-with-sidebar * {
    font-family: var(--pe-font);
}

/* ═══════════════════════════════════════════════════════════
   FILTER WRAP
═══════════════════════════════════════════════════════════ */

.pe-events-wrap { max-width: 100%; width: 100%; box-sizing: border-box; }



.pe-filter-wrap {
    border: 1.5px solid var(--pe-border);
    border-radius: var(--pe-radius);
    background: white;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: var(--pe-shadow);
}

/* ── Red 1: Search bar ── */
.pe-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: white;
    border-bottom: 1px solid var(--pe-border);
    flex-wrap: wrap;
}

/* Search wrap — takes all available space */
.pe-search-wrap {
    position: relative;
    flex: 1 1 200px;
    min-width: 0;
    display: flex;
    align-items: center;
    border: 1.5px solid var(--pe-border);
    border-radius: 8px;
    background: #fafcff;
    overflow: hidden;
    height: 40px;
    transition: border-color var(--pe-transition), box-shadow var(--pe-transition);
}

.pe-search-wrap:focus-within {
    border-color: var(--pe-blue);
    box-shadow: 0 0 0 3px rgba(20,114,188,.10);
    background: white;
}

.pe-search-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    color: var(--pe-muted);
    pointer-events: none;
    flex-shrink: 0;
}

.pe-search-input {
    flex: 1;
    padding: 10px 10px 10px 34px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--pe-text);
    outline: none;
    min-width: 0;
}

/* "Pronađi događaje" inside search wrap, right side */
.pe-find-btn {
    padding: 0 16px;
    background: var(--pe-blue);
    color: white;
    border: none;
    border-radius: 0;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background var(--pe-transition);
    align-self: stretch;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pe-find-btn:hover { background: var(--pe-blue-hover); }

/* Desktop: ikonica skrivena, tekst vidljiv */
.pe-find-icon-mobile { display: none; }
.pe-find-label       { display: inline; }

/* Right side: filteri + view toggle + count */
.pe-bar-right {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

.pe-filters-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 14px;
    border: 1.5px solid var(--pe-border);
    background: white;
    color: var(--pe-muted);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    flex-shrink: 0;
    transition: all var(--pe-transition);
    white-space: nowrap;
}

.pe-filters-toggle svg { flex-shrink: 0; }

.pe-filters-toggle:hover,
.pe-filters-toggle.is-open {
    border-color: var(--pe-blue);
    color: var(--pe-blue);
    background: var(--pe-light);
}

.pe-toggle-arrow {
    transition: transform 0.2s;
    margin-left: 2px;
}

.pe-filters-toggle.is-open .pe-toggle-arrow { transform: rotate(180deg); }

/* Event count */
.pe-event-count {
    font-size: 13px;
    color: var(--pe-muted);
    white-space: nowrap;
    padding-left: 4px;
}


/* ── Red 2: Kategorije chips ── */
.pe-filter-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--pe-border);
    background: var(--pe-light-2);
}

.pe-cat-btn {
    padding: 5px 15px;
    border: 1.5px solid var(--pe-border);
    border-radius: 20px;
    background: white;
    color: var(--pe-text);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--pe-transition);
    white-space: nowrap;
}

.pe-cat-btn:hover {
    border-color: var(--pe-blue);
    color: var(--pe-blue);
    background: var(--pe-light);
}

.pe-cat-btn--active {
    background: var(--pe-blue);
    border-color: var(--pe-blue);
    color: white;
}

.pe-cat-btn--active:hover {
    background: var(--pe-blue-hover);
    border-color: var(--pe-blue-hover);
    color: white;
}

/* ── Red 3: Extended filters panel ── */
.pe-ext-filters {
    display: none;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
    background: var(--pe-light-2);
    border-top: 1px solid var(--pe-border);
    align-items: flex-end;
}

.pe-ext-filters.is-open { display: flex; }

.pe-filter-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 160px;
}

.pe-filter-field--sm { flex: 0 1 150px; min-width: 130px; }

.pe-filter-field--check {
    flex: 0 0 auto;
    min-width: auto;
    justify-content: flex-end;
}

.pe-filter-field label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--pe-muted);
}

.pe-filter-field select,
.pe-filter-field input[type="date"] {
    padding: 8px 10px;
    border: 1.5px solid var(--pe-border);
    border-radius: 6px;
    font-size: 13px;
    color: var(--pe-text);
    background: white;
    width: 100%;
    transition: border-color var(--pe-transition);
    cursor: pointer;
    outline: none;
}

.pe-filter-field select:focus,
.pe-filter-field input[type="date"]:focus {
    border-color: var(--pe-blue);
    box-shadow: 0 0 0 2px rgba(20,114,188,.1);
}

.pe-filter-check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    font-size: 13px;
    color: var(--pe-text);
    padding: 8px 12px;
    border: 1.5px solid var(--pe-border);
    border-radius: 6px;
    background: white;
    transition: all var(--pe-transition);
    white-space: nowrap;
    user-select: none;
}

.pe-filter-check:has(input:checked) {
    border-color: var(--pe-blue);
    background: var(--pe-light);
    color: var(--pe-blue);
}

.pe-filter-check input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--pe-blue);
    cursor: pointer;
    flex-shrink: 0;
}

.pe-filter-reset {
    font-size: 12px;
    color: var(--pe-muted);
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px 4px;
    text-decoration: underline;
    text-decoration-style: dotted;
    transition: color var(--pe-transition);
    white-space: nowrap;
    align-self: flex-end;
}

.pe-filter-reset:hover { color: var(--pe-blue); }

/* ═══════════════════════════════════════════════════════════
   EVENTS CONTAINER
═══════════════════════════════════════════════════════════ */

.pe-events-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 200px;
    transition: opacity 0.2s ease;
}

/* Smooth view switch — prevent layout jolt */
.pe-events-container.pe-view-switching {
    opacity: 0;
}

/* ═══════════════════════════════════════════════════════════
   LIST CARD  —  fixed-height horizontal card, uniform look
═══════════════════════════════════════════════════════════ */

.pe-card--list {
    display: flex;
    align-items: stretch;
    height: 160px;
    border: 1px solid var(--pe-border);
    border-radius: 10px;
    background: white;
    box-shadow: 0 1px 4px rgba(12,60,107,.06), 0 2px 12px rgba(12,60,107,.05);
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.pe-card--list:hover {
    box-shadow: 0 4px 20px rgba(12,60,107,.12);
    transform: translateY(-2px);
}

.pe-card--featured { border-left: 3px solid var(--pe-teal); }
.pe-card--past     { opacity: 0.55; filter: grayscale(0.2); }

/* Thumbnail with date badge */
.pe-list-thumb {
    position: relative;
    flex-shrink: 0;
    width: 180px;
    display: block;
    overflow: hidden;
    background: var(--pe-light);
}

.pe-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.pe-card--list:hover .pe-list-thumb img { transform: scale(1.05); }

.pe-list-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: var(--pe-light);
    color: var(--pe-muted);
}

/* Date badge overlay on image */
.pe-list-date-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--pe-navy);
    color: white;
    border-radius: 8px;
    padding: 7px 10px 6px;
    text-align: center;
    line-height: 1;
    min-width: 44px;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

.pe-ldb-day   { display: block; font-size: 11px; font-weight: 700; text-transform: capitalize; letter-spacing: 0.3px; opacity: 0.85; }
.pe-ldb-num   { display: block; font-size: 20px; font-weight: 900; margin: 1px 0; }
.pe-ldb-month { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.6px; opacity: 0.75; }
.pe-ldb-name  { display: block; font-size: 9px; opacity: 0.6; }

/* Body */
.pe-list-body {
    flex: 1;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
}

/* CTA column — compact pill buttons */
.pe-list-cta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 12px 14px;
    gap: 6px;
    flex-shrink: 0;
    border-left: none;
}

/* Pill-style detail button */
.pe-btn-detail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    background: var(--pe-blue);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
    text-align: center;
}

.pe-btn-detail:hover { background: var(--pe-blue-hover); color: white; transform: translateY(-1px); }

/* Pill-style ticket button */
.pe-btn-ticket {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 14px;
    background: transparent;
    color: var(--pe-blue);
    border: 1.5px solid var(--pe-blue);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-align: center;
}

.pe-btn-ticket:hover { background: var(--pe-blue); color: white; }

/* ═══════════════════════════════════════════════════════════
   GRID CARD
═══════════════════════════════════════════════════════════ */

.pe-view-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    flex-direction: unset;
    min-height: 200px;
}

.pe-card--grid {
    border: 1px solid var(--pe-border);
    border-radius: var(--pe-radius);
    background: white;
    box-shadow: var(--pe-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--pe-transition), transform var(--pe-transition);
}

.pe-card--grid:hover {
    box-shadow: 0 6px 24px rgba(12,60,107,.13);
    transform: translateY(-2px);
}

.pe-card-img-wrap {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    background: var(--pe-light);
    text-decoration: none;
}

.pe-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.pe-card--grid:hover .pe-card-img-wrap img { transform: scale(1.04); }

.pe-card-img-placeholder {
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pe-light);
    font-size: 34px;
}

/* Date badge on grid image */
.pe-card-date-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--pe-navy);
    color: white;
    border-radius: 6px;
    padding: 5px 9px;
    text-align: center;
    line-height: 1;
}

.pe-db-day   { display: block; font-size: 16px; font-weight: 900; }
.pe-db-month { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.8; margin-top: 2px; }

.pe-card-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

/* ═══════════════════════════════════════════════════════════
   SHARED CARD ELEMENTS
═══════════════════════════════════════════════════════════ */

.pe-card-cats { display: flex; flex-wrap: wrap; gap: 5px; }

.pe-cat-tag {
    font-size: 10.5px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 20px;
    background: var(--pe-light);
    color: var(--pe-navy);
    white-space: nowrap;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    letter-spacing: 0.2px;
}

.pe-cat-tag:hover { border-color: var(--pe-blue); color: var(--pe-blue); background: white; }
.pe-cat-tag--featured { background: #E0F7FF; color: var(--pe-teal); }

/* List card title — 2-line clamp on desktop */
.pe-card--list .pe-card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--pe-text);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Grid card title — no clamp needed */
.pe-card--grid .pe-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--pe-text);
    margin: 0;
}

.pe-card-title a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
.pe-card-title a:hover { color: var(--pe-blue); }

.pe-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    align-items: center;
}

.pe-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12.5px;
    color: var(--pe-muted);
    white-space: nowrap;
}

.pe-meta-item svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--pe-blue); }
.pe-meta-item a { color: var(--pe-blue); text-decoration: none; }
.pe-meta-item a:hover { text-decoration: underline; }

.pe-meta-cost {
    font-size: 12px;
    font-weight: 700;
    color: var(--pe-navy);
    background: var(--pe-light);
    border-radius: 20px;
    padding: 3px 11px;
    border: 1px solid var(--pe-border);
}

/* Excerpt — 2-line clamp for list, hidden by default */
.pe-card-excerpt {
    font-size: 13px;
    color: #64748b;
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Status badges */
.pe-status {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    box-shadow: 0 1px 4px rgba(0,0,0,.12);
}

.pe-status--cancelled { background: #FEE2E2; color: #DC2626; }
.pe-status--postponed { background: #FEF3C7; color: #B45309; }
.pe-status--ongoing   { background: #D1FAE5; color: #059669; }
.pe-status--scheduled { background: var(--pe-light); color: var(--pe-navy); }

/* ═══════════════════════════════════════════════════════════
   SINGLE EVENT PAGE
═══════════════════════════════════════════════════════════ */

.pe-single-wrap {
    max-width: var(--wp--style--global--wide-size, 1200px);
    width: 100%;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
}

.pe-single-wrap a:not(.pe-action-btn):not(.pe-cat-tag),
.pe-single-wrap a:not(.pe-action-btn):not(.pe-cat-tag):hover,
.pe-single-wrap a:not(.pe-action-btn):not(.pe-cat-tag):focus {
    color: var(--pe-blue);
}

.pe-events-wrap a.pe-btn-detail,
.pe-events-wrap a.pe-btn-detail:hover,
.pe-events-wrap a.pe-btn-detail:focus {
    color: #fff !important;
    background: var(--pe-blue) !important;
    text-decoration: none !important;
}

.pe-events-wrap a.pe-btn-ticket,
.pe-events-wrap a.pe-btn-ticket:hover,
.pe-events-wrap a.pe-btn-ticket:focus {
    text-decoration: none !important;
}

.pe-events-wrap button.pe-find-btn,
.pe-events-wrap button.pe-find-btn:hover,
.pe-events-wrap button.pe-find-btn:focus {
    background: var(--pe-blue) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: none;
}

.pe-events-wrap button.pe-filters-toggle,
.pe-events-wrap button.pe-filters-toggle:hover,
.pe-events-wrap button.pe-filters-toggle:focus {
    color: var(--pe-muted) !important;
    background: #fff !important;
    border: 1.5px solid var(--pe-border) !important;
    box-shadow: none;
    text-decoration: none !important;
}

.pe-events-wrap button.pe-filters-toggle.is-open,
.pe-events-wrap button.pe-filters-toggle.is-open:hover,
.pe-events-wrap button.pe-filters-toggle.is-open:focus {
    color: var(--pe-blue) !important;
    background: var(--pe-light) !important;
    border-color: var(--pe-blue) !important;
}

.pe-single-wrap a.pe-action-btn,
.pe-single-wrap a.pe-action-btn:hover,
.pe-single-wrap a.pe-action-btn:focus,
.pe-single-wrap button.pe-action-btn,
.pe-single-wrap button.pe-action-btn:hover,
.pe-single-wrap button.pe-action-btn:focus {
    text-decoration: none !important;
}

.pe-single-wrap a.pe-action-btn--primary,
.pe-single-wrap a.pe-action-btn--primary:hover,
.pe-single-wrap a.pe-action-btn--primary:focus {
    color: #fff !important;
    background: var(--pe-blue) !important;
    border-color: var(--pe-blue) !important;
}

.pe-single-wrap button.pe-action-btn--secondary,
.pe-single-wrap button.pe-action-btn--secondary:hover,
.pe-single-wrap button.pe-action-btn--secondary:focus {
    color: var(--pe-navy) !important;
    background: #fff !important;
    border-color: var(--pe-border) !important;
}

.pe-single-wrap a.pe-action-btn--ticket,
.pe-single-wrap a.pe-action-btn--ticket:hover,
.pe-single-wrap a.pe-action-btn--ticket:focus {
    color: #fff !important;
    background: var(--pe-navy) !important;
    border-color: var(--pe-navy) !important;
}

.pe-single-wrap .pe-action-btn svg,
.pe-events-wrap .pe-btn-detail svg,
.pe-events-wrap .pe-btn-ticket svg {
    color: inherit;
}

.pe-single-wrap .pe-details-card,
.pe-single-wrap .pe-single-content,
.pe-single-wrap .pe-single-sidebar {
    min-width: 0;
}

.pe-single-wrap .pe-detail-row > div:last-child {
    min-width: 0;
}

.pe-single-wrap .pe-detail-value,
.pe-single-wrap .pe-detail-value a,
.pe-single-wrap .pe-detail-value small {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.pe-single-wrap .pe-single-content > :first-child {
    margin-top: 0;
}

.pe-single-wrap .pe-single-content img {
    max-width: 100%;
    height: auto;
}

.pe-single-wrap .pe-details-title,
.pe-single-wrap .pe-detail-label,
.pe-single-wrap .pe-detail-value,
.pe-single-wrap .pe-action-btn {
    font-family: var(--pe-font);
}

.pe-cat-archive-wrap {
    max-width: var(--wp--style--global--wide-size, 1200px);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px 40px;
    box-sizing: border-box;
}


.pe-single-hero {
    position: relative;
    width: 100%;
    max-height: 420px;
    overflow: hidden;
    border-radius: var(--pe-radius);
    margin-bottom: 20px;
}

.pe-single-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Hero overlay gradient + title */
.pe-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 32px 36px;
    background: linear-gradient(
        to top,
        rgba(12, 60, 107, 0.88) 0%,
        rgba(12, 60, 107, 0.45) 40%,
        rgba(12, 60, 107, 0.08) 70%,
        transparent 100%
    );
    border-radius: var(--pe-radius);
}

.pe-hero-title {
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    max-width: 80%;
}

.pe-single-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.pe-single-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
    margin-bottom: 48px;
}

.pe-single-content {
    min-width: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
}

/* Sidebar details card */
.pe-details-card {
    background: white;
    border: 1px solid var(--pe-border);
    border-radius: var(--pe-radius);
    box-shadow: var(--pe-shadow);
    overflow: hidden;
    position: sticky;
    top: 20px;
}

.pe-details-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: white;
    background: var(--pe-navy);
    padding: 14px 18px;
    margin: 0;
}

.pe-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid #f0f4f9;
}

.pe-detail-row:last-of-type { border-bottom: none; }

.pe-detail-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--pe-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pe-detail-icon svg {
    width: 18px;
    height: 18px;
    color: var(--pe-blue);
}

.pe-detail-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--pe-muted);
    margin-bottom: 3px;
}

.pe-detail-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--pe-text);
    line-height: 1.4;
}

.pe-detail-value a { color: var(--pe-blue); text-decoration: underline; }
.pe-detail-value small { font-size: 12px; color: var(--pe-muted); }
.pe-detail-value--cost { color: var(--pe-navy); font-weight: 700; font-size: 16px; }

/* Action buttons */
.pe-detail-actions {
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fafcff;
    border-top: 1px solid var(--pe-border);
}

.pe-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all var(--pe-transition);
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.pe-action-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.pe-action-btn--primary {
    background: var(--pe-blue);
    color: white;
    border-color: var(--pe-blue);
}

.pe-action-btn--primary:hover { background: var(--pe-blue-hover); border-color: var(--pe-blue-hover); color: white; }

.pe-action-btn--secondary {
    background: white;
    color: var(--pe-navy);
    border-color: var(--pe-border);
}

.pe-action-btn--secondary:hover { border-color: var(--pe-blue); color: var(--pe-blue); }

.pe-action-btn--ticket {
    background: var(--pe-navy);
    color: white;
    border-color: var(--pe-navy);
}

.pe-action-btn--ticket:hover { background: #0a2f52; border-color: #0a2f52; color: white; }

/* Similar events */
.pe-similar { margin-top: 40px; }

.pe-similar-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--pe-text);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--pe-border);
}

.pe-similar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.pe-similar-card {
    border: 1px solid var(--pe-border);
    border-radius: var(--pe-radius);
    overflow: hidden;
    background: white;
    box-shadow: var(--pe-shadow);
    transition: transform var(--pe-transition), box-shadow var(--pe-transition);
}

.pe-similar-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(12,60,107,.12); }

.pe-similar-img {
    display: block;
    aspect-ratio: 4/3;
    position: relative;
    overflow: hidden;
    background: var(--pe-light);
}

.pe-similar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.pe-similar-card:hover .pe-similar-img img { transform: scale(1.04); }

.pe-similar-img-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.pe-similar-date {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: var(--pe-navy);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 4px;
}

.pe-similar-body {
    padding: 12px 14px;
}

.pe-similar-body h3 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 8px;
}

.pe-similar-body h3 a { color: var(--pe-text); text-decoration: none; }
.pe-similar-body h3 a:hover { color: var(--pe-blue); }

.pe-similar-venue,
.pe-similar-time {
    font-size: 12px;
    color: var(--pe-muted);
    margin: 3px 0 0;
}

/* ═══════════════════════════════════════════════════════════
   PAGINATION / LOAD MORE
═══════════════════════════════════════════════════════════ */

.pe-pagination {
    margin-top: 26px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.pe-load-more {
    padding: 10px 28px;
    background: white;
    border: 2px solid var(--pe-blue);
    border-radius: 6px;
    color: var(--pe-blue);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--pe-transition);
}

.pe-load-more:hover { background: var(--pe-blue); color: white; }

.pe-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--pe-muted);
    font-size: 13px;
}

.pe-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid var(--pe-border);
    border-top-color: var(--pe-blue);
    border-radius: 50%;
    animation: pe-spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes pe-spin { to { transform: rotate(360deg); } }

.pe-no-events {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px;
    color: var(--pe-muted);
    text-align: center;
    gap: 12px;
}

.pe-no-events span { font-size: 38px; opacity: 0.45; }
.pe-no-events p    { font-size: 15px; }

/* ═══════════════════════════════════════════════════════════
   CALENDAR
═══════════════════════════════════════════════════════════ */

.pe-calendar-wrap {
    background: white;
    border: 1.5px solid var(--pe-border);
    border-radius: var(--pe-radius);
    box-shadow: var(--pe-shadow);
    overflow: hidden;
}

.pe-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 20px;
    background: var(--pe-navy);
    color: white;
}

.pe-cal-nav-btn {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: background var(--pe-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.pe-cal-nav-btn:hover { background: rgba(255,255,255,.22); }

.pe-cal-title { font-size: 16px; font-weight: 700; }

.pe-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }

.pe-cal-head { background: var(--pe-light); border-bottom: 1px solid var(--pe-border); }

.pe-cal-day-name {
    padding: 9px 6px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--pe-navy);
}

.pe-cal-cell {
    border-right: 1px solid #eef2f8;
    border-bottom: 1px solid #eef2f8;
    padding: 5px 4px;
    min-height: 90px;
    vertical-align: top;
}

.pe-cal-cell--empty { background: #fbfcff; }
.pe-cal-cell--today { background: #F0F7FF; }

.pe-cal-cell--today .pe-cal-day-num {
    background: var(--pe-blue);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pe-cal-day-num {
    font-size: 12px;
    font-weight: 700;
    color: #333;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-bottom: 3px;
}

.pe-cal-events-list { display: flex; flex-direction: column; gap: 2px; }

.pe-cal-ev {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    border-radius: 3px;
    background: var(--pe-blue);
    color: white;
    font-size: 10px;
    text-decoration: none;
    line-height: 1.3;
    overflow: hidden;
    transition: opacity var(--pe-transition);
}

.pe-cal-ev:hover { opacity: 0.82; color: white; }

.pe-cal-ev-time  { flex-shrink: 0; opacity: 0.8; font-size: 9px; }
.pe-cal-ev-title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.pe-cal-footer {
    padding: 9px 16px;
    font-size: 12px;
    color: var(--pe-muted);
    border-top: 1px solid var(--pe-border);
    background: var(--pe-light-2);
}

.pe-cal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px;
    gap: 12px;
    color: var(--pe-muted);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
    .pe-single-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .pe-single-sidebar {
        order: -1;
    }

    .pe-details-card {
        position: static;
        top: auto;
    }

    .pe-similar-grid { grid-template-columns: repeat(2, 1fr); }

    .pe-hero-overlay { padding: 24px 20px; }
    .pe-hero-title { font-size: 20px; max-width: 100%; }
}

@media (max-width: 768px) {
    .pe-card--list {
        flex-wrap: wrap;
        height: auto;
    }

    .pe-list-thumb {
        width: 100%;
        height: 180px;
    }

    .pe-list-body {
        padding: 12px 14px;
    }

    .pe-card--list .pe-card-title {
        -webkit-line-clamp: 2;
    }

    .pe-card-excerpt {
        -webkit-line-clamp: 3;
    }

    .pe-list-cta {
        flex-direction: row;
        justify-content: flex-start;
        padding: 0 14px 12px;
        flex: 0 0 100%;
        border-left: none;
        border-top: 1px solid #edf2f7;
        min-width: auto;
    }

    .pe-btn-detail, .pe-btn-ticket { width: auto; }
    .pe-btn-detail { margin-top: 10px; }

    /* Stabilniji mobilni filter layout */
    .pe-filter-bar   { flex-wrap: wrap; align-items: stretch; padding: 8px 10px; }
    .pe-filter-cats  { gap: 6px; }
    .pe-ext-filters  { flex-direction: column; }
    .pe-filter-field { min-width: 100% !important; flex: 1 1 100% !important; }
    .pe-filter-field--check { align-items: flex-start; }

    .pe-search-wrap { flex: 1 1 100%; min-width: 0; }
    .pe-bar-right   { width: 100%; flex-shrink: 0; align-self: stretch; display: flex; align-items: stretch; justify-content: space-between; gap: 8px; }
    .pe-event-count { display: none; }

    /* Find btn: na mobilnom samo ikonica */
    .pe-find-icon-mobile { display: block; }
    .pe-find-label       { display: none !important; }
    .pe-find-btn         { padding: 0 12px; border-radius: 0 6px 6px 0; }

    /* Filteri btn: sakrij tekst i strelicu, ostavi samo ikonica; ista visina kao search */
    .pe-filters-label  { display: none !important; }
    .pe-toggle-arrow   { display: none !important; }
    .pe-filters-toggle { padding: 0 12px; border-radius: 6px; align-self: stretch; }

    .pe-single-wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

    .pe-view-grid    { grid-template-columns: 1fr; }
    .pe-cal-cell     { min-height: 60px; }
    .pe-cal-ev-time  { display: none; }
    .pe-cal-day-name { font-size: 9px; padding: 7px 2px; }

    .pe-similar-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .pe-cal-cell { padding: 3px 2px; min-height: 48px; }
    .pe-cal-ev   { font-size: 9px; padding: 1px 4px; }
}

/* ═══════════════════════════════════════════════════════════
   EVENTS + SIDEBAR LAYOUT WRAPPER
═══════════════════════════════════════════════════════════ */

.pe-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
    align-items: start;
    width: 100%;
    max-width: var(--wp--style--global--wide-size, 1200px);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.pe-with-sidebar__main { min-width: 0; overflow: hidden; }
.pe-with-sidebar__aside { min-width: 0; }

@media (max-width: 860px) {
    .pe-with-sidebar {
        display: grid;
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .pe-with-sidebar__main,
    .pe-events-wrap,
    .pe-with-sidebar__aside {
        display: block;
    }

    .pe-with-sidebar__main,
    .pe-with-sidebar__aside,
    .pe-events-wrap {
        min-width: 0;
        width: 100%;
    }

    /* Find btn i Filteri btn — samo ikonice, bez teksta */
    .pe-find-icon-mobile { display: block; }
    .pe-find-label       { display: none !important; }
    .pe-filters-label    { display: none !important; }
    .pe-toggle-arrow     { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   SIDEBAR — [pt_sidebar]
═══════════════════════════════════════════════════════════ */

.pe-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── Kompaktni kalendar ── */
.pe-sb-calendar {
    background: white;
    border: 1px solid var(--pe-border);
    border-radius: var(--pe-radius);
    padding: 18px;
    box-shadow: var(--pe-shadow);
}

.pe-sb-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.pe-sb-cal-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--pe-navy);
}

.pe-sb-prev,
.pe-sb-next {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--pe-muted);
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 4px;
    transition: all var(--pe-transition);
    line-height: 1;
}

.pe-sb-prev:hover,
.pe-sb-next:hover {
    background: var(--pe-light);
    color: var(--pe-navy);
}

.pe-sb-cal-head {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 4px;
}

.pe-sb-cal-head span {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--pe-muted);
    padding: 4px 0;
}

.pe-sb-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.pe-sb-day {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--pe-text);
    border-radius: 50%;
    cursor: default;
    transition: background var(--pe-transition);
}

.pe-sb-day--empty { opacity: 0; pointer-events: none; }

.pe-sb-day--has-ev {
    background: #FEF3E2;
    color: #B45309;
    cursor: pointer;
}

.pe-sb-day--has-ev:hover {
    background: #F59E0B;
    color: white;
    transform: scale(1.08);
}

.pe-sb-day--has-ev.pe-sb-day--active {
    background: var(--pe-navy);
    color: white;
}

.pe-sb-day--has-ev.pe-sb-day--active .pe-sb-dot {
    background: rgba(255,255,255,0.5);
}

.pe-sb-day--today {
    background: var(--pe-navy) !important;
    color: white !important;
}

.pe-sb-dot {
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #F59E0B;
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
}

.pe-sb-day--today .pe-sb-dot { background: rgba(255,255,255,0.6); }

.pe-sb-cal-legend {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #f0f4f9;
    font-size: 11px;
    color: var(--pe-muted);
}

.pe-sb-legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.pe-sb-legend-dot--ev    { background: #FEF3E2; border: 1.5px solid #F59E0B; }
.pe-sb-legend-dot--today { background: var(--pe-navy); }

/* ── Uskoro lista ── */
.pe-sb-upcoming {
    background: white;
    border: 1px solid var(--pe-border);
    border-radius: var(--pe-radius);
    overflow: hidden;
    box-shadow: var(--pe-shadow);
}

.pe-sb-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--pe-navy);
    padding: 14px 16px 10px;
    margin: 0;
    border-bottom: 1px solid #f0f4f9;
}

.pe-sb-event-list { padding: 6px 0; }

.pe-sb-ev {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    transition: background var(--pe-transition);
    border-bottom: 1px solid #f8fafc;
}

.pe-sb-ev:last-child { border-bottom: none; }

.pe-sb-ev:hover { background: var(--pe-light); }

.pe-sb-ev-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 36px;
    text-align: center;
    flex-shrink: 0;
}

.pe-sb-ev-mon {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #F59E0B;
    line-height: 1;
}

.pe-sb-ev-day {
    font-size: 20px;
    font-weight: 900;
    color: var(--pe-navy);
    line-height: 1.1;
}

.pe-sb-ev-info { flex: 1; min-width: 0; }

.pe-sb-ev-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--pe-text);
    line-height: 1.35;
    margin-bottom: 3px;
}

.pe-sb-ev:hover .pe-sb-ev-title { color: var(--pe-blue); }

.pe-sb-ev-venue {
    font-size: 11.5px;
    color: var(--pe-muted);
}

/* ── CTA kartica ── */
.pe-sb-cta {
    background: var(--pe-navy);
    border-radius: var(--pe-radius);
    padding: 22px 20px;
    color: white;
}

.pe-sb-cta-title {
    font-size: 17px;
    font-weight: 700;
    color: white;
    margin: 0 0 10px;
    line-height: 1.3;
}

.pe-sb-cta-text {
    font-size: 13.5px;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    margin: 0 0 18px;
}

.pe-sb-cta-btn {
    display: block;
    background: #F59E0B;
    color: var(--pe-navy);
    font-size: 13.5px;
    font-weight: 700;
    padding: 11px 18px;
    border-radius: 7px;
    text-align: center;
    text-decoration: none;
    transition: background var(--pe-transition);
}

.pe-sb-cta-btn:hover { background: #FBBF24; color: var(--pe-navy); }

/* ═══════════════════════════════════════════════════════════
   CATEGORY ARCHIVE PAGE
═══════════════════════════════════════════════════════════ */


.pe-cat-archive-header {
    padding: 28px 0 20px;
}

.pe-cat-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--pe-muted);
    margin-bottom: 8px;
}

.pe-cat-breadcrumb a {
    color: var(--pe-blue);
    text-decoration: none;
}

.pe-cat-breadcrumb a:hover { text-decoration: underline; }

.pe-cat-archive-title {
    font-size: 28px;
    font-weight: 900;
    color: var(--pe-navy);
    margin: 0;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .pe-cat-archive-title { font-size: 22px; }
    .pe-cat-archive-header { padding: 16px 0 12px; }
}
