#fresh-makelaars .header {
  margin-top: 50px;
}

#fresh-makelaars .title {
  display: flex;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  text-transform: uppercase;
}

#fresh-makelaars .title .zipcode-city {
  margin-bottom: 0px;
}

#fresh-makelaars .wave {
  margin: 0 auto 20px auto;
}

#fresh-makelaars .status {
  position: absolute;
  display: flex;
  justify-content: center;
  font-weight: bold;
  padding: 5px 10px;
}

#fresh-makelaars .status.available {
  background-color: #7AC193;
  color: white;
}

#fresh-makelaars .status.unavailable {
  background-color: #bc3d3d;
  color: white;
}


#fresh-makelaars .status.status-available {
    background-color: #69941A;
    color: white;
}

#fresh-makelaars .status.status-unavailable {
    background-color: #ff6b35;
    color: white;
}

#fresh-makelaars .status.status-sold {
    color: #fff;
    background: #bc3d3d;
    padding: 3px 10px;
}

#fresh-makelaars .gallery {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-gap: 10px;
}

#fresh-makelaars .gallery .featured-image {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
}

#fresh-makelaars .gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#fresh-makelaars .gallery .gallery-image--more {
  position: relative;
}

#fresh-makelaars .gallery .gallery-image--more img {
  opacity: 0.35;
}

#fresh-makelaars .gallery .gallery-more-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.35);
}

#fresh-makelaars .gallery {
}


#fresh-makelaars .tab-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  max-width: 1000px;
  margin: 50px auto;
}


#fresh-makelaars .tab-buttons .tab-button {
  width: auto;
  display: flex;
  flex: 1 1 0px;
  gap: 15px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: black;
  text-transform: uppercase;
  border: none;
}

#fresh-makelaars .tab-buttons .tab-button.active, #fresh-makelaars .tab-buttons .tab-button:hover, #fresh-makelaars .tab-buttons .tab-button:focus {
  outline: none;
  background-color: transparent;
  font-weight: bold;
}

#fresh-makelaars .tab-buttons img {
  height: 50px;
}

#fresh-makelaars .tab-content {
  display: none;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  justify-content: center;
  padding-top: 50px;
}

#fresh-makelaars .tab-content.active {
  display: flex;
}

#fresh-makelaars .tab-content > div {
  max-width: 100%;
}

#fresh-makelaars .tab-content .overview {
    display: flex;
    flex-wrap: wrap;
}

#fresh-makelaars .tab-content .overview .description {
  width: 50%;
  padding-right: 50px;
}
#fresh-makelaars .tab-content .overview .characteristics {
  width: 50%;
}

#fresh-makelaars .tab-content .overview .map {
  width: 100%;
}

#fresh-makelaars .tab-content .overview .map-filters {
  width: 100%;
  max-width: 100%;
  margin: 0;
  position: static;
  padding: 30px 30px 30px 30px;
  background-color: #F5F5F5;
}

#fresh-makelaars .tab-content .overview .map-filters ul {
    column-count: 4;
    column-gap: 20px;
    list-style-type: none;
    padding-left: 0px;
}

#fresh-makelaars .tab-content .overview .map-filters li {
    margin-bottom: 7px;
}

#fresh-makelaars .tab-content .overview .map-filters li label {
  font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase;
    position: relative;
    padding-left: 35px;
}

#fresh-makelaars .tab-content .overview .map-filters li [type=checkbox] {
    border-radius: 0;
    width: 16px !important;
    height: 16px !important;
    background: #fff;
    position: absolute;
    top: 0;
    left: 0;
}

/* POI info window. Kept in step with the theme 2 copy in
   theme-2/tab-overview.css — the markup comes from single-house.js, which both
   themes share, so the two rule sets are deliberately identical in appearance.
   Change one, change the other. */
#fresh-makelaars .map .map-places-popup {
  max-width: 300px;
  /* The photo is the first child and Google's InfoWindow leaves no room above it,
     so the image sat flush against the top edge of the bubble. */
  padding-top: 12px;
}

#fresh-makelaars .map .gm-style-iw-chr {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1;
}

/* Sits over the photo, so it needs its own ground to stay legible on a dark
   image. Rounded because a white square over a rounded photo reads as a glitch. */
#fresh-makelaars .map .gm-style-iw-chr button {
  background-color: #fff !important;
  border-radius: 50% !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

#fresh-makelaars .map .map-places-popup .map-places-popup-image {
  width: 100%;
  /* Google sets an inline max-width on images inside the InfoWindow. */
  max-width: 100% !important;
  max-height: 160px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

#fresh-makelaars .map-places-popup-content {
  padding-top: 8px;
}

