/*
 * Hvar Real Estate - prilagodbe predloška
 * Poslovan, minimalistički izgled. Boje se mijenjaju u :root.
 */

:root {
  /* boje Hvar Real Estate */
  --hvar-green: #5f6b3a;      /* maslinasto zelena (linije, gumbi, naglasci) */
  --hvar-green-dark: #4b552d; /* hover */
  --hvar-ink: #2f2f2f;        /* antracit (footer, tamni gumbi) */
  --hvar-text: #3a3a3a;       /* tekst */
  --hvar-stone: #f7f7f7;      /* svijetla podloga */
  --hvar-gold: #fbcc59;       /* zlatna iz grba, samo sitni detalji */
  --hvar-line: #e5e5e5;
  --hvar-muted: #777777;
  /* stari nazivi varijabli zadržani radi postojećih pravila */
  --hvar-accent: var(--hvar-green);
  --hvar-accent-dark: var(--hvar-green-dark);
}

h1, h2, h3, .title-text-main, .pagetitle, .pagetitle3, .title-text, .card-title, .villa-name, .landing-title {
  font-family: Georgia, "Times New Roman", serif;
}

body {
  color: var(--hvar-text);
  background: #fff;
}

a { color: var(--hvar-ink); }
a:hover { color: var(--hvar-accent-dark); }

/* ---------- navigacija ---------- */
.navbar { background: rgba(255, 255, 255, 0.97); border-bottom: 3px solid var(--hvar-green); }
.navbar .nav-link { font-size: 0.95em; letter-spacing: 0.08em; color: var(--hvar-ink); }
.navbar .nav-link:hover { color: var(--hvar-accent-dark); }
.navbar-brand.hh-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; margin-right: 1.5em; padding: 0; font-size: 1rem; }
.navbar-brand.hh-brand img { height: 3.4em; width: auto; position: static !important; left: auto !important; top: auto !important; }
@media (min-width: 992px) { .navbar .container-fluid { align-items: center; } }
.hh-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.hh-brand-name { font-family: Georgia, "Times New Roman", serif; font-size: 1.6em; color: var(--hvar-ink); letter-spacing: 0.01em; text-transform: none; }
.hh-brand-sub { font-size: 0.68em; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hvar-green); margin-top: 0.35em; }
.navbar .dropdown-menu { border-top: 2px solid var(--hvar-green); }
.dropdown-menu { border-radius: 0; border-color: var(--hvar-line); }
.dropdown-item { font-size: 0.95em; text-transform: none; letter-spacing: 0; }
.dropdown-item:hover { background: var(--hvar-stone); }
/* izbor jezika: HR | EN kao gumbi */
.lang-item { margin: 0; font-size: 0.8em; display: flex; align-items: center; }
.lang-item:not(:last-child)::after { content: none; }
.lang-item + .lang-item .nav-link { border-left: 0; }
.lang-item .nav-link { padding: 0.35em 0.75em !important; border: 1px solid var(--hvar-green); color: var(--hvar-green) !important; font-weight: 600; letter-spacing: 0.08em; line-height: 1.2; transition: background 0.2s, color 0.2s; }
.lang-item:first-of-type .nav-link { margin-left: 1.2em; }
.lang-item .nav-link:hover { background: var(--hvar-stone); }
.lang-item.active .nav-link { background: var(--hvar-green); color: #fff !important; }

.page-top-spacer { height: 90px; }

/* ---------- naslovi i kartice ---------- */
.naslovsivi { background: var(--hvar-stone); }
.title-text-main, .pagetitle, .pagetitle3, .title-text {
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--hvar-ink);
}
h1.title-text-main, h1.title-text { font-size: 2.1em; margin: 0; text-align: center; }

.card { border-radius: 0; border-color: var(--hvar-line); transition: box-shadow 0.2s ease; }
.card:hover { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); }
.card { border-top: 3px solid transparent; }
.card:hover { border-top-color: var(--hvar-green); }
.card a { color: inherit; text-decoration: none; }
.card-title { font-weight: 500; }
.realestateprice { color: var(--hvar-accent-dark); font-weight: 600; }
.card-text-date { color: var(--hvar-muted); font-size: 0.85em; margin-bottom: 0.4em; }

