:root {
  --home-bg: #edf4fb;
  --home-card: #ffffff;
  --home-blue: #0f5fe1;
  --home-blue-deep: #0a3e9d;
  --home-dark: #0a1f42;
  --home-soft: #eef5ff;
  --home-line: #dfeaf5;
  --home-muted: #5f738d;
  --home-gold: #ffcc4d;
  --home-shadow: 0 24px 50px rgba(20, 34, 60, 0.08);
}

body {
  background: var(--home-bg);
}

main {
  padding-bottom: 30px;
}

.home-shell {
  max-width: 1340px;
  margin: 18px auto 0;
  padding: 0 18px 60px;
}

.home-hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(238,245,255,0.9));
  border-radius: 24px;
  padding: 18px 18px 12px;
  box-shadow: none;
}

.hero-copy-block {
  padding: 12px 12px 12px 20px;
}

.brand-mark-inline {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #1d7af8, #0d3d8e);
  margin-bottom: 18px;
  box-shadow: 0 12px 26px rgba(18, 95, 211, 0.25);
}

.hero-copy-block h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.1rem, 5vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: #0b2d67;
  font-weight: 800;
}

.hero-copy-block h1 span {
  color: #1d73ec;
}

.hero-copy-block p {
  margin-top: 18px;
  max-width: 470px;
  color: #5a6d89;
  font-size: 1.06rem;
  line-height: 1.55;
}

.hero-visual {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border-radius: 20px;
  background: #dfeaf7;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-visual-badge {
  position: absolute;
  right: 22px;
  top: 24px;
  z-index: 2;
  max-width: 200px;
  background: rgba(255,255,255,0.9);
  border-radius: 18px;
  padding: 18px 20px;
  text-align: center;
  box-shadow: 0 16px 28px rgba(0,0,0,0.12);
}

.hero-visual-badge strong {
  display: block;
  font-size: 1.9rem;
  color: #0d2344;
  font-weight: 800;
}

.hero-visual-badge span,
.hero-visual-badge small {
  display: block;
  color: #0d2344;
  line-height: 1.3;
}

.hero-visual-badge span {
  font-size: 1.05rem;
  margin-top: 2px;
}

.hero-visual-badge small {
  margin-top: 12px;
  font-size: 0.9rem;
}

.home-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  background: rgba(255,255,255,0.9);
  border: 1px solid #dfeaf5;
  border-radius: 18px;
  padding: 9px 12px 9px 16px;
  box-shadow: 0 10px 24px rgba(15, 41, 76, 0.08);
}

.search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-height: 64px;
  border-radius: 12px;
  background: #fff;
  padding: 0 12px 0 16px;
  border: 1px solid #dfeaf5;
}

.search-icon {
  font-size: 1.5rem;
  color: #1169e7;
}

.search-field input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: #0d2344;
  font-size: 1.04rem;
}

.home-search-bar .button {
  min-height: 58px;
  padding: 0 30px;
  border-radius: 12px;
  font-size: 1rem;
  background: linear-gradient(135deg, #2d80ff, #0d5ad8);
  border: none;
}

.popular-searches {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.search-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #dfeaf5;
  color: #183b70;
  font-size: 0.82rem;
  font-weight: 600;
}

.category-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.category-card {
  display: block;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dfeaf5;
  border-radius: 18px;
  box-shadow: 0 18px 28px rgba(14, 37, 70, 0.05);
}

.category-card img {
  width: 100%;
  height: 182px;
  object-fit: cover;
  display: block;
}

.category-card-content {
  padding: 16px 16px 18px;
}

.category-card-content h3 {
  margin: 0;
  color: #0d2344;
  font-size: 1.1rem;
  font-weight: 800;
}

.category-card-content p {
  margin: 6px 0 0;
  color: #5e718e;
  font-size: 0.84rem;
}

.spotlight-section,
.popular-section {
  margin-top: 52px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-kicker {
  margin: 0 0 8px;
  color: #0d5ad8;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0;
  color: #0e294c;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 3vw, 3.2rem);
  line-height: 1.1;
}

.section-head a {
  color: #0d5ad8;
  font-size: 0.98rem;
  font-weight: 800;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid #dfeaf5;
  background: #ffffff;
  color: #23446e;
  font-weight: 700;
  font-size: 0.9rem;
}

.filter-pill.active {
  background: #0d5ad8;
  border-color: #0d5ad8;
  color: #fff;
}

.home-property-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.listing-card {
  background: #fff;
  border: 1px solid #dfeaf5;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 25px rgba(15, 31, 58, 0.05);
}

.listing-image-wrap {
  position: relative;
  height: 210px;
  overflow: hidden;
}

.listing-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.listing-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.listing-badge.sale {
  background: #f7db72;
  color: #45330e;
}

.listing-badge.rent {
  background: #c7edff;
  color: #14588f;
}

.listing-badge.construction {
  background: #d8efbf;
  color: #1d5a33;
}

.heart-mark {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.8);
  color: #516781;
  font-size: 1.2rem;
}

.listing-copy {
  padding: 16px 16px 18px;
}

.listing-copy h3 {
  margin: 0;
  font-size: 1.08rem;
  color: #0e294c;
  font-weight: 800;
}

.listing-price {
  margin-top: 12px;
  font-size: 1.08rem;
  color: #103477;
  font-weight: 800;
}

.listing-location {
  margin-top: 6px;
  color: #5f738d;
  font-size: 0.85rem;
}

.listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  color: #5f738d;
  font-size: 0.78rem;
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.location-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 168px;
  border-radius: 18px;
  border: 1px solid #dfeaf5;
  box-shadow: 0 14px 28px rgba(17, 38, 70, 0.06);
}

