/* F20d — scheda immobile portale: include split, hero, strumenti finanziari */

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

.detail-section-title--flush {
  margin-bottom: 0;
}

.portal-financial-soft-card {
  padding: 18px;
}

.portal-financial-card-title {
  font-weight: 800;
  font-size: 13px;
  color: #0f172a;
  margin-bottom: 14px;
}

.portal-financial-card-title--tight {
  margin-bottom: 8px;
}

.portal-financial-grid-stack {
  display: grid;
  gap: 14px;
}

.portal-financial-field {
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.portal-financial-field--narrow {
  max-width: 220px;
}

.pf-input {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  font-size: 15px;
}

.pf-input--price {
  max-width: 280px;
}

.pf-input--down-num {
  margin-top: 8px;
  max-width: 160px;
  padding: 8px 10px;
  border-radius: 10px;
}

.portal-financial-down-label {
  font-size: 13px;
  margin-bottom: 8px;
}

.portal-financial-down-label strong {
  color: #0f172a;
}

.portal-financial-range {
  width: 100%;
  max-width: 420px;
}

.portal-financial-hint {
  font-size: 12px;
  margin-top: 6px;
}

.portal-financial-result-card {
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.portal-financial-result-label {
  font-size: 12px;
}

#pfInstallmentOut {
  font-size: 26px;
  font-weight: 800;
  font-family: var(--font-display);
  color: #b45309;
  margin-top: 4px;
}

#pfSustainability {
  margin-top: 12px;
  line-height: 1.6;
  font-size: 14px;
}

#pfPurchaseLines {
  font-size: 14px;
  line-height: 1.55;
}

#pfPurchaseTotal {
  margin-top: 12px;
  font-weight: 800;
  font-size: 16px;
}

.portal-financial-note {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.55;
}

.portal-financial-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.portal-financial-lead-form {
  display: grid;
  gap: 12px;
  max-width: 480px;
}

#pfLeadSubmit {
  justify-self: start;
}

.portal-financial-lead-intro {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.6;
}

#pfLeadMsg {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
}

  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.portal-financial-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
}

.property-detail-favorite-form {
  margin-top: 12px;
}

.detail-gallery-card--flush {
  overflow: hidden;
  background: transparent;
}

.detail-gallery-stage-wrap {
  background: transparent;
  position: relative;
  overflow: hidden;
  line-height: 0;
}

#detailPrevBtn,
#detailNextBtn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  cursor: pointer;
  font-size: 22px;
  font-weight: 700;
  color: #7a2e21;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

#detailPrevBtn {
  left: 14px;
}

#detailNextBtn {
  right: 14px;
}

#detailGalleryCounter {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 600;
  color: #5c3a33;
  backdrop-filter: blur(8px);
}

.detail-gallery-empty {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  color: #64748b;
}

.detail-thumbs-bar {
  padding: 16px;
  border-top: 1px solid var(--line);
}

#detailThumbs {
  display: flex;
  gap: 10px;
  overflow: auto;
}

#detailThumbs .detail-thumb {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  flex: 0 0 auto;
  width: 112px;
  height: 84px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid transparent;
  box-shadow: none;
}

#detailThumbs .detail-thumb.is-active {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.1);
}

#detailThumbs .detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#similarPropertiesCard {
  padding: 22px;
}

.similar-properties-title {
  font-size: 24px;
}

.similar-properties-lead {
  margin-top: 8px;
  line-height: 1.65;
}

#similarTrack {
  margin-top: 16px;
}

.similar-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef2f7;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.similar-empty-card {
  margin-top: 16px;
  padding: 16px;
}

.detail-main-stats-grid {
  margin-top: 22px;
}

.detail-prose-block {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.75;
  color: #334155;
  white-space: pre-line;
}

#featureBoxes.detail-feature-grid--spaced {
  margin-top: 20px;
}

.detail-pills-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.detail-territory-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.detail-territory-group-card {
  padding: 18px;
}

.detail-territory-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.detail-territory-row {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.9);
  padding: 12px 14px;
}

.detail-territory-row-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

.detail-territory-row-value {
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.65;
  color: #0f172a;
}

#detailMapSection {
  padding: 16px;
}

.detail-map-head {
  padding: 8px 8px 16px;
}

.detail-map-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.detail-map-title {
  font-size: 28px;
  margin: 0;
}

#detailMap {
  height: 520px;
  border-radius: 20px;
  overflow: hidden;
  background: #e9eef5;
}

.detail-map-footnote {
  padding: 14px 6px 0;
}
