/**
 * Info Zadar CSS - Inspiriran galerija.css
 * Apartmani Šimićev
 */

/* ========================================
   1. KEYFRAME ANIMACIJE
   ======================================== */

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.8; 
    }
    50% { 
        transform: scale(1.05); 
        opacity: 0.6; 
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes timeline-reveal {
    0% {
        opacity: 0;
        transform: translateX(-30px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ========================================
   2. HERO SECTION
   ======================================== */

.zadar-hero {
    padding: 120px 5% 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    /* Fallback boja ako slika ne postoji */
    background: linear-gradient(rgba(0, 30, 60, 0.8), rgba(0, 102, 204, 0.7));
    background-image: 
        linear-gradient(rgba(0, 30, 60, 0.8), rgba(0, 102, 204, 0.7)),
        url('../images/slides/slide-1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
	
}

.zadar-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 168, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.zadar-hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(10, 15, 28, 0.5) 50%, 
        #0a0f1c 100%
    );
    pointer-events: none;
}

.zadar-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    position: relative;
    z-index: 1;
}

.zadar-intro h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #00a8ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease infinite;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    background-size: 200% 200%;
    font-weight: 700;
}

.zadar-intro .subtitle {
    font-size: 1.5rem;
    color: #00a8ff;
    margin-bottom: 1rem;
    font-weight: 300;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.zadar-intro .description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ========================================
   3. SECTION NAVIGATION
   ======================================== */

.section-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.nav-btn {
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 168, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.nav-btn:hover::before {
    width: 300px;
    height: 300px;
}

.nav-btn:hover {
    border-color: #00a8ff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 168, 255, 0.3);
}

.nav-btn.active {
    background: #00a8ff;
    border-color: #00a8ff;
    box-shadow: 0 10px 30px rgba(0, 168, 255, 0.4);
}

/* ========================================
   4. MAIN CONTENT
   ======================================== */

.zadar-content {
    padding: 60px 5%;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: 
        linear-gradient(180deg, #0a0f1c 0%, #001e3c 50%, #0a0f1c 100%),
        radial-gradient(ellipse at top, rgba(0, 102, 204, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(0, 168, 255, 0.1) 0%, transparent 50%);
}

.zadar-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ========================================
   5. CONTENT SECTIONS
   ======================================== */

.content-section {
    display: none;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.content-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease forwards;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.header-line {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00a8ff, transparent);
    margin: 0 auto;
    border-radius: 2px;
}

/* ========================================
   6. OVERVIEW SECTION
   ======================================== */

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.text-column {
    animation: slideInLeft 0.8s ease forwards;
}

.image-column {
    animation: slideInRight 0.8s ease forwards;
}

.lead-text {
    font-size: 1.3rem;
    color: #00a8ff;
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.text-column p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.highlight-box {
    background: rgba(0, 168, 255, 0.1);
    border-left: 4px solid #00a8ff;
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
    backdrop-filter: blur(10px);
}

.highlight-box h3 {
    color: #00a8ff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.feature-list li svg {
    color: #00a8ff;
    stroke: #00a8ff;
    margin-right: 1rem;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ========================================
   7. IMAGE GALLERY GRID
   ======================================== */

.image-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    height: 100%;
}

.gallery-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, 
        rgba(0, 168, 255, 0.1) 0%, 
        rgba(0, 102, 204, 0.2) 50%, 
        rgba(0, 168, 255, 0.1) 100%
    );
}

.gallery-image.large {
    grid-row: span 2;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-image:hover img {
    transform: scale(1.1);
}

.gallery-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 168, 255, 0.3);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-image:hover .image-overlay {
    transform: translateY(0);
}

.image-overlay h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.image-overlay p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ========================================
   8. TIMELINE (HISTORY SECTION)
   ======================================== */

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #00a8ff, rgba(0, 168, 255, 0.3));
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 4rem;
    position: relative;
    opacity: 0;
    animation: timeline-reveal 0.6s ease forwards;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }

.timeline-date {
    background: #00a8ff;
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    font-size: 1.1rem;
    box-shadow: 0 5px 20px rgba(0, 168, 255, 0.4);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    width: 45%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 168, 255, 0.2);
}

.timeline-content h3 {
    color: #00a8ff;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.timeline-content p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 1rem;
}

.timeline-image {
    width: 45%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    background: linear-gradient(135deg, 
        rgba(0, 168, 255, 0.1) 0%, 
        rgba(0, 102, 204, 0.2) 50%, 
        rgba(0, 168, 255, 0.1) 100%
    );
}

.timeline-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(0, 168, 255, 0.1), 
        rgba(0, 102, 204, 0.2)
    );
    z-index: -1;
}

