/* ── City tabs ────────────────────────────────────────────────── */
.city-tabs-wrapper {
  margin-bottom: 14px;
}

.city-tabs-label {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.city-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.city-tabs::-webkit-scrollbar { display: none; }

.city-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 0 0 auto;
  padding: 10px 14px;
  min-width: 80px;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: all .2s ease;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  user-select: none;
  white-space: nowrap;
}

.city-tab:hover {
  border-color: #a7f3d0;
  background: #f0fdf4;
  color: #15803d;
}

.city-tab.active {
  border-color: #16a34a;
  border-width: 2px;
  background: #f0fdf4;
  color: #15803d;
}

.city-tab-icon {
  font-size: 20px;
  font-style: normal;
  line-height: 1;
}

@media (max-width: 576px) {
  .city-tab { padding: 8px 10px; min-width: 68px; font-size: 11px; border-radius: 12px; gap: 4px; }
  .city-tab-icon { font-size: 18px; }
}

.idf-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 576px) {
  .idf-two-col { grid-template-columns: 1fr; }
  .idf-row { flex-direction: column; }
}



/* ── Section cards ────────────────────────────────────────────── */
.idf-section-card {
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
}

.idf-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 14px;
}

.idf-section-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.idf-badge {
  margin-left: auto;
  background: #dcfce7;
  color: #15803d;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
}


.idf-hint {
  font-size: 12px;
  color: #9ca3af;
  margin: -8px 0 10px;
}

.idf-optional {
  font-size: 11px;
  font-weight: 400;
  color: #9ca3af;
  margin-left: 4px;
}


/* ── Textarea ─────────────────────────────────────────────────── */
.instant-demand-textarea-wrapper {
  position: relative;
}

.instant-demand-textarea {
  width: 100%;
  min-height: 110px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px 28px 12px;
  font-size: 13px;
  font-family: inherit;
  color: #374151;
  background: #fafafa;
  resize: vertical;
  transition: all .25s ease;
  line-height: 1.5;
}

.instant-demand-textarea:focus {
  background: #fff;
  border-color: #16a34a;
  box-shadow: 0 0 0 4px rgba(22,163,74,.08);
  outline: none;
}

.instant-demand-textarea::placeholder { color: #6b7280; }

.instant-demand-desc-count {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-size: 11px;
  color: #9ca3af;
  pointer-events: none;
  transition: color .2s;
}

.instant-demand-desc-count.warn   { color: #f59e0b; }
.instant-demand-desc-count.danger { color: #dc2626; font-weight: 600; }

/* ── Multi-location wrapper ───────────────────────────────────── */
#multiLocWrapper {
  cursor: text;
  min-height: 44px;
  height: auto;
  flex-wrap: wrap;
  align-items: flex-start;
  padding-top: 10px;
  padding-bottom: 10px;
  position: relative;
}

.instant-demand-multiloc-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  flex: 1;
  padding-left: 2.2rem;
  min-width: 0;
}

.instant-demand-multiloc-placeholder {
  color: #9ca3af;
  font-size: 14px;
  pointer-events: none;
  user-select: none;
  position: absolute;
  left: 2.8rem;
  top: 50%;
  transform: translateY(-50%);
}

.instant-demand-multiloc-input {
  border: none !important;
  outline: none !important;
  background: transparent !important;
  font-size: 14px;
  min-width: 120px;
  flex: 1;
  padding: 0 !important;
  color: inherit;
  box-shadow: none !important;
}

.instant-demand-multiloc-input:disabled {
  cursor: not-allowed;
  color: #9ca3af;
}

/* ── Selected tags ────────────────────────────────────────────── */
.instant-demand-multiloc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.instant-demand-multiloc-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #15803d;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  cursor: default;
  white-space: nowrap;
}

.instant-demand-multiloc-tag .tag-remove {
  cursor: pointer;
  font-size: 11px;
  color: #6b7280;
  line-height: 1;
  margin-left: 2px;
  transition: color .15s;
}

.instant-demand-multiloc-tag .tag-remove:hover { color: #dc2626; }

/* ── Multi-loc dropdown ───────────────────────────────────────── */
#multiLocSuggest {
  top: calc(100% + 4px);
  max-height: 220px;
  overflow-y: auto;
}

#multiLocSuggest .instant-demand-suggest-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

#multiLocSuggest .instant-demand-suggest-item.selected-loc {
  background: #f0fdf4;
  color: #15803d;
  pointer-events: auto;
  opacity: 1;
}

#multiLocSuggest .instant-demand-suggest-item.selected-loc:hover { background: #dcfce7; }

#multiLocSuggest .instant-demand-suggest-item.highlighted { background: #f3f4f6; }

#multiLocSuggest .instant-demand-suggest-item .loc-check {
  margin-left: auto;
  color: #16a34a;
  font-size: 14px;
  font-weight: 600;
}

/* ── Area + Budget row ────────────────────────────────────────── */
.instant-demand-area-budget-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

@media (max-width: 576px) {
  .instant-demand-area-budget-row {
    grid-template-columns: 1fr;
  }
}

/* ── Footer icons ─────────────────────────────────────────────── */
.instant-demand-reset i,
.instant-demand-apply i {
  margin-right: 5px;
}

/* ── Chip-style radio/checkbox buttons ───────────────────────────
   Covers: Property Type, Beds, Baths, Furnishing, Building Age,
   Building Type, Floor Type, and the City tabs — anywhere the
   markup pairs a hidden radio/checkbox with a <label>. ───────── */
.instant-demand-label {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.instant-demand-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.instant-demand-chips input[type="radio"],
.instant-demand-chips input[type="checkbox"],
.city-tabs input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.instant-demand-chips label,
.city-tabs label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s ease;
  user-select: none;
  white-space: nowrap;
}

