/* ========================================
   OAZA PROPERTIES — Glavni stil
   Paleta: tamno zelena + zlatna + krem
   ======================================== */

:root {
  --green: #0F5132;
  --green-light: #1A6B44;
  --gold: #C9A961;
  --gold-dark: #A88948;
  --cream: #F5F0E8;
  --white: #FFFFFF;
  --gray-100: #F7F7F7;
  --gray-200: #E5E5E5;
  --gray-500: #6B7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --shadow-sm: 0 2px 8px rgba(15, 81, 50, 0.10);
  --shadow-md: 0 8px 24px rgba(15, 81, 50, 0.14);
  --shadow-lg: 0 20px 40px rgba(15, 81, 50, 0.18);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
  --max-width: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  color: var(--green);
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  z-index: 100;
  transition: var(--transition);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  line-height: 1;
}
.logo img {
  height: 72px;
  width: auto;
  display: block;
  border-radius: 8px;
  transition: var(--transition);
  flex-shrink: 0;
}
.logo:hover img { transform: scale(1.03); }
.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.3px;
  line-height: 1.1;
  white-space: nowrap;
}
.logo-text > span { color: var(--gold); }

.footer-brand .logo img { height: 108px; border-radius: 10px; }
@media (max-width: 968px) {
  .logo-text { font-size: 1.2rem; }
}
@media (max-width: 768px) {
  .logo-text { display: none; }
}
@media (max-width: 640px) {
  .logo img { height: 54px; }
}

.nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: var(--transition);
  position: relative;
}
.nav a:hover, .nav a.active { color: var(--green); }
.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
}
.nav-cta {
  background: var(--green);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: var(--radius);
  transition: var(--transition);
}
.nav-cta:hover { background: var(--green-light); }

.mobile-toggle {
  display: none;
  background: transparent;
  font-size: 1.5rem;
  color: var(--green);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--white);
  padding-top: 120px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1613490493576-7fde63acd811?auto=format&fit=crop&w=2000&q=80') center/cover;
  z-index: -2;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,81,50,0.85) 0%, rgba(15,81,50,0.55) 100%);
  z-index: -1;
}
.hero-content {
  text-align: center;
  max-width: 900px;
  padding: 40px 24px;
}
.hero-tag {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(201, 169, 97, 0.2);
  border: 1px solid var(--gold);
  border-radius: 100px;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
}
.hero h1 em {
  color: var(--gold);
  font-style: italic;
  font-weight: 500;
}
.hero-sub {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 40px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ========== SEARCH BOX ========== */
.search-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  max-width: 900px;
  margin: 0 auto;
}
.search-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--gray-200);
}
.search-tab {
  background: transparent;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-500);
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  margin-bottom: -1px;
}
.search-tab.active {
  color: var(--green);
  border-bottom-color: var(--gold);
}
.search-fields {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr auto;
  gap: 12px;
  align-items: end;
}
.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-500);
  margin-bottom: 6px;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.field input,
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 0.95rem;
  color: var(--gray-900);
  font-family: inherit;
  transition: var(--transition);
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.15);
}
.btn-search {
  background: var(--green);
  color: var(--white);
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  height: 46px;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-search:hover { background: var(--green-light); }

/* ========== SECTIONS ========== */
section { padding: 80px 0; }

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}
.section-tag {
  display: inline-block;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head p {
  color: var(--gray-500);
  font-size: 1.05rem;
  margin-top: 12px;
}

/* ========== PROPERTY CARDS ========== */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.property-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}
.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.property-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.property-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: 0.6s ease;
}
.property-card:hover .property-image img { transform: scale(1.06); }

.property-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--gold);
  color: var(--white);
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.property-badge.rent { background: var(--green); }

.property-fav {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 1.1rem;
  transition: var(--transition);
}
.property-fav:hover { background: var(--gold); color: var(--white); }
.property-fav.active { background: var(--gold); color: var(--white); }

