﻿/* === property_list === */
.vi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 28px;
  padding: 60px 0;
}

/* Cap 3 colonne su desktop largo (evita card giganti) */
@media (min-width: 1200px) {
  .vi-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 1600px) {
  .vi-grid { max-width: 1280px; }
}

/* Quando la griglia è dentro una sezione contenitrice (home "in evidenza") */
.vi-section .vi-grid,
.vi-featured .vi-grid {
  padding: 0;
}

.vi-grid__empty,
.property-empty {
  grid-column: 1 / -1;
  padding: 60px 20px;
  text-align: center;
  color: rgba(31, 31, 31, 0.5);
  font-size: 1.05rem;
}

/* ── Card ───────────────────────────────────── */

.vi-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 18px rgba(0, 0, 0, 0.05);
  border: 1px solid #ececec;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
}

.vi-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05), 0 22px 50px rgba(0, 0, 0, 0.12);
  border-color: transparent;
}

.vi-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* ── Media + overlay ────────────────────────── */

.vi-card__media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f5f5 0%, #e6e6e6 100%);
}

.vi-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(.2, .7, .3, 1);
}

.vi-card:hover .vi-card__media img { transform: scale(1.06); }

/* Gradient scuro in basso per leggibilità prezzo */
.vi-card__media::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 60%;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}

/* Badge categoria */
.vi-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  color: #1F1F1F;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Stella featured — compatta, solo icona */
.vi-card__star {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #C8202A;
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(200, 32, 42, 0.45);
}

/* Prezzo in overlay sul gradient */
.vi-card__price {
  position: absolute;
  left: 18px;
  bottom: 14px;
  right: 18px;
  z-index: 2;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* ── Body ───────────────────────────────────── */

.vi-card__body {
  padding: 18px 20px 20px;
}

/* Titolo + zona su stessa riga: titolo a sx (flex-grow), zona a dx compatta */
.vi-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.vi-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1F1F1F;
  line-height: 1.3;
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Zona inline a destra del titolo, pill grigia leggera */
.vi-card__zone {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
  color: rgba(31, 31, 31, 0.7);
  background: #f5f5f5;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 45%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vi-card__zone i {
  color: #C8202A;
  font-size: 10px;
  flex-shrink: 0;
}

/* Meta: icone compatte su una riga, nessun pill */
.vi-card__meta {
  list-style: none;
  padding: 12px 0 0;
  margin: 0;
  display: flex;
  gap: 18px;
  border-top: 1px solid #f2f2f2;
}

.vi-card__meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(31, 31, 31, 0.75);
}

.vi-card__meta i {
  color: #C8202A;
  font-size: 13px;
}

.vi-card__meta span { line-height: 1; }

/* ── CTA sezione (home "Immobili in evidenza") ─ */

.vi-featured__cta {
  text-align: center;
  padding-top: 40px;
}

.vi-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  padding: 14px 34px;
  border-radius: 8px;
  font-size: 15px;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 26px rgba(200, 32, 42, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vi-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(200, 32, 42, 0.38);
}

.vi-cta i { transition: transform 0.25s ease; }
.vi-cta:hover i { transform: translateX(4px); }

.vi-cta__hint {
  font-size: 13px;
  color: rgba(31, 31, 31, 0.55);
  margin: 14px 0 0;
  text-align: center;
}

/* ── Responsive ─────────────────────────────── */

@media (max-width: 767.98px) {
  /* Su mobile zona torna sotto al titolo: evita troncature aggressive */
  .vi-card__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .vi-card__zone { max-width: 100%; }
}

@media (max-width: 575.98px) {
  .vi-card__price { font-size: 1.15rem; }
  .vi-card__body { padding: 16px 18px 18px; }
  .vi-card__meta { gap: 14px; }
}

/* === property_detail === */
.vi-property {
  padding: 70px 0 100px;
  background: linear-gradient(180deg, #fafafa 0%, #f3f3f3 100%);
}

/* ── Cover ────────────────────────────────────── */

.vi-property__cover {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14);
  margin-bottom: 36px;
}

