/* ==========================================================================
   Horizontal property filter bar (city listing pages)
   ========================================================================== */
.pf-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 16px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 18px 22px;
  margin: 0 0 36px;
  box-shadow: 0 6px 24px rgba(37, 33, 47, 0.06);
  position: sticky;
  top: 8px;
  z-index: 40;
}

.pf-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 140px;
}

.pf-filter-group label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #8B8B8B;
}

.pf-filter-group select,
.pf-filter-group input {
  border: 1px solid #e2e2e2;
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: #25212F;
  background: #fff;
  min-width: 140px;
  transition: border-color .15s ease;
}

.pf-filter-group select:focus,
.pf-filter-group input:focus {
  outline: none;
  border-color: #EB6650;
}

.pf-price-group input {
  min-width: 150px;
}

.pf-reset-btn {
  border: 1px solid #EB6650;
  background: #fff;
  color: #EB6650;
  font-weight: 600;
  border-radius: 9px;
  padding: 10px 18px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
  height: 40px;
}

.pf-reset-btn:hover {
  background: #EB6650;
  color: #fff;
}

.pf-result-count {
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
  color: #25212F;
  align-self: center;
}

@media (max-width: 768px) {
  .pf-filter-bar {
    position: static;
    padding: 14px;
    gap: 12px;
  }
  .pf-filter-group,
  .pf-filter-group select,
  .pf-filter-group input {
    min-width: 0;
    flex: 1 1 calc(50% - 6px);
  }
  .pf-result-count {
    margin-left: 0;
    width: 100%;
    order: 10;
  }
}

/* ==========================================================================
   Property detail page (/properties/{city}/{slug})
   ========================================================================== */
.property-detail-section {
  padding: 40px 0 60px;
}

.pd-breadcrumb {
  font-size: 13px;
  color: #8B8B8B;
  margin-bottom: 24px;
}

.pd-breadcrumb a {
  color: #8B8B8B;
  text-decoration: none;
}

.pd-breadcrumb a:hover {
  color: #EB6650;
}

.pd-breadcrumb span {
  color: #25212F;
  font-weight: 600;
}

.pd-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 900px) {
  .pd-layout {
    grid-template-columns: 1fr;
  }
}

.pd-gallery-main {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #F5F5F5;
  aspect-ratio: 4 / 3;
}

.pd-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pd-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #EB6650;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 6px 12px;
  border-radius: 20px;
}

.pd-gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.pd-thumb {
  width: 84px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  opacity: .65;
  border: 2px solid transparent;
  transition: opacity .15s ease, border-color .15s ease;
}

.pd-thumb.active,
.pd-thumb:hover {
  opacity: 1;
  border-color: #EB6650;
}

.pd-title {
  font-size: 28px;
  font-weight: 700;
  color: #25212F;
  margin: 0 0 10px;
  line-height: 1.25;
}

.pd-location {
  color: #676767;
  font-size: 15px;
  margin-bottom: 16px;
}

.pd-location i {
  color: #EB6650;
  margin-right: 6px;
}

.pd-price {
  font-size: 26px;
  font-weight: 800;
  color: #0f6b2f;
  margin-bottom: 18px;
}

.pd-quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.pd-quick-facts > div {
  background: #F5F5F5;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #25212F;
}

.pd-quick-facts i {
  color: #EB6650;
  margin-right: 6px;
}

.pd-cta {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.pd-cta .btn {
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pd-call-btn {
  background: #25212F;
  color: #fff;
}

.pd-call-btn:hover {
  background: #EB6650;
  color: #fff;
}

.pd-installment {
  color: #0f6b2f;
  font-weight: 600;
  margin-bottom: 20px;
}

.pd-subheading {
  font-size: 19px;
  font-weight: 700;
  color: #25212F;
  margin: 26px 0 10px;
}

.pd-description {
  color: #454545;
  line-height: 1.7;
  font-size: 15px;
}

.pd-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}

.pd-features li {
  font-size: 14px;
  color: #25212F;
}

.pd-features i {
  color: #0f6b2f;
  margin-right: 6px;
}

.pd-map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: #EB6650;
  font-weight: 600;
  text-decoration: none;
}

.pd-related-heading {
  font-size: 22px;
  font-weight: 700;
  color: #25212F;
  margin: 56px 0 22px;
  text-align: center;
}

.tent-img-link,
.tent-title-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Override: clear the sticky header on the property detail page (same fix already
   applied to .city-listing-section in header.blade.php) */
.property-detail-section {
  margin-top: 0 !important;
  padding: 140px 0 60px !important;
  scroll-margin-top: 140px !important;
  overflow: visible !important;
}
@media (max-width: 767px) {
  .property-detail-section {
    padding: 110px 0 40px !important;
    scroll-margin-top: 110px !important;
  }
}

/* WhatsApp button on property page was styled only inside .tent-buttons (listing
   cards); give it its own always-visible colours here too. */
.pd-cta .whatsapp-btn {
  background: rgb(37, 211, 102) !important;
  color: #fff !important;
}
.pd-cta .whatsapp-btn:hover {
  background: rgb(30, 190, 93) !important;
}
