/* ============================================
   ROOT VARIABLES
   ============================================ */
:root {
  --blue: #0099f6;
  --indigo: #3a49bc;
  --purple: #9c41cc;
  --ga: #7c3daf;
  --gb: #0f5db8;
  --grad: linear-gradient(90deg, var(--ga), var(--gb));
  --logo-grad: linear-gradient(
    90deg,
    var(--blue),
    var(--indigo),
    var(--purple)
  );
  --navy: #0a1c30;
  --ink: #16213a;
  --muted: #69708a;
  --muted2: #9aa5c4;
  --bg: #f4f6fb;
  --paper: #fff;
  --bd: #e7eaf2;
  --green: #1a8a4b;
  --orange: #f4805a;
  --gold: #fec107;
  --wa: #25d366;
  --danger: #e0394f;
  --r: 10px;
  --rl: 16px;
  --rp: 999px;
  --sh:
    0 1px 3px rgba(22, 33, 58, 0.06), 0 6px 20px -8px rgba(22, 33, 58, 0.12);
  --sh2:
    0 4px 8px rgba(22, 33, 58, 0.08), 0 16px 32px -12px rgba(60, 40, 140, 0.18);
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}
ul {
  list-style: none;
}
h1,
h2,
h3,
h4 {
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}
svg {
  display: block;
  stroke-linecap: round;
  stroke-linejoin: round;
}
img {
  display: block;
  max-width: 100%;
}

/* ============================================
   UTILITY
   ============================================ */
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 8px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  z-index: 999;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.5s,
    transform 0.5s;
}
.reveal.vis {
  opacity: 1;
  transform: translateY(0);
}

.sect-divider {
  border: none;
  border-top: 1px solid var(--bd);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  font-weight: 700;
  font-size: 13.5px;
  border-radius: var(--rp);
  padding: 10px 20px;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  border: none;
}
.btn:hover {
  transform: translateY(-1px);
}

.btn-grad {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 16px -4px rgba(124, 61, 175, 0.4);
}
.btn-grad:hover {
  box-shadow: 0 8px 20px -4px rgba(124, 61, 175, 0.5);
}

.btn-outline {
  background: #fff;
  border: 1.5px solid var(--bd);
  color: var(--ink);
}
.btn-outline:hover {
  border-color: var(--ga);
  color: var(--ga);
}

.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--bd);
  color: var(--muted);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 12.5px;
}
.btn-white {
  background: #fff;
  color: var(--ga);
}

.btn-ghost-w {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.45);
  color: #fff;
}
.btn-ghost-w:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-wa {
  background: var(--wa);
  color: #fff;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--bd);
  box-shadow: 0 2px 12px -4px rgba(22, 33, 58, 0.08);
}

