/* HERITAGE ITALY — V10 heritage explorer and homepage property résumé */

body .page-loader.skip-loader,
body.loader-disabled .page-loader {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.no-internal-loader .page-loader {
  display: none !important;
}

.v10-heritage-home {
  position: relative;
  padding: clamp(90px, 10vw, 150px) 0;
  background:
    radial-gradient(circle at 92% 10%, rgba(164,87,57,.13), transparent 32rem),
    linear-gradient(135deg, rgba(249,246,239,.96), rgba(238,229,214,.89));
  overflow: hidden;
}

.v10-heritage-home-grid {
  display: grid;
  grid-template-columns: minmax(0,.68fr) minmax(0,1.32fr);
  gap: clamp(34px, 6vw, 88px);
  align-items: start;
}

.v10-heritage-home-sticky {
  position: sticky;
  top: 112px;
}

.v10-filter-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 26px 0 34px;
}

.v10-filter-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(24,53,44,.20);
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--forest-dark);
  background: rgba(249,246,239,.62);
}

.v10-filter-chip.is-active {
  background: var(--forest-dark);
  color: var(--ivory);
  border-color: var(--forest-dark);
}

.v10-heritage-map {
  min-height: 420px;
  border: 1px solid rgba(24,53,44,.16);
  background:
    radial-gradient(circle at 56% 42%, rgba(214,139,110,.18), transparent 7rem),
    linear-gradient(135deg, rgba(24,53,44,.08), rgba(249,246,239,.38));
  position: relative;
  overflow: hidden;
}

.v10-heritage-map::before {
  content: "";
  position: absolute;
  inset: 9%;
  border: 1px solid rgba(24,53,44,.16);
  border-radius: 48% 52% 44% 56%;
  transform: rotate(-13deg);
}

.v10-heritage-map::after {
  content: "";
  position: absolute;
  left: 44%;
  top: 18%;
  width: 18%;
  height: 67%;
  border-left: 2px solid rgba(164,87,57,.58);
  border-bottom: 1px solid rgba(24,53,44,.13);
  transform: skewX(-13deg) rotate(8deg);
}

.v10-map-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--rust);
  box-shadow: 0 0 0 8px rgba(164,87,57,.16);
}

.v10-map-dot span {
  position: absolute;
  left: 18px;
  top: -5px;
  white-space: nowrap;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--forest-dark);
  font-weight: 700;
}

.v10-map-dot.d1 { left: 54%; top: 34%; }
.v10-map-dot.d2 { left: 48%; top: 46%; }
.v10-map-dot.d3 { left: 58%; top: 58%; }
.v10-map-dot.d4 { left: 42%; top: 66%; }
.v10-map-dot.d5 { left: 63%; top: 44%; }

.v10-heritage-list {
  display: grid;
  gap: 18px;
}

.v10-heritage-card {
  display: grid;
  grid-template-columns: 168px minmax(0,1fr) auto;
  gap: 22px;
  align-items: stretch;
  padding: 14px;
  background: rgba(249,246,239,.78);
  border: 1px solid rgba(24,53,44,.12);
  text-decoration: none;
  color: var(--ink);
  transition: transform .42s var(--ease), background .42s ease, border-color .42s ease, box-shadow .42s ease;
}

.v10-heritage-card:hover {
  transform: translateY(-6px);
  background: rgba(249,246,239,.98);
  border-color: rgba(164,87,57,.30);
  box-shadow: 0 28px 68px rgba(21,18,15,.11);
}

.v10-heritage-card-img {
  min-height: 132px;
  background: var(--sand);
  overflow: hidden;
}

.v10-heritage-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}

.v10-heritage-card:hover img {
  transform: scale(1.06);
}

.v10-heritage-card h3 {
  font-size: clamp(26px, 2.5vw, 36px);
  margin-bottom: 8px;
  line-height: 1;
}

.v10-heritage-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.v10-heritage-meta span {
  border: 1px solid rgba(24,53,44,.14);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  color: var(--ink-soft);
}

.v10-card-action {
  align-self: end;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid rgba(24,53,44,.18);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--forest-dark);
  white-space: nowrap;
}

/* Properties / Heritage page layout */
.page-properties .properties-shell,
.page-properties .property-browser,
.page-properties .browser-shell {
  display: block;
}

.v10-heritage-page {
  padding: clamp(52px, 7vw, 92px) 0;
  background:
    radial-gradient(circle at 92% 8%, rgba(164,87,57,.10), transparent 30rem),
    var(--ivory);
}

