/* ==========================================================================
   1. OSNOVNE POSTAVKE I BOJE
   ========================================================================== */
:root { 
    --gold: #b58d3d; 
    --dark: #1a1a1a; 
    --light-bg: #fdfcfb; 
}

body { 
    font-family: 'Montserrat', sans-serif; 
    background-color: var(--light-bg); 
    color: var(--dark); 
    padding-top: 70px; 
}

h1, h2, h3, h4, h5, .brand-font { 
    font-family: 'Playfair Display', serif; 
}

.text-gold { color: var(--gold) !important; }

/* ==========================================================================
   2. NAVBAR I HERO SEKCIJA
   ========================================================================== */
.navbar { background: #fff; border-bottom: 1px solid #eee; }

.nav-link { 
    color: var(--dark) !important; 
    font-weight: 600; 
    text-transform: uppercase; 
    font-size: 0.85rem; 
    letter-spacing: 1px; 
}
.hero {
    /* Smanjeno sa 90vh na 65vh za kompaktniji izgled */
    min-height: 65vh !important; 
    display: flex !important;
    /* Promijenjeno u center da sadržaj bude u sredini, a ne nabijen na dno */
    align-items: center !important;            
    text-align: center !important;
    justify-content: center !important;
    color: white;
    /* Smanjen padding-bottom sa 100px na 20px */
    padding-bottom: 20px !important; 
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.4)), 
                url('https://villastokovci.com/webp/images33.webp') center center / cover no-repeat !important;
}

.hero h1 {
    /* Smanjen font sa 4.5rem na 3.5rem */
    font-size: 3.5rem !important; 
    font-weight: 700 !important;
    margin-bottom: 10px !important;
    line-height: 1.1;
    text-shadow: 2px 4px 10px rgba(0,0,0,0.5);
}

.hero .lead {
    /* Smanjen font sa 1.4rem na 1.1rem */
    font-size: 1.1rem !important; 
    max-width: 600px !important; 
    margin-bottom: 25px !important;
    font-weight: 400 !important;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.hero .text-uppercase {
    /* Smanjen font i razmak slova za gornji natpis */
    font-size: 0.9rem !important;  
    letter-spacing: 5px !important;
    margin-bottom: 5px !important;
}
.gold-divider { width: 80px; height: 2px; background: var(--gold); margin: 20px auto; }

/* Gumbi u Hero sekciji */
.btn-gold {
    background-color: #b4975a !important;
    border: 1px solid #b4975a !important;
    color: white !important;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-gold:hover {
    background-color: #967d46 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.btn-outline-light {
    border: 2px solid white !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: white !important;
    color: #333 !important;
    transform: translateY(-2px);
}

/* ==========================================================================
   3. BOOKING SEKCIJA (Forma i Cijene)
   ========================================================================== */
.booking-section { padding: 80px 0; }

.booking-card { 
    background: #fff; border: 1px solid #eee; padding: 30px; 
    border-top: 4px solid var(--gold); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-control { border-radius: 0; border: 1px solid #e0e0e0; padding: 12px; margin-bottom: 15px; font-size: 0.9rem; }

.tab { border-bottom: 1px solid #eee; margin-bottom: 15px; }

.tablinks { 
    border: none; background: none; padding: 10px 20px; cursor: pointer; 
    font-weight: 600; color: #888; border-bottom: 2px solid transparent; 
}

.tablinks.active { color: var(--gold); border-bottom: 2px solid var(--gold); }

.tabcontent { display: none; animation: fadeInReview 0.4s; }

/* ==========================================================================
   4. REVIEWS SLIDER (Popravljeno i Smanjeno)
   ========================================================================== */
#reviews-slider.section-padding {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
    position: relative; /* DODANO: Važno za strelice */
}

.review-slide { display: none; }
.review-slide.active { display: block; animation: fadeInReview 0.5s ease-in-out; }

.review-img {
    height: 300px !important; 
    width: 100% !important;
    object-fit: cover !important;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(180, 151, 90, 0.2);
    transition: all 0.4s ease-in-out;
}

.review-img:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(180, 151, 90, 0.5);
}

.review-slide .row {
    min-height: 300px !important;
    align-items: center;
}

.review-content {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 15px;
    display: block !important;
}

/* Scrollbar za recenzije */
.review-content::-webkit-scrollbar { width: 5px; }
.review-content::-webkit-scrollbar-track { background: #f1f1f1; }
.review-content::-webkit-scrollbar-thumb { background: #b58d3d; border-radius: 10px; }

/* Desktop visina reda */
@media (min-width: 992px) {
    .review-slide .row {
        height: 350px; 
        overflow: hidden;
    }
}
/* --- REVIEWS SLIDER: FIKSAN POLOŽAJ STRELICA (POPRAVLJENO) --- */

/* Ciljamo ID "reviews" jer je tako u tvom HTML-u */
#reviews .container.position-relative {
    position: relative !important;
}

#reviews .slider-arrows {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    
    /* Širina mora biti veća od sadržaja */
    width: calc(100% + 100px) !important; 
    
    /* Ovo razmiče strelice jednu od druge */
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    
    pointer-events: none !important; 
    z-index: 1000 !important;
}

/* Stil samih strelica */
#reviews .slider-arrows i {
    pointer-events: auto !important; 
    cursor: pointer !important;
    width: 50px !important;
    height: 50px !important;
    background: #ffffff !important;
    color: #b4975a !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15) !important;
    border: 1px solid rgba(180, 151, 90, 0.3) !important;
    transition: all 0.3s ease !important;
}

#reviews .slider-arrows i:hover {
    background: #b4975a !important;
    color: #ffffff !important;
    transform: scale(1.1) !important;
}

/* PRILAGODBA ZA MANJE EKRANE */
@media (max-width: 1400px) {
    #reviews .slider-arrows {
        width: 100% !important;
        padding: 0 15px !important;
    }
}