.property-body { padding: 22px; }
.property-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 6px;
}
.property-price small {
  font-size: 0.85rem;
  color: var(--gray-500);
  font-weight: 400;
}
.price-per-m2 {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-500);
  margin-left: 4px;
  white-space: nowrap;
}
.property-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 8px;
  font-family: 'Inter', sans-serif;
}
.property-location {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.property-features {
  display: flex;
  gap: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
  color: var(--gray-700);
  font-size: 0.88rem;
}
.property-features span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.property-features .icon { color: var(--gold); font-size: 1rem; }

/* ========== CATEGORIES ========== */
.bg-cream { background: var(--cream); }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.category-card {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}
.category-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: 0.6s ease;
}
.category-card:hover img { transform: scale(1.08); }
.category-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15,81,50,0.85) 100%);
}
.category-info {
  position: absolute;
  bottom: 24px; left: 24px; right: 24px;
  color: var(--white);
  z-index: 1;
}
.category-info h3 {
  color: var(--white);
  margin-bottom: 4px;
  font-size: 1.5rem;
}
.category-info span { opacity: 0.85; font-size: 0.9rem; }

/* ========== ABOUT / CTA ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-md);
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }

.about-text .section-tag { display: block; margin-bottom: 8px; }
.about-text h2 { text-align: left; }
.about-text p {
  color: var(--gray-500);
  margin: 20px 0;
  font-size: 1.05rem;
  line-height: 1.75;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 32px 0;
  padding: 24px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  color: var(--green);
  font-weight: 600;
}
.stat-label { color: var(--gray-500); font-size: 0.9rem; }

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-light); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-outline:hover { background: var(--green); color: var(--white); }

/* ========== CTA BANNER ========== */
.cta-banner {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(201,169,97,0.25) 0%, transparent 70%);
}
.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p { opacity: 0.9; margin-bottom: 32px; font-size: 1.05rem; }

/* ========== TESTIMONIALS ========== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

/* Testimonials carousel */
.testimonials-carousel {
  position: relative;
  padding-top: 8px;
}
.testimonials-viewport {
  overflow: hidden;
  padding: 8px 4px;
}
.testimonials-track {
  display: flex;
  gap: 28px;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.testimonials-track > .testimonial {
  flex: 0 0 calc((100% - 56px) / 3);
  min-width: 0;
}
@media (max-width: 968px) {
  .testimonials-track > .testimonial { flex: 0 0 calc((100% - 28px) / 2); }
}
@media (max-width: 640px) {
  .testimonials-track > .testimonial { flex: 0 0 100%; }
}

.carousel-btn {
  position: absolute;
  top: calc(50% - 24px);
  width: 46px;
  height: 46px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  color: var(--green);
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 2;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  transition: var(--transition);
}
.carousel-btn:hover { background: var(--green); color: var(--white); transform: scale(1.06); }
.carousel-prev { left: -22px; }
.carousel-next { right: -22px; }
@media (max-width: 640px) {
  .carousel-prev, .carousel-next { display: none; }
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-200);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}
.carousel-dots button:hover { background: var(--gold); }
.carousel-dots button.active {
  background: var(--green);
  width: 28px;
  border-radius: 5px;
}
.testimonial {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.testimonial-stars { color: var(--gold); font-size: 1.05rem; margin-bottom: 16px; }
.testimonial p {
  color: var(--gray-700);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 20px;
}
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-author img {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.author-name { font-weight: 600; color: var(--green); font-size: 0.95rem; }
.author-role { color: var(--gray-500); font-size: 0.85rem; }

/* ========== FOOTER ========== */
.footer {
  background: var(--green);
  color: var(--white);
  padding: 72px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo { color: var(--white); font-size: 1.7rem; margin-bottom: 16px; display: inline-block; }
.footer-brand p { opacity: 0.75; font-size: 0.95rem; line-height: 1.7; }
.footer h4 {
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a {
  color: rgba(255,255,255,0.7);
  font-size: 0.92rem;
  transition: var(--transition);
}
.footer ul a:hover { color: var(--gold); }

.contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  color: rgba(255,255,255,0.8);
  font-size: 0.92rem;
}
.contact-item .icon { color: var(--gold); flex-shrink: 0; }

/* Kada je contact-item link (mapa, tel, mail) */
a.contact-item {
  text-decoration: none;
  transition: color 0.3s ease;
}
a.contact-item:hover { color: var(--gold); }
a.contact-item:hover .icon { transform: scale(1.15); transition: transform 0.3s ease; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}
.socials { display: flex; gap: 16px; }
.social-link {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  transition: var(--transition);
}
.social-link:hover {
  background: var(--gold);
  border-color: var(--gold);
}

/* ========== PAGE HEADER (za podstranice) ========== */
.page-header {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  color: var(--white);
  padding: 160px 0 60px;
  text-align: center;
}
.page-header h1 { color: var(--white); margin-bottom: 12px; }
.breadcrumb {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}
.breadcrumb a { color: var(--gold); }
.breadcrumb .sep { margin: 0 8px; opacity: 0.5; }

/* ========== LISTINGS PAGE ========== */
.listings-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
}
.filters-sidebar {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  height: fit-content;
  position: sticky;
  top: 100px;
}
.filter-group { margin-bottom: 24px; }
.filter-group h5 {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.checkbox-list { display: flex; flex-direction: column; gap: 8px; }
.checkbox-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-700);
  font-size: 0.92rem;
  cursor: pointer;
}
.range-inputs { display: flex; gap: 8px; }
.range-inputs input {
  padding: 10px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.9rem;
  width: 100%;
}

.listings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.listings-count { color: var(--gray-500); font-size: 0.95rem; }
.sort-select {
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 0.9rem;
  cursor: pointer;
}

/* ========== SINGLE PROPERTY ========== */
.property-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  height: 500px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: -40px;
}
.property-gallery img { width: 100%; height: 100%; object-fit: cover; }
.property-gallery img:first-child { grid-row: 1 / 3; }