.v10-heritage-page-head {
  display: grid;
  grid-template-columns: minmax(0,.72fr) minmax(0,1.28fr);
  gap: clamp(34px, 6vw, 88px);
  align-items: end;
  margin-bottom: 38px;
}

.v10-heritage-page h2 {
  font-size: clamp(52px, 6.8vw, 98px);
  line-height: .9;
  max-width: 10ch;
}

.v10-horizontal-filters {
  position: sticky;
  top: 82px;
  z-index: 30;
  padding: 18px 0;
  background: rgba(249,246,239,.88);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(24,53,44,.10);
  border-bottom: 1px solid rgba(24,53,44,.10);
  margin-bottom: 36px;
}

.v10-filter-group {
  margin-bottom: 14px;
}

.v10-filter-group:last-child { margin-bottom: 0; }

.v10-filter-title {
  display: inline-block;
  min-width: 132px;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(21,18,15,.48);
  font-weight: 700;
  margin-right: 12px;
}

.v10-filter-row {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.v10-heritage-layout {
  display: grid;
  grid-template-columns: minmax(360px,.92fr) minmax(0,1.08fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
}

.v10-heritage-map-panel {
  position: sticky;
  top: 220px;
}

.v10-heritage-map-panel .v10-heritage-map {
  min-height: 650px;
  background:
    radial-gradient(circle at 51% 42%, rgba(214,139,110,.22), transparent 8rem),
    linear-gradient(135deg, rgba(24,53,44,.10), rgba(249,246,239,.46));
}

.v10-heritage-results {
  display: grid;
  gap: 18px;
}

.v10-result-card {
  display: grid;
  grid-template-columns: 240px minmax(0,1fr);
  gap: 24px;
  min-height: 214px;
  background: rgba(249,246,239,.96);
  border: 1px solid rgba(24,53,44,.13);
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
  transition: transform .42s var(--ease), box-shadow .42s ease, border-color .42s ease;
}

.v10-result-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 28px 70px rgba(21,18,15,.12);
  border-color: rgba(164,87,57,.32);
}

.v10-result-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v10-result-body {
  padding: 26px 28px 24px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.v10-result-body h3 {
  font-size: clamp(32px, 3.3vw, 48px);
  line-height: .95;
  max-width: 12ch;
}

.v10-result-desc {
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 54ch;
}

.v10-result-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1px;
  margin-top: 22px;
  border: 1px solid rgba(24,53,44,.12);
  background: rgba(24,53,44,.12);
}

.v10-result-fact {
  background: rgba(238,229,214,.45);
  padding: 13px 14px;
}

.v10-result-fact small {
  display: block;
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 6px;
}

.v10-result-fact strong {
  font-size: 13px;
  font-weight: 500;
}

/* More asymmetry on internal pages */
.v10-asym-band {
  padding: clamp(64px, 8vw, 116px) 0;
  background:
    linear-gradient(110deg, rgba(24,53,44,.96) 0%, rgba(24,53,44,.90) 46%, rgba(238,229,214,.92) 46%, rgba(249,246,239,.92) 100%);
}

.v10-asym-grid {
  display: grid;
  grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: center;
}

.v10-asym-card {
  padding: clamp(28px, 4vw, 54px);
  background: rgba(249,246,239,.95);
  border: 1px solid rgba(24,53,44,.13);
  box-shadow: 0 32px 80px rgba(21,18,15,.10);
}

.v10-asym-dark h2,
.v10-asym-dark p {
  color: var(--ivory);
}

.v10-asym-dark p {
  opacity: .78;
}

@media (max-width: 1120px) {
  .v10-heritage-home-grid,
  .v10-heritage-page-head,
  .v10-heritage-layout,
  .v10-asym-grid {
    grid-template-columns: 1fr;
  }
  .v10-heritage-home-sticky,
  .v10-heritage-map-panel {
    position: relative;
    top: auto;
  }
  .v10-heritage-map-panel .v10-heritage-map {
    min-height: 420px;
  }
}

@media (max-width: 780px) {
  .v10-heritage-card,
  .v10-result-card {
    grid-template-columns: 1fr;
  }
  .v10-heritage-card-img {
    min-height: 220px;
  }
  .v10-result-body {
    padding: 24px;
  }
  .v10-result-facts {
    grid-template-columns: 1fr;
  }
  .v10-card-action {
    justify-self: start;
  }
}
