/* style.css - KLS Auto */

/* OSNOVNA POSTAVKA */
html, body { 
    margin: 0; 
    padding: 0; 
    height: 100%; 
    overflow: hidden; /* Sprječava scroll cijelog body-a */
}

/* KONTEJNER ZA SKROLANJE */
.scroll-container {
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Bolje iskustvo na iOS */
}

/* SEKCIJE */
section {
    min-height: 100dvh; /* Koristi min-height da se sadržaj ne siječe na malim ekranima */
    width: 100%;
    padding-top: 80px; 
    padding-bottom: 40px;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* POZADINA (SLIDER) */
.fixed-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.bg-slide {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    transition: opacity 2s ease-in-out, transform 10s linear;
}
.bg-slide.active { opacity: 1; transform: scale(1.1); }
.bg-slide.inactive { opacity: 0; transform: scale(1); }
.overlay { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.80); } /* Malo tamniji overlay za bolju čitljivost */

/* STAKLENI EFEKTI */
.glass-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}
.glass-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* KARTICE */
.card-size {
    width: 100%;
    max-width: 1152px; 
    min-height: 480px; 
    max-height: 80vh;  
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* FAQ SPECIFIČNOSTI */
.faq-content {
    overflow-y: auto;
    max-height: 60vh;
    padding-right: 10px;
}
/* Scrollbar stilizacija za FAQ */
.faq-content::-webkit-scrollbar { width: 5px; }
.faq-content::-webkit-scrollbar-track { background: transparent; }
.faq-content::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 5px; }

/* UTILITI */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.active-thumb { border: 2px solid #3b82f6; opacity: 1; transform: scale(0.95); }

/* LOCATION KARTICE */
.loc-card { transition: all 0.3s ease; cursor: pointer; border: 2px solid transparent; }
.loc-card.active { border-color: #3b82f6; background-color: #eff6ff; }
.loc-card:hover { transform: translateY(-2px); }

/* MODALI */
#langModal, #cookieBanner { transition: opacity 0.3s ease, visibility 0.3s; }
.hidden-modal { opacity: 0; visibility: hidden; pointer-events: none; }
.visible-modal { opacity: 1; visibility: visible; pointer-events: auto; }

/* MEDIJA UPITI ZA MOBITEL */
@media (max-width: 768px) {
    section { 
        height: auto; /* Na mobitelu dozvoli da sekcija bude veća od ekrana */
        padding-top: 100px; /* Više mjesta za header */
    }
    .card-size { 
        min-height: auto; 
        display: block; 
        max-height: none; 
        margin-bottom: 40px; /* Prostor na dnu */
    } 
    /* Ako je ekran jako mali, isključi snap da se lakše skrola unutar sekcija */
    @media (max-height: 700px) {
        .scroll-container { scroll-snap-type: none; }
    }
}