.pf-hero {
  position: relative;
  height: clamp(560px, 68vh, 660px);
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(21, 18, 42, 0.28), rgba(21, 18, 42, 0.56)),
    url('/assets/images/home-hero.jpg'),
    linear-gradient(135deg, #2f2873 0%, #6954b8 48%, #efeafa 100%);
  background-size: cover;
  background-position: center;
}

.pf-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.38));
}

.pf-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.07), transparent 34%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.12), transparent 30%, rgba(0, 0, 0, 0.08));
}

.pf-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 42px 0 54px;
}

.pf-hero__content {
  max-width: 940px;
  margin-inline: auto;
  text-align: center;
  color: #fff;
}

.pf-hero__eyebrow {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 900;
}

.pf-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(46px, 6.3vw, 74px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.04em;
  text-shadow: 0 16px 44px rgba(0, 0, 0, 0.26);
}

.pf-hero__content p:not(.pf-hero__eyebrow) {
  max-width: 760px;
  margin: 16px auto 0;
  color: rgba(255, 255, 255, 0.93);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.9;
}

.pf-search-shell {
  max-width: 980px;
  margin: 78px auto 0;
}

.pf-search {
  position: relative;
  padding: 66px 34px 30px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.985);
  box-shadow: 0 28px 76px rgba(22, 17, 54, 0.26);
}

.pf-search-tabs {
  position: absolute;
  top: -37px;
  left: 50%;
  transform: translateX(-50%);
  width: min(620px, calc(100% - 44px));
  min-height: 70px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 50px rgba(30, 20, 70, 0.18);
}

.pf-search-tabs button {
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--pf-purple);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.pf-search-tabs button.active {
  background: var(--pf-purple-soft);
  color: var(--pf-purple);
}

.pf-search-main {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.pf-search-input {
  position: relative;
  display: block;
}

.pf-search-input span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.pf-search-input input {
  width: 100%;
  min-height: 64px;
  padding: 0 56px 0 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--text);
  font-size: 19px;
  font-weight: 800;
  outline: none;
  box-shadow: 0 10px 26px rgba(30, 20, 70, 0.08);
}

.pf-search-input::before {
  content: '⌕';
  position: absolute;
  right: 23px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
  z-index: 1;
}

.pf-search-input input:focus {
  border-color: var(--pf-purple);
  box-shadow: 0 0 0 5px rgba(50, 36, 111, 0.10);
}

.pf-search-button {
  min-height: 58px;
  min-width: 105px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--pf-red);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(239, 63, 63, 0.28);
}

.pf-search-button:hover {
  background: var(--pf-red-dark);
}

.pf-filter-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.pf-filter-pill {
  position: relative;
  min-width: 145px;
}

.pf-filter-pill span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.pf-filter-pill::after {
  content: '⌄';
  position: absolute;
  left: 19px;
  top: 50%;
  transform: translateY(-52%);
  color: var(--pf-purple);
  font-size: 20px;
  font-weight: 900;
  pointer-events: none;
}

.pf-filter-pill select {
  width: 100%;
  min-height: 52px;
  appearance: none;
  -webkit-appearance: none;
  padding: 0 18px 0 42px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--text-soft);
  font-weight: 900;
  cursor: pointer;
  outline: none;
}

.pf-filter-pill select:focus {
  border-color: var(--pf-purple);
  box-shadow: 0 0 0 4px rgba(50, 36, 111, 0.09);
}

/* Sticky mini search */

.home-sticky-search {
  position: fixed;
  top: calc(var(--header-height) + 10px);
  left: 18px;
  right: 18px;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px);
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    visibility 0.18s ease,
    transform 0.18s ease;
}

.home-sticky-search.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.home-sticky-search__form {
  width: min(1060px, 100%);
  min-height: 70px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr 180px auto;
  gap: 10px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.home-sticky-search__tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: var(--pf-purple-pale);
}

.home-sticky-search__tabs button {
  min-height: 42px;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0 17px;
  background: transparent;
  color: var(--pf-purple);
  font-weight: 900;
  cursor: pointer;
}

