/* Section heading */
.section-header.text-center {
  padding-top: 40px;
}
.section-header .section-title {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin-bottom: 5px;
}
.section-header .section-subtitle {
  font-size: 15px;
  color: #999;
  margin-bottom: 0;
}

/* Property card: clickable wrapper */
.property-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  margin-bottom: 30px;
}
.property-card-link:hover,
.property-card-link:focus {
  text-decoration: none;
  color: inherit;
}

/* Property card: hover lift + shadow */
.property-card {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  border-radius: 4px;
  overflow: hidden;
}
.property-card-link:hover .property-card {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

/* Property badge overlays on thumbnail */
.property-thumbnail {
  position: relative;
  overflow: hidden;
}
.property-badge {
  position: absolute;
  z-index: 5;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  border-radius: 3px;
}
.property-badge--purpose {
  top: 12px;
  left: 12px;
  background-color: #0dbae8;
}
.property-badge--type {
  top: 40px;
  left: 12px;
  background-color: rgba(0, 0, 0, 0.6);
}

/* Location line */
.property-location {
  font-size: 13px;
  color: #b0bec5;
  margin: 0 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.property-location .fa-map-marker {
  margin-right: 5px;
  color: #0dbae8;
}

/* Keep entry-title color consistent inside the card link */
.property-card-link .entry-title {
  color: #fff;
}
.property-card-link .price {
  color: #0dbae8;
}

/* ============================================================
   UNIFORM PROPERTY CARDS — HOMEPAGE GRID
   ============================================================ */
/* Flex row so cards in same row match height */
.row.row-odd.zero-horizontal-margin {
  display: flex;
  flex-wrap: wrap;
}
.row.row-odd.zero-horizontal-margin > .col-xs-6 {
  display: flex;
}
.row.row-odd.zero-horizontal-margin > .col-xs-6 .property-card-link {
  display: flex;
  width: 100%;
}

/* Fixed-height card — image and description side by side */
.row.row-odd .property-card {
  display: flex;
  width: 100%;
  height: 320px;
}
/* Image fills left half of the fixed-height card */
.row.row-odd .property-card .property-thumbnail {
  height: 320px;
  min-height: 320px;
}
.row.row-odd .property-card .property-thumbnail .gallery-slider-two,
.row.row-odd .property-card .property-thumbnail .gallery-slider-two .slides,
.row.row-odd .property-card .property-thumbnail .gallery-slider-two .slides li {
  height: 100% !important;
}
.row.row-odd .property-card .img-responsive.property-img {
  height: 100% !important;
  width: 100%;
  object-fit: cover;
}
/* Description side: scroll if overflows */
.row.row-odd .property-card .property-description {
  height: 320px;
  overflow-y: auto;
  padding-top: 20px;
  padding-bottom: 10px;
}

@media (max-width: 991px) {
  /* On tablets/phones, cards stack image on top of description */
  .row.row-odd .property-card {
    flex-direction: column;
    height: auto;
  }
  .row.row-odd .property-card .property-thumbnail {
    height: 240px;
    min-height: 240px;
  }
  .row.row-odd .property-card .property-description {
    height: auto;
    overflow-y: visible;
  }
}
@media (max-width: 580px) {
  .row.row-odd.zero-horizontal-margin > .col-xs-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .row.row-odd .property-card .property-thumbnail {
    height: 220px;
    min-height: 220px;
  }
}

/* ============================================================
   PROPERTY DETAIL PAGE
   ============================================================ */

/* Gallery image — fixed height, uniform crop */
.detail-gallery-img {
  height: 500px;
  width: 100%;
  object-fit: cover;
  display: block;
}
.single-property-slider .slides li {
  height: 500px;
  overflow: hidden;
}

/* Location on detail page */
.detail-location {
  font-size: 14px;
  color: #b0bec5;
  margin: 0 0 12px;
}
.detail-location .fa-map-marker {
  margin-right: 6px;
  color: #0dbae8;
}

/* Badges row on detail page */
.detail-badges {
  margin-top: 14px;
}
.detail-badges .property-badge {
  position: static;
  display: inline-block;
  margin-right: 8px;
}
.detail-badges .property-badge--status {
  background-color: #50b848;
}

/* Meta grid on detail sidebar */
.detail-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 10px;
  padding-top: 8px;
}
.detail-meta-item {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
}
.detail-meta-item:nth-child(odd) {
  padding-right: 15px;
}
.detail-meta-item:nth-child(even) {
  padding-left: 15px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.detail-meta-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8e99a4;
  margin-bottom: 4px;
}
.detail-meta-value {
  display: block;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
}
.detail-meta-value small {
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  color: #8e99a4;
}

/* Spacing between gallery/sidebar and content below */
.property-slider-wrapper,
.property-title-wrapper {
  margin-bottom: 20px;
}
.sidebar-property-detail {
  margin-top: 20px;
}

/* Similar property images — uniform height */
.similar-img {
  height: 280px;
  width: 100%;
  object-fit: cover;
  display: block;
}
.similar-properties .property-thumbnail {
  height: 280px;
  overflow: hidden;
}

/* Property content (rendered HTML from rich editor) */
.property-content {
  line-height: 1.7;
  color: #555;
}
.property-content p {
  margin-bottom: 16px;
}
.property-content span {
  font-family: inherit !important;
  font-size: inherit !important;
}

@media (max-width: 580px) {
  .detail-gallery-img,
  .single-property-slider .slides li {
    height: 260px;
  }
  .similar-img,
  .similar-properties .property-thumbnail {
    height: 200px;
  }
}

/* ============================================================
   FILTER BAR (properties listing page)
   ============================================================ */
.property-filter-bar {
  background: #2c3e50;
  padding: 20px 0;
  border-bottom: 3px solid #0dbae8;
}
.property-filter-form .filter-row {
  display: flex;
  align-items: flex-end;
  gap: 15px;
  flex-wrap: wrap;
}
.filter-field {
  flex: 1;
  min-width: 130px;
}
.filter-field--search {
  flex: 1.5;
  min-width: 180px;
}
.filter-field label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8e99a4;
  margin-bottom: 6px;
  font-weight: 600;
}
.filter-field .filter-select,
.filter-field .filter-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  box-sizing: border-box;
  height: 42px;
}
.filter-field .filter-input {
  cursor: text;
}
.filter-field .filter-input::placeholder {
  color: #6c7a89;
}
.filter-field .filter-select:focus,
.filter-field .filter-input:focus {
  outline: none;
  border-color: #0dbae8;
}
.filter-field .filter-select option {
  background: #2c3e50;
  color: #fff;
}
.filter-field--btn {
  flex: 0 0 auto;
  min-width: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.filter-submit-btn {
  padding: 10px 24px;
  height: 42px;
  background: #0dbae8;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s;
  white-space: nowrap;
}
.filter-submit-btn:hover {
  background: #0a9cc5;
}
.filter-submit-btn .fa {
  margin-right: 5px;
}
.filter-clear-link {
  color: #8e99a4;
  font-size: 13px;
  text-decoration: underline;
  white-space: nowrap;
}
.filter-clear-link:hover {
  color: #fff;
}

/* Homepage header search form */
.header-advance-search {
  overflow: visible;
}
.header-advance-search .inline-fields {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.header-advance-search .option-bar {
  float: none;
  padding: 0;
  width: auto;
  min-width: 0;
}
.header-advance-search .option-bar.property-keyword {
  flex: 0 0 30%;
}
.header-advance-search .option-bar.property-type {
  flex: 0 0 22%;
}
.header-advance-search .option-bar.property-status {
  flex: 0 0 22%;
}
.header-advance-search .option-bar.form-control-buttons {
  flex: 0 0 auto;
}
.header-advance-search .option-bar .search-input,
.header-advance-search .option-bar .search-select {
  height: 48px;
  width: 100%;
  padding: 0 10px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 13px;
  background: #fff;
  color: #555;
  box-sizing: border-box;
}
.header-advance-search .option-bar .search-input:focus,
.header-advance-search .option-bar .search-select:focus {
  outline: none;
  border-color: #0dbae8;
}
.header-advance-search .option-bar .search-select {
  cursor: pointer;
}
.header-advance-search .form-submit-btn {
  height: 48px;
  width: auto;
  padding: 0 16px 0 42px;
  text-align: left;
  box-sizing: border-box;
  background-position: 14px center;
  background-size: 18px;
}

@media (max-width: 580px) {
  .property-filter-form .filter-row {
    flex-direction: column;
    gap: 12px;
  }
  .filter-field,
  .filter-field--search {
    width: 100%;
    flex: none;
  }
  .filter-field--btn {
    width: 100%;
  }
  .filter-submit-btn {
    width: 100%;
  }
}
