/* =========================================================================
   MM Nekretnine — main stylesheet
   Plain CSS, hand-written (no preprocessor, no build step).
   Organised top to bottom as:
     1. Variables (design tokens)
     2. Reset / base
     3. Layout helpers
     4. Utilities
     5. Buttons
     6. Header + mobile nav
     7. Footer
     8. Homepage sections (hero, search, featured, about, services, cta)
     9. Responsive tweaks
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Variables
   ------------------------------------------------------------------------- */
:root {
  --radius: 1rem;

  --color-background: #F4EFE4;
  --color-foreground: oklch(0.2 0.005 60);
  --color-card: oklch(1 0 0);
  --color-secondary: oklch(0.96 0.004 85);
  --color-muted: oklch(0.965 0.004 85);
  --color-muted-foreground: oklch(0.52 0.008 70);
  --color-gold: #B99B5B;
  --color-gold-soft: oklch(0.9 0.045 88);
  --color-charcoal: oklch(0.32 0.005 60);
  --color-ink: oklch(0.16 0.004 60);
  --color-border: oklch(0.915 0.005 85);

  /* Brand tokens (Phase 1 rebrand) */
  --color-header: #1F2A24;
  --color-cta: #C1502C;

  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "Inter", "Helvetica Neue", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --shadow-soft: 0 2px 6px -2px oklch(0.2 0.01 80 / 0.06), 0 18px 40px -22px oklch(0.2 0.01 80 / 0.28);
  --shadow-lift: 0 4px 10px -4px oklch(0.2 0.01 80 / 0.1), 0 30px 60px -28px oklch(0.2 0.01 80 / 0.35);
}

/* -------------------------------------------------------------------------
   2. Reset / base
   ------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

dl,
dt,
dd {
  margin: 0;
}

/* -------------------------------------------------------------------------
   3. Layout helpers
   ------------------------------------------------------------------------- */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 1024px) {
  .container {
    padding: 0 40px;
  }
}

.section {
  padding: 96px 0;
}

.section--muted {
  background-color: oklch(0.96 0.004 85 / 0.5);
}

.section--tight {
  padding-bottom: 0;
}

@media (min-width: 1024px) {
  .section {
    padding: 128px 0;
  }
}

/* -------------------------------------------------------------------------
   4. Utilities
   ------------------------------------------------------------------------- */
.eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.hairline {
  height: 1px;
  width: 100%;
  background: linear-gradient(to right, transparent, var(--color-gold-soft), transparent);
}

.reveal {
  animation: reveal-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.link-underline {
  position: relative;
}

.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 1px;
  width: 100%;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.link-underline:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.slow-zoom {
  animation: slow-zoom 12s ease-out both;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slow-zoom {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1);
  }
}

/* -------------------------------------------------------------------------
   5. Buttons
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 999px;
  padding: 16px 36px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-light {
  background-color: var(--color-background);
  color: var(--color-ink);
}

.btn-outline-light {
  border-color: oklch(0.995 0.002 90 / 0.4);
  color: var(--color-background);
}

.btn-outline-light:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-soft);
}

.btn-dark {
  background-color: var(--color-ink);
  color: var(--color-background);
}

.btn-dark:hover {
  background-color: var(--color-charcoal);
}

.btn-outline {
  border-color: oklch(0.32 0.005 60 / 0.2);
  color: var(--color-foreground);
}

.btn-outline:hover {
  border-color: var(--color-gold);
  background-color: oklch(0.72 0.09 82 / 0.1);
}

.btn-gold {
  background-color: var(--color-gold);
  color: var(--color-ink);
}

.btn-cta {
  background-color: var(--color-cta);
  color: var(--color-background);
}

/* -------------------------------------------------------------------------
   6. Header + mobile nav
   ------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: var(--color-header);
  color: var(--color-background);
  transition: all 0.5s ease;
}

.site-header.is-scrolled {
  border-bottom: 1px solid oklch(0.995 0.002 90 / 0.15);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 16px;
}

/* Header logo: a single stacked lockup image, shown at the same size on
   mobile and desktop (slightly larger from 1024px up — see the breakpoint
   below). The footer still uses its own live text wordmark directly via
   .site-logo__mark/__word, unrelated to this image. */
