/* com_tzincentive — detalj stranica (TZ Dubrovnik) */
.tzinc-detail {
    --tz-red: #c8102e;
    --tz-red-dark: #a30d26;
    --tz-ink: #1a1a1a;
    --tz-muted: #6b6b6b;
    --tz-line: #e8e8e8;
    --tz-bg: #fafafa;
    color: var(--tz-ink);
}
.tzinc-detail .container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* HERO */
.tzinc-hero {
    position: relative;
    min-height: 420px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    border-radius: 0 0 6px 6px;
}
.tzinc-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    padding: 40px 20px;
    color: #fff;
}
.tzinc-hero-inner h1 { color: #fff; font-size: 2.6rem; font-weight: 700; margin: .4rem 0 0; text-shadow: 0 2px 14px rgba(0,0,0,.4); }
.tzinc-titlebar { max-width: 1100px; margin: 0 auto; padding: 30px 20px 0; }
.tzinc-titlebar h1 { font-size: 2.2rem; font-weight: 700; margin: .4rem 0 0; }

.tzinc-cat-badge {
    display: inline-block;
    background: var(--tz-red);
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 12px;
    border-radius: 30px;
}

/* BODY */
.tzinc-body { padding: 40px 20px 60px; }
.tzinc-description { font-size: 1.06rem; line-height: 1.75; color: #2a2a2a; }
.tzinc-description img { max-width: 100%; height: auto; border-radius: 6px; }
.tzinc-description h2, .tzinc-description h3 { color: var(--tz-ink); margin-top: 1.8rem; font-weight: 700; }
.tzinc-description h2 { font-size: 1.4rem; }
.tzinc-description .tzinc-facts {
    list-style: none;
    margin: 1.2rem 0 1.6rem;
    padding: 16px 22px;
    background: #f7f7f7;
    border-left: 4px solid var(--tz-red);
    border-radius: 0 6px 6px 0;
}
.tzinc-description .tzinc-facts li { padding: 4px 0; line-height: 1.5; }
.tzinc-description .tzinc-facts strong { color: var(--tz-red-dark); }

.tzinc-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2.5rem 0 1.2rem;
    padding-bottom: .5rem;
    border-bottom: 3px solid var(--tz-red);
    display: inline-block;
}

/* GALLERY */
.tzinc-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
.tzinc-gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 4/3;
    cursor: zoom-in;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.tzinc-gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.tzinc-gallery-item:hover img { transform: scale(1.07); }

/* RELATED */
.tzinc-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.tzinc-related-card {
    display: block;
    text-decoration: none;
    color: var(--tz-ink);
    background: #fff;
    border: 1px solid var(--tz-line);
    border-radius: 8px;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}
.tzinc-related-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.tzinc-related-img { height: 150px; background-size: cover; background-position: center; background-color: #eee; }
.tzinc-related-card span { display: block; padding: 12px 14px; font-weight: 600; }

/* LIGHTBOX */
.tzinc-lb {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.92);
    display: none;
    align-items: center; justify-content: center;
    z-index: 99999;
}
.tzinc-lb.open { display: flex; }
.tzinc-lb-img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 4px; }
.tzinc-lb-close, .tzinc-lb-prev, .tzinc-lb-next {
    position: absolute; background: none; border: 0; color: #fff;
    cursor: pointer; user-select: none;
}
.tzinc-lb-close { top: 20px; right: 28px; font-size: 2.4rem; line-height: 1; }
.tzinc-lb-prev, .tzinc-lb-next { top: 50%; transform: translateY(-50%); font-size: 2.6rem; padding: 10px 18px; }
.tzinc-lb-prev { left: 10px; }
.tzinc-lb-next { right: 10px; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .tzinc-hero { min-height: 280px; }
    .tzinc-hero-inner h1 { font-size: 1.8rem; }
    .tzinc-titlebar h1 { font-size: 1.6rem; }
    .tzinc-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .tzinc-lb-prev, .tzinc-lb-next { font-size: 2rem; padding: 8px 10px; }
}
@media (max-width: 480px) {
    .tzinc-gallery-grid { grid-template-columns: 1fr; }
}
