/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; color: #222; background: #fff; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ===== VARIJABLE ===== */
:root {
  --green: #5a8a1a;
  --green-dark: #3B6D11;
  --green-light: #eaf3de;
  --green-mid: #9fca6d;
  --blue: #1a5fa8;
  --blue-light: #d6e9f8;
  --viber: #7360f2;
  --text: #222;
  --text-sec: #555;
  --text-light: #888;
  --border: #e0e0e0;
  --bg-light: #f8f8f6;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* ===== TIPOGRAFIJA ===== */
h1, h2, h3 { font-family: 'Playfair Display', serif; font-weight: 500; }
h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.2; }
h2 { font-size: clamp(20px, 2.5vw, 28px); line-height: 1.3; margin-bottom: 0.75rem; }
h3 { font-size: 18px; }
p { font-size: 14px; color: var(--text-sec); line-height: 1.8; margin-bottom: 0.5rem; }

/* ===== LAYOUT ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.section-sub { font-size: 14px; color: var(--text-sec); margin-bottom: 2rem; }
.see-all { font-size: 13px; color: var(--green); cursor: pointer; }
.see-all:hover { text-decoration: underline; }

/* ===== BADGE ===== */
.badge { display: inline-block; background: var(--green-light); color: var(--green-dark); font-size: 11px; padding: 4px 12px; border-radius: 20px; font-weight: 500; }
.badge-blue { display: inline-block; background: var(--blue); color: white; font-size: 11px; padding: 4px 12px; border-radius: 20px; font-weight: 500; margin-bottom: 0.75rem; }

/* ===== DUGMAD ===== */
.btn-green { background: var(--green); color: white; border: none; padding: 10px 22px; border-radius: var(--radius-sm); font-size: 14px; cursor: pointer; font-weight: 500; font-family: inherit; transition: background 0.2s; }
.btn-green:hover { background: var(--green-dark); }
.btn-outline { background: transparent; color: var(--green); border: 1.5px solid var(--green); padding: 9px 20px; border-radius: var(--radius-sm); font-size: 14px; cursor: pointer; font-weight: 500; font-family: inherit; transition: all 0.2s; }
.btn-outline:hover { background: var(--green-light); }
.btn-blue { background: var(--blue); color: white; border: none; padding: 10px 24px; border-radius: var(--radius-sm); font-size: 14px; cursor: pointer; font-weight: 600; font-family: inherit; }
.btn-outline-blue { background: transparent; color: var(--blue); border: 2px solid var(--blue); padding: 9px 22px; border-radius: var(--radius-sm); font-size: 14px; cursor: pointer; font-weight: 500; font-family: inherit; }