.hrow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}
.brand-icon {
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.wordmark {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--logo-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hdr-search {
  flex: 1 1 320px;
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1.5px solid var(--bd);
  border-radius: var(--rp);
  padding: 4px 4px 4px 14px;
  min-width: 0;
  transition: border-color 0.15s;
}
.hdr-search:focus-within {
  border-color: var(--ga);
}
.hdr-search input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13.5px;
  padding: 8px 4px;
  color: var(--ink);
}
.hdr-search input::placeholder {
  color: var(--muted2);
}
.hdr-search .sep {
  width: 1px;
  height: 18px;
  background: var(--bd);
  margin: 0 6px;
  flex-shrink: 0;
}
.hdr-search select {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  padding: 8px 4px;
  max-width: 110px;
}

.hactions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
.hlink {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 4px;
}
.hlink:hover {
  color: var(--ga);
}
.hlink.a {
  color: var(--ga);
}

.hamburger {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1.5px solid var(--bd);
  background: #fff;
  align-items: center;
  justify-content: center;
}

/* Navigation Strip */
.nav-strip {
  border-top: 1px solid var(--bd);
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-strip::-webkit-scrollbar {
  display: none;
}
.nav-strip a,
.nav-strip button {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: none;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  cursor: pointer;
}
.nav-strip a:hover {
  color: var(--ink);
}
.nav-strip a.active {
  color: var(--ga);
  border-bottom-color: var(--ga);
}
.nav-strip svg {
  width: 15px;
  height: 15px;
}

.portal-dd {
  position: relative;
}
.portal-dd .dd {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: 12px;
  box-shadow: var(--sh2);
  padding: 8px;
  min-width: 160px;
  z-index: 70;
}
.portal-dd:hover .dd {
  display: block;
}
.portal-dd .dd a {
  display: block;
  padding: 9px 14px;
  font-size: 13.5px;
  border-radius: 8px;
}
.portal-dd .dd a:hover {
  background: var(--bg);
}

/* ============================================
   DRAWER
   ============================================ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 30, 0.5);
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s;
}
.overlay.open {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(300px, 86vw);
  background: #fff;
  z-index: 90;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.drawer.open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--bd);
}
.drawer nav {
  padding: 10px 8px;
  overflow-y: auto;
  flex: 1;
}
.drawer nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 14px;
}
.drawer nav a:hover {
  background: var(--bg);
}

.drawer-foot {
  padding: 16px;
  border-top: 1px solid var(--bd);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ============================================
   1. HERO SECTION (BASE / DESKTOP)
   ============================================ */
.hero {
  background: linear-gradient(90deg, #7b3dbf 0%, #4f52c9 50%, #2b62c4 100%);
  padding: 40px 40px 70px;
  position: relative;
  overflow: hidden;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  color: #ffffff;
  z-index: 1;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 750px;
}

.hero-copy .acc {
  background: linear-gradient(90deg, #fff, #e8e0ff);
  -webkit-background-clip: text;
  background-clip: text;
}

/* BREADCRUMBS */
.breadcrumbs {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 25px;
}
.breadcrumbs a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none !important;
  outline: none !important;
}
.breadcrumbs a:hover {
  color: #ffffff;
}
.breadcrumbs span {
  color: rgba(255, 255, 255, 0.9);
}

/* TITLE & SUBTITLE */
.hero h1 {
  font-size: 42px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
  line-height: 1.1;
}

.hero-sub,
.hero-copy p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  line-height: 1.5;
  max-width: 650px;
  margin-bottom: 14px;
}

/* STATS — each on its own line, icon inline with text */
.stat-pills {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.stat-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
}
.stat-pill svg {
  flex-shrink: 0;
  opacity: 0.85;
}

/* HERO CTA BUTTONS */
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* DECORATIVE ORBS */
.hero .orb {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
  z-index: 0;
}
.hero .orb-a {
  width: 260px;
  height: 260px;
  top: -100px;
  right: 60px;
}
.hero .orb-b {
  width: 180px;
  height: 180px;
  bottom: -90px;
  left: 40px;
}

/* SEARCH FORM WRAPPER */
.search-form-wrapper {
  position: relative;
  margin-bottom: -150px; /* Desktop Overlap */
  z-index: 10;
}

.search-form {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  width: 100%;
}

/* TABS */
.search-tabs {
  display: flex;
  gap: 30px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 15px;
  padding-bottom: 5px;
}

.stab {
  padding: 8px 0;
  font-size: 14px;
  font-weight: 600;
  color: #718096;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none !important;
  text-decoration: none !important;
  display: inline-block;
}

.stab.on {
  color: #6b46c1;
  border-bottom-color: #6b46c1;
}

/* FIELDS GRID */
.search-fields {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr 1.2fr auto;
  align-items: center;
  gap: 0;
}

.sfield {
  display: flex;
  flex-direction: column;
  padding: 0 16px;
  border-right: 1px solid #edf2f7;
}

.sfield:first-child {
  padding-left: 0;
}

.sfield.btn-sfield {
  border-right: none;
  padding-right: 0;
  padding-left: 16px;
}

.sfield label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #a0aec0;
  margin-bottom: 4px;
}

/* INPUTS & SELECTS */
.sfield select,
.sfield input {
  border: none;
  background: transparent;
  padding: 4px 0;
  font-size: 14px;
  font-weight: 700;
  color: #1a202c;
  width: 100%;
  outline: none !important;
  font-family: inherit;
}

.sfield input::placeholder {
  color: #a0aec0;
  font-weight: 500;
}

/* CUSTOM DROPDOWN ARROW */
.select-wrapper {
  position: relative;
}

.select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 20px;
}