@media (max-width: 991px) {
    #reviews .slider-arrows {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        justify-content: center !important;
        gap: 30px !important;
        margin-top: 30px !important;
    }
}

/* ==========================================================================
   5. GALERIJA (Fancybox Stilovi)
   ========================================================================== */

/* Kontejner za slike */
.gallery-item {
    display: block;
    height: 300px; /* Visina sličica u mozaiku */
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background-color: #000; /* Pozadina ako se slika učitava */
    margin-bottom: 10px;
}

/* Sama slika unutar okvira */
.gallery-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0.9;
}

/* Hover efekt: povećanje slike i uklanjanje zatamnjenja */
.gallery-item:hover img {
    transform: scale(1.1);
    opacity: 1;
}

/* Zlatni prozirni sloj na hover */
.gallery-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(181, 141, 61, 0.3); /* Lagana zlatna boja */
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

/* Ikona plusa (+) na sredini slike na hover */
.gallery-item::after {
    content: '+'; 
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 3rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Prilagodba za mobitele */
@media (max-width: 768px) {
    .gallery-item {
        height: 200px; /* Nešto niže slike na mobitelu da stanu dvije u red */
    }
}
/* ==========================================================================
   6. RESPONZIVNOST (Media Queries)
   ========================================================================== */

/* Hero prilagodbe */
@media (max-width: 768px) {
    .hero { min-height: 60vh !important; padding-bottom: 50px !important; }
    .hero h1 { font-size: 2.8rem !important; }
}

/* Strelice na mobitelu - da ne pobjegnu s ekrana */
@media (max-width: 1300px) {
    .slider-arrows {
        width: 100%;
        left: 0;
        transform: translateY(-50%);
        padding: 0 15px;
    }
}

@media (max-width: 992px) {
    .slider-arrows {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        justify-content: center;
        gap: 30px;
        margin-top: 20px;
        width: 100%;
    }
}

/* Entfernungen ikone */
@media (max-width: 991px) { .col-lg-custom { width: 33.33% !important; } }
@media (max-width: 575px) { .col-lg-custom { width: 50% !important; } }


@keyframes fadeInReview { from { opacity: 0; } to { opacity: 1; } }	   


}
   /* ==========================================================================
   7. JEZIČNI IZBORNIK (Zastavice u Navigaciji)
   ========================================================================== */

.language-switcher {
    display: flex;
    align-items: center;
    gap: 10px; /* Razmak između zastavica */
}

.language-switcher .nav-link {
    padding: 5px !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.language-switcher img {
    width: 24px;
    height: auto;
    border-radius: 2px; /* Lagano zaobljeni rubovi zastava */
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

/* Efekt na prijelaz mišem */
.language-switcher img:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    opacity: 1 !important;
}

/* Mobilna verzija: Centriranje zastavica u otvorenom meniju */
@media (max-width: 991px) {
    .language-switcher {
        justify-content: center;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid rgba(0,0,0,0.05);
        width: 100%;
    }
}	/* ==========================================================================
   OPTIMIZIRANE OKRUGLE ZASTAVICE (Smanjena veličina)
   ========================================================================== */

/* Puna putanja za maksimalni prioritet */
.navbar-nav .language-switcher .nav-link img.lang-flag {
    width: 28px !important;       /* Smanjeno sa 35px */
    height: 28px !important;      /* Smanjeno sa 35px */
    min-width: 28px !important;   /* Osigurava da ostane krug */
    min-height: 28px !important;
    
    object-fit: cover !important;
    border-radius: 50% !important; /* Savršen krug */
    border: 2px solid #b4975a !important; /* Malo tanji zlatni rub za manju ikonu */
    
    display: inline-block !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15) !important; /* Nešto suptilnija sjena */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    margin: 0 5px !important;     /* Smanjen razmak */
}