.site-logo {
  display: flex;
  align-items: center;
}

.site-logo img {
  display: block;
  width: auto;
}

.site-logo__image {
  height: 40px;
}

.site-logo__mark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.16em;
  color: inherit;
}

.site-logo__word {
  margin-top: 4px;
  font-size: 0.6rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.6;
}

.site-nav {
  display: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-menu li a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
  transition: color 0.3s ease;
}

.nav-menu li a:hover {
  color: var(--color-foreground);
}

.nav-menu li.current-menu-item > a,
.nav-menu li.current_page_item > a {
  color: var(--color-foreground);
}

/* Desktop nav sits on the header's own dark background, so it needs the
   light nav color explicitly — .mobile-nav's dropdown keeps the default
   dark-on-light .nav-menu li a color above, since it opens on a light
   background of its own. */
.site-nav .nav-menu li a {
  color: var(--color-background);
}

.site-header__phone {
  display: none;
  border: 1px solid oklch(0.72 0.09 82 / 0.5);
  border-radius: 999px;
  padding: 10px 20px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.site-header__phone:hover {
  background-color: oklch(0.72 0.09 82 / 0.1);
  box-shadow: var(--shadow-soft);
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

.menu-toggle:hover {
  background-color: var(--color-secondary);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--color-border);
  background-color: var(--color-background);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav .nav-menu {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 8px 24px 16px;
}

.mobile-nav .nav-menu li a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid oklch(0.915 0.005 85 / 0.6);
  font-size: 0.9rem;
}

.mobile-nav .nav-menu li:last-child a {
  border-bottom: none;
}

/* -------------------------------------------------------------------------
   7. Footer
   ------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  background-color: var(--color-ink);
  color: var(--color-background);
}

.site-footer__grid {
  display: grid;
  gap: 48px;
  padding: 80px 24px;
}

.footer-brand p {
  margin-top: 24px;
  max-width: 20rem;
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.7;
}

.footer-col h3 {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.footer-col p {
  margin-top: 24px;
  font-size: 0.9rem;
  opacity: 0.7;
}

.footer-menu,
.footer-office {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9rem;
}

.footer-menu li a,
.footer-office li,
.footer-office li a {
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.footer-menu li a:hover,
.footer-office li a:hover {
  opacity: 1;
}

.footer-office li a {
  overflow-wrap: anywhere;
}

.footer-col .btn {
  margin-top: 24px;
}

.site-footer__bottom {
  border-top: 1px solid oklch(0.995 0.002 90 / 0.1);
}

.site-footer__bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 24px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.5;
}

/* -------------------------------------------------------------------------
   8. Homepage sections
   ------------------------------------------------------------------------- */

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  overflow: hidden;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__content {
  position: relative;
  width: 100%;
  padding: 0 24px 96px;
}

.hero h1 {
  margin-top: 24px;
  max-width: 48rem;
  font-size: 3rem;
  line-height: 1.05;
  color: var(--color-background);
}

.hero h1 .accent {
  display: block;
  font-style: italic;
  color: var(--color-gold-soft);
}

.hero p {
  margin-top: 32px;
  max-width: 36rem;
  color: var(--color-background);
  line-height: 1.7;
}

.hero__actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Section headings (search / featured / about / services / cta) */
.section-intro {
  max-width: 42rem;
}

.section-intro h2 {
  margin-top: 20px;
  font-size: 2.25rem;
}

.section-intro p {
  margin-top: 20px;
  color: var(--color-muted-foreground);
}

.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

/* About */
.about-grid {
  display: grid;
  align-items: center;
  gap: 64px;
}

.about-grid__image {
  overflow: hidden;
  border-radius: calc(var(--radius) + 12px);
  box-shadow: var(--shadow-lift);
}

.about-grid__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-grid p {
  margin-top: 24px;
  color: var(--color-muted-foreground);
  line-height: 1.7;
}

/* Values (homepage "Naše vrednosti") */
.values-section__inner {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
}

.values-section__heading {
  font-size: 2.5rem;
}

.values-section__intro {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-muted-foreground);
}

