/* ============================================================
   ADDHOME — Real Estate
   Black / White / Gold. No rounded corners. Mobile-first.
   ============================================================ */

:root {
  --black: #0b0b0b;
  --ink: #141414;
  --gray-900: #1d1d1d;
  --gray-700: #4a4a4a;
  --gray-500: #8a8a8a;
  --gray-300: #d6d6d6;
  --gray-100: #f4f4f4;
  --white: #ffffff;
  --gold: #c9a24a;
  --gold-soft: #e0c07a;
  --gold-dark: #a47f2e;
  --shadow: 0 1px 0 rgba(0,0,0,.06), 0 12px 30px rgba(0,0,0,.06);
  --max: 1280px;

  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--black);
  margin: 0 0 .5em;
  line-height: 1.15;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: var(--black); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--gold-dark); }

img { max-width: 100%; display: block; }

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

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 12px;
}

.divider-gold {
  width: 44px;
  height: 2px;
  background: var(--gold);
  margin: 14px 0 22px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--white);
  cursor: pointer;
  transition: all .2s ease;
  border-radius: 4px;
}
.btn:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }
.btn--ghost { background: transparent; color: var(--black); }
.btn--ghost:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--black); }
.btn--gold:hover { background: var(--black); color: var(--gold); border-color: var(--black); }
.btn--light { background: var(--white); color: var(--black); border-color: var(--white); }
.btn--light:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }
.btn--sm { padding: 10px 18px; font-size: 11px; }
.btn--block { width: 100%; }

/* ---------- Forms ---------- */
label {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-700);
  font-weight: 600;
  margin-bottom: 6px;
}
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  transition: border-color .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
}
textarea { resize: vertical; min-height: 120px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (min-width: 720px) {
  .form-row.cols-2 { grid-template-columns: 1fr 1fr; }
  .form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
  .form-row.cols-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .form-row.cols-4-actions { grid-template-columns: repeat(4, 1fr) auto; align-items: end; }
}
.filter-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-actions .btn { padding: 9px 14px; font-size: 11px; min-width: 0; }
@media (max-width: 719px) {
  .filter-actions .btn { flex: 1; min-width: 140px; }
}

/* Compact scoped to filter panel — keep other forms (admin, contact) unchanged */
/* Use .card.filter-panel for specificity over base .card border */
.card.filter-panel {
  padding: 16px 18px;
  border: 0;
  border-radius: 8px;
  transition: box-shadow .2s ease;
}
.filter-panel label { margin-bottom: 4px; font-size: 10px; }
.filter-panel input,
.filter-panel select { padding: 8px 12px; font-size: 14px; }
.filter-panel .form-row { gap: 12px; margin-bottom: 10px; }
.filter-panel .form-row:last-of-type { margin-bottom: 0; }
/* Drop shadow only when filter is visibly stuck (header hidden + scrolled past fold) */
body.past-fold.header-hidden .card.filter-panel {
  box-shadow: 0 8px 24px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
}

/* Sort bar above results */
.sort-bar { display: flex; align-items: center; gap: 10px; }
.sort-bar label { margin: 0; font-size: 10px; color: var(--gray-700); white-space: nowrap; }
.sort-bar select { padding: 7px 10px; font-size: 13px; min-width: 200px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-300);
  transition: transform .28s ease, opacity .22s ease;
  will-change: transform;
}
.site-header.is-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 20px;
  max-width: var(--max);
  margin: 0 auto;
}
.brand img { height: 38px; width: auto; }
.nav {
  display: none;
  align-items: center;
  gap: 28px;
}
.nav a {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.nav a.active, .nav a:hover { color: var(--black); }
.nav a.active::after, .nav a:hover::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--gold);
}
.nav-cta { display: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: var(--black);
  color: var(--white);
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: var(--white);
  position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0; width: 20px; height: 2px; background: var(--white);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top:  6px; }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--gray-300);
  background: var(--white);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 16px 20px;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--gray-100);
}
.mobile-nav a.cta {
  background: var(--black); color: var(--white);
}

@media (min-width: 960px) {
  .nav { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(120deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.45) 60%, rgba(0,0,0,.75) 100%),
    image-set(
      url('/images/hero-bg.webp') type('image/webp'),
      url('/images/hero-bg.jpg') type('image/jpeg')
    ) center/cover no-repeat;
  background:
    linear-gradient(120deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.45) 60%, rgba(0,0,0,.75) 100%),
    url('/images/hero-bg.jpg') center/cover no-repeat;
  filter: saturate(.9) contrast(1.05);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 90px 20px;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}
