/* Home page */
.home-hero {
  position: relative;
  isolation: isolate;
  min-height: 720px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  padding: 104px 36px 112px;
}
.home-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--home-hero-bg-image, none) center center / cover no-repeat;
  transform: scale(1.04);
  transform-origin: center 42%;
}
.home-hero--parallax-active .home-hero-media {
  transform-origin: center 38%;
}
.home-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(12, 9, 8, 0.2) 0%, rgba(12, 9, 8, 0.08) 46%, rgba(12, 9, 8, 0.22) 100%),
    linear-gradient(165deg, rgba(42, 31, 24, 0.34) 0%, rgba(42, 31, 24, 0.12) 44%, rgba(20, 15, 12, 0.36) 100%),
    linear-gradient(180deg, rgba(20, 15, 12, 0.1) 0%, transparent 36%, rgba(20, 15, 12, 0.28) 100%);
}
.home-hero-ambient {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.home-hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(42px);
  opacity: 0.14;
  mix-blend-mode: soft-light;
}
.home-hero-blob--1 {
  width: min(58vw, 540px);
  height: min(58vw, 540px);
  left: -12%;
  top: 14%;
  background: radial-gradient(circle at 35% 40%, rgba(232, 130, 110, 0.85) 0%, rgba(196, 93, 72, 0.35) 45%, transparent 72%);
}
.home-hero-blob--2 {
  width: min(50vw, 460px);
  height: min(50vw, 460px);
  right: -14%;
  bottom: 8%;
  background: radial-gradient(circle at 62% 58%, rgba(251, 229, 221, 0.9) 0%, rgba(232, 221, 210, 0.4) 48%, transparent 74%);
}
.home-hero-blob--3 {
  width: min(44vw, 400px);
  height: min(44vw, 400px);
  left: 38%;
  top: -18%;
  background: radial-gradient(circle at 50% 50%, rgba(252, 217, 204, 0.75) 0%, rgba(232, 130, 110, 0.22) 55%, transparent 76%);
}
.home-hero--ambient-1 .home-hero-blob--1 { transform: translate(-2vw, 1vh); }
.home-hero--ambient-1 .home-hero-blob--2 { transform: translate(1vw, -2vh); }
.home-hero--ambient-1 .home-hero-blob--3 { transform: translate(-3vw, 3vh); }
.home-hero--ambient-2 .home-hero-blob--1 { transform: translate(3vw, -2vh); }
.home-hero--ambient-2 .home-hero-blob--2 { transform: translate(-2vw, 2vh); }
.home-hero--ambient-2 .home-hero-blob--3 { transform: translate(2vw, -1vh); }
.home-hero--ambient-3 .home-hero-blob--1 { transform: translate(1.5vw, 3vh); }
.home-hero--ambient-3 .home-hero-blob--2 { transform: translate(2.5vw, 1vh); }
.home-hero--ambient-3 .home-hero-blob--3 { transform: translate(-4vw, -2vh); }
.home-hero-glass {
  position: absolute;
  inset: -4%;
  z-index: 3;
  pointer-events: none;
  -webkit-backdrop-filter: blur(5px) saturate(104%);
  backdrop-filter: blur(5px) saturate(104%);
  background: rgba(255, 255, 255, 0.025);
  mask-image: radial-gradient(ellipse 78% 68% at 46% 44%, transparent 0%, transparent 52%, rgba(0, 0, 0, 0.16) 82%, rgba(0, 0, 0, 0.26) 100%);
  -webkit-mask-image: radial-gradient(ellipse 78% 68% at 46% 44%, transparent 0%, transparent 52%, rgba(0, 0, 0, 0.16) 82%, rgba(0, 0, 0, 0.26) 100%);
}
.home-hero-inner {
  position: relative;
  z-index: 4;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.home-hero h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 4.6vw, 60px);
  line-height: 1.08;
  font-weight: 600;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.2);
}
.home-hero h1 em { font-style: italic; color: #FCD9CC; font-weight: 500; font-size: 0.96em; }
.home-hero p { font-size: 17px; line-height: 1.55; max-width: 540px; margin-bottom: 36px; opacity: 0.95; }
.home-hero .eyebrow { color: #FCD9CC; margin-bottom: 16px; }
.home-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: clamp(28px, 5vw, 48px);
  row-gap: 20px;
  padding: 28px 36px;
  margin-top: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
}
.home-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  min-width: 0;
  gap: 8px;
  padding-right: clamp(12px, 2vw, 24px);
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}
.home-hero-stat:last-child {
  padding-right: 0;
  border-right: 0;
}
.home-hero-stat strong {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 34px);
  font-weight: 600;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.home-hero-stat-label {
  font-size: 10px;
  letter-spacing: 1.25px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.3;
  max-width: 11em;
}