.values-section .hairline {
  max-width: 120px;
  margin: 40px auto;
}

.values-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  text-align: left;
}

.values-list__row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.values-list__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--color-header);
}

.values-list__icon .icon {
  width: 26px;
  height: 26px;
}

.values-list dt {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-foreground);
}

.values-list dd {
  margin-top: 8px;
  color: var(--color-muted-foreground);
  line-height: 1.7;
}

.values-section__tagline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
}

/* Services */
.services-grid {
  margin-top: 56px;
  display: grid;
  gap: 24px;
}

.service-card {
  border: 1px solid var(--color-border);
  background-color: var(--color-card);
  border-radius: calc(var(--radius) + 8px);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  transition: all 0.5s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.service-card .icon {
  color: var(--color-gold);
}

.service-card h3 {
  margin-top: 24px;
  font-size: 1.5rem;
}

.service-card p {
  margin-top: 12px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-muted-foreground);
}

/* CTA */
.cta-box {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 12px);
  background-color: var(--color-ink);
  color: var(--color-background);
  padding: 80px 32px;
  text-align: center;
}

.cta-box .hairline {
  position: absolute;
  inset-inline: 0;
  top: 0;
}

.cta-box h2 {
  margin: 24px auto 0;
  max-width: 48rem;
  font-size: 2.25rem;
  line-height: 1.2;
}

.cta-box p {
  margin: 24px auto 0;
  max-width: 36rem;
  opacity: 0.7;
}

.cta-box .btn {
  margin-top: 40px;
}

/* -------------------------------------------------------------------------
   9. Responsive tweaks
   ------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 4.5rem;
  }

  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-section__inner {
    max-width: 64rem;
  }

  .values-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 56px;
  }
}

@media (min-width: 1024px) {
  .hero__content {
    padding: 0 40px 128px;
  }

  .hero h1 {
    font-size: 6rem;
  }

  .site-nav {
    display: flex;
  }

  .site-logo__image {
    height: 48px;
  }

  .site-header__phone {
    display: inline-flex;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }

  .section-intro h2,
  .cta-box h2,
  .values-section__heading {
    font-size: 3rem;
  }

  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .site-footer__grid {
    grid-template-columns: repeat(4, 1fr);
    padding: 80px 40px;
  }

  .site-footer__bottom-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 24px 40px;
  }
}

@media (min-width: 1280px) {
  .cta-box h2,
  .values-section__heading {
    font-size: 3.75rem;
  }
}

/* =========================================================================
   10. Property CPT templates (Phase 2)
   Page header, property cards/grid, archive, single property page.
   ========================================================================= */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn-block {
  width: 100%;
}

.btn-whatsapp {
  border: 1px solid var(--color-gold);
  background-color: oklch(0.72 0.09 82 / 0.1);
  color: var(--color-foreground);
}

.btn-whatsapp:hover {
  background-color: oklch(0.72 0.09 82 / 0.2);
}

/* Icons shared by property cards and the single property page */
.icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--color-gold);
}

.icon svg {
  width: 100%;
  height: 100%;
}

.icon-sm {
  width: 14px;
  height: 14px;
}

.icon-lg {
  width: 20px;
  height: 20px;
}

/* Page header (archive + later interior pages) */
.page-header {
  padding: 160px 0 64px;
}

.page-header h1 {
  margin-top: 20px;
  max-width: 48rem;
  font-size: 3rem;
  line-height: 1.05;
}

.page-header__desc {
  margin-top: 24px;
  max-width: 36rem;
  color: var(--color-muted-foreground);
  line-height: 1.7;
}

.page-header .hairline {
  margin-top: 56px;
}

/* About page only — scoped via the page-header template part's optional
   extra_class arg and a wrapper class on the Story section, so none of
   these touch the shared .eyebrow / .page-header h1 / .about-grid p
   rules used by every other page. */
.about-page-header .eyebrow {
  font-family: var(--font-mono);
}

.about-page-header h1 {
  color: var(--color-header);
}

