/* ════════════════════════════════════════════════════════════════
   804 AVENUE — HOME PAGE (PF-inspired redesign)
   All classes prefixed ph- (property home) to avoid collisions.
════════════════════════════════════════════════════════════════ */

/* ── Shared helpers ─────────────────────────────────────────── */
.section-pad { padding: 64px 0; }
.ph-tag {
  display: inline-block;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.ph-tag--center { display: block; text-align: center; }
.ph-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.18;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.ph-title em { font-style: normal; color: var(--accent); }
.ph-title--center { text-align: center; max-width: 560px; margin: 0 auto 8px; }
.ph-link-all {
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  text-decoration: none;
  align-self: flex-end;
}
.ph-link-all:hover { text-decoration: underline; }
.ph-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-decoration: none;
  transition: all .2s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.ph-btn--primary { background: var(--accent); color: #fff; }
.ph-btn--primary:hover { background: var(--accent-hover); color: #fff; box-shadow: 0 6px 24px var(--accent-glow); }
.ph-btn--outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.ph-btn--outline:hover { background: var(--accent-10); }
.ph-btn--white { background: #fff; color: var(--text-primary); }
.ph-btn--white:hover { background: #f8faff; color: var(--accent); }
.ph-btn--outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.ph-btn--outline-white:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* ─────────────────────────────────────────────────────────────
   HERO  — overflow:hidden is safe; search card is OUTSIDE
───────────────────────────────────────────────────────────── */
.ph-hero {
  position: relative;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 72px;
  overflow: hidden;
}
.ph-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.ph-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.52) saturate(1.1);
  animation: kenBurns 32s ease-in-out infinite alternate;
}
@keyframes kenBurns { 0%{transform:scale(1)} 100%{transform:scale(1.06)} }

/* ── Slideshow variant ─────────────────────────────────────── */
.ph-hero__bg--slides { overflow: hidden; }
.ph-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}
.ph-hero__slide--active { opacity: 1; }
.ph-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.52) saturate(1.1);
  animation: kenBurns 28s ease-in-out infinite alternate;
}
.ph-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8,15,35,.2) 0%, rgba(8,15,35,.68) 100%);
}
.ph-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  padding: 0 16px;
}
.ph-hero__eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  padding: 6px 18px;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.92);
  margin-bottom: 22px;
}
.ph-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 32px rgba(0,0,0,.35);
}
.ph-hero__hl {
  background: linear-gradient(135deg, var(--accent), var(--cyan, #06b6d4));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ph-hero__sub {
  font-size: clamp(.85rem, 1.4vw, .98rem);
  color: rgba(255,255,255,.85);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}
.ph-hero__ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ── Search wrapper — sits between hero & stats, pulled up ── */
.ph-search-wrap {
  position: relative;
  z-index: 20;
  /* pull the card up so it overlaps the bottom of the hero */
  margin-top: -72px;
  padding: 0 20px;
}

/* Ghost-demoted Properties link below the hero quote widget (Phase 1) */
.ph-hero__ghost {
  text-align: center;
  margin: 18px auto 0;
  font-size: .9rem;
  color: rgba(15, 23, 42, .65);
}
.ph-hero__ghost a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.ph-hero__ghost a:hover { text-decoration: underline; }

/* Search card — now in normal document flow */
.ph-search {
  max-width: 1060px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(8,15,35,.18), 0 1px 3px rgba(8,15,35,.08);
  overflow: visible;
}
.ph-search__tabs {
  display: flex;
  border-bottom: 1px solid #e5e7eb;
  padding: 0 6px;
}
.ph-search__tab {
  flex: 0 0 auto;
  padding: 14px 22px;
  font-size: .75rem;
  font-weight: 600;
  color: #6b7280;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all .18s ease;
  letter-spacing: .02em;
  margin-bottom: -1px;
}
.ph-search__tab:hover { color: var(--accent); }
.ph-search__tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 700;
}
.ph-search__form { padding: 16px 18px 18px; }
.ph-search__fields {
  display: flex;
  align-items: center;
  gap: 0;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: visible;
}
.ph-search__field {
  flex: 1;
  min-width: 120px;
  padding: 12px 18px;
}
.ph-search__field--wide { flex: 2; }
.ph-search__sep {
  width: 1px;
  height: 36px;
  background: #e5e7eb;
  flex-shrink: 0;
}
.ph-search__label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 4px;
}
.ph-search__input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: .9rem;
  color: var(--text-primary, #111827);
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
}
.ph-search__input::placeholder { color: #9ca3af; }
.ph-search__dd-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  cursor: pointer;
  font-size: .9rem;
  color: var(--text-primary, #111827);
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  padding: 0;
}
.ph-search__dd-val { flex: 1; text-align: left; }
.ph-search__dd-chev { flex-shrink: 0; color: #9ca3af; }
.ph-search__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 28px;
  height: 52px;
  background: var(--accent);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  border: none;
  /* Match the .ph-search__fields container's 10px radius (was 8px → caused
     a visible 2px notch at the top-right / bottom-right corners). */
  border-radius: 0 10px 10px 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s ease, box-shadow .18s ease;
  flex-shrink: 0;
}
.ph-search__btn:hover { background: var(--accent-hover); box-shadow: 0 4px 20px var(--accent-glow); }

/* ── Hero Tom Select overrides ── */
/* Make the hero selects look like the plain location input — no box, just text */
.ph-search .ts-wrapper.single {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.ph-search .ts-control {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-height: unset !important;
  height: auto !important;
  font-size: .9rem !important;
  color: #111827 !important;
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif) !important;
  cursor: pointer;
  gap: 6px;
  line-height: 1.4;
  display: flex;
  align-items: center;
}
.ph-search .ts-control:after { display: none !important; } /* hide Tom Select chevron */
/* Custom chevron via label pseudo */
.ph-search .ph-search__field .ts-wrapper::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
}
.ph-search .ts-wrapper { position: relative; }
.ph-search .ts-control .item {
  font-size: .9rem !important;
  color: #111827 !important;
  background: none !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.4;
}
.ph-search .ts-control input {
  font-size: .9rem !important;
  color: #111827 !important;
}
/* The floating dropdown — keep it clean */
.ph-search-ts-drop.ts-dropdown,
body > .ts-dropdown {
  border-radius: 12px !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 16px 48px rgba(8,15,35,.14) !important;
  z-index: 9999 !important;
  background: #fff !important;
  margin-top: 4px !important;
  overflow: hidden;
}
body > .ts-dropdown .ts-dropdown-content {
  max-height: 260px;
  overflow-y: auto;
  padding: 4px 0;
}
body > .ts-dropdown .option {
  padding: 10px 16px;
  font-size: .88rem;
  color: #374151;
  border-radius: 6px;
  margin: 2px 4px;
}
body > .ts-dropdown .option:hover,
body > .ts-dropdown .option.active { background: var(--accent-10); color: var(--accent); }
body > .ts-dropdown .option.selected { font-weight: 600; color: var(--accent); background: var(--accent-10); }

