/* Forest light around a quiet, readable navigation card. */
.route-section {
  position:relative;
  z-index:25;
  isolation:isolate;
  overflow:hidden;
  padding-block:clamp(78px,7.8vw,118px);
  background:#18372d;
  color:#fff9ef;
}
.route-section-backdrop,
.route-section-backdrop > img {
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
}
.route-section-backdrop { z-index:-3;pointer-events:none; }
.route-section-backdrop > img { object-fit:cover;object-position:center 53%; }
.route-section::before {
  content:"";
  position:absolute;
  z-index:-2;
  inset:0;
  background:linear-gradient(90deg,#09291feb 0%,#0c2c22d9 27%,#122e217d 53%,#12291b29 100%),linear-gradient(0deg,#0a241e80,transparent 65%);
  pointer-events:none;
}
.route-section::after {
  content:"";
  position:absolute;
  z-index:-1;
  inset:0;
  border-block:1px solid #f3e3c31c;
  pointer-events:none;
}
.route-layout {
  display:grid;
  grid-template-columns:minmax(0,.72fr) minmax(0,1.4fr);
  gap:clamp(32px,4.4vw,68px);
  align-items:center;
}
.route-copy { min-width:0;padding-block:12px; }
.route-copy .eyebrow { margin-bottom:24px;color:#d9caa9;font-size:14px;line-height:1.6;letter-spacing:.085em; }
.route-copy h2 { font-size:clamp(43px,4.3vw,66px);line-height:1.12;max-width:10em;color:#fff9ee; }
.route-copy h2 em { font-weight:400;color:#d8c79f; }
.route-copy .route-lead { font-family:var(--serif);font-size:27px;line-height:1.45;color:#fff5df;margin-top:28px; }
.route-copy > p:not(.route-lead) { font-size:18px;line-height:1.75;color:#e0e7db;max-width:390px;margin-top:17px; }
.route-copy .button { margin-top:28px;max-width:100%;white-space:normal;gap:20px; }
.route-copy .button.button-dark { background:#f6edda;color:#234734;border-color:#e4d1a6;box-shadow:0 5px 18px #051c1933; }
.route-copy .button > .arrow { border-color:#a68d6099; }
.route-copy .button:focus-visible { outline-color:#fff7e5;box-shadow:0 0 0 4px #234734!important; }
.route-destination { display:flex;align-items:center;gap:12px;margin-top:28px;padding-top:23px;border-top:1px solid #e8e4ce38;color:#d7e0d2;font-size:16px;line-height:1.65; }
.route-destination svg { width:26px;height:30px;flex:0 0 26px;stroke:#d9c59a;stroke-width:1.2;fill:none; }
.route-destination strong { display:block;color:#fff8e9;font-size:18px;font-weight:400; }
.travel-navigator { position:relative;min-width:0;margin:0;border:1px solid #fff8e1b3;background:#f8f6ee;color:#254332;border-radius:16px;overflow:hidden;box-shadow:0 22px 65px #071f1a59,0 2px 8px #071f1a1a; }
.route-nav-top { position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px;background:#fbfaf4;color:#254634;border-bottom:1px solid #d8ded0; }
.route-nav-direction { display:flex;align-items:center;gap:13px;min-width:0; }
.route-direction-icon { display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;background:#264c39;color:#fff8e8;border:1px solid #355b43;border-radius:11px;box-shadow:inset 0 1px 0 #fff4ce1a; }
.route-direction-icon svg { width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round; }
.route-nav-direction small { display:block;color:#60755f;font-size:14px;line-height:1.5; }
.route-nav-direction strong { display:block;font-family:var(--sans);font-size:18px;line-height:1.45;font-weight:400;margin-top:2px; }
.route-road-badge { display:block;flex:0 0 auto;padding:5px 11px;border:1px solid #b9c8b0;border-radius:5px;background:#eef3e6;color:#31533d;font-size:16px;line-height:1.5;white-space:nowrap; }
.route-map-viewport { position:relative;aspect-ratio:5/3;isolation:isolate;overflow:hidden;background:#e8ecdf; }
.route-map-svg { position:absolute;inset:0;display:block;width:100%;height:100%; }
.route-car-art { transform:scale(var(--route-car-scale,1));transform-origin:0 0; }
.route-trace { stroke-dasharray:1;stroke-dashoffset:1; }
.route-town-label { font-family:Arial,sans-serif;font-size:18px;font-weight:400;fill:#4d5b4b;paint-order:stroke;stroke:#f9faf1;stroke-width:4px;stroke-linejoin:round; }
.route-town-label--major { font-size:23px;font-weight:500;fill:#304731;stroke-width:5px; }
.route-town-label--minor { font-size:16px;fill:#65735e;stroke-width:3px; }
.route-map-label { position:absolute;z-index:1;pointer-events:none;color:#334e37;font-size:17px;line-height:1.3; }
.route-map-label--moscow { left:8%;top:79%;font-size:20px; }
.route-map-label--park { right:5%;top:6%;max-width:43%;text-align:right; }
.route-map-label--park strong { display:block;font-family:var(--sans);font-size:23px;font-weight:400;line-height:1.25; }
.route-map-label--park span { display:block;color:#5c7455;font-size:14px;line-height:1.5;margin-top:4px; }
.route-map-road { position:absolute;left:46.5%;top:56%;transform:translateX(-50%);padding:2px 10px;border:1px solid #98a98d;border-radius:4px;background:#f8f8edf2;color:#365138;font-size:14px;line-height:1.5; }
.route-map-compass { position:absolute;top:16px;left:17px;display:grid;place-items:center;width:35px;height:35px;background:#fffef6ed;border:1px solid #bac8b0;border-radius:50%;color:#4f684b;box-shadow:0 2px 8px #38503912; }
.route-map-compass svg { width:17px;height:17px;fill:currentColor; }
.route-trip-summary { display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:20px 22px 15px;background:#fbfaf4;border-top:1px solid #d8ded0; }
.route-trip-caption { min-width:0; }
.route-trip-caption > strong { display:block;font-family:var(--sans);font-size:23px;line-height:1.35;font-weight:400;color:#254b35; }
.route-trip-caption > span { display:block;font-size:14px;line-height:1.65;color:#5e735b;margin-top:5px; }
.route-controls { display:flex;align-items:center;gap:8px; }
.route-controls[hidden] { display:none; }
.route-controls button { display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:44px;min-height:44px;padding:10px 13px;background:#eef1e6;border:1px solid #bdcbb4;border-radius:8px;color:#35553c;font-size:15px;line-height:1.4;white-space:nowrap;transition:background-color .2s ease,border-color .2s ease; }
.route-controls button:first-child { background:#244c36;color:#fff9ec;border-color:#244c36; }
.route-controls svg { width:15px;height:15px;fill:currentColor;flex:0 0 15px; }
.route-controls button:focus-visible,
.route-open-maps:focus-visible,
.route-map-attribution a:focus-visible { outline:2px solid #365a3d;outline-offset:3px; }
.route-control-pause { display:none; }
[data-route-playing="true"] .route-control-pause { display:block; }
[data-route-playing="true"] .route-control-play { display:none; }
.route-map-note { margin:0;padding:0 22px 17px;background:#fbfaf4;font-size:14px;line-height:1.65;color:#64735d; }
.route-map-meta { display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 18px;padding:0 22px 19px;background:#fbfaf4; }
.route-open-maps { display:inline-flex;align-items:center;gap:9px;min-height:44px;color:#36573f;font-size:16px;line-height:1.5;text-decoration:underline;text-decoration-color:#a49c7c;text-underline-offset:5px; }
.route-map-attribution { margin:0;max-width:100%;font-size:14px;line-height:1.65;color:#68755b; }
.route-map-attribution a { text-decoration:underline;text-decoration-color:#b8c0aa;text-underline-offset:3px; }
@media (hover:hover) and (pointer:fine) {
  .route-copy .button.button-dark:hover { background:#fff8e9;border-color:#e9d8ad;color:#234734;box-shadow:0 8px 22px #051c194d; }
  .route-controls button:hover { background:#e0e8d7;border-color:#8fa582; }
  .route-controls button:first-child:hover { background:#355e42;border-color:#355e42; }
  .route-open-maps:hover { color:#1f402c;text-decoration-color:currentColor; }
}
@media (max-width:1120px) {
  .route-layout { grid-template-columns:minmax(0,.74fr) minmax(0,1.26fr);gap:30px; }
  .route-copy h2 { font-size:46px; }
  .route-copy .route-lead { font-size:25px; }
  .route-copy > p:not(.route-lead) { font-size:17px; }
  .route-nav-top { padding:16px 19px; }
  .route-nav-direction strong { font-size:17px; }
  .route-trip-summary { padding:18px 19px 13px; }
  .route-trip-caption > strong { font-size:24px; }
  .route-map-note { padding:0 19px 16px; }
  .route-map-meta { padding:0 19px 17px; }
}
@media (max-width:800px) {
  .route-section { padding-block:66px; }
  .route-section-backdrop > img { object-position:63% center; }
  .route-section::before { background:linear-gradient(180deg,#092a20db 0%,#102f23bf 38%,#102f238c 64%,#10271fcc 100%); }
  .route-layout { display:block; }
  .route-copy { padding:0;margin-bottom:35px;max-width:610px; }
  .route-copy .eyebrow { margin-bottom:21px; }
  .route-copy h2 { font-size:clamp(43px,7vw,59px);max-width:12em; }
  .route-copy .route-lead { font-size:27px;margin-top:23px; }
  .route-copy > p:not(.route-lead) { max-width:540px;font-size:18px; }
  .route-copy .button { margin-top:25px; }
  .route-destination { max-width:540px;margin-top:24px;padding-top:20px; }
  .travel-navigator { box-shadow:0 16px 40px #051c194d; }
  .route-map-label--park { top:auto;bottom:9%;max-width:48%; }
  .route-map-label--park strong { font-size:25px; }
  .route-map-meta { gap:8px 18px; }
}
@media (max-width:480px) {
  .route-section { padding-block:55px; }
  .route-copy { margin-bottom:30px; }
  .route-copy .eyebrow { font-size:14px;letter-spacing:.075em; }
  .route-copy h2 { font-size:clamp(41px,10.6vw,50px); }
  .route-copy .route-lead { font-size:25px; }
  .route-copy > p:not(.route-lead) { font-size:17px;line-height:1.75; }
  .route-copy .button { min-height:54px; }
  .route-destination { font-size:15px; }
  .travel-navigator { border-radius:12px; }
  .route-nav-top { padding:14px 13px;gap:10px; }
  .route-nav-direction { gap:10px; }
  .route-direction-icon { width:39px;height:41px;flex-basis:39px;border-radius:9px; }
  .route-direction-icon svg { width:22px;height:22px; }
  .route-nav-direction small { font-size:14px; }
  .route-nav-direction strong { font-size:16px; }
  .route-road-badge { font-size:14px;padding:4px 7px; }
  .route-map-label--moscow { font-size:17px; }
  .route-map-label--park strong { font-size:21px; }
  .route-map-label--park span { font-size:14px;margin-top:1px; }
  .route-town-label { font-size:23px;stroke-width:5px; }
  .route-town-label--major { font-size:27px;stroke-width:6px; }
  .route-town-label--minor { font-size:21px;stroke-width:4px; }
  .route-map-compass { width:29px;height:29px;left:12px;top:12px; }
  .route-map-compass svg { width:15px;height:15px; }
  .route-map-road { font-size:14px;padding:1px 7px; }
  .route-trip-summary { padding:18px 16px 13px;gap:15px; }
  .route-trip-caption > strong { font-size:25px; }
  .route-trip-caption > span { font-size:14px; }
  .route-controls { width:100%;padding-top:13px;border-top:1px solid #dce2d2; }
  .route-controls button { flex:1;min-width:0;min-height:46px;font-size:15px; }
  .route-map-note { padding:0 16px 13px;font-size:14px; }
  .route-map-meta { display:block;padding:0 16px 16px; }
  .route-open-maps { font-size:16px;margin-bottom:5px; }
  .route-map-attribution { font-size:14px;line-height:1.6; }
}
@media (prefers-reduced-motion:reduce) {
  .route-controls { display:none; }
  .route-controls button { transition:none; }
}

/* Keep the two primary places readable even when the regional map is small. */
.route-map-label--moscow { display:none; }
.route-map-label--park { right:4%;top:13%;max-width:44%; }
.route-map-label--park strong { font-family:var(--sans);font-size:20px;white-space:nowrap; }
.route-map-label--park span { font-size:14px; }
@media(max-width:800px) {
  .route-map-label--park { top:10%;bottom:auto; }
}
@media(max-width:480px) {
  .route-town-label { display:none; }
  .route-map-label--moscow { display:block;left:5%;top:31%;font-size:16px; }
  .route-map-label--park { top:5%;bottom:auto;right:4%;max-width:48%; }
  .route-map-label--park strong { font-size:16px; }
  .route-map-label--park span { display:none; }
}

/* Main place names follow the real map instead of the former decorative grid. */
.route-town-label { font-size:20px; }
.route-town-label--major { font-size:26px;font-weight:600; }
.route-town-label--minor { font-size:20px; }
.route-map-road { left:51%;top:24%; }