.hero h1 { color: var(--white); max-width: 820px; }
.hero h1 .gold { color: var(--gold); font-style: italic; }
.hero p.lead {
  max-width: 640px;
  color: rgba(255,255,255,.85);
  font-size: 1.1rem;
  margin-bottom: 28px;
}
.hero .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Search strip ---------- */
.search-strip {
  background: var(--white);
  border: 1px solid var(--gray-300);
  padding: 20px;
  margin-top: -40px;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow);
}
.search-strip form {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 780px) {
  .search-strip form { grid-template-columns: 1.2fr 1fr 1fr 1fr auto; align-items: end; }
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section--dark { background: var(--black); color: var(--white); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.section--gray { background: var(--gray-100); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .divider-gold { margin: 12px auto 0; }

/* ---------- Property grid ---------- */
.prop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 640px) { .prop-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .prop-grid { grid-template-columns: 1fr 1fr 1fr; } }

.prop-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  display: flex; flex-direction: column;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.prop-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow); }
.prop-card a { color: inherit; display: flex; flex-direction: column; height: 100%; }

.prop-cover {
  aspect-ratio: 4/3;
  background: var(--gray-100);
  position: relative;
  overflow: hidden;
}
.prop-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.prop-card:hover .prop-cover img { transform: scale(1.04); }
.prop-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--black); color: var(--white);
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  padding: 6px 12px; font-weight: 600;
}
.prop-badge--gold { background: var(--gold); color: var(--black); }

.prop-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.prop-location {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gray-500); margin-bottom: 8px;
}
.prop-title { font-family: var(--serif); font-size: 1.35rem; margin: 0 0 10px; color: var(--black); }
.prop-meta {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-size: 13px; color: var(--gray-700);
  margin: 10px 0 18px; padding: 10px 0; border-top: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100);
}
.prop-meta span { display: inline-flex; align-items: center; gap: 6px; }
.prop-price {
  margin-top: auto;
  font-family: var(--serif);
  font-size: 1.55rem;
  color: var(--black);
  font-weight: 600;
}
.prop-price .currency { color: var(--gold-dark); font-size: 1.1rem; }

/* ---------- Property detail ---------- */
.detail-wrap { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .detail-wrap { grid-template-columns: 2fr 1fr; } }
.gallery-main {
  aspect-ratio: 16/10; background: var(--gray-100); overflow: hidden; position: relative;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; }