.vi-property__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s ease;
}

.vi-property__cover:hover img { transform: scale(1.04); }

.vi-property__badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgb(var(--bs-primary-rgb));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(200, 32, 42, 0.35);
}

.vi-property__featured {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #1F1F1F;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.vi-property__featured i { color: #FFC107; }

/* ── Gallery thumbnails ───────────────────────── */

.vi-property__gallery,
.property-detail__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 36px;
}

.vi-property__gallery a,
.property-detail__thumb {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: #e9e9e9;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vi-property__gallery img,
.property-detail__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.vi-property__gallery a:hover,
.property-detail__thumb:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.vi-property__gallery a:hover img { transform: scale(1.06); }

/* ── Tags ─────────────────────────────────────── */

.vi-property__tags,
.property-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

/* Lascio .property-tag al badge esistente, aggiungo fallback */
.vi-property__tags a,
.vi-property__tags span {
  display: inline-block;
  color: #fff;
  background: rgb(var(--bs-primary-rgb));
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease;
}

.vi-property__tags a:hover { transform: translateY(-2px); }

/* ── Occhiello / lead ─────────────────────────── */

.vi-property__lead {
  font-size: 1.12rem;
  line-height: 1.7;
  color: rgba(31, 31, 31, 0.78);
  font-style: italic;
  padding: 20px 26px;
  background: #fff;
  border-left: 4px solid rgb(var(--bs-primary-rgb));
  border-radius: 0 10px 10px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  margin: 0 0 36px;
}

/* ── Highlights (mq/camere/bagni/piano) ───────── */

.vi-property__highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.vi-property__highlights li {
  background: #fff;
  border-radius: 12px;
  padding: 22px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.vi-property__highlights li:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
  border-color: rgba(200, 32, 42, 0.2);
}

.vi-property__highlights i {
  font-size: 1.4rem;
  color: rgb(var(--bs-primary-rgb));
  margin-bottom: 4px;
}

.vi-property__highlights span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(31, 31, 31, 0.5);
  font-weight: 600;
}

.vi-property__highlights strong {
  font-size: 1.2rem;
  color: #1F1F1F;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* ── Descrizione ──────────────────────────────── */

.vi-property__description {
  background: #fff;
  border-radius: 14px;
  padding: 32px 36px;
  margin-bottom: 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.vi-property__description h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1F1F1F;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgb(var(--bs-primary-rgb));
  display: inline-block;
  letter-spacing: -0.01em;
}

.vi-property__description > div {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(31, 31, 31, 0.82);
}

/* ── Tabella dettagli ─────────────────────────── */

.vi-property__features {
  background: #fff;
  border-radius: 14px;
  padding: 32px 36px;
  margin-bottom: 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.vi-property__features h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1F1F1F;
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgb(var(--bs-primary-rgb));
  display: inline-block;
  letter-spacing: -0.01em;
}

.vi-property__features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0;
}

.vi-property__features-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 4px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

.vi-property__features-list li span {
  color: rgba(31, 31, 31, 0.55);
  font-weight: 500;
}

.vi-property__features-list li strong {
  color: #1F1F1F;
  font-weight: 700;
  text-align: right;
}

/* ── Amenities ────────────────────────────────── */

.vi-property__amenities {
  background: #fff;
  border-radius: 14px;
  padding: 32px 36px;
  margin-bottom: 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.vi-property__amenities h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1F1F1F;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgb(var(--bs-primary-rgb));
  display: inline-block;
  letter-spacing: -0.01em;
}

.vi-property__amenities ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.vi-property__amenities li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(31, 31, 31, 0.88);
  background: #fafafa;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.vi-property__amenities li:hover {
  background: rgba(200, 32, 42, 0.04);
  border-color: rgba(200, 32, 42, 0.2);
}