.about-page-story p {
  color: var(--color-header);
  line-height: 1.7;
}

/* Results count / empty state, shared by archive + filtered listings */
.results-count {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
}

.empty-state {
  padding: 96px 0;
  text-align: center;
  color: var(--color-muted-foreground);
}

.property-grid {
  margin-top: 24px;
  display: grid;
  gap: 32px;
}

/* Property explorer: shared search/filter UI for the homepage's featured
   properties section and the sale/rent/land listing pages. Filtering runs
   entirely in assets/js/main.js against the cards already rendered below —
   no extra query, no page reload. */
.property-explorer {
  margin-top: 48px;
}

.property-explorer__filters {
  display: grid;
  gap: 16px;
  align-items: end;
}

.property-explorer__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.property-explorer__field label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
}

.property-explorer .results-count {
  margin-top: 24px;
}

/* Cards/messages the filter JS hides stay hidden no matter what other
   display rule is declared for the same element elsewhere in this file. */
.property-explorer [hidden] {
  display: none !important;
}

@media (min-width: 900px) {
  .property-explorer__filters {
    grid-template-columns: 2fr 1fr 1fr auto;
  }
}

/* Property card */
.property-card {
  overflow: hidden;
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid var(--color-border);
  background-color: var(--color-card);
  box-shadow: var(--shadow-soft);
  transition: all 0.5s ease;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.property-card__image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--color-muted);
}

.property-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease-out;
}

.property-card:hover .property-card__image img {
  transform: scale(1.05);
}

.property-card__body {
  padding: 28px;
}

.property-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.property-card__type {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
}

.property-card__price {
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.property-card__title {
  margin-top: 16px;
  font-size: 1.5rem;
  line-height: 1.3;
}

.property-card__location {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--color-muted-foreground);
}

.property-card__meta {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
  font-size: 0.9rem;
  color: var(--color-muted-foreground);
}

.property-card__meta > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.property-card .btn {
  margin-top: 24px;
}

/* Pagination (the_posts_pagination) */
.pagination {
  margin-top: 56px;
  display: flex;
  justify-content: center;
}

.pagination .nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  font-size: 0.8rem;
}

.pagination .page-numbers:hover {
  border-color: var(--color-gold);
}

.pagination .page-numbers.current {
  background-color: var(--color-ink);
  color: var(--color-background);
  border-color: var(--color-ink);
}

/* Single property page */
.property-single {
  padding-top: 128px;
  padding-bottom: 112px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
}

.property-single__header {
  margin-top: 32px;
}

.property-single__header h1 {
  margin-top: 16px;
  max-width: 48rem;
  font-size: 2.5rem;
  line-height: 1.15;
}

.property-single__location {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-muted-foreground);
}

.property-gallery {
  margin-top: 48px;
}

.property-gallery__main {
  overflow: hidden;
  border-radius: calc(var(--radius) + 12px);
  box-shadow: var(--shadow-lift);
  aspect-ratio: 16 / 9;
}

.property-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-gallery__thumbs {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.property-gallery__thumb {
  overflow: hidden;
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid transparent;
  opacity: 0.7;
  transition: all 0.3s ease;
  padding: 0;
}

.property-gallery__thumb:hover {
  opacity: 1;
}

.property-gallery__thumb.is-active {
  border-color: var(--color-gold);
  opacity: 1;
}

.property-gallery__thumb img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
}

.property-single__grid {
  margin-top: 64px;
  display: grid;
  gap: 56px;
}

.property-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid var(--color-border);
  background-color: var(--color-card);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}

.property-specs dt {
  margin-top: 12px;
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
}

.property-specs dd {
  margin-top: 4px;
  font-size: 1.125rem;
}

.property-section {
  margin-top: 56px;
}

.property-section h2 {
  font-size: 1.875rem;
}

.property-description {
  margin-top: 20px;
  color: var(--color-muted-foreground);
  line-height: 1.7;
}

.property-features {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.property-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-muted-foreground);
}

.property-map {
  margin-top: 24px;
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.property-map iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}