/* ─────────────────────────────────────────────────────────────
   STATS BAR
───────────────────────────────────────────────────────────── */
.ph-stats {
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  padding: 48px 0 40px;
}
.ph-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.ph-stats__num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--cyan, #06b6d4));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}
.ph-stats__label {
  font-size: .7rem;
  font-weight: 500;
  color: #6b7280;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ─────────────────────────────────────────────────────────────
   APP STRIP
───────────────────────────────────────────────────────────── */
.ph-app {
  background: #0f172a;
  padding: 80px 0;
  overflow: hidden;
}
.ph-app__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.ph-app__tag {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.ph-app__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.12;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}
.ph-app__hl {
  background: linear-gradient(135deg, var(--accent), var(--cyan, #06b6d4));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ph-app__sub { font-size: .95rem; color: rgba(255,255,255,.65); line-height: 1.75; margin-bottom: 28px; }
.ph-app__features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ph-app__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
  color: rgba(255,255,255,.8);
}
.ph-app__feat-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.ph-app__badges { display: flex; gap: 12px; flex-wrap: wrap; }
.ph-app__badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 10px 18px;
  color: #fff;
  text-decoration: none;
  transition: background .2s ease;
}
.ph-app__badge:hover { background: rgba(255,255,255,.12); color: #fff; }
.ph-app__badge span { display: flex; flex-direction: column; }
.ph-app__badge small { font-size: .62rem; opacity: .7; }
.ph-app__badge strong { font-size: .88rem; font-weight: 700; }

/* Phone mockup */
.ph-app__visual { display: flex; align-items: center; justify-content: center; gap: 32px; }
.ph-app__phone-wrap { display: flex; align-items: flex-end; gap: 24px; }
.ph-app__phone {
  width: 230px;
  min-height: 420px;
  background: #1e293b;
  border-radius: 36px;
  padding: 16px;
  border: 2px solid rgba(255,255,255,.1);
  box-shadow: 0 32px 64px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.05);
}
.ph-app__phone-inner { background: #0f172a; border-radius: 26px; overflow: hidden; height: 100%; min-height: 388px; }
.ph-app__phone-bar { height: 28px; background: #1e293b; display: flex; align-items: center; justify-content: center; gap: 6px; }
.ph-app__phone-bar::before { content:''; width: 56px; height: 6px; background: #334155; border-radius: 4px; }
.ph-app__phone-screen { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.ph-app__phone-card { border-radius: 12px; overflow: hidden; background: #1e293b; }
.ph-app__phone-img { height: 72px; }
.ph-app__phone-meta { padding: 10px 12px; }
.ph-app__phone-price { display: block; font-size: .78rem; font-weight: 700; color: var(--accent); }
.ph-app__phone-title { font-size: .68rem; color: rgba(255,255,255,.7); margin-top: 2px; }
.ph-app__qr-wrap { text-align: center; }
.ph-app__qr {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  display: inline-block;
  color: #0f172a;
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
}
.ph-app__qr-label { font-size: .65rem; color: rgba(255,255,255,.55); margin-top: 8px; letter-spacing: .06em; }

/* ─────────────────────────────────────────────────────────────
   NEW PROJECTS
───────────────────────────────────────────────────────────── */
.ph-projects { background: #fff; }

/* Project cards */
.ph-proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ph-proj-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  display: block;
  transition: box-shadow .22s ease, transform .22s ease;
}
.ph-proj-card:hover { box-shadow: 0 12px 40px rgba(8,15,35,.1); transform: translateY(-4px); }
.ph-proj-card__img {
  position: relative;
  height: 220px;
  background-size: cover;
  background-position: center;
}
.ph-proj-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.ph-proj-badge:nth-of-type(2) { left: auto; right: 12px; }
.ph-proj-badge--offplan { background: rgba(8,15,35,.75); color: #fff; }
.ph-proj-badge--verified { background: rgba(16,185,129,.85); color: #fff; }
.ph-proj-card__save {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
}
.ph-proj-card__body { padding: 16px 18px 18px; }
.ph-proj-card__price { font-size: .82rem; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.ph-proj-card__title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: #111827; margin-bottom: 8px; }
.ph-proj-card__location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
  color: #6b7280;
  margin-bottom: 8px;
}
.ph-proj-card__meta {
  display: flex;
  gap: 16px;
  font-size: .75rem;
  color: #9ca3af;
  margin-bottom: 12px;
}
.ph-proj-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
}
.ph-proj-card__dev { font-size: .72rem; color: #6b7280; font-weight: 500; }
.ph-proj-card__tag {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-10);
  padding: 3px 8px;
  border-radius: 4px;
}

/* ─────────────────────────────────────────────────────────────
   FEATURED PROPERTIES
───────────────────────────────────────────────────────────── */
.ph-featured { background: #f9fafb; }
.ph-feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
/* Property card styles (matches _PropertyCard partial) */
.ph-prop-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  transition: box-shadow .22s ease, transform .22s ease;
}
.ph-prop-card:hover { box-shadow: 0 12px 40px rgba(8,15,35,.1); transform: translateY(-4px); }
.ph-prop-card__img { position: relative; height: 220px; overflow: hidden; }
.ph-prop-card__img img { width: 100%; height: 100%; object-fit: cover; }
.ph-prop-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ph-prop-badge--sale { background: var(--accent); color: #fff; }
.ph-prop-badge--rent { background: #059669; color: #fff; }
.ph-prop-save {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transition: background .18s ease;
}
.ph-prop-save:hover { background: #fff; color: var(--accent); }
.ph-prop-card__body { padding: 16px 18px 18px; }
.ph-prop-card__price { font-size: .9rem; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.ph-prop-card__title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: #111827; margin-bottom: 8px; }
.ph-prop-card__loc {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .78rem;
  color: #6b7280;
  margin-bottom: 10px;
}
.ph-prop-card__meta {
  display: flex;
  gap: 14px;
  font-size: .75rem;
  color: #9ca3af;
  padding-top: 10px;
  border-top: 1px solid #f3f4f6;
}

/* ─────────────────────────────────────────────────────────────
   SERVICE PROMO CARDS
───────────────────────────────────────────────────────────── */
.ph-promo { background: #fff; }
.ph-promo__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ph-promo__card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
}
.ph-promo__card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .5s ease;
}
.ph-promo__card:hover .ph-promo__card-bg { transform: scale(1.04); }
.ph-promo__card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,15,35,.1) 0%, rgba(8,15,35,.85) 100%);
}
.ph-promo__card--accent::after {
  background: linear-gradient(180deg, rgba(8,15,35,.05) 0%, color-mix(in srgb, var(--accent) 80%, transparent) 100%);
}
.ph-promo__card-content {
  position: relative;
  z-index: 1;
  padding: 36px;
  color: #fff;
}
.ph-promo__card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.ph-promo__card-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.ph-promo__card-sub { font-size: .9rem; opacity: .85; line-height: 1.65; margin-bottom: 20px; }
.ph-promo__card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  font-size: .82rem;
  opacity: .9;
}
.ph-promo__card-btn {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 8px;
  padding: 12px 22px;
  font-size: .8rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: background .2s ease;
}
.ph-promo__card-btn:hover { background: rgba(255,255,255,.28); color: #fff; }

/* ─────────────────────────────────────────────────────────────
   LIST PROPERTY CTA
───────────────────────────────────────────────────────────── */
.ph-list-cta { background: #f9fafb; padding: 80px 0; }
.ph-list-cta__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.ph-list-cta__img-wrap { position: relative; }
.ph-list-cta__img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  box-shadow: 0 24px 64px rgba(8,15,35,.15);
}
.ph-list-cta__qr {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(8,15,35,.15);
}
.ph-list-cta__qr p { font-size: .62rem; font-weight: 600; color: #6b7280; margin: 6px 0 0; letter-spacing: .06em; text-transform: uppercase; }
.ph-list-cta__sub { font-size: .95rem; color: #6b7280; line-height: 1.75; margin: 16px 0 28px; }
.ph-list-cta__checklist { display: grid; gap: 10px; margin-bottom: 32px; }
.ph-list-cta__check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  color: #374151;
  font-weight: 500;
}
.ph-list-cta__check svg { color: #10b981; flex-shrink: 0; }
.ph-list-cta__btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ─────────────────────────────────────────────────────────────
   AGENTS
───────────────────────────────────────────────────────────── */
.ph-agents { background: #fff; }
.ph-agents__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ph-agent-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px;
  text-decoration: none;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.ph-agent-card:hover { box-shadow: 0 8px 32px rgba(8,15,35,.09); border-color: var(--accent); }
.ph-agent-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-10);
  border: 2px solid var(--accent-20);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  overflow: hidden;
}
.ph-agent-card__name {
  font-size: .88rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 2px;
}
.ph-agent-card__badge {
  display: inline-block;
  font-size: .7rem;
  color: #10b981;
  background: rgba(16,185,129,.1);
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 4px;
}
.ph-agent-card__role { font-size: .72rem; color: #9ca3af; margin-bottom: 6px; }
.ph-agent-card__stats { display: flex; gap: 10px; font-size: .72rem; color: #6b7280; }
.ph-agent-card__stats svg { color: #f59e0b; }

/* ─────────────────────────────────────────────────────────────
   GUIDES / INSIGHTS
───────────────────────────────────────────────────────────── */
.ph-guides { background: #f9fafb; }
.ph-guides__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ph-guide-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  display: block;
  transition: box-shadow .2s ease, transform .2s ease;
}
.ph-guide-card:hover { box-shadow: 0 12px 40px rgba(8,15,35,.09); transform: translateY(-3px); }
.ph-guide-card__img {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.ph-guide-card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(8,15,35,.75);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 6px;
}
.ph-guide-card__body { padding: 18px 20px 20px; }
.ph-guide-card__title { font-size: .92rem; font-weight: 700; color: #111827; line-height: 1.45; margin-bottom: 8px; }
.ph-guide-card__date { font-size: .72rem; color: #9ca3af; }

/* ─────────────────────────────────────────────────────────────
   TESTIMONIALS
───────────────────────────────────────────────────────────── */
.ph-testi { background: #fff; }
.ph-testi__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ph-testi-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 22px;
  transition: box-shadow .2s ease;
}
.ph-testi-card:hover { box-shadow: 0 8px 32px rgba(8,15,35,.08); }
.ph-testi-card__stars { display: flex; gap: 3px; color: #f59e0b; margin-bottom: 14px; }
.ph-testi-card__text { font-size: .82rem; color: #374151; line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.ph-testi-card__author { display: flex; align-items: center; gap: 12px; }
.ph-testi-card__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--cyan, #06b6d4));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.ph-testi-card__name { font-size: .88rem; font-weight: 700; color: #111827; }
.ph-testi-card__role { font-size: .75rem; color: #9ca3af; margin-top: 2px; }

/* ─────────────────────────────────────────────────────────────
   CTA BANNER
───────────────────────────────────────────────────────────── */
.ph-cta { background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%); padding: 56px 0; }
.ph-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 40px 44px;
}
.ph-cta__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.ph-cta__sub { font-size: .82rem; color: rgba(255,255,255,.65); margin-bottom: 14px; }
.ph-cta__phone {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--cyan, #06b6d4));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  text-decoration: none;
}
.ph-cta__btns { display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }

/* ─────────────────────────────────────────────────────────────
   FEATURED PROPERTY GRID (home page)
───────────────────────────────────────────────────────────── */
.ph-feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.ph-projects__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.ph-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.ph-filter-tab {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  color: #6b7280;
  cursor: pointer;
  text-decoration: none;
  transition: all .18s ease;
  display: inline-block;
}
.ph-filter-tab:hover { border-color: var(--accent); color: var(--accent); }
.ph-filter-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ─────────────────────────────────────────────────────────────
   SERVICE CARDS  (3-col photo cards)
───────────────────────────────────────────────────────────── */
.ph-services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.ph-service-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 460px;
  display: flex;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .25s ease;
}
.ph-service-card:hover { box-shadow: 0 20px 56px rgba(8,15,35,.18); }
.ph-service-card__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .5s ease;
}
.ph-service-card:hover .ph-service-card__img { transform: scale(1.04); }
.ph-service-card__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,15,35,.55) 0%, rgba(8,15,35,.78) 45%, rgba(8,15,35,.94) 100%),
    linear-gradient(180deg, rgba(8,15,35,.15) 0%, rgba(8,15,35,.15) 100%);
}
.ph-service-card__body {
  position: relative;
  z-index: 1;
  padding: 28px 26px;
  color: #fff;
  width: 100%;
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
  display: flex;
  flex-direction: column;
}
.ph-service-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.ph-service-card__icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.22);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.ph-service-card__icon svg { width: 22px; height: 22px; }
.ph-service-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.ph-service-card__sub {
  font-size: .82rem;
  opacity: .98;
  color: #f3f4f6;
  line-height: 1.65;
  margin-bottom: 16px;
}
.ph-service-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: .8rem;
  opacity: .95;
  color: #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ph-service-card__list li::before { content: '✓  '; }
.ph-service-card__cta {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  margin-top: auto;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 7px;
  padding: 10px 18px;
  font-size: .78rem;
  font-weight: 700;
  transition: background .2s ease;
}
.ph-service-card:hover .ph-service-card__cta { background: rgba(255,255,255,.28); }

/* ─────────────────────────────────────────────────────────────
   ABOUT GRID
───────────────────────────────────────────────────────────── */
.ph-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.ph-about__img {
  position: relative;
}
.ph-about__img img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  box-shadow: 0 24px 64px rgba(8,15,35,.12);
}
.ph-about__img-card {
  position: absolute;
  bottom: 24px;
  left: -24px;
  background: var(--accent);
  color: #fff;
  border-radius: 14px;
  padding: 20px 28px;
  box-shadow: 0 12px 32px var(--accent-glow);
}
.ph-about__img-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}
.ph-about__img-label { font-size: .75rem; font-weight: 600; opacity: .9; }
.ph-about__text {
  font-size: .95rem;
  color: #6b7280;
  line-height: 1.8;
  margin: 16px 0 24px;
}
.ph-about__points { display: flex; flex-direction: column; gap: 10px; }
.ph-about__point {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  color: #374151;
  font-weight: 500;
}
.ph-about__point svg { color: #10b981; flex-shrink: 0; }

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .ph-agents__grid { grid-template-columns: repeat(2, 1fr); }
  .ph-app__features { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .ph-services__grid { grid-template-columns: 1fr 1fr; }
  .ph-feat-grid      { grid-template-columns: repeat(2, 1fr); }
  .ph-about__grid    { grid-template-columns: 1fr; gap: 40px; }
  .ph-about__img-card { left: 0; }
}
@media (max-width: 768px) {
  .ph-testi__grid { grid-template-columns: 1fr 1fr; }
  .ph-stats__grid { grid-template-columns: repeat(2, 1fr); }
  .ph-cta__inner  { padding: 28px 22px; flex-direction: column; text-align: center; }
  .ph-cta__btns   { flex-direction: row; justify-content: center; }
}
@media (max-width: 640px) {
  .ph-hero         { padding: 80px 16px 60px; min-height: 360px; }
  .ph-hero__ctas   { flex-direction: column; align-items: center; }
  .ph-search__fields { flex-direction: column; background: transparent; border: none; border-radius: 0; }
  .ph-search__field  { border: 1px solid #e5e7eb; border-radius: 8px; background: #f9fafb; margin-bottom: 6px; }
  .ph-search__sep    { display: none; }
  .ph-search__btn    { width: 100%; border-radius: 8px; height: 48px; justify-content: center; margin-top: 4px; }
  .ph-services__grid { grid-template-columns: 1fr; }
  .ph-service-card   { min-height: 320px; }
  .ph-feat-grid      { grid-template-columns: 1fr; }
  .ph-testi__grid    { grid-template-columns: 1fr; }
  .ph-stats__grid    { grid-template-columns: 1fr 1fr; }
  .ph-about__img img { height: 280px; }
  .ph-cta__inner     { padding: 24px; }
  .section-pad       { padding: 44px 0; }
}

/* ═════════════════════════════════════════════════════════════
   CHANNEL PARTNERS — logo card grid
═════════════════════════════════════════════════════════════ */
.ph-partners__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}
.ph-partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 16px;
  padding: 28px 18px;
  min-height: 120px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  filter: grayscale(.2);
}
.ph-partner-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent, #c9a961);
  box-shadow: 0 14px 30px -16px rgba(8, 15, 35, .25);
  filter: none;
}
/* White-on-transparent logos (e.g. RDK) — invert to dark so they show on the white card */
.ph-partner-card__logo--invert {
  filter: brightness(0);
  opacity: .75;
}
.ph-partner-card:hover .ph-partner-card__logo--invert {
  opacity: 1;
}
.ph-partner-card__logo {
  max-width: 100%;
  max-height: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  opacity: .85;
  transition: opacity .25s ease, transform .25s ease;
}
.ph-partner-card:hover .ph-partner-card__logo {
  opacity: 1;
  transform: scale(1.04);
}
/* Keep the old text-badge styles around for any future fallback usage. */
.ph-partner-card__name {
  font-family: var(--font-display, "Playfair Display", Georgia, serif);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: #0b1730;
  line-height: 1.05;
}
.ph-partner-card__sub {
  margin-top: 4px;
  font-family: var(--font-nav, "Inter", system-ui, sans-serif);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #64748b;
}
@media (max-width: 900px) {
  .ph-partners__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .ph-partners__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ph-partner-card   { padding: 20px 12px; min-height: 96px; }
  .ph-partner-card__name { font-size: 1.25rem; }
}

/* ═════════════════════════════════════════════════════════════
   HERO SEARCH WIDGET v2 — modern redesign
   (overrides legacy .ph-search rules above; scoped to .ph-search--v2)
═════════════════════════════════════════════════════════════ */
.ph-search.ph-search--v2 {
  max-width: 1080px;
  background: #fff;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, .06);
  box-shadow:
    0 30px 70px -20px rgba(8, 15, 35, .25),
    0 8px 24px -8px rgba(8, 15, 35, .12),
    0 1px 0 rgba(255, 255, 255, .8) inset;
  padding: 14px 14px 0;
  overflow: visible;
}

/* ── Real Estate widget — compact header (title + Buy/Rent toggle) ── */
.ph-search--re { max-width: 980px; padding: 12px 14px 0; }
.ph-search__re-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 2px 4px 12px;
  flex-wrap: wrap;
}
.ph-search__re-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-nav, "Inter", system-ui, sans-serif);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #6b7280;
}
.ph-search__re-title-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent, #f59e0b) 0%, #ff7a18 100%);
  color: #fff;
  box-shadow: 0 4px 10px -3px var(--accent-glow, rgba(245, 158, 11, .55));
}
.ph-search__re-toggle {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: #f3f4f6;
  border-radius: 10px;
}
.ph-search__re-toggle-btn {
  border: none;
  background: transparent;
  padding: 7px 18px;
  font-family: var(--font-nav, "Inter", system-ui, sans-serif);
  font-size: .78rem;
  font-weight: 600;
  color: #4b5563;
  border-radius: 8px;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease;
  letter-spacing: .01em;
}
.ph-search__re-toggle-btn:hover:not(.active) { color: #111827; background: rgba(255, 255, 255, .55); }
.ph-search__re-toggle-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent, #f59e0b) 0%, #ff7a18 100%);
  box-shadow:
    0 4px 12px -3px var(--accent-glow, rgba(245, 158, 11, .55)),
    0 1px 0 rgba(255, 255, 255, .25) inset;
  font-weight: 700;
}
.ph-search__re-toggle-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Tighten the fields row inside the Real Estate widget */
.ph-search--re .ph-search__form { padding: 0 4px 12px; }
.ph-search--re .ph-search__field { height: 58px; min-height: 58px; max-height: 58px; }
.ph-search--re .ph-search__trust { padding: 8px 6px 12px; }

@media (max-width: 560px) {
  .ph-search__re-head { gap: 10px; padding-bottom: 10px; }
  .ph-search__re-toggle-btn { padding: 6px 14px; font-size: .74rem; }
}

/* ── Tabs: pill-chip selector ────────────────────────────── */
.ph-search--v2 .ph-search__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  border: none;
  background: #f3f4f6;
  border-radius: 14px;
  margin: 0 0 14px;
}
.ph-search--v2 .ph-search__tab {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .005em;
  text-transform: none;
  color: #4b5563;
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
  margin: 0;
  white-space: nowrap;
  position: relative;
}
.ph-search--v2 .ph-search__tab-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(15, 23, 42, .06);
  color: #6b7280;
  flex-shrink: 0;
  transition: background .18s ease, color .18s ease;
}
.ph-search--v2 .ph-search__tab-ico svg { display: block; }
.ph-search--v2 .ph-search__tab-txt { line-height: 1; }

