.route-atlas {
  --atlas-sea: #133e40;
  --atlas-muted: #415c59;
  --atlas-foam: #d5eee3;
  color: var(--atlas-sea);
}
.route-atlas *, .route-atlas *::before { box-sizing: border-box; }
.route-atlas [hidden] { display: none !important; }
.route-atlas .atlas-hero {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  align-items: end;
  position: relative;
  isolation: isolate;
  min-height: clamp(23rem,39vw,31rem);
  overflow: hidden;
  border-radius: 1.25rem;
  color: #fffaf0;
  background: var(--atlas-sea);
}
.atlas-hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  width: min(61%,44rem);
  padding: clamp(1.75rem,4vw,3.65rem);
}
.route-atlas .atlas-coast {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  margin: 0;
  font: 600 .76rem/1.4 "Segoe UI", Arial, sans-serif;
  letter-spacing: .055em;
  color: #c2e4d6;
}
.atlas-coast span { width: 1.25rem; height: 1px; background: currentColor; }
.route-atlas .atlas-hero h1 {
  color: inherit;
  font: 500 clamp(3rem,5.1vw,4.65rem)/1.03 Spectral, Georgia, serif;
  margin: .95rem 0 1.05rem;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.route-atlas .atlas-intro { color: #f0f4eb; font-size: clamp(.99rem,1.2vw,1.13rem); max-width: 39ch; line-height: 1.58; margin: 0; }
.route-atlas .atlas-explore {
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
  padding: .65rem 1rem;
  margin-top: 1.65rem;
  border-radius: 2rem;
  color: #143f3a;
  background: var(--atlas-foam);
  font-size: .94rem;
  font-weight: 650;
  text-decoration: none;
}
.atlas-explore span { font-size: 1.2em; line-height: 1; }
.atlas-explore:hover { background: white; }
.atlas-card-photo { position: relative; overflow: hidden; isolation: isolate; }
.atlas-hero-photo { position: absolute; inset: 0; overflow: hidden; isolation: isolate; }
.atlas-hero-photo img, .atlas-card-photo img { display: block; height: 100%; width: 100%; object-fit: cover; }
.atlas-hero-photo img { position: absolute; inset: 0; object-position: center 48%; }
.atlas-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgb(22 40 55 / 94%), rgb(22 40 55 / 81%) 35%, rgb(22 40 55 / 44%) 58%, transparent 86%);
}
.route-atlas .atlas-location, .route-atlas .atlas-photo-label {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  color: white;
  background: #153f3bee;
  font: 600 .78rem/1.2 "Segoe UI", Arial, sans-serif;
  text-decoration: none;
  position: absolute;
}
.atlas-location { z-index: 1; bottom: 1rem; right: 1rem; padding: .57rem .82rem; border-radius: 2rem; }
.atlas-location:hover { text-decoration: underline; }
.atlas-photo-label { bottom: .8rem; left: .8rem; padding: .39rem .62rem; border-radius: 2rem; }
.atlas-photo-label svg { width: .84rem; height: .84rem; }
.route-atlas .atlas-routes { margin: clamp(2.25rem,5vw,4.2rem) 0 0; padding: 0; border: 0; scroll-margin-top: 1rem; }
.atlas-section-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .9rem 1.5rem; margin-bottom: 1.35rem; }
.route-atlas .atlas-section-head h2 { margin: 0; font: 500 clamp(2rem,3.7vw,3.15rem)/1.1 Spectral, Georgia, serif; letter-spacing: -.045em; color: var(--atlas-sea); }
.atlas-filter { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.atlas-filter button {
  cursor: pointer;
  font: 600 .86rem/1.3 "Segoe UI", Arial, sans-serif;
  min-height: 2.65rem;
  padding: .5rem .86rem;
  border-radius: 4rem;
  border: 1px solid #afc9bd;
  color: var(--atlas-sea);
  background: transparent;
}
.atlas-filter button:hover { background: #e4f0e7; }
.atlas-filter button[aria-pressed="true"] { background: var(--atlas-sea); color: white; border-color: var(--atlas-sea); }
.atlas-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.route-atlas .guide-list.atlas-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: clamp(1.15rem,2.1vw,1.9rem); }
.route-atlas .guide-list .atlas-card { min-width: 0; margin: 0; padding: 0; border: 1px solid #d5e0d7; border-radius: 1rem; background: #fffef9; }
@media (min-width: 901px) {
  .route-atlas .atlas-grid .atlas-card { grid-column: span 2; }
  .route-atlas .atlas-grid:not([data-filtered]) .atlas-card:nth-child(-n+2),
  .route-atlas .atlas-grid[data-visible-count="2"] .atlas-card,
  .route-atlas .atlas-grid[data-visible-count="4"] .atlas-card { grid-column: span 3; }
}
.route-atlas .atlas-card a.atlas-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  color: inherit;
  text-decoration: none;
}
.atlas-card-photo { aspect-ratio: 1.72; border-radius: .95rem .95rem 0 0; }
.atlas-grid:not([data-filtered]) .atlas-card:nth-child(-n+2) .atlas-card-photo { aspect-ratio: 2; }
.atlas-card img { transition: transform .3s ease-out; }
.atlas-card-copy { flex: 1; padding: clamp(1rem,1.7vw,1.45rem); }
.atlas-title { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: .65rem; }
.route-atlas .atlas-title h3 { color: var(--atlas-sea); margin: 0; font: 500 clamp(1.45rem,2.35vw,2.05rem)/1.13 Spectral, Georgia, serif; letter-spacing: -.038em; text-wrap: balance; }
.atlas-title > span { border: 1px solid #b9cec3; border-radius: 50%; width: 1.85rem; height: 1.85rem; display: grid; place-items: center; font: 1.1rem/1 Arial,sans-serif; }
.route-atlas .atlas-card-copy p { margin: .6rem 0 0; line-height: 1.57; color: var(--atlas-muted); max-width: 59ch; font-size: .97rem; }
.route-atlas :is(button,a):focus-visible { outline: 3px solid #da874d; outline-offset: 3px; }
@media (hover:hover) {
  .atlas-card-link:hover img { transform: scale(1.035); }
  .atlas-card-link:hover .atlas-title > span { color: #fff; background: var(--atlas-sea); }
}
@media (max-width: 900px) {
  .route-atlas .guide-list.atlas-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .route-atlas .guide-list.atlas-grid .atlas-card { grid-column: span 1; }
  .route-atlas .atlas-card-photo, .route-atlas .atlas-grid .atlas-card:nth-child(-n+2) .atlas-card-photo { aspect-ratio: 1.75; }
}
@media (max-width: 660px) {
  .route-atlas .atlas-hero { min-height: 25rem; padding-top: clamp(7.75rem,31vw,11rem); }
  .atlas-hero-copy { width: 100%; padding: 0 1.25rem 1.6rem; }
  .atlas-hero-photo img { object-position: 64% 40%; }
  .atlas-hero-photo::after {
    background: linear-gradient(0deg, rgb(22 40 55 / 96%), rgb(22 40 55 / 87%) 47%, rgb(22 40 55 / 62%) 70%, transparent 96%);
  }
  .route-atlas .atlas-hero h1 { margin: .62rem 0 .75rem; font-size: clamp(2.45rem,8.5vw,3.45rem); }
  .route-atlas .atlas-explore { margin-top: 1.05rem; }
  .route-atlas .guide-list.atlas-grid { grid-template-columns: minmax(0,1fr); }
  .atlas-section-head { gap: 1rem; }
  .atlas-location { top: .8rem; right: .8rem; bottom: auto; }
  .atlas-filter { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .4rem; width: 100%; }
  .atlas-filter button { padding: .45rem .72rem; }
}
@media (prefers-reduced-motion: reduce) {
  .route-atlas .atlas-card img { transition: none; transform: none; }
}
