/* Bingley WaW — walk maps, faces and elevation profiles (child theme v1.13.0). Theme colours: orange #dd9933, boxes #fffef5, text #333 */

/* ---------- Face ---------- */
.bwaw-walkmap { position: relative; margin: 0 0 24px; font-family: Verdana, Geneva, sans-serif; }
.bwaw-face { position: relative; height: 440px; border-radius: 10px; overflow: hidden; background: #fffef5; box-shadow: 0 1px 4px rgba(0,0,0,.18); container-type: inline-size; }
.bwaw-face-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bwaw-face-narrow { display: none; }
.bwaw-face-open { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: flex-start; width: 100%; margin: 0; padding: 14px; border: 0; background: none; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.bwaw-face-open:focus-visible { outline: 3px solid #222; outline-offset: -3px; }
.bwaw-face-card { display: block; width: 252px; box-sizing: border-box; background: rgba(255,254,245,.96); border: 1px solid #dd9933; border-radius: 8px; padding: 10px 12px; box-shadow: 0 2px 8px rgba(0,0,0,.15); color: #333; }
.bwaw-face-title { display: block; font: 700 15px/1.3 Verdana, Geneva, sans-serif; margin: 0 0 4px; color: #333; }
.bwaw-face-meta { display: block; font-size: 12px; line-height: 1.4; margin: 0 0 4px; color: #333; }
.bwaw-face-spark svg { display: block; width: 100%; height: 30px; margin: 2px 0 6px; }
.bwaw-face-btn { display: inline-block; background: #fff; border: 2px solid #dd9933; color: #333; font-weight: 700; font-size: 13.5px; border-radius: 6px; padding: 6px 11px; white-space: nowrap; }
.bwaw-face-open:hover .bwaw-face-btn, .bwaw-face-open:focus .bwaw-face-btn { background: #dd9933; }
.bwaw-face-note { display: block; font-size: 11px; color: #555; margin-top: 6px; }
.bwaw-face-loading .bwaw-face-btn::after { content: " …"; }
.bwaw-face-compass { position: absolute; top: 12px; right: 14px; width: 20px; height: 48px; z-index: 1; pointer-events: none; }
.bwaw-face-compass svg { width: 100%; height: 100%; }
.bwaw-face-compass text { font: 700 12px Verdana, Geneva, sans-serif; fill: #333; }
.bwaw-face-credit { position: absolute; right: 8px; bottom: 6px; z-index: 3; font-size: 10px; color: #555; background: rgba(255,254,245,.85); padding: 0 4px; border-radius: 3px; }
.bwaw-face-credit a { color: inherit; }
.bwaw-map-missing { background: #fffef5; border: 1px solid #dd9933; padding: 8px 12px; }
@container (max-width: 639px) {
  .bwaw-face-wide { display: none; }
  .bwaw-face-narrow { display: block; }
  .bwaw-face-open { padding: 8px; }
  .bwaw-face-card { width: auto; flex: 1; padding: 8px 10px; }
  .bwaw-face-title { font-size: 14px; }
  .bwaw-face-meta { margin-bottom: 6px; }
  .bwaw-face-btn { font-size: 13px; padding: 5px 10px; }
  .bwaw-face-spark, .bwaw-face-note { display: none; }
  .bwaw-face-credit { bottom: auto; top: 6px; right: auto; left: 8px; }
}

/* ---------- Live map ---------- */
.bwaw-live { position: relative; height: 480px; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.18); background: #fffef5; }
.bwaw-live-full { height: calc(100vh - 160px); min-height: 420px; border-radius: 0; }
.bwaw-live-embed { height: 100vh; border-radius: 0; box-shadow: none; }
@media (max-width: 700px) { .bwaw-live-full { height: 65vh; } .bwaw-live-page { height: 440px; } }
.bwaw-leaflet { position: absolute; inset: 0; }
.bwaw-live .leaflet-container { font-family: Verdana, Geneva, sans-serif; }
.bwaw-live .leaflet-top.leaflet-left { top: 0; }
.bwaw-status { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 1000; max-width: calc(100% - 140px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: rgba(255,255,255,.95); border-radius: 6px; padding: 6px 12px; font-size: 13px; font-weight: 700; color: #333; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: opacity .3s; }
.bwaw-clean .bwaw-status, .bwaw-clean .bwaw-legend, .bwaw-clean .bwaw-legend-btn, .bwaw-clean .bwaw-legend-pop, .bwaw-clean .bwaw-share { opacity: 0; pointer-events: none; }
.bwaw-legend { background: #fff; padding: 8px 10px; font-size: 12px; line-height: 1.3; transition: opacity .3s; }
.bwaw-legend ul, .bwaw-legend-pop ul { list-style: none; margin: 6px 0; padding: 0; }
.bwaw-legend li, .bwaw-legend-pop li { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.bwaw-legend em, .bwaw-legend-pop em { color: #555; font-size: 11px; }
.lg-route { display: inline-block; width: 22px; height: 4px; background: #dd9933; border-radius: 2px; }
.lg-arrow canvas { width: 22px; height: 22px; display: block; }
.lg-nnr { display: inline-block; width: 22px; height: 14px; background: rgba(255,215,0,.5); border: 2px solid #8B6914; box-sizing: border-box; }
.lg-boundary { display: inline-block; width: 22px; height: 0; border-top: 3px dashed #555; }
.bwaw-town { background: #fff; border: 3px solid #dd9933; border-radius: 50%; box-sizing: border-box; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.bwaw-town img { display: block; width: 100%; height: 100%; border-radius: 50%; }
.bwaw-legend .bwaw-town.lg-sym, .bwaw-legend-pop .bwaw-town.lg-sym { display: inline-block; width: 22px; height: 22px; border-width: 2px; box-shadow: none; }
.lg-sym { position: static !important; transform: none !important; }
.poi-marker.lg-sym { position: relative !important; display: inline-block; }
.bwaw-legend .bwaw-start.lg-sym, .bwaw-legend-pop .bwaw-start.lg-sym { width: 20px; height: 20px; font-size: 11px; line-height: 20px; }
.bwaw-legend .poi-marker.lg-sym, .bwaw-legend-pop .poi-marker.lg-sym { width: 18px; height: 18px; }
.bwaw-legend-btn, .bwaw-legend-pop { display: none; }
@media (max-width: 480px) {
  .bwaw-legend { display: none; }
  .bwaw-legend-btn { display: block; position: absolute; right: 10px; bottom: 30px; z-index: 1000; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #ccc; background: #fff; font: italic 700 18px/1 Georgia, serif; color: #222; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
  .bwaw-legend-pop:not([hidden]) { display: block; position: absolute; right: 10px; bottom: 72px; z-index: 1000; background: #fff; padding: 8px 10px; border-radius: 6px; font-size: 12px; box-shadow: 0 1px 6px rgba(0,0,0,.25); }
  .bwaw-status { left: auto; right: 10px; transform: none; max-width: calc(100% - 70px); }
}
.bwaw-toolbar { position: absolute; top: 80px; left: 10px; z-index: 1000; display: flex; flex-direction: column; gap: 4px; }
.bwaw-tool { width: 30px; height: 30px; padding: 5px; border: 1px solid #ccc; border-radius: 4px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); cursor: pointer; color: #333; }
.bwaw-tool svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; }
.bwaw-tool:hover, .bwaw-tool:focus-visible { background: #fffef5; border-color: #dd9933; }
.bwaw-tool:focus-visible { outline: 2px solid #222; outline-offset: 1px; }
.bwaw-tool.is-on, .bwaw-tool-elev.is-on { background: #dd9933; border-color: #dd9933; color: #fff; }
.bwaw-share { position: absolute; top: 80px; left: 48px; z-index: 1100; background: #fff; border-radius: 6px; box-shadow: 0 2px 10px rgba(0,0,0,.25); padding: 6px 0; min-width: 190px; font-size: 13px; }
.bwaw-share a, .bwaw-share button { display: block; width: 100%; text-align: left; padding: 6px 14px; color: #222; text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; }
.bwaw-share a:hover, .bwaw-share button:hover, .bwaw-share a:focus, .bwaw-share button:focus { background: #fffef5; color: #dd9933; }
.bwaw-share hr { margin: 4px 0; border: 0; border-top: 1px solid #eee; }
.bwaw-toast { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); z-index: 2100; background: #222; color: #fff; padding: 8px 14px; border-radius: 6px; font-size: 13px; }
.bwaw-start { display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #dd9933; color: #333; font: 700 14px/1 Verdana, Geneva, sans-serif; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.45); box-sizing: border-box; }
.poi-marker { position: relative; background: none; }
.poi-marker::before { content: ""; position: absolute; left: 3px; top: 0; width: 22px; height: 22px; background: #2f6fa3; border: 2px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 1px 3px rgba(0,0,0,.4); box-sizing: border-box; }
.poi-marker span { position: absolute; left: 0; top: 4px; width: 28px; text-align: center; color: #fff; font: 700 11px/14px Verdana, Geneva, sans-serif; }
.bwaw-legend .poi-marker::before, .bwaw-legend-pop .poi-marker::before { left: 1px; width: 16px; height: 16px; }

/* ---------- Event / meeting-point maps (v1.13.0) ---------- */
.venue-marker::before { background: #b3202a; }
.venue-main::before { left: 4px; width: 28px; height: 28px; }
.venue-main span { width: 36px; top: 5px; font-size: 13px; }
.transport-marker { position: relative; background: none; }
.transport-marker::before { content: ""; position: absolute; left: 3px; top: 0; width: 22px; height: 22px; border: 2px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 1px 3px rgba(0,0,0,.4); box-sizing: border-box; }
.transport-train::before { background: #7c3aed; }
.transport-bus::before { background: #059669; }
.transport-carpark::before { background: #4b5563; }
.transport-marker svg { position: absolute; left: 7px; top: 4px; width: 14px; height: 14px; }
.transport-marker b { position: absolute; left: 0; top: 3px; width: 28px; text-align: center; color: #fff; font: 700 12px/16px Verdana, Geneva, sans-serif; }
.transport-marker.lg-sym, .venue-marker.lg-sym { position: relative !important; display: inline-block; width: 18px; height: 18px; vertical-align: -4px; margin-right: 4px; }
.transport-marker.lg-sym::before, .venue-marker.lg-sym::before { left: 1px; width: 16px; height: 16px; }
.transport-marker.lg-sym svg { left: 4px; top: 3px; width: 10px; height: 10px; }
.transport-marker.lg-sym b { width: 18px; top: 1px; font-size: 9px; line-height: 12px; }
.leaflet-tooltip.meet-here-label, .leaflet-tooltip.click-info-label { background: none; border: 0; box-shadow: none; padding: 0; color: #dd9933; font-family: Verdana, Geneva, sans-serif; font-weight: 700; white-space: nowrap;
  text-shadow: -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 2px 2px 0 #fff, 0 -2px 0 #fff, 0 2px 0 #fff, -2px 0 0 #fff, 2px 0 0 #fff; }
.leaflet-tooltip.meet-here-label { font-size: 20px; }
.leaflet-tooltip.click-info-label { font-size: 13px; text-decoration: underline; }
.leaflet-tooltip.meet-here-label::before, .leaflet-tooltip.click-info-label::before { display: none; }
.mp-dir { color: #dd9933 !important; font-weight: 700; }
.bwaw-when { margin: 0 0 4px; }
.bwaw-special { background: #fffef5; border: 1px solid #dd9933; border-left-width: 4px; border-radius: 6px; padding: 6px 10px; }
.bwaw-cancelled { background: #b3202a; color: #fff; border-radius: 6px; padding: 6px 10px; font-weight: 700; }
.bwaw-face-cancelled { color: #b3202a; }
.bwaw-pill-link { display: inline-block; border: 2px solid #dd9933; color: #333 !important; border-radius: 18px; padding: 5px 12px; font-weight: 700; text-decoration: none !important; }
.bwaw-pill-link:hover, .bwaw-pill-link:focus { background: #fffef5; }
.bwaw-flyer { max-width: 100%; height: auto; border-radius: 6px; }
.bwaw-ev-item { border-top: 1px solid #eee; padding-top: 6px; margin-top: 6px; }
.bwaw-ev-item h4 { font-size: 13.5px; margin: 0 0 3px; display: flex; align-items: center; gap: 6px; }
.bwaw-ev-item p { margin: 0 0 4px; }
.bwaw-ev-item img { max-width: 100%; height: auto; border-radius: 6px; }
.bwaw-ev-links { font-size: 12.5px; }
.bwaw-ev-links a { color: #333; font-weight: 700; }
.bwaw-other { background: #555; border: 2px solid #fff; border-radius: 50%; }
.bwaw-arrow { background: none; }
.map-popup { font-size: 13px; line-height: 1.4; max-width: 260px; }
.map-popup h4 { margin: 6px 0 4px; font-size: 14px; }
.map-popup p { margin: 0 0 4px; }
.map-popup hr { border: 0; border-top: 1px solid #eee; margin: 6px 0; }
.mp-img { display: block; width: 100%; height: auto; border-radius: 6px; }
.mp-cap { font-size: 11px; font-style: italic; color: #666; margin: 3px 0 6px !important; }
.mp-meta { color: #444; font-size: 12px; }
.mp-w3w { color: #e11d48 !important; font-weight: 700; }
.mp-web { color: #dd9933 !important; font-weight: 700; }
.bwaw-me span { display: block; width: 14px; height: 14px; margin: 2px; border-radius: 50%; background: #2f80ed; border: 2px solid #fff; box-shadow: 0 0 0 rgba(47,128,237,.6); animation: bwawpulse 2s infinite; }
@keyframes bwawpulse { 0% { box-shadow: 0 0 0 0 rgba(47,128,237,.6); } 70% { box-shadow: 0 0 0 14px rgba(47,128,237,0); } 100% { box-shadow: 0 0 0 0 rgba(47,128,237,0); } }
@media (prefers-reduced-motion: reduce) { .bwaw-me span { animation: none; } }
.bwaw-notice { position: absolute; left: 50%; top: 56px; transform: translateX(-50%); z-index: 2100; background: #fff; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.3); padding: 10px 14px; max-width: 300px; font-size: 13px; }
.bwaw-notice button { background: #dd9933; color: #fff; border: 0; border-radius: 4px; padding: 5px 12px; font-weight: 700; cursor: pointer; }
.bwaw-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 90%); z-index: 2000; background: #fff; box-shadow: -2px 0 12px rgba(0,0,0,.25); transform: translateX(105%); transition: transform .3s; overflow-y: scroll; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y; font-size: 13.5px; line-height: 1.5; }
.bwaw-panel-open .bwaw-panel { transform: none; }
.bwaw-panel-in { padding: 14px 16px 24px; touch-action: pan-y; }
.bwaw-panel h2 { font-size: 19px; margin: 0 26px 8px 0; line-height: 1.25; }
.bwaw-panel h3 { font-size: 15px; margin: 14px 0 4px; }
.bwaw-panel img { width: 100%; height: auto; border-radius: 6px; display: block; margin: 6px 0 2px; }
.bwaw-panel .bwaw-pills img, .pp .pp-pills img { width: 14px; height: 14px; display: inline-block; margin: 0; border-radius: 0; }
.bwaw-panel-close { position: sticky; float: right; top: 6px; margin: 6px 6px 0 0; width: 30px; height: 30px; border: 0; border-radius: 50%; background: #f2f2f2; font-size: 20px; line-height: 1; cursor: pointer; z-index: 1; }
.bwaw-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.bwaw-pills span, .pp-pills span { background: #fffef5; border: 1px solid #dd9933; border-radius: 14px; padding: 2px 10px; font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }
.bwaw-pill-btn { display: inline-block; background: #dd9933; color: #fff !important; border-radius: 18px; padding: 7px 14px; font-weight: 700; text-decoration: none !important; }
.bwaw-pill-btn:hover, .bwaw-pill-btn:focus { background: #333; }
.bwaw-desc-h { border-bottom: 2px solid #dd9933; padding-bottom: 4px; }
.bwaw-desc-h small { display: block; font-weight: 400; color: #666; font-size: 11.5px; }
.bwaw-copy { font-size: 11px; color: #666; margin-top: 18px; }
.bwaw-elevpanel { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1900; background: #fff; box-shadow: 0 -2px 12px rgba(0,0,0,.2); transform: translateY(105%); transition: transform .25s; padding: 8px 12px 6px; }
.bwaw-elev-open .bwaw-elevpanel { transform: none; }
.bwaw-elevpanel-head { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.bwaw-elevpanel-head button { border: 0; background: #f2f2f2; border-radius: 50%; width: 26px; height: 26px; font-size: 18px; line-height: 1; cursor: pointer; }
.bwaw-elevpanel-sub { display: flex; justify-content: space-between; font-size: 11.5px; color: #666; margin: 0 0 2px; gap: 10px; }

/* ---------- Elevation profile (page) ---------- */
.bwaw-elevation { position: relative; background: #fffef5; border: 1px solid #dd9933; border-radius: 10px; padding: 10px 10px 4px; margin: 0 0 24px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.bwaw-elev-sum { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 4px 6px; font-size: 13px; color: #333; }
.bwaw-elev-sum b { color: #333; }
.bwaw-elev-chart { position: relative; min-height: 120px; }
.bwaw-elev-svg { display: block; width: 100%; touch-action: pan-y; outline: none; font-family: Verdana, Geneva, sans-serif; }
.bwaw-elev-svg:focus-visible { outline: 3px solid #222; outline-offset: 2px; border-radius: 4px; }
.bwaw-elev-tip { position: absolute; pointer-events: none; background: #222; color: #fff; font-size: 12px; line-height: 1.3; padding: 5px 8px; border-radius: 6px; white-space: nowrap; transform: translate(-50%, -100%); opacity: 0; transition: opacity .15s; z-index: 5; }
.bwaw-elev-tip b { color: #dd9933; }
.bwaw-elev-note { font-size: 11px; color: #555; margin: 4px 4px 2px; }
.bwaw-elev-static { width: 100%; height: auto; }

/* ---------- Full-page map (inside Virtue's normal page markup) ---------- */
.bwaw-walkmap-full { margin: 0 0 24px; }
body.bwaw-map-embed { margin: 0; }
.bwaw-walkmap-embed { margin: 0; }

/* ---------- Printable walk guide (A4, compact) ---------- */
body.bwaw-print { background: #fff; color: #333; font: 12px/1.45 Verdana, Geneva, sans-serif; margin: 0; }
.pp { max-width: 760px; margin: 0 auto; padding: 18px 18px 30px; }
.pp h1 { font-size: 19px; margin: 0 0 6px; }
.pp h2 { font-size: 14px; border-bottom: 2px solid #dd9933; padding-bottom: 2px; margin: 16px 0 6px; }
.pp h3 { font-size: 12.5px; margin: 10px 0 2px; }
.pp p { margin: 0 0 5px; }
.pp-map { margin: 0 0 4px; border: 1px solid #dd9933; border-radius: 6px; overflow: hidden; }
.pp-map .bwaw-face-svg { position: static; display: block; width: 100%; height: auto; }
.pp-section { display: flow-root; }
.pp-fig { float: right; width: 30%; max-width: 210px; margin: 2px 0 6px 14px; }
.pp-fig img { display: block; width: 100%; height: auto; border-radius: 4px; }
.pp-fig figcaption { font-size: 9px; line-height: 1.3; font-style: italic; color: #666; margin-top: 2px; }
.pp-pills { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 6px !important; }
.pp-pills span { font-size: 11px; padding: 1px 8px; }
.pp-meta { color: #555; font-size: 10.5px; }
.pp-links { font-size: 10.5px; }
.pp .w3w { color: #e11d48; }
.pp a { color: #333; }
.pp-copy { margin-top: 18px; font-size: 9.5px; color: #666; }
.pp .bwaw-elev-static { display: block; max-height: 150px; }
@page { size: A4; margin: 12mm; }
@media print { body.bwaw-print { font-size: 10pt; } .pp { padding: 0; max-width: none; } .pp h2, .pp h3 { break-after: avoid; } .pp-fig, .pp-map, .bwaw-elev-static { break-inside: avoid; } a { text-decoration: none; } }

/* v1.13.1 — past events: toned-down label ("Met here") and date line */
.leaflet-tooltip.meet-here-label.meet-here-past { color: #666; }
.bwaw-when-past { color: #555; }

/* ============ [bwaw_stops]: toilets & refreshments along the route (design Option B; v1.16.2 look) ============
   Type follows the theme (Verdana 14px/20px body, headings from Theme Options); colours: cards #fffef5,
   orange details #dd9933, café markers in the Walkers are Welcome logo colours (#231F20 / #FFCB05), toilets = the map's blue toilet icon.
   Mobile first: a vertical timeline. From 760px wide (container), up to 4 stops: a route strip with the
   markers and miles, and the cards in a grid lined up under it. More than 4 stops, or no miles: timeline. */
.bwaw-stops { container-type: inline-size; margin: 2em 0; color: #444; font-family: inherit; font-size: 14px; line-height: 20px; }
.bwaw-stops * { font-family: inherit; }
.bwaw-stops-title { margin-top: 0; margin-bottom: .3em; }
.bwaw-stops-intro { margin: 0 0 16px; }
.bwaw-stops-list { list-style: none; margin: 0; padding: 0; }
.bwaw-stop { margin: 0; }
.bwaw-stop-card { background: #fffef5; border: 1px solid #ebe3cc; border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.bwaw-stop-kind { font-size: 11px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: #dd9933; }
.bwaw-stops .bwaw-stop-name { margin: 0; padding: 0; font-size: 16px; line-height: 22px; font-weight: 700; color: #333; border: 0; text-transform: none; letter-spacing: 0; }
.bwaw-stops .bwaw-stop-card > * { margin: 0; } /* beats the theme's / KingComposer's paragraph and heading margins */
.bwaw-stops p:empty { display: none; } /* stray <p></p> from wpautop (KingComposer text block) */
.bwaw-stop-address { font-size: 12px; line-height: 18px; color: #666; }
.bwaw-stop-links { display: flex; flex-wrap: wrap; gap: 0 16px; margin: 0; }
.bwaw-stops a { color: #dd9933; text-decoration: underline; text-underline-offset: 2px; }
.bwaw-stops a:hover { color: #dd9933; text-decoration-thickness: 2px; }
.bwaw-stops a:focus-visible { outline: 2px solid #dd9933; outline-offset: 2px; border-radius: 2px; }
.bwaw-stops .bwaw-stop-card > .bwaw-stop-cta { margin-top: 4px; }
.bwaw-stops a.bwaw-btn { display: inline-block; margin: 0; padding: 4px 12px; border: 2px solid #dd9933; border-radius: 3px; background: #fff; color: #222; font-size: 13px; line-height: 18px; text-decoration: none; }
.bwaw-stops a.bwaw-btn:hover, .bwaw-stops a.bwaw-btn:focus { background: #dd9933; color: #222; text-decoration: none; }
.bwaw-stops a.bwaw-btn:focus-visible { outline: 2px solid #222; outline-offset: 2px; }
.bwaw-stop-links a, .bwaw-stops-more { display: inline-flex; align-items: center; min-height: 32px; }

/* Markers */
.bwaw-stop-cup { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; box-sizing: border-box; background: #231F20; color: #FFCB05; border: 3px solid #fff; }
.bwaw-stop-wc { display: block; width: 48px; height: 48px; border-radius: 9px; box-shadow: 0 0 0 3px #fff; } /* v1.16.3: map toilet icon (toilet.svg) */
.bwaw-stop-cup { border-radius: 50%; }
.bwaw-stop-cup svg { width: 24px; height: 24px; }
.bwaw-stop-badge { display: block; width: 48px; height: 48px; border-radius: 50%; box-shadow: 0 0 0 3px #fff; }
.bwaw-stops-mile { font-size: 12px; line-height: 16px; color: #555; background: #fff; padding: 0 4px; white-space: nowrap; }
.bwaw-stops-dot { display: block; width: 22px; height: 22px; box-sizing: border-box; border-radius: 50%; background: #fff; border: 3px solid #231F20; }
.bwaw-stops-finish .bwaw-stops-dot, .bwaw-stops-tl-finish .bwaw-stops-dot { background: #231F20; }

/* Timeline (phones, >4 stops, no GPX) */
.bwaw-stops-strip { display: none; }
.bwaw-stops-route { position: relative; display: flex; flex-direction: column; gap: 12px; }
.bwaw-stops-route::before { content: ""; position: absolute; left: 20px; top: 12px; bottom: 12px; border-left: 3px dashed #dd9933; }
.bwaw-stops--nomiles .bwaw-stops-route::before, .bwaw-stops--nomiles .bwaw-stops-tl { display: none; }
.bwaw-stops-tl { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: center; font-size: 12px; font-weight: 700; }
.bwaw-stops-tl .bwaw-stops-dot { justify-self: center; }
.bwaw-stops-list { display: flex; flex-direction: column; gap: 12px; }
.bwaw-stop { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: start; }
.bwaw-stops--nomiles .bwaw-stop { grid-template-columns: minmax(0, 1fr); }
.bwaw-stops--nomiles .bwaw-stop-side { display: none; }
.bwaw-stop-side { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bwaw-stop-side .bwaw-stop-wc, .bwaw-stop-side .bwaw-stop-cup, .bwaw-stop-side .bwaw-stop-badge { width: 42px; height: 42px; }
.bwaw-stop-side .bwaw-stop-wc { border-radius: 8px; }
.bwaw-stop-side .bwaw-stop-cup svg { width: 20px; height: 20px; }
.bwaw-stop-side .bwaw-stops-mile { font-size: 11px; padding: 0 2px; }

/* v1.16.4/1.16.6 — swipe row: phones (section under 760px wide) and, on any width, walks with more than 4 stops
   or no GPX (".bwaw-stops--timeline"; the desktop route strip only fits 4). Each slide = marker + mile on a dashed
   route line, card below; the next card peeks in at the edge; ‹ › buttons (script in walk-stops.php) when it scrolls. */
.bwaw-stops--timeline .bwaw-stops-route::before, .bwaw-stops--timeline .bwaw-stops-tl { display: none; }
.bwaw-stops--timeline .bwaw-stops-list { flex-direction: row; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; padding: 0 0 10px; }
.bwaw-stops--timeline .bwaw-stop { flex: 0 0 calc((100% - 36px) / 3.25); grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 8px; scroll-snap-align: start; }
.bwaw-stops--timeline .bwaw-stop::before { content: ""; position: absolute; left: 0; right: -12px; top: 20px; border-top: 3px dashed #dd9933; }
.bwaw-stops--timeline .bwaw-stop:last-child::before { right: auto; width: 42px; }
.bwaw-stops--timeline .bwaw-stop-side { position: relative; z-index: 1; flex-direction: row; justify-content: flex-start; gap: 8px; }
.bwaw-stops--timeline .bwaw-stop-side .bwaw-stops-mile { font-size: 12px; padding: 0 6px; }
.bwaw-stops--timeline .bwaw-stop-card { height: 100%; box-sizing: border-box; }
.bwaw-stops--nomiles .bwaw-stop::before { display: none; }
.bwaw-stops--nomiles .bwaw-stop { grid-template-rows: 1fr; }
.bwaw-stops-nav { display: flex; justify-content: flex-end; gap: 8px; margin: -4px 0 8px; }
.bwaw-stops-nav[hidden] { display: none; }
@container (max-width: 759px) {
	.bwaw-stops-route::before, .bwaw-stops-tl { display: none; }
	.bwaw-stops-list { flex-direction: row; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; padding: 0 0 10px; }
	.bwaw-stop, .bwaw-stops--timeline .bwaw-stop { flex: 0 0 82%; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 8px; scroll-snap-align: start; }
	.bwaw-stop::before { content: ""; position: absolute; left: 0; right: -12px; top: 20px; border-top: 3px dashed #dd9933; }
	.bwaw-stop:last-child::before { right: auto; width: 42px; }
	.bwaw-stops--nomiles .bwaw-stop::before { display: none; }
	.bwaw-stops--nomiles .bwaw-stop { grid-template-rows: 1fr; }
	.bwaw-stop-side { position: relative; z-index: 1; flex-direction: row; justify-content: flex-start; gap: 8px; }
	.bwaw-stop-side .bwaw-stops-mile { font-size: 12px; padding: 0 6px; }
	.bwaw-stop-card { height: 100%; box-sizing: border-box; }
}
@media (prefers-reduced-motion: no-preference) { .bwaw-stops-list { scroll-behavior: smooth; } }

/* Footer */
.bwaw-stops-foot { margin-top: 16px; border-top: 1px solid #ebe3cc; padding-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 32px; font-size: 13px; line-height: 18px; }
.bwaw-stops-legend { display: flex; align-items: center; gap: 8px; }
.bwaw-stops-legend .bwaw-stop-badge { width: 26px; height: 26px; flex: none; box-shadow: none; }

/* Desktop: route strip + cards in columns (up to 4 stops) */
@container (min-width: 760px) {
	.bwaw-stops:not(.bwaw-stops--timeline) .bwaw-stops-strip { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; position: relative; margin-bottom: 14px; }
	.bwaw-stops:not(.bwaw-stops--timeline) .bwaw-stops-strip::before { content: ""; position: absolute; left: 11px; right: 11px; top: 23px; border-top: 3px dashed #dd9933; }
	.bwaw-stops-end { position: relative; display: flex; flex-direction: column; gap: 6px; padding-top: 13px; font-size: 12px; line-height: 16px; font-weight: 700; }
	.bwaw-stops-finish { align-items: flex-end; }
	.bwaw-stops-marks { position: relative; display: grid; grid-template-columns: repeat(var(--bwaw-stops, 3), minmax(0, 1fr)); gap: 20px; }
	.bwaw-stops-mark { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
	.bwaw-stops:not(.bwaw-stops--timeline) .bwaw-stops-route::before,
	.bwaw-stops:not(.bwaw-stops--timeline) .bwaw-stops-tl,
	.bwaw-stops:not(.bwaw-stops--timeline) .bwaw-stop-side { display: none; }
	.bwaw-stops:not(.bwaw-stops--timeline) .bwaw-stops-list { display: grid; grid-template-columns: repeat(var(--bwaw-stops, 3), minmax(0, 1fr)); gap: 20px; padding: 0 40px; }
	.bwaw-stops:not(.bwaw-stops--timeline) .bwaw-stop { display: block; }
	.bwaw-stops:not(.bwaw-stops--timeline) .bwaw-stop-card { height: 100%; box-sizing: border-box; padding: 16px; }
	.bwaw-stops:not(.bwaw-stops--timeline) .bwaw-stops-foot { margin-left: 40px; margin-right: 40px; }
}
@media print { .bwaw-stops-strip, .bwaw-stop-links { display: none !important; } }