.ph-search--v2 .ph-search__tab:hover:not(.active) {
  color: #111827;
  background: rgba(255, 255, 255, .55);
}
.ph-search--v2 .ph-search__tab:hover:not(.active) .ph-search__tab-ico {
  background: rgba(15, 23, 42, .1);
  color: #374151;
}
.ph-search--v2 .ph-search__tab.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent) 0%, #ff7a18 100%);
  box-shadow:
    0 6px 16px -4px var(--accent-glow, rgba(245, 158, 11, .55)),
    0 1px 0 rgba(255, 255, 255, .25) inset;
  font-weight: 700;
}
.ph-search--v2 .ph-search__tab.active .ph-search__tab-ico {
  background: rgba(255, 255, 255, .22);
  color: #ffffff;
}

/* Focus ring — keyboard a11y */
.ph-search--v2 .ph-search__tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Form area ───────────────────────────────────────────── */
.ph-search--v2 .ph-search__form { padding: 4px 4px 14px; }

.ph-search--v2 .ph-search__fields {
  display: flex;
  align-items: stretch;
  gap: 10px;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
}

.ph-search--v2 .ph-search__field {
  flex: 1 1 0;
  min-width: 0;
  /* EXACT height — not min-height. Tom Select wrappers and native number
     inputs have slightly different intrinsic heights, so we lock the
     field box and let the body vertically center its content. This
     guarantees every panel and the CTA render at identical 64px. */
  height: 64px;
  min-height: 64px;
  max-height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
}
.ph-search--v2 .ph-search__field--wide { flex: 1.6 1 0; }