.home-sticky-search__tabs button.active {
  background: var(--pf-purple-soft);
}

.home-sticky-search label {
  position: relative;
  display: block;
}

.home-sticky-search label span {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.home-sticky-search input,
.home-sticky-search select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--text);
  padding: 0 16px;
  outline: none;
  font-weight: 800;
}

.home-sticky-search button[type='submit'] {
  min-height: 48px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--pf-red);
  color: #fff;
  padding: 0 22px;
  font-weight: 900;
  cursor: pointer;
}

/* Sign in */

.home-signin-strip {
  padding: 48px 0 22px;
  background: #fff;
}

.home-signin-strip__inner {
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 24px 32px;
  border-radius: 24px;
  background: var(--bg-soft);
}

.home-signin-strip h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.35;
}

.home-signin-strip p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.home-signin-strip__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Sections */

.home-section {
  padding: 64px 0;
}

.home-properties-grid,
.home-services-grid {
  margin-top: 0;
}

.home-empty {
  min-height: 220px;
  padding: 44px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.home-empty h3 {
  margin: 0;
  font-size: 28px;
}

.home-empty p {
  color: var(--muted);
  line-height: 1.8;
}

.home-empty .btn {
  margin-top: 16px;
}

/* App section */

.home-app-section {
  padding: 58px 0;
  background: var(--pf-purple-pale);
}

.home-app-card {
  direction: ltr;
  min-height: 360px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr 1.05fr;
  grid-template-areas: "visual features content";
  gap: 28px;
  align-items: center;
  padding: 38px 44px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.12), transparent 28%),
    radial-gradient(circle at 84% 80%, rgba(239, 63, 63, 0.12), transparent 28%),
    var(--pf-purple);
  color: #fff;
  overflow: hidden;
}

.home-app-visual,
.home-app-features,
.home-app-content {
  direction: rtl;
}

.home-app-visual {
  grid-area: visual;
  position: relative;
  min-height: 310px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-app-visual__glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 999px;
  background: #dff6ff;
  opacity: 0.95;
  transform: translateX(-24px);
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.home-app-visual__image {
  position: relative;
  z-index: 2;
  width: min(100%, 430px);
  max-height: 315px;
  object-fit: contain;
  transform: rotate(-5deg) translateY(4px);
  filter: drop-shadow(0 26px 36px rgba(10, 6, 32, 0.34));
  transition: transform 0.28s ease, filter 0.28s ease;
}

.home-app-visual:hover .home-app-visual__image {
  transform: rotate(-3deg) translateY(-8px) scale(1.025);
  filter: drop-shadow(0 34px 44px rgba(10, 6, 32, 0.42));
}

.home-app-visual:hover .home-app-visual__glow {
  transform: translateX(-12px) scale(1.04);
  opacity: 1;
}

.home-app-visual__image.is-missing {
  display: none;
}

.home-app-visual__image:not(.is-missing) ~ .home-app-visual__fallback {
  display: none;
}

.home-app-visual__fallback {
  position: relative;
  z-index: 2;
}

.home-app-phone {
  width: 190px;
  min-height: 300px;
  padding: 18px;
  border: 12px solid #120d2e;
  border-radius: 34px;
  background: #fff;
  color: var(--text);
  transform: rotate(-7deg);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.28);
}

.home-app-phone__top {
  display: flex;
  justify-content: flex-end;
}

.home-app-phone__top span {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--pf-purple);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.home-app-phone strong {
  display: block;
  margin: 20px 0 14px;
  text-align: center;
  font-size: 18px;
}

.home-app-phone__image-placeholder {
  height: 110px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(50, 36, 111, 0.18), rgba(239, 63, 63, 0.10)),
    var(--pf-purple-soft);
}

.home-app-phone small {
  display: block;
  margin-top: 16px;
  text-align: center;
  color: var(--text-soft);
  font-weight: 800;
}

.home-app-features {
  grid-area: features;
  display: grid;
  grid-template-columns: repeat(2, minmax(128px, 1fr));
  gap: 14px;
}