.location-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.location-card span,
.location-card em {
  position: absolute;
  left: 14px;
  z-index: 2;
  color: #fff;
}

.location-card span {
  bottom: 20px;
  font-weight: 700;
  font-size: 1rem;
}

.location-card em {
  right: 14px;
  bottom: 14px;
  font-size: 1.3rem;
  font-style: normal;
}

.location-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,20,37,0.56), rgba(8,20,37,0.1));
}

.why-choose-wrap {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  background: linear-gradient(135deg, #0a1f42, #0f356d);
  border-radius: 24px;
  padding: 30px 30px;
  color: #fff;
}

.why-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.3rem, 3vw, 3.2rem);
  line-height: 1.05;
  color: #fff;
}

.why-copy ul {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
}

.why-copy li {
  display: grid;
  gap: 6px;
}

.why-copy strong {
  font-size: 1.08rem;
}

.why-copy span {
  color: rgba(255,255,255,0.74);
  font-size: 0.9rem;
}

.why-cta {
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cta-label {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}

.why-cta p {
  margin: 14px 0 18px;
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
}

.why-cta .button {
  align-self: flex-start;
  background: #fff;
  color: #0a3e9d;
  border-color: #fff;
}

.spiritual-banner {
  margin-top: 26px;
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(18, 35, 62, 0.24), rgba(18, 35, 62, 0.48)),
    url('https://images.unsplash.com/photo-1512453979798-5ea266f8880c?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  padding: 28px 26px;
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 24px;
  align-items: end;
}

.banner-copy {
  max-width: 590px;
  padding: 12px 0;
}

.section-kicker.light {
  color: rgba(255,255,255,0.88);
}

.banner-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 3vw, 3.5rem);
  line-height: 1.08;
  color: #fff;
}

.primary-light {
  margin-top: 22px;
  background: linear-gradient(135deg, #2f81ff, #0f5fe1);
  border-color: transparent;
}

.banner-types {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-self: end;
}

.type-card {
  min-height: 170px;
  background: rgba(255,255,255,0.9);
  border-radius: 18px;
  padding: 18px 16px;
  display: grid;
  align-content: end;
  gap: 8px;
}

.mini-icon {
  font-size: 2rem;
}

.type-card strong {
  color: #0e294c;
  font-size: 1.05rem;
}

.type-card small {
  color: #5f738d;
  line-height: 1.45;
}

@media (max-width: 1100px) {
  .home-hero { grid-template-columns: 1fr; }
  .hero-visual { min-height: 360px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .location-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .why-choose-wrap,
  .spiritual-banner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .home-shell { padding: 0 14px 50px; }
  .home-hero { padding: 10px 10px 14px; }
  .brand-mark-inline { width: 44px; height: 44px; font-size: 21px; }
  .hero-copy-block { padding: 8px 8px 15px; }
  .hero-copy-block p { font-size: 0.95rem; }
  .hero-visual { min-height: 270px; }
  .hero-visual-badge { right: 14px; top: 14px; padding: 12px 16px; }
  .home-search-bar { flex-direction: column; padding: 12px; }
  .home-search-bar .button { width: 100%; }
  .search-field { width: 100%; }
  .category-grid,
  .home-property-grid,
  .location-grid,
  .why-copy ul,
  .banner-types { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .listing-image-wrap { height: 170px; }
  .why-choose-wrap { padding: 22px 18px; }
  .spiritual-banner { min-height: 330px; padding: 20px 18px; }
  .banner-copy h2 { font-size: 2.25rem; }
}

:root {
  --home-bg: #f2f7fc;
  --home-card: #fff;
  --home-blue: #0789e8;
  --home-blue-deep: #0052ad;
  --home-dark: #061e49;
  --home-soft: #e8f2fb;
  --home-line: #d7e4f1;
  --home-muted: #5c6f8b;
  --home-gold: #86c9fb;
  --home-shadow: 0 18px 45px rgba(6, 30, 73, 0.14);
}

body:has(.home-shell) {
  background: var(--home-bg);
}

.home-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px 80px;
}

.home-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 570px;
  overflow: hidden;
  margin: 0 -32px;
  padding: 68px max(48px, calc((100vw - 1280px) / 2));
  color: #fff;
  background: #061e49;
  border-radius: 0;
  isolation: isolate;
}

.hero-visual {
  position: absolute;
  z-index: -2;
  inset: 0;
  min-height: 0;
  border-radius: 0;
  background: #061e49;
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(6, 30, 73, 0.9) 0%, rgba(6, 30, 73, 0.68) 43%, rgba(6, 30, 73, 0.04) 100%), linear-gradient(0deg, rgba(6, 30, 73, 0.32), transparent 55%);
}

