/* ============================================================
   SINGLE MANIFESTACIJA — ide po Tailwind mockup-u
   ============================================================ */

/* HERO */
.tos-manif-hero {
    --c: var(--tos-events);
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    margin-top: 6rem;
    overflow: hidden;
    border-bottom: 1px solid var(--tos-line);
    background: #0a0a0a;
}
.tos-manif-hero-swiper, .tos-manif-hero-slide {
    width: 100%;
    height: 100%;
}
.tos-manif-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 6s ease-out;
}
.tos-manif-hero-swiper .swiper-slide-active img { transform: scale(1.05); }
.tos-manif-hero-grad {
    position: absolute;
    inset: 0;
    z-index: 10;
    background: linear-gradient(to top, rgba(10,10,10,.9), rgba(10,10,10,.4) 45%, transparent);
    pointer-events: none;
}
.tos-manif-hero-content {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 1.5rem 5rem;
    width: min(100%, var(--tos-container, 1400px));
    margin: 0 auto;
}
.tos-manif-hero-content .tos-manif-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.tos-manif-badge {
    padding: 0.4rem 1rem;
    background: var(--c);
    color: #fff;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--c) 35%, transparent);
}
.tos-manif-since {
    color: rgba(255,255,255,.8);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}
.tos-manif-title {
    margin: 0 0 1.25rem;
    color: #fff;
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.04em;
    text-shadow: 0 2px 24px rgba(0,0,0,.3);
}
.tos-manif-lead {
    margin: 0;
    max-width: 56rem;
    color: rgba(229,231,235,1);
    font-size: clamp(1rem, 1.6vw, 1.4rem);
    font-weight: 500;
    line-height: 1.55;
}
.tos-manif-hero-controls {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.tos-manif-hero-pagination { display: flex; gap: 0.4rem; }
.tos-manif-hero-pagination .swiper-pagination-bullet {
    width: 10px; height: 10px; border-radius: 999px;
    background: rgba(255,255,255,.4); opacity: 1;
    transition: all 0.4s ease;
}
.tos-manif-hero-pagination .swiper-pagination-bullet-active {
    width: 30px; background: #fff;
}
.tos-manif-hero-arrows { display: flex; gap: 0.5rem; }
.tos-manif-hero-prev, .tos-manif-hero-next {
    width: 3rem; height: 3rem;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(6px);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.tos-manif-hero-prev:hover, .tos-manif-hero-next:hover {
    background: #fff; color: var(--tos-text);
}
@media (max-width: 768px) {
    .tos-manif-hero-controls { display: none; }
    .tos-manif-hero-content { padding-bottom: 3rem; }
}

/* MAIN LAYOUT */
.tos-manif-main { padding-top: 6rem; padding-bottom: 6rem; }
.tos-manif-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}
@media (min-width: 1024px) {
    .tos-manif-layout {
        grid-template-columns: minmax(0, 8fr) minmax(20rem, 4fr);
        gap: 5rem;
    }
}
.tos-manif-left { display: flex; flex-direction: column; gap: 4rem; }

/* WP CONTENT — drop cap, blockquote, list */
.tos-manif-content {
    background: #fff;
    padding: 3rem 2rem;
    border-radius: 2.5rem;
    border: 1px solid var(--tos-line);
    box-shadow: 0 6px 24px rgba(15,17,21,.04);
}
@media (min-width: 768px) {
    .tos-manif-content { padding: 3.5rem; }
}
.tos-manif-content h2 {
    font-weight: 900;
    color: var(--tos-text);
    margin: 0 0 2rem;
    font-size: clamp(2rem, 3.4vw, 2.5rem);
    letter-spacing: -0.04em;
    line-height: 1.1;
}
.tos-manif-content h3 {
    font-weight: 900;
    color: var(--tos-text);
    margin: 3rem 0 1.5rem;
    font-size: 1.75rem;
    letter-spacing: -0.04em;
    line-height: 1.15;
}
.tos-manif-content p {
    margin: 0 0 1.5rem;
    font-size: 1.075rem;
    line-height: 1.75;
    color: #4b5563;
    font-weight: 500;
}
.tos-manif-content > p:first-of-type::first-letter {
    float: left;
    font-size: 4rem;
    line-height: 1;
    margin: 0.4rem 0.7rem 0 0;
    color: var(--tos-events);
    font-weight: 900;
}
.tos-manif-content ul {
    list-style: none;
    margin: 2rem 0;
    padding: 2.25rem;
    background: #f8f9fa;
    border-radius: 1.5rem;
}
.tos-manif-content ul li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: #4b5563;
    font-weight: 500;
    line-height: 1.55;
}
.tos-manif-content ul li::before {
    content: "→";
    color: var(--tos-events);
    font-weight: 700;
    position: absolute;
    left: 0;
    top: 0;
}
.tos-manif-content blockquote {
    margin: 2.5rem 0;
    padding: 2.25rem;
    background: #f8f9fa;
    border-left: 5px solid var(--tos-events);
    border-radius: 0 1rem 1rem 0;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--tos-text);
    font-style: italic;
    line-height: 1.6;
    letter-spacing: -0.02em;
}
.tos-manif-content strong { color: var(--tos-text); font-weight: 700; }

