.single-commercial-property .header {
  margin-top: 50px;
}

.single-commercial-property .title {
  display: flex;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  text-transform: uppercase;
}

.single-commercial-property .title .zipcode-city {
  margin-bottom: 0px;
}

.single-commercial-property .wave {
  margin: 0 auto 20px auto;
}

.single-commercial-property .status {
  position: absolute;
  display: flex;
  justify-content: center;
  font-weight: bold;
  padding: 5px 10px;
}

.single-commercial-property .status.available {
  background-color: #7AC193;
  color: white;
}

.single-commercial-property .status.unavailable {
  background-color: #bc3d3d;
  color: white;
}

.single-commercial-property .gallery {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-gap: 10px;
}

.single-commercial-property .gallery .featured-image {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
}

.single-commercial-property .gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-commercial-property .gallery {
}


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


.single-commercial-property .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;
}

.single-commercial-property .tab-buttons .tab-button.active, .single-commercial-property .tab-buttons .tab-button:hover, .single-commercial-property .tab-buttons .tab-button:focus {
  outline: none;
  background-color: transparent;
  font-weight: bold;
}

.single-commercial-property .tab-buttons img {
  height: 50px;
}

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

.single-commercial-property .tab-content.active {
  display: flex;
}

.single-commercial-property .tab-content > div {
  max-width: 100%;
}

.single-commercial-property .tab-content .overview {
    display: flex;
    flex-wrap: wrap;
    /* The 50px gutter between description and characteristics. column-gap and
       not gap: below 768px the two stack, and gap would add a row gap that was
       never there. */
    column-gap: 50px;
}

.single-commercial-property .tab-content .overview .description,
.single-commercial-property .tab-content .overview .characteristics {
  /* Half the row less half the gutter. Stated as calc rather than a plain 50%
     because the gutter is now real space between the boxes instead of padding
     inside one of them, and this holds under either box-sizing. */
  width: calc(50% - 25px);
}

.single-commercial-property .tab-content .overview .map {
  width: 100%;
}

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

.single-commercial-property .tab-content .overview .map-filters ul {
    /* Grid rather than CSS columns: columns fill top-to-bottom then wrap, so
       the reading order ran down each column instead of across the rows, and
       a tall item could straddle a column break. */
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    list-style-type: none;
    padding-left: 0px;
    margin: 0;
}

.single-commercial-property .tab-content .overview .map-filters li {
    /* The grid gap spaces these now. Explicitly 0 rather than deleted, because
       a theme setting a global `li` margin would otherwise put it back. */
    margin-bottom: 0;
}

.single-commercial-property .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;
}

.single-commercial-property .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;
}

.single-commercial-property .tab-content .characteristics {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 500px;
}

.single-commercial-property .tab-content .characteristics h3 {
  letter-spacing: .5px;
  font-size: 25px;
}

.single-commercial-property .tab-content .characteristics ul {
  list-style-type: none;
  padding-left: 0px;
  margin-bottom: 20px;
}

.single-commercial-property .tab-content .characteristics li {
    border-top: 1px solid lightgray;
    padding-top: 12px;
    padding-bottom: 7px;
}

.single-commercial-property .media .images {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 10px;
}

.single-commercial-property .tab-content .media .featured-image {
  grid-column: 1 / span 3;
}

.single-commercial-property .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;
}

.single-commercial-property .tab-content .documents ul {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  list-style-type: none;
  padding-left: 0px;
}

.single-commercial-property .tab-content .documents .document {
  padding: 30px;
  border-left: 1px solid #F5F5F5;
}

.single-commercial-property .tab-content .documents .document:first-child {
  border-left: none;
}

.single-commercial-property .tab-content .documents .document a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 20px;
}

.single-commercial-property .tab-content .documents .document img {
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
}

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

@media only screen and (max-width: 768px) {
  .single-commercial-property .tab-content .overview .description,
  .single-commercial-property .tab-content .overview .characteristics {
    width: 100%;
  }

  .single-commercial-property .tab-content .overview .map-filters {
    padding: 15px;
  }
  

}

@media only screen and (max-width: 480px) {
  .single-commercial-property .tab-buttons .tab-button {
    font-size: 14px;
  } 

  .single-commercial-property .tab-buttons .tab-button img {
    height: 25px;
  }
}
/** End Media Queries **/

/* ── iPad and down ────────────────────────────────────────────
   One breakpoint for both changes, at 1024px so iPad landscape is included. */
@media only screen and (max-width: 1024px) {

  .single-commercial-property .tab-content .overview .map-filters ul {
    grid-template-columns: repeat(2, 1fr);
  }

  /* The map carries an inline height:720px from the template. A stylesheet
     cannot outrank an inline declaration, but max-height does not need to:
     it constrains the used height whatever set it, so no !important here. */
  .single-commercial-property .tab-content .overview #map {
    max-height: 400px;
  }

}