.instant-demand-chips label:hover,
.city-tabs label:hover {
  border-color: #16a34a;
  color: #128a3e;
}

.instant-demand-chips input:checked + label,
.city-tabs input:checked + label {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
  box-shadow: 0 4px 10px rgba(22,163,74,.25);
}

.instant-demand-chips input:focus-visible + label,
.city-tabs input:focus-visible + label {
  outline: 2px solid #16a34a;
  outline-offset: 2px;
}

.city-tabs label { padding: 10px 20px; flex: 0 0 auto; }

/* ── Buy / Rent toggle (Bootstrap btn-check pills) ───────────────
   Scoped to .instant-demand-body so it only affects the demand
   modal and doesn't leak into other btn-check usage on the site. */
.instant-demand-body .btn-group {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.instant-demand-body .btn-group::-webkit-scrollbar { display: none; }
.instant-demand-body .btn { flex: 0 0 auto; white-space: nowrap; }
.instant-demand-body .btn-group .btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  height: 38px !important;
  min-width: 44px !important;
  padding: 0 18px !important;
  border: 1px solid rgba(0,0,0,.08) !important;
  color: #344050 !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(10,15,13,.03);
  line-height: 1 !important;
}
.instant-demand-body .btn-outline-primary:hover,
.instant-demand-body .btn-outline-success:hover {
  border-color: rgba(0,0,0,.22) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(20,30,60,.08);
}
/* =====================================================================
   HOMEPAGE UPGRADE — hero, quick-links, communities, property types,
   popular searches, CTA banners. Design language matches the marketplace
   pattern used by Upwork / Fiverr / Booking.com / Trustpilot: generous
   whitespace, restrained color (one accent green), soft shadows instead
   of heavy borders, and pill-shaped primary buttons everywhere.
   Everything below is scoped to real classes already in index.php, so
   no HTML/PHP/JS was touched — this file loads AFTER custom.css and
   theme.min.css, so these rules safely take priority.
   ===================================================================== */

:root {
  --ph-ink: #0d1321;
  --ph-muted: #6b7280;
  --ph-muted-2: #9ca3af;
  --ph-border: #e6e9f0;
  --ph-bg-soft: #f7f9fc;
  --ph-green: #16a34a;
  --ph-green-dark: #128a3e;
  --ph-green-soft: #f0fdf4;
  --ph-radius: 16px;
  --ph-radius-sm: 10px;
  --ph-shadow: 0 8px 24px rgba(15,23,42,.06);
  --ph-shadow-hover: 0 16px 36px rgba(15,23,42,.12);
}

/* ── FULL-WIDTH LAYOUT ──────────────────────────────────────────────
   Bootstrap's default .container / .container-lg / .container-xl caps
   width at fixed per-breakpoint values, which is what was squeezing
   the page content into a narrow centered column with big empty
   margins. This stretches every section edge-to-edge with a
   screen-size-aware side gutter instead — same technique already
   applied to the header nav, extended to the rest of the page. */
.container,
.container-fluid,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl,
.container-medium {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: clamp(14px, 4vw, 56px) !important;
  padding-right: clamp(14px, 4vw, 56px) !important;
  box-sizing: border-box !important;
}
/* Prevent double side-padding when a container sits inside another
   container (e.g. the property-types swiper section). */
.container .container,
.container .container-medium,
.container-medium .container,
.container-medium .container-medium {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ── SECTION HEADINGS (shared across the page) ─────────────────────
   One consistent heading style instead of each section improvising
   its own weight/size — this is the biggest visual "cheap vs
   professional" tell on marketplace sites. */
section h2.fw-semibold,
section h2.fw-bold {
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem) !important;
  color: var(--ph-ink) !important;
  letter-spacing: -.01em;
}
section p.text-muted,
section p.text-body-tertiary {
  font-size: .95rem !important;
  color: var(--ph-muted) !important;
}

/* ── HERO ────────────────────────────────────────────────────────── */
.pulse-landing-page-hero {
  width: 100%;
  padding: clamp(48px, 8vw, 96px) clamp(14px, 4vw, 56px) clamp(56px, 6vw, 80px);
  box-sizing: border-box;
  text-align: center;
}
.pulse-landing-page-hero-inner {
  max-width: 900px;
  width: 100%;
  margin: 0 auto !important;
}
.pulse-landing-page-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25);
  padding: 7px 18px;
  border-radius: 999px;
  margin-bottom: 18px;
  backdrop-filter: blur(4px);
}
.pulse-landing-page-hero-inner h4 {
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.6rem) !important;
  line-height: 1.25 !important;
  font-weight: 300 !important;
  margin-bottom: 6px;
}
.pulse-landing-page-hero-inner h4 .typed-text {
  color: #fff;
}
.pulse-landing-page-hero-inner > p {
  color: rgba(255,255,255,.75);
  font-size: 1rem;
  margin-bottom: 28px;
}