.ph-search--v2 .ph-search__field:hover {
  border-color: #d1d5db;
  background: #ffffff;
}
.ph-search--v2 .ph-search__field:focus-within {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 4px var(--accent-08, rgba(245, 158, 11, .12));
}

.ph-search--v2 .ph-search__field-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  max-height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-10, rgba(245, 158, 11, .12)) 0%, rgba(255, 255, 255, .6) 100%);
  color: var(--accent);
  flex-shrink: 0;
}
.ph-search--v2 .ph-search__field-ico svg { display: block; }

.ph-search--v2 .ph-search__field-body {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertically centre regardless of child height variance */
  gap: 2px;
  overflow: hidden;
}

.ph-search--v2 .ph-search__label {
  display: block;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #9ca3af;
  margin: 0;
}

.ph-search--v2 .ph-search__input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: .92rem;
  font-weight: 600;
  color: #0f172a;
  padding: 0;
  margin: 0;
  font-family: inherit;
  line-height: 22px;
  height: 22px; /* lock visual height — prevents native input vs Tom Select wrapper drift */
  -webkit-appearance: none;
  -moz-appearance: textfield; /* kill number-input spinner padding in Firefox */
  appearance: none;
  box-sizing: border-box;
}
.ph-search--v2 .ph-search__input::placeholder { color: #9ca3af; font-weight: 500; }
.ph-search--v2 input[type="number"].ph-search__input::-webkit-outer-spin-button,
.ph-search--v2 input[type="number"].ph-search__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Native select chevron */
.ph-search--v2 select.ph-search__input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  background-size: 14px 14px;
}

