[data-est-route-preview] .atlas {
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  margin-bottom: 12px;
  border-radius: 12px;
}
[data-est-route-preview] .atlas-board {
  justify-content: center;
  padding: clamp(12px, 2vw, 26px);
}
[data-est-route-preview] .atlas-postcard {
  grid-template-rows: minmax(0, 1fr) auto;
  background: var(--ink);
  color: var(--white);
}
[data-est-route-preview] .atlas-photo {
  min-height: clamp(235px, 28vw, 370px);
}
[data-est-route-preview] .atlas-postcard figcaption {
  display: grid;
  justify-items: start;
  gap: 7px;
  min-height: 178px;
  padding: 16px clamp(16px, 3vw, 32px) 17px;
  border-top: 3px solid var(--plum);
}
[data-est-route-preview] .route-postcard-label {
  display: grid;
  gap: 4px;
}
[data-est-route-preview] .route-postcard-type {
  color: #f1cadd;
  font: 650 13px/1.4 var(--ui);
}
[data-est-route-preview] .atlas-caption {
  font-size: clamp(25px, 3vw, 37px);
}
[data-est-route-preview] .route-postcard-description {
  margin: 0;
  max-width: 55ch;
  color: var(--white);
  font: 400 clamp(15px, 1.5vw, 17px)/1.55 var(--reading);
}
[data-est-route-preview] .atlas-postcard figcaption a {
  min-height: 44px;
  color: var(--white);
  border-bottom: 1px solid #dca4c5;
}
[data-est-route-preview] .atlas-postcard figcaption a:focus-visible {
  outline: 2px solid #f1cadd;
  outline-offset: 3px;
}
.route-guide {
  border-bottom: 1px solid var(--line);
}
.route-guide > summary {
  cursor: pointer;
  min-height: 48px;
  padding: 12px 2px;
  color: var(--plum-dark);
  font: 650 14px/1.5 var(--ui);
}
.route-guide > summary:focus-visible {
  outline: 2px solid var(--plum);
  outline-offset: 2px;
}
.route-guide__body {
  padding-block: 9px 16px;
}

@media (max-width: 680px) {
  [data-est-route-preview] .atlas {
    grid-template-columns: minmax(0, 1fr);
  }
  [data-est-route-preview] .atlas-board {
    padding: 10px 4px 8px;
  }
  [data-est-route-preview] .atlas-photo {
    min-height: 0;
    aspect-ratio: 16/9;
  }
  [data-est-route-preview] .atlas-postcard figcaption {
    min-height: 200px;
  }
}

#route-design {
  scroll-margin-top: calc(var(--est-brand-header) + var(--est-brand-nav) + 8px);
}
.route-guide > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-inline: 4px 12px;
}
.route-guide > summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  flex: 0 0 auto;
}
.route-guide[open] > summary::after {
  transform: rotate(225deg);
}
@media (max-width: 991px) {
  html:has(body.est-shell-contact-region) #route-design {
    scroll-margin-top: calc(var(--est-brand-header) + var(--est-brand-nav) - 80px);
  }
}
@media (max-width: 680px) {
  [data-est-route-preview] .atlas-map {
    aspect-ratio: 1.5;
  }
  [data-est-route-preview] .atlas-photo {
    aspect-ratio: 2.15/1;
  }
  /* The longer Alexandria description needs more room above the trip bar. */
  [data-est-route-preview] .atlas-photo[data-place="alexandria"] {
    width: 100%;
    aspect-ratio: 2.65 / 1;
    max-height: max(80px, calc(100svh - 716px));
  }
  [data-est-route-preview] .atlas-postcard figcaption {
    min-height: 166px;
    padding-block: 11px 12px;
    gap: 5px;
  }
}

@media (max-width: 680px) {
  /* Leave room for the full map link above the fixed trip bar on shorter screens. */
  [data-est-route-preview] .atlas-photo {
    width: 100%;
    max-height: max(80px, calc(100svh - 690px));
  }
}