#fresh-makelaars .map-places-popup-title {
  margin: 0;
  font-size: 16px;
}

#fresh-makelaars .map-places-popup-rating,
#fresh-makelaars .map-places-popup-address {
  margin: 4px 0 0;
  font-size: 13px;
}

#fresh-makelaars .map-places-popup-actions {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

#fresh-makelaars .map-places-popup-actions .map-places-popup-link {
  font-size: 13px;
  text-decoration: underline;
}

#fresh-makelaars .tab-content .characteristics {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 500px;
}

#fresh-makelaars .tab-content .characteristics h3 {
  letter-spacing: .5px;
  font-size: 25px;
}

#fresh-makelaars .tab-content .characteristics ul {
  list-style-type: none;
  padding-left: 0px;
  margin-bottom: 20px;
}

#fresh-makelaars .tab-content .characteristics li {
    display: flex;
    align-items: baseline;
    gap: 12px;
    border-top: 1px solid lightgray;
    padding-top: 12px;
    padding-bottom: 7px;
}

#fresh-makelaars .tab-content .characteristics li strong {
  flex: 0 0 40%;
  min-width: 120px;
}

#fresh-makelaars .tab-content .characteristics li span {
  flex: 1 1 0%;
  text-align: right;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

#fresh-makelaars .media .images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 10px;
}

@media (max-width: 1024px) {
  #fresh-makelaars .media .images {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  #fresh-makelaars .media .images {
    grid-template-columns: 1fr;
  }
}

#fresh-makelaars .tab-content .media .featured-image {
  grid-column: 1 / -1;
}

#fresh-makelaars .tab-content .media .gallery-image {
    height: 100%;
    width: 100%;
    /* The row is sized by the tallest photo, and height:100% then stretched every
       shorter one to match. Crop to fill instead of distorting. */
    object-fit: cover;
}

#fresh-makelaars .tab-content .documents ul {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  list-style-type: none;
  padding-left: 0px;
}

#fresh-makelaars .tab-content .documents .document {
  padding: 30px;
  border-left: 1px solid #F5F5F5;
}

#fresh-makelaars .tab-content .documents .document:first-child {
  border-left: none;
}

#fresh-makelaars .tab-content .documents .document a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 20px;
}

#fresh-makelaars .tab-content .documents .document img {
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
}

/* ── Tabs + sidebar layout ───────────────────────────── */
#fresh-makelaars .tabs-sidebar-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
}

#fresh-makelaars .tabs-sidebar-layout .tabs-container {
  min-width: 0;
}

#fresh-makelaars .contact-sidebar {
  position: sticky;
  top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Contact card ────────────────────────────────────── */
#fresh-makelaars .contact-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#fresh-makelaars .contact-card-logo {
  max-width: 140px;
  max-height: 60px;
  object-fit: contain;
  margin-bottom: 4px;
}

#fresh-makelaars .contact-card-name {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0;
  text-transform: none;
}

#fresh-makelaars .contact-card-address {
  font-size: 14px;
  color: #555;
  margin: 0;
  line-height: 1.5;
}

#fresh-makelaars .contact-card-link {
  font-size: 14px;
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

#fresh-makelaars .contact-card-link:hover {
  text-decoration: underline;
}

#fresh-makelaars .contact-card-link-phone::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07A19.5 19.5 0 0 1 4.69 12a19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 3.6 1.27h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L7.91 9a16 16 0 0 0 6.08 6.08l1.96-1.95a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center / contain no-repeat;
}

#fresh-makelaars .contact-card-link-email::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/** Media Queries **/
@media only screen and (max-width: 1024px) {
  #fresh-makelaars .tab-buttons .tab-button {
    font-size: 14px;
  }
}

@media only screen and (max-width: 1024px) {
  #fresh-makelaars .tabs-sidebar-layout {
    grid-template-columns: 1fr;
  }

  #fresh-makelaars .contact-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  #fresh-makelaars .contact-card {
    flex: 1 1 260px;
  }
}

@media only screen and (max-width: 768px) {
  #fresh-makelaars .tab-content .overview .description {
    width: 100%;
    padding-right: 50px;
  }
  #fresh-makelaars .tab-content .overview .characteristics {
    width: 100%;
  }

  #fresh-makelaars .tab-content .overview .map-filters {
    padding: 15px;
  }

  #fresh-makelaars .tab-content .overview .map-filters ul {
    column-count: 2;
  }

}

@media only screen and (max-width: 480px) {
  #fresh-makelaars .tab-buttons .tab-button {
    font-size: 14px;
  }

  #fresh-makelaars .tab-buttons .tab-button img {
    height: 25px;
  }
}
/** End Media Queries **/
