.site-header{
  background-color: var(--dark-background-color);
}

.site-header .brand-text{
  visibility: visible !important;
}

.homepage .description h3{
  font-family: var(--body-font);
  font-size: 1.125rem;
  font-weight: 700;
}

.homepage .description h3:not(:first-child){
  margin-top: 2rem;
}

.property-detail-header .page-thumbnail{
  height: 25vh;
  margin-top: -.5rem;
}

@media (min-width: 768px) {
  .property-detail-header .page-thumbnail{
    height: 50vh;
    margin-top: -.5rem;
  }
}


.property-detail-header .page-thumbnail img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-detail-content .container{
  padding: 2rem 2rem 0;
}

.property-overview .container{
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 2rem;
}

@media (min-width: 768px) {
  property-overview .container{
    grid-template-columns: 25% 1fr;
  }
}

.property-details-list{
  list-style: none;
  margin: 0;
  padding: 0;
}

.property-details-list li{
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #ccc;
}

.property-details-list strong{
  flex-basis: 30%;
}

.property-media{
  list-style: none;
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(2, 1fr);
  grid-gap: 1rem;
  min-height: 30vh;
  overflow: hidden;
}

@media screen and (min-width: 768px){
  .property-media{
    max-height: 470px;
  }
}

.property-media li{
  position: relative;
  grid-column: span 12;
  height: 360px;
  overflow: hidden;
}

@media screen and (min-width: 768px){
  .property-media li{
    grid-column: span 4;
    height: auto;
    max-height: 360px;
  }
}

.property-image{
  height: 100%;
  margin: 0;
  border: 1px solid #eee;
}

.property-media .lead-image{
  max-height: 470px;
}

@media screen and (min-width: 768px){
  .property-media .lead-image{
    grid-column: span 8;
    grid-row: 1 / 3;
  }
}

.lead-image .property-image{
  display: flex;
  justify-content: center;
  background-color: #eee;
}

.property-image img {
    height: 100%;
    width: auto;
}

.property-info .property-details {
  grid-column: span 12;
  order: 4;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-gap: 1rem;
}

@media (min-width: 768px) {
  .property-info .property-details {
    grid-gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .property-info .property-details {
    grid-gap: 2rem 4rem;
  }
}

.property-info .property-details .property-details-section {
  grid-column: span 12;
}

@media (min-width: 768px) {
  .property-info .property-details .property-details-section {
    grid-column: span 6;
  }
}

@media (min-width: 1024px) {
  .property-info .property-details .property-details-section {
    grid-column: span 4;
  }
}

.property-details-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.property-details-list .property-details-list-header {
  margin-bottom: 0;
}

.property-details-list li {
  margin-bottom: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #ccc;
  font-size: 0.875rem;
}

.property-details-list li strong {
  display: inline-block;
  width: 30%;
  padding-right: 0.5rem;
  font-size: 0.75rem;
  font-weight: 400;
  color: #888;
  vertical-align: top;
  overflow: hidden;
}

.property-details-list li strong img {
  max-width: 100%;
  height: auto;
}

.property-details-list li span {
  display: inline-block;
  width: 65%;
  line-height: 1.4;
}

.property-details-list li span small {
  display: block;
}

.property-details-list .property-details-list-subsection {
  list-style: none;
  margin: 0;
  padding: 0;
}

.property-details-list .property-details-list-subsection li {
  margin-bottom: 0;
  padding-left: 0;
}

.mls-grid-boilerplate {
    grid-column: span 12;
    margin-top: 0;
    font-size: .75rem;
    color: #888;
}

.property-contact-section{
  margin-top: 2rem;
  padding-top: 4rem;
  background-color: var(--dark-background-color);
  color: white;
}

.property-contact-section .section-heading h2{
  color: white;
}

.property-contact-section a{
  color: white;
}

.property-contact-section .agents{
  margin: 1rem auto;
}

.contact-form-container{
  max-width: 40rem;
  margin: auto;
  padding-bottom: 2rem;
}

.property-contact-section .button{
  background-color: white;
  color: var(--dark-background-color);
}

/* property previews */

.cards-item {
  background-color: var(--light-background-color);
  border: 1px solid;
  border-color: var(--item-border-color);
  border-radius: 3px;
}

.preview-items {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}

.preview-item {
  position: relative;
}

.preview-image {
  margin: 0;
  overflow: hidden;
}

.preview-content h3 {
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}
.preview-content p {
  margin: 0.25rem 0;
  font-size: 0.9375rem;
}
.preview-content a {
  display: inline-block;
  margin-top: 1rem;
}

.cards-link {
  display: block;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.property-previews{
  display: flex;
  gap: 2rem;
  flex-direction: column;
}

@media (min-width: 768px) {
  .property-previews{
    flex-direction: row;
  }
}

.property-preview {
  flex-basis: 50%;
  padding: 0;
}

@media (min-width: 768px) {
  .property-preview .property-preview-image {
    max-height: 480px;
  }
}

.property-preview .preview-content {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0 1rem 0.5rem;
}

@media (min-width: 1280px) {
  .property-preview .preview-content {
    padding: 0.5rem 0.25rem 1.25rem 1rem;
  }
}

.property-preview .preview-content .preview-content-details {
  position: relative;
  width: 85%;
}

.property-preview .preview-content h3 {
  margin-bottom: 0;
  font-family: var(--body-font);
  font-size: 0.75rem;
  text-align: left;
  line-height: 1.6;
}

.property-preview .preview-content p {
  line-height: 1.3;
  font-size: 0.875rem;
}

.property-preview .preview-content .price {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.property-preview .preview-content .property-details {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.75rem;
}

.property-preview.media-list-item h3 {
  margin-top: 1.5rem;
}

.property-preview.media-list-item:last-child {
  border: 0;
}

.property-preview .property-preview-meta {
  position: absolute;
  top: 0.25rem;
  left: 0;
  display: flex;
  flex-wrap: wrap;
  width: calc(100% - 2.5rem);
  z-index: 1000;
}

.property-status-label {
  display: inline-block;
  width: auto;
  max-height: 1.5rem;
  margin: 0 0 0.25rem 0.25rem;
  padding: 0.25rem;
  background-color: #888;
  border-radius: 4px;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  word-break: break-all;
  overflow: hidden;
}

.property-status-label.label-new, .property-status-label.label-price-change {
  background-color: #58b549;
}

.property-status-label.label-for-sale, .property-status-label.label-active {
  background-color: #5599a3;
}

.property-status-label.label-hot-home {
  background-color: #d63600;
}

.property-status-label.label-active-private, .property-status-label.label-coming-soon {
  position: relative;
  background-color: #69bdc9;
}

.property-status-label.label-back-on-market, .property-status-label.label-re-activated {
  background-color: #5599a3;
}

.property-status-label.label-under-contract {
  background-color: #666666;
}

.property-status-label.label-closed {
  background-color: #222;
}

.property-preview .property-image {
  position: relative;
  display: flex;
  justify-content: center;
  height: auto;
  background-color: #555;
}

.property-preview .property-image img {
  max-width: 100%;
  height: auto;
}

.property-open-house {
  position: absolute;
  bottom: 0;
  width: 100%;
  margin: 0;
  padding: 0.25rem 0.5rem;
  background: #222;
  color: #fff;
  font-size: 0.6875rem;
  text-transform: uppercase;
}