.timeline-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.timeline-image:hover img {
    transform: scale(1.1);
}

.history-summary {
    background: rgba(0, 168, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 3rem;
    text-align: center;
    border: 1px solid rgba(0, 168, 255, 0.2);
}

.summary-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    font-style: italic;
}

/* ========================================
   9. ATTRACTIONS GRID
   ======================================== */

.attractions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.attraction-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    position: relative;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.attraction-card:nth-child(1) { animation-delay: 0.1s; }
.attraction-card:nth-child(2) { animation-delay: 0.2s; }
.attraction-card:nth-child(3) { animation-delay: 0.3s; }
.attraction-card:nth-child(4) { animation-delay: 0.4s; }
.attraction-card:nth-child(5) { animation-delay: 0.5s; }
.attraction-card:nth-child(6) { animation-delay: 0.6s; }

.attraction-card.featured {
    grid-column: span 2;
}

.attraction-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 168, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.attraction-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(0, 168, 255, 0.1) 0%, 
        rgba(0, 102, 204, 0.2) 50%, 
        rgba(0, 168, 255, 0.1) 100%
    );
}

.attraction-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.attraction-card:hover .attraction-image img {
    transform: scale(1.1);
}

.attraction-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff4757;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    animation: float 2s ease-in-out infinite;
}

.attraction-content {
    padding: 1.5rem;
}

.attraction-content h3 {
    color: #00a8ff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.attraction-content p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.attraction-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.attraction-meta span {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.attraction-meta span svg {
    margin-right: 0.5rem;
    color: #00a8ff;
    stroke: #00a8ff;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ========================================
   10. CULTURE SECTION
   ======================================== */

.culture-content .intro-text {
    text-align: center;
    margin-bottom: 3rem;
}

.culture-content .intro-text p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.museums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.museum-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.museum-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: rotate(45deg) translate(-100%, -100%);
    transition: all 0.8s ease;
}

.museum-card:hover::before {
    transform: rotate(45deg) translate(100%, 100%);
}

.museum-card.featured {
    background: rgba(0, 168, 255, 0.1);
    border-color: rgba(0, 168, 255, 0.3);
}

.museum-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 168, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.museum-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 168, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #00a8ff;
    transition: all 0.3s ease;
}

.museum-card:hover .museum-icon {
    transform: scale(1.1);
    background: rgba(0, 168, 255, 0.3);
}

.museum-card h3 {
    color: #00a8ff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.museum-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.museum-details {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.museum-details span {
    background: rgba(0, 168, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 168, 255, 0.2);
}

.museum-details span i {
    margin-right: 0.3rem;
    color: #00a8ff;
}

/* ========================================
   11. GASTRO SECTION
   ======================================== */

.gastro-section {
    background: rgba(255, 255, 255, 0.03);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gastro-section h3 {
    color: #00a8ff;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.gastro-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.gastro-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.maraskino-info {
    background: rgba(0, 168, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid #00a8ff;
}

.maraskino-info h4 {
    color: #00a8ff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.maraskino-features {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.feature {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.feature i {
    margin-right: 0.5rem;
    color: #00a8ff;
}

.gastro-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, 
        rgba(0, 168, 255, 0.1) 0%, 
        rgba(0, 102, 204, 0.2) 50%, 
        rgba(0, 168, 255, 0.1) 100%
    );
}