.property-detail {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  margin-top: 48px;
}
.detail-header h1 { text-align: left; margin-bottom: 8px; }
.detail-location {
  color: var(--gray-500);
  font-size: 1rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.detail-price-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.detail-price {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  color: var(--green);
  font-weight: 600;
}
.detail-badge {
  background: var(--gold);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}
.detail-badge.rent { background: var(--green); }

.detail-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
  padding: 24px;
  background: var(--cream);
  border-radius: var(--radius-lg);
}
.feature-item { text-align: center; }
.feature-item .icon { color: var(--gold); font-size: 1.5rem; margin-bottom: 8px; }
.feature-item .val { font-weight: 600; color: var(--green); font-size: 1.1rem; }
.feature-item .lbl { color: var(--gray-500); font-size: 0.85rem; }

.detail-section { margin-bottom: 40px; }
.detail-section h3 {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.detail-section p { color: var(--gray-700); line-height: 1.8; }

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.amenities-grid li {
  list-style: none;
  padding: 10px 0;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 10px;
}
.amenities-grid li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
}

.contact-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  position: sticky;
  top: 100px;
}
.agent-info {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 20px;
}
.agent-info img {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
}
.agent-name { font-weight: 600; color: var(--green); }
.agent-title { color: var(--gray-500); font-size: 0.88rem; }

.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input,
.contact-form textarea {
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  width: 100%;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.contact-form textarea { resize: vertical; min-height: 100px; }

/* Success / error poruke za formu */
.form-message {
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  margin-top: 8px;
  line-height: 1.5;
}
.form-success {
  background: rgba(15, 81, 50, 0.10);
  color: var(--green);
  border-left: 3px solid var(--green);
}
.form-error {
  background: rgba(180, 40, 40, 0.08);
  color: #b42828;
  border-left: 3px solid #b42828;
}
.contact-form button[disabled] { opacity: 0.7; cursor: wait; }

/* Google Maps embed */
.map-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 400px;
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: saturate(1.05);
}
.map-open-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--white);
  color: var(--green);
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.map-open-btn:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-2px);
}
@media (max-width: 640px) {
  .map-wrap { height: 320px; }
  .map-open-btn { padding: 8px 12px; font-size: 0.82rem; top: 10px; right: 10px; }
}