/* Hide the legacy vertical separator inside v2 */
.ph-search--v2 .ph-search__sep { display: none; }

/* ── CTA button ──────────────────────────────────────────── */
.ph-search--v2 .ph-search__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 26px;
  height: 64px;
  min-height: 64px;
  max-height: 64px;
  box-sizing: border-box;
  align-self: center; /* don't stretch — keep the locked 64px */
  background: linear-gradient(135deg, var(--accent) 0%, #ff7a18 100%);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .015em;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow:
    0 8px 18px -4px var(--accent-glow, rgba(245, 158, 11, .55)),
    0 1px 0 rgba(255, 255, 255, .25) inset;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
  position: relative;
  overflow: hidden;
}
.ph-search--v2 .ph-search__btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, .18) 50%, transparent 100%);
  transform: translateX(-110%);
  transition: transform .55s ease;
  pointer-events: none;
}
.ph-search--v2 .ph-search__btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 28px -6px var(--accent-glow, rgba(245, 158, 11, .65)),
    0 1px 0 rgba(255, 255, 255, .25) inset;
  filter: brightness(1.04);
}
.ph-search--v2 .ph-search__btn:hover::before { transform: translateX(110%); }
.ph-search--v2 .ph-search__btn:active { transform: translateY(0); }
.ph-search--v2 .ph-search__btn svg { transition: transform .2s ease; }
.ph-search--v2 .ph-search__btn:hover svg { transform: translateX(3px); }
.ph-search--v2 .ph-search__btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* ── Trust strip ─────────────────────────────────────────── */
.ph-search--v2 .ph-search__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 12px 8px 14px;
  border-top: 1px dashed rgba(15, 23, 42, .08);
  margin-top: 4px;
  font-size: .76rem;
  color: #6b7280;
  font-weight: 500;
}
.ph-search--v2 .ph-search__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ph-search--v2 .ph-search__trust-item svg { color: var(--accent); flex-shrink: 0; }
.ph-search--v2 .ph-search__trust-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #d1d5db;
}

