/* style.css - VIS-DOM d.o.o. - REVIDIRANA STABILNA VERZIJA */

:root {
    --brand-blue: #1a4b84;
    --brand-turquoise: #00b5ad;
    --text-dark: #0a2540;
    --light-bg: #fdfdfd;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background-color: var(--light-bg);
    margin: 0;
}

/* --- LINKOVI --- */
a { color: var(--text-dark); text-decoration: none; transition: 0.3s; }
a:hover { color: var(--brand-turquoise) !important; }

/* --- HEADER DIO --- */
header { position: relative; z-index: 1100; background: white; }
.brand-name { color: var(--brand-blue) !important; font-weight: 700; font-size: 32px; line-height: 1; text-transform: uppercase; }
.brand-subtitle { color: var(--brand-turquoise); font-weight: 500; font-size: 18px; }
.header-contact-details a { color: var(--text-dark); font-size: 14px; }
.header-contact-details i { color: var(--brand-turquoise); margin-right: 5px; }

/* --- NAVIGACIJA --- */
.main-nav { background-color: var(--brand-blue) !important; z-index: 1000; padding: 0; }
.main-nav .nav-link { color: white !important; font-weight: 600; text-transform: uppercase; font-size: 14px; padding: 15px 20px !important; }
.main-nav .nav-link:hover { background-color: var(--brand-turquoise) !important; }

/* --- WHATSAPP & JEZICI --- */
.whatsapp-turquoise { background-color: var(--brand-turquoise) !important; color: white !important; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 22px; transition: 0.3s; }
/* Micanje podcrtavanja na jeziku */
#langDropdown {
    text-decoration: none !important; /* Miče crtu odmah */
    outline: none !important;
}

#langDropdown:hover, 
#langDropdown:focus, 
#langDropdown:active {
    text-decoration: none !important; /* Miče crtu na hoveru */
    box-shadow: none !important;
}
/* --- HERO SERVICES (NASLOVNA) --- */
.hero-services {
    min-height: 650px;
    background: linear-gradient(rgba(10, 37, 64, 0.6), rgba(10, 37, 64, 0.7)), url('images/hero.jpg'); 
    background-size: cover; background-position: center; background-attachment: fixed; display: flex; align-items: center; padding: 80px 0;
}
.hero-service-card {
    background: rgba(255, 255, 255, 0.12); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 15px; padding: 40px 30px; text-align: center; color: white !important; height: 100%; display: flex; flex-direction: column; align-items: center;
}
.active-card { border: 1px solid var(--brand-turquoise) !important; background: rgba(255, 255, 255, 0.18) !important; }
.icon-circle { width: 80px; height: 80px; border: 2px solid var(--brand-turquoise); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 25px; font-size: 35px; color: var(--brand-turquoise) !important; }
.hero-service-card .btn { margin-top: auto; background: transparent !important; color: white !important; border: 2px solid white !important; font-weight: 600; padding: 10px 25px; border-radius: 5px; }
/* --- POPRAVAK KARTICA IZDVOJENIH NEKRETNINA --- */

.property-card {
    background: #ffffff !important;
    border: 1px solid #eee !important;
    border-radius: 12px !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1) !important;
}