.hero-visual img {
  object-position: center 53%;
  animation: home-image-reveal 1.2s ease-out both;
}

.hero-copy-block {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 0;
  animation: home-copy-reveal 0.7s ease-out both;
}

.hero-kicker {
  margin: 0 0 20px;
  color: #a8d9ff;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.hero-copy-block h1 {
  color: #fff;
  font-size: 72px;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy-block h1 span {
  color: #79c2fa;
}

.hero-copy-block > p:not(.hero-kicker) {
  max-width: 430px;
  margin: 22px 0 26px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  line-height: 1.65;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  min-height: 48px;
  padding: 0 17px;
  color: #fff;
  background: #0789e8;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 800;
  transition: background 0.2s, transform 0.2s;
}

.hero-link:hover {
  background: #0052ad;
  transform: translateY(-2px);
}

.hero-caption {
  position: absolute;
  right: 38px;
  bottom: 28px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 11px;
}

.home-search-bar {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: -34px auto 0;
  padding: 10px;
  background: var(--home-card);
  border: 1px solid var(--home-line);
  border-radius: 5px;
  box-shadow: var(--home-shadow);
}

.search-field {
  min-height: 58px;
  border: 0;
  background: transparent;
}

.search-icon {
  color: var(--home-blue);
  font-size: 25px;
}

.search-field input {
  color: var(--home-dark);
  font-size: 15px;
}

.search-field input::placeholder {
  color: #858980;
}

.home-search-bar .button {
  min-height: 54px;
  padding: 0 22px;
  border-radius: 3px;
  background: var(--home-blue);
  font-size: 13px;
}

.home-search-bar .button:hover {
  background: var(--home-blue-deep);
}

.popular-searches {
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 17px auto 0;
}

.popular-label {
  margin-right: 5px;
  color: var(--home-muted);
  font-size: 12px;
  font-weight: 700;
}

.search-chip {
  min-height: 30px;
  padding: 0 11px;
  border-color: var(--home-line);
  border-radius: 3px;
  color: var(--home-dark);
  font-size: 11px;
  transition: border-color 0.2s, color 0.2s;
}

.search-chip:hover {
  border-color: var(--home-blue);
  color: var(--home-blue);
}

.home-section {
  margin-top: 74px;
}

.section-head {
  margin-bottom: 22px;
}

.section-head h2 {
  color: var(--home-dark);
  font-size: 36px;
  line-height: 1.15;
}

.section-kicker {
  color: var(--home-blue);
  font-size: 10px;
  letter-spacing: 1.35px;
}

.section-head > a {
  color: var(--home-blue);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
}

.category-grid {
  gap: 14px;
  margin-top: 0;
}

.category-card {
  position: relative;
  border: 1px solid var(--home-line);
  border-radius: 4px;
  box-shadow: none;
  transition: transform 0.22s, box-shadow 0.22s;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--home-shadow);
}

.category-card img {
  height: 175px;
}

.category-card-content {
  position: relative;
  min-height: 102px;
  padding: 16px 44px 16px 16px;
}

.category-card-content h3 {
  color: var(--home-dark);
  font-size: 16px;
}

.category-card-content p {
  color: var(--home-muted);
  font-size: 12px;
}

.category-arrow {
  position: absolute;
  top: 20px;
  right: 16px;
  color: var(--home-blue);
  font-size: 18px;
}

.spotlight-section,
.popular-section {
  margin-top: 82px;
}

.home-property-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.listing-card {
  color: inherit;
  border: 1px solid var(--home-line);
  border-radius: 4px;
  box-shadow: none;
  transition: transform 0.22s, box-shadow 0.22s;
}

.listing-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--home-shadow);
}

.listing-image-wrap {
  height: 195px;
}

.listing-image-wrap img {
  transition: transform 0.4s;
}

.listing-card:hover .listing-image-wrap img {
  transform: scale(1.035);
}