.home-all-link {
  display: inline-block;
  margin: 1.5em 0 0.5em;
  padding: 0.7em 2em;
  border: 1px solid var(--hvar-ink);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85em;
  text-decoration: none;
}
.home-all-link:hover { background: var(--hvar-ink); color: #fff; }
.home-blog { padding-bottom: 3em; }

/* ---------- gumbi i forme ---------- */
.btn-primary-con, .search-btn, #openSearchBtn {
  background: var(--hvar-green);
  color: #fff;
  border: 0;
  border-radius: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.btn-primary-con:hover, .search-btn:hover, #openSearchBtn:hover { background: var(--hvar-green-dark); color: #fff; }

.form-message { padding: 0.9em 1.2em; margin-bottom: 1.2em; border-left: 3px solid; }
.form-message-ok { background: #eef5ee; border-color: #3f7d4a; }
.form-message-error { background: #fbeeee; border-color: #a33a3a; }

.form-consent { display: flex; align-items: flex-start; gap: 0.6em; }
.form-consent input { margin-top: 0.3em; }

/* ---------- portali ---------- */
.portals-strip { background: var(--hvar-stone); padding: 2.2em 0; border-top: 1px solid var(--hvar-line); }
.portals-label { color: var(--hvar-muted); font-size: 0.85em; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1em; }
.portals-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.8em; }
.portal-link {
  display: inline-block;
  padding: 0.55em 1.4em;
  border: 1px solid var(--hvar-line);
  background: #fff;
  font-size: 0.9em;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.portal-link:hover { border-color: var(--hvar-accent); color: var(--hvar-accent-dark); }

/* ---------- SEO tekst iza "Pročitaj više" ---------- */
.seo-accordion-wrap { padding: 1.5em 0; border-top: 1px solid var(--hvar-line); }
.seo-accordion summary {
  cursor: pointer;
  list-style: none;
  color: var(--hvar-muted);
  font-size: 0.9em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.seo-accordion summary::-webkit-details-marker { display: none; }
.seo-accordion-more { font-size: 0.85em; text-transform: uppercase; letter-spacing: 0.08em; color: var(--hvar-accent-dark); }
.seo-accordion[open] .seo-accordion-more { visibility: hidden; }
.seo-accordion-body { padding-top: 1em; font-size: 0.9em; color: var(--hvar-muted); columns: 2 320px; column-gap: 3em; }

/* ---------- footer ---------- */
footer { background: var(--hvar-ink); background-image: none; padding: 3.5em 0 2.5em; }
footer h6 { font-weight: 400; line-height: 1.7; }
footer a.whitetext, footer .whitetext { color: #fff; text-decoration: none; }
footer a.whitetext:hover { color: var(--hvar-gold); }
.footer-brand { text-align: center; margin-bottom: 2.5em; }
.footer-brand img, .primefooter img { height: 3.6em; width: auto; }
.copyright { background: #222222; }
.copyright #open_preferences_center { color: #fff; }

/* ---------- landing (pravna služba) ---------- */
.landing-hero {
  background: var(--hvar-green);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 9em 0 6em;
  position: relative;
}
.landing-hero.has-image::before { content: ""; position: absolute; inset: 0; background: rgba(47, 47, 47, 0.6); }
.landing-hero-inner { position: relative; text-align: center; max-width: 820px; }
.landing-overline { text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.85em; color: var(--hvar-gold); margin-bottom: 0.8em; }
.landing-title { font-size: 2.6em; font-weight: 500; color: #fff; }
.landing-cta {
  display: inline-block;
  margin-top: 1.5em;
  padding: 0.8em 2.2em;
  border: 1px solid #fff;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85em;
  text-decoration: none;
}
.landing-cta:hover { background: #fff; color: var(--hvar-ink); }
.legal-content { padding: 4em 0; }
.legal-content .container { max-width: 900px; }
.landing-form-title { text-align: center; font-size: 1.6em; font-weight: 500; margin-bottom: 1.2em; }

/* ---------- Apartments Villa Hraste ---------- */
.page-villa .page-top-spacer { height: 76px; }
.villa-row { min-height: calc(100vh - 76px); }
.villa-media { position: relative; min-height: 320px; }
.villa-media img, .villa-media-placeholder {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.villa-media-placeholder { background: var(--hvar-stone); }
.villa-panel { background: #fff; display: flex; align-items: center; }
.villa-panel-inner { padding: 3em 3.5em; max-width: 620px; width: 100%; }
.villa-stars { color: var(--hvar-gold); letter-spacing: 0.15em; font-size: 1.1em; }
.villa-name { font-size: 2em; font-weight: 500; margin: 0.2em 0 0.3em; }
.villa-rating { color: var(--hvar-muted); margin-bottom: 1em; }
.villa-rating strong { color: var(--hvar-ink); font-size: 1.15em; margin-right: 0.3em; }
.villa-text { color: var(--hvar-muted); margin-bottom: 1.2em; }
.villa-benefits { list-style: none; padding: 0; margin: 0 0 1.6em; display: flex; flex-wrap: wrap; gap: 0.5em 1.6em; font-weight: 600; letter-spacing: 0.02em; }
.villa-form { border-top: 1px solid var(--hvar-line); padding-top: 1.4em; }
.villa-field { display: block; margin-bottom: 0.9em; }
.villa-field span { display: block; font-size: 0.8em; text-transform: uppercase; letter-spacing: 0.08em; color: var(--hvar-muted); margin-bottom: 0.3em; }
.villa-field input, .villa-field select, .villa-field textarea {
  width: 100%;
  border: 1px solid var(--hvar-line);
  border-radius: 0;
  padding: 0.65em 0.8em;
  background: #fff;
  font: inherit;
}
.villa-field input:focus, .villa-field select:focus, .villa-field textarea:focus { outline: none; border-color: var(--hvar-accent); }
.villa-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1em; }
.villa-submit {
  width: 100%;
  border: 0;
  background: var(--hvar-green);
  color: #fff;
  padding: 1em;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-top: 0.4em;
}
.villa-submit:hover { background: var(--hvar-green-dark); }
.villa-note { font-size: 0.78em; color: var(--hvar-muted); text-align: center; margin: 0.7em 0 0; }
.villa-links { margin-top: 1.6em; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5em 1em; font-size: 0.85em; }
.villa-links-label { color: var(--hvar-muted); }
.villa-link { text-decoration: none; border-bottom: 1px solid var(--hvar-line); }
.villa-link:hover { border-color: var(--hvar-accent); }

@media (max-width: 991px) {
  .villa-row { min-height: 0; }
  .villa-media { min-height: 280px; }
  .villa-panel-inner { padding: 2em 1.3em; }
  .seo-accordion-body { columns: 1; }
  .landing-hero { padding: 7em 0 4em; }
  .landing-title { font-size: 2em; }
}
@media (max-width: 575px) {
  .villa-field-row { grid-template-columns: 1fr; }
}

/* ---------- novosti ---------- */
.news-pagination { margin-top: 2em; }
.news-pagination a { display: inline-block; min-width: 2.4em; padding: 0.4em 0.6em; margin: 0 0.15em; border: 1px solid var(--hvar-line); text-decoration: none; }
.news-pagination a.active { background: var(--hvar-green); border-color: var(--hvar-green); color: #fff; }

/* =====================================================================
   NASLOVNA I KARTICE NEKRETNINA (korak 2)
   ===================================================================== */

/* slider */
#carouselSlides .carousel-item { height: 78vh; min-height: 460px; position: relative; }
#carouselSlides .carousel-item::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 45%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0));
  pointer-events: none;
}
#carouselSlides .carousel-control-prev,
#carouselSlides .carousel-control-next { width: 6%; opacity: 0.7; }

/* gumb za pretragu preko slidera */
#openSearchBtn {
  top: -5.5em;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  padding: 16px 42px;
  gap: 18px;
  font-size: 16px;
  letter-spacing: 0.12em;
  border-radius: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* naslov sekcije "Izdvojene nekretnine" */
.naslovsivi, .naslovsivi.bg-gray {
  background: #fff !important;
  margin-top: 0 !important;
  margin-bottom: 1.5em !important;
  padding-top: 1.5em !important;
}
.pagetitle, .pagetitle3 {
  font-weight: normal;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--hvar-ink);
  position: relative;
  padding-bottom: 0.6em;
}
.pagetitle::after, .pagetitle3::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--hvar-green);
  margin: 0.5em auto 0;
}

/* mreža kartica */
.bg-white > .row,
.home-blog > .row { max-width: 1320px; margin-left: auto; margin-right: auto; }
.singlerealestate { margin: 0 0 2.2em 0; }

/* kartica */
.singlerealestate .card {
  box-shadow: none;
  border: 1px solid var(--hvar-line);
  border-top: 3px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
.singlerealestate .card:hover {
  transform: none;
  border-top-color: var(--hvar-green);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.10);
}
.singlerealestate .card img.img-responsive {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.singlerealestate .card:hover img.img-responsive { transform: scale(1.03); }
.singlerealestate .card-body {
  display: flex;
  flex-direction: column;
  padding: 1.1em 1.2em 0;
  background: #fff;
  position: relative;
}
.singlerealestate .card-title {
  padding: 0;
  height: auto;
  min-height: 2.6em;
  font-size: 1.15em;
  line-height: 1.3;
  color: var(--hvar-ink);
  margin-bottom: 0.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.singlerealestate .card-id {
  padding-left: 0 !important;
  font-size: 0.85em;
  font-weight: normal;
  color: var(--hvar-muted);
  margin-bottom: 0.35em;
}
.singlerealestate .realestateprice {
  margin: 0.8em -1.2em 0;
  width: auto;
  padding: 0.8em 1.2em;
  background: var(--hvar-stone);
  border-top: 1px solid var(--hvar-line);
  color: var(--hvar-green);
  font-weight: 600;
  font-size: 1.15em;
  text-align: left;
}

/* blok "kontaktirajte nas" na naslovnoj */
.introhomecontainer { background: var(--hvar-stone) !important; }
.contactushome { background-image: none; border-top: 1px solid var(--hvar-line); }
.introhomecontainer a {
  width: auto;
  display: inline-block;
  margin: 1.5em 0;
  padding: 0.9em 2.4em;
  background: var(--hvar-green);
  border: 0;
  color: #fff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.9em;
  text-decoration: none;
}
.introhomecontainer a:hover { background: var(--hvar-green-dark); color: #fff; transition: background-color 0.2s; }
.contactushome .introtext { justify-content: center; text-align: center; }

@media (max-width: 991px) {
  .navbar-brand.hh-brand img { height: 2.8em; }
  .hh-brand-name { font-size: 1.35em; }
  .hh-brand-sub { font-size: 0.58em; letter-spacing: 0.1em; }
  .navbar .container-fluid { align-items: center; }
  #carouselSlides .carousel-item { height: 60vh; min-height: 340px; }
  #openSearchBtn { top: -4.5em; padding: 13px 28px; font-size: 14px; }
}

/* =====================================================================
   NASLOVNA, STATIČNI DIZAJN (home.php, klase hh-)
   ===================================================================== */
.hh-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.hh-overline { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78em; color: var(--hvar-green); margin: 0 0 0.6em; font-weight: 600; }
.hh-overline-light { color: var(--hvar-gold); }
.hh-title { font-family: Georgia, "Times New Roman", serif; font-size: 2.1em; font-weight: normal; color: var(--hvar-ink); margin: 0; }
.hh-title-light { color: #fff; }
.hh-btn {
  display: inline-block; border: 0; background: var(--hvar-green); color: #fff;
  padding: 0.95em 2.2em; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.85em;
  text-decoration: none; cursor: pointer; transition: background 0.2s;
}
.hh-btn:hover { background: var(--hvar-green-dark); color: #fff; }
.hh-btn-light { background: transparent; border: 1px solid rgba(255, 255, 255, 0.7); }
.hh-btn-light:hover { background: #fff; color: var(--hvar-ink); }
.hh-link { color: var(--hvar-green); text-decoration: none; font-size: 0.9em; letter-spacing: 0.06em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.hh-link:hover { color: var(--hvar-green-dark); }

/* uvod: fotografije preko cijele širine, izmjenjuju se */
.hh-hero { position: relative; min-height: 88vh; display: flex; align-items: center; padding: 120px 0 70px; overflow: hidden; background: var(--hvar-ink); }
.hh-hero-bg, .hh-hero-bg div { position: absolute; inset: 0; }
.hh-hero-bg div { background-size: cover; background-position: center; opacity: 0; animation: hhFade 21s infinite; }
.hh-hero-bg div:nth-child(1) { animation-delay: 0s; }
.hh-hero-bg div:nth-child(2) { animation-delay: 7s; }
.hh-hero-bg div:nth-child(3) { animation-delay: 14s; }
@keyframes hhFade {
  0%   { opacity: 0; transform: scale(1.04); }
  5%   { opacity: 1; }
  33%  { opacity: 1; }
  40%  { opacity: 0; transform: scale(1); }
  100% { opacity: 0; }
}
.hh-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15, 15, 15, 0.75) 0%, rgba(15, 15, 15, 0.5) 40%, rgba(15, 15, 15, 0.15) 70%, rgba(15, 15, 15, 0) 90%);
}
.hh-hero-inner { position: relative; z-index: 1; width: 100%; }
.hh-hero-text { max-width: 640px; }
.hh-hero-title { font-family: Georgia, "Times New Roman", serif; font-size: 3.3em; line-height: 1.1; font-weight: normal; color: #fff; margin: 0 0 0.4em; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35); }
.hh-hero-lead { font-size: 1.12em; line-height: 1.6; color: rgba(255, 255, 255, 0.9); max-width: 34em; margin: 0 0 1.8em; }
.hh-search {
  display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 0; background: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}
.hh-field { display: block; padding: 0.7em 1em; border-right: 1px solid var(--hvar-line); margin: 0; }
.hh-field span { display: block; font-size: 0.7em; line-height: 1.5; text-transform: uppercase; letter-spacing: 0.1em; color: var(--hvar-muted); white-space: nowrap; }
.hh-field select { width: 100%; border: 0; background: transparent; padding: 0.25em 0 0; font: inherit; color: var(--hvar-ink); outline: none; }
.hh-field select, .hh-field select option { font-family: "Quicksand", sans-serif; font-weight: 400; }
.hh-field select option { font-size: 1rem; color: var(--hvar-ink); background: #fff; }
.hh-search .hh-btn { padding: 0 1.8em; background: #111; color: #fff; border: 0; font-weight: 700; }
.hh-search .hh-btn:hover { background: #000; color: #fff; }

/* tabovi prodaja / dugoročni najam */
.hh-search-tabs { display: flex; gap: 0; }
.hh-tab { background: transparent; color: #fff; border: 0; padding: 0.75em 1.4em; font: inherit; font-size: 0.8em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; cursor: pointer; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5); }
.hh-tab:hover { background: rgba(0, 0, 0, 0.25); }
.hh-tab.active { background: #111; text-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  .hh-hero-bg div { animation: none; }
  .hh-hero-bg div:first-child { opacity: 1; }
}

/* traka povjerenja */
.hh-trust { border-top: 1px solid var(--hvar-line); border-bottom: 1px solid var(--hvar-line); background: #fff; }
.hh-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.hh-trust-grid > div { padding: 1.4em 1.2em; border-left: 3px solid var(--hvar-green); margin: 1.2em 0; }
.hh-trust-grid strong { display: block; color: var(--hvar-ink); font-weight: 600; }
.hh-trust-grid span { color: var(--hvar-muted); font-size: 0.9em; }

/* sekcije */
.hh-section { padding: 80px 0; background: #fff; }
.hh-section-stone { background: var(--hvar-stone); }
.hh-section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 2.2em; gap: 1em; }

/* kartice */
.hh-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.hh-card { display: block; background: #fff; border: 1px solid var(--hvar-line); color: inherit; text-decoration: none; transition: box-shadow 0.25s, transform 0.25s; }
.hh-card:hover { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.10); transform: translateY(-3px); color: inherit; }
.hh-card-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.hh-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s; }
.hh-card:hover .hh-card-img img { transform: scale(1.04); }
.hh-badge { position: absolute; top: 14px; left: 14px; background: var(--hvar-green); color: #fff; font-size: 0.72em; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.4em 0.9em; }
.hh-card-body { padding: 1.2em 1.3em 1.3em; }
.hh-card-loc { font-size: 0.78em; text-transform: uppercase; letter-spacing: 0.12em; color: var(--hvar-muted); margin: 0 0 0.4em; }
.hh-card-title { font-family: Georgia, "Times New Roman", serif; font-size: 1.2em; font-weight: normal; color: var(--hvar-ink); line-height: 1.3; margin: 0 0 0.5em; min-height: 2.6em; }
.hh-card-meta { font-size: 0.9em; color: var(--hvar-muted); margin: 0 0 0.9em; }
.hh-card-price { font-size: 1.2em; font-weight: 600; color: var(--hvar-green); margin: 0; padding-top: 0.8em; border-top: 1px solid var(--hvar-line); }

/* vrste nekretnina */
.hh-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hh-cat { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; text-decoration: none; }
.hh-cat img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s; }
.hh-cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.35) 35%, rgba(0, 0, 0, 0) 65%); }
.hh-cat span { position: absolute; left: 1.1em; bottom: 0.9em; z-index: 1; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 1.3em; }
.hh-cat:hover img { transform: scale(1.05); }
.hh-cat:hover span { text-decoration: underline; text-decoration-color: var(--hvar-green); text-underline-offset: 6px; }

/* pravna služba */
.hh-legal { background: var(--hvar-ink); color: #ddd; padding: 70px 0; border-top: 4px solid var(--hvar-green); }
.hh-legal-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: center; }
.hh-legal p { font-size: 1.08em; line-height: 1.7; margin: 0 0 1.4em; }

/* portali i apartmani */
.hh-split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.hh-panel { display: block; border: 1px solid var(--hvar-line); padding: 2em 2.2em; background: #fff; color: inherit; text-decoration: none; }
.hh-portals { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 0.4em; }
.hh-portals a { border: 1px solid var(--hvar-line); padding: 0.6em 1.3em; color: var(--hvar-ink); text-decoration: none; font-size: 0.95em; }
.hh-portals a:hover { border-color: var(--hvar-green); color: var(--hvar-green); }
.hh-panel-img { display: block; width: calc(100% + 4.4em); max-width: none; height: 220px; object-fit: cover; object-position: 20% 12%; margin: -2em -2.2em 1.4em; }
.hh-panel-villa h3 { font-family: Georgia, "Times New Roman", serif; font-weight: normal; font-size: 1.5em; color: var(--hvar-ink); margin: 0 0 0.3em; }
.hh-panel-villa p:not(.hh-overline) { color: var(--hvar-muted); margin: 0 0 1em; }
.hh-panel-villa:hover { border-color: var(--hvar-green); color: inherit; }

/* tekst o nekretninama na Hvaru */
.hh-seo { border-top: 1px solid var(--hvar-line); padding: 56px 0 64px; background: #fff; }
.hh-seo-title { font-family: Georgia, "Times New Roman", serif; font-weight: normal; font-size: 1.5em; color: var(--hvar-ink); margin: 0 0 1.2em; }
.hh-seo-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5em; color: var(--hvar-muted); font-size: 0.92em; line-height: 1.7; }
.hh-seo-col h3 { font-size: 1em; font-weight: 600; color: var(--hvar-text); margin: 0 0 0.5em; padding-top: 0.8em; border-top: 2px solid var(--hvar-green); display: inline-block; }
.hh-seo-col p { margin: 0 0 1em; }
@media (max-width: 991px) { .hh-seo-body { grid-template-columns: 1fr; gap: 1.2em; } }

/* responzivno */
@media (max-width: 991px) {
  .hh-hero { min-height: 0; padding: 120px 0 50px; }
  .hh-hero::after { background: rgba(25, 25, 25, 0.55); }
  .hh-legal-grid, .hh-split { grid-template-columns: 1fr; gap: 32px; }
  .hh-hero-title { font-size: 2.3em; }
  .hh-search { grid-template-columns: 1fr 1fr; }
  .hh-field:nth-of-type(2) { border-right: 0; }
  .hh-field:nth-of-type(3) { grid-column: 1 / -1; border-right: 0; }
  .hh-field { border-bottom: 1px solid var(--hvar-line); }
  .hh-search .hh-btn { grid-column: 1 / -1; padding: 1em; border-left: 0; border-top: 1px solid var(--hvar-line); }
  .hh-trust-grid { grid-template-columns: 1fr 1fr; }
  .hh-cards, .hh-cats { grid-template-columns: 1fr 1fr; }
  .hh-section { padding: 56px 0; }
}
@media (max-width: 768px) {
  .navbar-brand.hh-brand { position: absolute; left: 5%; top: 14px; gap: 8px; margin: 0; }
  .navbar-brand.hh-brand img { height: 2.5em; }
  .hh-brand-name { font-size: 1.15em; }
  .hh-brand-sub { font-size: 0.5em; letter-spacing: 0.08em; }
}
@media (max-width: 575px) {
  .hh-search { grid-template-columns: 1fr; }
  .hh-field { border-right: 0; }
  .hh-cards, .hh-cats { grid-template-columns: 1fr; }
  .hh-trust-grid > div { padding: 0.6em 0.8em; margin: 0.8em 0; font-size: 0.92em; }
  .hh-section-head { flex-direction: column; align-items: flex-start; }
}

/* panorama Starog Grada */
.hh-panorama { position: relative; min-height: 520px; display: flex; align-items: flex-end; background-color: var(--hvar-ink); background-size: cover; background-position: center; padding: 60px 0; }
.hh-panorama::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 20, 20, 0.75) 0%, rgba(20, 20, 20, 0.15) 60%, rgba(20, 20, 20, 0) 100%); }
.hh-panorama .container { position: relative; z-index: 1; }
.hh-panorama-text { max-width: 620px; color: #fff; }
.hh-panorama-text .hh-overline { color: #fff; opacity: 0.85; }
.hh-panorama-text h2 { color: #fff; font-size: 2.4em; margin: 0 0 0.4em; }
.hh-panorama-text p { color: rgba(255, 255, 255, 0.9); line-height: 1.7; margin: 0; }
@media (max-width: 991px) {
  .hh-panorama { min-height: 380px; padding: 40px 0; }
  .hh-panorama-text h2 { font-size: 1.8em; }
}

/* detalji nekretnine: razmak prije footera */
.page-details footer { margin-top: 70px; }
@media (max-width: 767px) {
  .page-details footer { margin-top: 48px; }
}

/* kontakt u izborniku */
.nav-contact .nav-link { border: 1px solid #111; color: #111 !important; padding: 0.45em 1.1em !important; margin-left: 0.6em; transition: background 0.2s, color 0.2s; }
.nav-contact .nav-link:hover { background: #111; color: #fff !important; }
@media (min-width: 992px) {
  .nav-contact { margin-right: 0.9em; }
}
@media (max-width: 991px) {
  .nav-contact .nav-link { display: inline-block; margin: 0.4em 0; }
}

/* izbornik nekretnina: prodaja / najam */
.dropdown-header { font-size: 0.72em; text-transform: uppercase; letter-spacing: 0.12em; color: var(--hvar-muted); }

/* mobilni izbornik */
@media (max-width: 991px) {
  .navbar-collapse.show, .navbar-collapse.collapsing { position: fixed; top: 67px !important; left: 0; right: 0; margin: 0 !important; background: #fff; padding: 1em 8% 2em !important; }
  .navbar-collapse.show { bottom: 0; height: auto !important; overflow-y: auto; }
  .navbar-nav { flex-direction: row !important; flex-wrap: wrap; align-items: center !important; text-align: left !important; }
  .navbar-nav .nav-item { width: 100%; }
  .navbar-nav .nav-item:not(.lang-item):not(.nav-contact) .nav-link { padding-right: 0 !important; white-space: normal; text-align: left; }
  .navbar-nav .nav-contact .nav-link { margin-left: 0; }
  .navbar-nav .lang-item { width: auto; margin: 1.2em 0 0 0; }
  .navbar-nav .lang-item:first-of-type .nav-link { margin-left: 0; }
  .navbar-nav .dropdown-menu { border: 0; padding-left: 0; }
  .navbar-nav .nav-item:not(.lang-item):not(.nav-contact) .nav-link:hover,
  .navbar-nav .nav-item:not(.lang-item):not(.nav-contact) .nav-link:focus,
  .navbar-nav .nav-item:not(.lang-item):not(.nav-contact) .nav-link:active { color: var(--hvar-green) !important; background: transparent; }
  .navbar-nav .dropdown-item:hover,
  .navbar-nav .dropdown-item:focus,
  .navbar-nav .dropdown-item:active { color: var(--hvar-green) !important; background: var(--hvar-stone) !important; }
}