/* ── Tom Select integration overrides for v2 ─────────────── */
.ph-search--v2 .ph-search__field .ts-wrapper {
  position: relative;
  width: 100%;
  height: 22px !important;       /* lock to same height as native inputs */
  min-height: 22px !important;
  max-height: 22px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  flex-direction: row !important; /* override legacy flex-direction:column */
  box-shadow: none !important;
}
.ph-search--v2 .ph-search__field .ts-control {
  border: none !important;
  background: transparent !important;
  background-image: none !important;      /* kill Bootstrap5 TomSelect caret */
  box-shadow: none !important;
  padding: 0 18px 0 0 !important;  /* room for the chevron drawn by ::after */
  margin: 0 !important;
  height: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;
  font-size: .92rem !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  font-family: inherit !important;
  line-height: 22px !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  cursor: pointer;
}
/* Kill TomSelect's ::after and ::before carets (all variants) */
.ph-search--v2 .ts-wrapper .ts-control::after,
.ph-search--v2 .ts-wrapper .ts-control::before,
.ph-search--v2 .ts-wrapper.single .ts-control::after,
.ph-search--v2 .ts-wrapper.single:not(.input-active) .ts-control::after {
  display: none !important;
  content: none !important;
}
/* Kill background-image caret on every TomSelect state inside v2 hero */
.ph-search--v2 .ts-wrapper.single .ts-control,
.ph-search--v2 .ts-wrapper.single:not(.input-active) .ts-control,
.ph-search--v2 .ts-wrapper.single.input-active .ts-control {
  background-image: none !important;
}
.ph-search--v2 .ph-search__field .ts-control .item {
  font-size: .92rem !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  background: none !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 22px !important;
  /* prevent text from being clipped by the 18px chevron padding */
  flex: 1 1 0 !important;
  min-width: 0 !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}