.listing-badge {
  border-radius: 2px;
}

.listing-badge.sale {
  background: #f3c36d;
  color: #352b1b;
}

.listing-badge.rent {
  background: #c9e7dc;
  color: #204c40;
}

.listing-badge.construction {
  background: #dce8bb;
  color: #39502a;
}

.listing-copy {
  padding: 15px;
}

.listing-copy h3 {
  color: var(--home-dark);
  font-size: 15px;
}

.listing-price {
  color: var(--home-blue);
  font-size: 16px;
}

.listing-location,
.listing-meta {
  color: var(--home-muted);
}

.home-empty-state {
  padding: 30px 0 20px;
  border-top: 1px solid var(--home-line);
}

.home-empty-state h3 {
  margin: 0;
  color: var(--home-dark);
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
}

.home-empty-state > p:not(.section-kicker) {
  max-width: 510px;
  color: var(--home-muted);
}

.home-empty-state .button {
  margin-top: 8px;
  background: var(--home-blue);
  border-color: var(--home-blue);
}

.location-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.location-card {
  min-height: 230px;
  border: 0;
  border-radius: 4px;
  box-shadow: none;
}

.location-card img {
  transition: transform 0.4s;
}

.location-card:hover img {
  transform: scale(1.04);
}

.location-card span {
  bottom: 19px;
  left: 19px;
  font-family: var(--serif);
  font-size: 25px;
}

.location-card em {
  right: 19px;
  bottom: 19px;
}

.why-choose-wrap {
  margin-top: 82px;
  padding: 42px;
  border-radius: 4px;
  background: #061e49;
}

.why-copy h2 {
  font-size: 42px;
}

.why-copy ul {
  gap: 20px 28px;
}

.why-copy li strong {
  font-size: 14px;
}

.why-copy li span {
  font-size: 12px;
}

.why-cta {
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.why-cta .button {
  background: #b9e1ff;
  border-color: #b9e1ff;
  color: #061e49;
}

.home-floating-actions {
  position: fixed;
  z-index: 30;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 9px;
}

.contact-action {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 154px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #fff;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(20, 33, 28, 0.2);
  transition: transform 0.2s, filter 0.2s;
}

.contact-action:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.contact-action svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.contact-whatsapp {
  background: #187b55;
}

.contact-call {
  background: #0052ad;
}

.contact-chat {
  background: #061e49;
}

.contact-action.is-fallback {
  background: #0052ad;
}

.home-chat-panel {
  position: fixed;
  z-index: 29;
  right: 20px;
  bottom: 190px;
  display: flex;
  flex-direction: column;
  width: min(365px, calc(100vw - 32px));
  height: min(510px, calc(100dvh - 225px));
  min-height: 340px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--home-line);
  border-radius: 5px;
  box-shadow: 0 18px 60px rgba(18, 35, 29, 0.24);
  animation: chat-panel-in 0.2s ease-out both;
}

.home-chat-panel[hidden] {
  display: none;
}

.home-chat-header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 16px;
  color: #fff;
  background: #061e49;
}

.chat-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  color: #061e49;
  background: #b9e1ff;
  font-family: var(--serif);
  font-size: 18px;
}

.home-chat-header h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 800;
}

.home-chat-header p {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 10px;
}

.chat-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: auto;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 24px;
}

.chat-messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 16px;
}

.chat-message {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.55;
  animation: chat-message-in 0.18s ease-out both;
}

.chat-message p {
  margin: 0;
}

.chat-message a {
  display: inline-block;
  margin-top: 7px;
  color: var(--home-blue);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bot-message {
  align-self: flex-start;
  color: #293b34;
  background: #edf5fc;
}

.user-message {
  align-self: flex-end;
  color: #fff;
  background: #0052ad;
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 14px 12px;
}

.chat-suggestions button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #cbd6ce;
  border-radius: 3px;
  color: #0052ad;
  background: #fff;
  font-size: 10px;
  font-weight: 700;
}

.chat-suggestions button:hover {
  border-color: #0052ad;
  background: #edf5fc;
}

.chat-form {
  display: flex;
  gap: 8px;
  padding: 11px;
  border-top: 1px solid var(--home-line);
}

.chat-form input {
  min-width: 0;
  min-height: 42px;
  border-color: var(--home-line);
}

.chat-form button {
  width: 44px;
  flex: 0 0 44px;
  border: 0;
  border-radius: 3px;
  color: #fff;
  background: var(--home-blue);
  font-size: 18px;
}