.gastro-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gastro-image:hover img {
    transform: scale(1.1);
}

/* ========================================
   12. PRACTICAL SECTION
   ======================================== */

.practical-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.practical-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.practical-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 168, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.practical-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 168, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: #00a8ff;
}

.practical-card h3 {
    color: #00a8ff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.practical-card ul {
    list-style: none;
    padding: 0;
}

.practical-card li {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.8rem;
    line-height: 1.6;
    padding-left: 1rem;
    position: relative;
}

.practical-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #00a8ff;
    font-weight: bold;
}

.practical-card strong {
    color: #00a8ff;
}

/* ========================================
   13. TIPS SECTION
   ======================================== */

.tips-section {
    background: rgba(0, 168, 255, 0.1);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 168, 255, 0.2);
}

.tips-section h3 {
    color: #00a8ff;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tip {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
}

.tip:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
}

.tip i {
    color: #00a8ff;
    font-size: 1.5rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.tip p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
}

.tip strong {
    color: #00a8ff;
}

/* ========================================
   14. LIGHTBOX
   ======================================== */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;

    /* KLJUČNO: kad je zatvoren, ne hvata klikove */
    pointer-events: none;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;

    /* Kad je otvoren – tek tada hvata klikove */
    pointer-events: auto;
}

.lightbox img {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    color: #00a8ff;
    transform: rotate(90deg);
}

.lightbox-info {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px 40px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    max-width: 80%;
}

.lightbox-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.lightbox-description {
    font-size: 1rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

/* ========================================
   15. IMAGE ERROR HANDLING
   ======================================== */

img {
    transition: opacity 0.3s ease;
}

img[src*="picsum"] {
    filter: blur(1px) opacity(0.8);
    position: relative;
}

img[src*="picsum"]::after {
    content: '📷 Fotografija se učitava...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.8rem;
}

/* ========================================
   16. RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .gastro-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .attraction-card.featured {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .zadar-hero {
        padding: 100px 5% 40px;
        min-height: 400px;
        background-attachment: scroll;
    }
    
    .zadar-intro h1 {
        font-size: 2.5rem;
    }
    
    .zadar-intro .subtitle {
        font-size: 1.2rem;
    }
    
    .zadar-intro .description {
        font-size: 1rem;
    }
    
    .section-nav {
        gap: 0.5rem;
    }
    
    .nav-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: column !important;
        padding-left: 60px;
    }
    
    .timeline-item:nth-child(even) {
        flex-direction: column !important;
    }
    
    .timeline-date {
        left: 30px;
        transform: translateX(-50%);
        top: 20px;
        transform: translate(-50%, 0);
    }
    
    .timeline-content,
    .timeline-image {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .museums-grid,
    .practical-grid {
        grid-template-columns: 1fr;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .lightbox-info {
        width: 90%;
        max-width: none;
        padding: 15px 25px;
    }
}

@media (max-width: 480px) {
    .zadar-hero {
        min-height: 300px;
    }
    
    .zadar-intro h1 {
        font-size: 2rem;
    }
    
    .nav-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .attraction-card,
    .museum-card,
    .practical-card {
        padding: 1.5rem;
    }
    
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline-date {
        left: 25px;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .gastro-section,
    .tips-section {
        padding: 2rem;
    }
}

/* ========================================
   17. PERFORMANCE OPTIMIZATIONS
   ======================================== */

/* Popravka za složene animacije na mobilnim */
@media (max-width: 768px) {
    .zadar-hero::before {
        animation: none;
    }
    
    .museum-card::before {
        display: none;
    }
    
    .attraction-badge {
        animation: none;
    }
}

/* Smanji animacije za korisnika koji preferiraju manje animacija */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* ========================================
   18. DODATNI UTILITY STILOVI
   ======================================== */

.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.slide-in-left {
    opacity: 0;
    animation: slideInLeft 0.6s ease forwards;
}

.slide-in-right {
    opacity: 0;
    animation: slideInRight 0.6s ease forwards;
}


/* ========================================
   12. FOOTER STILOVI (ako nedostaju u style.css)
   ======================================== */

/* Footer transition */
.footer-transition {
    position: relative;
    height: 100px;
    overflow: hidden;
    background: linear-gradient(to bottom, #0a0f1c 0%, transparent 100%);
}

.horizon-line {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 168, 255, 0.5), 
        transparent
    );
}

