/* VitoReality redesign — Archivo (width axis) only, real listing photos as the main material, brand green/red from the logo. */
:root {
  --bg: #f3efe7;
  --surface: #fff;
  --surface-2: #e9e3d7;
  --ink: #151412;
  --ink-2: #3a3731;
  --muted: #6a645a;
  --line: #dcd4c5;
  --line-2: #c7bead;
  --green: #009246; /* logo */
  --green-ui: #007a3a; /* buttons / text on light, AA with white */
  --green-l: #5bd394;
  --red: #ce2b37; /* logo */
  --red-ui: #b3202b;
  --r: 18px;
  --r-s: 12px;
  --forest: #0e2a1d;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --header-h: 72px;
  --gutter: clamp(16px, 4vw, 40px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }
:focus-visible { outline: 2px solid var(--green-ui); outline-offset: 3px; }
.sr, .skip:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 12px; left: 12px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-s); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
.hero-title, .page-title, .section-title, .seller-title, .detail-title, .row-title {
  font-family: var(--font);
  font-stretch: 112%;
  font-weight: 720;
  letter-spacing: -0.022em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
  hyphens: manual;
}
.hero-title { font-size: clamp(2.3rem, 5.2vw, 4.4rem); max-width: 15ch; }
.page-title { font-size: clamp(2.1rem, 4.6vw, 3.6rem); max-width: 18ch; }
.section-title { font-size: clamp(1.7rem, 3.2vw, 2.6rem); max-width: 22ch; }
.row-title { font-size: clamp(1.15rem, 1.6vw, 1.35rem); letter-spacing: -0.01em; }
.eyebrow {
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--red); }
.eyebrow-light { color: rgb(255 255 255 / 0.72); }
.page-lead, .hero-lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.55; color: var(--ink-2); max-width: 54ch; margin: 18px 0 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line-2); padding: 4px 0; }
.link-arrow svg { transition: transform 0.3s var(--ease); }
.link-arrow:hover { border-color: var(--ink); }
.link-arrow:hover svg { transform: translateX(3px); }
.link-btn { background: none; border: 0; padding: 6px 2px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--r-s);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn svg { transition: transform 0.3s var(--ease); }
.btn:hover svg:last-child:not(:first-child) { transform: translateX(3px); }
.btn-primary { background: var(--green-ui); color: #fff; }
.btn-primary:hover { background: #00612e; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--surface-2); }
.btn-outline-light { border-color: rgb(255 255 255 / 0.4); color: #fff; }
.btn-outline-light:hover { border-color: #fff; }
.btn-block { width: 100%; }
.btn-icon { padding: 0; width: 48px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(245 243 238 / 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: transform 0.4s var(--ease), border-color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 20px; }
.brand { text-decoration: none; display: inline-flex; padding: 10px 0; flex: none; }
.wordmark { font-stretch: 118%; font-weight: 800; letter-spacing: -0.01em; font-size: 1.3rem; line-height: 1; white-space: nowrap; }
.wm-vito { color: var(--green); }
.wm-reality { color: var(--red); }
.main-nav { display: flex; margin-left: auto; }
.main-nav a {
  position: relative;
  text-decoration: none;
  font-weight: 550;
  font-size: 0.98rem;
  padding: 10px 13px;
  color: var(--ink-2);
  white-space: nowrap;
}
.main-nav a::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--ink); }
.main-nav a[aria-current="page"]::after { transform: scaleX(1); background: var(--red); }
.header-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
  padding: 0 16px;
  border-radius: var(--r-s);
  background: var(--ink);
  color: #fff;
  white-space: nowrap;
  flex: none;
  transition: background-color 0.2s;
}
.header-call:hover { background: var(--green-ui); }
.menu-toggle, .mobile-menu { display: none; }

/* language switcher */
.lang { position: relative; flex: none; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  background: transparent;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}
.lang-btn:hover, .lang.is-open .lang-btn { border-color: var(--ink); }
.lang-btn > svg { width: 18px; height: 18px; color: var(--muted); transition: transform 0.25s; }
.lang.is-open .lang-btn > svg { transform: rotate(180deg); }
.flag { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.12); }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 200px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: 0 16px 40px -16px rgb(0 0 0 / 0.25);
  display: grid;
  z-index: 60;
}
.lang-menu a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-s); text-decoration: none; font-weight: 550; }
.lang-menu a:hover { background: var(--bg); }
.lang-menu a .flag { width: 24px; height: 24px; }
.lang-menu .lang-name { flex: 1; }
.lang-menu .lang-short { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.lang-menu svg { color: var(--green-ui); }

/* 1101–1279: phone collapses to an icon so nothing wraps */
@media (max-width: 1279px) {
  .header-call { padding: 0; width: 44px; justify-content: center; }
  .header-call span { display: none; }
  .main-nav a { padding: 10px 10px; }
  .main-nav a::after { left: 10px; right: 10px; }
}
@media (max-width: 1100px) {
  .main-nav, .header-call { display: none; }
  .lang { margin-left: auto; }
  .menu-toggle {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: var(--r-s);
    border: 1px solid var(--line);
    background: transparent;
    cursor: pointer;
  }
  .menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    transition: transform 0.3s var(--ease), opacity 0.2s;
  }
  .menu-toggle-bars { position: relative; }
  .menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .menu-toggle-bars::before { top: -6px; }
  .menu-toggle-bars::after { top: 6px; }
  .menu-open .menu-toggle-bars { background: transparent; }
  .menu-open .menu-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-open .menu-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
  /* Lives outside the header: the header's backdrop-filter would trap a fixed child. */
  .mobile-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    position: fixed;
    inset: 0;
    z-index: 45;
    background: var(--ink);
    color: #fff;
    padding: calc(var(--header-h) + 12px) var(--gutter) calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    animation: fade 0.3s var(--ease) both;
  }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu nav { display: flex; flex-direction: column; }
  .mobile-menu nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    font-stretch: 112%;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: clamp(1.7rem, 7.4vw, 2.4rem);
    line-height: 1.15;
    text-decoration: none;
    padding: 14px 0;
    border-bottom: 1px solid rgb(255 255 255 / 0.12);
    animation: rise-in 0.5s var(--ease) both;
    animation-delay: calc(40ms + var(--i) * 40ms);
  }
  .mm-label { flex: 1; }
  .mm-count { font-stretch: 100%; font-size: 0.9rem; font-weight: 600; letter-spacing: 0; color: rgb(255 255 255 / 0.6); font-variant-numeric: tabular-nums; }
  .mobile-menu nav a[aria-current="page"] { color: var(--green-l); }
  .mobile-menu-foot { display: grid; gap: 16px; justify-items: center; text-align: center; animation: rise-in 0.5s var(--ease) both; animation-delay: 240ms; }
  .mm-langs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
  .mm-langs a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border: 1px solid rgb(255 255 255 / 0.2); border-radius: var(--r-s); text-decoration: none; font-weight: 600; }
  .mm-langs a[aria-current="true"] { background: #fff; color: var(--ink); border-color: #fff; }
  .mm-meta { margin: 0; font-size: 0.92rem; color: rgb(255 255 255 / 0.65); line-height: 1.7; }
  .mm-meta a { color: #fff; font-weight: 600; text-decoration: none; }
  body.menu-open { overflow: hidden; }
  body.menu-open .site-header { background: var(--ink); border-bottom-color: transparent; }
  body.menu-open .wordmark .wm-vito { color: var(--green-l); }
  body.menu-open .wordmark .wm-reality { color: #ff6b74; }
  body.menu-open .menu-toggle, body.menu-open .lang-btn { border-color: rgb(255 255 255 / 0.25); color: #fff; }
  body.menu-open .menu-toggle-bars::before, body.menu-open .menu-toggle-bars::after { background: #fff; }
}
@keyframes rise-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- hero ---------- */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(48px, 6vw, 80px); }
.search {
  margin-top: clamp(28px, 4vw, 44px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.search-deal, .seg { display: inline-flex; padding: 3px; background: var(--surface-2); border-radius: var(--r-s); align-self: end; }
.search-deal label, .seg label { position: relative; cursor: pointer; }
.search-deal input, .seg input, .chip input { position: absolute; opacity: 0; pointer-events: none; }
.search-deal span, .seg span {
  display: block;
  padding: 0 18px;
  line-height: 44px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}
.search-deal input:checked + span, .seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.search-deal input:focus-visible + span, .seg input:focus-visible + span, .chip input:focus-visible + span { outline: 2px solid var(--green-ui); outline-offset: 2px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-size: 0.82rem; font-weight: 600; color: var(--ink-2); }
.field select, .field input, .field textarea {
  width: 100%;
  min-height: 50px;
  border-radius: var(--r-s);
  border: 1px solid var(--line-2);
  background: var(--surface);
  padding: 10px 14px;
  font-size: 1rem;
  appearance: none;
  -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2362656b' d='m7 9.5 5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
  padding-right: 36px;
  text-overflow: ellipsis;
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.field select:hover, .field input:hover, .field textarea:hover { border-color: var(--ink-2); }
.search-submit { min-height: 50px; }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tight { padding-top: clamp(16px, 2vw, 28px); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 32px; margin-bottom: clamp(24px, 3vw, 40px); flex-wrap: wrap; }
.section-cta { margin-top: clamp(32px, 4vw, 48px); display: flex; justify-content: center; }
.kinds, .process { border-top: 1px solid var(--line); }
.listings-home { background: var(--surface); border-block: 1px solid var(--line); }

/* tabs */
.tabs { display: inline-flex; border-bottom: 1px solid var(--line); }
.tabs button {
  border: 0;
  background: none;
  padding: 12px 18px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  min-height: 48px;
}
.tabs button span { font-variant-numeric: tabular-nums; margin-left: 4px; font-weight: 500; }
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); }

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
.card[hidden] { display: none; }
.card-link {
  display: grid;
  grid-template-areas: "media" "kind" "price" "facts" "title";
  align-content: start;
  text-decoration: none;
  height: 100%;
}
.card-media { grid-area: media; position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--surface-2); margin-bottom: 14px; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card-media.is-portrait img { object-position: 50% 45%; }
.card-link:hover .card-media img { transform: scale(1.03); }
.badges { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; }
.badge { display: inline-block; padding: 4px 8px; border-radius: 3px; font-size: 0.74rem; font-weight: 650; letter-spacing: 0.03em; text-transform: uppercase; line-height: 1.3; background: var(--ink); color: #fff; }
.badge-prenajom { background: var(--green-ui); }
.badge-reserved { background: var(--red-ui); }
.card-count { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 3px; background: rgb(21 23 26 / 0.7); color: #fff; font-size: 0.78rem; font-weight: 600; }
.card-count svg { width: 12px; height: 12px; }
.card-kind { grid-area: kind; margin: 0 0 2px; font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.card-price { grid-area: price; margin: 0; font-stretch: 106%; font-weight: 720; font-size: 1.32rem; line-height: 1.25; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.card-price.is-request { font-size: 1.08rem; font-weight: 650; color: var(--ink-2); }
.card-price small { display: block; font-stretch: 100%; font-size: 0.84rem; font-weight: 500; letter-spacing: 0; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.card-facts { grid-area: facts; display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 8px 0 0; font-size: 0.92rem; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.card-facts span + span { position: relative; }
.card-facts span + span::before { content: ""; position: absolute; left: -8px; top: 50%; width: 3px; height: 3px; margin-top: -1px; border-radius: 50%; background: var(--line-2); }
.card-title {
  grid-area: title;
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 0.93rem;
  font-weight: 450;
  line-height: 1.45;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.card-link:hover .card-title { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); }
.listings-home .card-title { border-top-color: var(--surface-2); }

/* ---------- process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px clamp(32px, 5vw, 72px); }
.process-track { display: grid; gap: 20px; align-content: start; }
.process-h { margin: 0; padding-bottom: 14px; border-bottom: 1px solid var(--ink); font-stretch: 108%; font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; }
.step-num { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: var(--r-s); font-weight: 700; font-variant-numeric: tabular-nums; background: var(--surface); }
.steps h4 { margin: 6px 0 4px; font-size: 1.05rem; font-weight: 650; }
.steps p { margin: 0; color: var(--ink-2); }
.process-track .link-arrow { justify-self: start; }

/* ---------- team ---------- */
.team-section { border-top: 1px solid var(--line); }
.team-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(20px, 3vw, 40px); align-items: start; }
.team-lead { color: var(--ink-2); margin: 18px 0 20px; max-width: 40ch; }
.team-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.team-contact a { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; text-decoration: none; font-weight: 600; }
.team-contact a:hover { color: var(--green-ui); }
.team-contact svg { color: var(--muted); }
.person { margin: 0; }
.person-photo { aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--surface-2); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.person h3 { margin: 14px 0 2px; font-stretch: 106%; font-weight: 700; font-size: 1.15rem; }
.person p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- seller CTA ---------- */
.seller { background: var(--ink); color: #fff; padding: clamp(56px, 7vw, 96px) 0; }
.seller-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px clamp(32px, 6vw, 96px); align-items: end; }
.seller-title { font-size: clamp(1.7rem, 3.2vw, 2.6rem); max-width: 22ch; }
.seller-text { color: rgb(255 255 255 / 0.75); margin: 18px 0 0; max-width: 52ch; }
.seller-actions { display: grid; gap: 10px; }
.seller-actions .btn { justify-content: flex-start; }

/* ---------- page hero / crumbs ---------- */
.page-hero { padding: clamp(28px, 5vw, 64px) 0 clamp(28px, 4vw, 48px); }
.page-hero-compact { padding-bottom: clamp(16px, 2vw, 24px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 18px; font-size: 0.9rem; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs > span:last-child { color: var(--ink-2); }

/* ---------- listing filters ---------- */
.filters { display: grid; gap: 16px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.filter-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.filters-toggle { display: none; }
.filters-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 3px; background: var(--ink); color: #fff; font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--r-s);
  border: 1px solid var(--line-2);
  font-weight: 600;
  font-size: 0.93rem;
  cursor: pointer;
  background: var(--surface);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.chip span:hover { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.filter-panel { display: grid; gap: 16px; }
.results-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: 24px 0 24px; }
.results-count { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.active-list { display: flex; flex-wrap: wrap; gap: 6px; }
.active-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 8px 0 10px;
  border-radius: var(--r-s);
  border: 1px solid var(--line-2);
  background: var(--surface);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}
.active-tag svg { width: 16px; height: 16px; color: var(--muted); }
.active-tag:hover { border-color: var(--ink); }
.empty { text-align: center; padding: 56px 16px; border: 1px dashed var(--line-2); border-radius: var(--r); }
.empty h2 { font-stretch: 108%; font-weight: 700; font-size: 1.6rem; margin: 0 0 8px; }
.empty p { color: var(--muted); margin: 0 auto 22px; max-width: 46ch; }
.empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- detail ---------- */
.detail-top { padding: clamp(20px, 4vw, 44px) 0 clamp(20px, 3vw, 28px); }
.detail-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 24px clamp(32px, 5vw, 72px); align-items: end; }
.detail-kind { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 14px; font-weight: 600; color: var(--muted); font-size: 0.95rem; }
.detail-title { font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.12; max-width: 32ch; overflow-wrap: break-word; }
.detail-place { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; color: var(--ink-2); font-weight: 600; }
.detail-place svg { color: var(--red-ui); }
.detail-area { margin: 6px 0 0 26px; color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.price-box { padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.price-label { margin: 0; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.price-main { margin: 2px 0 0; font-stretch: 108%; font-weight: 750; font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.1; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }
.price-main.is-request { font-size: 1.4rem; }
.price-notes { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; font-size: 0.92rem; color: var(--ink-2); }
.price-notes li { padding-left: 14px; position: relative; }
.price-notes li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 6px; height: 1px; background: var(--muted); }
.price-ppm2 { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--muted); }
.price-ppm2 strong { color: var(--ink); font-variant-numeric: tabular-nums; }

.gallery { position: relative; }
.gallery-grid { display: grid; gap: 8px; border-radius: var(--r); overflow: hidden; height: clamp(300px, 46vw, 580px); }
.gallery-n1 { grid-template-columns: 1fr; }
.gallery-n2 { grid-template-columns: 2fr 1fr; }
.gallery-n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery-n3 .gallery-item:first-child { grid-row: span 2; }
.gallery-n4 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery-n4 .gallery-item:first-child { grid-row: span 2; }
.gallery-n4 .gallery-item:nth-child(4) { grid-column: span 2; }
.gallery-n5 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery-n5 .gallery-item:first-child { grid-row: span 2; }
.gallery-item { position: relative; border: 0; padding: 0; margin: 0; cursor: zoom-in; overflow: hidden; background: var(--surface-2); min-height: 0; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery-item.is-portrait img { object-position: 50% 45%; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(21 23 26 / 0.55); color: #fff; font-weight: 650; font-size: 1.1rem; }
.gallery-all { position: absolute; right: calc(var(--gutter) + 12px); bottom: 12px; min-height: 42px; box-shadow: 0 0 0 1px var(--line); }

.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0e0f10; color: #fff; }
.lightbox::backdrop { background: #0e0f10; }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: fade 0.3s var(--ease); }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lightbox-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 72px; touch-action: pan-y; }
.lightbox-stage img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lb-btn { width: 48px; height: 48px; border-radius: var(--r-s); border: 1px solid rgb(255 255 255 / 0.25); background: rgb(255 255 255 / 0.06); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb-btn:hover { background: rgb(255 255 255 / 0.18); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lightbox-thumbs { display: flex; gap: 6px; overflow-x: auto; padding: 12px 16px 16px; scrollbar-width: thin; }
.lightbox-thumbs button { flex: none; width: 76px; height: 56px; border-radius: 3px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; opacity: 0.5; background: #222; }
.lightbox-thumbs button.is-active { opacity: 1; border-color: #fff; }
.lightbox-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(28px, 5vw, 72px); align-items: start; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: 0 24px; margin: 0 0 clamp(32px, 4vw, 48px); border-top: 1px solid var(--ink); }
.facts div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 650; font-size: 1.04rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.detail-h2 { font-stretch: 108%; font-weight: 700; letter-spacing: -0.01em; font-size: clamp(1.3rem, 2vw, 1.55rem); margin: 0 0 16px; }
.prose { overflow-wrap: break-word; max-width: 68ch; color: var(--ink-2); font-size: 1.04rem; line-height: 1.7; }
.prose p { margin: 0 0 1em; }
.prose h3 { margin: 1.6em 0 0.5em; font-size: 1.04rem; font-weight: 700; color: var(--ink); }
.prose h3:first-child { margin-top: 0; }
.detail-main .prose { margin-bottom: clamp(32px, 4vw, 48px); }
.translated-note { margin: -24px 0 40px; color: var(--muted); font-size: 0.9rem; }
.detail-video { width: 100%; max-height: 70vh; background: #000; border-radius: var(--r); margin-bottom: clamp(32px, 4vw, 48px); }
.map-link { display: flex; align-items: center; gap: 16px; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; max-width: 560px; }
.map-link > svg:first-child { width: 26px; height: 26px; color: var(--red-ui); }
.map-link span { display: grid; flex: 1; min-width: 0; }
.map-link small { color: var(--muted); font-weight: 500; }
.map-link:hover { border-color: var(--ink); }

.agent-card { position: sticky; top: calc(var(--header-h) + 20px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 16px; }
.agent { display: flex; align-items: center; gap: 14px; }
.agent img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: top; }
.agent div { display: grid; }
.agent strong { font-stretch: 106%; font-weight: 700; font-size: 1.1rem; }
.agent span { color: var(--muted); font-size: 0.92rem; }
.agent-note { margin: 0; color: var(--ink-2); }
.agent-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.agent-actions .btn { min-width: 0; padding: 0 12px; }
.enquiry { display: grid; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.enquiry-h { margin: 0; font-size: 1.05rem; font-weight: 700; }
.enquiry-note { margin: 0; font-size: 0.84rem; color: var(--muted); line-height: 1.5; }
.enquiry-status { margin: 0; padding: 10px 12px; border-radius: var(--r-s); background: var(--bg); border: 1px solid var(--line); font-size: 0.9rem; }
.similar { border-top: 1px solid var(--line); }
.similar .section-title { margin-bottom: clamp(24px, 3vw, 40px); }
.sticky-cta { display: none; }

/* ---------- about / contact / legal ---------- */
.about-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 28px clamp(28px, 5vw, 72px); align-items: end; }
.about-quote { margin: 0; padding-left: 20px; border-left: 2px solid var(--red); font-stretch: 106%; font-weight: 600; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.4; }
.about-quote cite { display: block; margin-top: 14px; font-stretch: 100%; font-style: normal; font-weight: 400; font-size: 1rem; color: var(--muted); line-height: 1.55; }
.values { border-top: 1px solid var(--line); }
.values-quote { margin-top: 28px; font-size: 1.05rem; font-weight: 500; color: var(--ink-2); }
.values-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 24px clamp(32px, 5vw, 72px); }
.values-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(24px, 4vw, 48px); }
.values-list h3 { margin: 0 0 6px; font-size: 1.1rem; font-weight: 700; }
.values-list p { margin: 0; color: var(--ink-2); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(20px, 3vw, 40px); align-items: stretch; }
.contact-cards { display: grid; gap: 10px; align-content: start; }
.contact-card { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color 0.2s; }
.contact-card:hover { border-color: var(--ink); }
.contact-card > svg { width: 24px; height: 24px; color: var(--green-ui); }
.contact-card span { display: grid; min-width: 0; }
.contact-card small { color: var(--muted); font-weight: 500; font-size: 0.86rem; }
.contact-card strong { font-size: 1.1rem; font-weight: 650; overflow-wrap: anywhere; }
.hours { padding: 16px 20px; border-radius: var(--r); border: 1px solid var(--line); }
.hours h2 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 700; }
.hours p, .hours-row { display: flex; justify-content: space-between; gap: 16px; margin: 4px 0; }
.map { border-radius: var(--r); overflow: hidden; min-height: 420px; background: var(--surface-2); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; filter: grayscale(0.5); }
.prose-legal { max-width: 78ch; }
.prose-legal h2 { font-stretch: 106%; font-weight: 700; font-size: 1.25rem; color: var(--ink); margin: 1.6em 0 0.5em; }
.prose-legal .li { padding-left: 18px; position: relative; }
.prose-legal .li::before { content: ""; position: absolute; left: 2px; top: 0.75em; width: 6px; height: 1px; background: var(--ink-2); }

/* ---------- footer ---------- */
.site-footer { background: var(--surface-2); padding-top: clamp(48px, 6vw, 72px); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-bottom: 40px; }
.footer-brand .wordmark { font-size: 1.5rem; }
.footer-claim { font-stretch: 106%; font-weight: 600; font-size: 1.2rem; line-height: 1.4; margin: 18px 0 8px; max-width: 28ch; }
.footer-langs { color: var(--muted); margin: 0; }
.footer-col { display: grid; gap: 6px; align-content: start; }
.footer-col h2 { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.footer-col a { text-decoration: none; font-weight: 550; width: fit-content; padding: 2px 0; }
.footer-col a:hover { color: var(--green-ui); text-decoration: underline; }
.footer-col p { margin: 2px 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; border-top: 1px solid var(--line-2); padding-block: 20px 28px; font-size: 0.88rem; color: var(--muted); }
.footer-bottom p { margin: 0; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-bottom a { text-decoration: none; padding: 4px 0; }
.footer-bottom a:hover { color: var(--ink); text-decoration: underline; }

/* social icons */
.socials { display: flex; gap: 8px; margin-top: 18px; }
.social { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-s); border: 1px solid var(--line-2); color: var(--ink); transition: color 0.2s, background-color 0.2s, border-color 0.2s; }
.social svg { width: 20px; height: 20px; }
.social-ig:hover, .social-ig:focus-visible { background: #d6249f; border-color: #d6249f; color: #fff; }
.social-fb:hover, .social-fb:focus-visible { background: #1877f2; border-color: #1877f2; color: #fff; }
.social-wa:hover, .social-wa:focus-visible { background: #1da851; border-color: #1da851; color: #fff; }
.socials-dark { margin-top: 0; justify-content: center; }
.socials-dark .social { width: 50px; height: 50px; border-color: rgb(255 255 255 / 0.22); color: #fff; }

/* ---------- reveal (one quiet fade, no clip/split effects) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-intro { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; align-items: end; }
  .team-intro .eyebrow, .team-intro .section-title { grid-column: 1; }
  .team-intro .team-lead { grid-column: 2; grid-row: 1 / span 2; margin: 0; align-self: end; }
  .team-intro .team-contact { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 16px; }
}
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 960px) {
  .search { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .search-deal { grid-column: 1 / -1; justify-self: start; }
  .search-submit { grid-column: 1 / -1; }
  .about-hero, .contact-grid, .seller-inner, .values-grid { grid-template-columns: 1fr; }
  .detail-head { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .agent-card { position: static; max-width: 560px; }
  .filter-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  /* Hero "newest" row: swipe instead of a tall stack. */
  .scroller { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(260px, 78%); overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; scroll-padding: 0 var(--gutter); scrollbar-width: none; }
  .scroller::-webkit-scrollbar { display: none; }
  .scroller > * { scroll-snap-align: start; }
  .grid:not(.scroller) { grid-template-columns: 1fr; gap: 36px; }
  .filter-row { flex-wrap: wrap; }
  .filter-row .seg { flex: 1 1 100%; }
  .filter-row .seg label { flex: 1; text-align: center; }
  .filter-row .seg span { padding: 0 8px; }
  .filters-toggle { display: inline-flex; width: 100%; min-height: 46px; }
  .filter-panel { display: none; }
  .filters.is-open .filter-panel { display: grid; }
  .filter-fields { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .gallery-grid { height: auto; grid-template-columns: 1fr !important; grid-template-rows: none !important; aspect-ratio: 4 / 3; }
  .gallery-item:not(:first-child) { display: none; }
  .gallery-item:first-child { grid-row: auto !important; }
  .lightbox-stage { padding: 0 6px; }
  .lb-prev, .lb-next { display: none; }
  .sticky-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgb(245 243 238 / 0.97);
    border-top: 1px solid var(--line);
  }
  .sticky-price { margin: 0; font-weight: 720; font-size: 1.05rem; line-height: 1.2; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .page-detail .site-footer { padding-bottom: 76px; }
  .seller-actions .btn { justify-content: center; }
  .section-head .tabs { width: 100%; }
  .section-head .tabs button { flex: 1; }
  .values-list { grid-template-columns: 1fr; }
  /* centred footer on phones */
  .footer-top { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 32px; }
  .footer-brand { display: grid; justify-items: center; }
  .footer-claim { margin-left: auto; margin-right: auto; }
  .footer-brand .socials { justify-content: center; }
  .footer-col { justify-items: center; width: 100%; max-width: 320px; }
  .hours-row { justify-content: center; gap: 10px; }
  .hours-row span:first-child { color: var(--muted); }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
  .footer-bottom nav { justify-content: center; }
  .team-intro { grid-template-columns: 1fr; }
  .team-intro .team-lead { grid-column: 1; grid-row: auto; margin-top: 16px; }
}
@media (max-width: 520px) {
  .search { grid-template-columns: 1fr; padding: 12px; }
  .search-deal { justify-self: stretch; display: grid; grid-template-columns: 1fr 1fr; }
  .search-deal span { text-align: center; }
  .filter-fields { grid-template-columns: 1fr; }
  .team-grid { gap: 24px 14px; }
  .person h3 { font-size: 1rem; }
  .person p { font-size: 0.88rem; }
  .agent-card { padding: 18px; }
}
@media (max-width: 380px) {
  .header-inner { gap: 10px; }
  .wordmark { font-size: 1.08rem; }
  .lang-btn { padding: 0 8px; gap: 5px; }
}
@media (max-width: 360px) {
  .agent-actions { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =====================================================================
   v3 — expressive layer: photo-led hero, motion, rich sections
   ===================================================================== */
.hl { color: var(--green); }
.process .hl, .seller .hl { color: var(--green-l); }
.hero-title, .page-title, .section-title, .seller-title, .featured-title { font-stretch: 122%; font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; }
.section-title { font-size: clamp(2rem, 4.4vw, 3.6rem); max-width: 18ch; }
.page-title { font-size: clamp(2.3rem, 6vw, 4.8rem); max-width: 16ch; }
.btn { border-radius: 999px; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 1.02rem; }
.btn-primary:hover, .btn-dark:hover { box-shadow: 0 12px 28px -12px rgb(0 0 0 / 0.45); }
.header-call, .lang-btn, .menu-toggle { border-radius: 999px; }
.lang-menu { border-radius: 16px; animation: pop 0.25s var(--ease); transform-origin: top right; }
.lang-menu a { border-radius: 10px; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(0.97); } }

/* ---------- hero ---------- */
.hero { padding: clamp(20px, 3vw, 40px) 0 clamp(36px, 5vw, 64px); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  grid-template-areas: "copy wall" "form wall";
  grid-template-rows: auto 1fr;
  column-gap: clamp(28px, 4vw, 64px);
  align-items: end;
}
.hero-copy { grid-area: copy; padding-top: clamp(24px, 5vw, 72px); }
.hero-form { grid-area: form; align-self: start; padding-bottom: 12px; }
.hero-wall { grid-area: wall; }
.hero-title { font-size: clamp(2.8rem, 5.6vw, 5.6rem); line-height: 0.94; letter-spacing: -0.045em; max-width: 12.5ch; }
.hero .hero-lead { margin: 26px 0 28px; max-width: 46ch; }
.hero .search {
  margin: 0;
  max-width: 640px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  padding: 12px;
  border-radius: 24px;
  border-color: var(--line);
  box-shadow: 0 2px 4px rgb(21 20 18 / 0.04), 0 30px 60px -30px rgb(21 20 18 / 0.4);
}
.hero .search-deal { grid-column: 1 / -1; justify-self: start; border-radius: 999px; padding: 4px; }
.search-deal span, .seg span { border-radius: 999px; }
.search-deal small { font-size: 0.8em; opacity: 0.55; margin-left: 2px; font-variant-numeric: tabular-nums; }
.field select, .field input, .field textarea { border-radius: 14px; }
.search-submit { border-radius: 14px; padding: 0 26px; }
.hero-call { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; min-height: 44px; text-decoration: none; color: var(--ink-2); }
.hero-call svg { color: var(--green); }
.hero-call strong { color: var(--ink); white-space: nowrap; }
.hero-call:hover strong { color: var(--green-ui); }

/* the wall: two columns of real listings drifting in opposite directions */
.hero-wall {
  position: relative;
  height: clamp(580px, calc(100svh - var(--header-h) - 40px), 820px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 10%, #000 90%, transparent 100%);
}
.wall-col { overflow: hidden; }
.wall-col-rev { margin-top: -90px; }
.wall-track { display: grid; gap: 14px; animation: wall-up 70s linear infinite; will-change: transform; }
.wall-col-rev .wall-track { animation-name: wall-down; animation-duration: 82s; }
.hero-wall:hover .wall-track, .hero-wall:focus-within .wall-track { animation-play-state: paused; }
.wall-tile { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--surface-2); text-decoration: none; color: #fff; isolation: isolate; }
.wall-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.wall-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgb(12 11 9 / 0.78)); }
.wall-tile:hover img { transform: scale(1.07); }
.wall-info { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 14px; display: grid; gap: 2px; transition: transform 0.5s var(--ease); }
.wall-tile:hover .wall-info { transform: translateY(-4px); }
.wall-kind { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.88; }
.wall-info strong { font-stretch: 110%; font-weight: 750; font-size: 1.2rem; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
@keyframes wall-up { to { transform: translateY(calc(-50% - 7px)); } }
@keyframes wall-down { from { transform: translateY(calc(-50% - 7px)); } to { transform: translateY(0); } }

/* ---------- marquee of places ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 20px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; white-space: nowrap; font-stretch: 125%; font-weight: 800; letter-spacing: -0.03em; font-size: clamp(1.6rem, 3.4vw, 2.8rem); line-height: 1.1; }
.marquee-track b { font-weight: inherit; }
.mq-solid { color: var(--ink); }
.mq-outline { color: transparent; -webkit-text-stroke: 1.2px var(--ink); }
.marquee-track i { width: 14px; height: 14px; margin: 0 28px; border-radius: 50%; background: var(--red); flex: none; }
.marquee-track i:nth-of-type(2n) { background: var(--green); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block: clamp(36px, 6vw, 72px); }
.stat { padding: 6px 24px; border-left: 1px solid var(--line); display: grid; gap: 6px; text-decoration: none; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num { font-stretch: 125%; font-weight: 800; font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); font-weight: 500; }
a.stat:hover .stat-num { color: var(--green-ui); }

/* ---------- cards ---------- */
.listings-home { background: var(--surface); border-block: 0; border-radius: 40px 40px 0 0; }
.tabs { border: 0; padding: 5px; gap: 4px; background: var(--surface-2); border-radius: 999px; }
.tabs button { border-radius: 999px; padding: 10px 20px; min-height: 44px; }
.tabs button[aria-selected="true"] { background: var(--surface); box-shadow: 0 1px 4px rgb(21 20 18 / 0.12); }
.tabs button[aria-selected="true"]::after { display: none; }
.card-media { border-radius: var(--r); margin-bottom: 16px; }
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgb(21 20 18 / 0.3)); opacity: 0; transition: opacity 0.5s; pointer-events: none; }
.card-link:hover .card-media::after { opacity: 1; }
.card-media img { transition: transform 1.1s var(--ease); }
.card-link:hover .card-media img { transform: scale(1.06); }
.badge { border-radius: 999px; padding: 5px 11px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; }
.badge-predaj { background: var(--ink); }
.badge-prenajom { background: var(--green-ui); }
.badge-reserved { background: #f2b33d; color: var(--ink); }
.badges { left: 12px; top: 12px; }
.card-count { border-radius: 999px; padding: 4px 9px; right: 12px; bottom: 12px; background: rgb(21 20 18 / 0.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.card-go { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; opacity: 0; transform: scale(0.6) rotate(-45deg); transition: opacity 0.35s, transform 0.5s var(--ease); box-shadow: 0 8px 20px -8px rgb(0 0 0 / 0.45); z-index: 1; }
.card-link:hover .card-go, .card-link:focus-visible .card-go { opacity: 1; transform: scale(1) rotate(-45deg); }
.card-kind { font-size: 0.78rem; font-weight: 650; letter-spacing: 0.07em; text-transform: uppercase; }
.card-price { font-stretch: 112%; font-size: 1.42rem; font-weight: 780; letter-spacing: -0.02em; }
.card-title { border-top: 0; padding-top: 0; margin-top: 8px; color: var(--muted); }
@media (hover: none) { .card-go { display: none; } }

/* ---------- featured ---------- */
.featured { background: var(--surface); padding-top: 0; }
.featured-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding-top: clamp(48px, 7vw, 96px); border-top: 1px solid var(--line); }
.featured-media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.featured-main, .featured-thumb { position: relative; display: block; overflow: hidden; border-radius: var(--r); background: var(--surface-2); }
.featured-main { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.featured-thumb { aspect-ratio: 16 / 10; }
.featured-main img, .featured-thumb img { width: 100%; height: 100%; object-fit: cover; }
.featured-title { font-size: clamp(1.7rem, 2.8vw, 2.5rem); line-height: 1.05; margin: 0 0 16px; text-wrap: balance; font-stretch: 112%; font-weight: 760; letter-spacing: -0.025em; }
.featured-place { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ink-2); font-weight: 600; }
.featured-place svg { color: var(--red); }
.featured-facts { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 24px 0; padding: 18px 0; border-block: 1px solid var(--line); }
.featured-facts dt { font-size: 0.8rem; color: var(--muted); }
.featured-facts dd { margin: 2px 0 0; font-stretch: 112%; font-weight: 750; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.featured-lead { margin: 0 0 28px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.featured-foot { display: grid; gap: 18px; }
.featured-price { display: block; font-stretch: 122%; font-weight: 800; letter-spacing: -0.04em; font-size: clamp(2.2rem, 3.8vw, 3.2rem); line-height: 1; font-variant-numeric: tabular-nums; }
.featured-sub { display: block; margin-top: 6px; color: var(--muted); }
.featured-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- kinds ---------- */
.kinds { border-top: 0; }
.kind-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-top: clamp(28px, 4vw, 48px); }
.kind { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; text-decoration: none; color: #fff; background: var(--ink); display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; isolation: isolate; }
.kind img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.kind::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(12 11 9 / 0.05) 30%, rgb(12 11 9 / 0.8)); }
.kind:hover img { transform: scale(1.08); }
.kind-label { font-stretch: 115%; font-weight: 780; letter-spacing: -0.02em; font-size: clamp(1.2rem, 1.7vw, 1.5rem); line-height: 1.08; }
.kind-count { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; color: rgb(255 255 255 / 0.85); font-weight: 600; font-size: 0.92rem; }
.kind-count svg { transition: transform 0.35s var(--ease); }
.kind:hover .kind-count svg { transform: translateX(4px); }
.kind-all { background: var(--green-ui); justify-content: space-between; }
.kind-all::before { display: none; }
.kind-all:hover { background: #006431; }
.kind-all-num { font-stretch: 125%; font-weight: 800; font-size: clamp(3rem, 6vw, 4.8rem); line-height: 1; letter-spacing: -0.04em; }

/* ---------- process (dark forest band) ---------- */
.process { background: var(--forest); color: #fff; border-top: 0; position: relative; overflow: hidden; }
.process::before { content: ""; position: absolute; width: 640px; height: 640px; left: -220px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgb(0 146 70 / 0.35), transparent 65%); pointer-events: none; }
.process .wrap { position: relative; }
.process .eyebrow-light { color: rgb(255 255 255 / 0.7); }
.process-motto { margin: 0; max-width: 40ch; color: rgb(255 255 255 / 0.72); font-size: 1.05rem; }
.process-h { border-bottom-color: rgb(255 255 255 / 0.25); color: #fff; font-stretch: 112%; font-weight: 750; }
.steps { gap: 0; }
.steps li { grid-template-columns: 64px minmax(0, 1fr); padding: 18px 0; border-bottom: 1px solid rgb(255 255 255 / 0.12); transition: padding-left 0.45s var(--ease); }
.steps li:hover { padding-left: 8px; }
.step-num { width: auto; height: auto; border: 0; background: none; display: block; font-stretch: 125%; font-weight: 800; font-size: 1.9rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--green-l); }
.steps h4 { color: #fff; margin-top: 2px; font-size: 1.12rem; }
.steps p { color: rgb(255 255 255 / 0.7); }
.process .link-arrow { color: #fff; border-color: rgb(255 255 255 / 0.35); }
.process .link-arrow:hover { border-color: #fff; }

/* ---------- team ---------- */
.team-section { border-top: 0; }
.person-photo img { transition: transform 1.2s var(--ease); }
.person:hover .person-photo img { transform: scale(1.05); }
.person h3 { font-stretch: 115%; font-weight: 780; font-size: 1.35rem; letter-spacing: -0.02em; }

/* ---------- seller CTA with photo fan ---------- */
.seller { background: transparent; padding: 0 clamp(8px, 2vw, 24px) clamp(8px, 2vw, 24px); color: #fff; }
.seller-inner { position: relative; overflow: hidden; max-width: none; background: var(--ink); border-radius: 32px; padding: clamp(36px, 6vw, 88px) clamp(24px, 6vw, 80px); grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); grid-template-areas: "pics copy"; align-items: center; }
.seller-inner::after { content: ""; position: absolute; width: 560px; height: 560px; right: -180px; top: -240px; border-radius: 50%; background: radial-gradient(circle, rgb(0 146 70 / 0.38), transparent 65%); pointer-events: none; }
.seller-copy { grid-area: copy; position: relative; z-index: 1; }
.seller-title { font-size: clamp(1.9rem, 3.6vw, 3.1rem); }
.seller-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.seller-actions .btn { justify-content: center; }
.seller-pics { grid-area: pics; position: relative; height: clamp(260px, 26vw, 360px); }
.seller-pics img { position: absolute; width: 62%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; box-shadow: 0 24px 50px -20px rgb(0 0 0 / 0.7); transition: transform 0.9s var(--ease); }
.seller-pics img:nth-child(1) { left: 0; top: 4%; transform: rotate(-7deg); }
.seller-pics img:nth-child(2) { left: 22%; top: 30%; transform: rotate(3deg); z-index: 1; }
.seller-pics img:nth-child(3) { left: 38%; top: 0; transform: rotate(9deg); }
.seller-inner:hover .seller-pics img:nth-child(1) { transform: rotate(-11deg) translate(-8px, -4px); }
.seller-inner:hover .seller-pics img:nth-child(3) { transform: rotate(13deg) translate(10px, -6px); }

/* ---------- inner pages ---------- */
.filters { border-radius: 24px; padding: 16px; box-shadow: 0 2px 4px rgb(21 20 18 / 0.03), 0 24px 48px -32px rgb(21 20 18 / 0.35); }
.seg { border-radius: 999px; padding: 4px; }
.chip span { border-radius: 999px; padding: 0 16px; }
.active-tag { border-radius: 999px; padding: 0 10px 0 14px; }
.filters-toggle { border-radius: 999px; }
.price-box { border-radius: var(--r); box-shadow: 0 24px 48px -32px rgb(21 20 18 / 0.35); }
.price-main { font-stretch: 118%; font-weight: 800; }
.gallery-grid { border-radius: 24px; }
.gallery-all { border-radius: 999px; }
.agent-card { border-radius: 24px; box-shadow: 0 24px 48px -32px rgb(21 20 18 / 0.35); }
.facts { border-top: 0; gap: 10px; }
.facts div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.detail-title { font-stretch: 115%; font-weight: 780; letter-spacing: -0.025em; }
.contact-card { transition: border-color 0.25s, transform 0.4s var(--ease); }
.contact-card:hover { transform: translateX(4px); }
.lightbox-thumbs button { border-radius: 8px; }
.lb-btn { border-radius: 50%; }
.empty { border-radius: 24px; }
.social { border-radius: 50%; }
.mm-langs a { border-radius: 999px; }

/* about collage */
.about-hero { align-items: center; }
.about-collage { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(70px, 8vw, 110px); gap: 12px; }
.about-collage > span { position: relative; overflow: hidden; border-radius: 16px; background: var(--surface-2); }
.about-collage img { width: 100%; height: 100%; object-fit: cover; }
.ac-0 { grid-column: 1 / 4; grid-row: 1 / 4; }
.ac-0 img, .ac-3 img { object-position: 50% 20%; }
.ac-1 { grid-column: 4 / 7; grid-row: 1 / 3; }
.ac-2 { grid-column: 4 / 7; grid-row: 3 / 5; }
.ac-3 { grid-column: 1 / 4; grid-row: 4 / 7; }
.about-collage .about-quote { grid-column: 4 / 7; grid-row: 5 / 7; align-self: center; font-size: clamp(1rem, 1.4vw, 1.2rem); }

/* ---------- motion ---------- */
.js [data-split] .w, .js .split-reveal .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.js [data-split] .w > span { display: inline-block; transform: translateY(108%); animation: rise 0.95s var(--ease) forwards; animation-delay: calc(var(--i) * 60ms + 100ms); }
.js .split-reveal .w > span { display: inline-block; transform: translateY(108%); transition: transform 0.95s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.js .split-reveal.is-in .w > span { transform: none; }
@keyframes rise { to { transform: none; } }
.js .reveal { transform: translateY(22px); }
.js .reveal.is-in { transition: opacity 0.85s var(--ease) var(--d, 0ms), transform 0.85s var(--ease) var(--d, 0ms); }
.js .card.reveal .card-media { clip-path: inset(14% 0 0 0 round var(--r)); transition: clip-path 1.2s var(--ease); }
.js .card.reveal.is-in .card-media { clip-path: inset(0 0 0 0 round var(--r)); }
.js .wipe { clip-path: inset(100% 0 0 0 round var(--r)); transition: clip-path 1.3s var(--ease) var(--d, 0ms); }
.js .wipe.is-in { clip-path: inset(0 0 0 0 round var(--r)); }
.wipe img { transform: scale(1.15); transition: transform 1.8s var(--ease) var(--d, 0ms); }
.wipe.is-in img { transform: scale(1); }
.featured-main.is-in:hover img { transform: scale(1.04); transition-delay: 0ms; }
.hero-wall { animation: wall-in 1.2s var(--ease) both 0.15s; }
@keyframes wall-in { from { opacity: 0; transform: translateY(40px); } }

/* ---------- v3 responsive ---------- */
@media (max-width: 1180px) {
  .kind-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kind { aspect-ratio: 4 / 3; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "wall" "form"; grid-template-rows: none; }
  .hero-copy { padding-top: 8px; }
  .hero-title { max-width: 12ch; }
  /* the wall turns into two ribbons right under the headline */
  .hero-wall { height: auto; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 24px calc(var(--gutter) * -1) 0; -webkit-mask-image: none; mask-image: none; }
  .wall-col-rev { margin-top: 0; }
  .wall-track { display: flex; width: max-content; gap: 10px; animation-name: wall-left; animation-duration: 60s; }
  .wall-col-rev .wall-track { animation-name: wall-right; animation-duration: 70s; }
  .wall-tile { width: clamp(210px, 34vw, 280px); aspect-ratio: 4 / 3; border-radius: 14px; }
  .wall-info { left: 12px; right: 12px; bottom: 10px; }
  .wall-info strong { font-size: 1.05rem; }
  .wall-kind { font-size: 0.68rem; }
  .hero .hero-lead { margin-top: 22px; }
  .hero .search { max-width: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .featured-grid { grid-template-columns: minmax(0, 1fr); }
  .seller-inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "pics" "copy"; }
  .seller-pics { height: clamp(200px, 48vw, 320px); max-width: 520px; width: 100%; }
  .about-collage { max-width: 560px; }
}
@keyframes wall-left { to { transform: translateX(calc(-50% - 5px)); } }
@keyframes wall-right { from { transform: translateX(calc(-50% - 5px)); } to { transform: translateX(0); } }
@media (max-width: 760px) {
  .listings-home { border-radius: 28px 28px 0 0; }
  .kind-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kind { aspect-ratio: 4 / 5; padding: 16px; }
  .stat { padding: 0 0 0 16px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .seller-inner { border-radius: 24px; text-align: center; justify-items: center; }
  .seller-inner .eyebrow { justify-content: center; }
  .seller-title, .seller-text { margin-left: auto; margin-right: auto; }
  .seller-actions { justify-content: center; }
  .seller-actions .btn { flex: 1 1 100%; }
  .seller-pics { justify-self: center; }
  .steps li { grid-template-columns: 52px minmax(0, 1fr); }
  .step-num { font-size: 1.6rem; }
}
@media (max-width: 520px) {
  .hero .search { grid-template-columns: 1fr 1fr; border-radius: 20px; }
  .hero .search-deal { justify-self: stretch; }
  .hero .search .search-submit { grid-column: 1 / -1; }
  .wall-tile { width: 196px; }
  .marquee { padding: 14px 0; }
  .marquee-track i { margin: 0 18px; width: 10px; height: 10px; }
}
@media (max-width: 380px) {
  .hero .search { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .wall-track, .marquee-track, .hero-wall { animation: none !important; }
  .hero-wall .wall-col { overflow: auto; }
  .js [data-split] .w > span, .js .split-reveal .w > span { transform: none; animation: none; }
  .js .wipe, .js .card.reveal .card-media { clip-path: none; }
  .wipe img { transform: none; }
}

/* catalogue hero: photo fan beside the title */
.listing-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 32px; align-items: center; }
.page-pics { grid-area: auto; height: clamp(220px, 20vw, 300px); animation: wall-in 1.1s var(--ease) both 0.2s; }
.page-pics img { width: 58%; }
.page-pics img:nth-child(3) { left: 36%; }
.listing-hero:hover .page-pics img:nth-child(1) { transform: rotate(-11deg) translate(-8px, -4px); }
.listing-hero:hover .page-pics img:nth-child(3) { transform: rotate(13deg) translate(10px, -6px); }
@media (max-width: 960px) { .page-pics { display: none; } .listing-hero { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .page-pics { animation: none; } }

/* about collage on tablets/phones: one compact row of four, quote underneath */
@media (max-width: 960px) {
  .about-collage { max-width: none; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: auto; gap: 8px; }
  .about-collage > span { grid-column: auto; grid-row: auto; aspect-ratio: 3 / 4; border-radius: 12px; }
  .about-collage .ac-0 { order: 1; }
  .about-collage .ac-1 { order: 2; }
  .about-collage .ac-2 { order: 3; }
  .about-collage .ac-3 { order: 4; }
  .about-collage .about-quote { order: 5; grid-column: 1 / -1; grid-row: auto; margin-top: 12px; font-size: 1.1rem; }
  .seller-pics { height: clamp(180px, 40vw, 260px); max-width: 420px; }
}

/* team block on phones: contacts as a clean list, names never squeezed */
@media (max-width: 760px) {
  .team-intro .team-contact { display: grid; gap: 2px; }
  .team-intro .section-title { max-width: none; }
}
@media (max-width: 520px) {
  .person h3 { font-size: 1.02rem; letter-spacing: -0.01em; }
  .person p { font-size: 0.85rem; line-height: 1.4; }
}

@media (max-width: 760px) { .seller-pics { margin: 18px auto 24px; } }

/* =====================================================================
   v4 — hero with the provided house photo + listings ribbon
   ===================================================================== */
.hero { padding: clamp(16px, 2.4vw, 32px) 0 clamp(28px, 4vw, 48px); }
.hero-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  grid-template-areas: "copy photo" "form photo";
  grid-template-rows: auto 1fr;
  column-gap: clamp(28px, 4vw, 64px);
  align-items: end;
}
.hero-copy { padding-top: clamp(16px, 4vw, 56px); }
.hero-title { font-size: clamp(2.4rem, 3.9vw, 3.9rem); line-height: 1; letter-spacing: -0.035em; max-width: 15ch; }
.hero-photo {
  grid-area: photo;
  position: relative;
  margin: 0;
  align-self: center;
  height: clamp(460px, calc(100svh - var(--header-h) - 120px), 640px);
  border-radius: 28px;
  overflow: hidden;
  background: #1c2433;
  box-shadow: 0 40px 80px -48px rgb(14 20 30 / 0.55);
  animation: photo-in 1.3s var(--ease) both 0.1s;
}
.hero-photo picture, .hero-photo img { display: block; width: 100%; height: 100%; }
.hero-photo img { position: absolute; inset: 0; object-fit: cover; object-position: 56% 58%; animation: photo-zoom 14s ease-out both; }
.hero-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgb(10 14 22 / 0) 60%, rgb(10 14 22 / 0.28)); }
@keyframes photo-in { from { opacity: 0; transform: translateY(24px) scale(0.985); } }
@keyframes photo-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero .search { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hero .search .search-submit { grid-column: 1 / -1; }
.hero .search-deal span { padding: 0 20px; }

/* listings ribbon under the hero: real offers drifting slowly, pauses on hover/focus */
.ribbon { overflow: hidden; padding: 8px 0 clamp(8px, 2vw, 16px); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%); }
.ribbon-track { display: flex; gap: 14px; width: max-content; animation: wall-left 80s linear infinite; }
.ribbon:hover .ribbon-track, .ribbon:focus-within .ribbon-track { animation-play-state: paused; }
.ribbon .wall-tile { width: clamp(220px, 22vw, 300px); aspect-ratio: 4 / 3; border-radius: 16px; flex: none; }
@keyframes wall-left { to { transform: translateX(calc(-50% - 7px)); } }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "photo" "form"; grid-template-rows: none; }
  .hero-title { max-width: 14ch; }
  .hero-photo { height: auto; aspect-ratio: 4 / 3; margin: 22px calc(var(--gutter) * -1) 0; border-radius: 0; box-shadow: none; }
  .hero-photo img { object-position: 58% 60%; }
  .ribbon { padding-top: 16px; }
}
@media (min-width: 600px) and (max-width: 960px) {
  .hero-photo { margin-left: 0; margin-right: 0; border-radius: 22px; aspect-ratio: 16 / 10; }
}
@media (max-width: 520px) {
  .hero-title { font-size: clamp(2.05rem, 9.4vw, 2.6rem); }
  .ribbon .wall-tile { width: 210px; border-radius: 14px; }
}
@media (max-width: 380px) {
  .hero .search { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo, .hero-photo img, .ribbon-track { animation: none !important; }
  .ribbon { overflow-x: auto; }
}

.contact-social { padding: 16px 20px; border-radius: var(--r); border: 1px solid var(--line); }
.contact-social h2 { margin: 0; font-size: 1.05rem; font-weight: 700; }
.contact-social .socials { margin-top: 12px; }

/* =====================================================================
   v4b — hero: photo panel (short title on the sky + search) | moving wall
   ===================================================================== */
.hero-v4 { padding: clamp(14px, 2vw, 28px) 0 clamp(36px, 5vw, 64px); }
.hero-v4 .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  grid-template-areas: "photo wall";
  grid-template-rows: none;
  column-gap: clamp(14px, 1.6vw, 20px);
  align-items: stretch;
}
.hero-v4 .hero-photo {
  grid-area: photo;
  position: relative;
  margin: 0;
  height: clamp(580px, calc(100svh - var(--header-h) - 40px), 800px);
  min-height: 0;
  align-self: stretch;
  border-radius: 28px;
  overflow: hidden;
  background: #1a2233;
  box-shadow: none;
  animation: photo-in 1.2s var(--ease) both 0.05s;
}
.hero-v4 .hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 58%; animation: photo-zoom 16s ease-out both; }
/* darkening only where text sits: the sky at the top and behind the search at the bottom */
.hero-v4 .hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgb(8 14 28 / 0.62) 0%, rgb(8 14 28 / 0.18) 34%, rgb(8 14 28 / 0) 52%, rgb(8 14 28 / 0) 66%, rgb(8 14 28 / 0.55) 100%),
    linear-gradient(90deg, rgb(8 14 28 / 0.35) 0%, rgb(8 14 28 / 0) 55%);
}
.hero-v4 .hero-copy { grid-area: photo; align-self: start; position: relative; z-index: 2; padding: clamp(28px, 3.6vw, 52px) clamp(24px, 3.4vw, 48px) 0; color: #fff; pointer-events: none; }
.hero-v4 .hero-copy .eyebrow { color: rgb(255 255 255 / 0.85); margin-bottom: 16px; }
.hero-v4 .hero-copy .eyebrow::before { background: #ff6b74; }
.hero-v4 .hero-title { color: #fff; font-size: clamp(2.5rem, 4.5vw, 4.4rem); line-height: 0.98; letter-spacing: -0.035em; max-width: 12ch; text-shadow: 0 2px 24px rgb(0 0 0 / 0.25); }
.hero-v4 .hero-title .hl { color: var(--green-l); }
.hero-v4 .hero-form { grid-area: photo; align-self: end; position: relative; z-index: 2; padding: 0 clamp(14px, 2vw, 24px) clamp(14px, 2vw, 24px); }
.hero-v4 .search {
  margin: 0;
  max-width: none;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  padding: 12px;
  border-radius: 22px;
  background: rgb(255 255 255 / 0.96);
  border: 0;
  box-shadow: 0 30px 60px -28px rgb(0 0 0 / 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-v4 .search-deal { grid-column: auto; justify-self: start; align-self: end; }
.hero-v4 .search .search-submit { grid-column: auto; }
.hero-v4 .search-deal span { padding: 0 16px; }
.hero-v4 .hero-wall { grid-area: wall; height: clamp(580px, calc(100svh - var(--header-h) - 40px), 800px); }
.hero-v4 .wall-tile { aspect-ratio: 4 / 3; }

@media (max-width: 1180px) {
  .hero-v4 .search { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero-v4 .search-deal { grid-column: 1 / -1; }
  .hero-v4 .search .search-submit { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .hero-v4 .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "photo" "wall" "form"; }
  .hero-v4 .hero-photo { height: auto; aspect-ratio: 4 / 3.4; border-radius: 22px; margin: 0; }
  .hero-v4 .hero-photo img { object-position: 60% 62%; }
  .hero-v4 .hero-photo::after { background: linear-gradient(180deg, rgb(8 14 28 / 0.66) 0%, rgb(8 14 28 / 0.2) 42%, rgb(8 14 28 / 0) 60%, rgb(8 14 28 / 0.25) 100%); }
  .hero-v4 .hero-copy { padding: 22px 20px 0; }
  .hero-v4 .hero-title { font-size: clamp(2rem, 7.4vw, 3.4rem); max-width: 13ch; }
  .hero-v4 .hero-wall { height: auto; margin: 14px calc(var(--gutter) * -1) 0; }
  .hero-v4 .hero-form { grid-area: form; align-self: start; padding: 18px 0 0; }
  .hero-v4 .search { background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 48px -32px rgb(21 20 18 / 0.35); }
}
@media (max-width: 520px) {
  .hero-v4 .hero-photo { aspect-ratio: 4 / 4.2; margin: 0 calc(var(--gutter) * -1); border-radius: 0; }
  .hero-v4 .hero-copy { padding: 22px var(--gutter) 0 0; }
  .hero-v4 .hero-copy .eyebrow { font-size: 0.72rem; letter-spacing: 0.06em; }
  .hero-v4 .hero-title { font-size: clamp(1.95rem, 9vw, 2.5rem); }
  .hero-v4 .hero-photo img { object-position: 64% 70%; }
}

.hero-v4 .search { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
.hero-v4 .search-deal { grid-column: 1 / -1; }

/* social icons on the first screen, on every device */
.hero-v4 .hero-social { grid-area: photo; justify-self: end; align-self: start; position: relative; z-index: 3; padding: clamp(20px, 2.6vw, 36px) clamp(20px, 2.6vw, 36px) 0 0; }
.socials-glass { margin: 0; gap: 8px; }
.socials-glass .social { width: 46px; height: 46px; border-color: rgb(255 255 255 / 0.35); color: #fff; background: rgb(10 14 22 / 0.28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.socials-glass .social:hover, .socials-glass .social:focus-visible { border-color: transparent; }
@media (max-width: 1180px) {
  /* narrower photo panel: icons move to the bottom-right corner, clear of the headline */
  .hero-v4 .hero-social { align-self: end; padding: 0 16px 16px 0; }
  .hero-v4 .hero-form { padding-bottom: 82px; }
}
@media (max-width: 960px) {
  .hero-v4 .hero-form { padding-bottom: 0; }
  .hero-v4 .hero-social { padding: 0 14px 14px 0; }
}
@media (max-width: 520px) {
  .socials-glass .social { width: 44px; height: 44px; }
}

/* =====================================================================
   v5 — full-width photo hero + two horizontal listing ribbons below
   ===================================================================== */
.hero-v4 .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "photo" "wall"; column-gap: 0; }
.hero-v4 .hero-photo { height: clamp(540px, calc(100svh - var(--header-h) - 150px), 680px); aspect-ratio: auto; border-radius: 28px; margin: 0; }
.hero-v4 .hero-photo img { object-position: 50% 62%; }
.hero-v4 .hero-photo::after {
  background:
    linear-gradient(90deg, rgb(8 14 28 / 0.62) 0%, rgb(8 14 28 / 0.3) 34%, rgb(8 14 28 / 0) 58%),
    linear-gradient(180deg, rgb(8 14 28 / 0.35) 0%, rgb(8 14 28 / 0) 30%, rgb(8 14 28 / 0) 62%, rgb(8 14 28 / 0.5) 100%);
}
.hero-v4 .hero-copy { padding: clamp(36px, 4.6vw, 64px) clamp(28px, 4.4vw, 64px) 0; }
.hero-v4 .hero-title { font-size: clamp(2.8rem, 5.4vw, 5.2rem); max-width: 10.5ch; }
.hero-v4 .hero-form { grid-area: photo; padding: 0 clamp(16px, 2.4vw, 32px) clamp(16px, 2.4vw, 32px); }
.hero-v4 .search { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto; max-width: 1040px; }
.hero-v4 .search-deal { grid-column: auto; }
.hero-v4 .search .search-submit { grid-column: auto; min-width: 150px; }
.hero-v4 .hero-social { padding: clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px) 0 0; align-self: start; }
.hero-v4 .socials-glass { gap: 10px; }
.hero-v4 .socials-glass .social { width: 52px; height: 52px; border-width: 1.5px; }
.hero-v4 .socials-glass .social svg { width: 22px; height: 22px; }

/* ribbons: same component as on phones, now on every width */
.hero-v4 .hero-wall { grid-area: wall; height: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 18px calc(50% - 50vw) 0; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%); animation: wall-in 1.2s var(--ease) both 0.3s; }
.hero-v4 .wall-col { overflow: visible; margin: 0; }
.hero-v4 .wall-track { display: flex; width: max-content; gap: 12px; animation: wall-left 90s linear infinite; }
.hero-v4 .wall-col-rev .wall-track { animation-name: wall-right; animation-duration: 100s; }
.hero-v4 .wall-tile { width: clamp(220px, 18vw, 290px); aspect-ratio: 4 / 3; border-radius: 16px; flex: none; }
.hero-v4 .hero-wall:hover .wall-track, .hero-v4 .hero-wall:focus-within .wall-track { animation-play-state: paused; }

@media (max-width: 1180px) {
  .hero-v4 .search { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
  .hero-v4 .search-deal { grid-column: 1 / -1; }
  .hero-v4 .hero-social { align-self: start; padding: clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px) 0 0; }
  .hero-v4 .hero-form { padding-bottom: clamp(16px, 2.4vw, 32px); }
}
@media (max-width: 960px) {
  .hero-v4 .hero-grid { grid-template-areas: "photo" "wall" "form"; }
  .hero-v4 .hero-photo { height: auto; aspect-ratio: 4 / 3.4; border-radius: 22px; }
  .hero-v4 .hero-photo img { object-position: 60% 62%; }
  .hero-v4 .hero-photo::after { background: linear-gradient(180deg, rgb(8 14 28 / 0.66) 0%, rgb(8 14 28 / 0.2) 42%, rgb(8 14 28 / 0) 60%, rgb(8 14 28 / 0.3) 100%); }
  .hero-v4 .hero-copy { padding: 22px 20px 0; }
  .hero-v4 .hero-title { font-size: clamp(2rem, 7.4vw, 3.4rem); max-width: 13ch; }
  .hero-v4 .hero-form { grid-area: form; padding: 18px 0 0; }
  .hero-v4 .search { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero-v4 .search .search-submit { grid-column: 1 / -1; }
  .hero-v4 .hero-social { align-self: end; padding: 0 14px 14px 0; }
  .hero-v4 .socials-glass .social { width: 46px; height: 46px; }
  .hero-v4 .hero-wall { margin-top: 14px; }
  .hero-v4 .wall-tile { width: clamp(200px, 34vw, 280px); border-radius: 14px; }
}
@media (max-width: 520px) {
  .hero-v4 .hero-photo { aspect-ratio: 4 / 4.2; border-radius: 0; margin: 0 calc(var(--gutter) * -1); }
  .hero-v4 .hero-copy { padding: 22px var(--gutter) 0 0; }
  .hero-v4 .hero-title { font-size: clamp(1.95rem, 9vw, 2.5rem); }
  .hero-v4 .hero-photo img { object-position: 64% 70%; }
  .hero-v4 .wall-tile { width: 200px; }
  .hero-v4 .socials-glass .social { width: 44px; height: 44px; }
}
@media (max-width: 380px) {
  .hero-v4 .search { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-v4 .wall-track { animation: none !important; }
  .hero-v4 .wall-col { overflow-x: auto; }
}

.hero-v4 .hero-title { font-size: clamp(2.6rem, 4.6vw, 4.6rem); max-width: 13ch; }
@media (max-width: 960px) { .hero-v4 .hero-title { font-size: clamp(2rem, 7.4vw, 3.4rem); } }
@media (max-width: 520px) { .hero-v4 .hero-title { font-size: clamp(1.95rem, 9vw, 2.5rem); } }

/* labelled social buttons on the hero photo */
.hero-v4 .socials-pills .social { width: auto; height: 46px; padding: 0 16px 0 13px; gap: 8px; display: inline-flex; align-items: center; border-radius: 999px; font-weight: 650; font-size: 0.95rem; text-decoration: none; background: rgb(255 255 255 / 0.16); border: 1.5px solid rgb(255 255 255 / 0.45); }
.hero-v4 .socials-pills .social svg { width: 20px; height: 20px; }
.hero-v4 .socials-pills .social-ig:hover, .hero-v4 .socials-pills .social-ig:focus-visible { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.hero-v4 .socials-pills .social-fb:hover, .hero-v4 .socials-pills .social-fb:focus-visible { background: #1877f2; }
.hero-v4 .socials-pills .social-wa:hover, .hero-v4 .socials-pills .social-wa:focus-visible { background: #1da851; }
@media (max-width: 960px) {
  .hero-v4 .hero-social { justify-self: stretch; padding: 0 14px 14px; }
  .hero-v4 .socials-pills { justify-content: flex-start; flex-wrap: wrap; }
  .hero-v4 .socials-pills .social { height: 42px; padding: 0 13px 0 11px; font-size: 0.88rem; background: rgb(10 14 22 / 0.38); }
}
@media (max-width: 960px) {
  .hero-v4 .socials-pills { flex-wrap: nowrap; gap: 8px; }
  .hero-v4 .socials-pills .social-wa span { display: none; }
  .hero-v4 .socials-pills .social-wa { padding: 0; width: 42px; justify-content: center; }
}
@media (max-width: 340px) {
  .hero-v4 .socials-pills .social { padding: 0 10px 0 9px; font-size: 0.84rem; gap: 6px; }
}

/* ---------- header in brand green (as on vitoreality.sk) ---------- */
.header-call { background: var(--green-ui); color: #fff; }
.header-call:hover { background: #00612e; }
.lang-btn { background: #e7f3ec; border-color: #b9dcc7; color: #0b4d29; }
.lang-btn > svg { color: #0b4d29; }
.lang-btn:hover, .lang.is-open .lang-btn { border-color: var(--green-ui); background: #dcefe3; }
.menu-toggle { background: var(--green-ui); border-color: var(--green-ui); }
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after { background: #fff; }
.menu-open .menu-toggle-bars { background: transparent; }
.main-nav a:hover { color: var(--green-ui); }
.main-nav a::after { background: var(--green-ui); }
.main-nav a[aria-current="page"] { color: var(--green-ui); }
.main-nav a[aria-current="page"]::after { background: var(--green-ui); }
body.menu-open .lang-btn { background: transparent; color: #fff; border-color: rgb(255 255 255 / 0.3); }
body.menu-open .lang-btn > svg { color: #fff; }

/* ---------- phones & tablets: social buttons in one row under the photo ---------- */
@media (max-width: 960px) {
  .hero-v4 .hero-grid { grid-template-areas: "photo" "social" "wall" "form"; }
  .hero-v4 .hero-social { grid-area: social; justify-self: stretch; align-self: start; padding: 12px 0 0; }
  .hero-v4 .socials-pills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .hero-v4 .socials-pills .social,
  .hero-v4 .socials-pills .social-wa {
    width: auto;
    height: 48px;
    padding: 0 8px;
    justify-content: center;
    gap: 7px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 0.9rem;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .hero-v4 .socials-pills .social-wa span { display: inline; }
  .hero-v4 .socials-pills .social-ig svg { color: #d6249f; }
  .hero-v4 .socials-pills .social-fb svg { color: #1877f2; }
  .hero-v4 .socials-pills .social-wa svg { color: #1da851; }
  .hero-v4 .socials-pills .social:hover svg, .hero-v4 .socials-pills .social:focus-visible svg { color: #fff; }
  .hero-v4 .socials-pills .social:hover, .hero-v4 .socials-pills .social:focus-visible { color: #fff; border-color: transparent; }
  .hero-v4 .hero-wall { margin-top: 12px; }
}
@media (max-width: 380px) {
  .hero-v4 .socials-pills { gap: 6px; }
  .hero-v4 .socials-pills .social, .hero-v4 .socials-pills .social-wa { padding: 0 4px; gap: 5px; font-size: 0.8rem; }
  .hero-v4 .socials-pills .social svg { width: 17px; height: 17px; }
}

/* ---------- header buttons in the original site's teal-green (#397076, sampled from vitoreality.sk) ---------- */
:root { --teal: #397076; --teal-d: #2b575c; --teal-l: #e5efef; }
.main-nav { gap: 6px; }
.main-nav a { background: var(--teal); color: #fff; border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 0.95rem; line-height: 1.3; transition: background-color 0.2s, box-shadow 0.2s; }
.main-nav a::after { display: none; }
.main-nav a:hover { background: var(--teal-d); color: #fff; }
.main-nav a[aria-current="page"] { background: var(--teal-d); color: #fff; box-shadow: inset 0 -3px 0 var(--green-l); }
.header-call { background: var(--teal); }
.header-call:hover { background: var(--teal-d); }
.lang-btn { background: var(--teal-l); border-color: #bcd3d4; color: var(--teal-d); }
.lang-btn > svg { color: var(--teal-d); }
.lang-btn:hover, .lang.is-open .lang-btn { background: #d6e6e6; border-color: var(--teal); }
.menu-toggle { background: var(--teal); border-color: var(--teal); }
@media (max-width: 1279px) {
  .main-nav { gap: 4px; }
  .main-nav a { padding: 8px 12px; font-size: 0.9rem; }
}
/* mobile menu stays dark with large type (preferred by Misha); only the closed toggle is teal */
body.menu-open .menu-toggle { background: transparent; border-color: rgb(255 255 255 / 0.25); }


.price-main, .card-price, .sticky-price, .featured-price { white-space: nowrap; }
.price-box { min-width: 0; }
.price-main { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.card-price small { white-space: normal; }
.card-price { white-space: normal; }
.nw { white-space: nowrap; }

/* catalogue paging */
.more-wrap { display: grid; justify-items: center; gap: 10px; margin-top: clamp(32px, 4vw, 48px); }
.more-note { margin: 0; color: var(--muted); font-size: 0.92rem; font-variant-numeric: tabular-nums; }
/* phones/tablets: search right under the photo, listing ribbons after it; no "featured" block */
@media (max-width: 960px) {
  .hero-v4 .hero-grid { grid-template-areas: "photo" "social" "form" "wall"; }
  .hero-v4 .hero-form { padding-top: 12px; }
  .hero-v4 .hero-wall { margin-top: 18px; }
}
@media (max-width: 760px) {
  .featured { display: none; }
}

/* about hero: the two agents only */
.about-collage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: clamp(12px, 1.6vw, 20px); max-width: 560px; justify-self: end; width: 100%; }
.about-collage .ap { margin: 0; display: grid; gap: 12px; }
.about-collage .ap-1 { margin-top: clamp(32px, 5vw, 64px); }
.about-collage .ap-photo { display: block; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: var(--surface-2); }
.about-collage .ap-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform 1.2s var(--ease); }
.about-collage .ap:hover img { transform: scale(1.04); }
.about-collage figcaption { display: grid; gap: 2px; }
.about-collage figcaption strong { font-stretch: 112%; font-weight: 760; font-size: 1.1rem; }
.about-collage figcaption small { color: var(--muted); font-size: 0.9rem; line-height: 1.4; }
.about-collage .about-quote { grid-column: 1 / -1; margin-top: 8px; }
@media (max-width: 960px) {
  .about-collage { max-width: none; justify-self: stretch; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .about-collage .ap { order: 0; }
  .about-collage .ap-photo { aspect-ratio: 4 / 5; border-radius: 16px; }
  .about-collage .ap-1 { margin-top: 28px; }
  .about-collage .about-quote { order: 2; }
}
.about-collage .ap { align-content: start; align-self: start; gap: 10px; }

/* long German / Ukrainian words in big headlines on narrow phones */
@media (max-width: 520px) {
  .hero-title, .page-title, .section-title, .seller-title, .detail-title, .featured-title { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
}

/* about: both agent photos on one line */
.about-collage .ap-1 { margin-top: 0; }

/* hero headline: two lines, long on top, short below, a size calmer than before */
.hero-v4 .hero-title.hero-lines { font-size: clamp(2.3rem, 4.1vw, 4rem); line-height: 1.02; max-width: none; letter-spacing: -0.035em; }
.hero-lines .line { display: block; white-space: nowrap; }
@media (max-width: 960px) { .hero-v4 .hero-title.hero-lines { font-size: clamp(2rem, 6.4vw, 3rem); } }
@media (max-width: 520px) { .hero-v4 .hero-title.hero-lines { font-size: clamp(1.7rem, 8vw, 2.2rem); } }

/* one green everywhere: the VitoReality logo green */
:root { --green-ui: #009246; --teal: #009246; --teal-d: #007a3a; --teal-l: #e3f3ea; }
.btn-primary, .main-nav a, .header-call, .menu-toggle { font-weight: 650; }
.btn-primary:hover, .header-call:hover { background: #007a3a; }
.lang-btn { border-color: #b6dcc6; color: #00612e; }
.lang-btn > svg { color: #00612e; }
/* studio credit: a small signed badge */
.made-by { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; }
.made-by-badge { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; min-height: 38px; box-sizing: border-box; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1; box-shadow: 0 1px 2px rgba(20, 24, 20, 0.05); transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease); }
.footer-bottom { align-items: center; }
.footer-bottom .made-by-badge { padding: 5px 14px 5px 5px; text-decoration: none; }
.made-by-badge img { display: block; flex: none; width: 28px; height: 28px; border-radius: 8px; }
.made-by-badge .mb-site { color: var(--ink); font-weight: 650; letter-spacing: 0.01em; }
.made-by-badge svg { flex: none; width: 14px; height: 14px; margin-left: 2px; fill: currentColor; color: var(--muted); transition: transform 0.25s var(--ease), color 0.25s var(--ease); }
.made-by-badge:hover { border-color: #ff2d9b; box-shadow: 0 6px 18px rgba(255, 20, 147, 0.16); transform: translateY(-1px); }
.made-by-badge:hover svg { transform: translateX(2px); color: #e0007f; }
.made-by-badge:focus-visible { outline: 2px solid var(--green-ui); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .made-by-badge, .made-by-badge svg { transition: none; } }

/* ---------- hero: robust on older iOS Safari / in-app browsers ----------
   no aspect-ratio, no inset shorthand, no per-word clipping on the headline */
.hero-v4 .hero-photo { position: relative; display: block; }
.hero-v4 .hero-photo picture { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.hero-v4 .hero-photo img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.hero-v4 .hero-photo::after { top: 0; right: 0; bottom: 0; left: 0; z-index: 1; }
.hero-v4 .hero-copy { position: absolute; top: 0; left: 0; right: 0; z-index: 2; grid-area: auto; padding: clamp(36px, 4.6vw, 64px) clamp(28px, 4.4vw, 64px) 0; }
.hero-v4 .hero-title { text-shadow: none; animation: fade-up 0.9s var(--ease) both 0.15s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }
@media (max-width: 960px) {
  .hero-v4 .hero-photo { aspect-ratio: auto; height: 62vw; max-height: 560px; min-height: 340px; }
  .hero-v4 .hero-copy { padding: 22px 20px 0; }
}
@media (max-width: 520px) {
  .hero-v4 .hero-photo { height: 100vw; min-height: 0; max-height: none; }
  .hero-v4 .hero-copy { padding: 22px var(--gutter) 0; }
}
@media (prefers-reduced-motion: reduce) { .hero-v4 .hero-title { animation: none; } }

/* Plugin popups (Estatik sign-in / register) are printed into every page and hidden by the plugin's own CSS,
   which this theme does not load: keep them hidden. */
.mfp-hide, .es-magnific-popup { display: none !important; }