/* GALERIJA */
.tos-manif-h3 {
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    font-weight: 900;
    color: var(--tos-text);
    letter-spacing: -0.04em;
    line-height: 1.1;
}
.tos-manif-gallery-head {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 2rem; gap: 1rem;
}
.tos-manif-gallery-hint {
    font-size: 0.7rem; color: var(--tos-muted); font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.18em;
    display: none;
}
@media (min-width: 768px) { .tos-manif-gallery-hint { display: inline; } }
.tos-manif-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
    gap: 1rem;
}
@media (min-width: 768px) {
    .tos-manif-gallery { grid-template-columns: repeat(3, 1fr); }
}
.tos-manif-gallery-item {
    position: relative;
    border: 1px solid var(--tos-line);
    border-radius: 2rem;
    overflow: hidden;
    cursor: pointer;
    background: #f6f7f7;
    padding: 0;
    box-shadow: 0 4px 12px rgba(15,17,21,.04);
    transition: transform 0.25s ease;
}
.tos-manif-gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.7s ease;
}
.tos-manif-gallery-item:hover img { transform: scale(1.05); }
@media (min-width: 768px) {
    .tos-manif-gallery-item.is-big { grid-column: span 2; grid-row: span 2; }
}
.tos-manif-gallery-zoom {
    position: absolute;
    top: 1rem; right: 1rem;
    width: 2.5rem; height: 2.5rem;
    border-radius: 999px;
    background: rgba(255,255,255,.85);
    color: var(--tos-text);
    display: inline-flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.tos-manif-gallery-item:hover .tos-manif-gallery-zoom { opacity: 1; }

/* IZ GODINE U GODINU */
.tos-manif-years-head { margin-bottom: 2.5rem; }
.tos-manif-years-sub { margin: 0.5rem 0 0; color: var(--tos-muted); font-size: 1.05rem; font-weight: 500; }
.tos-manif-years-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 768px) { .tos-manif-years-grid { grid-template-columns: repeat(2, 1fr); } }
.tos-manif-year-card {
    --c: var(--tos-events);
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--tos-line);
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: 0 6px 16px rgba(15,17,21,.04);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.tos-manif-year-card:hover {
    border-color: var(--c);
    box-shadow: 0 14px 30px rgba(15,17,21,.07);
}
.tos-manif-year-bg {
    position: absolute;
    right: -1rem; bottom: -2.5rem;
    font-size: 10rem;
    font-weight: 900;
    line-height: 0.85;
    color: #f3f4f6;
    pointer-events: none;
    transition: transform 0.5s ease;
}
.tos-manif-year-card:hover .tos-manif-year-bg { transform: scale(1.08); }
.tos-manif-year-body { position: relative; z-index: 2; }
.tos-manif-year-pill {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: #f7f8f9;
    color: var(--tos-text);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    border-radius: 999px;
    margin-bottom: 1.5rem;
}
.tos-manif-year-body ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.tos-manif-year-body li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.05rem;
}
.tos-manif-dot {
    width: 8px; height: 8px;
    border-radius: 999px;
    background: #d1d5db;
    flex: 0 0 auto;
}
.tos-manif-dot.is-primary { background: var(--c); }
.is-headliner { font-weight: 700; color: var(--tos-text); }
.tos-manif-year-body li:not(:first-child) span:last-child {
    color: var(--tos-muted);
    font-weight: 500;
}

/* SIDEBAR */
.tos-manif-sticky { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 1024px) { .tos-manif-sticky { position: sticky; top: 8rem; } }