.gallery-thumbs button { padding: 0; border: 2px solid transparent; background: none; cursor: pointer; aspect-ratio: 4/3; overflow: hidden; }
.gallery-thumbs button.active { border-color: var(--gold); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.detail-side {
  background: var(--black); color: var(--white);
  padding: 28px;
  position: sticky; top: 100px; align-self: start;
}
.detail-side h3, .detail-side h2 { color: var(--white); }
.detail-price { font-family: var(--serif); font-size: 2.2rem; margin: 0 0 4px; color: var(--gold); }
.detail-facts { list-style: none; padding: 0; margin: 20px 0; border-top: 1px solid rgba(255,255,255,.12); }
.detail-facts li {
  display: flex; justify-content: space-between; padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  font-size: 14px;
}
.detail-facts li span:first-child { color: rgba(255,255,255,.6); letter-spacing: 1px; text-transform: uppercase; font-size: 11px; }

/* ---------- Features ---------- */
.features {
  display: grid; gap: 28px; grid-template-columns: 1fr;
}
@media (min-width: 720px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature {
  padding: 28px 20px;
  background: transparent;
}
.feature-num {
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--gold);
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}
.feature h3 { font-size: 1.15rem; margin: 0 0 8px; }
.feature p { color: var(--gray-700); font-size: 14px; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--black);
  color: var(--white);
  padding: 64px 20px;
  text-align: center;
  background-image:
    linear-gradient(rgba(11,11,11,.85), rgba(11,11,11,.85)),
    url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?q=80&w=2071&auto=format&fit=crop');
  background-size: cover; background-position: center;
}
.cta-band h2 { color: var(--white); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,.7);
  padding: 56px 20px 24px;
}
.footer-grid {
  display: grid; gap: 36px;
  grid-template-columns: 1fr;
  max-width: var(--max); margin: 0 auto;
}
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h4 {
  color: var(--white);
  font-family: var(--sans);
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  margin: 0 0 16px;
}
.site-footer a { color: rgba(255,255,255,.7); display: block; padding: 4px 0; font-size: 14px; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom {
  max-width: var(--max); margin: 40px auto 0; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12px; color: rgba(255,255,255,.5);
}

/* ---------- Auth ---------- */
.auth-wrap {
  min-height: 100vh;
  display: grid; place-items: center;
  background: var(--black);
  padding: 40px 20px;
}
.auth-card {
  background: var(--white); padding: 40px; width: 100%; max-width: 420px;
  border-top: 4px solid var(--gold);
}
.auth-card h1 { font-size: 1.6rem; margin-bottom: 6px; }
.auth-card p { color: var(--gray-500); font-size: 14px; margin-bottom: 28px; }

/* ---------- Admin ---------- */
.admin-shell { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
@media (min-width: 960px) { .admin-shell { grid-template-columns: 260px 1fr; } }
.admin-sidebar {
  background: var(--black); color: rgba(255,255,255,.8);
  padding: 24px;
}
.admin-sidebar .brand img { height: 40px; filter: none; }
.admin-nav { margin-top: 28px; display: flex; flex-direction: column; gap: 2px; }
.admin-nav a {
  color: rgba(255,255,255,.75); padding: 12px 14px;
  font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase;
  border-left: 3px solid transparent;
}
.admin-nav a:hover { background: rgba(255,255,255,.05); color: var(--white); }
.admin-nav a.active { border-left-color: var(--gold); background: rgba(255,255,255,.05); color: var(--white); }
.admin-main { padding: 28px 20px; background: var(--gray-100); }
@media (min-width: 960px) { .admin-main { padding: 36px 40px; } }

.admin-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-bottom: 24px;
}
.admin-head h1 { font-size: 1.6rem; margin: 0; }

.card {
  background: var(--white); border: 1px solid var(--gray-300);
  padding: 24px;
  border-radius: 0;
}

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--gray-100); }
th { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gray-500); font-weight: 600; }
tr:hover td { background: var(--gray-100); }

.thumb { width: 72px; height: 54px; object-fit: cover; }
.chip {
  display: inline-block; padding: 3px 10px; font-size: 10px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
}
.chip--black { background: var(--black); color: var(--white); }
.chip--gold  { background: var(--gold); color: var(--black); }
.chip--gray  { background: var(--gray-100); color: var(--gray-700); }

.image-preview-grid {
  display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  margin-top: 10px;
}
.image-preview {
  display: flex; flex-direction: column;
  border: 1px solid var(--gray-300);
  background: var(--white);
  overflow: hidden;
}
.image-preview__thumb {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--gray-100);
}
.image-preview__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.image-preview__badge {
  position: absolute; top: 6px; left: 6px;
  background: var(--gold); color: var(--ink, #0a0a0a);
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  padding: 4px 8px; text-transform: uppercase;
}
.image-preview__actions {
  display: flex; gap: 1px; background: var(--gray-300);
  border-top: 1px solid var(--gray-300);
}
.image-preview__actions button {
  flex: 1; padding: 8px 6px; border: 0;
  background: var(--white); color: var(--ink, #0a0a0a);
  font-size: 11px; font-weight: 600; letter-spacing: 0.3px;
  text-transform: uppercase; cursor: pointer;
  transition: background .15s ease, color .15s ease;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
}
.image-preview__actions button:hover:not(:disabled) {
  background: var(--ink, #0a0a0a); color: var(--white);
}
.image-preview__actions button:disabled {
  opacity: 0.4; cursor: not-allowed;
}
.image-preview__actions .btn-cover.is-active {
  background: var(--gold); color: var(--ink, #0a0a0a);
}
.image-preview__actions .btn-cover.is-active:hover { background: var(--gold); color: var(--ink); cursor: default; }
.image-preview__actions .btn-del:hover:not(:disabled) {
  background: #b91c1c; color: var(--white);
}

/* ---------- Toasts / alerts ---------- */
.alert {
  padding: 12px 14px; font-size: 14px; border-left: 3px solid var(--gold); background: var(--gray-100); margin-bottom: 16px;
}
.alert--error { border-left-color: #c0392b; background: #fdecea; color: #922; }
.alert--ok { border-left-color: #2a7f44; background: #e8f6ec; color: #1f5f32; }

/* ---------- Empty states ---------- */
.empty {
  padding: 60px 20px; text-align: center; border: 1px dashed var(--gray-300); background: var(--white);
  color: var(--gray-500);
}

/* ---------- Utilities ---------- */
.muted { color: var(--gray-500); }
.center { text-align: center; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }

/* ---------- Footer social ---------- */
.footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-social a {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.7);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,162,74,.08);
}
.footer-social svg { width: 18px; height: 18px; fill: currentColor; display: block; }

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 58px; height: 58px;
  background: #25D366;
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.35), 0 2px 6px rgba(0,0,0,.2);
  transition: transform .2s ease, box-shadow .2s ease;
  border: 0;
  border-radius: 50%;
}
.wa-float:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37,211,102,.45), 0 4px 8px rgba(0,0,0,.25);
}
.wa-float svg { width: 30px; height: 30px; fill: currentColor; display: block; }
@media (min-width: 960px) {
  .wa-float { right: 28px; bottom: 28px; width: 64px; height: 64px; }
  .wa-float svg { width: 34px; height: 34px; }
}