@keyframes home-image-reveal {
  from { opacity: 0.55; transform: scale(1.035); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes home-copy-reveal {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes chat-panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes chat-message-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .home-property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-hero { min-height: 520px; }
}

@media (max-width: 700px) {
  .home-shell { padding: 0 16px 52px; }
  .home-hero {
    min-height: 480px;
    margin: 0 -16px;
    padding: 45px 24px 60px;
    align-items: flex-end;
  }
  .hero-visual::after {
    background: linear-gradient(0deg, rgba(6, 30, 73, 0.9), rgba(6, 30, 73, 0.08) 90%);
  }
  .hero-copy-block h1 { font-size: 49px; }
  .hero-copy-block > p:not(.hero-kicker) { max-width: 350px; font-size: 14px; }
  .hero-kicker { font-size: 9px; }
  .hero-caption { right: 16px; bottom: 15px; font-size: 9px; }
  .home-search-bar { flex-direction: row; gap: 4px; margin-top: -25px; padding: 7px; }
  .search-field { min-height: 46px; padding: 0 6px; }
  .search-field input { font-size: 12px; }
  .home-search-bar .button { min-height: 44px; padding: 0 10px; font-size: 10px; white-space: nowrap; }
  .popular-searches { justify-content: flex-start; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
  .popular-label { flex: 0 0 auto; font-size: 10px; }
  .search-chip { flex: 0 0 auto; min-height: 28px; padding: 0 9px; font-size: 10px; }
  .home-section,
  .spotlight-section,
  .popular-section { margin-top: 48px; }
  .section-head { flex-direction: row; align-items: flex-end; }
  .section-head h2 { font-size: 27px; }
  .section-head > a { max-width: 115px; font-size: 10px; text-align: right; }
  .category-grid { gap: 9px; }
  .category-card img { height: 120px; }
  .category-card-content { min-height: 94px; padding: 12px 28px 12px 11px; }
  .category-card-content h3 { font-size: 13px; }
  .category-card-content p { font-size: 10px; }
  .category-arrow { top: 12px; right: 10px; font-size: 14px; }
  .home-property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .listing-image-wrap { height: 130px; }
  .listing-copy { padding: 10px; }
  .listing-copy h3 { font-size: 12px; }
  .listing-price { font-size: 13px; }
  .listing-location { font-size: 10px; }
  .listing-meta { gap: 7px; font-size: 9px; }
  .location-grid { grid-template-columns: 1fr; }
  .location-card { min-height: 170px; }
  .why-choose-wrap { grid-template-columns: 1fr; gap: 20px; margin-top: 50px; padding: 25px 20px; }
  .why-copy h2 { font-size: 32px; }
  .why-copy ul { grid-template-columns: 1fr; gap: 14px; margin-top: 20px; }
  .why-cta { padding: 17px; }
  .home-floating-actions { right: 12px; bottom: 12px; display: flex; gap: 8px; }
  .contact-action { justify-content: center; width: 48px; min-height: 48px; padding: 0; border-radius: 50%; }
  .contact-action span { display: none; }
  .contact-action svg { width: 21px; height: 21px; }
  .home-chat-panel { right: 12px; bottom: 72px; width: min(365px, calc(100vw - 24px)); height: min(480px, calc(100dvh - 95px)); min-height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual img,
  .hero-copy-block,
  .home-chat-panel,
  .chat-message { animation: none; }
  .category-card,
  .listing-card,
  .location-card img,
  .hero-link,
  .contact-action { transition: none; }
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
}

.journey-step {
  min-height: 226px;
  padding: 22px 24px 23px 0;
}

.journey-step + .journey-step {
  padding-left: 24px;
  border-left: 1px solid var(--home-line);
}

.journey-number {
  color: var(--home-blue);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
}

.journey-step h3 {
  margin: 18px 0 8px;
  color: var(--home-dark);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
}

.journey-step p {
  max-width: 310px;
  min-height: 58px;
  margin: 0 0 13px;
  color: var(--home-muted);
  font-size: 12px;
}

.journey-step a,
.faq-contact-link {
  color: var(--home-blue-deep);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
}

.journey-step a span,
.faq-contact-link span {
  margin-left: 5px;
}

.home-faq {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: start;
  padding: 0 0 18px;
}

.faq-intro h2 {
  max-width: 400px;
  margin: 0;
  color: var(--home-dark);
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.15;
}

.faq-intro > p:not(.section-kicker) {
  max-width: 330px;
  color: var(--home-muted);
  font-size: 13px;
}

.faq-contact-link {
  display: inline-flex;
  margin-top: 5px;
}

.faq-list {
  border-top: 1px solid var(--home-line);
}

.faq-list details {
  border-bottom: 1px solid var(--home-line);
}

.faq-list summary {
  position: relative;
  padding: 18px 32px 18px 0;
  color: var(--home-dark);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 15px;
  right: 3px;
  color: var(--home-blue);
  content: "+";
  font-size: 20px;
  font-weight: 400;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 600px;
  margin: -2px 0 18px;
  color: var(--home-muted);
  font-size: 12px;
}

.contact-action {
  position: relative;
  width: 54px;
  height: 54px;
  min-height: 54px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}

.contact-action span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.contact-action::after {
  position: absolute;
  right: calc(100% + 10px);
  padding: 6px 9px;
  border: 1px solid var(--home-line);
  border-radius: 3px;
  color: var(--home-dark);
  background: #fff;
  box-shadow: 0 4px 12px rgba(6, 30, 73, 0.1);
  content: attr(data-tooltip);
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateX(4px);
  transition: opacity 0.16s, transform 0.16s;
  white-space: nowrap;
}

.contact-action:hover::after,
.contact-action:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

.customer-moment {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 82px);
  align-items: center;
}

.customer-photo {
  position: relative;
  min-height: 350px;
  overflow: hidden;
  background: #d9e8f4;
}

.customer-photo::after {
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(6, 30, 73, 0.62));
  content: "";
}

.customer-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 350px;
  object-fit: cover;
}

.customer-photo > span {
  position: absolute;
  z-index: 1;
  right: 20px;
  bottom: 19px;
  left: 20px;
  color: #fff;
  font-family: var(--serif);
  font-size: 19px;
}

.customer-copy h2 {
  max-width: 490px;
  margin: 0;
  color: var(--home-dark);
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 500;
  line-height: 1.12;
}

.customer-copy > p:not(.section-kicker, .customer-story-note) {
  max-width: 460px;
  margin: 17px 0 22px;
  color: var(--home-muted);
  font-size: 14px;
  line-height: 1.7;
}

.customer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 19px;
}