.tos-manif-info-card,
.tos-manif-share-card,
.tos-manif-cta-card {
    background: #fff;
    border: 1px solid var(--tos-line);
    border-radius: 2.5rem;
    padding: 2rem;
    box-shadow: 0 6px 18px rgba(15,17,21,.04);
}
.tos-manif-info-title {
    margin: 0 0 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--tos-line);
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--tos-text);
}
.tos-manif-info-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.4rem; }
.tos-manif-info-list li { display: flex; flex-direction: column; gap: 0.25rem; }
.tos-manif-info-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}
.tos-manif-info-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--tos-text);
}
.tos-manif-info-pill {
    --c: var(--tos-events);
    align-self: flex-start;
    margin-top: 0.25rem;
    padding: 0.35rem 0.85rem;
    background: color-mix(in srgb, var(--c) 12%, white);
    color: var(--c);
    font-size: 1rem;
    font-weight: 700;
    border-radius: 0.6rem;
}

/* SHARE */
.tos-manif-share-card { text-align: center; }
.tos-manif-share-title {
    display: block;
    margin-bottom: 1rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--tos-text);
    text-transform: uppercase;
    letter-spacing: 0.18em;
}
.tos-manif-share-buttons { display: flex; justify-content: center; gap: 0.6rem; }
.tos-manif-share {
    width: 3rem; height: 3rem;
    border: 1px solid var(--tos-line);
    border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--tos-muted);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.tos-manif-share:hover { color: #fff; border-color: transparent; }
.tos-manif-share.is-fb:hover { background: #1877F2; }
.tos-manif-share.is-tw:hover { background: #000; }
.tos-manif-share.is-wa:hover { background: #25D366; }
.tos-manif-share-text { font-weight: 900; font-size: 0.8rem; }

/* CTA SMESTAJ */
.tos-manif-cta-card { position: relative; overflow: hidden; padding: 2rem; color: #fff; background: var(--tos-secondary); border-color: transparent; text-align: center; }
.tos-manif-cta-bg {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)),
                      url("https://images.unsplash.com/photo-1542718610-a1d656d1884c?auto=format&fit=crop&q=80");
    background-size: cover;
    background-position: center;
    opacity: 0.45;
    transition: transform 0.7s ease;
}
.tos-manif-cta-card:hover .tos-manif-cta-bg { transform: scale(1.06); }
.tos-manif-cta-overlay { position: absolute; inset: 0; background: rgba(10,10,10,.75); }
.tos-manif-cta-inner { position: relative; z-index: 2; }
.tos-manif-cta-inner h4 { margin: 0 0 0.5rem; font-size: 1.4rem; font-weight: 900; letter-spacing: -0.02em; color: #fff; }
.tos-manif-cta-inner p { margin: 0 0 1.5rem; color: rgba(255,255,255,.7); font-size: 0.85rem; font-weight: 500; }
.tos-btn-light {
    display: inline-block;
    width: 100%;
    padding: 0.95rem 1.5rem;
    background: #fff;
    color: var(--tos-text);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    border-radius: 999px;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease;
}
.tos-btn-light:hover { background: #f3f4f6; }

/* KOMENTARI */
.tos-manif-comments { padding-top: 6rem; padding-bottom: 6rem; border-top: 1px solid var(--tos-line); }
.tos-manif-h2 {
    margin: 0;
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 900;
    color: var(--tos-text);
    letter-spacing: -0.04em;
    line-height: 1.05;
}
.tos-manif-h2-sub { margin: 0.5rem 0 2.5rem; color: var(--tos-muted); font-size: 1.05rem; font-weight: 500; }
.tos-manif-comments-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}
@media (min-width: 768px) {
    .tos-manif-comments-grid { grid-template-columns: 3fr 2fr; gap: 4rem; }
}
.tos-manif-cmt-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) { .tos-manif-cmt-grid { grid-template-columns: repeat(2, 1fr); } }
.tos-manif-cmt {
    background: #fff;
    border: 1px solid var(--tos-line);
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(15,17,21,.04);
    transition: box-shadow 0.25s ease;
}
.tos-manif-cmt:hover { box-shadow: 0 10px 24px rgba(15,17,21,.07); }
@media (min-width: 768px) { .tos-manif-cmt.is-offset { margin-top: 3rem; } }
.tos-manif-cmt-stars {
    display: flex; gap: 2px;
    margin-bottom: 1rem;
    color: #e5e7eb;
    font-size: 1.1rem;
}
.tos-manif-cmt-stars .is-filled { color: var(--tos-accent, #f59e0b); }
.tos-manif-cmt-text {
    margin: 0 0 1.5rem;
    color: #4b5563;
    font-style: italic;
    font-weight: 500;
    line-height: 1.65;
}
.tos-manif-cmt-author { display: flex; align-items: center; gap: 0.75rem; }
.tos-manif-cmt-avatar {
    width: 2.5rem; height: 2.5rem;
    border-radius: 999px;
    background: #f7f8f9;
    color: var(--tos-muted);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}
.tos-manif-cmt-author h5 { margin: 0; font-size: 0.85rem; font-weight: 700; color: var(--tos-text); }
.tos-manif-cmt-author span { font-size: 0.72rem; color: #9ca3af; }

/* FORMA */
.tos-manif-form-card {
    background: #f7f8f9;
    border: 1px solid var(--tos-line);
    border-radius: 3rem;
    padding: 2.5rem;
}
@media (min-width: 768px) { .tos-manif-form-card { padding: 3rem; } }
.tos-manif-form-sub { margin: 0.5rem 0 2rem; color: var(--tos-muted); font-size: 0.85rem; font-weight: 500; }
.tos-manif-cmt-form p { margin: 0 0 1rem; }
.tos-manif-cmt-form input[type="text"],
.tos-manif-cmt-form input[type="email"],
.tos-manif-cmt-form textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: #fff;
    border: 1px solid var(--tos-line);
    border-radius: 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--tos-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 4px rgba(15,17,21,.03);
}
.tos-manif-cmt-form input:focus,
.tos-manif-cmt-form textarea:focus {
    outline: none;
    border-color: var(--tos-events);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--tos-events) 12%, transparent);
}
.tos-manif-cmt-form textarea { resize: vertical; min-height: 120px; }
.tos-manif-cmt-form .form-submit { margin-top: 0.5rem; }
.tos-manif-cmt-rating {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem !important;
}
.tos-manif-cmt-rating label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--tos-muted);
    text-transform: uppercase;
    letter-spacing: 0.16em;
}
.tos-manif-cmt-stars-input {
    display: inline-flex; gap: 0.25rem;
    color: #d1d5db; font-size: 1.4rem;
    cursor: pointer;
}
.tos-manif-cmt-stars-input span { transition: color 0.15s ease; }
.tos-manif-cmt-stars-input span.is-active { color: var(--tos-accent, #f59e0b); }
.tos-btn-dark {
    background: var(--tos-text);
    color: #fff;
    border: 0;
    padding: 1.1rem 2rem;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.tos-btn-dark:hover { background: var(--tos-events); }
.tos-btn-block { display: inline-block; width: 100%; }

/* RELATED */
.tos-manif-related { padding-top: 6rem; padding-bottom: 6rem; border-top: 1px solid var(--tos-line); }
.tos-related-swiper { overflow: visible !important; padding-bottom: 2rem; }
.tos-related-slide { width: min(85vw, 22rem); }
@media (min-width: 768px) { .tos-related-slide { width: 25rem; } }
.tos-manif-card {
    --c: var(--tos-events);
    display: block;
    background: #fff;
    border: 1px solid var(--tos-line);
    border-radius: 2.5rem;
    padding: 1.25rem;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(15,17,21,.04);
    transition: transform 0.3s ease, border-color 0.25s ease, box-shadow 0.3s ease;
}
.tos-manif-card:hover {
    transform: translateY(-6px);
    border-color: var(--c);
    box-shadow: 0 16px 32px rgba(15,17,21,.08);
}
.tos-manif-card-img {
    height: 220px;
    border-radius: 1.5rem;
    overflow: hidden;
    margin-bottom: 1.25rem;
    background: #f6f7f7;
}
.tos-manif-card-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.7s ease;
}
.tos-manif-card:hover .tos-manif-card-img img { transform: scale(1.05); }
.tos-manif-card-body { padding: 0 0.5rem 0.5rem; }
.tos-manif-card-cat {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--c);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}
.tos-manif-card-body h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--tos-text);
    letter-spacing: -0.02em;
    transition: color 0.2s ease;
}
.tos-manif-card:hover .tos-manif-card-body h3 { color: var(--c); }

/* ============================================================
   FIX: Hero ide pod header (bez gornjeg gap-a),
        manji razmak izmedju hero-a i sadrzaja
   ============================================================ */
body.single-manifestacija .tos-main {
    padding-top: 0 !important;
}

.tos-manif-hero {
    margin-top: -2rem !important;     /* zadje 30px iza headera */
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* Manji razmak hero -> sadrzaj */
.tos-manif-main {
    padding-top: 3rem !important;
}

@media (max-width: 768px) {
    .tos-manif-hero { margin-top: -1.5rem !important; }
    .tos-manif-main { padding-top: 2rem !important; }
}

/* Smanjen gap izmedju sadrzaja i sidebar-a */
.tos-manif-layout {
    gap: 2rem !important;
}
@media (min-width: 1024px) {
    .tos-manif-layout {
        gap: 2.5rem !important;
    }
}
