/* Installation and service choices use photographs with live, selectable labels. */
.action-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.action-photo[data-photo="buy"] { object-position: 47% 35%; }
.action-photo[data-photo="sell"] { object-position: 28% 55%; }
.action-photo[data-photo="rent"] { object-position: 48% 46%; }
.action-photo[data-photo="finance"] { object-position: 45% 55%; }
.action-photo[data-photo="eligibility"] { object-position: 46% 54%; }
.action-photo[data-photo="neighborhood"] { object-position: 51% 51%; }
.action-photo[data-photo="landing"] { object-position: 51% 42%; }
.action-photo[data-photo="scoop"] { object-position: 67% 39%; }
.action-photo[data-photo="text"] { object-position: 50% 53%; }
.action-photo[data-photo="talk"] { object-position: 52% 40%; }
.action-photo[data-photo="map"] { object-position: 51% 58%; }

.b2b-choices { gap: clamp(.55rem, 1.25vw, 1rem); }
.b2b-choices .b2b-choice {
  display: flex; flex-flow: column nowrap; align-items: stretch;
  justify-content: flex-start; position: relative; min-width: 0;
  overflow: hidden; padding: 0 0 .8rem;
  background: #fffef9; border-radius: .55rem; text-decoration: none;
}
.b2b-choices .b2b-choice strong {
  order: 1; margin: .65rem .9rem .1rem;
  font: 600 clamp(1.02rem, 1.5vw, 1.3rem)/1.18 Georgia, serif;
}
.b2b-choices .b2b-choice span {
  order: 2; margin: .1rem .9rem 0; color: #395761; font-size: .875rem;
}
.b2b-choices .b2b-choice .action-photo {
  order: 0; width: 100%; height: clamp(6.3rem, 9vw, 8.25rem);
}
.b2b-choices .b2b-direct-card { border-radius: .55rem; }
.b2b-direct-card .b2b-inline-help { padding: 0 .9rem .65rem; }
.b2b-choices .b2b-choice:hover, .b2b-choices .b2b-choice[aria-expanded="true"] {
  background: #edf3f2; border-color: #376674;
}
.b2b-choices a:focus-visible, .photo-choices a:focus-visible {
  outline: 3px solid #a56913; outline-offset: 3px; z-index: 1;
}

.photo-choices {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11.5rem), 1fr));
  gap: clamp(.65rem, 1.5vw, 1rem); margin: 1.1rem 0 1.75rem;
}
.photo-choices a.photo-link {
  position: relative; isolation: isolate; display: flex; align-items: flex-end;
  min-height: clamp(8.6rem, 13vw, 11.5rem); overflow: hidden;
  padding: 1rem; border: 0; border-radius: .5rem; background: #173e49;
  color: white; text-decoration: none; text-align: left;
}
.photo-link .action-photo {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
}
.photo-link::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent 22%, rgba(5,25,32,.25) 44%, rgba(5,25,32,.96) 100%);
}
.photo-link .photo-label {
  display: flex; align-items: flex-end; justify-content: space-between;
  width: 100%; gap: .5rem; color: white; font: 600 clamp(1.05rem,1.8vw,1.45rem)/1.18 Georgia,serif;
  text-shadow: 0 1px 4px #0d2934;
}
.photo-label::after {
  content: ""; flex: 0 0 .48rem; height: .48rem; margin: 0 .14rem .32rem 0;
  border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(-45deg);
}

/* Local Scoop and Softer Landing read as two different invitations. */
.photo-choices.feature-pair { grid-template-columns: repeat(2,minmax(0,1fr)); }
.feature-pair a.photo-link { min-height: clamp(8.5rem, 13.5vw, 11.8rem); padding: 1.25rem; }
.feature-pair .photo-label { font-size: clamp(1.3rem,2.2vw,1.85rem); }
.photo-choices.photo-compact a.photo-link {
  min-height: 4rem; padding: 0; align-items: stretch; border: 1px solid #c4d1cf;
  color: #143d49; background: #fbfaf5;
}
.photo-compact .photo-link::before { display: none; }
.photo-compact .photo-link .action-photo {
  position: static; z-index: auto; width: 4.3rem; min-height: 4rem; height: auto;
}
.photo-compact .photo-link .photo-label {
  align-items: center; padding: .55rem .75rem; font: 650 .98rem/1.25 Arial,sans-serif;
  color: #173e49; text-shadow: none;
}
.photo-compact .photo-label::after { margin-bottom: 0; }
.sv-home-links.photo-choices {
  width: min(1180px, calc(100% - 2rem)); padding: .5rem 0; margin: .8rem auto;
  border: 0; background: transparent;
}
.sv-callout.photo-callout, .service-closing .photo-callout {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: stretch; padding: 0; overflow: hidden; border-radius: .55rem;
}
.photo-callout > .action-photo { min-height: 13rem; height: 100%; }
.photo-callout > .photo-callout-copy { align-self: center; padding: clamp(1.15rem, 3.5vw, 2.6rem); }
.service-closing .photo-callout { background: #e9ede8; color: #143d49; }
.service-closing .photo-callout-copy { text-align: left; }
.service-closing .photo-callout-copy a {
  display: inline-block; margin-top: .5rem; padding: .7rem 1rem; border-radius: .3rem;
  background: #173e49; color: #fff; text-decoration: none;
}
.sv-detail.photo-detail { overflow: hidden; padding: 0; }
.sv-detail.photo-detail > .action-photo { height: clamp(7.5rem, 12vw, 10.5rem); }
.photo-detail > div { padding: 1rem 1.2rem; }
.photo-credit { font-size: .78rem; color: #46636c; }

@media (max-width: 760px) {
  .b2b-choices { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .b2b-choices .b2b-choice .action-photo { height: clamp(5.5rem, 20vw, 7rem); }
  .b2b-choices .b2b-choice strong { margin: .58rem .65rem .12rem; }
  .b2b-choices .b2b-choice span { margin-inline: .65rem; }
  .b2b-direct-card .b2b-inline-help { padding-inline: .65rem; }
  .photo-choices { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .photo-choices .photo-link { min-height: 8rem; padding: .8rem; }
  .feature-pair a.photo-link { padding: .9rem; }
  .photo-compact .photo-link .action-photo { width: 3.4rem; }
  .photo-compact .photo-link .photo-label { font-size: .88rem; padding: .45rem; }
}
@media (max-width: 540px) {
  .sv-callout.photo-callout, .service-closing .photo-callout { grid-template-columns: 1fr; }
  .photo-callout > .action-photo { height: 9.3rem; min-height: 0; }
  .photo-choices.photo-compact { grid-template-columns: 1fr; gap: .5rem; }
  .photo-choices.photo-compact a.photo-link { min-height: 3.5rem; }
  .photo-compact .photo-link .action-photo { width: 4.4rem; min-height: 3.5rem; }
  .photo-compact .photo-link .photo-label { font-size: 1rem; padding-inline: .7rem; }
  .feature-pair .photo-label { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .photo-link .action-photo { transition: transform .22s ease; }
  .photo-choices:not(.photo-compact) .photo-link:hover .action-photo { transform: scale(1.035); }
}
@media print {
  .photo-choices a.photo-link { min-height: 0; background: white; color: black; padding: .4rem; }
  .photo-choices .photo-label { color: black; text-shadow: none; }
  .photo-link::before, .photo-link .action-photo, .b2b-choice .action-photo { display: none; }
}