/* ===== NAVIGACIJA ===== */
.navbar { position: sticky; top: 0; z-index: 100; background: white; border-bottom: 1px solid var(--border); padding: 14px 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-text { display: flex; flex-direction: column; }
.nav-brand { font-size: 20px; font-weight: 500; letter-spacing: 3px; color: #222; font-family: 'Playfair Display', serif; }
.nav-sub { font-size: 9px; letter-spacing: 2px; color: var(--green); font-weight: 500; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { font-size: 13px; color: var(--text-sec); transition: color 0.2s; }
.nav-links a:hover { color: var(--green); }
.hamburger { display: none; background: none; border: none; font-size: 22px; cursor: pointer; }
.mobile-menu { display: none; flex-direction: column; background: white; border-bottom: 1px solid var(--border); padding: 1rem 2rem; gap: 14px; }
.mobile-menu a { font-size: 15px; color: var(--text-sec); }
.mobile-menu.open { display: flex; }

/* ===== HERO ===== */
.hero { background: linear-gradient(135deg, #f4f9ee 0%, #eaf3de 100%); padding: 4rem 2rem 3rem; text-align: center; }
.hero-content { max-width: 720px; margin: 0 auto; }
.hero .badge { margin-bottom: 1rem; }
.hero h1 { color: #222; margin-bottom: 0.75rem; }
.hero > .hero-content > p { font-size: 15px; color: var(--text-sec); }
.hero-free { font-size: 14px !important; color: var(--green) !important; font-weight: 600 !important; margin-bottom: 2rem !important; }

/* ===== SEARCH BOX ===== */
.search-box { background: white; border-radius: var(--radius); padding: 1.2rem; border: 1px solid var(--border); box-shadow: var(--shadow); text-align: left; margin-top: 1.5rem; }
.search-tabs { display: flex; gap: 8px; margin-bottom: 1rem; flex-wrap: wrap; }
.tab-btn { padding: 7px 16px; border-radius: var(--radius-sm); font-size: 13px; cursor: pointer; font-weight: 500; border: 1.5px solid var(--green); background: transparent; color: var(--green); font-family: inherit; transition: all 0.2s; }
.tab-btn.active { background: var(--green); color: white; }
.grcka-tab { border-color: var(--blue); color: var(--blue); }
.grcka-tab.active { background: var(--blue); color: white; }
.search-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 10px; }
.search-field label { font-size: 11px; color: var(--text-sec); display: block; margin-bottom: 4px; }
.search-field select, .search-field input { width: 100%; font-size: 13px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fafafa; color: var(--text); font-family: inherit; }
.btn-search { width: 100%; background: var(--green); color: white; border: none; padding: 11px; border-radius: var(--radius-sm); font-size: 14px; cursor: pointer; font-weight: 500; font-family: inherit; margin-top: 4px; transition: background 0.2s; }
.btn-search:hover { background: var(--green-dark); }

/* ===== STATISTIKE ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat-item { padding: 1.2rem 1rem; text-align: center; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 24px; font-weight: 600; color: var(--green); font-family: 'Playfair Display', serif; }
.stat-label { font-size: 12px; color: var(--text-sec); margin-top: 4px; }

/* ===== OGLASI ===== */
.oglasi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; }
.oglas-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: box-shadow 0.2s, transform 0.2s; }
.oglas-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.12); transform: translateY(-2px); }
.oglas-slika { height: 180px; background: var(--green-light); display: flex; align-items: center; justify-content: center; position: relative; }
.oglas-slika img { width: 100%; height: 100%; object-fit: cover; }
.oglas-slika-placeholder { font-size: 48px; opacity: 0.4; }
.oglas-badge { position: absolute; top: 10px; left: 10px; font-size: 11px; padding: 3px 10px; border-radius: 20px; font-weight: 500; color: white; }
.oglas-badge.prodaja { background: var(--green); }
.oglas-badge.iznajmljivanje { background: var(--green-dark); }
.oglas-badge.grcka { background: var(--blue); }
.oglas-novo { position: absolute; top: 10px; right: 10px; background: #faeeda; color: #854F0B; font-size: 11px; padding: 3px 10px; border-radius: 20px; }
.oglas-body { padding: 1rem; }
.oglas-naslov { font-size: 15px; font-weight: 500; margin-bottom: 4px; color: var(--text); }
.oglas-lokacija { font-size: 12px; color: var(--text-light); margin-bottom: 10px; }
.oglas-tagovi { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.oglas-tag { font-size: 11px; background: var(--bg-light); color: var(--text-sec); padding: 3px 10px; border-radius: 20px; }
.oglas-cena { font-size: 18px; font-weight: 600; color: var(--green); font-family: 'Playfair Display', serif; }
.no-results { text-align: center; padding: 3rem; color: var(--text-sec); font-size: 15px; }

/* ===== KATEGORIJE ===== */
.kategorije-section { background: var(--bg-light); }
.kategorije-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.kategorija-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem 0.5rem; text-align: center; cursor: pointer; transition: all 0.2s; }
.kategorija-card:hover { border-color: var(--green); box-shadow: var(--shadow); }
.grcka-card { border-color: var(--blue); }
.grcka-card:hover { border-color: var(--blue); }
.kat-icon { font-size: 28px; margin-bottom: 8px; }
.kat-naziv { font-size: 13px; font-weight: 500; color: var(--text); }
.grcka-card .kat-naziv { color: var(--blue); }

/* ===== GRČKA BANER ===== */
.grcka-baner { position: relative; overflow: hidden; }
.grcka-zastava { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.grcka-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.grcka-content { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; padding: 3rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.grcka-content h2 { font-size: 22px; font-weight: 600; color: #0d3060; margin-bottom: 0.6rem; }
.grcka-content p { color: #1a3a6b; }
.grcka-lokacije { color: #2e5fa0 !important; font-size: 13px !important; }
.grcka-btns { display: flex; flex-direction: column; gap: 10px; min-width: 160px; }
.grcka-free { text-align: center; font-size: 11px; color: #2e5fa0; }

/* ===== KAKO FUNKCIONIŠEMO ===== */
.kako-tabs { display: flex; gap: 10px; margin: 1.5rem 0; flex-wrap: wrap; }
.kako-tab { padding: 9px 20px; border-radius: var(--radius-sm); font-size: 13px; cursor: pointer; font-weight: 500; border: 1.5px solid var(--green); background: transparent; color: var(--green); font-family: inherit; transition: all 0.2s; }
.kako-tab.active { background: var(--green); color: white; }
.kako-content { display: flex; flex-direction: column; gap: 12px; }
.korak { display: flex; gap: 14px; align-items: flex-start; background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; }
.korak.istaknuto { border-color: var(--green); }
.korak-num { width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: white; font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.korak strong { font-size: 14px; color: var(--text); display: block; margin-bottom: 4px; }
.korak p { font-size: 13px; margin: 0; }
.kako-info-box { background: var(--green-light); color: var(--green-dark); font-size: 13px; padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 500; }
.kako-info-box.warning { background: #fff8ec; color: #854F0B; }

/* ===== O NAMA ===== */
.o-nama-section { background: var(--bg-light); }
.o-nama-inner { max-width: 720px; }
.o-nama-inner strong { color: var(--text); }
.vrednosti-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 1.5rem 0; }
.vrednost { background: white; border-left: 3px solid var(--green); padding: 1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.vrednost strong { font-size: 13px; color: var(--green-dark); display: block; margin-bottom: 6px; }
.vrednost p { font-size: 12px; margin: 0; }
.o-nama-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1rem; }

/* ===== KONTAKT ===== */
.kontakt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.kontakt-info-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; margin-bottom: 1rem; }
.info-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.info-row:last-child { border-bottom: none; }
.info-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--green-light); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.info-row strong { font-size: 13px; color: var(--text); display: block; margin-bottom: 2px; }
.info-row p { font-size: 13px; margin: 0; }
.mapa-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); margin-bottom: 1rem; }
.mapa-label { background: var(--green-light); padding: 8px 12px; font-size: 11px; color: var(--green-dark); text-align: center; }
.viber-btn { display: block; background: var(--viber); color: white; text-align: center; padding: 11px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; }
.kontakt-forma { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.kontakt-forma h3 { margin-bottom: 1.2rem; font-size: 16px; }
.forma-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.forma-field { margin-bottom: 12px; }
.forma-field label { font-size: 12px; color: var(--text-sec); display: block; margin-bottom: 4px; }
.forma-field input, .forma-field select, .forma-field textarea { width: 100%; font-size: 13px; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: inherit; background: #fafafa; }
.forma-field textarea { resize: vertical; min-height: 90px; }
.forma-note { font-size: 11px; color: var(--text-light); text-align: center; margin-top: 8px; }

/* ===== FOOTER ===== */
.footer { background: #2d4a12; padding: 3rem 2rem 0; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; }
.footer-brand { font-size: 16px; font-weight: 500; color: white; letter-spacing: 2px; margin-bottom: 10px; font-family: 'Playfair Display', serif; }
.footer-inner p { color: #9fca6d; font-size: 13px; line-height: 1.8; }
.footer-title { font-size: 12px; font-weight: 600; color: white; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
.footer-bottom { border-top: 1px solid #3d6018; text-align: center; padding: 1rem; font-size: 12px; color: #9fca6d; max-width: 1100px; margin: 0 auto; }

/* ===== VIBER FLOAT ===== */
.viber-float { position: fixed; bottom: 28px; right: 28px; width: 58px; height: 58px; border-radius: 50%; background: var(--viber); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 18px rgba(115,96,242,0.5); z-index: 999; transition: transform 0.2s; }
.viber-float:hover { transform: scale(1.1); }

/* ===== MODAL OGLASA ===== */
.oglas-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: white; z-index: 200; overflow-y: auto; }
.oglas-modal.open { display: block; }
.oglas-modal-inner { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem; }
.modal-close { background: none; border: none; font-size: 15px; color: var(--green); cursor: pointer; padding: 0 0 1.5rem; font-family: inherit; }
.modal-close:hover { text-decoration: underline; }

/* Detalji oglasa */
.oglas-detalji-grid { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }
.oglas-galerija { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 200px 200px; gap: 6px; border-radius: var(--radius); overflow: hidden; margin-bottom: 1.5rem; }
.galerija-slika { background: var(--green-light); display: flex; align-items: center; justify-content: center; font-size: 48px; opacity: 0.5; position: relative; }
.galerija-slika.main { grid-row: 1 / 3; }
.galerija-slika img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.oglas-tagovi-veliki { display: flex; flex-wrap: wrap; gap: 6px; margin: 1rem 0; }
.oglas-tag-veliki { background: var(--green-light); color: var(--green-dark); font-size: 12px; padding: 5px 14px; border-radius: 20px; font-weight: 500; }
.oglas-opis { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; margin-bottom: 1.2rem; }
.oglas-opis h3 { font-size: 15px; margin-bottom: 10px; }
.oglas-opis p { font-size: 13px; }
.oglas-detalji-lista { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; }
.oglas-detalji-lista h3 { font-size: 15px; margin-bottom: 10px; }
.detalj-red { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-sec); }
.detalj-red:last-child { border-bottom: none; }
.detalj-red strong { color: var(--text); }
.oglas-kontakt-box { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; position: sticky; top: 80px; }
.oglas-agencija { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.oglas-agencija-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--green-light); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.oglas-besplatno { background: var(--green-light); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 12px; color: var(--green-dark); text-align: center; margin-top: 10px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-links, .navbar .btn-green { display: none; }
  .hamburger { display: block; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .kategorije-grid { grid-template-columns: repeat(3, 1fr); }
  .kontakt-grid { grid-template-columns: 1fr; }
  .oglas-detalji-grid { grid-template-columns: 1fr; }
  .vrednosti-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .oglas-galerija { grid-template-columns: 1fr; grid-template-rows: 200px 140px 140px; }
  .galerija-slika.main { grid-row: auto; }
}

@media (max-width: 600px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .kategorije-grid { grid-template-columns: repeat(2, 1fr); }
  .search-row { grid-template-columns: 1fr 1fr; }
  .grcka-content { flex-direction: column; }
  .forma-row { grid-template-columns: 1fr; }
  .oglas-detalji-grid { grid-template-columns: 1fr; }
}