.vi-property__amenities li i {
  color: rgb(var(--bs-primary-rgb));
  font-size: 16px;
  width: 22px;
  text-align: center;
}

/* ── Sidebar ──────────────────────────────────── */

.vi-property__sidebar {
  background: #fff;
  border-radius: 14px;
  padding: 32px 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 100px;
  border: 1px solid #eee;
}

.vi-property__contract {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(var(--bs-primary-rgb));
  background: rgba(200, 32, 42, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.vi-property__title {
  font-size: 1.55rem;
  font-weight: 800;
  color: #1F1F1F;
  line-height: 1.25;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.vi-property__zone,
.vi-property__address {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(31, 31, 31, 0.6);
  margin: 0 0 8px;
}

.vi-property__zone i,
.vi-property__address i {
  color: rgb(var(--bs-primary-rgb));
  font-size: 12px;
}

.vi-property__price {
  font-size: 2.1rem;
  font-weight: 800;
  color: rgb(var(--bs-primary-rgb));
  letter-spacing: -0.03em;
  margin: 20px 0 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.vi-property__views {
  margin-top: 20px;
  font-size: 12px;
  color: rgba(31, 31, 31, 0.45);
  text-align: center;
}

.vi-property__views i {
  color: rgb(var(--bs-primary-rgb));
  margin-right: 6px;
}

/* CTA — stilizza il bottone inserito dal block property_cta */

.vi-property__sidebar .btn-primary,
.vi-property__sidebar .property-sidebar__cta .btn-primary {
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 15px;
  box-shadow: 0 12px 28px rgba(200, 32, 42, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
}

.vi-property__sidebar .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(200, 32, 42, 0.35);
}

/* ── Responsive ───────────────────────────────── */

@media (max-width: 991.98px) {
  .vi-property__sidebar {
    position: static;
    margin-top: 24px;
  }
}

@media (max-width: 575.98px) {
  .vi-property { padding: 40px 0 64px; }
  .vi-property__description,
  .vi-property__features,
  .vi-property__amenities { padding: 24px 22px; }
  .vi-property__sidebar { padding: 24px 22px; }
  .vi-property__title { font-size: 1.35rem; }
  .vi-property__price { font-size: 1.7rem; }
  .vi-property__highlights { grid-template-columns: repeat(2, 1fr); }
}

/* === property_search === */
.vi-properties {
  padding: 48px 0 80px;
}

.vi-properties__layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 991.98px) {
  .vi-properties__layout { grid-template-columns: 1fr; gap: 24px; }
}

/* Sidebar sticky */
.vi-properties__aside {
  position: sticky;
  top: 100px;
}

@media (max-width: 991.98px) {
  .vi-properties__aside { position: static; }
}

/* ── Head pagina ──────────────────────────────── */

.vi-properties-head {
  padding: 60px 0 0;
  background: #fafafa;
}

.vi-properties-head .vi-eyebrow { margin-bottom: 14px; }
.vi-properties-head .vi-heading { margin-bottom: 10px; }

.vi-properties-head__count {
  font-size: 14px;
  color: rgba(31, 31, 31, 0.6);
  margin: 0;
}

.vi-properties-head__count strong {
  color: #C8202A;
  font-weight: 800;
  font-size: 16px;
}

/* ── Form ricerca ─────────────────────────────── */

.vi-search {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.06);
  border: 1px solid #ececec;
}

.vi-search__title {
  font-size: 1rem;
  font-weight: 800;
  color: #1F1F1F;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f2f2f2;
  letter-spacing: -0.01em;
}

.vi-search__title i {
  color: #C8202A;
  font-size: 13px;
}

/* Toggle Vendita/Affitto/Tutti (radio pill) */
.vi-search__toggle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 18px;
}

.vi-search__toggle input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.vi-search__toggle label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(31, 31, 31, 0.6);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  margin: 0;
  user-select: none;
}

