:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --text-dark: #0f172a;
    --text-light: #f8fafc;
    --bg-light: #f1f5f9;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

/* 1. Osiguraj da je navbar fiksiran na vrhu i da ima definisanu visinu */
header, .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px; /* Prilagodi visini tvog navbara */
    z-index: 1000;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 2. Gurnite tijelo stranice (ili glavni kontejner) prema dole da se ne sakriva iza navbara */
body {
    padding-top: 90px; /* Mora biti malo veće od visine navbara */
    margin: 0;
    background-color: #f8fafc;
    font-family: 'Poppins', sans-serif;
}

/* 3. Uredan izgled centralnog dijela blog posta */
.blog-post-content {
    padding: 30px 20px 60px 20px;
}

.post-container {
    max-width: 850px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #2563eb;
    backdrop-filter: blur(10px);
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links li a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    transition: var(--transition);
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--white);
    transition: var(--transition);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: #ffffff;
    cursor: pointer;
    z-index: 1001;
}

/* Footer */
footer {
    background: #020617;
    color: #94a3b8;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    margin-top: auto;
}

/* Responsive Navbar */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .nav-links {
        position: absolute;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 250px;
        background: #2563eb;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    .nav-links.active {
        right: 0;
    }
}

/* --- Listing Detail Section (vrbanjusa, vrapcici, blagaj) --- */
.listing-detail {
    padding: 120px 5% 60px;
    background: var(--bg-light);
    flex-grow: 1;
}
.container { max-width: 1200px; margin: 0 auto; }
.listing-header { margin-bottom: 30px; background: var(--white); padding: 30px; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.03); }
.listing-header h1 { font-size: 2.2rem; color: var(--text-dark); margin-bottom: 10px; line-height: 1.3; }
.listing-header h1 span { color: var(--primary-color); }
.location { font-size: 1.1rem; color: #475569; display: flex; align-items: center; gap: 10px; }
.location i { color: #ef4444; }
.listing-content { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; }
.listing-image-container { background: var(--white); padding: 45px; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.03); }
.listing-image-container img { width: 100%; height: auto; border-radius: 10px; display: block; object-fit: cover; max-height: 600px; }
.info-card, .contact-card { background: var(--white); padding: 35px; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.03); margin-bottom: 30px; }
.badge-owner { display: inline-flex; align-items: center; gap: 8px; background: #dbeafe; color: #1e3a8a; padding: 8px 16px; border-radius: 20px; font-weight: 600; font-size: 0.95rem; margin-bottom: 25px; }
.info-card h3, .contact-card h3 { font-size: 1.5rem; color: var(--text-dark); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.info-card h3 i { color: var(--primary-color); }
.description-text { font-size: 1.1rem; color: #475569; line-height: 1.8; margin-bottom: 20px; white-space: pre-wrap; }
.contact-intro { color: #475569; margin-bottom: 20px; font-size: 1.05rem; }
.contact-methods { display: flex; flex-direction: column; gap: 15px; margin-bottom: 25px; }
.contact-button { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 15px 20px; background: #f1f5f9; color: var(--primary-color); border-radius: 12px; font-size: 1.1rem; font-weight: 600; transition: var(--transition); border: 1px solid transparent; }
.contact-button:hover { background: var(--primary-color); color: var(--white); transform: translateY(-2px); box-shadow: 0 10px 15px rgba(37, 99, 235, 0.2); }
.contact-button.email-btn { background: #eff6ff; border-color: #bfdbfe; }
.contact-button.email-btn:hover { background: #2563eb; border-color: #2563eb; }
.contact-button.ig-btn { background: #fdf2f8; color: #db2777; border-color: #fbcfe8; }
.contact-button.ig-btn:hover { background: #db2777; color: var(--white); border-color: #db2777; }
.agency-slogan { text-align: center; padding-top: 20px; border-top: 1px solid #e2e8f0; color: #475569; font-size: 1.05rem; }
.agency-slogan strong { color: var(--primary-color); }

@media (max-width: 992px) { .listing-content { grid-template-columns: 1fr; } .listing-header h1 { font-size: 1.8rem; } }
@media (max-width: 768px) { .listing-detail { padding: 100px 5% 40px; } .info-card, .contact-card, .listing-header { padding: 20px; } }

/* --- Blog specific styles --- */
.blog-hero { 
    position: relative; 
    height: 50vh; 
    width: 100%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    background-image: url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80'); 
    background-size: cover; 
    background-position: center; 
    margin-top: 0; 
    padding-top: 80px; 
}
.blog-hero::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); z-index: 1; }
.blog-hero-content { position: relative; z-index: 2; color: var(--white); padding: 0 20px; animation: fadeInDown 1s ease-out; }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
.blog-hero h1 { font-size: 3.5rem; font-weight: 700; margin-bottom: 10px; text-transform: uppercase; letter-spacing: -1px; }
.blog-hero p { font-size: 1.2rem; font-weight: 300; max-width: 600px; margin: 0 auto; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 50px; color: var(--text-dark); position: relative; }
.section-title::after { content: ''; position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background: var(--primary-color); border-radius: 2px; }
.blog-posts { padding: 80px 5%; background: var(--bg-light); flex-grow: 1; }
.cards-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; margin-bottom: 50px; }
.card { background: var(--white); border-radius: 15px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: var(--transition); display: flex; flex-direction: column; height: 100%; }
.card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.card-img { width: 100%; height: 220px; object-fit: cover; transition: var(--transition); }
.card:hover .card-img { transform: scale(1.05); }
.card-img-container { overflow: hidden; }
.card-content { padding: 30px 25px; display: flex; flex-direction: column; flex-grow: 1; }
.blog-date { font-size: 0.85rem; color: var(--primary-color); font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.card-title { margin: 0 0 15px 0; font-size: 1.4rem; color: var(--text-dark); line-height: 1.4; }
.blog-excerpt { font-size: 0.95rem; color: #475569; margin-bottom: 25px; line-height: 1.7; flex-grow: 1; }
.read-more { font-weight: 600; color: var(--primary-color); text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; display: inline-flex; align-items: center; gap: 5px; transition: var(--transition); }
.read-more i { transition: transform 0.3s; }
.read-more:hover { color: var(--primary-hover); }
.read-more:hover i { transform: translateX(5px); }

/* --- Contact specific --- */
.contact { padding: 100px 5%; background: var(--text-dark); color: var(--white); text-align: center; }
.contact .section-title { color: var(--white); }
.contact-box { background: rgba(255,255,255,0.05); padding: 50px; border-radius: 20px; max-width: 600px; margin: 0 auto; backdrop-filter: blur(10px); }
.contact-box i { font-size: 3rem; color: var(--primary-color); margin-bottom: 20px; }
.contact-email { font-size: 1.5rem; font-weight: 600; display: block; margin-top: 10px; transition: var(--transition); }
.contact-email:hover { color: var(--primary-color); }

/* --- Sve Nekretnine Page specific --- */
.page-header { 
    position: relative; 
    height: 40vh; 
    min-height: 300px; 
    width: 100%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    background-image: url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80'); 
    background-size: cover; 
    background-position: center; 
    margin-bottom: 40px; 
    margin-top: 0; 
    padding-top: 80px; 
}
.page-header::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); z-index: 1; }
.page-title { position: relative; z-index: 2; color: var(--white); }
.page-title h1 { font-size: 3rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; }
.page-title p { font-size: 1.2rem; font-weight: 300; }
.search-container { max-width: 600px; margin: 0 auto 40px auto; padding: 0 5%; }
.search-box { position: relative; width: 100%; }
.search-box input { width: 100%; padding: 16px 20px 16px 50px; border-radius: 30px; border: 1px solid #cbd5e1; font-size: 1rem; outline: none; transition: var(--transition); background: var(--white); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.search-box input:focus { border-color: var(--primary-color); box-shadow: 0 6px 15px rgba(37, 99, 235, 0.15); }
.search-box i { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: #64748b; font-size: 1.1rem; }
.all-properties { padding: 0 5% 50px 5%; background: var(--bg-light); flex-grow: 1; }

@media (max-width: 768px) {
    .blog-hero { height: 40vh; margin-top: 0; padding-top: 60px; }
    .page-header { margin-top: 0; padding-top: 60px; }
    .blog-hero h1 { font-size: 2.5rem; }
    .page-title h1 { font-size: 2.2rem; }
    .section-title { font-size: 2rem; }
}

/* --- Single Blog Post Page --- */
.breadcrumbs { max-width: 850px; margin: 0 auto 20px auto; padding: 0 40px; font-size: 0.9rem; color: #64748b; }
.breadcrumbs a { color: var(--primary-color); }
.breadcrumbs a:hover { text-decoration: underline; }
.post-meta { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; color: #64748b; font-size: 0.9rem; flex-wrap: wrap; }
.post-meta span { display: flex; align-items: center; gap: 6px; }
.post-meta i { color: var(--primary-color); }
.post-title { 
    font-size: 2.2rem; 
    line-height: 1.3; 
    margin-bottom: 18px; 
    color: var(--text-dark); /* Promijenjeno iz white u tamno sivu */
}
.share-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.tag { background: var(--bg-light); color: var(--primary-color); padding: 6px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; }
.post-featured-img { width: 100%; height: auto; max-height: 450px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; margin-bottom: 30px; display: block; }
.post-body p { margin-bottom: 18px; color: #334155; font-size: 1.05rem; }
.post-body h2 { font-size: 1.6rem; margin: 35px 0 15px 0; color: var(--text-dark); }
.post-body h3 { font-size: 1.25rem; margin: 25px 0 12px 0; color: var(--text-dark); }
.post-body ul { margin: 0 0 20px 25px; color: #334155; }
.post-body li { margin-bottom: 10px; font-size: 1.05rem; }
.post-body strong { color: var(--text-dark); }
.post-body a { color: var(--primary-color); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.post-body a:hover { color: var(--primary-hover); }
.post-cta { background: var(--bg-light); border-left: 4px solid var(--primary-color); padding: 25px 30px; border-radius: 10px; margin: 35px 0; }
.post-cta p { margin-bottom: 15px; }
.post-cta a.btn-primary { display: inline-block; background: var(--primary-color); color: var(--white); padding: 12px 28px; border-radius: 30px; font-weight: 600; text-decoration: none; transition: var(--transition); }
.post-cta a.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); }
.related-posts { margin-top: 50px; padding-top: 35px; border-top: 1px solid #e2e8f0; }
.related-posts h3 { font-size: 1.4rem; margin-bottom: 22px; color: var(--text-dark); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.related-card { background: var(--bg-light); border-radius: 10px; padding: 18px; transition: var(--transition); display: block; }
.related-card:hover { background: #e2e8f0; transform: translateY(-3px); }
.related-card span { font-weight: 600; color: var(--text-dark); font-size: 0.95rem; line-height: 1.4; }

@media (max-width: 768px) {
    .post-container { padding: 25px 20px; }
    .breadcrumbs { padding: 0 20px; }
    .post-title { font-size: 1.65rem; }
    .post-featured-img { max-height: 260px; }
    .post-body h2 { font-size: 1.35rem; }
}