/* SLIKA NEKRETNINE */
.property-image {
    height: 220px !important; /* Fiksna visina slike */
    background-size: cover !important;
    background-position: center !important;
    position: relative; /* Važno za značku */
    width: 100%;
}
.shadow-text {
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8) !important;
    color: #ffffff !important;
}
/* ZNAČKA (npr. Poslovni prostor) - Sada lebdi iznad slike */
.property-badge {
    position: absolute !important;
    top: 15px !important;
    left: 15px !important;
    background-color: var(--brand-turquoise) !important;
    color: #ffffff !important;
    padding: 5px 12px !important;
    font-size: 11px !important;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* TELO KARTICE (Tekst) */
.property-body {
    padding: 20px !important;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.property-body h5 {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 17px;
    margin-bottom: 10px;
    line-height: 1.4;
    min-height: 48px; /* Osigurava da naslovi u 2 reda ne kvare poravnanje */
}

.property-body p {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

/* CIJENA I GUMB */
.property-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--brand-blue);
}

.btn-outline-primary {
    border-color: var(--brand-blue) !important;
    color: var(--brand-blue) !important;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: var(--brand-blue) !important;
    color: white !important;
}

/* --- TRAŽILICA GLASS --- */
.search-glass-container { background: rgba(255, 255, 255, 0.1) !important; backdrop-filter: blur(15px); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 15px; padding: 15px; }
.glass-field { background-color: rgba(255, 255, 255, 0.05) !important; color: #ffffff !important; border: 1px solid rgba(255, 255, 255, 0.2) !important; height: 50px; }
.btn-search-turquoise-final { background-color: var(--brand-turquoise) !important; color: #ffffff !important; border: none !important; height: 50px; border-radius: 8px !important; font-weight: 700; }
.btn-search-turquoise-final {
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 181, 173, 0.4) !important;
}
/* --- USLUGE STRANICA --- */
.service-row { padding: 60px 0; border-bottom: 1px solid #eee; }
.service-image-wrap { height: 400px; border-radius: 20px; overflow: hidden; box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
.icon-circle-small { width: 60px; height: 60px; background-color: #f0faff; color: var(--brand-turquoise); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.btn-service { background-color: transparent !important; color: var(--brand-turquoise) !important; border: 3px solid var(--brand-turquoise) !important; font-weight: 900 !important; text-transform: uppercase; padding: 12px 35px; border-radius: 6px; display: inline-block; }
.bg-brand-blue { background-color: var(--brand-blue) !important; color: white !important; }

/* --- FOOTER (FIX ZA PORAVNANJE I BOJE) --- */
footer { background-color: var(--brand-blue) !important; color: white !important; padding: 60px 0 0 0; }
.footer-title { color: var(--brand-turquoise) !important; font-weight: 700; margin-bottom: 25px; text-transform: uppercase; font-size: 18px; }
.footer-links a { color: rgba(255, 255, 255, 0.8) !important; display: block; margin-bottom: 10px; }
.hgk-logo { filter: brightness(0) invert(1) !important; max-width: 140px; height: auto; }

/* 5 stupaca u jednom redu fix */
.footer-legal-link { color: white !important; opacity: 0.8; text-decoration: none; font-size: 14px; white-space: nowrap !important; transition: 0.3s; }
.footer-sep { color: rgba(255, 255, 255, 0.3); margin: 0 12px; }

/* Zadnji red bar */
.footer-copyright-bar { background-color: rgba(0, 0, 0, 0.25) !important; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.footer-copyright-bar p { margin: 0 !important; white-space: nowrap !important; font-size: 14px; }
.text-turquoise { color: var(--brand-turquoise) !important; }

/* --- ELEMENTI KOJI LEBDE --- */
.back-to-top { position: fixed !important; bottom: 30px; right: 30px; width: 45px; height: 45px; background-color: var(--brand-turquoise) !important; color: white !important; border-radius: 50%; display: none; align-items: center; justify-content: center; z-index: 2000; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }

.cookie-banner { position: fixed !important; bottom: 0; left: 0; width: 100%; background: #ffffff !important; color: #333 !important; z-index: 10000; box-shadow: 0 -5px 20px rgba(0,0,0,0.1); border-top: 3px solid var(--brand-turquoise); padding: 15px 0; display: none; }
.cookie-banner a { color: var(--brand-turquoise); font-weight: 700; text-decoration: none; }

/* --- BREADCRUMBS --- */
.breadcrumb-item a { color: var(--brand-turquoise) !important; font-weight: 700; text-decoration: none; }
/* --- FOOTER: 5 LINKOVA U JEDNOM REDU --- */
.footer-bottom-links .d-flex {
    display: flex !important;
    flex-wrap: nowrap !important; /* Prisili jedan red na desktopu */
    justify-content: center;
    align-items: center;
}

.footer-legal-link {
    color: white !important;
    opacity: 0.8;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap !important; /* Nema pucanja u 2 reda */
    transition: 0.3s;
}

.footer-sep {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 15px;
}

/* --- COPYRIGHT BAR --- */
.footer-copyright-bar {
    background-color: rgba(0, 0, 0, 0.25) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- COOKIE BANNER S BIJELOM POZADINOM --- */
.cookie-banner {
    position: fixed !important;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff !important; /* Bijela pozadina da šapica dođe do izražaja */
    color: #333 !important;
    z-index: 10000;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
    border-top: 4px solid var(--brand-turquoise);
    padding: 10px 0;
    display: none;
}

.cookie-banner p {
    color: #333 !important;
    line-height: 1.4;
}

/* Tirkizni gumb unutar bannera */
.btn-brand-turquoise {
    background-color: var(--brand-turquoise) !important;
    color: white !important;
    border: none;
}

/* --- MOBILNI PRIKAZ --- */
@media (max-width: 991px) {
    .footer-bottom-links .d-flex {
        flex-wrap: wrap !important; /* Na mobitelu dopusti više redova */
        justify-content: center;
    }
    .footer-sep { display: none; } /* Makni crte na mobitelu */
    .footer-legal-link { width: 100%; text-align: center; margin-bottom: 10px; }
}
/* --- TURIZAM LISTA: PORAVNANJE I BOJE --- */

/* 1. Sve kartice moraju imati istu visinu */
.property-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
}

/* 2. Tijelo kartice (tekst) se rasteže i gura gumb dolje */
.property-body {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    padding: 25px !important;
}

/* 3. Gumb na samom dnu */
.property-body .btn-brand-blue {
    margin-top: auto !important; /* Ovo gura gumb skroz dolje */
    font-weight: 700;
    text-transform: uppercase;
}

/* 4. PRISILI SVE IKONICE NA TIRKIZNU BOJU */
.property-body i {
    color: var(--brand-turquoise) !important;
    width: 25px; /* Fiksna širina da tekst bude poravnat */
    text-align: center;
    font-size: 18px;
}

/* Dodatni razmak za ikonice opreme */
.custom-list-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}
/* --- POPRAVAK GUMBA NA TAMNOJ PODLOZI (DEMAND.PHP) --- */

/* Tirkizni gumb s bijelim slovima */
.btn-brand-turquoise {
    background-color: var(--brand-turquoise) !important;
    color: #ffffff !important;
    border: none !important;
    transition: 0.3s ease;
    border-radius: 8px !important;
}

.btn-brand-turquoise:hover {
    background-color: #ffffff !important;
    color: var(--brand-blue) !important;
    transform: translateY(-3px);
}

/* Bijeli outline gumb */
.btn-outline-white {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    transition: 0.3s ease;
    border-radius: 8px !important;
}

.btn-outline-white:hover {
    background-color: #ffffff !important;
    color: var(--brand-blue) !important;
    transform: translateY(-3px);
}

/* Tirkizni rub na vrhu plave sekcije za eleganciju */
.border-turquoise-top {
    border-top: 5px solid var(--brand-turquoise) !important;
}
/* --- TURIZAM DETALJI: FIX ZA IKONE I KALENDAR --- */

/* 1. Prisili sve ikone u detaljima na tirkiznu boju */
.amenity-box i, 
.fa-calendar-alt, 
.fa-map-marked-alt,
.fa-check.text-turquoise {
    color: var(--brand-turquoise) !important;
}

/* 2. AMENITY BOX (Ikone za goste, krevete...) */
.amenity-box {
    background: #f8f9fa;
    padding: 15px 5px;
    border-radius: 10px;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.amenity-box i { font-size: 24px; margin-bottom: 8px; }
.amenity-box span { font-size: 13px; font-weight: 600; text-transform: uppercase; color: var(--text-dark); }

/* 3. KALENDAR GRID FIX (Da ne bude u stupcu) */
.calendar-wrapper {
    background: white;
    border-radius: 15px;
    border: 1px solid #eee;
    padding: 20px;
    height: 100%; /* Da prati visinu karte */
    min-height: 400px;
}

.calendar-grid {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important; /* TOČNO 7 DANA U REDU */
    gap: 2px;
    text-align: center;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    border-radius: 50%;
    margin: 2px;
}

.day-name { font-weight: 700; font-size: 11px; color: #999; margin-bottom: 10px; }

/* Boje kalendara */
.calendar-day.available { background-color: #f0fdf4; color: #166534; }
.calendar-day.booked { background-color: #fee2e2; color: #991b1b; text-decoration: line-through; opacity: 0.6; }

/* 4. KARTA - Da popuni prostor */
.map-container {
    height: 100%;
    min-height: 400px; /* Ista visina kao kalendar */
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #eee;
}
/* --- TRAŽILICA: FINALNI POPRAVAK VIDLJIVOSTI --- */

/* Prisili bijelu boju teksta u svim poljima tražilice */
.glass-field {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.15) !important; /* Mrvicu jača prozirnost za bolji kontrast */
}

/* Osiguraj da su i ikone (tag, building, location) bijele */
.glass-input-group .input-group-text {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
}

/* FIX ZA "GRAD ILI NASELJE" (Slova dok se ne tipka - Placeholder) */
.glass-field::placeholder {
    color: rgba(255, 255, 255, 0.8) !important; /* Bijela s 80% vidljivosti */
}
/* Za Chrome, Safari i Edge */
.glass-field::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.8) !important;
}
/* Za Firefox */
.glass-field::-moz-placeholder {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* FIX ZA STRELICU U DROPDOWNU (Mora biti bijela) */
.form-select.glass-field {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

/* Kad klikneš u polje (Focus), neka ostane bijelo i prozirno */
.glass-field:focus {
    background-color: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    box-shadow: none !important;
    border-color: var(--brand-turquoise) !important;
}

/* VAŽNO: Kad se dropdown otvori, opcije moraju biti tamne na bijelom da bi se mogle pročitati */
.glass-field option {
    background-color: #ffffff !important;
    color: #0a2540 !important;
}