/* ---------- Print / perf ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}


/* ---------- FAQ akordeoni ---------- */
.faq-item {
  border-bottom: 1px solid var(--gray-300, #e5e5e5);
  padding: 18px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink, #0a0a0a);
  list-style: none;
  position: relative;
  padding-right: 32px;
  transition: color .2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--gold);
  font-weight: 300;
  transition: transform .25s ease;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { color: var(--gold); }
.faq-item p {
  margin: 14px 0 4px;
  color: var(--gray-700, #525252);
  line-height: 1.65;
}


/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9998;
  background: var(--ink, #0a0a0a);
  color: #fff;
  border: 1px solid rgba(201, 162, 39, .3);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  max-width: 620px;
  margin: 0 auto;
  animation: cookieIn .35s ease-out;
}
@keyframes cookieIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-banner__inner {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-banner p {
  margin: 0;
  flex: 1;
  min-width: 220px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,.82);
}
.cookie-banner a { color: var(--gold); text-decoration: underline; }
.cookie-banner__btns { display: flex; gap: 8px; }
.cookie-banner .btn--ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.cookie-banner .btn--ghost:hover { background: rgba(255,255,255,.08); }
@media (max-width: 500px) {
  .cookie-banner { bottom: 92px; } /* iznad WA floating dugmeta */
  .cookie-banner__inner { flex-direction: column; align-items: stretch; }
  .cookie-banner__btns { justify-content: flex-end; }
}

/* ---------- Legal docs (privatnost / uslovi) ---------- */
.legal-doc h2 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 10px;
  color: var(--ink, #0a0a0a);
}
.legal-doc h2:first-of-type { margin-top: 0; }
.legal-doc p, .legal-doc li {
  color: var(--gray-700, #525252);
  line-height: 1.7;
  font-size: 1rem;
}
.legal-doc ul { padding-left: 22px; margin: 10px 0 14px; }
.legal-doc li { margin-bottom: 6px; }
.legal-doc strong { color: var(--ink, #0a0a0a); }
.legal-doc a { color: var(--gold); text-decoration: underline; }

/* ---------- Mobile sticky contact bar — property detail ---------- */
.mobile-contact-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9997;
  background: var(--ink, #0a0a0a);
  padding: 10px 14px;
  gap: 8px;
  border-top: 1px solid rgba(201, 162, 39, .2);
  box-shadow: 0 -6px 20px rgba(0,0,0,.2);
}
.mobile-contact-bar a {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.mobile-contact-bar .mcb-call { background: var(--gold); color: #0a0a0a; }
.mobile-contact-bar .mcb-wa { background: #25D366; color: #fff; }
.mobile-contact-bar svg { width: 16px; height: 16px; fill: currentColor; }
@media (max-width: 820px) {
  body.has-mobile-bar { padding-bottom: 72px; }
  body.has-mobile-bar .wa-float { display: none; } /* sticky bar već ima WA */
  body.has-mobile-bar .mobile-contact-bar { display: flex; }
}


/* ---------- Print stilovi (klijent hoće da odštampa nekretninu) ---------- */
@media print {
  .site-header, .site-footer, .cookie-banner, .wa-float, .mobile-contact-bar,
  .nav-cta, .nav-toggle, .mobile-nav, #inquiry-form, #similar-section,
  .detail-side form, .detail-side h3, button { display: none !important; }

  body { background: #fff !important; color: #000 !important; }
  .container { max-width: 100% !important; padding: 0 !important; }
  .section { padding: 0 !important; }

  .detail-wrap { grid-template-columns: 1fr !important; gap: 16px !important; }
  .detail-side {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #ccc;
    padding: 12px !important;
  }
  .detail-side * { color: #000 !important; }
  .detail-price { font-size: 1.8rem !important; }
  .detail-facts li { border-color: #ccc !important; }

  .gallery-main img { max-height: 400px; object-fit: cover; }
  .gallery-thumbs { display: none !important; }

  h1 { font-size: 1.6rem !important; color: #000 !important; }
  h2 { font-size: 1.2rem !important; color: #000 !important; }
  a { color: #000 !important; text-decoration: none !important; }
  a[href^="http"]::after, a[href^="mailto"]::after, a[href^="tel"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }

  .divider-gold { background: #c9a227 !important; }

  /* Footer info u print-u — manually dodat */
  .card:last-child::after {
    content: "Addhome · +381 66 490-490 · addhome.rs · Mihaila Bulgakova 6a/14, Beograd";
    display: block;
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px solid #ccc;
    font-size: 0.85em;
    color: #666;
  }
}


/* ---------- Trust bar (homepage) ---------- */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0 20px;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--gray-200, #eee);
  border-radius: 0;
  box-shadow: 0 10px 30px rgba(10,10,10,.04);
}
.trust-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.trust-item svg {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px;
  max-width: 36px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
  display: block;
}
.trust-item svg * { stroke: currentColor; }
.trust-item svg [fill="currentColor"] { fill: currentColor; }
.trust-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink, #0a0a0a);
  margin-bottom: 2px;
  line-height: 1.3;
}
.trust-item span {
  display: block;
  font-size: 0.82rem;
  color: var(--gray-700, #525252);
  line-height: 1.45;
}
@media (max-width: 900px) {
  .trust-bar { grid-template-columns: repeat(2, 1fr); padding: 24px 20px; gap: 24px; }
}
@media (max-width: 560px) {
  .trust-bar { grid-template-columns: 1fr; padding: 20px 18px; gap: 18px; }
}


/* ---------- Feature ikonice u cards ---------- */
.feature {
  position: relative;
}
.feature-icon {
  display: block;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px;
  max-width: 44px;
  color: var(--gold);
  margin-bottom: 10px;
}
.feature-icon * {
  stroke: currentColor;
  vector-effect: non-scaling-stroke;
}
.feature-icon [fill="currentColor"] {
  fill: currentColor;
}
/* Sakrivamo broj kad ikonica postoji — ikonica je dovoljna */
.feature:has(.feature-icon) .feature-num {
  display: none;
}
/* H3 odmah posle ikonice — bez praznog prostora */
.feature .feature-icon + h3,
.feature .feature-icon + .feature-num + h3 {
  margin-top: 0;
}


/* ---------- Collapsible filter (mobile) ---------- */
.filter-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  margin-bottom: 12px;
  background: var(--ink, #0a0a0a);
  color: #fff;
  border: 1px solid var(--ink, #0a0a0a);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background .2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.filter-toggle:hover { background: #1a1a1a; }
.filter-toggle__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.filter-toggle__label svg { color: var(--gold); }
.filter-toggle__count {
  display: none;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 11px;
  background: var(--gold);
  color: var(--ink, #0a0a0a);
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  margin-left: auto;
}
.filter-toggle__chevron {
  transition: transform .25s ease;
  opacity: 0.8;
}
.filter-toggle.is-open .filter-toggle__chevron {
  transform: rotate(180deg);
}

/* Mobile filter — DRAWER pattern: sticky toggle + fullscreen overlay panel */
@media (max-width: 820px) {
  .filter-toggle {
    display: flex;
    position: sticky;
    top: 85px;
    z-index: 50;
    margin-top: 0;
    box-shadow: 0 8px 24px rgba(10, 10, 10, 0.18);
  }
  /* Filter panel se ponaša kao off-canvas drawer — slide-in sa desna */
  .filter-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: none !important;
    height: 100vh;
    height: 100dvh;
    margin: 0 !important;
    padding: 64px 16px 90px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--white, #fff);
    z-index: 9999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    opacity: 1;
    visibility: hidden;
    transition: transform .3s ease, visibility 0s linear .3s;
  }
  .filter-panel.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform .3s ease, visibility 0s linear 0s;
  }
  /* Backdrop iza drawer-a */
  .filter-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility 0s linear .25s;
  }
  .filter-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity .25s ease, visibility 0s linear 0s;
  }
  /* Close X dugme u gornjem desnom uglu drawer-a */
  .filter-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    border: 0;
    background: var(--ink, #0a0a0a);
    color: #fff;
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .filter-close:active { background: #1a1a1a; }
  /* Lock body scroll dok je drawer otvoren */
  body.filter-drawer-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }
  /* Kad je header sakriven na scroll-down, filter-toggle se pomera na vrh */
  body.header-hidden .filter-toggle {
    top: 8px;
    transition: top .28s ease;
  }
}

/* Desktop: panel uvek otvoren, bez dugmeta — sticky na vrhu kad se skroluje */
@media (min-width: 821px) {
  .filter-toggle { display: none !important; }
  .filter-panel {
    max-height: none !important;
    opacity: 1 !important;
    overflow: visible !important;
    position: sticky;
    top: 85px;
    z-index: 50;
    background: var(--white, #fff);
    transition: top .28s ease;
  }
  body.header-hidden .filter-panel {
    top: 8px;
  }
  /* Hide filter when scrolling up past initial fold (header is back, give vertical room) */
  body.past-fold:not(.header-hidden) .filter-panel {
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .2s ease;
  }
}


/* ---------- Kontakt stranica — 2-kolonski layout ---------- */
.contact-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}
.contact-card--form {
  padding: 36px 32px;
}
.contact-card--form textarea {
  resize: vertical;
  min-height: 140px;
}

/* Desna kolona */
.contact-card--info {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 0;
  overflow: hidden;
  position: sticky;
  top: 24px;
}
.contact-block {
  padding: 32px;
  background: var(--ink, #0a0a0a);
  color: #fff;
}
.contact-block h3 { color: #fff; }
.contact-block .divider-gold { margin-left: 0; }

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 20px;
}
.contact-method {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 12px;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  transition: background .2s ease, transform .15s ease;
}
.contact-method:hover {
  background: rgba(255,255,255,0.06);
  transform: translateX(2px);
}
.contact-method svg {
  color: var(--gold);
  flex-shrink: 0;
}
.contact-method strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}
.contact-method span {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.2px;
}
.contact-method--wa svg { color: #25D366; }
.contact-method--wa:hover { background: rgba(37, 211, 102, 0.08); }

/* Meta blok (adresa, vreme, social) */
.contact-block--meta {
  background: var(--gray-100, #f5f5f5);
  color: var(--ink, #0a0a0a);
}
.contact-block--meta h3 { color: var(--ink, #0a0a0a); }
.contact-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200, #eee);
}
.contact-meta-row:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-meta-row:first-child { padding-top: 0; }
.contact-meta-row svg {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 3px;
}
.contact-meta-row strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-700, #525252);
  margin-bottom: 4px;
}
.contact-meta-row span {
  display: block;
  font-size: 14px;
  color: var(--ink, #0a0a0a);
  line-height: 1.5;
}
.contact-meta-row a {
  color: var(--ink, #0a0a0a);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 2px;
}

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; gap: 20px; }
  .contact-card--info { position: static; }
  .contact-card--form { padding: 24px 20px; }
  .contact-block { padding: 24px 20px; }
}


/* ---------- Admin link u headeru (prikazuje se samo kad je admin ulogovan) ---------- */
.nav-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--gold);
  color: var(--gold) !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
  margin-left: 8px;
}
.nav-admin-link::before {
  content: "●";
  font-size: 8px;
  color: var(--gold);
  line-height: 1;
}
.nav-admin-link:hover {
  background: var(--gold);
  color: var(--ink, #0a0a0a) !important;
}
.nav-admin-link:hover::before {
  color: var(--ink, #0a0a0a);
}

/* Mobile nav verzija */
.mobile-nav .nav-admin-link {
  margin: 12px 0 0;
  padding: 10px 14px;
  justify-content: center;
  text-align: center;
}

/* ---------- Photo band (Beograd panorama između sekcija) ---------- */
.photo-band {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;
  background: #0a0a0a;
}
.photo-band picture,
.photo-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  z-index: 1;
}
.photo-band__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0,0,0,0.30), rgba(0,0,0,0.50));
}
.photo-band__eyebrow {
  color: var(--gold);
  font-size: 0.875rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0 20px;
  text-align: center;
}
@media (max-width: 720px) {
  .photo-band { height: 220px; }
  .photo-band__eyebrow { font-size: 0.8rem; letter-spacing: 0.22em; }
}