.customer-actions .button {
  background: var(--home-blue);
  border-color: var(--home-blue);
}

.customer-actions .button:hover {
  background: var(--home-blue-deep);
}

.customer-contact-link,
.customer-story-note a {
  color: var(--home-blue-deep);
  font-size: 12px;
  font-weight: 800;
}

.customer-story-note {
  margin: 23px 0 0;
  color: var(--home-muted);
  font-size: 11px;
}

@media (max-width: 900px) {
  .home-faq { gap: 32px; }
  .customer-copy h2 { font-size: 34px; }
}

@media (max-width: 700px) {
  .journey-grid { grid-template-columns: 1fr; }
  .journey-step,
  .journey-step + .journey-step { min-height: 0; padding: 19px 0; }
  .journey-step + .journey-step { border-top: 1px solid var(--home-line); border-left: 0; }
  .journey-step h3 { margin: 10px 0 5px; font-size: 20px; }
  .journey-step p { min-height: 0; margin-bottom: 9px; }
  .home-faq { grid-template-columns: 1fr; gap: 20px; }
  .faq-intro h2 { font-size: 28px; }
  .faq-list summary { font-size: 12px; }
  .customer-moment { grid-template-columns: 1fr; gap: 22px; }
  .customer-photo,
  .customer-photo img { min-height: 250px; }
  .customer-copy h2 { font-size: 29px; }
  .customer-copy > p:not(.section-kicker, .customer-story-note) { font-size: 12px; }
  .home-floating-actions { right: 12px; bottom: 12px; display: flex; gap: 8px; }
  .contact-action { width: 50px; height: 50px; min-height: 50px; flex: 0 0 50px; }
}

  :root {
    --home-bg: #f4f8fd;
    --home-card: #fff;
    --home-blue: #0789e8;
    --home-blue-deep: #0052ad;
    --home-dark: #061e49;
    --home-soft: #eaf4fd;
    --home-line: #d8e5f2;
    --home-muted: #536985;
    --home-shadow: 0 18px 42px rgba(6, 30, 73, 0.1);
  }

  body { background: var(--home-bg); }

  .home-shell {
    max-width: 1360px;
    padding-right: 36px;
    padding-left: 36px;
  }

  .home-hero {
    min-height: 590px;
    padding-right: max(60px, calc((100vw - 1240px) / 2));
    padding-left: max(60px, calc((100vw - 1240px) / 2));
  }

  .hero-visual::after {
    background:
      linear-gradient(90deg, rgba(6, 30, 73, 0.94) 0%, rgba(6, 30, 73, 0.78) 48%, rgba(6, 30, 73, 0.2) 100%),
      linear-gradient(0deg, rgba(6, 30, 73, 0.32), transparent 58%);
  }

  .hero-proof {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    margin-bottom: 20px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 3px;
    background: rgba(6, 30, 73, 0.36);
    color: #e2f2ff;
    font-family: var(--display);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.1px;
  }

  .hero-kicker {
    margin-bottom: 12px;
    color: #a8d9ff;
  }

  .hero-copy-block h1 {
    max-width: 760px;
    font-size: clamp(48px, 6vw, 76px);
    line-height: 1.04;
  }

  .hero-copy-block h1 span { color: #79c2fa; }

  .hero-copy-block > p:not(.hero-kicker) {
    max-width: 510px;
    color: #f0f6fd;
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
  }

  .hero-link {
    min-height: 50px;
    background: var(--home-blue-deep);
  }

  .hero-link:hover { background: var(--home-dark); }

  .hero-secondary-link {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: #8dcaff;
    text-underline-offset: 5px;
  }

  .home-search-bar {
    max-width: 1000px;
    border-radius: 8px;
    box-shadow: 0 16px 42px rgba(6, 30, 73, 0.13);
  }

  .search-field:focus-within {
    outline: 2px solid var(--home-blue);
    outline-offset: 2px;
  }

  .search-field input::placeholder { color: #61748b; }

  .home-search-bar .button {
    background: var(--home-blue-deep);
    font-weight: 800;
  }

  .home-search-bar .button:hover { background: var(--home-dark); }

  .popular-searches { margin-top: 20px; }

  .search-chip {
    background: #fff;
    color: var(--home-dark);
  }

  .home-trust-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 42px 0 4px;
    border: 1px solid var(--home-line);
    background: #fff;
  }

  .home-trust-strip > div {
    display: grid;
    gap: 5px;
    min-height: 104px;
    align-content: center;
    padding: 18px 24px;
  }

  .home-trust-strip > div + div { border-left: 1px solid var(--home-line); }

  .home-trust-strip strong {
    color: var(--home-dark);
    font-family: var(--display);
    font-size: 14px;
  }

  .home-trust-strip span {
    color: var(--home-muted);
    font-size: 12px;
    line-height: 1.5;
  }

  .home-section { margin-top: 78px; }

  .section-head h2,
  .customer-copy h2,
  .faq-intro h2 {
    color: var(--home-dark);
  }

  .section-kicker,
  .section-head > a,
  .category-arrow {
    color: var(--home-blue-deep);
  }

  .category-card,
  .listing-card,
  .location-card {
    border-color: var(--home-line);
    box-shadow: 0 8px 24px rgba(6, 30, 73, 0.05);
  }

  .category-card:hover,
  .listing-card:hover,
  .location-card:hover {
    box-shadow: var(--home-shadow);
  }

  .category-card-content h3,
  .listing-copy h3,
  .listing-price {
    color: var(--home-dark);
  }

  .category-card-content p,
  .listing-location,
  .listing-meta,
  .journey-step p,
  .faq-intro > p:not(.section-kicker) {
    color: var(--home-muted);
  }

  .testimonial-section { margin-top: 82px; }

  .testimonial-heading {
    align-items: end;
    margin-bottom: 24px;
  }

  .testimonial-heading h2 {
    max-width: 660px;
  }

  .testimonial-disclaimer {
    max-width: 320px;
    margin: 0;
    color: var(--home-muted);
    font-size: 11px;
    line-height: 1.5;
    text-align: right;
  }

  .testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .testimonial-card {
    position: relative;
    display: flex;
    min-height: 252px;
    flex-direction: column;
    padding: 25px 24px 22px;
    border: 1px solid var(--home-line);
    border-top: 3px solid var(--home-blue);
    background: #fff;
    box-shadow: 0 8px 24px rgba(6, 30, 73, 0.05);
  }

  .testimonial-mark {
    height: 34px;
    color: var(--home-blue);
    font-family: var(--serif);
    font-size: 48px;
    line-height: 1;
  }

  .testimonial-card blockquote {
    margin: 14px 0 24px;
    color: var(--home-dark);
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1.5;
  }

  .testimonial-author {
    display: grid;
    gap: 3px;
    margin: auto 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--home-line);
  }

  .testimonial-author strong {
    color: var(--home-dark);
    font-family: var(--display);
    font-size: 12px;
  }

  .testimonial-author span {
    color: var(--home-muted);
    font-size: 11px;
  }

  .why-choose-wrap {
    background: linear-gradient(135deg, #061e49, #0b3972);
  }

  .why-copy .section-kicker.light { color: #b8e0ff; }

  .why-cta .button {
    color: var(--home-dark);
    background: #fff;
    border-color: #fff;
  }

  .customer-actions .button {
    color: #fff;
    background: var(--home-blue-deep);
    border-color: var(--home-blue-deep);
  }

  .faq-list details { border-color: var(--home-line); }

  .faq-list summary,
  .journey-step h3 { color: var(--home-dark); }

  .button:focus-visible,
  .hero-link:focus-visible,
  .hero-secondary-link:focus-visible,
  .search-chip:focus-visible,
  .category-card:focus-visible,
  .listing-card:focus-visible,
  .location-card:focus-visible,
  .section-head a:focus-visible {
    outline: 3px solid #65baff;
    outline-offset: 3px;
  }

  @media (max-width: 900px) {
    .home-shell { padding-right: 24px; padding-left: 24px; }
    .home-hero {
      min-height: 540px;
      padding-right: 42px;
      padding-left: 42px;
    }
    .home-trust-strip > div { padding-right: 16px; padding-left: 16px; }
    .testimonial-grid { grid-template-columns: 1fr; gap: 12px; }
    .testimonial-card { min-height: 0; }
  }

  @media (max-width: 700px) {
    .home-shell { padding-right: 16px; padding-left: 16px; }
    .home-hero {
      min-height: 500px;
      padding: 36px 22px 64px;
    }
    .hero-visual::after {
      background: linear-gradient(0deg, rgba(6, 30, 73, 0.95), rgba(6, 30, 73, 0.28) 88%);
    }
    .hero-proof { margin-bottom: 14px; font-size: 8px; }
    .hero-copy-block h1 { font-size: clamp(42px, 11vw, 56px); }
    .hero-copy-block > p:not(.hero-kicker) { font-size: 14px; }
    .hero-actions { gap: 15px; }
    .hero-secondary-link { font-size: 12px; }
    .home-search-bar {
      flex-direction: column;
      align-items: stretch;
      gap: 5px;
      margin-top: -28px;
      padding: 8px;
    }
    .search-field { min-height: 48px; }
    .home-search-bar .button { min-height: 46px; font-size: 12px; }
    .home-trust-strip {
      grid-template-columns: 1fr;
      margin-top: 30px;
    }
    .home-trust-strip > div { min-height: 78px; padding: 14px 16px; }
    .home-trust-strip > div + div {
      border-top: 1px solid var(--home-line);
      border-left: 0;
    }
    .home-section,
    .testimonial-section { margin-top: 54px; }
    .testimonial-heading { align-items: flex-start; flex-direction: column; }
    .testimonial-disclaimer { max-width: none; text-align: left; }
    .testimonial-card { padding: 20px; }
    .testimonial-card blockquote { font-size: 16px; }
  }

  @media (prefers-reduced-motion: reduce) {
    .category-card,
    .listing-card,
    .location-card,
    .hero-link { transition: none; }
  }

  .listing-photo-picker {
    display: grid;
    justify-items: start;
    gap: 10px;
  }

  .listing-photo-picker > label {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 0 16px;
    border: 1px solid var(--home-blue-deep);
    background: var(--home-blue-deep);
    color: #fff;
    cursor: pointer;
    font-family: var(--display);
    font-size: 12px;
    font-weight: 800;
  }

  .listing-photo-picker > label:hover { background: var(--home-dark); }

  .listing-photo-picker > input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
  }

  .listing-photo-picker:focus-within > label {
    outline: 2px solid #65baff;
    outline-offset: 3px;
  }

  .listing-image-status {
    min-height: 18px;
    margin: 0;
    color: var(--home-muted);
    font-size: 12px;
  }

  .listing-photo-picker .image-manage { margin-top: 2px; }

  .image-manage > label {
    overflow: hidden;
    border: 1px solid var(--home-line);
    background: #fff;
  }

  .image-manage > label > img {
    display: block;
    width: 100%;
    height: 90px;
    object-fit: cover;
  }

  .image-manage > label > button { margin: 6px 8px; }

  .listing-form .form-section > label,
  .listing-form .form-section > .form-grid { margin-top: 12px; }

  .listing-form .form-section > label:first-of-type { margin-top: 0; }

  .access-notice {
    width: min(100% - 32px, 620px);
    margin: 72px auto;
    padding: 32px;
    border: 1px solid var(--home-line);
    background: #fff;
  }

  .access-notice h1 {
    margin: 0 0 12px;
    color: var(--home-dark);
    font-family: var(--serif);
    font-size: clamp(30px, 5vw, 42px);
  }

  .access-notice p { color: var(--home-muted); }

.hero-copy-block > p.home-hero-extra {
  margin-top: -12px;
}

.home-notice-section {
  display: grid;
  gap: 16px;
  max-width: 1180px;
  margin: 30px auto 0;
}

.home-notice-card {
  display: grid;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--home-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--home-shadow);
}

.home-notice-card.has-image {
  grid-template-columns: minmax(180px, 0.8fr) 1.4fr;
}

.home-notice-card > img {
  display: block;
  width: 100%;
  max-height: 240px;
  border-radius: 6px;
  object-fit: cover;
}

.home-notice-card h2 {
  margin: 4px 0 8px;
  color: var(--home-dark);
}

.home-notice-card p:not(.section-kicker) {
  color: var(--home-muted);
  line-height: 1.65;
}

@media (max-width: 700px) {
  .home-notice-card,
  .home-notice-card.has-image {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }
}
