@import "./global.css";
@import "./property-gallery.css";

.propertyContainer {
  padding: 2rem 1.25rem 0;
}

.propertySheetContent .propertyHeader .propertyPrice,
.propertySheetContent .propertyHeader .propertyTitle,
.propertySheetContent .propertyDiagnostic .diagnosticValue,
.propertyContact .propertyAgent {
  font-size: 1.375rem;
  line-height: 1.45;
  font-weight: 600;
}

.propertySheetContent .propertyDiagnostic .diagnosticValue .diagnosticValueUnit {
  display: block;
  color: #999999;
  font-size: 0.625rem;
  font-weight: 400;
}

.propertySheetContent .propertyHeader .propertyPrice {
  margin-right: 0.75rem;
}

.propertySheetContent .propertyHeader .propertyTitle {
  margin: 0.75rem 0 0.5rem;
}

.propertySheetContent .propertySubInfos {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.propertySheetContent .propertySubInfos .propertyExclusivity {
  background-color: #f6f6f6;
  border-radius: 50px;
  padding: 0.375rem 0.75rem;
  font-size: 13px;
  line-height: 20px;
  font-weight: bold;
}

.propertySheetContent .propertyPrimaryInfos {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

.propertySheetContent .propertyPrimaryInfos .propertyPrimaryInfo {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-basis: 25%;
}

.propertySheetContent .propertyDescription,
.propertySheetContent .propertyComposition,
.propertySheetContent .propertyInformation,
.propertySheetContent .propertyDiagnostic,
.propertySheetContent .propertyFees {
  margin-top: 2.5rem;
}

.propertySheetContent .propertyInformation .propertySubtitle {
  margin-bottom: 1rem;
}

.propertySheetContent .propertyInformation .informationList {
  margin-bottom: 2rem;
}

.propertySheetContent .propertyDescription .propertyDescriptionContent,
.propertySheetContent .propertyComposition .compositionEntities,
.propertySheetContent .propertyDiagnostic .energeticDiagnostics,
.propertySheetContent .propertyFees .feesContent {
  margin-top: 0.5rem;
}

.propertySheetContent .propertyDescription .propertyDescriptionContent {
  white-space: pre-line;
}

.propertySheetContent .propertyInformation .informationSubtitle {
  margin-bottom: 0.5rem;
}

.propertySheetContent .propertyDiagnosticSubtitleEmpty {
  font-size: 0.8125rem;
  line-height: 1.75rem;
  font-weight: 400;
  margin-top: 1rem;
  color: #999999;
}

.propertySheetContent .propertyDiagnosticSubtitle {
  font-size: 0.8125rem;
  line-height: 1.75rem;
  font-weight: 400;
  margin: 1rem 0 0.25rem;
}

.propertySheetContent .propertyDiagnostic .diagnosticsContent {
  margin-bottom: 1.5rem;
}

.propertySheetContent .propertyDiagnosticCommon {
  display: flex;
}

.propertySheetContent .propertyDiagnosticCommon .diagnosticValuesSeparator {
  display: inline-block;
  font-size: 1rem;
  margin: 0 24px 0 10px;
}

.propertySheetContent .propertyDiagnosticAside {
  color: #999999;
}

.propertySheetContent .propertyDiagnosticEnergyConsuming {
  font-size: 0.8125rem;
  font-weight: 400;
}

.propertySheetContent .propertyDiagnosticEnergyConsuming .energyMetric {
  font-weight: 600;
}

.propertySheetContent .propertyComposition .compositionEntities,
.propertySheetContent .propertyInformation .informationList {
  display: flex;
  flex-direction: column;
}

/*Diagnostic*/
.diagnostic + .diagnostic {
  margin-top: 2rem;
}

.diagnostic-scale ul {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin-bottom: 0;
}
.diagnostic-scale li {
  width: 1.25rem;
  height: 1.25rem;
  line-height: 1.25rem;
  text-align: center;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 2px;
}
.diagnostic-scale li:first-of-type {
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
}
.diagnostic-scale li:last-of-type {
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
  margin-right: 0;
}
.diagnostic-scale li.active {
  width: 1.875rem;
  height: 1.875rem;
  font-size: 1.375rem;
  line-height: 2rem;
  border-radius: 4px;
}

.diagnostic-scale .diagnostic-dpe {
  --diagnostic-color-a: #00A170;
  --diagnostic-color-b: #00BB54;
  --diagnostic-color-c: #4AC57B;
  --diagnostic-color-d: #FDEB00;
  --diagnostic-color-e: #FFBC00;
  --diagnostic-color-f: #FF882F;
  --diagnostic-color-g: #EC0017;
}

.diagnostic-scale .diagnostic-ges {
  --diagnostic-color-a: #A3DBFC;
  --diagnostic-color-b: #8CB4D3;
  --diagnostic-color-c: #7792B1;
  --diagnostic-color-d: #606F8F;
  --diagnostic-color-e: #4D5271;
  --diagnostic-color-f: #393551;
  --diagnostic-color-g: #281B35;
}

.diagnostic-scale .grade-a {
  background-color: var(--diagnostic-color-a);
}

.diagnostic-scale .grade-b {
  background-color: var(--diagnostic-color-b);
}

.diagnostic-scale .grade-c {
  background-color: var(--diagnostic-color-c);
}

.diagnostic-scale .grade-d {
  background-color: var(--diagnostic-color-d);
}

.diagnostic-scale .grade-e {
  background-color: var(--diagnostic-color-e);
}

.diagnostic-scale .grade-f {
  background-color: var(--diagnostic-color-f);
}

.diagnostic-scale .grade-g {
  background-color: var(--diagnostic-color-g);
}

.propertySheetContent .propertyFees {
  margin-top: 3rem;
}

.propertySheetContent .propertyFees .feesContent {
  margin-top: 1rem;
}

.propertySheetContent .propertyFees .propertyPrice {
  font-size: 1.375rem;
  line-height: 1.45;
  font-weight: 600;
}

.propertySheetContent .propertyFees .feesContent .feesDetails {
  margin-top: 0.25rem;
}

.propertySheetContent .propertyFees .feesContent .feesDetails .feesMetric {
  font-weight: 600;
}

.propertyContact {
  margin: 4rem -1.25rem 0;
}

.propertyContact .propertyContactContent {
  padding: 2rem 1.25rem 4rem;
  background-color: #F6F6F6;
}

.propertyContact .propertySubtitle {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.propertyContact .contactInformation {
  margin: 1rem 0 1.5rem;
}

.propertyContact .contactInformation > p {
  display: flex;
  align-items: center;
  font-size: 1rem;
  line-height: 2.125;
  margin-bottom: 0.625rem;
}

.propertyContact .contactInformation .contactIcon {
  margin-right: 0.5rem;
}

.propertyContact .contactButton {
  width: 100%;
}

@media screen and (min-width: 800px) {
  .propertyContainer {
    padding: 3rem 1.25rem 4.5rem;
  }

  .propertyContent {
    max-width: 1200px;
    width: 100%;
    margin: auto;
  }

  .propertyContent {
    display: flex;
  }

  .propertyContent .propertySheetContent {
    flex: 2 1;
    padding: 0;
    margin-right: 3.75rem;
  }

  .propertyContent .propertyContact .propertyContactContent {
    position: sticky;
    top: 112px; /* header height + content padding top (for spacing) */
  }

  .propertyHeader {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    margin-bottom: 0.5rem;
  }

  .propertySheetContent .propertyHeader .propertyTitle {
    margin: 0;
    padding-right: 1.25rem;
    font-size: 1.75rem;
    line-height: 1.6;
  }

  .propertySheetContent .propertyHeader .propertyInfos {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  .propertySheetContent .propertyHeader .propertyPrice {
    font-size: 1.75rem;
    line-height: 1.6;
    margin-right: 0;
    margin-bottom: 0.5rem;
  }

  .propertySheetContent .propertyHeader .propertySquarePrice {
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 600;
  }

  .propertySheetContent .propertyAddress {
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 600;
  }

  .propertySheetContent .propertyPrimaryInfos {
    justify-content: flex-start;
  }

  .propertySheetContent .propertyPrimaryInfos .propertyPrimaryInfo {
    flex-direction: row;
    flex-basis: auto;
    margin-right: 2.5rem;
  }
  .propertySheetContent .propertyPrimaryInfos .propertyPrimaryInfo:last-child {
    margin-right: 0;
  }

  .propertySheetContent .propertyPrimaryInfos .propertyPrimaryInfo > svg {
    margin-right: 0.5rem;
  }

  .propertySheetContent .propertyDescription .propertyDescriptionContent {
    font-size: 1rem;
    line-height: 2.125;
  }

  .propertySheetContent .propertyInformation .informationLists {
    display: flex;
    flex-wrap: wrap;
  }

  .propertySheetContent .propertyInformation .informationLists .informationList {
    flex-grow: 1;
    width: 50%;
    font-size: 1rem;
  }

  .propertySheetContent .propertyDiagnostic .diagnosticsContent {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
  }

  .propertySheetContent .propertyDiagnostic .diagnostic + .diagnostic {
    margin-top: 0;
  }

  .propertySheetContent .propertyFees .feesContent .feesDetails p {
    font-size: 1rem;
  }

  .propertySheetContent .propertyDescription,
  .propertySheetContent .propertyComposition,
  .propertySheetContent .propertyInformation,
  .propertySheetContent .propertyDiagnostic,
  .propertySheetContent .propertyFees {
    margin-top: 3rem;
  }

  .propertyContent .propertyContact {
    flex: 1 1;
    margin: 0;
  }

  .propertyContent .propertyContactContent {
    padding: 2rem 2rem 2.25rem;
  }

  .propertyContent .propertyContact .propertySubtitle {
    font-size: 1rem;
  }
}

@media screen and (min-width: 1000px) {
  .propertySheetContent .propertyInformation .informationLists .informationList {
    flex-grow: 1;
    width: 33%;
    margin-bottom: 0;
  }
}