/* Remove Bootstrap5 focus ring (yellow/orange glow) on TomSelect in v2 hero */
.ph-search--v2 .ts-wrapper.focus .ts-control,
.ph-search--v2 .ts-wrapper:focus-within .ts-control,
.ph-search--v2 .ts-wrapper .ts-control:focus,
.ph-search--v2 .ts-wrapper.single.focus .ts-control {
  box-shadow: none !important;
  border-color: transparent !important;
  outline: none !important;
}
.ph-search--v2 .ts-wrapper.focus,
.ph-search--v2 .ts-wrapper:focus-within {
  box-shadow: none !important;
  outline: none !important;
}
/* When dropdown opens (input-active): keep the selected item text visible
   and shrink the search input to 0 so it doesn't push/hide the value text */
.ph-search--v2 .ts-wrapper.single.input-active .ts-control .item {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  position: static !important;
  max-width: calc(100% - 18px) !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}
.ph-search--v2 .ts-wrapper.single.input-active .ts-control input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.ph-search--v2 .ph-search__field .ts-control input {
  font-size: .92rem !important;
  height: 22px !important;
  line-height: 22px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}
.ph-search--v2 .ph-search__field .ts-wrapper::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
}

/* ── Responsive — tablet ─────────────────────────────────── */
@media (max-width: 900px) {
  .ph-search.ph-search--v2 { padding: 12px 12px 0; border-radius: 18px; }
  .ph-search--v2 .ph-search__tabs { gap: 4px; padding: 3px; }
  .ph-search--v2 .ph-search__tab { padding: 10px 10px; font-size: .78rem; gap: 6px; }
  .ph-search--v2 .ph-search__tab-ico { width: 20px; height: 20px; border-radius: 6px; }
  .ph-search--v2 .ph-search__tab-ico svg { width: 13px; height: 13px; }
  .ph-search--v2 .ph-search__fields {
    flex-wrap: wrap;
  }
  .ph-search--v2 .ph-search__field,
  .ph-search--v2 .ph-search__field--wide { flex: 1 1 calc(50% - 5px); }
  .ph-search--v2 .ph-search__btn { flex: 1 1 100%; min-height: 54px; }
}