/* Search box — pill-shaped, floating card feel */
.pulse-landing-pagesearch-box {
  position: relative;
  max-width: 560px;
  width: 100%;
  margin: 0 auto 28px;
  /*background: #fff;*/
  border-radius: 999px;
  box-shadow: var(--ph-shadow-hover);
  display: flex;
  align-items: center;
}
.pulse-landing-pagesearch-icon {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ph-muted-2);
  font-size: 15px;
  pointer-events: none;
}
.pulse-landing-pagesearch-input {
  width: 100%;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 999px !important;
  padding: 16px 60px 16px 50px !important;
  font-size: 14.5px !important;
  color: var(--ph-ink) !important;
  margin-bottom: 0 !important;
}
.pulse-landing-pagesearch-input::placeholder { color: var(--ph-muted-2); }
.pulse-landing-pageclear-btn {
  position: absolute;
  right: 58px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--ph-muted-2);
  font-size: 13px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .15s;
}
.pulse-landing-pageclear-btn:hover { background: var(--ph-bg-soft); color: var(--ph-ink); }
.pulse-landing-pagesearch-btn {
  position: absolute !important;
  right: 6px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  border: none !important;
  background: var(--ph-green) !important;
  color: #fff !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  aspect-ratio: 1 / 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  transition: .15s;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(22,163,74,.35);
}
.pulse-landing-pagesearch-btn i,
.pulse-landing-pagesearch-btn svg {
  margin: 0 !important;
}
.pulse-landing-pagesearch-btn:hover { background: var(--ph-green-dark) !important; transform: translateY(-50%) scale(1.08) !important; }
.pulse-landing-pagesuggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #edf0f2;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,.08);
  z-index: 99999;
  text-align: left;
  max-height: 380px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.pulse-landing-pagesuggestions::-webkit-scrollbar {
  display: none;
}

/* Suggestion row — matches the areas.php suggestion design:
   compact image/icon box on the left, name + type tags on the
   right, quiet hover state. */
.pulse-landing-pagesuggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: .2s ease;
}
.pulse-landing-pagesuggestion-item:hover {
  background: var(--ph-bg-soft);
}
.pulse-landing-pagesuggestion-img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
.pulse-landing-pagesuggestion-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ph-green-soft);
  color: var(--ph-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.pulse-landing-pagesuggestion-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.pulse-landing-pagesuggestion-text {
  width: 100%;
  font-size: 14px;
  font-weight: 700;
  color: var(--ph-ink);
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pulse-landing-pagesuggestion-sub {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--ph-muted);
  line-height: 1.6;
}
.pulse-landing-pagesuggestion-tag {
  display: flex;
  align-items: center;
  gap: 5px;
}
.pulse-landing-pagesuggestion-tag i {
  color: var(--ph-green);
  font-size: 11px;
}

/* Hero primary CTA — pill button with a subtle gradient + icon chip,
   consistent with header's Sign up but a touch more premium since
   this is the hero's single most important action. */
.pulse-landing-page-hero-actions { margin-bottom: 36px; }
.theme-btn.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--ph-green) 0%, var(--ph-green-dark) 100%) !important;
  color: #fff !important;
  border: none !important;
  padding: 15px 34px !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  letter-spacing: .01em;
  text-decoration: none !important;
  box-shadow: 0 10px 26px rgba(22,163,74,.4);
  transition: .2s ease;
}
.theme-btn.btn-primary-custom i {
  font-size: .9em;
}
.theme-btn.btn-primary-custom:hover {
  color: #fff !important;
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(22,163,74,.48);
}
.theme-btn.btn-primary-custom:active { transform: translateY(-1px); }

/* Stats row — dropped the heavy dark boxes for a light, minimal
   "frosted glass" card: barely-there background, thin hairline
   border, generous spacing. Reads as data, not as UI chrome — the
   restrained pattern Trustpilot/Booking use for hero stats. */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(10px, 2vw, 18px);
  padding-top: 8px;
}
.stat-card {
  text-align: center;
  min-width: 96px;
  padding: 16px 22px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  backdrop-filter: blur(6px);
  transition: .2s ease;
}
.stat-card:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.22);
  transform: translateY(-2px);
}
.stat-card h3 {
  color: #fff !important;
  font-weight: 800 !important;
  font-size: clamp(1.2rem, 1rem + .8vw, 1.6rem) !important;
  margin-bottom: 2px !important;
}
.stat-card p {
  color: rgba(255,255,255,.6) !important;
  font-size: 12.5px !important;
  font-weight: 500;
  margin: 0 !important;
  text-transform: uppercase;
  letter-spacing: .04em;
}

@media (max-width: 576px) {
  .stats-row { gap: 10px; }
  .stat-card { min-width: 0; flex: 1 1 30%; padding: 12px 10px; }
}

/* ── QUICK-LINK CATEGORY CAROUSEL (Pulses / Brokers / Areas / …) ───
   Horizontal-scroll row of category shortcuts. Mobile shows compact
   pill cards (icon + label inline); desktop (≥768px) switches to a
   two-tier card — dark green header carrying the label, and a
   colored panel below holding the icon. Side arrows (#ccPrevBtn /
   #ccNextBtn, toggled from the script right after the section)
   appear only when the row actually overflows its container. */
.cc-wrap {
  position: relative;
}
.cc-track {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 2px 10px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.cc-track::-webkit-scrollbar { display: none; }

.cc-card {
  flex-shrink: 0;
  min-width: 150px;
  display: flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(15,23,42,.05), 0 1px 6px rgba(15,23,42,.05);
  cursor: pointer;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}
.cc-card:hover {
  box-shadow: 0 10px 24px rgba(15,23,42,.14);
  transform: translateY(-2px);
  text-decoration: none;
}

.cc-card-head { display: none; }
.cc-card-body {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  width: 100%;
}

.cc-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ph-green-dark);
  font-size: 14px;
  flex-shrink: 0;
}
.cc-label {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}