.select-wrapper::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #2d3748;
  pointer-events: none;
}

/* SEARCH BUTTON */
.btn-search {
  background: linear-gradient(135deg, #7b3dbf 0%, #3182ce 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: opacity 0.2s;
  box-shadow: 0 4px 12px rgba(107, 70, 193, 0.3);
  outline: none !important;
}

.btn-search:hover {
  opacity: 0.95;
}

.btn-search svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
}

@media (max-width: 600px) {
  .hero-ctas {
    flex-direction: column;
  }
  .hero-ctas .btn {
    width: 100%;
  }
}
/* ============================================
   2. TYPE STRIP & QUICK FILTERS (DESKTOP)
   ============================================ */
.type-strip {
  background: #fff;
  border-bottom: 1px solid var(--bd, #e2e8f0);
  padding: 0 20px;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  margin-top: 100px; /* Space for desktop floating card */
  position: relative;
  z-index: 2;
}

.type-strip::-webkit-scrollbar {
  display: none;
}

.type-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted, #718096);
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  white-space: nowrap;
  outline: none !important;
}

.type-btn .icon {
  display: none;
}
.type-btn:hover {
  color: var(--ink, #1a202c);
}
.type-btn.on {
  color: var(--ga, #6b46c1);
  border-bottom-color: var(--ga, #6b46c1);
}

.qbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--bg, #f7fafc);
  border-bottom: 1px solid var(--bd, #e2e8f0);
  overflow-x: auto;
  scrollbar-width: none;
}

.qbar::-webkit-scrollbar {
  display: none;
}

.chip {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border-radius: var(--rp, 20px);
  border: 1.5px solid var(--bd, #e2e8f0);
  background: #fff;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted, #718096);
  cursor: pointer;
  transition: all 0.15s;
  outline: none !important;
}

.chip:hover {
  border-color: var(--ga, #6b46c1);
  color: var(--ga, #6b46c1);
}
.chip.on {
  background: var(--ink, #1a202c);
  border-color: var(--ink, #1a202c);
  color: #fff;
}

.sp {
  flex: 1;
}

.sort-sel {
  border: 1.5px solid var(--bd, #e2e8f0);
  background: #fff;
  border-radius: var(--rp, 20px);
  padding: 7px 12px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink, #1a202c);
  cursor: pointer;
  outline: none !important;
}

/* ============================================
   MAIN LAYOUT CONTAINER (SIDEBAR & RESULTS SIDE-BY-SIDE)
   ============================================ */
.layout-body {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 16px;
}

.results-container {
  flex: 1;
  min-width: 0;
}

/* ============================================
   REAL ESTATE LISTING PAGE WRAPPER
   (FIXED: rules below are scoped with .prop-page-wrap
   and reinforced with !important so no other stylesheet
   on the site can override the sidebar/cards layout)
   ============================================ */
.prop-page-wrap {
  display: grid !important;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 20px 16px;
  width: 100%;
  box-sizing: border-box;
}

.prop-page-wrap > aside.sidebar {
  order: 1;
  width: 280px !important;
  max-width: 280px;
  box-sizing: border-box;
}

.prop-page-wrap > section {
  order: 2;
  min-width: 0;
  width: 100%;
}

@media (max-width: 992px) {
  .prop-page-wrap {
    display: flex !important;
    flex-direction: column !important;
  }

  .prop-page-wrap > aside.sidebar {
    width: 100% !important;
    max-width: 100% !important;
    position: static !important;
    order: 1;
  }

  .prop-page-wrap > section {
    order: 2;
    width: 100% !important;
  }
}

/* ============================================
   SIDEBAR
   (FIXED: scoped to .prop-page-wrap + explicit
   width/box-sizing so external CSS can't shrink it)
   ============================================ */
.prop-page-wrap .sidebar {
  width: 280px;
  max-width: 100%;
  flex-shrink: 0;
  display: flex !important;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 90px;
  align-self: flex-start;
  box-sizing: border-box;
}

.prop-page-wrap .scard {
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: var(--rl);
  overflow: visible;
}
.prop-page-wrap .scard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid var(--bd);
}
.prop-page-wrap .scard-head h3 {
  font-size: 13.5px;
  font-weight: 700;
}
.prop-page-wrap .scard-head button {
  font-size: 12px;
  font-weight: 600;
  color: var(--ga);
}

.prop-page-wrap .fgrp {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border-bottom: 1px solid var(--bd);
}
.prop-page-wrap .fgrp:last-child {
  border-bottom: none;
}

.prop-page-wrap .fgrp-lbl {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  display: block;
}

.prop-page-wrap .fopt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  margin-bottom: 8px;
}
.prop-page-wrap .fopt:last-child {
  margin-bottom: 0;
}
.prop-page-wrap .fopt input[type="checkbox"],
.prop-page-wrap .fopt input[type="radio"] {
  accent-color: var(--ga);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.prop-page-wrap .fopt span.lab {
  font-size: 13px;
  flex: 1;
}
.prop-page-wrap .fopt .cnt {
  font-size: 11.5px;
  color: var(--muted2);
  font-weight: 600;
  background: var(--bg);
  padding: 2px 7px;
  border-radius: 20px;
}
.prop-page-wrap .fopt:hover .lab {
  color: var(--ga);
}

.prop-page-wrap .price-inputs {
  display: flex;
  gap: 8px;
}
.prop-page-wrap .price-inputs input {
  flex: 1;
  border: 1.5px solid var(--bd);
  border-radius: 8px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--ink);
  min-width: 0;
}
.prop-page-wrap .price-inputs input:focus {
  outline: none;
  border-color: var(--ga);
}

.prop-page-wrap .bed-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}
.prop-page-wrap .bed-btn {
  padding: 7px 4px;
  border-radius: 8px;
  border: 1.5px solid var(--bd);
  background: #fff;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
  cursor: pointer;
}
.prop-page-wrap .bed-btn.on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* Sidebar CTA */
.prop-page-wrap .sidebar-cta {
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(135deg, var(--ga), var(--gb));
  border-radius: var(--rl);
  padding: 20px;
  text-align: center;
  color: #fff;
}
.prop-page-wrap .sidebar-cta svg {
  width: 32px;
  height: 32px;
  margin: 0 auto 10px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.8;
}
.prop-page-wrap .sidebar-cta h4 {
  font-size: 14px;
  font-weight: 700;
}
.prop-page-wrap .sidebar-cta p {
  font-size: 12.5px;
  opacity: 0.85;
  margin-top: 5px;
}
.prop-page-wrap .sidebar-cta .btn {
  background: #fff;
  color: var(--ga);
  margin-top: 12px;
  width: 100%;
}

/* ============================================
   RESULTS
   ============================================ */
.res-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}
.res-head h2 {
  font-size: 16px;
  font-weight: 700;
}
.res-head .sub {
  font-size: 13px;
  color: var(--muted);
}

.view-tabs {
  display: flex;
  gap: 6px;
}
.vtab {
  padding: 7px 14px;
  border-radius: var(--rp);
  border: 1.5px solid var(--bd);
  background: #fff;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}
.vtab.on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* ============================================
   PROPERTY CARD (Main & Mobile Responsive)
   (FIXED: prop-grid & pcard scoped to .prop-page-wrap
   with !important on critical layout properties)
   ============================================ */

/* Main Container Grid Setup */
.prop-page-wrap .prop-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
}

.prop-page-wrap .pcard {
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  z-index: 1; /* Low Z-index so Filters/Sidebar stays on top */
  overflow: hidden;
  background: #ffffff;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.prop-page-wrap .pcard:hover {
  box-shadow: var(--sh2, 0 8px 24px rgba(0, 0, 0, 0.12));
  transform: translateY(-2px);
}

.prop-page-wrap .pcard.featured {
  border-color: rgba(124, 61, 175, 0.3);
  box-shadow: 0 0 0 2.5px rgba(124, 61, 175, 0.08);
}

/* Image Thumbnail Section */
.prop-page-wrap .pcard-thumb {
  position: relative;
  aspect-ratio: 16/10;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #e8e4f4, #dde6f5);
}

.prop-page-wrap .pcard-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.prop-page-wrap .pcard:hover .pcard-thumb img {
  transform: scale(1.04);
}

.prop-page-wrap .pcard-no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8e4f4, #dde6f5);
}

/* Badges Positioning */
.prop-page-wrap .pfeat-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--grad, #4f2d7f);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: var(--rp, 6px);
  z-index: 2;
}

.prop-page-wrap .pcard-badge {
  position: absolute;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: var(--rp, 6px);
  backdrop-filter: blur(4px);
  z-index: 2;
}

.prop-page-wrap .pcard-badge--rent {
  top: 10px;
  left: 10px;
  background: rgba(26, 138, 75, 0.9);
  color: #fff;
}

.prop-page-wrap .pcard-badge--sale {
  top: 10px;
  left: 10px;
  background: rgba(15, 93, 184, 0.9);
  color: #fff;
}

.prop-page-wrap .pcard-badge--install {
  top: 10px;
  left: 10px;
  background: rgba(244, 128, 90, 0.9);
  color: #fff;
}

/* Wishlist / Favorite Icon */
.prop-page-wrap .pfav {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.prop-page-wrap .pfav svg {
  width: 15px;
  height: 15px;
  stroke: var(--muted, #666);
  fill: none;
}

.prop-page-wrap .pfav:hover svg {
  stroke: var(--danger, #dc3545);
}

.prop-page-wrap .pfav.saved svg {
  stroke: var(--danger, #dc3545);
  fill: var(--danger, #dc3545);
}

/* Card Body Content */
.prop-page-wrap .pcard-body {
  padding: 14px 15px;
  flex: 1;
}

.prop-page-wrap .pcard-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--ga, #4f2d7f);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.prop-page-wrap .pcard-price-sub {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted2, #777);
  margin-left: 4px;
}

.prop-page-wrap .pcard-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink, #222);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.prop-page-wrap .pcard-loc {
  font-size: 12px;
  color: var(--muted2, #777);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
}

.prop-page-wrap .pcard-specs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.prop-page-wrap .pcard-specs span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink, #222);
}

.prop-page-wrap .pcard-specs svg {
  color: var(--muted2, #777);
}

.prop-page-wrap .pcard-amens {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.prop-page-wrap .pamen {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--rp, 6px);
  background: #eef1fa;
  color: var(--indigo, #4f2d7f);
}

.prop-page-wrap .pcard-actions {
  display: flex;
  gap: 8px;
  padding: 0 15px 14px;
  width: 100%;
  box-sizing: border-box;
}

.prop-page-wrap .pcard-actions .btn {
  flex: 1;
  font-size: 12.5px;
}

/* ============================================
   SECTION WRAPS
   ============================================ */
.sec-wrap {
  max-width: 1300px;
  margin: 0 auto;
  padding: 32px 16px;
}

.sec-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}

.sec-head h2 {
  font-size: 20px;
  font-weight: 800;
}
.sec-head p {
  color: var(--muted);
  margin-top: 4px;
  font-size: 14px;
}
.sec-head .sec-em {
  font-size: 22px;
  margin-right: 6px;
}

/* ============================================
   LOCATIONS
   ============================================ */
.loc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.loc-card {
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: var(--rl);
  padding: 18px 16px;
  text-align: center;
  transition: all 0.18s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.loc-card:hover {
  border-color: rgba(124, 61, 175, 0.3);
  box-shadow: var(--sh2);
  transform: translateY(-2px);
}
.loc-card .lc-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--ga);
  display: block;
  margin-bottom: 2px;
}
.loc-card .lc-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.loc-card .lc-label {
  font-size: 11px;
  color: var(--muted2);
  margin-top: 3px;
}
.loc-card .lc-icon {
  display: none;
}
.loc-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.18s;
}
.loc-card:hover::after {
  opacity: 1;
}

/* ============================================
   POPULAR AREAS
   ============================================ */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.area-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.area-links {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.area-links a {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
}
.area-links a:hover {
  color: var(--ga);
}
.area-links a::before {
  content: "→";
  color: var(--muted2);
}

.area-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}
.atab {
  padding: 9px 20px;
  border-radius: var(--rp);
  border: 1.5px solid var(--bd);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}
.atab.on {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px -4px rgba(124, 61, 175, 0.4);
}

/* ============================================
   BLOG
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.bcard {
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: var(--rl);
  overflow: hidden;
  transition: all 0.18s;
  display: block;
}
.bcard:hover {
  box-shadow: var(--sh2);
  transform: translateY(-2px);
}

.bcard-cat-band {
  height: 5px;
  background: var(--grad);
}
.bcard-body {
  padding: 16px;
}

.bcard-cat {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ga);
  margin-bottom: 7px;
}
.bcard-body h4 {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 7px;
}
.bcard-body p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bcard-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--bd);
  font-size: 11.5px;
  color: var(--muted2);
}
.bcard-foot .rd {
  color: var(--ga);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}
.bcard-foot svg {
  width: 11px;
  height: 11px;
  stroke: currentColor;
  fill: none;
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: var(--r);
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  background: none;
  border: none;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--ga);
  cursor: pointer;
}
.faq-q svg {
  width: 17px;
  height: 17px;
  stroke: var(--muted);
  fill: none;
  flex-shrink: 0;
  transition: transform 0.25s;
}
.faq-item.open .faq-q svg {
  transform: rotate(180deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a p {
  padding: 0 18px 16px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
}

/* ============================================
   CTA BAND
   ============================================ */
.cta-band {
  background: var(--grad);
  border-radius: var(--rl);
  padding: 36px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  max-width: 1268px;
  margin: 0 auto 32px;
}
.cta-band .ob {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.cta-band .ob1 {
  width: 220px;
  height: 220px;
  top: -80px;
  right: 80px;
}
.cta-band .ob2 {
  width: 160px;
  height: 160px;
  bottom: -80px;
  right: -30px;
}
.cta-band .cp {
  position: relative;
  z-index: 1;
}
.cta-band h3 {
  color: #fff;
  font-size: 22px;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.82);
  margin-top: 6px;
  font-size: 14px;
  max-width: 440px;
}
.cta-band .acts {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--navy);
}
.ft-line {
  height: 3px;
  background: var(--grad);
}

.ft-main {
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 20px 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
}

.ft-brand p {
  color: #9aa5c4;
  font-size: 13px;
  margin-top: 10px;
  max-width: 260px;
}
.ft-brand address {
  font-style: normal;
  font-size: 12.5px;
  color: #9aa5c4;
  margin-top: 8px;
}

.ft-social {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.ft-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.ft-social a:hover {
  background: rgba(255, 255, 255, 0.1);
}
.ft-social svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
  fill: none;
}

.ft-col h5 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 12px;
}
.ft-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ft-links a {
  font-size: 13px;
  color: #9aa5c4;
  transition: color 0.15s;
}
.ft-links a:hover {
  color: #fff;
}

.ft-apps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.ft-app {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 8px 12px;
}

/* ============================================
   RESPONSIVE DESIGN (GLOBAL BREAKPOINTS)
   ============================================ */
@media (max-width: 992px) {
  .layout-body {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    position: static;
  }

  .search-fields {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .sfield {
    border-right: none;
    padding: 0;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 8px;
  }

  .sfield.btn-sfield {
    grid-column: span 2;
    border-bottom: none;
    padding-left: 0;
  }

  .btn-search {
    width: 100%;
    justify-content: center;
  }

  .type-strip {
    margin-top: 150px !important;
  }

  .ft-main {
    grid-template-columns: 1fr 1fr;
  }

  .areas-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 20px 16px 30px !important;
  }

  .hero h1 {
    font-size: 24px !important;
    margin-bottom: 8px !important;
  }

  .hero-sub {
    font-size: 13px !important;
    margin-bottom: 20px !important;
  }

  .search-form-wrapper {
    margin-bottom: 0 !important;
    position: relative !important;
  }

  .search-form {
    padding: 15px !important;
  }

  .search-fields {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  .sfield {
    padding: 0 0 8px 0 !important;
    border-right: none !important;
    border-bottom: 1px solid #edf2f7 !important;
    width: 100% !important;
  }

  .sfield.btn-sfield {
    border-bottom: none !important;
    padding-top: 5px !important;
  }

  .btn-search {
    width: 100% !important;
    justify-content: center !important;
  }

  .type-strip {
    margin-top: 20px !important;
  }

  .prop-page-wrap .prop-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 0 !important;
  }

  .prop-page-wrap .pcard {
    width: 100% !important;
    margin-bottom: 15px !important;
  }

  .prop-page-wrap .pcard-thumb {
    aspect-ratio: 16 / 9 !important;
  }

  .prop-page-wrap .pcard-body {
    padding: 12px !important;
  }

  .prop-page-wrap .pcard-price {
    font-size: 18px !important;
  }

  .prop-page-wrap .pcard-title {
    font-size: 13px !important;
  }

  .prop-page-wrap .pcard-actions {
    padding: 0 12px 12px !important;
    gap: 6px !important;
  }

  .prop-page-wrap .pcard-actions .btn {
    font-size: 11px !important;
    padding: 8px 4px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 20px 20px 80px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .search-fields {
    grid-template-columns: 1fr;
  }

  .sfield.btn-sfield {
    grid-column: span 1;
  }

  .type-strip {
    margin-top: 220px !important;
  }

  .ft-main {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   FIX: qbar spacing for current hero (no overlap trick needed)
   ============================================ */
.listing-topbar-spacer {
  margin-top: 0;
}

@media (max-width: 992px) {
  .listing-topbar-spacer {
    margin-top: 0 !important;
  }
}

@media (max-width: 768px) {
  .listing-topbar-spacer {
    margin-top: 0 !important;
  }
}

@media (max-width: 600px) {
  .listing-topbar-spacer {
    margin-top: 0 !important;
  }
}

/* Sidebar/grid ka top perfectly align rahe */
.prop-page-wrap {
  align-items: start;
}
.prop-page-wrap .sidebar {
  top: 20px;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination .page-item {
  display: flex;
}

.pagination .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1.5px solid var(--bd);
  background: #fff;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.pagination .page-link:hover {
  border-color: var(--ga);
  color: var(--ga);
  background: var(--bg);
}

.pagination .page-item.active .page-link {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.pagination .page-item.disabled .page-link {
  color: var(--muted2);
  background: var(--bg);
  cursor: not-allowed;
  pointer-events: none;
}