/* ── Responsive — mobile ─────────────────────────────────── */
@media (max-width: 640px) {
  .ph-search-wrap { margin-top: -40px; padding: 0 14px; }
  .ph-search.ph-search--v2 { padding: 10px 10px 0; border-radius: 16px; }

  /* Tabs: icons-only on the smallest screens with hide-text below 480 */
  .ph-search--v2 .ph-search__tabs {
    gap: 2px;
    padding: 3px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .ph-search--v2 .ph-search__tabs::-webkit-scrollbar { display: none; }
  .ph-search--v2 .ph-search__tab {
    padding: 9px 10px;
    font-size: .76rem;
    flex: 1 0 auto;
  }

  /* Override legacy 640px rules with !important since legacy uses bare selectors */
  .ph-search--v2 .ph-search__fields {
    flex-direction: column !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    gap: 8px;
  }
  .ph-search--v2 .ph-search__field,
  .ph-search--v2 .ph-search__field--wide {
    flex: 1 1 100% !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 12px !important;
    background: #f9fafb !important;
    margin-bottom: 0 !important;
    padding: 11px 14px !important;
    gap: 10px;
  }
  .ph-search--v2 .ph-search__field-ico { width: 34px; height: 34px; }
  .ph-search--v2 .ph-search__btn {
    width: 100% !important;
    border-radius: 12px !important;
    min-height: 52px !important;
    height: auto !important;
    margin-top: 4px !important;
    justify-content: center !important;
  }

  .ph-search--v2 .ph-search__trust { font-size: .72rem; gap: 6px 10px; padding: 10px 6px 12px; }
}

@media (max-width: 420px) {
  .ph-search--v2 .ph-search__tab-txt { display: none; }
  .ph-search--v2 .ph-search__tab { padding: 9px 8px; }
  .ph-search--v2 .ph-search__tab-ico { width: 26px; height: 26px; }
  .ph-search--v2 .ph-search__tab-ico svg { width: 15px; height: 15px; }
}
