.fans-property-gallery {
  padding: clamp(54px,7vw,88px) max(20px,calc((100% - 1320px)/2));
  background: #fff;
  color: #0d2d46;
}
.fans-property-gallery[data-listing-type="affitto_breve"] { background: #f3f6f8; }
.fans-gallery-tabs { display: flex; width: fit-content; gap: 4px; margin: 0 auto 26px; padding: 5px; border: 1px solid #dce4e8; border-radius: 999px; background: #fff; }
.fans-gallery-tabs button { min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: #536976; font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; transition: background .18s ease,color .18s ease; }
.fans-gallery-tabs button[aria-pressed="true"] { background: #153653; color: #fff; }
.fans-gallery-tabs button:focus-visible, .fans-gallery-controls button:focus-visible { outline: 3px solid var(--fans-brand-mint); outline-offset: 3px; }
.fans-property-gallery-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; max-width: 1320px; margin: 0 auto 26px; }
.fans-property-gallery-head h2 { max-width: none; margin: 0; color: #0d2d46; font-size: clamp(1.9rem,3.5vw,3rem); font-weight: 700; line-height: 1.12; letter-spacing: -.045em; }
.fans-property-gallery-head p:not(.fans-home-eyebrow) { max-width: 54ch; margin: 12px 0 0; color: #536976; line-height: 1.6; }
.fans-property-gallery .fans-home-eyebrow { margin-bottom: 12px; color: #153653; }
.fans-property-gallery .fans-home-eyebrow > span { background: var(--fans-brand-mint); }
.fans-gallery-controls { display: flex; gap: 9px; flex: 0 0 auto; }
.fans-gallery-controls button { display: grid; width: 44px; min-height: 44px; place-items: center; padding: 0; border: 1px solid #cbd5dc; border-radius: 50%; background: #fff; color: #153653; font: inherit; font-size: 1.25rem; font-weight: 700; line-height: 1; cursor: pointer; transition: background .18s ease,color .18s ease,border-color .18s ease; }
.fans-gallery-controls button:hover { border-color: #153653; background: #153653; color: #fff; }
.fans-property-rail { display: flex; flex-flow: row nowrap; gap: 22px; width: 100%; min-width: 0; max-width: 1320px; margin: 0 auto; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #b9c5ce transparent; }
.fans-property-card { flex: 0 0 calc((100% - 44px)/3); min-width: 0; overflow: hidden; border: 1px solid #e0e6ea; border-radius: 16px; background: #fff; box-shadow: 0 10px 26px #1536530a; scroll-snap-align: start; }
.fans-property-card > a { display: block; height: 100%; color: inherit; text-decoration: none; }
.fans-property-card-image { position: relative; height: clamp(205px,21vw,280px); overflow: hidden; background: #e6ebee; }
.fans-property-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .28s ease; }
.fans-property-card:hover .fans-property-card-image img { transform: scale(1.035); }
.fans-property-card-image > span { position: absolute; inset: 14px auto auto 14px; padding: 7px 11px; border-radius: 5px; background: #153653; color: #fff; font-size: .74rem; font-weight: 700; }
.fans-property-card-copy { padding: 18px 19px 20px; }
.fans-property-card-copy > p { margin: 0 0 7px; color: #637783; font-size: .78rem; font-weight: 600; letter-spacing: .035em; text-transform: uppercase; }
.fans-property-card-copy h3 { min-height: 2.7em; margin: 0; color: #0d2d46; font-size: 1.05rem; font-weight: 700; line-height: 1.34; }
.fans-property-card-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 17px; padding-top: 13px; border-top: 1px solid #e6ebee; }
.fans-property-card-foot strong { color: #153653; font-size: 1rem; font-weight: 800; }
.fans-property-card-foot small { color: #637783; font-size: .76rem; text-align: right; }
.fans-gallery-status { flex: 0 0 100%; min-height: 100px; margin: 0; padding: 30px; border: 1px solid #e0e6ea; border-radius: 14px; background: #fff; color: #536976; line-height: 1.6; }
.fans-gallery-status a { color: #153653; font-weight: 700; }
.fans-gallery-all { display: inline-flex; align-items: center; min-height: 32px; margin: 14px max(0px,calc((100% - 1320px)/2)) 0; color: #153653; font-size: .88rem; font-weight: 700; text-decoration: underline; text-decoration-color: var(--fans-brand-mint); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.fans-home-reviews { background: #fff; }
.fans-home-reviews-heading h2 { color: #0d2d46; }
.fans-home-review-grid { align-items: stretch; }
.fans-home-review-card { display: flex; flex-direction: column; min-height: 260px; }
.fans-google-review-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fans-google-stars { color: #e3a008; font-size: 1rem; letter-spacing: .06em; }
.fans-google-mark { color: #5c6b73; font-size: .75rem; font-weight: 700; }
.fans-home-review-card p { flex: 1; min-height: 0; margin: 20px 0; color: #334f60; white-space: pre-line; }
.fans-google-review-author { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 7px; color: #0d2d46; font-size: .9rem; font-weight: 700; }
.fans-google-review-author a { color: inherit; }
.fans-google-author-id { display: inline-flex; align-items: center; gap: 9px; }
.fans-google-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.fans-google-review-author small { color: #637783; font-size: .74rem; font-weight: 500; }
.fans-google-source { display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; min-height: 42px; margin-top: 12px; padding: 8px 13px; border-radius: 8px; background: var(--fans-brand-mint); color: #0d2d46; font-size: .8rem; font-weight: 700; text-decoration: none; }
.fans-google-reviews-status { grid-column: 1/-1; margin: 0; color: #536976; line-height: 1.6; text-align: center; }
.fans-google-reviews-status a { color: #153653; font-weight: 700; }
.fans-home-google-link { display: flex; align-items: center; justify-content: center; width: fit-content; min-height: 48px; margin: 26px auto 0; padding: 10px 18px; border-radius: 8px; background: #153653; color: #fff; font-size: .88rem; font-weight: 700; text-decoration: none; }
@media (max-width: 760px) {
  .fans-property-gallery { padding: 34px 18px 42px; }
  .fans-property-gallery-head { display: block; margin-bottom: 16px; }
  .fans-property-gallery-head > div { min-width: 0; }
  .fans-property-gallery .fans-home-eyebrow { display: none; }
  .fans-property-gallery-head h2 { max-width: none; font-size: clamp(1.75rem,7.4vw,2.2rem); line-height: 1.1; }
  .fans-property-gallery-head p:not(.fans-home-eyebrow) { max-width: 48ch; margin-top: 8px; font-size: .95rem; line-height: 1.5; }
  .fans-gallery-tabs { max-width: 100%; margin: 0 0 17px; }
  .fans-gallery-tabs button { padding: 0 16px; }
  .fans-gallery-controls { justify-content: flex-end; gap: 8px; margin-top: 12px; }
  .fans-gallery-controls button { width: 42px; min-height: 42px; }
  .fans-property-rail { gap: 12px; width: 100%; }
  .fans-property-card { flex-basis: min(86vw, 380px); min-width: min(86vw, 380px); }
  .fans-property-card-image { height: 225px; }
  .fans-property-card-copy { padding: 16px; }
  .fans-gallery-all { margin: 12px 0 0; }
  .fans-home-review-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .fans-property-card-image img, .fans-gallery-controls button { transition: none; }
}
