.iter-lede {
  max-width: 64ch;
  color: #25291f;
  font-family: "Crimson Pro", Georgia, serif;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.65rem);
  line-height: 1.45;
}

.iter-factbox,
.iter-sources,
.iter-method-note {
  margin-block: 2rem;
  border: 1px solid rgba(37, 41, 31, 0.16);
  border-radius: 1rem;
  background: #fbf5df;
  box-shadow: 0 8px 24px rgba(10, 11, 8, 0.06);
  padding: clamp(1rem, 3vw, 1.5rem);
}

.iter-hispaniae-page .wp-block-post-title { display: none; }
.iter-hispaniae-page .wp-block-post-content { margin-top: 0; }
.iter-hero {
  --iter-hero-image: linear-gradient(135deg, #25291f, #090a08);
  position: relative;
  left: 50%;
  display: grid;
  align-items: end;
  width: 100vw;
  max-width: none !important;
  min-height: min(760px, 82vh);
  margin: -4.6rem 0 clamp(2rem, 6vw, 5rem);
  transform: translateX(-50%);
  overflow: hidden;
  background-image: var(--iter-hero-image);
  background-position: center;
  background-size: cover;
  color: #fffdf7;
}
.iter-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,10,8,.9) 0%, rgba(9,10,8,.64) 48%, rgba(9,10,8,.16) 100%), linear-gradient(0deg, rgba(9,10,8,.72), transparent 60%); }
.iter-hero-content { position: relative; z-index: 2; width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 8vw, 6rem); }
.iter-hero-kicker { margin: 0 0 .7rem; color: #e4c982; font: 800 .78rem/1.2 Roboto, Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.iter-hero h1 { max-width: 820px; margin: 0; color: #fffdf7; font-size: clamp(4rem, 10vw, 8.5rem); line-height: .86; letter-spacing: -.045em; }
.iter-hero-content > p:not(.iter-hero-kicker) { max-width: 720px; margin: 1.4rem 0 1.8rem; color: rgba(255,253,247,.9); font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.5; }
.iter-hero-action { display: inline-flex; gap: .65rem; align-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: #e4c982; color: #090a08; font-weight: 800; padding: .8rem 1.1rem; text-decoration: none; }
.iter-hero-action:hover { background: #fffdf7; color: #090a08; }
.iter-featured { margin: 0 0 2rem; }
.iter-featured img { width: 100%; max-height: 680px; border-radius: 1.25rem; object-fit: cover; aspect-ratio: 16 / 9; }
.iter-featured figcaption { margin-top: .55rem; color: #666a62; font-size: .82rem; }
body.single-iter_lugar .wp-block-post-featured-image,
body.single-iter_monumento .wp-block-post-featured-image,
body.single-iter_corredor .wp-block-post-featured-image { display: none !important; }

.iter-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.iter-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(37, 41, 31, 0.18);
  border-radius: 999px;
  background: #fffdf7;
  color: #25291f;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.72rem;
  text-transform: uppercase;
}

.iter-evidence-confirmado { background: #ddebdd; }
.iter-evidence-probable,
.iter-gate-advertencia { background: #f8e5b8; }
.iter-evidence-hipotesis,
.iter-evidence-ubicacion-desconocida,
.iter-gate-retener { background: #f4d5d0; }

.iter-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}

.iter-facts > div {
  border-top: 1px solid rgba(37, 41, 31, 0.12);
  padding: 0.8rem 0;
}

.iter-facts > div:nth-child(odd) { padding-right: 1rem; }
.iter-facts dt { color: #5e625a; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; }
.iter-facts dd { margin: 0.2rem 0 0; font-weight: 650; }
.iter-caution,
.iter-review-note { border-left: 3px solid #a89668; margin-bottom: 0; padding-left: 1rem; }

.iter-directory-section,
.iter-related { margin-block: clamp(1.2rem, 3vw, 2.5rem); }
.iter-directory-section { border-top: 1px solid rgba(37,41,31,.18); }
.iter-directory-section > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none; padding: 1.25rem 0; }
.iter-directory-section > summary::-webkit-details-marker { display: none; }
.iter-directory-section > summary span { font-family: "Crimson Pro", Georgia, serif; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; }
.iter-directory-section > summary small { display: inline-flex; align-items: center; gap: .55rem; color: #806f43; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.iter-directory-section > summary small::after { content: "+"; display: grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid #b9b09b; border-radius: 50%; color: #25291f; font-size: 1.2rem; }
.iter-directory-section[open] > summary small::after { content: "−"; }
.iter-directory-section > .iter-card-grid { padding: .5rem 0 2rem; }
.iter-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.iter-card {
  overflow: hidden;
  border: 1px solid rgba(37, 41, 31, 0.14);
  border-radius: 1rem;
  background: #fffdf7;
  box-shadow: 0 8px 24px rgba(10, 11, 8, 0.06);
  padding: 0;
}
.iter-card-body { padding: 1.15rem 1.25rem 1.3rem; }
.iter-card-image { display: block; overflow: hidden; background: #d9d2bf; aspect-ratio: 16 / 9; }
.iter-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.iter-card:hover .iter-card-image img { transform: scale(1.035); }
.iter-card h3 { margin: 0.35rem 0 0.75rem; font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.5rem); }
.iter-card h3 a { color: #090a08; text-decoration: none; }
.iter-card h3 a:hover { color: #806f43; text-decoration: underline; }
.iter-card p:last-child { margin-bottom: 0; color: #5e625a; font-size: 0.92rem; }
.iter-card-kicker { margin: 0; color: #806f43 !important; font-size: 0.72rem !important; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.iter-sources > summary { cursor: pointer; list-style: none; color: #25291f; font-family: "Crimson Pro", Georgia, serif; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
.iter-sources > summary::-webkit-details-marker { display: none; }
.iter-sources > summary::after { content: "+"; float: right; font-family: Roboto, Arial, sans-serif; }
.iter-sources[open] > summary::after { content: "−"; }
.iter-sources-body { padding-top: .8rem; }
.iter-sources li + li { margin-top: 0.35rem; }

@media (max-width: 900px) {
  .iter-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .iter-card-grid,
  .iter-facts { grid-template-columns: 1fr; }
  .iter-facts > div:nth-child(odd) { padding-right: 0; }
  .iter-hero { min-height: 68vh; }
  .iter-hero::after { background: linear-gradient(0deg, rgba(9,10,8,.9), rgba(9,10,8,.25)); }
  .iter-hero h1 { font-size: clamp(3.4rem, 18vw, 5.5rem); }
}

/* Fase 3 · explorador cartográfico */
.iter-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  clip-path: inset(50%) !important;
}
.iter-explorer {
  --iter-ink: #090a08;
  --iter-olive: #25291f;
  --iter-bronze: #a89668;
  --iter-gold: #e4c982;
  --iter-ivory: #fbf5df;
  --iter-paper: #fffdf7;
  --iter-muted: #666a62;
  width: min(1500px, calc(100vw - clamp(1rem, 4vw, 4rem)));
  max-width: none !important;
  position: relative;
  left: 50%;
  margin: 2rem 0;
  transform: translateX(-50%);
  color: var(--iter-olive);
  font-family: Roboto, Arial, sans-serif;
}

.iter-app-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  border-radius: 1.4rem 1.4rem 0 0;
  background: linear-gradient(135deg, #090a08, #25291f);
  color: var(--iter-ivory);
  padding: clamp(1.25rem, 3vw, 2.1rem);
}
.iter-app-header h2 { margin: 0.2rem 0 0.35rem; color: var(--iter-ivory); font-size: clamp(1.65rem, 3vw, 2.7rem); }
.iter-app-header p { max-width: 66ch; margin: 0; color: #d6d7d2; }
.iter-app-eyebrow { color: var(--iter-gold) !important; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }

.iter-mode-switch { display: inline-flex; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 0.25rem; }
.iter-mode-switch button { border: 0; border-radius: 999px; background: transparent; color: #d6d7d2; cursor: pointer; font: inherit; font-size: 0.86rem; font-weight: 750; padding: 0.62rem 0.9rem; }
.iter-mode-switch button.is-active { background: var(--iter-gold); color: var(--iter-ink); }
.iter-explorer button:focus-visible,
.iter-explorer input:focus-visible,
.iter-explorer select:focus-visible,
.iter-explorer a:focus-visible,
.iter-explorer .leaflet-interactive:focus-visible,
.iter-explorer .leaflet-control-zoom a:focus-visible {
  outline: 3px solid #e4c982;
  outline-offset: 2px;
}

.iter-app-toolbar {
  display: grid;
  grid-template-columns: minmax(230px, 1.5fr) repeat(2, minmax(180px, 1fr)) auto;
  gap: 0.8rem;
  border-inline: 1px solid #d8d2c2;
  background: var(--iter-paper);
  padding: 0.9rem 1rem;
}
.iter-app-toolbar label { display: grid; gap: 0.3rem; margin: 0; }
.iter-app-toolbar label > span { color: var(--iter-muted); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.iter-app-toolbar input,
.iter-app-toolbar select { width: 100%; min-height: 44px; border: 1px solid #cfc8b7; border-radius: 0.7rem; background: #fff; color: var(--iter-ink); font: inherit; padding: 0.6rem 0.75rem; }
.iter-app-toolbar input:focus,
.iter-app-toolbar select:focus { outline: 3px solid rgba(228,201,130,.4); border-color: #806f43; }
.iter-reset-button { align-self: end; min-height: 44px; border: 1px solid #b9b09b; border-radius: 0.7rem; background: transparent; color: var(--iter-olive); cursor: pointer; font-weight: 750; padding: 0.6rem 0.9rem; }
.iter-reset-button:hover { background: var(--iter-ivory); }

.iter-app-layout { position: relative; display: grid; grid-template-columns: 290px minmax(0, 1fr) 360px; grid-template-rows: minmax(0, 1fr); height: min(780px, 78vh); min-height: 620px; border: 1px solid #d8d2c2; background: #ece8dc; overflow: hidden; }
.iter-map-sidebar,
.iter-detail-panel { min-width: 0; min-height: 0; background: var(--iter-paper); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.iter-map-sidebar { border-right: 1px solid #d8d2c2; }
.iter-detail-panel { position: relative; border-left: 1px solid #d8d2c2; padding: 1.25rem; }
.iter-map-stage { position: relative; min-width: 0; background: #ded9c9; }
.iter-map { position: absolute; inset: 0; z-index: 1; background: #dcd8ca; }
.iter-map-loading { position: absolute; z-index: 500; left: 50%; top: 1rem; transform: translateX(-50%); border-radius: 999px; background: rgba(9,10,8,.88); color: var(--iter-ivory); font-size: 0.82rem; padding: 0.55rem 0.9rem; box-shadow: 0 8px 24px rgba(0,0,0,.16); }
.iter-map-loading[hidden] { display: none; }
.iter-map-loading.is-error { border-radius: 0.75rem; background: #7b342e; text-align: center; }

.iter-legend { border-bottom: 1px solid #ded8c9; padding: 1rem; }
.iter-sidebar-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.iter-sidebar-heading h3 { margin: 0; font-size: 1.2rem; }
.iter-sidebar-heading button { border: 0; background: transparent; color: #806f43; cursor: pointer; font-size: 0.78rem; font-weight: 750; padding: 0.3rem; }
.iter-legend ul { display: grid; gap: 0.58rem; margin: 0.9rem 0; padding: 0; list-style: none; }
.iter-legend li { display: flex; align-items: center; gap: 0.55rem; color: #44483f; font-size: 0.78rem; line-height: 1.3; }
.iter-legend p { margin: 0; color: var(--iter-muted); font-size: 0.73rem; line-height: 1.45; }
.iter-legend-marker { flex: 0 0 auto; width: 13px; height: 13px; border: 2px solid #fffdf7; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.iter-legend-marker.is-confirmed { background: #315f4e; }
.iter-legend-marker.is-probable { background: var(--iter-gold); }
.iter-legend-marker.is-unlocated { border: 2px dashed #7a5c51; background: transparent; box-shadow: none; }
.iter-legend-line { flex: 0 0 auto; width: 28px; border-top: 4px solid #9b5f2f; }
.iter-legend-line.is-conjectured { border-top-style: dashed; opacity: .72; }

.iter-result-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; border-bottom: 1px solid #e2ddcf; padding: 0.85rem 1rem; }
.iter-result-summary strong { font-size: 0.9rem; }
.iter-result-summary span { color: var(--iter-muted); font-size: 0.7rem; text-align: right; }
.iter-results { padding: 0.5rem; }
.iter-result-card { display: grid; grid-template-columns: 52px 12px minmax(0,1fr) auto; align-items: center; gap: 0.65rem; width: 100%; border: 0; border-radius: 0.7rem; background: transparent; color: var(--iter-olive); cursor: pointer; padding: 0.6rem 0.5rem; text-align: left; }
.iter-result-thumb { width: 52px; height: 42px; border-radius: .5rem; background: #e8e1d2; object-fit: cover; }
.iter-result-thumb.is-empty { display: block; background: linear-gradient(135deg,#d9d2bf,#f3ead6); }
.iter-result-card:hover,
.iter-result-card.is-selected { background: var(--iter-ivory); }
.iter-result-card strong,
.iter-result-card small { display: block; }
.iter-result-card strong { font-size: 0.86rem; line-height: 1.2; }
.iter-result-card small { margin-top: 0.16rem; color: var(--iter-muted); font-size: 0.7rem; line-height: 1.25; }
.iter-result-card em { color: #7a4c45; font-size: 0.65rem; font-style: normal; font-weight: 750; }
.iter-result-dot { width: 9px; height: 9px; border-radius: 50%; background: #315f4e; }
.iter-result-dot.is-probable { background: #c59334; }
.iter-result-dot.is-hipotesis,
.iter-result-dot.is-ubicacion-desconocida,
.iter-result-dot.is-unlocated { border: 1px dashed #7a4c45; background: transparent; }

.iter-panel-close { position: sticky; z-index: 2; top: 0; float: right; width: 36px; height: 36px; border: 1px solid #d0c9b9; border-radius: 50%; background: rgba(255,253,247,.94); color: var(--iter-ink); cursor: pointer; font-size: 1.45rem; line-height: 1; }
.iter-panel-kicker,
.iter-panel-empty-kicker { margin: 0 2.8rem 0.35rem 0; color: #806f43; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.iter-detail-panel h3 { margin: 0 2.6rem 0.25rem 0; font-size: clamp(1.6rem, 2.5vw, 2.15rem); }
.iter-panel-modern { margin: 0 0 1rem; color: var(--iter-muted); font-size: 0.86rem; }
.iter-panel-hero { width: calc(100% + 2.5rem); max-width: none; height: 190px; margin: -1.25rem -1.25rem 1rem; object-fit: cover; }
.iter-panel-status { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1rem 0; }
.iter-location-state,
.iter-evidence-pill,
.iter-article-state { display: inline-flex; border-radius: 999px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em; padding: 0.38rem 0.6rem; text-transform: uppercase; }
.iter-location-state.is-available { background: #ddebdd; }
.iter-location-state.is-missing { background: #f4d5d0; }
.iter-evidence-pill { border: 1px solid #d0c9b9; background: #fff; }
.iter-evidence-pill.is-probable { background: #f8e5b8; }
.iter-evidence-pill.is-hipotesis,
.iter-evidence-pill.is-ubicacion-desconocida { background: #f4d5d0; }
.iter-detail-panel > div > p { font-size: 0.92rem; line-height: 1.6; }
.iter-panel-caution { margin: 1.1rem 0; border-left: 3px solid #b87346; background: #fff4de; padding: 0.9rem; }
.iter-panel-caution p { margin: 0.3rem 0 0; font-size: 0.8rem; }
.iter-panel-facts { display: grid; grid-template-columns: 1fr 1fr; margin: 1.1rem 0; }
.iter-panel-facts div { border-top: 1px solid #ded8c9; padding: 0.65rem 0.3rem 0.65rem 0; }
.iter-panel-facts dt { color: var(--iter-muted); font-size: 0.65rem; font-weight: 800; text-transform: uppercase; }
.iter-panel-facts dd { margin: 0.15rem 0 0; font-size: 0.78rem; font-weight: 650; overflow-wrap: anywhere; }
.iter-panel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem; margin: 1rem 0; }
.iter-panel-actions a { font-size: 0.78rem; font-weight: 750; }
.iter-panel-action { border-radius: 999px; background: var(--iter-gold); color: var(--iter-ink) !important; padding: 0.62rem 0.9rem; text-decoration: none; }
.iter-article-state { background: #ece9df; color: #696d65; }
.iter-panel-monuments { margin-top: 1.5rem; border-top: 1px solid #d8d2c2; padding-top: 1rem; }
.iter-panel-monuments h4 { margin: 0 0 0.8rem; font-family: "Crimson Pro", Georgia, serif; font-size: 1.25rem; }
.iter-panel-monuments article { display: grid; grid-template-columns: 90px minmax(0,1fr); gap: .8rem; overflow: hidden; border-radius: 0.85rem; background: var(--iter-ivory); padding: 0; }
.iter-panel-monument-thumb { width: 90px; height: 100%; min-height: 118px; object-fit: cover; }
.iter-panel-monument-body { min-width: 0; padding: .75rem .8rem .8rem 0; }
.iter-panel-monuments article + article { margin-top: 0.7rem; }
.iter-panel-monuments h5 { margin: 0.15rem 0 0.45rem; font-size: 1.05rem; }
.iter-panel-monuments article > p:not(.iter-panel-kicker) { margin: 0; font-size: 0.78rem; line-height: 1.5; }
.iter-empty-state { display: grid; gap: 0.25rem; margin: 0.5rem; border: 1px dashed #c9c0ae; border-radius: 0.8rem; color: var(--iter-muted); padding: 1rem; }
.iter-empty-state strong { color: var(--iter-olive); font-size: 0.85rem; }
.iter-empty-state span { font-size: 0.75rem; }

.iter-mobile-results { display: none; }
.iter-itinerary-panel { border: 1px solid #d8d2c2; border-top: 0; background: #f6f0df; padding: clamp(1rem, 3vw, 1.6rem); }
.iter-itinerary-panel[hidden] { display: none; }
.iter-itinerary-intro { display: grid; grid-template-columns: minmax(200px, .7fr) minmax(300px, 1.3fr); align-items: end; gap: 1rem 2rem; }
.iter-itinerary-intro .iter-app-eyebrow { grid-column: 1 / -1; margin: 0; }
.iter-itinerary-intro h3 { margin: 0; }
.iter-itinerary-intro > p:last-child { margin: 0; color: var(--iter-muted); font-size: 0.82rem; }
.iter-stage-list { display: flex; gap: 0; margin: 1.25rem 0 0; padding: 0 0 0.4rem; list-style: none; overflow-x: auto; scrollbar-width: thin; }
.iter-stage-list li { position: relative; flex: 0 0 170px; }
.iter-stage-list li::before { content: ""; position: absolute; left: 0; right: 0; top: 17px; border-top: 2px solid #b79e63; }
.iter-stage-list li:first-child::before { left: 50%; }
.iter-stage-list li:last-child::before { right: 50%; }
.iter-stage-list button { position: relative; z-index: 1; display: grid; justify-items: center; width: 100%; border: 0; background: transparent; color: var(--iter-olive); cursor: pointer; padding: 0; text-align: center; }
.iter-stage-list button > span { display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid var(--iter-paper); border-radius: 50%; background: #315f4e; color: #fff; box-shadow: 0 0 0 2px #315f4e; font-size: 0.7rem; font-weight: 800; }
.iter-stage-list .is-unlocated button > span { border-style: dashed; background: var(--iter-paper); color: #7a4c45; box-shadow: 0 0 0 2px #7a4c45; }
.iter-stage-list strong { margin-top: 0.65rem; font-size: 0.76rem; }
.iter-stage-list small { max-width: 140px; margin-top: 0.16rem; color: var(--iter-muted); font-size: 0.65rem; }

.iter-method-strip { display: flex; justify-content: space-between; gap: 1rem 2rem; border: 1px solid #d8d2c2; border-top: 0; border-radius: 0 0 1.4rem 1.4rem; background: var(--iter-paper); padding: 0.85rem 1.1rem; }
.iter-method-strip p { margin: 0; color: var(--iter-muted); font-size: 0.72rem; }
.iter-method-strip a { font-weight: 700; }
.iter-app-message { border: 1px solid #d6a66b; border-radius: 0.8rem; background: #fff4de; padding: 1rem; }

.iter-explorer .leaflet-control-attribution { max-width: min(72vw, 560px); background: rgba(255,255,255,.9); font-size: 9px; white-space: normal; }
.iter-explorer .leaflet-control-zoom a { color: var(--iter-ink); }
.iter-explorer .leaflet-container:focus-visible { outline: 4px solid #e4c982; outline-offset: -4px; }
.iter-explorer .leaflet-tooltip { border: 0; border-radius: 0.55rem; background: rgba(9,10,8,.92); color: var(--iter-ivory); font: 0.75rem/1.35 Roboto, Arial, sans-serif; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.iter-explorer .leaflet-tooltip::before { border-top-color: rgba(9,10,8,.92); }

@media (max-width: 1100px) {
  .iter-app-layout { grid-template-columns: 250px minmax(0, 1fr); }
  .iter-detail-panel { position: absolute; z-index: 700; top: 0; right: 0; bottom: 0; width: min(390px, 48vw); transform: translateX(105%); box-shadow: -18px 0 45px rgba(9,10,8,.16); transition: transform .25s ease; }
  .iter-detail-panel.is-open { transform: translateX(0); }
}

@media (max-width: 820px) {
  .iter-explorer { width: calc(100vw - 1rem); }
  .iter-app-header { display: grid; align-items: start; border-radius: 1rem 1rem 0 0; }
  .iter-mode-switch { width: 100%; }
  .iter-mode-switch button { flex: 1; }
  .iter-app-toolbar { grid-template-columns: 1fr 1fr; }
  .iter-search-field { grid-column: 1 / -1; }
  .iter-app-layout { display: block; min-height: 0; height: 70vh; max-height: 720px; }
  .iter-map-stage { position: absolute; inset: 0; }
  .iter-map-sidebar { position: absolute; z-index: 710; left: 0; right: 0; bottom: 0; max-height: 68%; border: 0; border-radius: 1rem 1rem 0 0; transform: translateY(105%); box-shadow: 0 -16px 40px rgba(9,10,8,.18); transition: transform .25s ease; }
  .show-mobile-results .iter-map-sidebar { transform: translateY(0); }
  .iter-legend { display: none; }
  .iter-mobile-results { position: absolute; z-index: 650; left: 50%; bottom: 1rem; display: block; transform: translateX(-50%); border: 0; border-radius: 999px; background: var(--iter-ink); color: var(--iter-ivory); cursor: pointer; font-weight: 750; padding: 0.7rem 1rem; box-shadow: 0 8px 24px rgba(0,0,0,.22); }
  .show-mobile-results .iter-mobile-results { display: none; }
  .iter-detail-panel { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 78%; border: 0; border-radius: 1rem 1rem 0 0; transform: translateY(105%); box-shadow: 0 -16px 40px rgba(9,10,8,.2); }
  .iter-detail-panel.is-open { transform: translateY(0); }
  .iter-panel-close { position: sticky; }
  .iter-method-strip { display: grid; border-radius: 0 0 1rem 1rem; }
  .iter-itinerary-intro { grid-template-columns: 1fr; }
  .iter-itinerary-intro .iter-app-eyebrow { grid-column: auto; }
}

@media (max-width: 540px) {
  .iter-app-header { padding: 1.1rem; }
  .iter-app-toolbar { grid-template-columns: 1fr; padding: 0.75rem; }
  .iter-search-field { grid-column: auto; }
  .iter-reset-button { width: 100%; }
  .iter-app-layout { height: 68vh; min-height: 520px; }
  .iter-detail-panel { padding: 1rem; }
  .iter-panel-facts { grid-template-columns: 1fr; }
  .iter-stage-list li { flex-basis: 145px; }
  .iter-method-strip { padding: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .iter-detail-panel,
  .iter-map-sidebar { transition: none; }
}