/* ========== CONTACT PAGE ========== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-info-block { }
.info-item {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
}
.info-icon {
  width: 56px; height: 56px;
  background: var(--cream);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.4rem;
  flex-shrink: 0;
}
.info-item h4 { margin-bottom: 6px; font-family: 'Inter', sans-serif; font-size: 1.05rem; }
.info-item p { color: var(--gray-500); font-size: 0.95rem; }

/* ========== ABOUT PAGE ========== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.value-card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.value-icon {
  width: 72px; height: 72px;
  background: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.8rem;
  margin: 0 auto 20px;
}
.value-card h3 { margin-bottom: 12px; }
.value-card p { color: var(--gray-500); font-size: 0.95rem; }

/* Proces u 4 koraka (o-nama) */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.process-card {
  background: var(--white);
  padding: 40px 28px 32px;
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid var(--gray-200);
  position: relative;
  transition: var(--transition);
}
.process-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.process-num {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  border: 3px solid var(--white);
  box-shadow: 0 4px 12px rgba(11, 37, 69, 0.15);
}
.process-icon {
  font-size: 2rem;
  margin: 8px 0 16px;
  color: var(--gold);
}
.process-card h3 { margin-bottom: 12px; font-size: 1.15rem; }
.process-card p { color: var(--gray-500); font-size: 0.92rem; line-height: 1.6; }
@media (max-width: 900px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
}
@media (max-width: 500px) {
  .process-grid { grid-template-columns: 1fr; }
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.team-member {
  text-align: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.team-member:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-photo {
  aspect-ratio: 1;
  overflow: hidden;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-info { padding: 24px; }
.team-info h4 { color: var(--green); font-family: 'Playfair Display', serif; font-size: 1.2rem; margin-bottom: 4px; }
.team-info .role { color: var(--gold); font-size: 0.9rem; margin-bottom: 12px; }
.team-info .contact-lines { color: var(--gray-500); font-size: 0.88rem; }

/* ========== ANIMACIJE ========== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.8s ease both; }
.fade-up-delay-1 { animation-delay: 0.1s; }
.fade-up-delay-2 { animation-delay: 0.2s; }
.fade-up-delay-3 { animation-delay: 0.3s; }

/* ========== RESPONSIVE ========== */
@media (max-width: 968px) {
  .search-fields { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-layout, .property-detail { grid-template-columns: 1fr; gap: 40px; }
  .listings-layout { grid-template-columns: 1fr; }
  .filters-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .values-grid { grid-template-columns: 1fr; }
  .detail-features { grid-template-columns: repeat(2, 1fr); }
  .property-gallery { grid-template-columns: 1fr; grid-template-rows: 300px 200px; }
  .property-gallery img:first-child { grid-row: 1; }
  .property-gallery img:nth-child(n+4) { display: none; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
  }
  .mobile-toggle { display: block; }
  .search-fields { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .cta-banner { padding: 40px 24px; }
  section { padding: 60px 0; }
  .detail-features { grid-template-columns: 1fr 1fr; }
  .amenities-grid { grid-template-columns: 1fr; }
}

/* Klikabilne slike u galeriji (kursor + suptilan hover) */
.property-gallery img { cursor: zoom-in; transition: opacity 0.2s; }
.property-gallery img:hover { opacity: 0.9; }

/* Lightbox — fullscreen viewer za galeriju */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  animation: lightbox-fade 0.2s ease;
}
.lightbox.open { display: flex; }
@keyframes lightbox-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.lightbox-image-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100% - 140px);
  max-height: 100%;
}
.lightbox-image-wrap img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
  backdrop-filter: blur(4px);
}
.lightbox-close {
  top: 20px; right: 20px;
  width: 48px; height: 48px;
  font-size: 1.4rem;
}
.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 56px; height: 56px;
  font-size: 2.4rem;
  line-height: 0.8;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.05); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.05); }
.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  background: rgba(0, 0, 0, 0.5);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}
@media (max-width: 600px) {
  .lightbox-image-wrap { max-width: 100%; }
  .lightbox-prev, .lightbox-next {
    width: 44px; height: 44px;
    font-size: 1.8rem;
  }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 12px; right: 12px; width: 40px; height: 40px; }
}

