/* Display the shared property sheet with the agency's deep teal and serif headings. */
@media screen {
  .property-top {
    width: var(--page);
    margin: clamp(1rem, 2.3vw, 2rem) auto 0;
    min-height: 0;
    grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
    background: #123339;
  }
  .property-top-image { position: relative; min-height: 25rem; overflow: hidden; }
  .property-top-image img { position: absolute; inset: 0; display: block; }
  .property-top-copy { min-width: 0; padding: clamp(2rem, 4vw, 4.5rem); }
  .property-top-copy h1 {
    margin: 0;
    font: 500 clamp(2.3rem, 3.4vw, 3.6rem)/1.07 Georgia, serif;
    letter-spacing: -.038em;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }
  .property-top-copy .eyebrow {
    color: #a5e2e1;
    font-size: .78rem;
    line-height: 1.6;
    letter-spacing: .12em;
    overflow-wrap: anywhere;
  }
  .property-top .property-facts {
    gap: 0;
    padding: 1rem 0;
    margin: 1.45rem 0 0;
    border-block: 1px solid #ffffff40;
  }
  .property-facts span {
    background: transparent;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 0 .8rem;
  }
  .property-facts span:first-child { padding-left: 0; }
  .property-facts span + span { border-left: 1px solid #ffffff40; }
  .property-top .property-price {
    margin: 1.5rem 0 0;
    font: 650 clamp(1.5rem, 2.4vw, 2.25rem)/1.15 'DM Sans', Arial, sans-serif;
    letter-spacing: -.035em;
    text-wrap: balance;
  }
  .property-top .actions { margin-top: 1.6rem; column-gap: 1.3rem; }
  .property-top .button { background: #f4f8f4; border-color: #f4f8f4; color: #14383d; }
  .property-top .button:hover { background: #dcf3f1; border-color: #dcf3f1; }
  .property-gallery-link { color: #fff; text-underline-offset: .3em; font-weight: 600; }
  .property-gallery-link:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }

  .property-details { align-items: start; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 7vw, 7rem); }
  .property-details h2, #photos-du-bien h2, .body-content h2 {
    margin: 0 0 1.2rem;
    font: 500 clamp(2rem, 3.4vw, 3.4rem)/1.12 Georgia, serif;
    letter-spacing: -.035em;
  }
  .property-details p { max-width: 63ch; font-size: 1.1rem; line-height: 1.8; color: #334c51; }
  .property-details > div:last-child { background: #f1f6f4; padding: clamp(1.25rem, 2.8vw, 2.5rem); border-top: 3px solid #387e80; }
  .property-details h3 { font-size: 1.35rem; margin: 0 0 .65rem; }
  .property-details li, .diagnostic-details > div {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: baseline;
    padding: .72rem 0;
    font-variant-numeric: tabular-nums;
    border-bottom: 1px solid #cedcda;
    overflow-wrap: anywhere;
  }
  .property-details li:last-child, .diagnostic-details > div:last-child { border-bottom: 0; }
  .property-details li strong, .diagnostic-details dt { color: #4e6669; font-weight: 500; }
  #photos-du-bien { background: #edf2ef; scroll-margin-top: 6.5rem; }
  #photos-du-bien .wrap { max-width: 1040px; }
  #photos-du-bien .section-head { margin-bottom: 1.5rem; }
  #photos-du-bien h2 { margin-bottom: 0; }
  #photos-du-bien .longere-gallery { padding-top: 0; }
  #photos-du-bien .longere-stage { background: #11282c; }
  #photos-du-bien .longere-count { font-size: 1rem; }

  .body-content { max-width: 850px; }
  .energy-box { margin: 1.8rem 0; padding: 0; border: none; background: transparent; }
  .diagnostic-grades { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 17rem),1fr)); gap: 1rem; }
  .diagnostic-grade { display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; background: #f3f6f1; padding: 1.1rem 1.3rem; }
  .diagnostic-grade[data-diagnostic="GES"] { background: #f2f3f8; }
  .diagnostic-grade span { display: block; color: #41575b; }
  .diagnostic-grade b {
    display: grid;
    place-items: center;
    min-width: 3rem;
    min-height: 3rem;
    font: 700 1.8rem/1 Arial,sans-serif;
    color: #121c1d;
    background: var(--grade-color);
  }
  .diagnostic-value { overflow-wrap: anywhere; }
  [data-grade="A"] { --grade-color: #009b58; }
  [data-grade="B"] { --grade-color: #62b558; }
  [data-grade="C"] { --grade-color: #a6ce63; }
  [data-grade="D"] { --grade-color: #f4e84e; }
  [data-grade="E"] { --grade-color: #f7bd43; }
  [data-grade="F"] { --grade-color: #ef8a3c; }
  [data-grade="G"] { --grade-color: #dc4339; }
  [data-diagnostic="GES"] [data-grade="A"] { --grade-color: #9cdbef; }
  [data-diagnostic="GES"] [data-grade="B"] { --grade-color: #86c7df; }
  [data-diagnostic="GES"] [data-grade="C"] { --grade-color: #6a9cbd; }
  [data-diagnostic="GES"] [data-grade="D"] { --grade-color: #5c7296; color: white; }
  [data-diagnostic="GES"] [data-grade="E"] { --grade-color: #535576; color: white; }
  [data-diagnostic="GES"] [data-grade="F"] { --grade-color: #4b405f; color: white; }
  [data-diagnostic="GES"] [data-grade="G"] { --grade-color: #342d42; color: white; }
  .diagnostic-details { margin: 1rem 0 0; }
  .diagnostic-details dd { margin: 0; font-weight: 600; }
}
@media screen and (max-width: 800px) {
  .property-top { width: 100%; margin-top: 0; }
  .property-top-image { height: auto; min-height: 0; aspect-ratio: 3 / 2; }
  .property-top-copy { width: 100%; box-sizing: border-box; padding: 1.65rem max(1rem, 5vw) 2rem; }
  .property-top-copy h1 { font-size: clamp(2.1rem, 6.8vw, 2.8rem); }
  .property-top .eyebrow { margin-bottom: .8rem; }
  .property-top .property-facts { margin-top: 1.15rem; }
  .property-details { grid-template-columns: 1fr; gap: 1.8rem; }
  .property-details p { font-size: 1rem; }
  #photos-du-bien { scroll-margin-top: 1rem; }
}