.home-app-features article {
  min-height: 132px;
  padding: 18px;
  border-radius: 20px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 16px 34px rgba(10, 6, 32, 0.12);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease;
}

.home-app-features article:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 46px rgba(10, 6, 32, 0.22);
}

.home-app-features span {
  font-size: 27px;
}

.home-app-features strong {
  display: block;
  margin-top: 12px;
  color: var(--pf-purple);
  font-size: 17px;
  line-height: 1.35;
}

.home-app-features small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 700;
}

.home-app-content {
  grid-area: content;
}

.home-app-content .eyebrow {
  color: rgba(255, 255, 255, 0.70);
}

.home-app-content h2 {
  max-width: 520px;
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 4.8vw, 52px);
  line-height: 1.13;
  letter-spacing: -0.03em;
}

.home-app-content p {
  max-width: 560px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.9;
  font-weight: 700;
}

.home-app-install {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
}

.home-app-qr {
  width: 106px;
  height: 106px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 18px;
  background:
    linear-gradient(90deg, #fff 10px, transparent 10px) 0 0 / 20px 20px,
    linear-gradient(#fff 10px, transparent 10px) 0 0 / 20px 20px,
    #120d2e;
  border: 7px solid #fff;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s ease;
}

.home-app-qr:hover {
  transform: scale(1.04) rotate(-1deg);
}

.home-app-qr span {
  position: absolute;
  width: 24px;
  height: 24px;
  background: #120d2e;
  border: 5px solid #fff;
}

.home-app-qr span:nth-child(1) {
  top: 10px;
  right: 10px;
}

.home-app-qr span:nth-child(2) {
  top: 10px;
  left: 10px;
}

.home-app-qr span:nth-child(3) {
  bottom: 10px;
  right: 10px;
}

.home-app-qr small {
  position: absolute;
  bottom: -28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 900;
}

.home-app-install__actions {
  display: grid;
  gap: 10px;
}

.home-app-store-button {
  min-width: 190px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 13px;
  background: #fff;
  color: var(--pf-purple);
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.home-app-store-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.24);
}

.home-app-store-button--outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: none;
}

.home-services-preview {
  background: #fff;
}

.home-cta {
  padding: 64px 0 88px;
}

.home-cta__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 46px;
  background: var(--pf-purple);
  color: #fff;
  border-radius: 34px;
  box-shadow: var(--shadow-lg);
}

.home-cta__card h2 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.18;
}

.home-cta__card p:not(.eyebrow) {
  max-width: 700px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.9;
}

.home-cta__card .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.home-cta__actions {
  display: grid;
  gap: 12px;
  min-width: 230px;
}

.home-cta__actions .btn {
  background: #fff;
  color: var(--pf-purple);
  box-shadow: none;
}

.home-cta__actions .btn--secondary {
  background: var(--pf-red);
  color: #fff;
  border-color: var(--pf-red);
}

/* Responsive */

@media (max-width: 1150px) {
  .home-app-card {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "content content"
      "features visual";
  }
}