/* Razmak i poravnanje u Navbaru */
.navbar-nav .language-switcher {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;          /* Smanjen gap */
    margin-left: 15px !important; /* Smanjen odmak od zadnjeg linka */
}

/* Efekt kad se prijeđe mišem */
.navbar-nav .language-switcher .nav-link img.lang-flag:hover {
    transform: scale(1.15) rotate(3deg) !important; 
    border-color: #d4bc82 !important;
    opacity: 1 !important;
    box-shadow: 0 5px 15px rgba(180, 151, 90, 0.4) !important;
}

/* Prilagodba za mobitele - da ne budu ogromne u mobilnom meniju */
@media (max-width: 991px) {
    .navbar-nav .language-switcher .nav-link img.lang-flag {
        width: 32px !important;   /* Na mobitelu mrvicu veće radi lakšeg klika prstom */
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
    }
    .navbar-nav .language-switcher {
        justify-content: center !important; /* Centriranje u mobilnom meniju */
        margin-left: 0 !important;
        margin-top: 10px !important;
    }
}
/* Stil za same ikone */
.row-cols-lg-8 i {
    font-size: 1.4rem !important; 
    margin-bottom: 8px !important;
    display: inline-block;
    color: #b4975a; /* Direktna zlatna boja */
}

/* Stil za tekst ispod ikona */
.row-cols-lg-8 small {
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    font-size: 0.65rem !important;
    color: #6c757d; /* Elegantna siva */
}

/* Osiguraj da nema nikakvih ostataka okvira */
.row-cols-lg-8 .col > div {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}
/* Stilovi za Amenities sekciju */
#amenities {
    background-color: #fdfcfb; /* Vrlo svijetla bež/bijela */
}

#amenities .text-gold {
    color: #b4975a !important;
}

#amenities .border-gold {
    border-color: #b4975a !important;
}

#amenities .shadow-sm {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05) !important;
    transition: transform 0.3s ease;
}

#amenities .shadow-sm:hover {
    transform: translateY(-3px);
}

#amenities .smaller {
    font-size: 0.9rem;
}

/* Prilagodba liste */
#amenities ul li {
    margin-bottom: 5px;
}

/* Divider za podnaslove */
.gold-divider {
    width: 60px;
    height: 3px;
    background-color: #b4975a;
    margin: 15px 0;
}  
/* --- STIL ZA 5 KUPAONICA U REDU (DESKTOP) --- */
@media (min-width: 992px) {
    .col-lg-custom-5 {
        flex: 0 0 20% !important;
        max-width: 20% !important;
    }
}

/* --- ZLATNI RUB (Ako već nije definiran) --- */
.border-gold {
    border-color: #b4975a !important;
}

/* --- POPRAVAK ZA MOBITELE --- */
@media (max-width: 991px) {
    .col-lg-custom-5 {
        flex: 0 0 100% !important; /* Na mobitelu zauzima cijeli red */
        max-width: 100% !important;
    }
}
 /* PRISILNO PORAVNANJE 8 POLJA U JEDAN RED */
@media (min-width: 992px) {
    .row-cols-lg-8 {
        display: flex !important;
        flex-wrap: nowrap !important; /* Zabranjuje prelazak u novi red */
        justify-content: center !important;
    }

    .row-cols-lg-8 .col {
        flex: 0 0 12.5% !important; /* Točno 1/8 širine (100/8) */
        max-width: 12.5% !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

   /* Fiksno zaglavlje */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95); /* Poluprozirna bijela */
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Isticanje 'Book Now' gumba u izborniku */
.nav-link.booking-button {
  background-color: #bc9c63; /* Elegantna zlatno-smeđa boja */
  color: white !important;
  padding: 10px 20px !important;
  border-radius: 5px;
  transition: transform 0.3s ease;
  font-weight: bold;
}

.nav-link.booking-button:hover {
  background-color: #a08550;
  transform: scale(1.05); /* Lagano se poveća na hover */
}
}
