/* Andalusian tile and map details recur in the tools and the editorial guides. */
:root {
  --tile-blue: #1738a8;
  --tile-edge: #bbc6e4;
  --tile-paper: #faf6ec;
  --tile-rust: #a52d24;
}
.tile-frieze {
  height: 24px;
  background: var(--cal) url(/assets/azulejo.svg) repeat-x center / 24px 24px;
  border-block: 1px solid var(--tile-edge);
}
.atlas-section {
  padding-block: clamp(60px, 7vw, 100px) clamp(42px, 6vw, 80px);
}
.atlas-heading h2 { font-size: clamp(2.7rem, 6.1vw, 6rem); }
.atlas-frame {
  background: var(--paper);
  border: 1px solid var(--tile-edge);
  box-shadow: 5px 5px 0 #e3d9c6;
}
.atlas-controls, .journey-controls {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 15px 38px;
  padding: 15px clamp(16px, 3vw, 32px);
  border-bottom: 1px solid var(--tile-edge);
  background: var(--tile-paper);
}
.tool-choice { min-inline-size: 0; padding: 0; margin: 0; border: 0; }
.tool-choice legend {
  color: var(--navy);
  font-size: var(--support);
  font-weight: 700;
  margin-bottom: 6px;
}
.tool-choice > div { display: flex; flex-wrap: wrap; gap: 6px; }
.choice { display: grid; position: relative; cursor: pointer; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice span {
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 7px 13px;
  border: 1px solid var(--control-edge);
  color: var(--blue);
  background: var(--paper);
  border-radius: 3px;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  transition: background .2s ease, color .2s ease;
}
.choice:hover span { background: #edf0fb; }
.choice input:checked + span { background: var(--blue); color: white; border-color: var(--blue); }
.choice input:focus-visible + span { outline: 3px solid var(--tile-rust); outline-offset: 3px; }

.atlas-layout {
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr);
  align-items: start;
}
.atlas-visual { position: sticky; top: calc(var(--header) + 12px); background: var(--tile-blue); }
.atlas-map {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background-color: var(--tile-blue);
  background-image: repeating-linear-gradient(0deg, #ffffff10 0 1px, transparent 1px 34px), repeating-linear-gradient(90deg, #ffffff10 0 1px, transparent 1px 34px);
}
.atlas-map-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 11px 17px 0;
  font-size: var(--support);
  font-weight: 650;
}
.atlas-map-heading > span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.atlas-rose { display: grid; place-items: center; color: var(--gold); }
.atlas-rose svg { width: 24px; height: 24px; }
.atlas-map > svg { display: block; width: 100%; height: auto; }
.atlas-contours { fill: none; stroke: #9eb8ff; stroke-width: .7; opacity: .37; }
.atlas-shore { fill: #2149b3; stroke: #819eea; stroke-width: 1; opacity: .85; }
.atlas-water { fill: none; stroke: #89a3ef; stroke-width: .75; opacity: .45; }
.atlas-edge { fill: none; stroke: #a7b9ee; stroke-width: 1; stroke-dasharray: 1.3 2; opacity: .42; }
.atlas-edge.is-active {
  stroke: var(--gold);
  stroke-width: 3;
  stroke-dasharray: 100;
  stroke-linecap: round;
  opacity: 1;
}
.atlas-ready .atlas-edge.is-active { animation: atlas-ink .65s cubic-bezier(.25,.6,.35,1) both; }
@keyframes atlas-ink { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.atlas-pin circle { fill: var(--blue); stroke: #dbe5ff; stroke-width: 2; }
.atlas-pin text {
  fill: #e9efff;
  font: 670 18px var(--text);
  text-anchor: middle;
  paint-order: stroke;
  stroke: #17368d;
  stroke-width: 4px;
  stroke-linejoin: round;
}
.atlas-pin.is-active circle { fill: var(--gold); stroke: #fff0c3; stroke-width: 2; }
.atlas-pin.is-active text { fill: #fff2cd; font-weight: 700; }
.atlas-legend { display: flex; flex-wrap: wrap; gap: .35rem .9rem; list-style: none; margin: 0; padding: .65rem .85rem .85rem; font-size: var(--support); line-height: 1.4; }
.atlas-legend li { display: flex; gap: .45rem; align-items: center; }
.legend-pin { flex: none; width: .7rem; height: .7rem; border-radius: 50%; border: 2px solid #dbe5ff; }
.legend-pin.is-active { border-color: #fff0c3; background: var(--gold); }
.atlas-mural { aspect-ratio: 2.2; border-top: 1px solid #c7cfe4; overflow: hidden; background: #ebd2a6; }
.atlas-mural img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.atlas-results { min-width: 0; padding: clamp(17px, 3vw, 32px); }
.trip-plan h3 {
  margin-bottom: .6em;
  font-size: clamp(1.65rem, 3.15vw, 3rem);
  color: var(--blue);
}
.atlas-ready .trip-plan { animation: atlas-page .3s ease-out both; }
@keyframes atlas-page { from { transform: translateY(5px); opacity: .55; } to { transform: translateY(0); opacity: 1; } }
.trip-days { margin: 0; padding: 0; list-style: none; }
.trip-day {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 13px 10px 14px 0;
  border-block-end: 1px solid var(--line);
}
.trip-days li:first-child .trip-day { padding-top: 8px; }
.trip-day-count {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1px;
  width: 46px;
  min-height: 50px;
  color: var(--blue);
  background: #e7ebfb;
  border: 1px solid #d7dff5;
  border-radius: 3px;
  font-size: .8125rem;
  line-height: 1.25;
  font-weight: 700;
}
.trip-day-count b { font: 750 1.35rem/1 var(--display); }
.trip-day-content > a { display: inline-block; min-height: 44px; padding-block: .45rem; font-family: var(--display); font-weight: 750; font-size: 1.1875rem; line-height: 1.4; }
.trip-day-content > a .icon { width: .9em; }
.trip-day-content p { margin-top: 4px; color: var(--ink); font-size: 1rem; line-height: 1.6; }
.trip-day-content small { display: inline-block; margin-top: 5px; font-size: var(--support); font-weight: 650; color: var(--muted); }
.trip-day-icon { display: grid; place-items: center; color: var(--red); margin-top: 3px; }
.trip-leg { display: flex; align-items: flex-start; gap: 7px; padding: 8px 4px 1px 12px; margin-left: 18px; color: var(--blue); border-left: 2px dotted #94a8e6; line-height: 1.5; font-size: var(--support); }
.trip-leg .icon { margin-top: 1px; }
.trip-leg a { display: inline; margin-left: .4em; color: var(--muted); }
.trip-note {
  display: flex;
  align-items: start;
  gap: 7px;
  margin-top: 11px;
  color: var(--navy);
  font-size: var(--support);
  line-height: 1.55;
}
.trip-note > .icon { margin-top: .08em; color: var(--red); }
.atlas-actions { margin-top: 13px; }
.atlas-actions button, .prep button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 6px 11px;
  border: 1px solid var(--control-edge);
  color: var(--blue);
  background: var(--paper);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}
.atlas-actions button:hover, .prep button:not(:disabled):hover { background: #e7ebfb; }
.atlas-actions p { margin-top: 5px; color: var(--muted); font-size: var(--support); }
.atlas-actions [role=status] { min-height: 0; color: var(--blue); font-weight: 650; }
.atlas-actions [role=status]:empty { margin: 0; }
.atlas-notice, .compare-feedback:not(:empty) { padding: .7rem 1rem; background: #fbefe2; color: var(--navy); border-left: 4px solid var(--red); font-size: 1rem; }
.copy-fallback { margin-block: .75rem; }
.copy-fallback label { display: block; font-weight: 700; }
.copy-fallback textarea { width: 100%; margin-top: .3rem; padding: .6rem; border: 1px solid var(--control-edge); font: inherit; resize: vertical; }

.page-home .route-section {
  background-color: #f0ecdf;
  background-image: radial-gradient(ellipse at top right, #e3e7f8 0, transparent 42%);
  border-top: 1px solid var(--line);
  padding-block-start: clamp(54px, 7vw, 94px);
}
.route-heading-actions p { color: var(--muted); line-height: 1.55; }
.route-heading-actions .text-link { min-height: 44px; }
.compare-dock {
  display: grid;
  grid-template-columns: minmax(205px, .74fr) minmax(0, 1.26fr);
  gap: clamp(21px, 4.6vw, 62px);
  margin-top: clamp(28px, 5vw, 58px);
  padding: clamp(17px, 3vw, 38px);
  border: 1px solid var(--tile-edge);
  background: var(--paper);
  box-shadow: 5px 5px 0 #ded8c9;
}
.compare-copy h3 { color: var(--blue); font-size: clamp(1.7rem, 3.6vw, 3.2rem); margin: .33em 0 .3em; }
.compare-copy p { color: var(--muted); max-width: 39ch; line-height: 1.52; }
.compare-emblem, .city-plan-icon {
  display: grid;
  place-items: center;
  width: 43px;
  aspect-ratio: 1;
  color: var(--white);
  background: var(--blue);
  border-radius: 3px;
}
.compare-emblem svg { width: 28px; height: 28px; }
.compare-fields { min-width: 0; }
.compare-selects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  margin-bottom: 10px;
}
.compare-selects label { display: grid; gap: 4px; color: var(--navy); font-size: var(--support); font-weight: 700; }
.compare-selects select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--control-edge);
  border-radius: 3px;
  padding: 5px 9px;
  color: var(--blue);
  background: #f1f3fc;
  font: 700 1rem var(--text);
  cursor: pointer;
}
.compare-fields table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: var(--support);
  line-height: 1.5;
}
.compare-fields th, .compare-fields td { padding: 9px; border: 1px solid var(--tile-edge); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.compare-fields thead { background: var(--blue); color: white; }
.compare-fields thead th:first-child { width: 25%; }
.compare-fields tbody th { background: #f2efe6; color: var(--navy); }
.compare-fields tfoot td { padding-block: 0; vertical-align: middle; }
.compare-fields tfoot a { display: inline-block; min-height: 44px; max-width: 100%; padding-block: .55rem; overflow-wrap: anywhere; font-size: var(--support); font-weight: 700; }
.compare-note { margin-top: 8px; color: var(--muted); font-size: var(--support); line-height: 1.5; }
.compare-feedback:not(:empty) { margin-bottom: .7rem; }

.chapter-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 14px;
  margin: 17px 0 2px;
  border-block: 1px solid var(--tile-edge);
  background: #eef0f9;
  padding: 6px 12px;
}
.chapter-label { display: inline-flex; align-items: center; gap: 7px; color: var(--navy); font-size: var(--support); font-weight: 700; }
.chapter-label > .icon { color: var(--blue); }
.chapter-nav ul { display: flex; flex-wrap: wrap; gap: 0 10px; list-style: none; padding: 0; margin: 0; }
.chapter-nav a { display: inline-flex; align-items: center; min-height: 44px; gap: 6px; color: var(--blue); font-size: var(--support); font-weight: 650; }
.chapter-nav a > .icon { width: .85em; height: .85em; }
.booking-panel {
  border: 1px solid var(--tile-edge);
  border-left: 5px solid var(--red);
  background: var(--paper);
}
.booking-panel h2 { font-size: clamp(1.4rem, 2.65vw, 2.2rem); }
.booking-source .icon { color: var(--blue); }
.city-planning {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  padding: 19px;
  border: 1px solid var(--tile-edge);
  border-top: 5px solid var(--blue);
  background: #ecf0fb;
}
.body-text > .city-planning h2 { color: var(--blue); }
.city-plan-icon .icon { width: 23px; height: 23px; }
.city-planning .text-link { margin-top: 7px; }

.journey { margin-top: clamp(35px, 5.7vw, 76px); }
.journey-story { border: 1px solid var(--tile-edge); background: var(--paper); }
.journey-banner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .94fr); background: var(--blue); }
.journey-heading { align-self: center; padding: clamp(24px, 4vw, 52px); }
.journey-heading .eyebrow { color: var(--gold); }
.journey-heading h2 { margin: .3em 0; color: var(--white); font-size: clamp(2.25rem, 5vw, 5.05rem); text-wrap: balance; }
.journey-heading > p:last-child { max-width: 45ch; color: #f0f3ff; line-height: 1.5; }
.journey-banner figure { position: relative; width: 100%; min-width: 0; min-height: 230px; overflow: hidden; background: #d8b776; }
.journey-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 52% 55%; }
.journey-controls { padding-block: 13px; }
.journey-mode { padding: clamp(16px, 3vw, 33px); }
.journey-mode + .journey-mode { border-top: 1px solid var(--tile-edge); }
.journey-ready .journey-mode { animation: atlas-page .3s ease both; border-top: 0; }
.journey-mode-heading { color: var(--blue); font-size: clamp(1.45rem, 2.6vw, 2.05rem); margin-bottom: 17px; }
.stage-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.stage-grid::before { content: ""; position: absolute; top: 26px; left: 28px; right: 28px; height: 0; border-top: 2px dashed #a4b7f0; }
.stage-card { position: relative; min-width: 0; padding: 0 12px 13px; border: 1px solid var(--tile-edge); border-top: 0; background: linear-gradient(var(--paper) 26px, #eef0f9 26px, var(--paper) 140px); }
.stage-marker {
  display: inline-flex;
  position: relative;
  z-index: 1;
  align-items: center;
  justify-content: center;
  width: 51px;
  height: 51px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--tile-edge);
  background: var(--blue);
  color: white;
}
.stage-marker .icon { width: 22px; height: 22px; }
.stage-marker span {
  display: grid;
  place-content: center;
  position: absolute;
  right: -6px;
  bottom: -2px;
  width: 19px;
  height: 19px;
  background: var(--gold);
  border: 1px solid var(--paper);
  border-radius: 50%;
  color: var(--navy);
  font-size: .67rem;
  font-weight: 800;
}
.stage-card h4 { font: 750 clamp(1.15rem, 2vw, 1.65rem)/1.12 var(--display); letter-spacing: -.025em; color: var(--blue); margin: 12px 0 11px; }
.stage-card p { font-size: 1rem; line-height: 1.6; }
.stage-fact a, .stage-tip b { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 4px; font-size: var(--support); font-weight: 750; }
.stage-fact a { color: var(--blue); min-height: 44px; }
.stage-tip { border-top: 1px solid var(--line); margin-top: 9px; padding-top: 7px; }
.stage-tip b { color: var(--red); }

.effort, .day-decision, .prep { margin-top: clamp(38px, 6.3vw, 83px); }
.effort { border-top: 5px solid var(--red); background: var(--sand-light); padding: clamp(19px, 3.8vw, 46px); }
.effort-overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .93fr); gap: 19px 42px; align-items: center; }
.effort h2 { color: var(--blue); margin: .32em 0; }
.effort-overview p { max-width: 55ch; }
.effort-source { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; margin-top: 3px; font-size: var(--support); }
.effort-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 15px; padding-top: 15px; margin-top: 18px; border-top: 1px solid var(--line); }
.effort-notes > div { display: flex; align-items: start; gap: 8px; }
.effort-notes > div > div { min-width: 0; }
.effort-notes .icon { color: var(--red); width: 23px; height: 23px; }
.effort-notes h3 { font-size: 1.12rem; letter-spacing: -.02em; margin: 1px 0 4px; }
.effort-notes p { font-size: 1rem; line-height: 1.55; }
.day-decision .section-heading { margin-bottom: 16px; }
.day-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.day-option { display: flex; flex-direction: column; align-items: start; background: var(--paper); border: 1px solid var(--tile-edge); padding: clamp(16px, 2.7vw, 31px); }
.day-option h3 { display: flex; align-items: center; gap: 10px; font-size: clamp(1.4rem, 2.7vw, 2.1rem); color: var(--blue); }
.day-option dl { width: 100%; flex: 1; margin: 11px 0 15px; }
.day-option dl > div { border-bottom: 1px solid var(--line); padding: 8px 0; }
.day-option dt { color: var(--navy); font-size: var(--support); font-weight: 750; }
.day-option dd { margin: 3px 0 0; font-size: 1rem; line-height: 1.55; }
.day-option .booking-disclosure { margin-bottom: .85rem; }
.tariff-source { margin-top: 10px; color: var(--muted); font-size: var(--support); }
.prep {
  display: grid;
  grid-template-columns: minmax(0, .68fr) minmax(0, 1.32fr);
  gap: 20px 40px;
  padding: clamp(17px, 3.2vw, 38px);
  border: 1px solid var(--tile-edge);
  border-top: 7px solid var(--blue);
  background: #e8ecf9;
}
.prep h2 { color: var(--blue); margin: .31em 0; }
.prep-aside > p { color: var(--muted); font-size: 1rem; }
.prep-seal {
  display: grid;
  place-items: center;
  width: 49px;
  height: 49px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 0 0 3px var(--white);
}
.prep-seal svg { width: 29px; height: 29px; }
.prep progress { width: min(100%, 260px); height: 10px; border: 0; margin-top: 12px; accent-color: var(--blue); }
.prep-progress-text { color: var(--navy); font-size: var(--support); }
.prep-progress-text span { font-weight: 750; }
.prep button { margin-top: 7px; }
.prep button:disabled { opacity: .62; cursor: default; }
.prep-items { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; align-content: start; }
.prep-items label {
  display: flex;
  align-items: start;
  gap: 9px;
  min-height: 44px;
  padding: 10px 11px;
  border: 1px solid var(--tile-edge);
  background: var(--paper);
  color: var(--navy);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.5;
}
.prep-items label:has(input:checked) { background: #f5f9eb; border-color: #b7c3a9; }
.prep-items label:has(input:focus-visible) { outline: 3px solid var(--red); outline-offset: 2px; }
.prep-items input { width: 18px; height: 18px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--blue); }
.journey + .guide-content .faq { margin-top: 0; }

@media (max-width: 1050px) {
  .stage-grid { grid-template-columns: 1fr 1fr; }
  .stage-grid::before { content: none; }
}
@media (max-width: 740px) {
  .atlas-layout, .compare-dock, .effort-overview { grid-template-columns: minmax(0, 1fr); }
  .atlas-visual { position: relative; top: auto; display: grid; grid-template-columns: 1fr 1fr; }
  .atlas-map { display: grid; align-content: center; }
  .atlas-map-heading { min-height: 38px; padding: 6px 8px 0; }
  .atlas-mural { aspect-ratio: auto; border: 0; border-left: 1px solid var(--tile-edge); }
  .atlas-controls { padding: 11px 14px; gap: 10px 16px; }
  .journey-heading { padding: 20px; }
  .journey-banner figure { min-height: 200px; }
  .chapter-nav { padding-inline: 9px; gap: 0 10px; }
  .compare-dock .compare-emblem { display: none; }
  .compare-copy h3 { margin-top: 0; }
}
@media (max-width: 540px) {
  .atlas-visual { display: contents; }
  .atlas-map { grid-row: 1; }
  .atlas-results { grid-row: 2; }
  .atlas-map-heading { min-height: 44px; padding-inline: 13px; }
  .atlas-map svg { max-height: 220px; }
  .atlas-pin text { font-size: 25px; }
  .atlas-mural { grid-row: 3; height: 116px; border-left: 0; border-top: 1px solid var(--tile-edge); }
  .trip-day { grid-template-columns: 39px minmax(0, 1fr); gap: 9px; padding-right: 0; }
  .trip-day-count { width: 39px; min-height: 43px; }
  .trip-day-icon { display: none; }
  .trip-leg { padding-left: 7px; }
  .compare-fields th, .compare-fields td { padding-inline: 6px; }
  .compare-fields thead th:first-child { width: 27%; }
  .compare-fields tfoot a { line-height: 1.45; }
  .compare-fields tfoot .icon { width: 12px; height: 12px; }
  .compare-dock { padding: 12px; }
  .map-target { left: calc(50% - 122px); top: 45%; transform: translateY(-50%); }
  .map-target::after { content: ""; position: absolute; left: 100%; top: 50%; width: 8px; border-top: 1px solid var(--gold); }
  .chapter-nav ul { gap: 0 9px; }
  .chapter-nav a { min-height: 44px; }
  .journey-banner, .day-options, .prep { grid-template-columns: minmax(0, 1fr); }
  .journey-banner figure { min-height: 150px; aspect-ratio: 2.15; }
  .stage-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .stage-card { border-top: 1px solid var(--tile-edge); padding: 11px; }
  .stage-card h4 { display: inline-block; margin: 5px 0 9px 9px; max-width: calc(100% - 66px); }
  .stage-marker { width: 43px; height: 43px; vertical-align: middle; }
  .stage-fact { margin-top: 8px; }
  .effort-notes { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 340px) {
  .choice span { padding-inline: 8px; }
  .compare-fields th, .compare-fields td { padding-inline: 4px; }
}

/* The cover and the planner share the same schematic and active routes. */
.atlas-cover {
  align-self: center;
  min-width: 0;
  background: var(--paper);
  border: 1px solid #234194;
  box-shadow: 7px 7px 0 #e1d4be;
}
.cover-plate {
  display: grid;
  grid-template-columns: minmax(0, 1.37fr) minmax(0, .93fr);
  min-height: clamp(300px, 29vw, 425px);
  isolation: isolate;
  background: var(--blue);
}
.cover-plate .atlas-map {
  display: grid;
  align-content: center;
  min-width: 0;
  background-color: #17368d;
  box-shadow: inset 0 0 0 8px #17368d, inset 0 0 0 9px #9eb8ff50;
}
.cover-plate .atlas-map-heading {
  padding: .9rem 1rem .35rem;
  line-height: 1.4;
}
.cover-plate .atlas-edge.is-active { stroke-width: 3.7; }
.cover-plate .atlas-pin text { font-size: 19px; }
.cover-art {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-left: 1px solid #e4c78b;
  background: #d9b27d;
}
.cover-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 47%; }
.cover-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 10px 15px;
  min-height: 94px;
  padding: 13px clamp(11px, 2vw, 23px) 15px;
}
.cover-route { flex: 1 1 12rem; min-width: 0; }
.cover-route .eyebrow { color: var(--red); margin-bottom: 4px; }
.cover-route strong {
  display: block;
  color: var(--blue);
  font: 740 clamp(1.55rem, 1.1rem + 1.4vw, 2.25rem)/1.12 var(--display);
  letter-spacing: -.04em;
}
.cover-stages { margin-top: .6rem; color: var(--navy); font-size: var(--support); font-weight: 650; }
.cover-stops { display: flex; flex-wrap: wrap; gap: .3rem .85rem; list-style: none; counter-reset: stop; margin: .25rem 0 0; padding: 0; font-size: 1rem; line-height: 1.5; }
.cover-stops li { display: flex; align-items: baseline; gap: .35rem; counter-increment: stop; }
.cover-stops li::before { content: counter(stop); color: var(--blue); font-weight: 700; }
.cover-choices { flex: 0 0 auto; }
.cover-choices .choice span { min-width: 44px; padding-inline: 7px; }

.timed-visit {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #dfc2af;
  border-left: 4px solid var(--red);
  background: #fbf1e4;
}
.timed-visit .timed-title { display: flex; align-items: center; gap: 7px; margin: 0; color: var(--red); font-size: 1rem; }
.timed-chain {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.timed-chain li { display: grid; align-content: start; gap: 4px; padding: 6px; color: var(--navy); background: #fffaf0; font-size: var(--support); line-height: 1.5; }
.timed-chain .icon { color: var(--red); }
.timed-source { display: inline-flex; gap: 4px; align-items: center; min-height: 44px; padding-block: 5px; color: var(--red); font-size: var(--support); }
.timed-alternative { padding-top: 6px; border-top: 1px dashed #c29e8b; }
.timed-alternative p { margin-top: 3px; font-size: 1rem; }
.timed-alternative a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-size: var(--support); font-weight: 700; }

.scope-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.scope-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--tile-edge); background: #faf7ef; }
.scope-card-head { padding: 11px 12px; border-top: 5px solid var(--blue); border-bottom: 1px solid var(--tile-edge); background: #e9edf9; }
.scope-card-head h4 { margin: 0; color: var(--navy); font: 740 1.2rem/1.12 var(--display); overflow-wrap: anywhere; }
.scope-card-head strong { display: block; margin-top: 3px; color: var(--blue); font: 750 clamp(1.55rem, 3vw, 2.5rem)/1 var(--display); letter-spacing: -.04em; }
.scope-card-head p { margin-top: 7px; color: var(--muted); font-size: 1rem; line-height: 1.55; overflow-wrap: anywhere; }
.scope-track { flex: 1; list-style: none; margin: 0; padding: 0 10px; }
.scope-track li { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 7px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.scope-track li:not(:last-child)::after { content: ""; position: absolute; top: 41px; bottom: -8px; left: 15px; border-left: 1px dotted #8293be; }
.scope-glyph { z-index: 1; display: grid; place-items: center; width: 32px; aspect-ratio: 1; border-radius: 50%; color: white; background: var(--blue); }
.scope-track li[data-stage-status="own"] .scope-glyph { border: 1px dashed var(--red); color: var(--red); background: var(--paper); }
.scope-track li[data-stage-status="confirm"] .scope-glyph { border: 1px solid #827253; color: #5d4e34; background: #f0e2c5; }
.scope-track li > div { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; color: var(--navy); font-size: var(--support); line-height: 1.5; overflow-wrap: anywhere; }
.scope-track b { font-size: 1rem; }
.scope-track [data-scope-detail] { display: block; flex-basis: 100%; margin-top: 2px; }
.scope-track small { display: inline-block; margin-top: 4px; padding: 2px 4px; border-radius: 2px; color: var(--blue); background: #e8edfb; font-size: var(--support); font-weight: 730; }
.scope-track [data-stage-status="own"] small { color: #7e3025; background: #f6e5db; }
.scope-track [data-stage-status="confirm"] small { color: #5c4b2c; background: #f0e2c5; }
.scope-provenance { padding: .2rem .7rem .65rem; color: var(--muted); font-size: var(--support); line-height: 1.45; }
.scope-provenance > span { display: block; }
.scope-source { display: inline-flex; gap: 4px; align-items: center; min-height: 44px; font-size: var(--support); line-height: 1.45; }
.compare td, .compare th { overflow-wrap: anywhere; }
@supports (grid-template-rows: subgrid) {
  .scope-card { display: grid; grid-template-rows: subgrid; grid-row: span 6; row-gap: 0; }
  .scope-track { display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: 0; }
}

.trail-diagram { padding: clamp(15px, 3.2vw, 37px); border-bottom: 1px solid var(--tile-edge); }
.trail-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 6px 12px; margin-bottom: 13px; }
.trail-heading h3 { color: var(--blue); font-size: clamp(1.75rem, 3.6vw, 3.15rem); }
.trail-heading p { color: var(--muted); font-size: var(--support); font-weight: 650; }
.trail-metrics {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 6px;
  margin: 0 0 11px;
}
.trail-metrics > div, .effort-time > div { display: flex; flex-direction: column-reverse; justify-content: start; gap: 6px; padding: 12px; border: 1px solid var(--tile-edge); background: #f4efe3; }
.trail-metrics > div:first-child { border-top: 4px solid var(--blue); background: #e9edf9; }
.trail-metrics > div:nth-child(2) { border-top: 4px dashed #879abd; }
.trail-metrics > div:nth-child(3) { border-top: 4px solid #d1a04c; background: #fbf1d9; }
.trail-metrics dt, .effort-time dt { font-size: var(--support); line-height: 1.5; color: var(--muted); }
.trail-metrics dd, .effort-time dd { margin: 0; font: 750 clamp(1.4rem, 3.3vw, 3.05rem)/1 var(--display); color: var(--blue); letter-spacing: -.035em; }
.trail-schematic {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #122b7c;
  background: #15338b;
  color: var(--white);
}
.trail-relief { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.trail-water { fill: none; stroke: #5180d9; stroke-width: 15; opacity: .43; }
.trail-contours { fill: none; stroke: #87a7fb; stroke-width: 1; opacity: .27; }
.trail-stops { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 22px 9px 16px; list-style: none; }
.trail-stops li { position: relative; min-width: 0; text-align: center; }
.trail-stops li:not(:last-child)::before { content: ""; position: absolute; z-index: -1; top: 23px; left: 50%; right: -50%; border-top: 2px dashed #d7e0ff; }
.trail-stops li:nth-child(2)::before { border-top: 4px solid var(--gold); }
.trail-pin {
  display: inline-grid;
  place-items: center;
  width: 48px;
  aspect-ratio: 1;
  border: 2px solid #dde7ff;
  border-radius: 50%;
  color: var(--blue);
  background: var(--white);
}
.trail-stops li:nth-child(2) .trail-pin, .trail-stops li:nth-child(3) .trail-pin { border-color: #fff0c9; background: var(--gold); }
.trail-stop-name { display: grid; min-height: 48px; align-content: start; gap: 2px; margin-top: 6px; font-size: 1rem; line-height: 1.4; }
.trail-stop-name span { color: #d9e3ff; font-size: var(--support); }
.trail-band { display: inline-flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-left: 50%; width: 100%; padding: 4px; color: #f4f6ff; font-size: var(--support); line-height: 1.45; }
.trail-band strong { color: var(--gold); }
.trail-returns { border: 1px solid var(--tile-edge); border-top: 0; background: #f8f4e9; }
.trail-return { display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); align-items: center; gap: 10px 18px; padding: 12px; }
.trail-return + .trail-return { border-top: 1px solid var(--tile-edge); }
.journey-ready .trail-return { border-top: 0; animation: atlas-page .28s ease both; }
.trail-return-network { display: grid; gap: 7px; }
.trail-connection + .trail-connection { border-top: 1px solid var(--line); padding-top: 7px; }
.trail-connection small { display: block; margin-top: 3px; color: var(--muted); font-size: var(--support); line-height: 1.5; }
.trail-return-line { display: flex; align-items: center; gap: 6px; color: var(--blue); font-size: 1rem; font-weight: 700; line-height: 1.45; }
.trail-return-line > span:nth-child(2) { display: flex; flex: 1; align-items: center; gap: 4px; color: var(--red); }
.trail-return-line > span:nth-child(2)::before, .trail-return-line > span:nth-child(2)::after { content: ""; flex: 1; min-width: 4px; border-top: 1px dashed var(--red); }
.trail-return b { color: var(--navy); font-size: 1rem; }
.trail-return p { margin-top: 2px; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.trail-sources { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: var(--support); }
.trail-sources p { flex-basis: 100%; color: var(--muted); }
.trail-sources a { display: inline-flex; gap: 5px; align-items: center; min-height: 44px; }
.effort-time { width: min(100%, 18rem); margin: 0; }
.effort-time > div { border-top: 4px solid var(--blue); background: var(--paper); }

@media (min-width: 741px) {
  .landing-hero { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(19px, 3.4vw, 52px); }
  .landing-hero .hero-copy h1 { font-size: clamp(3.5rem, 7.05vw, 7.1rem); }
  :lang(fr) .landing-hero .hero-copy h1 { font-size: clamp(3.2rem, 6.6vw, 6.6rem); }
}
@media (max-width: 740px) {
  .cover-plate { min-height: clamp(220px, 53vw, 385px); }
  .cover-caption { min-height: 0; }
  .cover-plate .atlas-map-heading { padding: .7rem .75rem .25rem; }
  .atlas-pin text, .cover-plate .atlas-pin text { font-size: 24px; }
  .trail-stop-name { min-height: 52px; }
}
@media (max-width: 540px) {
  .atlas-cover { box-shadow: 4px 4px 0 #e1d4be; }
  .cover-plate { grid-template-columns: minmax(0, 2.75fr) minmax(0, 1fr); min-height: 0; }
  .cover-plate .atlas-map { box-shadow: inset 0 0 0 4px #17368d, inset 0 0 0 5px #9eb8ff50; }
  .cover-plate .atlas-map-heading { min-height: 0; }
  .cover-plate .atlas-map-heading > span:first-child { gap: 5px; }
  .cover-plate .atlas-rose svg { width: 18px; height: 18px; }
  .cover-plate .atlas-pin text { font-size: 27px; stroke-width: 5px; }
  .cover-choices .tool-choice > div { gap: 5px; }
  .timed-chain { grid-template-columns: 1fr; }
  .timed-chain li { grid-template-columns: auto 1fr; gap: 6px; align-items: start; }
  .scope-card-head { padding: 8px 6px; }
  .scope-track { padding-inline: 5px; }
  .scope-track li { gap: 4px; padding-block: 7px; }
  .scope-track li:not(:last-child)::after { top: 33px; left: 11px; }
  .scope-glyph { width: 24px; }
  .scope-glyph .icon { width: 15px; height: 15px; }
  .trail-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trail-metrics > div { padding: 9px 7px; }
  .trail-metrics > div:first-child { grid-column: 1/-1; }
  .trail-stops { grid-template-columns: minmax(0, 1fr); padding: 14px 11px; }
  .trail-stops li { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 9px; min-height: 45px; text-align: left; }
  .trail-pin { width: 36px; }
  .trail-stop-name { align-self: center; min-height: 0; margin: 0; }
  .trail-stops li:not(:last-child)::before { top: 18px; bottom: -18px; left: 17px; right: auto; border-top: 0; border-left: 2px dashed #d7e0ff; }
  .trail-stops li:nth-child(2)::before { border-top: 0; border-left: 4px solid var(--gold); }
  .trail-band { grid-column: 2; justify-content: start; width: auto; padding: 3px 0 12px; margin-left: 0; }
  .trail-return { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .scope-grid { grid-template-columns: minmax(0, 1fr); }
  .scope-card { display: flex; }
  .scope-track { display: block; }
  .scope-card-head, .scope-track { padding-inline: .7rem; }
}
@media (max-width: 360px) {
  .cover-plate { grid-template-columns: minmax(0, 1fr); }
  .cover-art { min-height: 76px; border: 0; border-top: 1px solid var(--tile-edge); }
  .cover-art img { object-position: center 51%; }
}
@media (max-height: 26em) {
  .atlas-visual { position: relative; top: auto; }
}

/* Selo do idioma do guia e lista de produtos da Civitatis */
.guide-seal { display: inline-flex; align-items: center; gap: .4em; margin-top: .6rem; padding: .25rem .7rem; border: 1px solid var(--line); background: var(--sand-light); font-size: .95rem; font-weight: 700; color: var(--blue); }
.guide-seal .icon { flex: none; }
.offer-list { grid-template-columns: minmax(0, 1fr); }
.offer-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.offer-item { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; padding: 1rem; border: 1px solid var(--line); background: var(--sand-light); }
.offer-item h3 { font-size: 1.1rem; color: var(--blue); }
.offer-item .guide-seal { margin-top: 0; background: var(--paper); }
.offer-item p { font-size: 1rem; line-height: 1.5; }
.offer-item > a:not(.button) { display: inline-flex; align-items: center; gap: .4em; min-height: 44px; font-weight: 700; }
