/* Estate Atlas (Edition 26) inside the guide: pins, route, labels, motion. */
.atlas { background: #e0e5cc; }
.atlas .leaflet-container, .atlas.leaflet-container { font-family: var(--sans); background: #AACAC5; }   /* the river's colour, behind the tiles while they load */
.atlas .leaflet-control-attribution { font-size: 10px !important; background: rgba(248, 247, 234, .86) !important; max-width: 70%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atlas .leaflet-control-zoom { border: 1px solid #c8d0bf !important; box-shadow: none !important; margin: 0 12px 30px 0 !important; }
.atlas .leaflet-control-zoom a { background: #faf8ef !important; color: #203e3f !important; width: 40px !important; height: 40px !important; line-height: 40px !important; }
body.has-mini .atlas .leaflet-bottom { bottom: calc(var(--mini-h) + 18px); }
.river-label { font: italic 25px Georgia, serif; color: #4e7a80; letter-spacing: 5px; white-space: nowrap; transform: rotate(-28deg); opacity: .75; pointer-events: none; }
.map-label { background: transparent; border: 0; box-shadow: none; color: #22382c; font: 700 13px var(--sans); text-shadow: -1px -1px 1px #f8f5df, 1px 1px 1px #f8f5df, 0 0 5px #f8f5df; white-space: nowrap; }
.map-label::before { display: none; }
/* Building names (atlas.js _labels): small ink captions with a paper halo, like the map's own lettering. */
.bld-wrap { background: transparent; border: 0; }
.bld { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; text-align: center; cursor: pointer;
  font: 700 11px/13px Mulish, system-ui, sans-serif; color: #2b3a2e; letter-spacing: .01em;
  text-shadow: -1px -1px 0 #f8f5df, 1px -1px 0 #f8f5df, -1px 1px 0 #f8f5df, 1px 1px 0 #f8f5df, 0 0 4px #f8f5df; }
.bld.is-place { color: #042546; font-weight: 800; }

.pin-wrap { background: transparent; border: 0; }
/* Pin colours. The atlas is an illustration that looks the same in dark mode, so these are fixed. */
.atlas { --pin-line: #042546; --pin-done: #BF2B45; --pin-now: #EBAD3E; }   /* next stop: the app's gold */
.pin { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #23201f; border: 2.5px solid var(--pin-line);
  font: 900 14px/1 Mulish, system-ui, sans-serif; box-shadow: 0 3px 8px rgba(36, 30, 20, .3); animation: pinIn .45s cubic-bezier(.2, 1.5, .4, 1) both; animation-delay: calc(var(--i, 0) * 35ms); transition: transform .2s; }
.pin b { font-weight: 900; }
.pin.is-seq { width: 92px; border-radius: 17px; gap: 6px; display: flex; justify-content: center; padding: 0 10px; background: #2A404B; color: #fff; border-color: #fff; }
.pin.is-seq em { font: 800 12.5px/1 Mulish, sans-serif; font-style: normal; letter-spacing: .02em; }
.pin.is-done { background: var(--pin-done); border-color: #fff; color: #fff; }
.pin.is-now { background: var(--pin-now); color: #042546; border-color: #042546; transform: scale(1.12); }   /* the next stop, in gold */
.pin.is-now::after { content: ""; position: absolute; inset: -4px; border-radius: inherit; border: 2.5px solid var(--pin-now); animation: ring 1.7s ease-out infinite; }
.pin { position: relative; }
.pin.is-minor { width: 16px; height: 16px; border: 2px solid #8c7960; background: #faf8ed; box-shadow: 0 1px 3px rgba(36, 60, 53, .35); }
.pin.flash, .pin.arrive { animation: pinPulse .9s ease-out; }
.pin-wrap:hover .pin { transform: scale(1.1); }
.atlas.z-far .pin:not(.is-seq) { width: 28px; height: 28px; font-size: 12px; }
@keyframes pinIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes pinPulse { 0% { box-shadow: 0 0 0 0 rgba(4, 37, 70, .55); } 100% { box-shadow: 0 0 0 18px rgba(4, 37, 70, 0); } }
@keyframes ring { from { transform: scale(.8); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
.route-line.is-next { animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -14; } }
/* Free order (atlas.js _places): a small marker for every place, its name
   beside it. Navy: not seen yet. Red with a tick: visited. Grey: not in the
   walk. The nearest: in the app's gold, a larger marker and its name in a gold pill. */
.pmark { background: transparent; border: 0; overflow: visible; }
/* The next stop, both orders: a gold map pin, tip on the place (atlas.js DROP). */
.drop { position: relative; display: block; width: 30px; height: 40px; filter: drop-shadow(0 3px 3px rgba(4, 37, 70, .35)); animation: dropIn .4s cubic-bezier(.2, 1.4, .4, 1) both; transform-origin: 50% 100%; }
.drop svg { display: block; width: 100%; height: 100%; overflow: visible; }
.drop path { fill: #EBAD3E; stroke: #042546; stroke-width: 1.8; }
.drop circle { fill: #fff; stroke: #042546; stroke-width: 1.4; }
.drop b { position: absolute; left: 0; right: 0; top: 7px; text-align: center; font: 900 11px/15px Mulish, system-ui, sans-serif; color: #042546; }
.drop.flash { animation: dropIn .5s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes dropIn { from { transform: translateY(-10px) scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
.pmark.is-drop .plabel.side-top { bottom: calc(100% + 4px); }
/* Close in (zoom 18+), the other places are small pins: navy to see, red with
   a tick once visited, grey for a place not in the walk; the stop number
   (numbered walk) in the white centre. */
.drop.sm { width: 24px; height: 32px; animation: none; }
.drop.xs { width: 20px; height: 27px; animation: none; filter: drop-shadow(0 2px 2px rgba(4, 37, 70, .3)); }
.drop.is-todo path { fill: #042546; stroke: #fff; stroke-width: 2; }
.drop.is-done path { fill: #BF2B45; stroke: #fff; stroke-width: 2; }
.drop.is-other path { fill: #8C9A8E; stroke: #fff; stroke-width: 2; }
.drop.sm circle, .drop.xs circle { fill: #fff; stroke: none; }
.drop.sm b { top: 4.5px; font: 900 9px/13px Mulish, system-ui, sans-serif; color: #042546; }
.drop.sm.is-done b, .drop.xs.is-done b { color: #BF2B45; }
.drop.xs b { top: 3.5px; font: 900 8px/12px Mulish, system-ui, sans-serif; }
.pmark.is-pin .plabel.side-r { left: calc(50% + 8px); top: 36%; }
.pmark.is-pin .plabel.side-l { right: calc(50% + 8px); top: 36%; }
/* You are here (GPS): a blue dot with a pulsing halo. */
.me-wrap { background: transparent; border: 0; }
.me-dot { position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #2F6FC4; border: 3px solid #fff; box-sizing: border-box; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.me-dot::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; background: rgba(47, 111, 196, .45); animation: mePulse 1.8s ease-out infinite; z-index: -1; }
@keyframes mePulse { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .drop, .me-dot::after { animation: none; } }
.pmark::before { content: ""; position: absolute; inset: -8px; }   /* a 32px tap area round the 16px marker */
.pdot { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); box-sizing: border-box; width: 12px; height: 12px; border-radius: 50%;
  background: #042546; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); display: grid; place-items: center;
  color: #fff; font: 900 8px/1 Mulish, system-ui, sans-serif; }
.pdot.is-done { width: 15px; height: 15px; background: #BF2B45; }
.pdot.is-other { width: 9px; height: 9px; background: #8C9A8E; border-width: 1.5px; }
.pdot.is-now { width: 18px; height: 18px; border: 3px solid #042546; background: #EBAD3E; }
.pdot.is-now::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #EBAD3E; animation: ring 1.7s ease-out infinite; }
.pdot.flash { animation: pinPulse .9s ease-out; }
.plabel { position: absolute; top: 50%; transform: translateY(-50%); box-sizing: border-box; cursor: pointer;
  font: 800 12px/14px Mulish, system-ui, sans-serif; color: #042546; white-space: normal; overflow-wrap: normal; word-break: normal;
  text-shadow: -1px -1px 0 #f8f5df, 1px -1px 0 #f8f5df, -1px 1px 0 #f8f5df, 1px 1px 0 #f8f5df, 0 0 5px #f8f5df; }
.plabel.side-r { left: calc(50% + 9px); text-align: left; }
.plabel.side-l { right: calc(50% + 9px); text-align: right; }
.plabel.is-done { color: #A3233A; }
.plabel.is-other { color: #5D6A5F; font-weight: 700; font-size: 11px; }
.plabel.side-top { top: auto; bottom: calc(50% + 12px); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 4px 9px; border-radius: 10px; background: #F3C25E; color: #042546; text-shadow: none; border: 1.5px solid #042546; box-shadow: 0 2px 8px rgba(0, 0, 0, .28); }
@media (prefers-reduced-motion: reduce) { .pdot.is-now::after { animation: none; } }
/* Arrowheads on the leg into the next stop (atlas.js _arrows): navy like the route, white-edged to read on the illustration. */
.route-arrow-wrap { background: transparent; border: 0; pointer-events: none; }
.route-arrow { display: block; width: 20px; height: 20px; }
.route-arrow svg { display: block; width: 100%; height: 100%; overflow: visible; fill: #042546; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; paint-order: stroke; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .3)); }

/* Edition 26 ambient motion (map/motion.js) */
.water-fx { mix-blend-mode: soft-light; }
.cloud-layer { mix-blend-mode: multiply; opacity: .2; transition: opacity .6s; }
.leaflet-zoom-anim .cloud-layer { opacity: .12; }
.cloud { animation: drift 210s linear infinite; transform: translate(-300px, var(--y)); }
@keyframes drift { from { transform: translate(-320px, var(--y)); } to { transform: translate(1320px, calc(var(--y) - 260px)); } }
.batteau svg { width: 34px; height: 20px; overflow: visible; animation: row 1.6s ease-in-out infinite; }
.batteau .hull { fill: #6d4a2e; stroke: #3c2715; stroke-width: .8; }
.batteau .oar { stroke: #3c2715; stroke-width: 1.2; stroke-linecap: round; transform-origin: 17px 11px; animation: oar 1.6s ease-in-out infinite; }
.batteau .rower { fill: #e9e0cc; stroke: #3c2715; stroke-width: .6; }
.batteau .wake { fill: none; stroke: #fff; stroke-width: 1.2; stroke-linecap: round; opacity: .8; }
.batteau.upstream svg { transform: scaleX(1); } .batteau:not(.upstream) svg { transform: scaleX(-1); }
@keyframes row { 0%, 100% { translate: 0 0; } 50% { translate: 0 -1px; } }
@keyframes oar { 0%, 100% { rotate: -18deg; } 50% { rotate: 18deg; } }
.motion-off .cloud, .motion-off .batteau, .motion-off .route-line.is-next { animation: none; }
@media (prefers-reduced-motion: reduce) { .pin, .pin.is-now::after, .route-line.is-next { animation: none; } }

/* The West Front and the piazza sit on either side of the Mansion pin. */
.atlas:not(.z-near) .pin.nudge-l { translate: -64px 4px; }
.atlas:not(.z-near) .pin.nudge-r { translate: 64px 10px; }
