/* ============================================================
   PFstyle Overrides for Flynax Nova (nova_pf)
   Author: You
   ============================================================ */

/* ---------- Global tweaks ---------- */
body {
  background-color: #f8f9fa;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}
a {
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ---------- Listing Card ---------- */
.pf-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pf-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
.pf-card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.pf-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pf-badges {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.pf-badges .badge {
  font-size: 0.7rem;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
}
.pf-save {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  border: none;
  background: #fff;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  line-height: 36px;
  font-size: 1.2rem;
  cursor: pointer;
  color: #444;
}
.pf-save:hover {
  background: #e9ecef;
}

/* ---------- Card Content ---------- */
.pf-card-body {
  padding: 1rem 1.25rem;
}
.pf-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #212529;
  margin: 0.25rem 0 0.5rem;
}
.pf-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.pf-location {
  font-size: 0.9rem;
  color: #6c757d;
}
.pf-specs {
  display: flex;
  gap: 1rem;
  font-weight: 600;
  margin: 0.75rem 0;
  padding: 0;
  list-style: none;
}
.pf-specs li {
  color: #495057;
}
.pf-agency {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #212529;
}
.pf-agency img {
  height: 24px;
  width: auto;
  border-radius: 3px;
}

/* ---------- CTA Buttons ---------- */
.pf-ctas {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.5rem;
}
.pf-ctas .btn {
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
}

/* ---------- Search Bar ---------- */
/* Breadcrumb spacing + chevrons */
/* Hide breadcrumbs only on property detail pages */
.controller-listing_details #bread_crumbs {
  display: none !important;
}

#bread_crumbs ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#bread_crumbs li + li::before {
  content: "›";
  opacity: .6;
  margin-right: 6px;
}

#bread_crumbs li a { text-decoration: none; }
#bread_crumbs li.active { font-weight: 600; }

.pf-search {
  background: #fff;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.pf-search .form-control {
  height: 44px;
  border-radius: 8px;
  font-size: 0.9rem;
}
.pf-search button {
  height: 44px;
  border-radius: 8px;
  font-weight: 600;
}

/* ---------- Active Filter Pills ---------- */
.pf-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
  list-style: none;
  padding: 0;
}
.pf-pill {
  background: #f2f4f7;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.85rem;
  color: #212529;
  display: flex;
  align-items: center;
}
.pf-pill-x {
  margin-left: 0.5rem;
  text-decoration: none;
  color: #6c757d;
  font-weight: 700;
}
.pf-pill-x:hover {
  color: #000;
}

/* ---------- Results Toolbar ---------- */
.pf-results-toolbar {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin: 0.5rem 0 1rem;
}
.view-toggle .btn {
  min-width: 70px;
}
/* ---------- Listing Details: PF Header ---------- */
.pf-ld-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin: 14px 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}
.pf-ld-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  color: #111827;
}
.pf-ld-location {
  margin-top: 4px;
  color: #6b7280;
  font-size: 14px;
}
.pf-ld-right { text-align: right; }
.pf-ld-price {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
}
.pf-ld-period {
  font-size: 14px;
  color: #475569;
  margin-left: 4px;
}
.pf-ld-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.pf-btn {
  border: 1px solid #0f172a;
  background: #0f172a;
  color: #fff;
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
}
.pf-btn.ghost {
  background: #fff;
  color: #0f172a;
}
.pf-btn:hover { opacity: .92; }

/* Mobile tweaks for header */
@media (max-width: 768px) {
  .pf-ld-header { flex-direction: column; }
  .pf-ld-right { text-align: left; }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .pf-search .form-row > [class*='col-'] {
    margin-bottom: 0.5rem;
  }
  .pf-card {
    border-radius: 10px;
  }
  .pf-ctas {
    flex-direction: column;
  }
}