/* One pastel accent per card */
.cc-c1 { background: #fdf2f8; border-color: rgba(236,72,153,.12); }
.cc-c1 .cc-icon { background: #fce7f3; }
.cc-c2 { background: #faf5ff; border-color: rgba(168,85,247,.12); }
.cc-c2 .cc-icon { background: #f3e8ff; }
.cc-c3 { background: #ecfdf5; border-color: rgba(16,185,129,.12); }
.cc-c3 .cc-icon { background: #d1fae5; }
.cc-c4 { background: #fff7ed; border-color: rgba(249,115,22,.12); }
.cc-c4 .cc-icon { background: #ffedd5; }
.cc-c5 { background: #fffbeb; border-color: rgba(245,158,11,.12); }
.cc-c5 .cc-icon { background: #fef3c7; }

/* Arrows: hidden until the track overflows AND is scrolled past its edge */
.cc-btn {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 6px rgba(15,23,42,.12);
  color: #334155;
  align-items: center;
  justify-content: center;
  z-index: 5;
  cursor: pointer;
  transition: all .2s ease;
}
.cc-btn:hover {
  background: var(--ph-green-dark);
  color: #fff;
  border-color: var(--ph-green-dark);
}
.cc-btn.cc-show { display: flex; }
.cc-btn-prev { left: -6px; }
.cc-btn-next { right: -6px; }

/* Desktop: two-tier card (dark header + colored icon panel) */
@media (min-width: 768px) {
  .cc-card {
    min-width: 190px;
    flex-direction: column;
    align-items: stretch;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
  }
  .cc-card-head {
    display: block;
    background: linear-gradient(135deg, #0c3d24 0%, #0a2e1b 100%);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    padding: 12px 10px;
    letter-spacing: .2px;
  }
  .cc-card-body {
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 22px 14px;
  }
  .cc-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fff !important;
    box-shadow: 0 4px 12px rgba(15,23,42,.12);
    font-size: 19px;
  }
  .cc-c1 .cc-card-body { background: #fdf2f8; }
  .cc-c2 .cc-card-body { background: #faf5ff; }
  .cc-c3 .cc-card-body { background: #ecfdf5; }
  .cc-c4 .cc-card-body { background: #fff7ed; }
  .cc-c5 .cc-card-body { background: #fffbeb; }
  .cc-label { font-size: 13.5px; margin-top: 2px; }
}

/* ── "WHY PROPIHUNT" FEATURE LIST CARDS ─────────────────────────── */
.feature-list-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--ph-border);
  border-radius: var(--ph-radius);
  padding: 18px;
  height: 100%;
  box-shadow: var(--ph-shadow);
  transition: .2s ease;
}
.feature-list-card:hover { box-shadow: var(--ph-shadow-hover); transform: translateY(-2px); }
.feature-list-card img { width: 44px; height: 44px; flex-shrink: 0; }
.feature-list-card h6 { color: var(--ph-ink); font-size: .95rem; }
.feature-list-card p { font-size: .82rem; }

/* ── EXPLORE COMMUNITIES CARDS ─────────────────────────────────────
   Bootstrap .card with a bg image + overlay (rendered in PHP) — just
   sharpen the shape and add a subtle image zoom on hover. */
section .row.g-4 > div > .card {
  border-radius: var(--ph-radius) !important;
  box-shadow: var(--ph-shadow);
  min-height: 220px;
  transition: transform .2s ease, box-shadow .2s ease;
}
section .row.g-4 > div > .card:hover { box-shadow: var(--ph-shadow-hover); transform: translateY(-4px); }
section .row.g-4 > div > .card img {
  transition: transform .4s ease;
}
section .row.g-4 > div > .card:hover img { transform: scale(1.06); }

/* ── EXPLORE PROPERTY TYPES (swiper cards) ─────────────────────── */
.property-type-card { transition: transform .2s ease; }
.property-type-card:hover { transform: translateY(-4px); }
.property-type-image {
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform .4s ease;
}
.property-type-card:hover .property-type-image { transform: scale(1.06); }
.type-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(13,19,33,.72);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  backdrop-filter: blur(3px);
}
.requirement-pill {
  background: var(--ph-green-soft);
  color: var(--ph-green-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ── POPULAR REAL ESTATE SEARCHES — TABS ───────────────────────────
   Requirements / Properties toggle: bold underline, green active
   state instead of the default Bootstrap blue. City pills below it
   get the same pill treatment as the demand-modal chips. */
#buyAndSellTab .nav-link {
  color: var(--ph-muted) !important;
  font-weight: 700 !important;
  font-size: .95rem !important;
  border: none !important;
  border-bottom: 3px solid transparent !important;
  padding: 10px 4px !important;
}
#buyAndSellTab .nav-link.active {
  color: var(--ph-ink) !important;
  border-bottom-color: var(--ph-green) !important;
}
.nav-pills .nav-link {
  color: var(--ph-muted) !important;
  font-weight: 600 !important;
  font-size: .85rem !important;
  border-radius: 999px !important;
  padding: 8px 18px !important;
  border: 1.5px solid var(--ph-border) !important;
  margin-right: 8px;
  white-space: nowrap;
  transition: .2s ease;
}
.nav-pills .nav-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(15,23,42,.08);
}
.nav-pills .nav-link.active {
  background: #fff !important;
  border-color: var(--ph-green) !important;
  color: var(--ph-green-dark) !important;
  box-shadow: 0 4px 14px rgba(22,163,74,.14);
}

/* ── SHARED PILL BUTTONS (CTA banners, "View All", "Get Started") ── */
.btn-phoenix-success {
  background: var(--ph-green-soft) !important;
  color: var(--ph-green-dark) !important;
  border: 1.5px solid transparent !important;
  font-weight: 700 !important;
  transition: .2s ease;
}
.btn-phoenix-success:hover {
  background: var(--ph-green) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(22,163,74,.28);
}
.container-medium .btn-light {
  font-weight: 700 !important;
  transition: .15s ease;
}
.container-medium .btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}

/* =====================================================================
   RESPONSIVENESS — every section above re-checked at phone width.
   ===================================================================== */
@media (max-width: 767.98px) {
  .pulse-landing-page-hero { padding-top: 40px; padding-bottom: 44px; }
  .pulse-landing-pagesearch-input { padding: 14px 54px 14px 46px !important; font-size: 14px !important; }
  .pulse-landing-pagesearch-btn { width: 38px !important; height: 38px !important; min-width: 38px !important; max-width: 38px !important; }
  .theme-btn.btn-primary-custom { width: 100%; justify-content: center; padding: 14px 20px !important; }
  section .d-flex.align-items-center.justify-content-between {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 12px;
  }
  section .d-flex.align-items-center.justify-content-between > a.btn {
    align-self: flex-start;
  }
  .cta-title { padding: 0 4px; }
}
/* ── TRUSTED BROKERS BANNER — auto-scrolling photo strip ────────────
   Fiverr "AI Director" style marquee: layered, alternating-height
   cards drifting continuously right-to-left, name pinned at the
   bottom over a dark gradient. tbl_users has no broker photo column
   yet, so each card is a colored gradient "portrait" with the
   broker's initial standing in for a real photo. The track is
   rendered twice back-to-back and animated by exactly -50%, so the
   loop is seamless. */
.fh-broker-scroll-wrap {
  position: relative;
  overflow: hidden;
  padding: 26px 0;
  min-height: 210px;
}
.fh-broker-track {
  display: flex;
  width: max-content;
  animation: fhBrokerScroll 26s linear infinite;
}
.fh-broker-scroll-wrap:hover .fh-broker-track {
  animation-play-state: paused;
}
.fh-broker-track-inner {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding: 0 10px;
}
@keyframes fhBrokerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.fh-broker-card {
  position: relative;
  flex: 0 0 auto;
  width: 122px;
  height: 160px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
  transition: transform .3s ease, box-shadow .3s ease;
}
.fh-broker-card-up { margin-bottom: 24px; }
.fh-broker-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 26px rgba(0,0,0,.45);
}
.fh-broker-initial {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  font-weight: 800;
  color: rgba(255,255,255,.85);
}
.fh-broker-name {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 26px 10px 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff !important;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.78) 100%);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fh-bc1 { background: linear-gradient(160deg, #16a34a, #0a2e1b); }
.fh-bc2 { background: linear-gradient(160deg, #6a2748, #2c0f1e); }
.fh-bc3 { background: linear-gradient(160deg, #8a691f, #3a2a0c); }
.fh-bc4 { background: linear-gradient(160deg, #205a6e, #0c222a); }
.fh-bc5 { background: linear-gradient(160deg, #454545, #161616); }
.fh-bc6 { background: linear-gradient(160deg, #2f6b42, #102015); }

.fh-broker-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.fh-broker-fade-left  { left: 0;  background: linear-gradient(90deg, rgba(0,0,0,.85), transparent); }
.fh-broker-fade-right { right: 0; background: linear-gradient(-90deg, rgba(0,0,0,.85), transparent); }

@media (max-width: 991px) {
  .fh-broker-scroll-wrap { min-height: 176px; padding: 18px 0; }
  .fh-broker-card { width: 100px; height: 134px; }
  .fh-broker-card-up { margin-bottom: 16px; }
  .fh-broker-initial { font-size: 30px; }
  .fh-broker-name { font-size: 11.5px; padding: 20px 8px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .fh-broker-track { animation: none; }
}


/* AI Director Style Banner for Brokers */
.ai-director-hero {
  background-color: #000000;
  border: 1px solid #1a1a1a;
  border-radius: 24px;
  width: 100%;
  padding: 50px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

@media (min-width: 901px) {
  .ai-director-hero {
    box-shadow: none;
  }
}

.ai-director-left {
  flex: 1;
  max-width: 420px;
  z-index: 2;
}

.ai-director-left h2 {
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: #f5f5f7;
}

.ai-director-left p {
  font-size: 1rem;
  line-height: 1.5;
  color: #a1a1a6;
  margin-bottom: 28px;
  font-weight: 400;
}

.ai-director-btn {
  display: inline-block;
  background-color: #ffffff;
  color: #000000 !important;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none !important;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.ai-director-btn:hover {
  background-color: #e5e5e7;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.25);
}

.ai-director-right {
  flex: 1.2;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 340px;
}

.card-stack {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 100%;
}

.ai-card {
  position: absolute;
  width: 180px;
  height: 260px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background-color: #121212;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  user-select: none;
}

.ai-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.85);
  transition: filter 0.3s ease;
}

.ai-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  color: #10b981;
}

.ai-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 14px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
}

.ai-card-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.ai-card[data-pos="-2"] {
  transform: translateX(-200px) scale(0.8);
  z-index: 1;
  opacity: 0.3;
}

.ai-card[data-pos="-1"] {
  transform: translateX(-110px) scale(0.9);
  z-index: 2;
  opacity: 0.75;
}

.ai-card[data-pos="0"] {
  transform: translateX(0) scale(1.08);
  z-index: 3;
  opacity: 1;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 255, 255, 0.08);
}

.ai-card[data-pos="0"] img {
  filter: brightness(1);
}

.ai-card[data-pos="1"] {
  transform: translateX(110px) scale(0.9);
  z-index: 2;
  opacity: 0.75;
}

.ai-card[data-pos="2"] {
  transform: translateX(200px) scale(0.8);
  z-index: 1;
  opacity: 0.3;
}

@media (max-width: 900px) {
  .ai-director-hero {
    flex-direction: column;
    padding: 40px 20px 56px;
    text-align: center;
    overflow: visible;
  }
  .ai-director-left {
    max-width: 100%;
    order: 1;
  }
  .ai-director-right {
    width: 100%;
    height: 300px;
    margin-top: 64px;
    order: 2;
    overflow: visible;
  }
  .ai-card {
    width: 150px;
    height: 220px;
  }
  .ai-card[data-pos="-2"] { transform: translateX(-155px) scale(0.75); }
  .ai-card[data-pos="-1"] { transform: translateX(-85px) scale(0.88); }
  .ai-card[data-pos="0"]  { transform: translateX(0) scale(1.05); }
  .ai-card[data-pos="1"]  { transform: translateX(85px) scale(0.88); }
  .ai-card[data-pos="2"]  { transform: translateX(155px) scale(0.75); }
}

@media (max-width: 576px) {
  .ai-director-right {
    height: 250px;
    margin-top: 60px;
  }
  .ai-card {
    width: 115px;
    height: 168px;
    border-radius: 12px;
  }
  .ai-card-placeholder { font-size: 2rem; }
  .ai-card-name { font-size: 0.8rem; }
  .ai-card[data-pos="-2"] { transform: translateX(-100px) scale(0.72); opacity: 0.45; }
  .ai-card[data-pos="-1"] { transform: translateX(-55px) scale(0.86); opacity: 0.85; }
  .ai-card[data-pos="0"]  { transform: translateX(0) scale(1); }
  .ai-card[data-pos="1"]  { transform: translateX(55px) scale(0.86); opacity: 0.85; }
  .ai-card[data-pos="2"]  { transform: translateX(100px) scale(0.72); opacity: 0.45; }
}

/* =========================================
   FINAL CTA — "Ready to close your next deal"
   banner, same design language as tour-hero
   (Upwork/Fiverr/Trustpilot-grade close).
   Reused from buildings.php card design.
========================================= */

/* SECTION WRAPPER */
.cta-section {
  padding: 60px 20px 70px;
}

/* CTA BOX */
.cta-box {
  max-width: 1175px;
  margin: auto;
  padding: 64px 40px;

  border-radius: 28px;
  background: #06090a;
  color: #fff;

  text-align: center;

  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* SOFT DUAL GLOW EFFECT — mirrors .tour-hero-bg */
.cta-box::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  background: rgba(31,174,99,.4);
  border-radius: 50%;
  top: -160px;
  right: -110px;
  filter: blur(110px);
  z-index: -1;
}
.cta-box::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  background: rgba(13,92,52,.32);
  border-radius: 50%;
  bottom: -150px;
  left: -90px;
  filter: blur(110px);
  z-index: -1;
}

/* EYEBROW BADGE */
.cta-badge-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;

  padding:6px 14px 6px 10px;

  border-radius:999px;
  border:1px solid rgba(255,255,255,.09);
  background:rgba(255,255,255,.03);

  color:#9fada7;
  font-size:12.5px;
  font-weight:500;
  letter-spacing:.2px;

  margin-bottom:22px;
}
.cta-badge-pill i{
  color:#34d17c;
  font-size:10px;
}

/* HEADING */
.cta-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.6px;
  line-height: 1.2;
  color: #f6f8f7;
  margin-bottom: 14px;
}

/* SUBTITLE */
.cta-subtitle{
  max-width: 560px;
  margin: 0 auto 34px;

  color: #96a29d;
  font-size: 15.5px;
  line-height: 1.6;
}

/* BUTTON GROUP */
.cta-actions{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;

  margin-bottom: 32px;
}

/* BUTTON — shared shape */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  padding: 14px 26px;
  border-radius: 999px;

  text-decoration: none !important;
  font-weight: 700;
  font-size: 14.5px;
  white-space: nowrap;

  transition: all 0.25s ease;
}

/* PRIMARY BUTTON — solid brand green */
.cta-btn-primary{
  background: #34d17c;
  color: #06090a;
  box-shadow: 0 12px 26px rgba(52,209,124,.28);
}
.cta-btn-primary:hover{
  background: #3fe089;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(52,209,124,.38);
}

/* OUTLINE BUTTON — glass, on dark bg */
.cta-btn-outline{
  background: rgba(255,255,255,.05);
  color: #f6f8f7;
  border: 1px solid rgba(255,255,255,.14);
}
.cta-btn-outline i{ color:#34d17c; }
.cta-btn-outline:hover{
  background: rgba(255,255,255,.1);
  transform: translateY(-2px);
}

/* TRUST ROW */
.cta-trust-row{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;

  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.cta-trust-row span{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: #8a978f;
  font-size: 13px;
  font-weight: 500;
}
.cta-trust-row i{
  color: #34d17c;
  font-size: 12px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .cta-box {
    padding: 44px 22px;
    border-radius: 22px;
  }

  .cta-title {
    font-size: 22px;
    line-height: 1.35;
  }

  .cta-subtitle{
    font-size: 14px;
    margin-bottom: 26px;
  }

  .cta-actions{
    flex-direction: column;
    width: 100%;
  }
  .cta-btn{
    width: 100%;
    justify-content: center;
  }

  .cta-trust-row{
    gap: 14px;
    row-gap: 10px;
  }
  .cta-trust-row span{
    font-size: 12px;
  }
}
/* =====================================================================
   POST REQUIREMENT MODAL (#modal) — restyled to match the Filter
   modal design language used on pulses.php (#flightFilterModal /
   .filter-modal-*, .filter-options) and the shared pulse.css design
   tokens (dark near-black header, white-bg + green-outline active
   chips, near-black solid Apply pill, mobile bottom-sheet with a
   footer that stays pinned to the bottom of the screen).
   No PHP/JS logic touched — CSS + a couple of class additions only.
   ===================================================================== */

/* ── Shell — ONLY the header stays fixed at the top (position:
   sticky) while the user scrolls. The body AND the footer now
   scroll together as normal page content — the footer is no
   longer pinned/fixed to the bottom of the modal, on any screen
   size. Same behaviour on mobile's bottom-sheet layout below. ─── */
#modal .idf-modal-content,
#propertyDemandModal .idf-modal-content {
  border-radius: 1.5rem;
  border: 0;
  box-shadow: 0 30px 70px rgba(6,9,10,.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;     /* clean rounded clip — no scrollbar lives here anymore */
  max-height: 88vh;
}

#modal .idf-modal-dialog,
#propertyDemandModal .idf-modal-dialog { position: relative; }

/* Header — a fixed flex item, never scrolls, always fully visible */
#modal .idf-modal-header,
#propertyDemandModal .idf-modal-header {
  flex: 0 0 auto;
}

/* Scroll pane — wraps body + footer together so the footer stays
   in normal flow (NOT pinned/fixed) and scrolls away with the
   form, exactly like before. The difference: this pane itself has
   no border-radius, and it sits inside the rounded, overflow:hidden
   shell above — so the scrollbar is clipped clean by that shell
   instead of poking past the rounded corners like it did before. */
#modal .idf-modal-scroll,
#propertyDemandModal .idf-modal-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}
#modal .idf-modal-scroll::-webkit-scrollbar,
#propertyDemandModal .idf-modal-scroll::-webkit-scrollbar { width: 6px; }
#modal .idf-modal-scroll::-webkit-scrollbar-thumb,
#propertyDemandModal .idf-modal-scroll::-webkit-scrollbar-thumb { background: #d7dae0; border-radius: 10px; }
#modal .idf-modal-scroll::-webkit-scrollbar-track,
#propertyDemandModal .idf-modal-scroll::-webkit-scrollbar-track { background: transparent; }

/* Body — no longer its own scroll container; it just flows inside
   .idf-modal-scroll above. */
#modal .idf-modal-body,
#propertyDemandModal .idf-modal-body {
  overflow: visible;
}

/* Footer — plain flow content at the end of the scroll pane, still
   NOT pinned/fixed to the bottom. The extra bottom padding is a
   permanent buffer, so it always looks fully padded (matching the
   reference screenshot) instead of only looking right once you've
   scrolled all the way to the end. */
#modal .instant-demand-footer.idf-modal-footer,
#propertyDemandModal .instant-demand-footer.idf-modal-footer {
  background: #fff;
  flex: 0 0 auto;
  padding-bottom: 20px;
}

/* Mobile bottom-sheet — the sheet still fills the screen height,
   header is the fixed flex item on top, body + footer scroll
   together inside .idf-modal-scroll, same as desktop. */
@media (max-width: 767.98px) {
  #modal.modal.show .modal-dialog.idf-modal-dialog,
  #propertyDemandModal.modal.show .modal-dialog.idf-modal-dialog {
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    min-height: auto !important;
    margin: 0;
    display: flex;
    align-items: flex-end;
  }
  #modal .idf-modal-dialog .idf-modal-content,
  #propertyDemandModal .idf-modal-dialog .idf-modal-content {
    height: 92vh;
    height: 92dvh;
    max-height: 92vh;
    max-height: 92dvh;
    border-radius: 1.5rem 1.5rem 0 0;
  }
}

/* ── Header — solid near-black, matches filter-modal-header ─────── */
#modal .idf-modal-header,
#propertyDemandModal .idf-modal-header {
  background: #0a0f0d;
  border-radius: 0;
  padding: .85rem 1.25rem;
  border: 0;
}
#modal .idf-modal-header .idf-header-icon,
#propertyDemandModal .idf-modal-header .idf-header-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #34d17c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
#modal .idf-modal-header .modal-title,
#propertyDemandModal .idf-modal-header .modal-title {
  color: #f6f8f7;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -.3px;
  margin-bottom: .2rem;
}
#modal .idf-modal-header .idf-header-subtitle,
#propertyDemandModal .idf-modal-header .idf-header-subtitle {
  color: #96a29d;
  margin-bottom: 0;
  font-size: .85rem;
}
#modal .idf-modal-header .btn-close,
#propertyDemandModal .idf-modal-header .btn-close {
  background-color: rgba(255,255,255,.06);
  opacity: .9;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-size: 12px;
  box-shadow: none;
  transition: all .18s ease;
}
#modal .idf-modal-header .btn-close:hover,
#propertyDemandModal .idf-modal-header .btn-close:hover {
  opacity: 1;
  background-color: rgba(255,255,255,.14);
}
@media (max-width: 576px) {
  #modal .idf-modal-header,
  #propertyDemandModal .idf-modal-header { padding: .75rem 1rem; }
  #modal .idf-modal-header .idf-header-subtitle,
  #propertyDemandModal .idf-modal-header .idf-header-subtitle { font-size: .78rem; }
}

/* ── Section cards — clean white cards instead of flat grey boxes ── */
#modal .idf-section-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(10,15,13,.03);
}
#modal .idf-section-title { color: #0a0f0d; }
#modal .idf-section-num { background: #16a34a; }
#modal .instant-demand-section { margin-bottom: 14px; }

/* ── Chips (Property Type / Beds / Baths / Furnishing / Building
   Age / Building Type / Floor Type / City tabs) — white bg + green
   outline active state, never a solid fill, matching .filter-options
   and .segment-group across the rest of the site. ────────────────── */
.instant-demand-chips label,
.city-tabs label {
  height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 1px 2px rgba(10,15,13,.03);
}
.instant-demand-chips label:hover,
.city-tabs label:hover {
  border-color: rgba(0,0,0,.22);
  color: #111827;
  box-shadow: 0 10px 22px rgba(20,30,60,.08);
}
.instant-demand-chips input:checked + label,
.city-tabs input:checked + label {
  background: #fff;
  border: 1.5px solid #16a34a;
  color: #16a34a;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(22,163,74,.14);
}
.instant-demand-chips input:focus-visible + label,
.city-tabs input:focus-visible + label {
  outline: 2px solid #16a34a;
  outline-offset: 2px;
}

/* Buy/Rent + Beds + Baths btn-group pills inside the modal — same
   white-bg + green-outline active state as the chips above, instead
   of a solid dark/green fill. */
.instant-demand-body .btn-check:checked + .btn-outline-primary,
.instant-demand-body .btn-check:checked + .btn-outline-success {
  background: #fff;
  border: 1.5px solid #16a34a;
  color: #16a34a;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(22,163,74,.14);
}

/* ── Inputs (Title, Custom Requirement, Area search, Budget/Area) ── */
.instant-demand-input {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  padding: 0 12px;
  font-size: 13px;
  color: #344050;
  background: #fff;
  transition: all .2s ease;
}
.instant-demand-input:focus {
  border-color: #16a34a;
  box-shadow: 0 0 0 4px rgba(22,163,74,.1);
  outline: none;
}
.instant-demand-input::placeholder { color: #9ca3af; }

/* Area search / preferred-locations wrapper (shared component) */
.instant-demand-location-wrapper {
  position: relative;
}
.instant-demand-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #16a34a;
  font-size: 13px;
  pointer-events: none;
}
.instant-demand-clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f3f4f6;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  transition: .15s;
}
.instant-demand-clear-btn:hover { background: #e5e7eb; color: #dc2626; }

/* Suggestion dropdown — shared by area search + preferred locations */
.instant-demand-suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  box-shadow: 0 15px 35px rgba(10,15,13,.12);
  max-height: 220px;
  overflow-y: auto;
  display: none;
  z-index: 40;
  padding: 6px;
}
.instant-demand-suggest-item {
  padding: 10px 12px;
  font-size: 12.5px;
  cursor: pointer;
  border-radius: 10px;
  margin: 2px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background .15s ease;
}
.instant-demand-suggest-item:hover { background: #dcfce7; }
.instant-demand-suggest-item strong { color: #16a34a; }

/* Budget / Area (sq.ft) grid + prefixed inputs */
.instant-demand-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.idf-input-wrap { position: relative; }
.idf-input-prefix {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: 600;
  color: #9ca3af;
  pointer-events: none;
}
.idf-has-prefix { padding-left: 50px !important; }

/* ── Footer — reset (outline) + apply (near-black solid pill),
   same shape/hover language as .filter-reset-btn / .filter-apply-btn
   on pulses.php. On mobile this row sits pinned to the bottom of
   the sheet via the flex rules above. ──────────────────────────── */
.instant-demand-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 16px 0 4px;
  border-top: 1px solid rgba(0,0,0,.06);
  margin-top: 4px;
}
.instant-demand-reset,
.instant-demand-apply {
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  transition: all .2s ease;
}
.instant-demand-reset {
  background: #fff;
  border: 1px solid rgba(0,0,0,.1);
  color: #344050;
}
.instant-demand-reset:hover {
  border-color: #16a34a;
  color: #16a34a;
}
.instant-demand-apply {
  background: #0a0f0d;
  color: #fff;
  min-width: 210px;
  box-shadow: 0 10px 24px rgba(10,15,13,.2);
}
.instant-demand-apply:hover {
  background: #161f1b;
  box-shadow: 0 14px 30px rgba(10,15,13,.28);
}

#modal .idf-modal-footer.instant-demand-footer,
#propertyDemandModal .idf-modal-footer.instant-demand-footer {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (max-width: 576px) {
  .instant-demand-footer { justify-content: stretch; padding: 14px 1rem; gap: 8px; }

  /* Reset becomes an icon-only circle button — its label is hidden,
     not removed, so nothing wraps/overflows on narrow screens. */
  .instant-demand-reset {
    flex: 0 0 44px;
    width: 44px;
    padding: 0;
  }
  .instant-demand-reset .action-text { display: none; }

  /* Submit keeps its full label and takes the remaining width, so
     the text never breaks onto a second line. */
  .instant-demand-apply {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* =====================================================================
   BUDGET / AREA DUAL-HANDLE RANGE SLIDER
   Two overlapping <input type="range"> elements per slider (classic
   dual-thumb technique) — dragging either handle writes the formatted
   value straight into the linked Min/Max text field above it, and
   typing in those fields moves the handles back. Pure CSS/vanilla JS,
   no external library. ===================================================================== */
.idf-slider {
  position: relative;
  height: 30px;
  margin: 14px 2px 4px;
}
.idf-slider-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  background: #e5e7eb;
  border-radius: 999px;
}
.idf-slider-range {
  position: absolute;
  top: 0;
  height: 4px;
  background: #16a34a;
  border-radius: 999px;
}
.idf-slider-input {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 30px;
  margin: 0;
  background: transparent;
  pointer-events: none;
}
.idf-slider-input::-webkit-slider-runnable-track { background: transparent; }
.idf-slider-input::-moz-range-track { background: transparent; border: none; }
.idf-slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  pointer-events: all;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #16a34a;
  box-shadow: 0 2px 6px rgba(10,15,13,.25);
  cursor: pointer;
  margin-top: 0;
}
.idf-slider-input::-moz-range-thumb {
  pointer-events: all;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #16a34a;
  box-shadow: 0 2px 6px rgba(10,15,13,.25);
  cursor: pointer;
}
.idf-slider-input:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(22,163,74,.18), 0 2px 6px rgba(10,15,13,.25);
}