.horizon-glow {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 40px;
    background: radial-gradient(ellipse, 
        rgba(0, 168, 255, 0.2) 0%, 
        transparent 70%
    );
    filter: blur(20px);
}

/* Zvijezde */
.horizon-stars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
}

.horizon-stars span {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

.horizon-stars span:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; }
.horizon-stars span:nth-child(2) { top: 30%; left: 50%; animation-delay: 0.5s; }
.horizon-stars span:nth-child(3) { top: 15%; left: 70%; animation-delay: 1s; }
.horizon-stars span:nth-child(4) { top: 40%; left: 30%; animation-delay: 1.5s; }
.horizon-stars span:nth-child(5) { top: 25%; left: 80%; animation-delay: 2s; }

@keyframes twinkle {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.5);
    }
}
/* Ako footer stilovi nedostaju */
footer {
    background: #0a0f1c;
    position: relative;
    overflow: hidden;
}

/* Lightbox mora biti iznad svega */
.lightbox {
    z-index: 99999 !important;
}

.lightbox-close,
.lightbox-nav,
.lightbox-info,
.image-counter {
    z-index: 100000 !important;
}

/* ========================================
   FOOTER OPTIMIZACIJA ZA NOVI PRIJELAZ
   ======================================== */

/* Ukloni stari footer-transition */
.footer-transition {
    display: none !important;
}

/* Optimiziraj footer pozadinu */
footer {
    background: #0a0f1c;
    position: relative;
    margin-top: -50px; /* Preklapanje sa prijelazom */
    padding-top: 80px; /* Kompenzacija za preklapanje */
}

/* Ukloni nepotrebne pseudo elemente koji mogu usporavati */
footer::before {
    display: none;
}

/* Pojednostavi footer hero animaciju */
.footer-hero {
    position: relative;
    z-index: 1;
}

/* Smanji broj animiranih elemenata */
.footer-decorations {
    opacity: 0.5; /* Smanji vidljivost za bolje performanse */
}

/* Optimizacija za mobilne uređaje */
@media (max-width: 768px) {
    /* Isključi složene animacije na mobilnim */
    .sea-horizon-transition .sailboat {
        animation: none;
        left: 20%;
    }
    
    .sea-sparkles {
        display: none;
    }
    
    footer {
        margin-top: -30px;
        padding-top: 50px;
    }
}

/* Dodatna optimizacija za spore uređaje */
@media (prefers-reduced-motion: reduce) {
    .sea-horizon-transition * {
        animation: none !important;
    }
    
    .waves {
        display: none;
    }
}

/* Promjena boje horizonta */
.horizon {
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 215, 0, 0.5), /* Zlatni zalazak */
        transparent
    );
}

/* Dodavanje više jedrilica */
.sailboat:nth-child(2) {
    animation-delay: 15s;
    bottom: 70px;
}



/* ========================================
   POPRAVKA ZA VIDLJIVOST PRIJELAZA
   ======================================== */

/* Osiguraj da je prijelaz vidljiv */
.sea-horizon-transition {
    position: relative;
    height: 200px; /* Povećaj visinu */
    margin-top: 0; /* Ukloni negativnu marginu */
    margin-bottom: -50px; /* Samo malo preklapanje s footerom */
    overflow: visible; /* Promijeni na visible */
    z-index: 10;
    background: linear-gradient(to bottom, 
        #0a0f1c 0%, 
        rgba(10, 15, 28, 0.9) 50%,
        rgba(10, 15, 28, 0.7) 100%
    );
}