.property-sidebar {
  border-radius: calc(var(--radius) + 12px);
  border: 1px solid var(--color-border);
  background-color: var(--color-card);
  padding: 32px;
  box-shadow: var(--shadow-lift);
  align-self: start;
}

.property-sidebar__label {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
}

.property-sidebar__price {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 2.25rem;
}

.property-sidebar .hairline {
  margin: 28px 0;
}

.property-sidebar__facts {
  display: grid;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--color-muted-foreground);
}

.property-sidebar__facts li {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.property-sidebar__facts li span:last-child {
  color: var(--color-foreground);
}

.property-sidebar .btn {
  margin-top: 8px;
}

.property-sidebar .btn:first-of-type {
  margin-top: 32px;
}

@media (min-width: 640px) {
  .property-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .property-specs {
    grid-template-columns: repeat(4, 1fr);
  }

  .property-gallery__thumbs {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 768px) {
  .page-header h1,
  .property-single__header h1 {
    font-size: 4rem;
  }
}

@media (min-width: 1024px) {
  .page-header {
    padding-top: 192px;
  }

  .page-header h1 {
    font-size: 4.5rem;
  }

  .property-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .property-single__header h1 {
    font-size: 4.5rem;
  }

  .property-single__grid {
    grid-template-columns: 1.6fr 1fr;
  }

  .property-sidebar {
    position: sticky;
    top: 112px;
  }
}

/* =========================================================================
   11. About & Contact pages
   Both React pages skip the top padding a plain .section would add,
   since the page header above them already ends in a hairline + gap.
   ========================================================================= */
.section--flush-top {
  padding-top: 0;
}

/* About: values grid (re-uses .service-card for the card itself) */
.values-grid {
  margin-top: 56px;
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* About: team grid */
.team-grid {
  margin-top: 56px;
  display: grid;
  gap: 24px;
}

.team-member {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
}

.team-member h3 {
  font-size: 1.25rem;
}

.team-member p {
  margin-top: 8px;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
}

.team-cta {
  margin-top: 64px;
}

@media (min-width: 640px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Contact: two-column layout */
.contact-grid {
  display: grid;
  gap: 56px;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
  }
}

/* Contact: details list */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.contact-details__label {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
}

.contact-details__value {
  display: block;
  margin-top: 4px;
  font-size: 1.125rem;
  overflow-wrap: anywhere;
}

.contact-whatsapp {
  margin-top: 40px;
  max-width: 20rem;
}

/* Contact: enquiry card */
.contact-card {
  border-radius: calc(var(--radius) + 12px);
  border: 1px solid var(--color-border);
  background-color: var(--color-card);
  box-shadow: var(--shadow-soft);
  padding: 32px;
}

@media (min-width: 768px) {
  .contact-card {
    padding: 40px;
  }
}

.contact-card h2 {
  font-size: 1.875rem;
}

.contact-card__intro {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--color-muted-foreground);
}

/* Contact: form fields (the submit button reuses .btn.btn-dark.btn-block) */
.contact-form {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-field {
  width: 100%;
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid var(--color-border);
  background-color: var(--color-card);
  padding: 14px 20px;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--color-foreground);
  outline: none;
  transition: border-color 0.3s ease;
}

.form-field::placeholder {
  color: var(--color-muted-foreground);
}

.form-field:focus {
  border-color: var(--color-gold);
}

.form-field--textarea {
  min-height: 144px;
  resize: none;
}

/* Contact form: labeled field groups (Ime/Prezime, selects, budget, etc.) */
.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field-group label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
}

/* Contact form: "Nekretnina: X" notice shown when arriving via ?property= */
.property-interest-notice {
  border-radius: var(--radius);
  border: 1px solid var(--color-gold-soft);
  background-color: oklch(0.72 0.09 82 / 0.08);
  padding: 12px 16px;
  font-size: 0.875rem;
}

/* Contact form: budget range slider */
.budget-field {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.budget-field__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.budget-field__head label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
}

.budget-field__value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-gold);
}

