.piab-property-css-parent .item-amenities .hz-figure {
  display: inline-flex;
  align-items: center;
}

.piab-property-css-parent .item-amenities .adprop-amenity-icon {
  margin-right: 8px;
}

.piab-property-css-parent .item-amenities .adprop-amenity-value {
  margin-left: 2px;
}

/* Gallery — lightSlider-style arrows */
.adprop-gallery-wrap .lSSlideOuter {
  position: relative;
  overflow: hidden;
}

.adprop-gallery-wrap .lSSlideWrapper.adprop-gallery-main {
  position: relative;
}

.adprop-gallery-wrap .adprop-gallery-slide {
  display: none;
}

.adprop-gallery-wrap .adprop-gallery-slide.is-active {
  display: block;
}

.adprop-gallery-wrap .adprop-gallery-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.adprop-gallery-wrap .lSAction {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 3;
}

.adprop-gallery-wrap .lSAction > a {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: auto;
  text-decoration: none;
  z-index: 3;
}

.adprop-gallery-wrap .lSAction .lSPrev {
  left: 20px;
}

.adprop-gallery-wrap .lSAction .lSNext {
  right: 20px;
}

.adprop-gallery-wrap .lSAction .slick-prev,
.adprop-gallery-wrap .lSAction .slick-next {
  height: 40px;
  width: 40px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.55);
  border: none;
  cursor: pointer;
  padding: 0;
}

.adprop-gallery-wrap .lSAction .slick-prev:before,
.adprop-gallery-wrap .lSAction .slick-next:before {
  display: inline-block;
  font-size: 16px;
  color: #fff;
  font-family: "piab-iconfont";
}

.adprop-gallery-wrap .lSAction .slick-prev:before {
  content: "\e911";
}

.adprop-gallery-wrap .lSAction .slick-next:before {
  content: "\e912";
}

.adprop-gallery-wrap .adprop-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding: 0 2px;
}

.adprop-gallery-wrap .adprop-gallery-thumb {
  border: 2px solid transparent;
  padding: 0;
  background: none;
  cursor: pointer;
  width: 72px;
  height: 54px;
  overflow: hidden;
  border-radius: 2px;
}

.adprop-gallery-wrap .adprop-gallery-thumb.is-active {
  border-color: #478700;
}

.adprop-gallery-wrap .adprop-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Property Inquiry form — uses piab_search-public.css + main.css sidebar styles */

.sidebar-wrap .property-form-wrap .form_messages {
  margin-top: 12px;
  margin-bottom: 0;
}

.adprop-inquiry-success {
  margin-top: 12px;
  margin-bottom: 0;
  color: #333;
  font-size: 14px;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.adprop-inquiry-success .fa {
  display: inline-block;
  font: normal normal normal 14px/1 FontAwesome;
  font-size: inherit;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.adprop-inquiry-success .fa-check:before {
  content: "\f00c";
}

.adprop-inquiry-success .fa-check {
  color: #478700;
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.adprop-advanced-search-btn-popup img {
  width: 20px !important;
  height: auto;
  max-height: 20px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}

body.advance_popup .adprop-search-backdrop {
  display: block !important;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 100000 !important;
}

body.advance_popup .adprop-advanced-search-popup {
  display: block !important;
  position: fixed !important;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(920px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  z-index: 100001 !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

body.advance_popup {
  overflow: hidden;
}

.piab-property-css-parent .labels-wrap.labels-right .label.label-status.status-color-7 {
  background-color: var(--secondary, #e87121) !important;
  color: #fff !important;
}

.piab-property-css-parent .labels-wrap.labels-right .label.label-status.status-color-1 {
  background-color: var(--primary) !important;
  color: #fff !important;
}

/* Sub Listing table */
.property-sub-listings-wrap .sub-listings-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.property-sub-listings-wrap .sub-listings-table th,
.property-sub-listings-wrap .sub-listings-table td {
  padding: 12px 10px;
  border: none;
  vertical-align: middle;
}

.property-sub-listings-wrap .sub-listings-table th {
  border-bottom: 1px solid #dce0e0;
  font-weight: 700;
  text-align: left;
}

.property-sub-listings-wrap .table-lined tbody td {
  border-bottom: 1px solid #dce0e0;
}

.property-sub-listings-wrap .sub-listings-table .piab-icon {
  margin-right: 6px;
}

@media screen and (max-width: 575px) {
  .listing_without_map .property_list > .piab-property-css-parent,
  .map-module-half .property_list > .piab-property-css-parent {
    display: none;
  }

  .listing_without_map .property_list > .piab-property-css-parent.active,
  .map-module-half .property_list > .piab-property-css-parent.active {
    display: block;
    position: fixed;
    top: 50%;
    width: 100%;
    z-index: 9999;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 15px;
    background: #fff;
  }

  .listing_without_map
    .property_list
    > .piab-property-css-parent.active
    .piab-search,
  .map-module-half
    .property_list
    > .piab-property-css-parent.active
    .piab-search {
    transform: translate(0, -53%);
  }
}