/* Osiguraj da su elementi vidljivi */
.sea-horizon-transition * {
    position: absolute;
}

/* Povećaj kontrast za zvijezde */
.sea-horizon-transition .stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(3px 3px at 20% 30%, rgba(255,255,255,0.8), transparent),
        radial-gradient(3px 3px at 40% 70%, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 50% 50%, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 80% 20%, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 10% 60%, rgba(255,255,255,0.7), transparent),
        radial-gradient(3px 3px at 90% 40%, rgba(255,255,255,0.8), transparent);
    background-size: 300px 300px;
    animation: twinkle 5s ease-in-out infinite;
}

/* Pojačaj horizont liniju */
.sea-horizon-transition .horizon {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    height: 2px; /* Deblja linija */
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(0, 168, 255, 0.5) 10%,
        rgba(0, 168, 255, 1) 50%,
        rgba(0, 168, 255, 0.5) 90%,
        transparent 100%
    );
    box-shadow: 
        0 0 30px rgba(0, 168, 255, 0.8),
        0 0 60px rgba(0, 168, 255, 0.4);
    animation: horizonGlow 4s ease-in-out infinite;
}

/* Pojačaj refleksiju mjeseca */
.sea-horizon-transition .moon-reflection {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 80px;
    background: radial-gradient(ellipse at center, 
        rgba(255, 255, 255, 0.3) 0%,
        rgba(0, 168, 255, 0.2) 30%,
        rgba(0, 168, 255, 0.1) 60%,
        transparent 80%
    );
    filter: blur(15px);
    animation: moonReflection 6s ease-in-out infinite;
}

/* Vidljiviji valovi */
.sea-horizon-transition .waves {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='rgba(0,168,255,0.2)'/%3E%3C/svg%3E");
    background-size: 120% 100%;
    animation: waveMotion 8s ease-in-out infinite;
    opacity: 0.8;
}

/* Dodatni val za dubinu */
.sea-horizon-transition::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E");
    background-size: 150% 100%;
    animation: waveMotion 12s ease-in-out infinite reverse;
    opacity: 0.5;
}

/* Veća jedrilica */
.sea-horizon-transition .sailboat {
    position: absolute;
    bottom: 90px;
    left: -60px;
    width: 50px;
    height: 50px;
    animation: sailing 25s linear infinite;
    filter: drop-shadow(0 0 10px rgba(0, 168, 255, 0.5));
}

/* Svjetlucanje vidljivije */
.sea-sparkles span {
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: sparkle 3s linear infinite;
}

/* Dodatni sjaj */
.sea-horizon-transition::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to bottom,
        transparent 0%,
        transparent 60%,
        rgba(0, 168, 255, 0.05) 80%,
        rgba(0, 168, 255, 0.1) 100%
    );
    pointer-events: none;
}

/* Ukloni suvišne stilove koji mogu sakriti prijelaz */
.gallery-page {
    padding-bottom: 60px !important; /* Smanji padding */
}

.gallery-page::after {
    display: none !important; /* Privremeno ugasi */
}

/* Osiguraj vidljivost footera */
footer {
    position: relative;
    z-index: 5;
    background: #0a0f1c !important;
}

/* Debug - privremeno dodaj border da vidiš gdje je prijelaz */
.sea-horizon-transition {
    /* border: 2px solid red; */ /* Ukloni ovo nakon testiranja */
}

/* Animacije */
@keyframes sparkle {
    0%, 100% { 
        opacity: 0;
        transform: scale(0) translateY(0);
    }
    50% { 
        opacity: 1;
        transform: scale(1) translateY(-10px);
    }
}

@keyframes sailing {
    0% { 
        left: -60px;
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(3deg);
    }
    50% {
        transform: translateY(3px) rotate(-2deg);
    }
    75% {
        transform: translateY(-3px) rotate(1deg);
    }
    100% { 
        left: calc(100% + 60px);
        transform: translateY(0) rotate(0deg);
    }
}

