/* Brokerage "Properties For Sale" listings + listing detail pages */

.listings-area .section-title-two h2 {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.listings-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 35px 0 30px;
  padding: 15px 20px;
  background-color: #f7f7f5;
  border-left: 4px solid #eba826;
}

.listings-count {
  margin: 0;
  font-weight: 600;
  color: #154835;
}

.listings-toolbar-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
}

.listings-view {
  display: inline-flex;
  border: 1px solid #154835;
}

.listings-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 40px;
  padding: 0 16px;
  border: 0;
  background-color: #ffffff;
  color: #154835;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.listings-view-btn + .listings-view-btn {
  border-left: 1px solid #154835;
}

.listings-view-btn:hover {
  background-color: #eef3f0;
}

.listings-view-btn.active {
  background-color: #154835;
  color: #ffffff;
}

.listings-view-btn:focus-visible {
  outline: 2px solid #eba826;
  outline-offset: 2px;
}

.listings-map {
  height: 600px;
  margin-bottom: 30px;
  border: 1px solid #d5d9d6;
  z-index: 0;
}

.listings-map-error {
  padding: 40px 20px;
  text-align: center;
  color: #6b7a72;
}

.listings-popup {
  display: block;
  color: #333333;
  text-decoration: none !important;
}

.listings-popup:hover {
  color: #333333;
}

.listings-popup img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
  margin-bottom: 8px;
}

.listings-popup-status {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 8px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.listings-popup-price {
  display: block;
  font-size: 17px;
  color: #eba826;
}

.listings-popup-name {
  display: block;
  margin: 2px 0;
  font-size: 15px;
  font-weight: 600;
  color: #154835;
}

.listings-popup-location {
  display: block;
  font-size: 13px;
  color: #6b7a72;
}

.listings-popup-link {
  display: block;
  margin-top: 8px;
  font-weight: 600;
  color: #154835;
}

.listings-popup:hover .listings-popup-link {
  color: #eba826;
}

.listings-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.listings-controls label {
  margin: 0;
  font-weight: 600;
  color: #154835;
}

.listings-select {
  height: 42px;
  min-width: 170px;
  padding: 0 12px;
  border: 1px solid #d5d9d6;
  border-radius: 0;
  background-color: #ffffff;
  color: #333333;
  cursor: pointer;
}

.listings-select:focus {
  outline: 2px solid #eba826;
  outline-offset: 1px;
}

.listing-item {
  margin-bottom: 30px;
}

.listing-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: #ffffff;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

a.listing-card,
a.listing-card *,
a.listing-back {
  text-decoration: none !important;
}

.listing-card:hover,
.listing-card:focus {
  color: inherit;
  text-decoration: none;
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.listing-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 57 / 37;
}

.listing-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.listing-card:hover .listing-card-img img {
  transform: scale(1.05);
}

.listing-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 4px 12px;
  background-color: #154835;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.listing-status {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 4px 12px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.listing-status-sale {
  background-color: #eba826;
}

.listing-status-lease {
  background-color: #4e6277;
}

.listing-card-body {
  flex: 1;
  padding: 20px 22px 18px;
}

.listing-price {
  margin-bottom: 5px;
  font-size: 22px;
  font-weight: 700;
  color: #eba826;
}

.listing-card-body h3 {
  margin-bottom: 6px;
  font-size: 20px;
  color: #154835;
}

.listing-location {
  margin-bottom: 15px;
  color: #6b7a72;
}

.listing-stats {
  display: flex;
  margin: 0;
  padding: 12px 0 0;
  list-style: none;
  border-top: 1px solid #ececec;
}

.listing-stats li {
  flex: 1;
  font-size: 14px;
  color: #6b7a72;
  text-align: center;
}

.listing-stats li + li {
  border-left: 1px solid #ececec;
}

.listing-stats b {
  display: block;
  font-size: 16px;
  color: #154835;
}

.listings-empty {
  padding: 40px 0;
  text-align: center;
  font-size: 18px;
  color: #6b7a72;
}

/* Listing detail pages */

.listing-hero::before {
  opacity: 0.45;
}

.listing-back {
  display: inline-block;
  margin-bottom: 25px;
  font-weight: 600;
  color: #154835;
}

.listing-back:hover {
  color: #eba826;
}

.listing-detail-price {
  margin-bottom: 20px;
  font-size: 30px;
  font-weight: 700;
  color: #eba826;
}

.listing-detail-photo img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

.listing-features {
  margin: 0 0 0 40px;
  padding-left: 18px;
}

.listing-features li {
  margin-bottom: 8px;
  color: #4e6277;
}

.listing-broker {
  margin-bottom: 12px;
}

.listing-broker a {
  color: #154835;
}

.listing-broker a:hover {
  color: #eba826;
}

.listing-contact {
  margin-top: 10px;
  padding: 25px;
  background-color: #f7f7f5;
  border-left: 4px solid #eba826;
}

.listing-contact h3 {
  color: #154835;
}

.listing-contact p {
  margin-bottom: 15px;
}

@media only screen and (max-width: 767px) {
  .listings-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .listings-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .listings-select {
    width: 100%;
  }

  .listings-toolbar-left {
    justify-content: space-between;
  }

  .listings-map {
    height: 450px;
  }
}