@media (max-width: 1050px) {
  .pf-hero {
    height: auto;
    min-height: 620px;
  }

  .pf-hero__inner {
    padding: 50px 0 60px;
  }

  .home-cta__card {
    flex-direction: column;
    align-items: stretch;
  }

  .home-cta__actions {
    min-width: 0;
    width: 100%;
  }

  .home-sticky-search__form {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .home-sticky-search__tabs {
    width: 100%;
  }
}

@media (max-width: 820px) {
  .home-app-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "content"
      "visual"
      "features";
    padding: 30px 20px;
  }

  .home-app-visual {
    min-height: 270px;
  }

  .home-app-features {
    grid-template-columns: 1fr;
  }

  .home-app-install {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-app-install__actions,
  .home-app-store-button {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .pf-hero {
    min-height: auto;
  }

  .pf-hero__inner {
    padding: 42px 0 46px;
  }

  .pf-hero h1 {
    font-size: clamp(38px, 11vw, 56px);
  }

  .pf-hero__content p:not(.pf-hero__eyebrow) {
    font-size: 18px;
  }

  .pf-search-shell {
    margin-top: 64px;
  }

  .pf-search {
    padding: 56px 18px 22px;
    border-radius: 26px;
  }

  .pf-search-tabs {
    top: -32px;
    width: calc(100% - 28px);
    min-height: 58px;
  }

  .pf-search-tabs button {
    font-size: 16px;
  }

  .pf-search-main {
    grid-template-columns: 1fr;
  }

  .pf-search-button {
    width: 100%;
  }

  .pf-filter-pills {
    display: grid;
    grid-template-columns: 1fr;
  }

  .pf-filter-pill {
    min-width: 0;
  }

  .home-signin-strip {
    padding-top: 28px;
  }

  .home-signin-strip__inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 20px;
  }

  .home-signin-strip__actions,
  .home-signin-strip__actions .btn {
    width: 100%;
  }

  .home-section {
    padding: 46px 0;
  }

  .home-cta__card {
    padding: 28px 20px;
  }

  .home-cta__actions .btn {
    width: 100%;
  }

  .home-sticky-search {
    left: 12px;
    right: 12px;
  }
}
/* D2.3 home typography polish */

/* Hero: keep strong */
.pf-hero h1 {
  font-weight: 900;
  letter-spacing: -0.055em;
}

.pf-hero__eyebrow {
  font-weight: 700;
  font-size: 14px;
}

.pf-hero__content p:not(.pf-hero__eyebrow) {
  font-weight: 500;
  letter-spacing: -0.015em;
}

/* Search tabs like Property Finder: medium, not ultra bold */
.pf-search-tabs button {
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.pf-search-tabs button.active {
  font-weight: 700;
}

/* Search input */
.pf-search-input input {
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.pf-search-input input::placeholder {
  font-weight: 400;
}

/* Filter pills */
.pf-filter-pill select {
  font-weight: 400;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.pf-search-button {
  font-weight: 700;
  font-size: 16px;
}

/* Sticky search */
.home-sticky-search__tabs button {
  font-weight: 500;
}

.home-sticky-search__tabs button.active {
  font-weight: 700;
}

.home-sticky-search input,
.home-sticky-search select {
  font-weight: 400;
  font-size: 15px;
}

.home-sticky-search button[type='submit'] {
  font-weight: 700;
}

/* Sign-in strip */
.home-signin-strip h2 {
  font-weight: 700;
  letter-spacing: -0.025em;
}

.home-signin-strip p {
  font-weight: 400;
}

/* App section: keep main title big, inner cards lighter */
.home-app-content h2 {
  font-weight: 900;
  letter-spacing: -0.05em;
}

.home-app-content p {
  font-weight: 400;
}

.home-app-content .eyebrow {
  font-weight: 700;
}

.home-app-features strong {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.home-app-features small {
  font-weight: 400;
}

.home-app-store-button {
  font-weight: 700;
}

/* CTA */
.home-cta__card h2 {
  font-weight: 900;
  letter-spacing: -0.045em;
}

.home-cta__card p:not(.eyebrow) {
  font-weight: 400;
}

.home-cta__card .eyebrow {
  font-weight: 700;
}
/* D3 long landing sections */

.home-quick-section {
  padding: 42px 0 22px;
  background: #fff;
}

.home-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.home-quick-card {
  min-height: 190px;
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(239, 63, 63, 0.10), transparent 34%),
    radial-gradient(circle at bottom right, rgba(50, 36, 111, 0.10), transparent 40%),
    #fff;
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.home-quick-card:hover {
  transform: translateY(-6px);
  border-color: rgba(50, 36, 111, 0.24);
  box-shadow: var(--shadow);
}

.home-quick-card span {
  width: fit-content;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--pf-purple-soft);
  color: var(--pf-purple);
  font-size: 13px;
  font-weight: 700;
}

.home-quick-card strong {
  color: var(--text);
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.home-quick-card small {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.home-browse-section {
  padding: 68px 0;
  background: var(--bg-soft);
}

.home-location-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.home-location-card {
  min-height: 230px;
  display: grid;
  align-content: end;
  gap: 8px;
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 28px;
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow);
  isolation: isolate;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease;
}

.home-location-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(135deg, #32246f, #ef3f3f);
}

.home-location-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 32%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.34));
}

.home-location-card--2::before {
  background: linear-gradient(135deg, #46358f, #7b68d8);
}

.home-location-card--3::before {
  background: linear-gradient(135deg, #1f1b3d, #32246f);
}

.home-location-card--4::before {
  background: linear-gradient(135deg, #ef3f3f, #32246f);
}

.home-location-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
}

.home-location-card span {
  width: fit-content;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 700;
}

.home-location-card strong {
  max-width: 90%;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.home-location-card small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.7;
}

.home-taxonomy-section {
  padding: 68px 0;
  background: #fff;
}

.home-taxonomy-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.home-taxonomy-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.home-taxonomy-panel h3 {
  margin: 0 0 20px;
  color: var(--text);
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.home-taxonomy-panel p {
  margin: 0;
  color: var(--muted);
}

.home-taxonomy-list {
  display: grid;
  gap: 12px;
}

.home-taxonomy-list a {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.home-taxonomy-list a:hover {
  transform: translateX(-4px);
  border-color: rgba(50, 36, 111, 0.26);
  background: var(--pf-purple-pale);
}

.home-taxonomy-list span {
  font-weight: 700;
}

.home-taxonomy-list small {
  color: var(--pf-purple);
  font-size: 13px;
  font-weight: 600;
}

.home-trust-section {
  padding: 72px 0;
  background: var(--pf-purple-pale);
}

.home-trust-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
  align-items: center;
  padding: 42px;
  border-radius: 34px;
  background: #fff;
  box-shadow: var(--shadow);
}

.home-trust-card h2 {
  max-width: 540px;
  margin: 0;
  color: var(--text);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.home-trust-card p:not(.eyebrow) {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

.home-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.home-trust-grid article {
  min-height: 174px;
  padding: 22px;
  border-radius: 24px;
  background: var(--bg-soft);
  transition:
    transform 0.22s ease,
    background-color 0.22s ease,
    box-shadow 0.22s ease;
}

.home-trust-grid article:hover {
  transform: translateY(-6px);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.home-trust-grid span {
  display: inline-flex;
  color: var(--pf-red);
  font-size: 14px;
  font-weight: 800;
}

.home-trust-grid strong {
  display: block;
  margin-top: 12px;
  color: var(--pf-purple);
  font-size: 20px;
  line-height: 1.35;
}

.home-trust-grid small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 15px;
}

.home-process-section {
  padding: 72px 0;
  background: #fff;
}

.home-process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.home-process-grid article {
  min-height: 240px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(180deg, #fff, var(--surface-soft));
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.home-process-grid article:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}

.home-process-grid span {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: var(--pf-purple);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}

.home-process-grid strong {
  display: block;
  margin-top: 22px;
  color: var(--text);
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.home-process-grid p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.85;
}

@media (max-width: 980px) {
  .home-quick-grid,
  .home-location-grid,
  .home-process-grid {
    grid-template-columns: 1fr;
  }

  .home-taxonomy-layout,
  .home-trust-card {
    grid-template-columns: 1fr;
  }

  .home-trust-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .home-quick-section,
  .home-browse-section,
  .home-taxonomy-section,
  .home-trust-section,
  .home-process-section {
    padding: 46px 0;
  }

  .home-taxonomy-panel,
  .home-trust-card {
    padding: 24px 18px;
    border-radius: 26px;
  }

  .home-location-card,
  .home-process-grid article {
    min-height: 210px;
  }
}
/* =========================================================
   HOME MOBILE SEARCH FIX — Clean PropertyFinder-like mobile
   احذف البلوك السابق الخاص بالموبايل وحط هذا مكانه آخر home.css
========================================================= */

@media (max-width: 767px) {
  html,
  body {
    overflow-x: hidden !important;
  }

  *,
  *::before,
  *::after {
    box-sizing: border-box !important;
  }

  .pf-hero {
    min-height: 650px !important;
    padding: 76px 0 36px !important;
    overflow: hidden !important;
  }

  .pf-hero__inner {
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
    padding-inline: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 0 !important;
  }

  .pf-hero__content {
    width: 100% !important;
    max-width: 430px !important;
    margin: 0 auto !important;
    padding-top: 72px !important;
    text-align: center !important;
  }

  .pf-hero__eyebrow {
    margin: 0 0 10px !important;
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 13px !important;
    font-weight: 900 !important;
  }

  .pf-hero__content h1 {
    width: 100% !important;
    max-width: 360px !important;
    margin: 0 auto 14px !important;
    color: #fff !important;
    font-size: clamp(34px, 9.5vw, 44px) !important;
    line-height: 1.15 !important;
    letter-spacing: -1.2px !important;
    text-align: center !important;
  }

  .pf-hero__content p {
    width: 100% !important;
    max-width: 342px !important;
    margin: 0 auto !important;
    color: rgba(255, 255, 255, 0.96) !important;
    font-size: 14.5px !important;
    line-height: 1.85 !important;
    font-weight: 800 !important;
    text-align: center !important;
  }

  .pf-search-shell {
    position: relative !important;
    width: 100% !important;
    max-width: 430px !important;
    margin: 28px auto 0 !important;
    padding: 0 !important;
    display: block !important;
    overflow: visible !important;
    inset: auto !important;
    transform: none !important;
  }

  .pf-search {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    padding: 16px 14px 18px !important;
    display: block !important;
    border: 1px solid rgba(255, 255, 255, 0.72) !important;
    border-radius: 30px !important;
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 22px 52px rgba(20, 14, 45, 0.22) !important;
    backdrop-filter: blur(18px) !important;
    overflow: visible !important;
    inset: auto !important;
    transform: none !important;
  }

  .pf-search-tabs {
    position: static !important;
    inset: auto !important;
    right: auto !important;
    left: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 58px !important;
    margin: 0 auto 14px !important;
    padding: 6px !important;

    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 6px !important;

    direction: rtl !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #fff !important;
    box-shadow: 0 12px 34px rgba(20, 14, 45, 0.12) !important;
    overflow: hidden !important;
  }

  .pf-search-tabs::before,
  .pf-search-tabs::after {
    display: none !important;
    content: none !important;
  }

  .pf-search-tabs button {
    position: relative !important;
    inset: auto !important;
    transform: none !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 46px !important;
    margin: 0 !important;
    padding: 0 10px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: #2d215f !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
  }

  .pf-search-tabs button.active {
    background: #eee8ff !important;
    color: #32246f !important;
    box-shadow: none !important;
  }

  .pf-search-main {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    inset: auto !important;
    transform: none !important;
    overflow: visible !important;
  }

  .pf-search-input {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 58px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;

    border: 1px solid rgba(50, 36, 111, 0.18) !important;
    border-radius: 999px !important;
    background: #fff !important;
    box-shadow: 0 10px 26px rgba(20, 14, 45, 0.08) !important;
    overflow: hidden !important;
  }

  .pf-search-input span {
    display: none !important;
  }

  .pf-search-input input {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    padding: 0 20px 0 66px !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    color: #15101f !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    line-height: 58px !important;
    text-align: right !important;
    white-space: nowrap !important;
  }

  .pf-search-input input::placeholder {
    color: #8a819c !important;
    opacity: 1 !important;
  }

  .pf-search-button {
    position: absolute !important;
    left: 7px !important;
    right: auto !important;
    top: 50% !important;
    z-index: 5 !important;

    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;

    display: grid !important;
    place-items: center !important;

    border: 0 !important;
    border-radius: 50% !important;
    transform: translateY(-50%) !important;
    background: #f43b40 !important;
    color: #fff !important;
    font-size: 0 !important;
    line-height: 1 !important;
    box-shadow: 0 12px 24px rgba(244, 59, 64, 0.28) !important;
  }

  .pf-search-button::before {
    content: "⌕" !important;
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
    height: 100% !important;
    color: #fff !important;
    font-size: 24px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
  }

  .pf-filter-pills,
  .pf-filter-pill {
    display: none !important;
  }

  .home-sticky-search {
    display: none !important;
  }
}

@media (max-width: 430px) {
  .pf-hero {
    min-height: 628px !important;
    padding-top: 72px !important;
  }

  .pf-hero__inner {
    padding-inline: 12px !important;
  }

  .pf-hero__content {
    max-width: 390px !important;
    padding-top: 68px !important;
  }

  .pf-hero__content h1 {
    max-width: 315px !important;
    font-size: clamp(31px, 9vw, 39px) !important;
    line-height: 1.18 !important;
  }

  .pf-hero__content p {
    max-width: 315px !important;
    font-size: 14px !important;
  }

  .pf-search-shell {
    max-width: 390px !important;
    margin-top: 26px !important;
  }

  .pf-search {
    padding: 14px 12px 16px !important;
    border-radius: 28px !important;
  }

  .pf-search-tabs {
    height: 56px !important;
    margin-bottom: 13px !important;
    padding: 6px !important;
  }

  .pf-search-tabs button {
    height: 44px !important;
    font-size: 14px !important;
  }

  .pf-search-input {
    height: 56px !important;
  }

  .pf-search-input input {
    padding-right: 17px !important;
    padding-left: 62px !important;
    font-size: 13.5px !important;
    line-height: 56px !important;
  }

  .pf-search-button {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
  }
}

@media (max-width: 360px) {
  .pf-hero__inner {
    padding-inline: 10px !important;
  }

  .pf-hero__content h1 {
    max-width: 292px !important;
    font-size: 30px !important;
  }

  .pf-search {
    padding-inline: 10px !important;
  }

  .pf-search-tabs button {
    font-size: 13px !important;
  }

  .pf-search-input input {
    font-size: 13px !important;
    padding-right: 14px !important;
  }
}
/* =========================================================
   HOME APP FEATURE ICONS — replace emoji look with clean SVG
   ضع هذا البلوك آخر public/css/home.css
========================================================= */

.home-app-features article .home-app-feature-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.35) 42%, transparent 65%),
    linear-gradient(135deg, rgba(244, 59, 64, 0.13), rgba(238, 232, 255, 0.98));
  color: #32246f;
  box-shadow:
    inset 0 0 0 1px rgba(50, 36, 111, 0.09),
    0 12px 26px rgba(20, 14, 45, 0.10);
}

.home-app-features article .home-app-feature-icon svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-app-features article:nth-child(2) .home-app-feature-icon {
  color: #f43b40;
}

.home-app-features article:nth-child(3) .home-app-feature-icon {
  color: #32246f;
}

.home-app-features article:nth-child(4) .home-app-feature-icon {
  color: #4b3a8f;
}

@media (max-width: 767px) {
  .home-app-features article .home-app-feature-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 12px;
    border-radius: 14px;
  }

  .home-app-features article .home-app-feature-icon svg {
    width: 20px;
    height: 20px;
  }
}
/* =========================================================
   HOME APP REAL QR — fix QR image sizing inside white box
   ضع هذا آخر public/css/home.css
========================================================= */

.home-app-install {
  align-items: center !important;
}

.home-app-qr.home-app-qr--image {
  position: relative !important;
  display: block !important;
  width: 132px !important;
  height: 132px !important;
  min-width: 132px !important;
  padding: 10px !important;
  border-radius: 28px !important;
  background: #fff !important;
  overflow: visible !important;
  box-shadow: 0 18px 34px rgba(20, 14, 45, 0.14) !important;
}

.home-app-qr.home-app-qr--image span {
  display: none !important;
}

.home-app-qr.home-app-qr--image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 14px !important;
  image-rendering: auto !important;
}

.home-app-qr.home-app-qr--image small {
  position: absolute !important;
  left: 50% !important;
  bottom: -24px !important;
  transform: translateX(-50%) !important;
  display: block !important;
  width: max-content !important;
  margin: 0 !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-align: center !important;
}

@media (max-width: 767px) {
  .home-app-qr.home-app-qr--image {
    width: 118px !important;
    height: 118px !important;
    min-width: 118px !important;
    padding: 9px !important;
    border-radius: 24px !important;
  }

  .home-app-qr.home-app-qr--image img {
    border-radius: 12px !important;
  }

  .home-app-qr.home-app-qr--image small {
    bottom: -22px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 430px) {
  .home-app-qr.home-app-qr--image {
    width: 106px !important;
    height: 106px !important;
    min-width: 106px !important;
    padding: 8px !important;
    border-radius: 22px !important;
  }
}
/* =========================================================
   MOBILE SEARCH INPUT FINAL FIX
   - fixes red search button shape
   - removes extra/native search icon from the input
   ضع هذا آخر public/css/home.css
========================================================= */

@media (max-width: 767px) {
  .pf-search-main {
    position: relative !important;
    height: 58px !important;
    display: block !important;
  }

  .pf-search-input {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 58px !important;
    min-height: 58px !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 999px !important;
  }

  .pf-search-input::before,
  .pf-search-input::after {
    display: none !important;
    content: none !important;
  }

  .pf-search-input input[type="search"],
  .pf-search-input input {
    -webkit-appearance: none !important;
    appearance: none !important;

    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;

    padding: 0 18px 0 68px !important;
    margin: 0 !important;

    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;

    direction: rtl !important;
    text-align: right !important;
    color: #171024 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: normal !important;
  }

  .pf-search-input input[type="search"]::-webkit-search-decoration,
  .pf-search-input input[type="search"]::-webkit-search-cancel-button,
  .pf-search-input input[type="search"]::-webkit-search-results-button,
  .pf-search-input input[type="search"]::-webkit-search-results-decoration {
    display: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
  }

  .pf-search-input input::placeholder {
    color: #8c839d !important;
    opacity: 1 !important;
    text-align: right !important;
  }

  .pf-search-button {
    position: absolute !important;
    left: 8px !important;
    right: auto !important;
    top: 50% !important;
    z-index: 10 !important;

    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;

    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;

    aspect-ratio: 1 / 1 !important;
    padding: 0 !important;
    margin: 0 !important;

    display: grid !important;
    place-items: center !important;

    border: 0 !important;
    border-radius: 999px !important;
    transform: translateY(-50%) !important;

    background: #f43b40 !important;
    color: #fff !important;
    font-size: 0 !important;
    line-height: 1 !important;

    overflow: hidden !important;
    box-shadow: 0 12px 28px rgba(244, 59, 64, 0.30) !important;
  }

  .pf-search-button::before {
    content: "" !important;
    position: absolute !important;
    width: 15px !important;
    height: 15px !important;
    border: 2.4px solid currentColor !important;
    border-radius: 50% !important;
    top: 13px !important;
    left: 13px !important;
    background: transparent !important;
  }

  .pf-search-button::after {
    content: "" !important;
    position: absolute !important;
    width: 10px !important;
    height: 2.4px !important;
    border-radius: 999px !important;
    background: currentColor !important;
    top: 29px !important;
    left: 27px !important;
    transform: rotate(45deg) !important;
    transform-origin: center !important;
  }
}

@media (max-width: 430px) {
  .pf-search-main {
    height: 56px !important;
  }

  .pf-search-input {
    height: 56px !important;
    min-height: 56px !important;
  }

  .pf-search-input input[type="search"],
  .pf-search-input input {
    padding-right: 16px !important;
    padding-left: 64px !important;
    font-size: 13.5px !important;
  }

  .pf-search-button {
    left: 7px !important;

    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;

    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
  }

  .pf-search-button::before {
    width: 14px !important;
    height: 14px !important;
    top: 12px !important;
    left: 12px !important;
  }

  .pf-search-button::after {
    width: 9px !important;
    top: 28px !important;
    left: 26px !important;
  }
}