/* Google Maps embed na detaljnoj strani + klikabilna lokacija */
.detail-map {
  margin-top: 20px;
  height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: var(--cream);
}
.detail-map iframe { display: block; }
.detail-location a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: color 0.2s, border-color 0.2s;
}
.detail-location a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ========== ADMIN (CMS) ========== */
.admin-bar {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--cream);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.admin-bar .btn { min-height: 40px; padding: 8px 18px; }

.admin-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  z-index: 3;
}
.admin-actions button {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: var(--green);
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-actions button:hover { background: var(--gold); color: var(--white); transform: scale(1.05); }
.admin-actions .admin-delete:hover { background: #c0392b; }
/* Kad su admin dugmići prikazani, pomeramo srce levo da se ne preklapa */
.property-image .admin-actions ~ .property-fav,
.property-card:has(.admin-actions) .property-fav { right: auto; left: 12px; }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(11, 37, 69, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  overflow-y: auto;
}
.modal.open { display: flex; }
.modal-inner {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 440px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-inner.modal-wide { max-width: 640px; }
.modal-inner h3 {
  font-family: 'Playfair Display', serif;
  color: var(--green);
  margin-bottom: 20px;
  padding-right: 40px;
  font-size: 1.5rem;
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border: none;
  background: var(--cream);
  color: var(--green);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}
.modal-close:hover { background: var(--gold); color: var(--white); }

/* Forma u modalu */
#login-form,
#edit-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
#login-form label,
#edit-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 500;
}
#login-form input,
#login-form select,
#edit-form input,
#edit-form select {
  padding: 10px 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--green);
  background: var(--white);
  transition: var(--transition);
}
#login-form input:focus,
#edit-form input:focus,
#edit-form select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.15);
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}
#edit-form textarea {
  padding: 10px 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--green);
  background: var(--white);
  transition: var(--transition);
  resize: vertical;
  min-height: 80px;
}
#edit-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.15);
}
.hint-inline {
  color: var(--gray-500);
  font-weight: 400;
  font-size: 0.78rem;
}
.form-error {
  padding: 10px 14px;
  background: #fdecea;
  color: #c0392b;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

/* Checkbox u formi (npr. "Istaknuti oglas") */
#edit-form .checkbox-label {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 400;
  color: var(--gray-500);
  line-height: 1.4;
}
#edit-form .checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  width: 18px; height: 18px;
  accent-color: var(--gold);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
#edit-form .checkbox-label strong { color: var(--green); }

/* File input + preview */
#edit-form input[type="file"] {
  padding: 8px;
  cursor: pointer;
  background: var(--cream);
  border-style: dashed;
}
#edit-form input[type="file"]::file-selector-button {
  padding: 6px 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--green);
  color: var(--white);
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  margin-right: 12px;
  transition: var(--transition);
}
#edit-form input[type="file"]::file-selector-button:hover { background: var(--gold); }
#edit-form .hint {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--gray-500);
  margin-top: 2px;
}
/* Grid za više slika u formi */
.slika-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.slika-thumb {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--gray-200);
  background: var(--gray-100, #f2f2f2);
  transition: var(--transition);
}
.slika-thumb.primary { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.2); }
.slika-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.thumb-badge {
  position: absolute;
  bottom: 6px; left: 6px;
  background: var(--gold);
  color: var(--white);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.thumb-remove,
.thumb-star {
  position: absolute;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.thumb-remove {
  top: 6px; right: 6px;
  background: #c0392b;
  color: var(--white);
}
.thumb-remove:hover { background: #e74c3c; transform: scale(1.05); }
.thumb-star {
  top: 6px; left: 6px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--gold);
  font-size: 1rem;
}
.thumb-star:hover { background: var(--gold); color: var(--white); transform: scale(1.05); }
@media (max-width: 500px) {
  .form-row-2 { grid-template-columns: 1fr; }
  .form-row-3 { grid-template-columns: 1fr; }
  .modal-inner { padding: 24px 20px; }
}
@media (max-width: 700px) {
  .form-row-3 { grid-template-columns: 1fr 1fr; }
}