.vi-search__toggle label:hover { color: #1F1F1F; }

.vi-search__toggle input[type="radio"]:checked + label {
  background: #fff;
  color: #C8202A;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Field generico */
.vi-search__field {
  margin-bottom: 14px;
}

.vi-search__field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: rgba(31, 31, 31, 0.6);
  margin-bottom: 5px;
  letter-spacing: 0.02em;
}

.vi-search__field input,
.vi-search__field select {
  width: 100%;
  height: 40px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  color: #1F1F1F;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vi-search__field input:focus,
.vi-search__field select:focus {
  outline: none;
  border-color: #C8202A;
  box-shadow: 0 0 0 3px rgba(200, 32, 42, 0.12);
}

.vi-search__field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%231F1F1F'><path d='M5.5 7.5L10 12l4.5-4.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  padding-right: 30px;
}

/* Riga a 3 colonne (mq min + camere + bagni) */
.vi-search__row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.vi-search__row .vi-search__field { margin-bottom: 14px; }

/* Azioni */
.vi-search__actions {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #f2f2f2;
}

.vi-search__actions .btn-primary {
  font-weight: 700;
  padding: 11px;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.vi-search__reset {
  display: block;
  width: 100%;
  margin-top: 10px;
  background: transparent;
  border: none;
  color: rgba(31, 31, 31, 0.55);
  font-size: 13px;
  font-weight: 500;
  padding: 8px;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

.vi-search__reset:hover {
  color: #C8202A;
  background: rgba(200, 32, 42, 0.06);
}

/* ── Stato loading della grid durante la fetch ── */

.vi-grid.is-loading {
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* ── Pagination ───────────────────────────────── */

.vi-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 30px 0 10px;
}

.vi-pagination a,
.vi-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  color: #1F1F1F;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.vi-pagination a:hover {
  background: #f5f5f5;
  border-color: #cfcfcf;
}

.vi-pagination .active,
.vi-pagination a.active {
  background: #C8202A;
  border-color: #C8202A;
  color: #fff;
}

/* === valuation_form === */
/* ============================================
   VISION IMMOBILIARE — Valuation Form
   Form pubblico /valutazione (BlockType=valuation_form).
   Riusa token Vision (--vi-*) e va appoggiato a properties.css.
   ============================================ */

.valuation-form-section {
  padding: 56px 0 80px;
  background: var(--vi-bg-1, #f8f9fb);
}

.valuation-form-header {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}

.valuation-form-title {
  font-family: var(--vi-font-heading, "Syne", sans-serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--vi-text-1, #1a1f2c);
  margin: 0 0 12px;
}

.valuation-form-lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--vi-text-2, #5b6577);
  margin: 0;
}

/* Form box */

.valuation-form {
  max-width: 880px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--vi-border, #e3e6ec);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.valuation-form__honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Fieldset */

.valuation-form__group {
  border: none;
  padding: 0;
  margin: 0;
}

.valuation-form__group legend {
  font-family: var(--vi-font-heading, "Syne", sans-serif);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--vi-accent, #c8a062);
  margin-bottom: 14px;
  padding: 0;
}

/* Rows / fields */

.valuation-form__row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.valuation-form__row + .valuation-form__row {
  margin-top: 14px;
}

@media (max-width: 575.98px) {
  .valuation-form__row { grid-template-columns: 1fr; }
}

.valuation-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--vi-text-2, #5b6577);
  font-weight: 500;
}

.valuation-form__field--wide {
  grid-column: span 2;
}

@media (max-width: 575.98px) {
  .valuation-form__field--wide { grid-column: auto; }
}

.valuation-form__field span {
  font-size: 13px;
  font-weight: 600;
  color: var(--vi-text-1, #1a1f2c);
  letter-spacing: .02em;
}

.valuation-form__field input,
.valuation-form__field textarea {
  font: inherit;
  font-size: 15px;
  color: var(--vi-text-1, #1a1f2c);
  background: var(--vi-bg-1, #f8f9fb);
  border: 1px solid var(--vi-border, #e3e6ec);
  border-radius: 8px;
  padding: 10px 12px;
  transition: border-color .15s, box-shadow .15s, background .15s;
  width: 100%;
}

.valuation-form__field input:focus,
.valuation-form__field textarea:focus {
  outline: none;
  border-color: var(--vi-accent, #c8a062);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(200, 160, 98, .18);
}

.valuation-form__field textarea {
  resize: vertical;
  min-height: 120px;
}

.valuation-form__field input:invalid:not(:placeholder-shown),
.valuation-form__field textarea:invalid:not(:placeholder-shown) {
  border-color: #dc2626;
}

/* Checkbox group */

.valuation-form__checks {
  display: flex;
  gap: 24px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.valuation-form__check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--vi-text-1, #1a1f2c);
  cursor: pointer;
  user-select: none;
}

.valuation-form__check input {
  width: 18px;
  height: 18px;
  accent-color: var(--vi-accent, #c8a062);
  cursor: pointer;
}

/* Actions */

.valuation-form__actions {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.valuation-form__submit {
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--vi-accent, #c8a062);
  border: none;
  border-radius: 999px;
  padding: 14px 32px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background .15s, transform .1s, box-shadow .15s;
  box-shadow: 0 4px 14px rgba(200, 160, 98, .25);
}

.valuation-form__submit:hover {
  background: var(--vi-accent-2, #b78b50);
  transform: translateY(-1px);
}

.valuation-form__submit:disabled {
  opacity: .6;
  cursor: progress;
  transform: none;
}

/* Privacy consent */

.valuation-form__privacy {
  margin: 4px 0 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--vi-text-2, #5b6577);
}

.valuation-form__privacy-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.valuation-form__privacy-label input[type="checkbox"] {
  margin-top: 4px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.valuation-form__privacy-label a {
  color: var(--vi-accent, #1d4ed8);
  text-decoration: underline;
}

.valuation-form__privacy-label a:hover {
  text-decoration: none;
}

.valuation-form__privacy-error {
  display: none;
  margin-top: 6px;
  padding-left: 26px;
  color: #dc2626;
  font-size: 13px;
  font-weight: 500;
}

.valuation-form__privacy.is-invalid .valuation-form__privacy-label input[type="checkbox"] {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
}

.valuation-form__privacy.is-invalid .valuation-form__privacy-label > span {
  color: #dc2626;
}

.valuation-form__privacy.is-invalid .valuation-form__privacy-error {
  display: block;
}

/* Feedback */

.valuation-form__feedback {
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  min-height: 20px;
}

.valuation-form__feedback--ok {
  color: #16a34a;
}

.valuation-form__feedback--err {
  color: #dc2626;
}

@media (max-width: 575.98px) {
  .valuation-form { padding: 24px 18px; gap: 22px; }
}
/* === property_gallery === */
.vi-prop-gallery {
  margin: 32px 0;
}
.vi-prop-gallery__grid {
  column-count: 3;
  column-gap: 12px;
}
@media (max-width: 991.98px) {
  .vi-prop-gallery__grid { column-count: 2; }
}
@media (max-width: 575.98px) {
  .vi-prop-gallery__grid { column-count: 1; }
}
.vi-prop-gallery__item {
  display: block;
  position: relative;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin: 0 0 12px;
  overflow: hidden;
  border-radius: 10px;
  cursor: zoom-in;
  background: #f4f4f4;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: box-shadow .25s ease, transform .25s ease;
}
.vi-prop-gallery__item:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}
.vi-prop-gallery__item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .4s ease, filter .4s ease;
}
.vi-prop-gallery__item:hover img {
  transform: scale(1.05);
  filter: brightness(1.04);
}
.vi-prop-gallery__item::after {
  content: "\f00e"; /* fa-magnifying-glass-plus */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.vi-prop-gallery__item:hover::after {
  opacity: 1;
  transform: scale(1);
}
