/* Family Journeys master redesign — scoped additions layered over the existing
   family journey foundation. Keep this file page-specific and reviewable. */

.fj-editorial-heading,
.fj-step-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: end;
}

.fj-editorial-heading .fj-display,
.fj-step-intro .fj-display { max-width: 820px; }
.fj-editorial-heading .fj-lede { margin: 0; }

/* Landing page: inspiration first, directory second. */
.fj-featured-section { background: #fffdf9; }

.fj-landing-page .fj-featured-journeys {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.fj-landing-page .fj-featured-journeys .fj-concept-card {
  min-height: 0;
  grid-template-columns: 1fr;
}

.fj-landing-page .fj-featured-journeys .fj-concept-card__media {
  min-height: 0;
  aspect-ratio: 16 / 10;
}

.fj-landing-page .fj-featured-journeys .fj-concept-card__copy { padding: 27px; }
.fj-landing-page .fj-featured-journeys .fj-concept-card h3 { font-size: clamp(29px, 2.6vw, 39px); }
.fj-landing-page .fj-featured-journeys .fj-concept-card__route { min-height: 43px; }
.fj-landing-page .fj-featured-journeys .fj-button { width: 100%; }

.fj-more-places {
  margin-top: clamp(36px, 6vw, 64px);
  border: 1px solid #cfc1ad;
  border-radius: 18px;
  background: #fffaf1;
  overflow: clip;
}

.fj-more-places > summary {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 26px;
  cursor: pointer;
  list-style: none;
}

.fj-more-places > summary::-webkit-details-marker { display: none; }
.fj-more-places > summary small,
.fj-more-places > summary strong { display: block; }
.fj-more-places > summary small { color: var(--fj-copper); font-size: 10px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.fj-more-places > summary strong { margin-top: 5px; font-family: Georgia, serif; font-size: clamp(26px, 3vw, 37px); font-weight: 500; letter-spacing: -.035em; line-height: 1; }
.fj-more-places__cue { flex: 0 0 auto; color: var(--fj-deep); font-size: 12px; font-weight: 850; letter-spacing: .055em; text-transform: uppercase; }
.fj-more-places__cue span { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; margin-left: 9px; border: 1px solid #b9a98f; border-radius: 50%; font-size: 20px; font-weight: 400; }
.fj-more-places[open] .fj-more-places__cue span { transform: rotate(45deg); }
.fj-more-places__content { padding: 28px 26px 30px; border-top: 1px solid #d8ccb9; background: #f7f0e5; }
.fj-more-places__content .fj-place-grid { margin-top: 25px; }

.fj-group-journeys { padding-top: clamp(58px, 7vw, 86px); padding-bottom: clamp(58px, 7vw, 86px); }
.fj-group-journeys .fj-concepts { margin-top: 30px; }

/* Builder: one calm three-step journey. */
.fj-builder-page .fj-hero__grid { min-height: 570px; }
.fj-builder-page .fj-hero__media { min-height: 570px; }
.fj-planner { padding-top: clamp(34px, 5vw, 64px); }

.fj-planner-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: clamp(42px, 6vw, 68px);
  padding: 1px;
  border-radius: 18px;
  background: #d1c6b6;
  overflow: hidden;
  scroll-margin-top: 96px;
}

.fj-planner-progress button {
  display: grid;
  min-height: 86px;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 13px;
  align-content: center;
  padding: 16px 18px;
  border: 0;
  background: #f3ede3;
  color: var(--fj-muted);
  text-align: left;
}

.fj-planner-progress button > span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  grid-row: 1 / 3;
  align-items: center;
  justify-content: center;
  border: 1px solid #ae9c82;
  border-radius: 50%;
  color: var(--fj-deep);
  font-size: 12px;
  font-weight: 900;
}

.fj-planner-progress button strong { align-self: end; color: var(--fj-ink); font-size: 13px; line-height: 1.25; }
.fj-planner-progress button small { align-self: start; margin-top: 2px; font-size: 10px; }
.fj-planner-progress button[aria-current="step"] { background: var(--fj-deep); color: #d6e6e2; }
.fj-planner-progress button[aria-current="step"] strong { color: #fff; }
.fj-planner-progress button[aria-current="step"] > span { border-color: var(--fj-gold); background: var(--fj-gold); color: var(--fj-deeper); }
.fj-planner-progress button.is-complete > span { border-color: #71928a; background: #dfe9e3; }

.fj-planner-step[hidden] { display: none !important; }
.fj-step-intro { margin-bottom: 30px; }
.fj-step-intro .fj-pricing-note { align-self: end; }

.fj-route-starter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .72fr);
  gap: 28px;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid #d1c3ae;
  border-radius: 18px;
  background: #f4ebde;
}

.fj-route-starter h3 { margin: 0; font-family: Georgia, serif; font-size: clamp(27px, 3vw, 38px); font-weight: 500; letter-spacing: -.035em; line-height: 1; }
.fj-route-starter p:not(.fj-kicker) { margin: 8px 0 0; color: var(--fj-muted); font-size: 13px; }
.fj-route-starter .fj-starter__choices { grid-template-columns: minmax(0, 1fr) auto; }
.fj-route-advice { margin: 13px 0 0; padding: 11px 12px; border-left: 3px solid var(--fj-gold); background: rgba(255,255,255,.08); color: #d9e6e3; font-size: 11px; line-height: 1.45; }

.fj-step-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--fj-line);
}

.fj-step-actions--end { justify-content: flex-end; }

.fj-preference-stack { display: grid; gap: 18px; }
.fj-preference-card { padding: clamp(22px, 4vw, 34px); border: 1px solid var(--fj-line); border-radius: 20px; background: var(--fj-paper); box-shadow: 0 13px 36px rgba(17,53,51,.06); }
.fj-preference-card__heading { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; align-items: start; margin-bottom: 22px; }
.fj-preference-card__heading > span { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: var(--fj-deep); color: #f0c971; font-size: 10px; font-weight: 900; }
.fj-preference-card__heading h3 { margin: 0; font-family: Georgia, serif; font-size: clamp(26px, 3vw, 36px); font-weight: 500; letter-spacing: -.035em; line-height: 1.04; }
.fj-preference-card__heading p { margin: 6px 0 0; color: var(--fj-muted); font-size: 13px; }
.fj-collection-choices { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fj-collection-choice { min-height: 138px; align-content: start; padding: 20px 18px; }
.fj-collection-choice strong { font-family: Georgia, serif; font-size: 20px; font-weight: 500; }
.fj-collection-choice small { margin-top: 9px; font-size: 11px; line-height: 1.5; }
.fj-field-grid--family { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; }
.fj-field-grid--family .fj-field--wide { grid-column: span 2; }
.fj-optional-details { margin-top: 18px; border: 1px solid var(--fj-line); border-radius: 13px; background: #faf7f1; }
.fj-optional-details > summary { display: flex; min-height: 50px; align-items: center; justify-content: space-between; padding: 11px 15px; color: var(--fj-deep); cursor: pointer; font-size: 12px; font-weight: 850; list-style: none; }
.fj-optional-details > summary::-webkit-details-marker { display: none; }
.fj-optional-details > summary::after { content: "+"; font-size: 20px; font-weight: 400; }
.fj-optional-details[open] > summary::after { content: "−"; }
.fj-optional-details .fj-transfer-controls { margin: 0; padding: 0 14px 14px; }

.fj-premium-review { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 18px; }
.fj-review-route,
.fj-review-preferences { padding: clamp(22px, 4vw, 34px); border-radius: 20px; }
.fj-review-route { background: var(--fj-deep); color: #fff; }
.fj-review-preferences { border: 1px solid var(--fj-line); background: var(--fj-paper); }
.fj-review-route__head,
.fj-review-preferences__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.fj-review-route h3,
.fj-review-preferences h3 { margin: 0; font-family: Georgia, serif; font-size: clamp(28px, 3.2vw, 42px); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.fj-review-route .fj-text-button { color: #f4cf76; }
.fj-review-route ol { display: grid; gap: 9px; margin: 26px 0 0; padding: 0; list-style: none; }
.fj-review-route li { display: grid; grid-template-columns: 32px 1fr; gap: 11px; align-items: center; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.14); }
.fj-review-route li > span { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; background: var(--fj-gold); color: var(--fj-deeper); font-size: 10px; font-weight: 900; }
.fj-review-route li strong,
.fj-review-route li small { display: block; }
.fj-review-route li strong { font-size: 14px; }
.fj-review-route li small { margin-top: 2px; color: #cfe0dc; font-size: 10px; }
.fj-review-preferences dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; margin: 22px 0 0; }
.fj-review-preferences dl > div { padding: 13px 0; border-top: 1px solid var(--fj-line); }
.fj-review-preferences dt { color: var(--fj-copper); font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.fj-review-preferences dd { margin: 4px 0 0; color: var(--fj-ink); font-size: 13px; font-weight: 700; }
.fj-review-notes { margin-top: 16px; padding: 15px; border-radius: 12px; background: #f4eee5; }
.fj-review-notes p { margin: 0; color: var(--fj-muted); font-size: 12px; line-height: 1.55; }
.fj-review-notes p + p { margin-top: 8px; }
.fj-review-request { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; margin-top: 18px; padding: clamp(22px, 4vw, 34px); border: 1px solid #cda850; border-radius: 20px; background: #fff3d5; }
.fj-review-request h3 { margin: 0; font-family: Georgia, serif; font-size: clamp(27px, 3.3vw, 40px); font-weight: 500; letter-spacing: -.04em; line-height: 1.04; }
.fj-review-request p:not(.fj-kicker) { max-width: 720px; margin: 9px 0 0; color: var(--fj-muted); font-size: 13px; }
.fj-review-empty { padding: 36px; border: 1px dashed var(--fj-line); border-radius: 18px; text-align: center; }
.fj-review-empty h3 { margin: 0 0 18px; font-family: Georgia, serif; font-size: 30px; font-weight: 500; }

.fj-planner-assurance { padding: 24px 0; border-top: 1px solid #d4c8b8; border-bottom: 1px solid #d4c8b8; background: #eee3d3; }
.fj-planner-assurance .fj-shell { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fj-planner-assurance p { margin: 0; color: var(--fj-muted); font-size: 11px; line-height: 1.45; }
.fj-planner-assurance strong { display: block; margin-bottom: 3px; color: var(--fj-ink); font-size: 12px; }

/* The drawer stays viewport-anchored. Only its content column scrolls. */
.fj-summary-dialog[open] { position: fixed !important; inset: auto 0 0 !important; top: auto !important; margin: 0 !important; transform: none !important; }
.fj-summary-dialog .fj-summary__head { padding-right: 72px; }
.fj-summary-dialog .fj-summary__body { overflow-anchor: none; }

@media (max-width: 1120px) {
  .fj-landing-page .fj-featured-journeys { grid-template-columns: 1fr; }
  .fj-landing-page .fj-featured-journeys .fj-concept-card { grid-template-columns: minmax(270px, .82fr) minmax(0, 1.18fr); }
  .fj-landing-page .fj-featured-journeys .fj-concept-card__media { aspect-ratio: auto; }
  .fj-landing-page .fj-featured-journeys .fj-concept-card__route { min-height: 0; }
  .fj-collection-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fj-field-grid--family { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .fj-editorial-heading,
  .fj-step-intro { grid-template-columns: 1fr; gap: 18px; }
  .fj-builder-page .fj-hero__grid,
  .fj-builder-page .fj-hero__media { min-height: 0; }
  .fj-route-starter { grid-template-columns: 1fr; }
  .fj-premium-review { grid-template-columns: 1fr; }
  .fj-review-request { grid-template-columns: 1fr; }
  .fj-review-request .fj-button { justify-self: start; }
}

@media (max-width: 700px) {
  .fj-landing-page .fj-featured-journeys .fj-concept-card { grid-template-columns: 1fr; }
  .fj-landing-page .fj-featured-journeys .fj-concept-card__media { aspect-ratio: 16 / 10; }
  .fj-more-places > summary { min-height: 84px; padding: 19px; }
  .fj-more-places__cue { font-size: 0; }
  .fj-more-places__cue span { margin-left: 0; font-size: 20px; }
  .fj-more-places__content { padding: 23px 18px 25px; }
  .fj-planner-progress { margin-bottom: 40px; }
  .fj-planner-progress button { min-height: 78px; grid-template-columns: 34px minmax(0, 1fr); column-gap: 8px; padding: 12px 9px; }
  .fj-planner-progress button > span { width: 34px; height: 34px; }
  .fj-planner-progress button strong { font-size: 11px; line-height: 1.15; }
  .fj-planner-progress button small { display: none; }
  .fj-route-starter { padding: 20px 18px; }
  .fj-route-starter .fj-starter__choices { grid-template-columns: 1fr; }
  .fj-route-starter .fj-button { width: 100%; }
  .fj-preference-card { padding: 22px 18px; }
  .fj-collection-choices,
  .fj-field-grid--family { grid-template-columns: 1fr; }
  .fj-field-grid--family .fj-field--wide { grid-column: auto; }
  .fj-collection-choice { min-height: 0; }
  .fj-review-route__head,
  .fj-review-preferences__head { align-items: flex-start; flex-direction: column; gap: 7px; }
  .fj-review-preferences dl { grid-template-columns: 1fr; }
  .fj-review-request .fj-button { width: 100%; }
  .fj-step-actions { align-items: stretch; flex-direction: column-reverse; }
  .fj-step-actions .fj-button { width: 100%; }
  .fj-step-actions .fj-text-button { align-self: center; }
  .fj-planner-assurance .fj-shell { grid-template-columns: 1fr; gap: 13px; }
  .fj-summary-dialog[open] { width: 100% !important; max-height: 92dvh; }
}

@media (max-width: 390px) {
  .fj-planner-progress button { grid-template-columns: 1fr; grid-template-rows: 30px auto; justify-items: center; padding: 10px 5px; text-align: center; }
  .fj-planner-progress button > span { width: 30px; height: 30px; grid-row: auto; }
  .fj-planner-progress button strong { align-self: start; }
  .fj-preference-card__heading { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
  .fj-preference-card__heading > span { width: 32px; height: 32px; }
  .fj-review-route,
  .fj-review-preferences { padding: 22px 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .fj-more-places__cue span { transition: none; }
}