.home-search-card {
  position: relative;
  z-index: 12;
  isolation: isolate;
  background: rgba(255, 255, 255, 0.74);
  border-radius: 18px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 4px 24px rgba(20, 15, 12, 0.14),
    0 24px 48px rgba(20, 15, 12, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(22px) saturate(185%);
  backdrop-filter: blur(22px) saturate(185%);
  color: var(--ink);
}
.home-search-tabs {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: stretch;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  pointer-events: auto;
}
.home-search-tab {
  position: relative;
  z-index: 1;
  flex: 0 1 auto;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  pointer-events: auto;
  touch-action: manipulation;
}
.home-search-tab:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.home-search-tab.on { color: var(--primary); border-bottom-color: var(--primary); }
.home-search-fields { display: grid; gap: 14px; margin-bottom: 18px; }
.home-search-fields label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.home-search-fields select {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(232, 221, 210, 0.85);
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  font-family: var(--sans);
  text-transform: none;
  letter-spacing: 0;
}
.home-search-popular {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  font-size: 12px; color: var(--muted);
  margin-top: 14px;
}
.home-search-popular button {
  padding: 6px 12px;
  border-radius: 99px;
  background: rgba(250, 241, 230, 0.65);
  border: 1px solid rgba(232, 221, 210, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
}
.home-search-popular button:hover { background: var(--primary-soft); border-color: var(--primary-soft); color: var(--primary-dark); }

.home-feat-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 20px; }
.home-feat-grid .dcard.wide { grid-row: span 1; }
.home-feat-grid .dcard.wide .dcard-img { aspect-ratio: 16/10; }

.home-areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.home-area {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 16px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  color: #fff;
  text-align: left;
  transition: transform .25s, box-shadow .25s;
  box-shadow: 0 12px 40px rgba(42, 31, 24, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.home-area:hover { transform: scale(1.02); box-shadow: 0 20px 48px rgba(42, 31, 24, 0.18); }
.home-area::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.55) 100%);
}
.home-area > * {
  position: relative; z-index: 1;
  width: 100%;
  padding: 18px 16px;
  border-radius: 14px;
  background: rgba(15, 12, 10, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}
.home-area-name { font-family: var(--serif); font-size: 28px; font-weight: 600; margin-bottom: 4px; }
.home-area-desc { font-size: 13px; opacity: 0.85; margin-bottom: 8px; }
.home-area-count { font-size: 12px; font-weight: 600; letter-spacing: 0.5px; }

.home-why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.home-why-card {
  background: rgba(255, 255, 255, 0.76);
  border-radius: 16px;
  padding: 28px 24px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
}
.home-why-icon {
  width: 48px; height: 48px;
  background: var(--primary-soft);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.home-why-title { font-family: var(--serif); font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.home-why-desc { font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); }

@media (max-width: 900px) {
  .home-hero { min-height: 620px; padding: 80px 24px 96px; }
  .home-hero-glass {
    -webkit-backdrop-filter: blur(4px) saturate(102%);
    backdrop-filter: blur(4px) saturate(102%);
  }
  .home-hero-blob { filter: blur(34px); opacity: 0.11; }
  .home-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .home-hero h1 { font-size: clamp(34px, 8vw, 42px); line-height: 1.1; }
  .home-feat-grid { grid-template-columns: 1fr; }
  .home-areas { grid-template-columns: 1fr 1fr; }
  .home-why { grid-template-columns: 1fr 1fr; }
  .home-hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
    row-gap: 24px;
    padding: 26px 28px;
  }
  .home-hero-stat {
    min-height: 0;
    padding-right: 0;
    border-right: 0;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }
  .home-hero-stat:nth-child(2n) {
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
  }
  .home-hero-stat:nth-last-child(-n + 2) {
    padding-bottom: 0;
    border-bottom: 0;
  }
}
@media (max-width: 600px) {
  .home-areas { grid-template-columns: 1fr; }
  .home-why { grid-template-columns: 1fr; }
  .home-hero-stats {
    grid-template-columns: 1fr;
    padding: 24px 22px;
    row-gap: 22px;
  }
  .home-hero-stat {
    padding-left: 0;
    border-left: 0;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }
  .home-hero-stat:nth-child(2n) {
    padding-left: 0;
    border-left: 0;
  }
  .home-hero-stat:nth-last-child(-n + 2) {
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }
  .home-hero-stat:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }
}