/* Reset the native track/thumb so we can draw our own; the fill itself is
   painted via --range-progress, a CSS custom property assets/js/main.js
   updates on every "input" event. Without JS this simply stays at its
   initial 15% (the default 300.000 € value) — the slider is still fully
   usable, just without the live-updating fill or label. */
.budget-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  background: transparent;
  cursor: pointer;
}

.budget-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--color-gold) 0%,
    var(--color-gold) var(--range-progress, 15%),
    var(--color-border) var(--range-progress, 15%),
    var(--color-border) 100%
  );
}

.budget-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border-radius: 50%;
  background-color: var(--color-ink);
  border: 3px solid var(--color-gold);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.budget-range::-webkit-slider-thumb:hover {
  transform: scale(1.08);
}

.budget-range:focus-visible::-webkit-slider-thumb {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

.budget-range::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: var(--color-border);
}

.budget-range::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--color-gold);
}

.budget-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 3px solid var(--color-gold);
  border-radius: 50%;
  background-color: var(--color-ink);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.budget-range:focus-visible::-moz-range-thumb {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/* Contact form: privacy consent checkbox */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 4px 0;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--color-muted-foreground);
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--color-gold);
  cursor: pointer;
}

/* Contact page only — scoped via the page-header template part's optional
   extra_class arg and the already-exclusive .contact-* / .contact-form
   selectors, so none of these touch the shared .eyebrow / .page-header h1 /
   .form-field / form-label rules used elsewhere (e.g. the homepage's
   property filters). */
.contact-page-header .eyebrow {
  font-family: var(--font-mono);
}

.contact-page-header h1 {
  color: var(--color-header);
}

.contact-card h2 {
  color: var(--color-header);
}

.contact-card__intro {
  font-family: var(--font-sans);
  color: var(--color-header);
}

.contact-details__label {
  font-family: var(--font-mono);
  color: var(--color-gold);
}

.contact-details__value {
  font-family: var(--font-sans);
  color: var(--color-header);
  font-weight: 500;
}

.contact-form .form-field-group label,
.contact-form .budget-field__head label {
  font-family: var(--font-mono);
  color: var(--color-gold);
}

.contact-form .form-field {
  border-color: var(--color-gold);
}

/* Honeypot: kept in the document (so bots find it) but off-screen for
   everyone else, including keyboard/screen-reader users (tabindex="-1"
   on the input already skips it in normal use). */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  left: -9999px;
}

/* Success / error notice after a form submission (see inc/contact-form.php) */
.form-notice {
  margin-bottom: 24px;
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.875rem;
  line-height: 1.6;
}

.form-notice--success {
  border: 1px solid var(--color-gold);
  background-color: oklch(0.72 0.09 82 / 0.1);
}

.form-notice--error {
  border: 1px solid oklch(0.6 0.15 30 / 0.4);
  background-color: oklch(0.6 0.15 30 / 0.08);
}

.contact-map {
  margin-top: 64px;
}

/* Contact form: success/error modal (see #mm-contact-modal in
   page-contact.php). Hidden by default so there's never a flash of it on
   load — only .is-open (added by initContactModal() in assets/js/main.js)
   makes it visible. */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.is-open {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background-color: oklch(0.16 0.004 60 / 0.6);
}

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 26rem;
  background-color: var(--color-card);
  border-radius: calc(var(--radius) + 12px);
  box-shadow: var(--shadow-lift);
  padding: 40px 32px;
  text-align: center;
  animation: modal-in 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--color-muted-foreground);
  transition: background-color 0.3s ease;
}

.modal__close:hover {
  background-color: var(--color-secondary);
  color: var(--color-foreground);
}

.modal__close:focus-visible,
.modal__action:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

.modal__title {
  font-size: 1.5rem;
}

.modal--success .modal__title {
  color: var(--color-gold);
}

.modal--error .modal__title {
  color: oklch(0.6 0.15 30);
}

.modal__body {
  margin-top: 16px;
  color: var(--color-muted-foreground);
  line-height: 1.7;
}

.modal__action {
  margin-top: 32px;
}

/* Scroll lock while the modal is open (toggled on <body> by
   initContactModal() alongside .is-open above). */
body.has-modal-open {
  overflow: hidden;
}
