/* Planning section, from the approved homepage design. */
#est-brand-home-process.est-home-review-journey {
  --journey-stone: #f2e5d0;
  --journey-ink: #35233b;
  --journey-copy: #513c43;
  --journey-line: #a76d79;
  --journey-plum: #8d2d61;
  --journey-display: "Playfair Display", Georgia, serif;
  --journey-sans: Montserrat, Arial, sans-serif;
  position: relative;
  isolation: isolate;
  padding: clamp(44px, 5.5vw, 88px) 0;
  background: var(--journey-stone);
  color: var(--journey-ink);
  font: 500 16px/1.65 var(--journey-sans);
}

.est-home-review-journey::before,
.est-home-review-journey::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  background-image: url("cartouche-limestone.webp");
  background-repeat: no-repeat;
  mask-composite: intersect;
}

.est-home-review-journey::before {
  inset: 0 0 auto auto;
  width: min(77%, 1100px);
  height: clamp(300px, 34vw, 490px);
  background-position: right 33%;
  background-size: cover;
  mask-image: linear-gradient(90deg, transparent, #000 58%), linear-gradient(#000 32%, transparent);
  opacity: .48;
}

.est-home-review-journey::after {
  inset: 0 auto auto 0;
  width: clamp(140px, 22vw, 335px);
  height: clamp(255px, 30vw, 415px);
  background-position: 64% top;
  background-size: auto 106%;
  mask-image: linear-gradient(90deg, #000 10%, transparent 94%), linear-gradient(#000 25%, transparent);
  opacity: .36;
}

.est-home-review-journey .journey-shell { width: min(1180px, calc(100% - 80px)); margin-inline: auto; }
.est-home-review-journey .journey-heading { display: grid; grid-template-columns: 1.38fr .82fr; align-items: end; gap: clamp(22px, 6vw, 90px); }
.est-home-review-journey .journey-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--journey-plum);
  font: 750 11.52px/1.4 var(--journey-sans);
  text-transform: uppercase;
  letter-spacing: .14em;
}
.est-home-review-journey .journey-eyebrow::before { content: ""; width: 25px; height: 1px; background: currentColor; }
#est-brand-home-process.est-home-review-journey .journey-heading h2 {
  margin: 0;
  max-width: 12em;
  color: var(--journey-ink);
  font: 650 clamp(40.8px, 5.05vw, 72px)/1.02 var(--journey-display) !important;
  letter-spacing: -.045em;
  text-wrap: balance;
}
#est-brand-home-process.est-home-review-journey .journey-intro {
  margin: 0;
  padding: 13px 16px;
  border-left: 2px solid #b6818b;
  border-radius: 0 5px 5px 0;
  background: #fbf3e8ed;
  color: var(--journey-ink);
  font: 500 clamp(14.72px, 1.2vw, 16.48px)/1.65 var(--journey-sans) !important;
}
.est-home-review-journey .journey-photo { margin: 31px 0 0; }
.est-home-review-journey .journey-photo-frame { width: 100%; aspect-ratio: 2.9; border: 1px solid #ad8a65; border-radius: 8px 8px 3px 3px; overflow: hidden; }
.est-home-review-journey .journey-photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.est-home-review-journey .journey-photo-credit { margin-top: 7px; color: var(--journey-copy); font: 500 11.52px/1.65 var(--journey-sans); }
.est-home-review-journey .journey-photo-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }

.est-home-review-journey .journey-steps {
  --step-gap: 24px;
  --marker-center: calc((100% - 3 * var(--step-gap)) / 8);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--step-gap);
  position: relative;
  margin: 25px 0 0;
  padding: 0;
  list-style: none;
  text-align: center;
}
.est-home-review-journey .journey-steps::before { content: ""; position: absolute; top: 18px; inset-inline: var(--marker-center); height: 1px; background: var(--journey-line); }
.est-home-review-journey .journey-step-number {
  display: grid;
  place-items: center;
  position: relative;
  width: 37px;
  height: 37px;
  margin-inline: auto;
  border: 1px solid var(--journey-line);
  border-radius: 50%;
  background: #f9efdf;
  color: var(--journey-plum);
  font: 750 10.56px/1 var(--journey-sans);
}
.est-home-review-journey .journey-steps li > div { margin-top: 14px; }
#est-brand-home-process.est-home-review-journey .journey-steps h3 { margin: 0; color: var(--journey-ink); font: 650 20.48px/1.2 var(--journey-display) !important; }
#est-brand-home-process.est-home-review-journey .journey-steps p { max-width: 34ch; margin: 8px auto 0; color: var(--journey-copy); font: 500 13.44px/1.65 var(--journey-sans) !important; }
.est-home-review-journey .journey-action { margin-top: 28px; }
.est-home-review-journey .journey-cta { display: inline-flex; align-items: center; gap: 26px; min-height: 50px; padding: 10px 19px; border-radius: 5px; background: var(--journey-plum); color: #fff; text-decoration: none; font: 750 13.6px/1.45 var(--journey-sans); }
.est-home-review-journey .journey-cta:is(:hover, :focus-visible) { background: #75234f; color: #fff; }
.est-home-review-journey .journey-cta span { font-size: 17px; }

/* Same article component as Blog and Day Tours, fitted to the homepage grid. */
.est-home-review-guides .est-guide-article-card { min-width: 0; }
.est-home-review-guides .est-guide-article-card__meta { margin-top: auto; padding-top: 18px; }
.est-home-review-guides .est-guide-article-card__actions { min-width: 0; margin-top: 10px; }
.est-home-review-guides .est-guide-article-card__actions .est-guide-article-card__cta {
  min-height: 44px;
  padding-inline: 6px;
  font-size: 12px;
  letter-spacing: .05em;
  text-align: center;
  white-space: nowrap;
}
.est-home-review-guides .est-guide-article-card__meta-chip--author a { display: inline-flex; align-items: center; min-height: 44px; }

@media (hover: hover) and (pointer: fine) {
  .est-home-review-journey .journey-steps li > div { position: relative; isolation: isolate; }
  .est-home-review-journey .journey-steps li > div::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -6px -7px -9px;
    border: 1px solid #cfae9d;
    border-radius: 7px;
    background: #fbf3e6;
    box-shadow: 0 7px 15px #513c431c;
    opacity: 0;
    pointer-events: none;
  }
  .est-home-review-journey .journey-steps li:hover > div::before { opacity: 1; }
  .est-home-review-journey .journey-steps li:hover .journey-step-number { background: var(--journey-plum); color: #fff; }

  body.est-brand-patterns .est-home-review-values .est-home-v2__values > div:hover {
    background: #fff7fa !important;
    border-color: #a63e78 !important;
    box-shadow: 0 12px 24px rgba(28, 46, 85, .12) !important;
  }
  body.est-brand-patterns .est-home-review-values .est-home-v2__values > div:hover h3 { color: #8d2d61 !important; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .est-home-review-journey .journey-steps li > div { transition: transform 180ms ease-out; }
  .est-home-review-journey .journey-steps li > div::before { transition: opacity 180ms ease-out; }
  .est-home-review-journey .journey-step-number { transition: background-color 180ms ease-out, color 180ms ease-out; }
  .est-home-review-journey .journey-steps li:hover > div { transform: translateY(-4px); }
  body.est-brand-patterns .est-home-review-values .est-home-v2__values > div { transition: transform 180ms ease-out, background-color 180ms ease-out, border-color 180ms ease-out, box-shadow 180ms ease-out; }
  body.est-brand-patterns .est-home-review-values .est-home-v2__values > div:hover { transform: translateY(-4px); }
}

@media (max-width: 900px) and (min-width: 701px) {
  .est-home-review-guides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .est-home-review-journey .journey-shell { width: calc(100% - 52px); }
  .est-home-review-journey .journey-heading { gap: 25px; }
  .est-home-review-journey .journey-steps { --step-gap: 17px; }
}
@media (max-width: 700px) {
  .est-home-review-guides { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 650px) {
  .est-home-review-journey::before, .est-home-review-journey::after { background-image: url('cartouche-limestone-640.webp'); }
  #est-brand-home-process.est-home-review-journey { padding-block: 39px 43px; }
  .est-home-review-journey .journey-shell { width: calc(100% - 36px); }
  .est-home-review-journey .journey-heading { grid-template-columns: 1fr; gap: 13px; }
  .est-home-review-journey .journey-eyebrow { margin-bottom: 12px; }
  #est-brand-home-process.est-home-review-journey .journey-heading h2 { font-size: clamp(37.6px, 9vw, 51.2px) !important; }
  .est-home-review-journey::before { width: 100%; height: 310px; background-position: right top; mask-image: linear-gradient(90deg, transparent 32%, #000 98%), linear-gradient(#000 42%, transparent 92%); opacity: .32; }
  .est-home-review-journey::after { width: 112px; height: 235px; opacity: .24; }
  .est-home-review-journey .journey-photo { margin-top: 20px; }
  .est-home-review-journey .journey-photo-frame { aspect-ratio: auto; height: clamp(196px, 42vw, 280px); }
  .est-home-review-journey .journey-steps { --step-gap: 26px; grid-template-columns: 1fr; }
  .est-home-review-journey .journey-steps::before { content: none; }
  .est-home-review-journey .journey-steps li { position: relative; }
  .est-home-review-journey .journey-steps li:not(:last-child)::after { content: ""; position: absolute; inset: auto auto -20px calc(50% - .5px); width: 1px; height: 14px; background: var(--journey-line); }
  .est-home-review-journey .journey-steps li > div { margin-top: 10px; }
  #est-brand-home-process.est-home-review-journey .journey-steps p { margin-top: 5px; }
}

/* Keep the route introduction and the map in one visual section. */
body.est-brand-patterns .est-home-v2__route.est-home-review-route[data-est-homepage-refinement] {
  padding-block: clamp(44px, 5vw, 74px);
  background: #f8f5ef !important;
}
.est-home-review-route .est-home-review-route-intro { padding: 0; }
.est-home-review-route-intro .est-home-v2__connection-grid { gap: clamp(26px, 5vw, 72px); }
.est-home-review-route-intro .est-home-v2__connection-grid h2 { max-width: 15ch; }
.est-home-review-route-intro .est-home-v2__connection-copy { max-width: 65ch; }
body.est-brand-patterns .est-home-review-route[data-est-homepage-refinement] .est-home-v2__section-head {
  max-width: none;
  margin: clamp(24px, 3.6vw, 50px) 0 22px;
  padding-top: clamp(19px, 2.4vw, 34px);
  border-top: 1px solid #ddcdd2;
}
body.est-brand-patterns .est-home-review-route[data-est-homepage-refinement] .est-home-v2__section-head h2 {
  font-size: clamp(25px, 3vw, 38px) !important;
}
.est-home-review-route .est-home-v2__section-head > p:last-child { max-width: 72ch; }

@media (max-width: 767px) {
  .est-home-review-route-intro .est-home-v2__connection-grid { gap: 12px; }
  .est-home-review-route-intro .est-home-v2__connection-grid h2 { margin-bottom: 0; }
  .est-home-review-route-intro .est-home-v2__connection-copy strong::before { width: 20px; }
}

body.est-brand-patterns #est-j-journeys .est-home-v2__journey-card .est-home-v2__text-link {
  display: inline-flex;
  justify-content: center;
  align-self: flex-start;
  min-height: 48px;
  max-width: 100%;
  padding: 9px 15px;
  border: 1px solid #963463;
  border-radius: 7px;
  background: #963463 !important;
  color: #fff !important;
  text-decoration: none;
}
body.est-brand-patterns #est-j-journeys .est-home-v2__journey-card .est-home-v2__text-link:is(:hover,:focus-visible) {
  background: #76234d !important;
  color: #fff !important;
}


@media (prefers-reduced-motion: reduce) {
  body.est-brand-patterns #est-j-journeys .est-home-v2__text-link::after { transition: none; }
}
