/* Scoped native excursions; shared shell owns every 500 ms route transition. */
body.excursions-page{background:#fbf2df;--city-conditions-height:0px;--city-conditions-space:0px}
#excursions-view,.tour-discovery{--tour-paper:#fbf2df;--tour-card:#fff9ec;--tour-ink:#3d3529;--tour-muted:#81735e;--tour-green:#28635d;--tour-shadow:0 3px 9px #60452b16,0 1px 2px #60452b0b;color:var(--tour-ink);font:18px/1.6 TazikReading,Arial,sans-serif}
#excursions-view{min-height:calc(100dvh - var(--app-header-height,36px));padding-bottom:calc(var(--app-nav-height,48px) + 20px)}
body.tazik-app #excursions-view .excursions-heading{position:sticky;top:calc(var(--app-safe-top,0px) + var(--app-header-height,36px));z-index:31;margin:0;background:#f5ead3;padding-inline:8px 20px}
body.tazik-app #excursions-view .excursions-heading h1{font:16px/1.3 TazikUI,monospace;margin:0}
.tour-content{display:block!important;width:100%;max-width:680px!important;min-width:0;margin:0 auto!important;padding:20px 0 0!important}
.tour-content :is(h2,h3,p,figure){margin:0}.tour-content h2,.tour-tile h2,.tour-section-label h2{font:17px/1.6 TazikUI,monospace;color:var(--tour-green);text-wrap:balance}
.tour-content h3{font:13px/1.6 TazikUI,monospace}.tour-content p{margin:0 0 16px}.tour-content p:last-child{margin-bottom:0}
.tour-content img,.tour-tile img{display:block;width:100%;object-fit:cover}
.tour-content a,.tour-discovery a{-webkit-tap-highlight-color:transparent}.tour-content :is(a,summary):focus-visible,.tour-discovery :is(a,button):focus-visible{outline:2px solid #b77636;outline-offset:3px}
.tour-cover,.tour-place,.tour-info{margin:0 20px 20px;border-radius:35px;background:var(--tour-card);box-shadow:var(--tour-shadow);overflow:hidden}
.tour-cover>figure{position:relative}.tour-cover img{height:auto;aspect-ratio:1.65}.tour-cover figcaption{position:absolute;bottom:16px;left:22px;border-radius:99px;padding:8px 14px;background:#fff9ece6;color:var(--tour-green);font:13px/1.5 TazikReading,Arial,sans-serif}
.tour-intro,.tour-place-copy{padding:24px}.tour-intro h2{font-size:22px;margin-bottom:14px}.tour-content .tour-eyebrow,.tour-tile .tour-eyebrow{color:var(--tour-muted);font:15px/1.5 TazikReading,Arial,sans-serif;margin:0 0 8px}
.tour-lead{font-size:19px;line-height:1.6}.tour-facts{display:flex;gap:8px 14px;flex-wrap:wrap;font:15px/1.5 TazikReading,Arial,sans-serif;color:var(--tour-green);margin:18px 0}
.tour-intro .tour-facts span{padding:6px 12px;border-radius:99px;background:#e8eddf}
.tour-primary,.tour-secondary{display:flex;align-items:center;justify-content:center;text-align:center;text-decoration:none;padding:15px 18px;min-height:52px;border:0;border-radius:99px;font:13px/1.6 TazikUI,monospace;background:var(--tour-green);color:#fff9ec;box-shadow:0 3px 8px #24544b21;transition:background 500ms,color 500ms;position:relative;overflow:hidden}
.tour-secondary{background:#e3e8d5;color:var(--tour-green);box-shadow:none}.tour-primary:after{content:'';position:absolute;inset:-60% auto -60% 0;width:40px;transform:translateX(-100px) skewX(-22deg);background:linear-gradient(90deg,transparent,#fff8e52b,transparent);animation:tour-glint 16s infinite;pointer-events:none}@keyframes tour-glint{0%,55%{left:-30%}85%,100%{left:150%}}
.tour-content .tour-caption{font:14px/1.5 TazikReading,Arial,sans-serif;color:var(--tour-muted);margin:15px 0 0}
.tour-info{padding:24px}.tour-info h2{margin-bottom:14px}.tour-info>p{font-size:18px}.tour-notice,.tour-look{padding:18px 20px;border-radius:24px;background:#f8e6d3;margin:18px 0}.tour-notice strong{display:block;margin-bottom:6px}.tour-notice p,.tour-look p{font-size:17px}.tour-look h3{color:#805631;margin-bottom:10px}
.tour-page-title{padding:0 25px 22px}.tour-page-title h2{font-size:22px;margin-bottom:10px}.tour-page-title>p:last-child{color:var(--tour-muted)}
.tour-route{padding:0;margin:0;list-style:none}.tour-route li{position:relative;padding:0 0 22px 52px}.tour-route li:last-child{padding-bottom:0}.tour-route li:not(:last-child):after{content:'';position:absolute;left:18px;top:34px;bottom:0;width:2px;background:#d6d8c6}.tour-route a{display:block;color:inherit;text-decoration:none;min-height:42px}.tour-dot{position:absolute;left:0;top:1px;width:38px;height:38px;display:grid;place-items:center;border-radius:50%;font:13px TazikUI,monospace;color:var(--tour-green);background:#e6eddc}.tour-route strong{display:block;font-size:19px;line-height:1.5}.tour-route small{display:block;font-size:15px;color:var(--tour-muted);margin-top:4px}.tour-route .blue .tour-dot{color:#355e81;background:#dde9f0}.tour-route .red .tour-dot{color:#9a4e3c;background:#f3ddd3}.tour-route .green .tour-dot{color:#3d7153;background:#e4eddb}.tour-route .tour-pause{border-radius:18px;padding:12px 15px;margin:10px 0 0;background:#f3ead7;font-size:15px;line-height:1.5}
.tour-place-heading{display:flex;align-items:center;gap:15px;padding:22px}.tour-place-heading h2{font-size:17px}.tour-number{width:50px;height:50px;min-width:50px;display:grid;place-items:center;border-radius:50%;font:17px TazikUI,monospace;background:#f3e4c7;color:#86603d}.tour-place img{height:auto;aspect-ratio:1.8}.tour-place figcaption{padding:10px 22px 0;font-size:14px;color:var(--tour-muted)}.tour-place-meta{font-size:15px;margin:20px 0}.tour-place-meta p{color:var(--tour-green);margin-top:5px}.tour-source{display:block;font:14px/1.6 TazikReading,Arial,sans-serif;color:var(--tour-muted);margin-top:15px;overflow-wrap:anywhere}
.tour-pager{display:flex;justify-content:space-between;gap:15px;padding:0 24px;margin:24px 0}.tour-pager a:last-child{margin-left:auto}.tour-text-link{font:15px/1.6 TazikReading,Arial,sans-serif;color:var(--tour-green);text-decoration:none}.tour-actions{margin:24px 20px}
.tour-points{border-bottom:1px solid #e7ddc8;padding-bottom:20px;margin-bottom:20px}.tour-points>div{position:relative;padding-left:35px}.tour-points>div:before{content:'';width:12px;height:12px;border:2px solid var(--tour-green);border-radius:50%;position:absolute;left:2px;top:7px;background:var(--tour-card)}.tour-points>div:first-child{padding-bottom:20px}.tour-points>div:first-child:after{content:'';position:absolute;top:20px;bottom:0;left:7px;border-left:2px dotted #9eaa91}.tour-points>div:last-child:before{background:var(--tour-green)}.tour-mode{display:inline-block;padding:8px 14px;border-radius:99px;font-size:15px;color:var(--tour-green);background:#e7eddf;margin-bottom:22px}
.tour-steps{list-style:none;margin:0 0 24px;padding:0}.tour-steps li{position:relative;padding-left:45px;margin-bottom:22px}.tour-steps li:last-child{margin:0}.tour-steps li>span{position:absolute;left:0;top:0;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#f2e5cc;color:#896438;font:13px TazikUI,monospace}.tour-steps strong{display:block;margin-bottom:6px;font-size:19px}.tour-steps p{font-size:17px;color:#726653}.tour-way-note{margin:0 25px 24px!important;font-size:15px;color:var(--tour-muted)}
.tour-sources{padding:22px;margin:24px 20px;background:#ecebdc;border-radius:28px}.tour-sources summary{font-size:17px;cursor:pointer;color:var(--tour-green)}.tour-sources p{font-size:15px;color:var(--tour-muted);margin-top:14px}.tour-footer{text-align:center;padding:10px 20px 22px;font:14px/1.6 TazikReading,Arial,sans-serif;color:var(--tour-muted)}.tour-footer a{display:inline;font:inherit;color:inherit}
.tour-collection{display:grid;gap:24px;margin:0 20px 24px}.tour-tile{display:flex;flex-direction:column;min-width:0;background:var(--tour-card);color:var(--tour-ink);text-decoration:none;overflow:hidden;border-radius:34px;box-shadow:var(--tour-shadow)}.tour-tile>img{height:auto;aspect-ratio:1.85;pointer-events:none}.tour-tile-copy{padding:22px 24px 24px;display:flex;flex-direction:column;flex:1}.tour-tile h2{font-size:17px;margin:0 0 12px}.tour-tile .tour-description{font-size:17px;line-height:1.6;margin:0 0 16px}.tour-tile .tour-facts{margin:0}.tour-warning{font-size:15px;color:#98613d;margin:14px 0 0!important}.tour-action{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:20px;color:var(--tour-green);font:13px/1.6 TazikUI,monospace}
.tour-discovery{background:#dce9e4;padding:24px 0 18px;margin:24px 0;box-shadow:inset 0 1px #fff7,inset 0 -1px #8ba99b33}.tour-section-label{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 24px 20px}.tour-section-label h2{font-size:15px;margin:0}.tour-section-label .tour-text-link{font-size:14px}.tour-slider{display:flex;gap:18px;overflow-x:auto;padding:0 24px 16px;scrollbar-width:none;touch-action:pan-x pan-y;cursor:grab;overscroll-behavior-x:contain}.tour-slider::-webkit-scrollbar{display:none}.tour-slider>.tour-tile{flex:0 0 calc(100% - 28px)}.tour-slider .tour-description,.tour-slider .tour-warning{display:none}.tour-slider .tour-tile>img{aspect-ratio:1.85}.tour-slider h2{font-size:15px;min-height:48px;margin:0 0 16px}.tour-slider .tour-facts{margin-top:auto}.tour-slider .tour-action{font-size:13px}.tour-slider .tour-tile-copy{padding:20px 22px}.tour-controls{display:flex;align-items:center;justify-content:center;gap:22px;padding:2px 24px 0}.tour-controls>button{display:grid;place-items:center;border:0;border-radius:50%;width:44px;height:44px;color:var(--tour-green);background:#f7f6e9;font:28px TazikReading,Arial,sans-serif;transition:opacity 500ms,background 500ms}.tour-controls>button:disabled{opacity:.35}.tour-dots{display:flex;gap:2px}.tour-dots button{display:grid;place-items:center;border:0;background:transparent;width:34px;height:40px;padding:12px}.tour-dots button:before{content:'';width:9px;height:9px;border-radius:50%;background:#9bb7a8;transition:background 500ms,transform 500ms}.tour-dots button[aria-current=true]:before{background:var(--tour-green);transform:scale(1.3)}
@media(max-width:420px){.tour-intro h2,.tour-page-title h2{font-size:19px}.tour-tile h2{font-size:15px}.tour-intro,.tour-place-copy,.tour-info{padding:22px 20px}.tour-place-heading{padding:20px;gap:12px}.tour-place-heading h2{font-size:15px}.tour-section-label{margin-inline:20px;gap:8px}.tour-section-label h2{font-size:14px}.tour-section-label .tour-text-link{font-size:13px}.tour-slider{padding-inline:20px;gap:15px}.tour-slider h2{font-size:14px}.tour-pager{flex-wrap:wrap}}
body.tazik-app .tour-controls>button{border:0;border-radius:50%;padding:0;box-shadow:none;background:#f7f6e9;font:28px TazikReading,Arial,sans-serif;color:var(--tour-green)}body.tazik-app .tour-dots>button{border:0;background:transparent;box-shadow:none;padding:12px;min-width:0;min-height:0;border-radius:0}
body.tazik-app .tour-controls>button{width:55px;min-width:55px;height:55px;min-height:55px;flex:0 0 55px}
/* Every stop has two distinct views; aspect ratio is reserved before decoding. */
.tour-gallery-stage{position:relative;aspect-ratio:3/2;overflow:hidden;touch-action:pan-y;background:#e7dfcc}
.tour-gallery-frame{position:absolute;inset:0;overflow:hidden;opacity:0;transform:translateX(10px);transition:opacity 500ms,transform 500ms;pointer-events:none}
.tour-gallery-frame.is-current{opacity:1;transform:translateX(0)}
.tour-content .tour-gallery-frame img{position:absolute;width:100%;height:200%;object-fit:fill;filter:none;max-height:none}
.tour-content .tour-gallery figcaption{display:flex;justify-content:space-between;gap:12px;padding:10px 20px;font:12px/1.5 TazikReading;color:#81735e}
body.tazik-app .tour-gallery-stage>button{position:absolute;top:calc(50% - 22px);width:44px;height:44px;padding:0;border:0;border-radius:50%;background:#fff9ecd9;color:#285b52;font:28px TazikReading;box-shadow:0 3px 12px #19382b30;z-index:2}
.tour-gallery-prev{left:12px}.tour-gallery-next{right:12px}.tour-gallery-count{font-variant-numeric:tabular-nums;white-space:nowrap}
.tour-route-thumb{position:relative;display:block;aspect-ratio:3/2;border-radius:18px;overflow:hidden;margin:0 0 12px;background:#e7dfcc}
.tour-content .tour-route-thumb img{position:absolute;inset:0;width:100%;height:200%;object-fit:fill;filter:none}
body.tazik-app .tour-content button.tour-primary{width:100%;border:0;border-radius:99px;font:13px/1.6 TazikUI;background:var(--tour-green);color:#fff9ec;padding:15px 18px}
body.tazik-app dialog.tour-transport{--tour-green:#28635d;--tour-ink:#3d3529;box-sizing:border-box;width:calc(100% - 24px);max-width:520px;height:min(780px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);margin:auto;padding:0;border:0;border-radius:28px;background:#fbf2df;color:#3d3529;box-shadow:0 15px 50px #061a1b66;overflow:hidden;font:15px/1.5 TazikReading;display:none}
body.tazik-app dialog.tour-transport[open]{display:flex;flex-direction:column}
.tour-transport::backdrop{background:#071e248c;backdrop-filter:blur(5px)}
.tour-transport header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px 20px;background:#f5ead3;flex-shrink:0}
.tour-transport header small{font:12px TazikReading;color:#81735e}.tour-transport header h2{font:15px/1.5 TazikUI;margin:6px 0 0;color:#28635d}
body.tazik-app .tour-transport button{cursor:pointer;border:0;box-shadow:none;transition:background-color 500ms,color 500ms}
body.tazik-app .tour-transport-close{flex-shrink:0;width:36px;height:36px;padding:0;background:transparent;color:#476759;font:28px TazikReading;border-radius:50%}
.tour-transport-map{position:relative;flex:0 0 32%;min-height:180px;background:#e0d6ba;overflow:hidden}
.tour-transport .tour-map-canvas{position:absolute;inset:0;opacity:0;transition:opacity 500ms}.tour-transport .tour-map-canvas.is-ready{opacity:1}
.tour-transport-body{overflow:auto;min-height:0;flex:1;padding:18px 20px;scrollbar-width:none}.tour-transport-body::-webkit-scrollbar{display:none}
.tour-transport-body>p{margin:0 0 14px}.tour-transport .tour-caption{font:12px/1.5 TazikReading;color:#81735e;margin-top:16px}
.tour-transport .tour-secondary{font:12px/1.5 TazikUI;padding:12px 14px;min-height:44px;border-radius:18px;background:#e3e8d5;color:#28635d}
.tour-origin{display:flex;align-items:flex-end;gap:10px;margin:16px 0}.tour-origin label{flex:1;min-width:0;font-size:13px;color:#5d705c}.tour-origin input{box-sizing:border-box;width:100%;min-width:0;padding:12px;border:1px solid #d2d6c3;border-radius:14px;background:#fff9ec;color:#3d3529;font:15px TazikReading;margin-top:6px}
.tour-origin-results{display:grid;gap:8px}.tour-transport .tour-origin-option{width:100%;text-align:left;background:#fff9ec;border-radius:16px;padding:14px;color:#3d3529;font:15px TazikReading}.tour-origin-option small{display:block;margin-top:6px;color:#81735e}
.tour-itineraries{display:grid;gap:10px}.tour-transport .tour-route-option{display:grid;grid-template-columns:1fr auto;gap:5px 12px;text-align:left;padding:14px 16px;border-radius:18px;background:#fff9ec;color:#3d3529;box-shadow:0 3px 9px #60452b16;font:15px TazikReading}.tour-route-option b{font:14px TazikUI}.tour-route-option span{grid-row:2;grid-column:1/-1}.tour-route-option small{color:#81735e}.tour-transport .tour-route-option[aria-pressed=true]{background:#dce8d8;box-shadow:inset 0 0 0 1px #75977a}
.tour-journey-steps{margin:8px 0 0;padding-left:23px}.tour-journey-steps li{padding:0 0 14px 5px}.tour-journey-steps strong{font:13px/1.5 TazikUI;color:#28635d}.tour-journey-steps span{display:block;color:#81735e;font:14px/1.5 TazikReading;margin-top:5px}
.tour-map-tools{position:absolute;right:12px;top:20px;border-radius:28px;overflow:hidden;background:#fff8e8aa;backdrop-filter:blur(10px);box-shadow:0 3px 12px #28443233;display:flex;flex-direction:column}
.tour-transport .tour-map-tools button{width:44px;height:54px;padding:0;background:transparent;color:#365c49;font:23px TazikUI;border-radius:0}.tour-map-tools button+button{border-top:1px solid #66816d40}
.tour-transport .map-edge-zoom{position:absolute;left:2px;top:20px;bottom:30px;width:44px;display:grid;place-items:center;touch-action:none;color:#365c49;z-index:2;cursor:ns-resize}.tour-transport .map-edge-zoom>span{background:#fff8e8aa;border-radius:14px;padding:7px;display:flex;flex-direction:column;align-items:center}.tour-transport .map-edge-zoom i{height:36px;width:2px;margin:7px 0;background:#365c4950}
@media(max-width:350px){.tour-transport header,.tour-transport-body{padding:16px}.tour-origin{flex-wrap:wrap}.tour-origin label{flex-basis:100%}.tour-transport-map{flex-basis:30%}}

.tour-endpoint{display:grid;place-items:center;width:26px;height:26px;border:2px solid #fff8e4;border-radius:50%;background:#376c58;color:#fff8e4;font-weight:bold;box-shadow:0 2px 8px #0006}.tour-endpoint.destination{background:#aa593c}.tour-gallery button:focus-visible{outline:2px solid var(--ink);outline-offset:2px}

.tour-art-credit{margin:12px 18px;color:var(--muted,#6b7866);font-size:12px;line-height:1.5}.tour-art-credit summary{cursor:pointer}.tour-art-credit p{margin:8px 0}.tour-art-credit a{display:block;margin:6px 0;overflow-wrap:anywhere}

/* Step navigation stays in page flow; only the shared app heading is sticky. */
.tour-step-nav{position:relative;display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:10px;margin:20px;padding:10px 14px;background:#fff9ecf5;border:1px solid #e5d9c3;border-radius:28px;box-shadow:0 4px 18px #49351e26}
.tour-step-nav a{color:var(--tour-green);text-decoration:none;min-height:44px;display:flex;align-items:center;justify-content:center;font:12px/1.5 TazikUI,monospace}.tour-step-nav .tour-step-index{flex-direction:column;gap:3px;font:14px/1.4 TazikReading,Arial,sans-serif;text-align:center}.tour-step-index small{font-size:12px;color:var(--tour-muted)}.tour-step-prev{font-size:22px!important}.tour-step-next{background:#e4ebd9;border-radius:20px;padding:8px 14px;max-width:150px;text-align:center}.tour-leg-art{display:grid;grid-template-columns:1fr 24px 1fr;gap:10px;align-items:center;margin-bottom:24px;color:var(--tour-green)}.tour-leg-art img{width:100%;aspect-ratio:1.2;object-fit:cover;object-position:top;border-radius:20px}.tour-intro>.tour-primary+.tour-secondary{margin-top:12px}
@media(max-width:350px){.tour-step-nav{margin-inline:16px;padding:8px 10px;gap:6px}.tour-step-next{padding-inline:10px;font-size:11px!important}}
.tour-step-nav{margin-top:0}

/* Small outdoor discoveries, readable hit targets and native 500 ms dialogs. */
.tour-note-strip{margin:0 20px 24px}.tour-note-strip h3{font:13px/1.5 TazikUI;color:#28635d;margin:0 0 12px}.tour-note-strip>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tour-route .tour-note-strip{margin:12px 0 24px}
body.tazik-app .tour-note-chip{min-width:0;min-height:60px;display:flex;align-items:center;gap:9px;text-align:left;padding:10px;background:#fff9ec;border-radius:20px;color:#376759;box-shadow:0 3px 12px #49351e16;border:0;font:14px/1.4 TazikReading,Arial,sans-serif}.tour-note-chip>span{position:relative;flex:0 0 30px;width:30px;height:32px;display:grid;place-items:center}.tour-note-chip svg{width:25px;height:25px}.tour-note-chip small{position:absolute;right:-3px;bottom:-3px;font:10px TazikReading;background:#e8d9b8;color:#3d3529;border-radius:8px;min-width:13px;text-align:center}.tour-note-chip b{font-weight:500;overflow-wrap:anywhere}.tour-note-chip.camera{color:#a25b3d}.tour-note-chip.spark{color:#8b7030}
body.tazik-app .tour-map-note{position:absolute;display:grid;place-items:center;min-width:44px;width:44px;height:44px;padding:8px;border:2px solid #fff8e8;border-radius:50%;background:#326c5d;color:#fff8e8;box-shadow:0 3px 12px #13291b66;cursor:pointer}.tour-map-note svg{width:24px;height:24px}.tour-map-note.camera{background:#a25b3d}.tour-map-note.spark{background:#8b7030}.tour-map-note small{position:absolute;right:-3px;bottom:-2px;background:#fff8e8;color:#365c49;min-width:16px;border-radius:9px;font:11px/16px TazikReading}.tour-note-chip:focus-visible,.tour-map-note:focus-visible{outline:3px solid #e7b035;outline-offset:3px}
dialog.tour-note-dialog{box-sizing:border-box;width:min(420px,calc(100vw - 24px));max-height:calc(100dvh - 40px);padding:0;border:0;border-radius:28px;background:#fff8e8;color:#3d3529;box-shadow:0 14px 55px #112b2466;overflow:auto;scrollbar-width:none;font:16px/1.55 TazikReading,Arial,sans-serif}.tour-note-dialog::backdrop{background:#193f364d;backdrop-filter:blur(10px)}.tour-note-dialog header{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;background:#f3ead4;position:sticky;top:0;z-index:2}.tour-note-dialog header>span{display:flex;gap:9px;align-items:center;font:12px TazikUI;color:#376759}.tour-note-dialog header svg{width:22px;height:22px}.tour-note-dialog header button{background:transparent;color:#376759;border:0;width:36px;height:36px;font:26px TazikReading}.tour-note-dialog figure{position:relative;margin:0;aspect-ratio:1.5;overflow:hidden}.tour-note-dialog figure img{display:block;width:100%;height:100%;object-fit:cover}.tour-note-dialog figure.diptych img{position:absolute;height:200%;object-fit:fill}.tour-note-copy{padding:20px}.tour-note-copy h2{font:17px/1.5 TazikUI;color:#28635d;margin:0 0 16px}.tour-note-copy p{margin:0 0 18px}.tour-note-copy aside{background:#e7eddb;border-radius:20px;padding:16px;margin:0 0 18px}.tour-note-copy aside h3{font:14px/1.45 TazikReading;font-weight:bold;margin:0 0 8px;color:#376759}.tour-note-copy aside p{margin:0}.tour-note-copy details{font-size:12px;color:#81735e;margin-top:12px}.tour-note-copy details p{margin:10px 0}.tour-note-copy .tour-source{font-size:12px;overflow-wrap:anywhere}.tour-route-error{font:14px/1.5 TazikReading;color:#8b533b}
.tour-transport:has(.tour-map-note) .tour-transport-map{flex-basis:44%;min-height:220px}
@media(max-width:350px){.tour-note-strip{margin-inline:16px}.tour-note-chip b{font-size:13px}.tour-note-dialog header{padding:10px 16px}.tour-note-copy{padding:18px}}

body.tazik-app .tour-map-note{z-index:2}.tour-map-note::before{content:"";position:absolute;left:50%;top:50%;height:2px;width:max(0px,calc(var(--note-leader,0px) - 22px));background:#326c5d;box-shadow:0 0 0 1px #fff8e8;transform:rotate(var(--note-angle,0rad)) translateX(22px);transform-origin:left center;z-index:-1;pointer-events:none}

/* Inline maps reserve their final box immediately; one page scroll and one map owner. */
.tour-inline-leg{margin:0 20px 24px}.tour-inline-leg .tour-points{margin:0 0 16px;display:block;font:14px/1.5 TazikReading;color:#81735e}.tour-inline-leg .tour-points h2{font:16px/1.5 TazikUI;color:#28635d;margin:8px 0 0}.tour-inline-host{min-height:360px}
.tour-transport-inline{border-radius:24px;background:#fff9ec;box-shadow:0 4px 16px #49351e20;overflow:hidden}.tour-transport-inline .tour-transport-map,.tour-transport-inline:has(.tour-map-note) .tour-transport-map{height:clamp(300px,48dvh,460px);min-height:300px}.tour-transport-inline .tour-transport-body{overflow:visible;padding:16px}.tour-transport-inline .tour-origin{margin-top:12px}.tour-transport-inline .tour-transport-status:empty{display:none}.tour-route-details{margin-top:12px}.tour-route-details summary{cursor:pointer;color:#28635d}
.tour-intro .tour-start{min-height:60px;background:#e9ac25;color:#3d3529;font-size:18px;margin-top:20px}.tour-intro>.tour-text-link{display:block;text-align:center;margin-top:16px}.tour-map-note::before{display:none}
body.tazik-app dialog.tour-note-dialog{padding:0;width:min(420px,calc(100vw - 24px));max-height:calc(100dvh / var(--app-ui-scale,1) - 32px);border:0;border-radius:24px;box-shadow:0 14px 55px #112b2466;background:#fff8e8;overflow:auto}body.tazik-app .tour-note-dialog header{margin:0;padding:12px 16px}body.tazik-app .tour-note-copy h2{font:16px/1.5 TazikUI;color:#28635d;margin:0 0 16px}body.tazik-app .tour-note-copy p{font:16px/1.5 TazikReading;color:#3d3529;margin:0 0 16px;white-space:normal}.tour-note-copy .tour-note-look{border-top:1px solid #dfd6bf;padding-top:16px}.tour-note-copy{padding:16px}.tour-note-copy details{margin-top:12px}
@media(max-width:350px){.tour-inline-leg{margin-inline:16px}.tour-step-next{max-width:130px}}

.tour-origin-picker{margin:0 0 16px}.tour-origin-picker>summary{cursor:pointer;font:14px/1.5 TazikReading;color:#28635d}.tour-origin-picker[hidden]{display:none}.tour-origin-picker[open]>button{margin-top:12px}.tour-transport-status:empty{display:none}

/* Pixel arrows have stable geometry independent of font baselines. */
.tour-arrow{display:block;width:20px;height:20px;flex:none;shape-rendering:crispEdges}.tour-arrow.left{transform:rotate(180deg)}
body.tazik-app .tour-controls>button,.tour-gallery-stage button{display:grid;place-items:center;padding:0;line-height:1}
.tour-step-prev{width:44px;height:44px;border-radius:50%;background:#e4ebd9;flex:none}
.tour-step-nav{gap:8px;padding:10px;margin-bottom:20px}.tour-step-nav a{box-sizing:border-box;min-width:0}.tour-step-next{max-width:132px}
.tour-location-tools{display:contents}
body.tazik-app .tour-location-tools button{display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:#fff8e8e6;color:#365c49;box-shadow:0 3px 12px #28443233;font:13px/1 TazikUI}
.tour-location-tools svg{width:22px;height:22px}.tour-location-tools button[aria-pressed=true]{background:#dce8d8}
.tour-user-location{display:grid;place-items:center;width:34px;height:34px;pointer-events:none;border-radius:50%;background:#427cba25}
.tour-user-location b{width:13px;height:13px;border:3px solid #fff8e8;border-radius:50%;background:#347eb0;box-shadow:0 1px 6px #173c5266;z-index:1}.tour-user-location.is-coarse{outline:1px dashed #347eb0;background:#427cba15}
.tour-user-direction{position:absolute;inset:-13px;border-radius:50%;background:conic-gradient(from -24deg at 50% 50%,#347eb066 0deg,#347eb044 48deg,transparent 48deg);transition:transform 500ms linear;pointer-events:none}.tour-user-direction[hidden]{display:none}

.tour-step-nav{grid-template-columns:44px minmax(0,1fr) 44px}.tour-step-nav .tour-step-next{width:44px;height:44px;padding:0;border-radius:50%;max-width:none}.tour-inline-leg .tour-points h2{margin:0}.tour-inline-leg .tour-points>div:first-child{padding-bottom:12px}
/* Preserve a 44px screen hit area under the shared mobile UI scale. */
.tour-step-nav{--tour-hit:calc(44px / var(--app-ui-scale,1));grid-template-columns:var(--tour-hit) minmax(0,1fr) var(--tour-hit)}
.tour-step-nav :is(.tour-step-prev,.tour-step-next){width:var(--tour-hit);height:var(--tour-hit);min-height:var(--tour-hit)}
.tour-arrow{width:calc(20px / var(--app-ui-scale,1));height:calc(20px / var(--app-ui-scale,1))}
body.tazik-app .tour-gallery-stage button{width:calc(44px / var(--app-ui-scale,1));height:calc(44px / var(--app-ui-scale,1))}

/* The story is one reading surface; images keep their space before decoding. */
.tour-story{font:17px/1.7 TazikReading,Arial,sans-serif;color:var(--tour-ink,#3d3529)}
.tour-story>p,.tour-story>h3,.tour-story>.tour-look{margin:0 20px 22px}
.tour-story>h3{font:17px/1.5 TazikUI,monospace;color:var(--tour-green);margin-top:28px}
.tour-content .tour-story-picture{margin:0 0 24px}.tour-story-panel{position:relative;aspect-ratio:1.5;overflow:hidden;background:#e9dfc7}
.tour-story-panel img{position:absolute;width:100%;height:200%;left:0;object-fit:fill;display:block}
.tour-story-picture figcaption{padding:10px 20px 0;color:var(--tour-muted);font:13px/1.5 TazikReading}
.tour-bottom-nav{margin-top:24px}.tour-story .tour-look{padding:16px;border-radius:20px}.tour-story .tour-look p{margin:0}
@media(max-width:350px){.tour-story{font-size:16px}.tour-story>p,.tour-story>h3,.tour-story>.tour-look{margin-inline:16px}}
.tour-story~.tour-art-credit{margin-bottom:0}.tour-story~.tour-place-copy{padding-top:16px}
.tour-footer a{white-space:nowrap}

/* A diptych cover shows the first panel without stretching either scene. */
.tour-content img.tour-cover-diptych,.tour-tile img.tour-cover-diptych{object-position:50% 0}
.tour-visit-host{min-height:72px;margin:12px 0 20px}.tour-place>.tour-visit-host{margin-inline:20px}.tour-visit{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:14px 16px;border-radius:20px;background:#e7ebdc;color:#365b4d;font:14px/1.5 TazikReading,Arial,sans-serif;box-shadow:0 3px 10px #28443212}.tour-visit>span{flex:1 1 160px}.tour-visit>small{flex-basis:100%;font-size:12px;color:#657567}.tour-visit progress{flex-basis:100%;width:100%;height:5px;accent-color:#2c675c}.tour-visit [hidden]{display:none!important}.tour-visit button{border:0;border-radius:14px;padding:10px 12px;min-height:44px;background:#fff8e8;color:#265b50;font:12px/1.4 TazikUI}.tour-visit.is-confirmed{background:#dcead8}.tour-visit .tour-text-link{margin:0;font-size:12px}.tour-intro>.tour-visit-host{margin-block:16px}

/* One navigation bar and a quiet dark-blue canvas; the reading cards stay warm. */
body.excursions-page{background:#102c50}
#excursions-view{--tour-paper:#102c50;--tour-shadow:0 5px 18px #04162933;background:var(--tour-paper)}
.tour-content{padding-top:20px!important}
body.tazik-app .tour-step-nav{position:sticky;top:calc(var(--app-safe-top,0px) + var(--app-header-height,36px) + var(--section-row,44px) + 10px);z-index:30;isolation:isolate;border-radius:999px;background:linear-gradient(145deg,#fff9ece6,#fff9ecc2);border:1px solid #fff8e866;backdrop-filter:blur(18px) saturate(.8);-webkit-backdrop-filter:blur(18px) saturate(.8);box-shadow:0 5px 20px #06162b44;margin:0 20px 24px;padding:10px;gap:12px}
body.tazik-app .tour-step-nav .tour-step-index{font:11px/1.65 TazikUI,monospace;gap:4px}
body.tazik-app .tour-step-index small{font:12px/1.4 TazikCompact,TazikText,monospace}
body.tazik-app .tour-step-nav :is(.tour-step-prev,.tour-step-next){border-radius:50%;background:#e4ebd999;aspect-ratio:1;flex-shrink:0}
.tour-content .tour-inline-leg>.tour-points{color:#dae5ee;border-color:#dce5ef30;padding:4px 4px 24px;margin-bottom:24px}
.tour-content .tour-inline-leg .tour-points h2{color:#fff8e8}
.tour-content .tour-inline-leg .tour-points>div{padding-left:34px;line-height:1.6}
.tour-content .tour-inline-leg .tour-points>div:first-child{padding-bottom:26px}
.tour-content .tour-inline-leg .tour-points>div:before{box-sizing:border-box;left:2px;top:6px;width:14px;height:14px;aspect-ratio:1;border:2px solid #b5d7d4;border-radius:50%;background:#102c50}
.tour-content .tour-inline-leg .tour-points>div:last-child:before{background:#b5d7d4}
.tour-content .tour-inline-leg .tour-points>div:first-child:after{left:8px;top:23px;bottom:5px;border-color:#b5d7d477}
body.tazik-app .tour-action{display:flex;justify-content:center;align-items:center;min-height:55px;box-sizing:border-box;width:100%;padding:15px 18px;border-radius:99px;background:#e9ac25;color:#3d3529;text-align:center;font:14px/1.5 TazikUI,monospace;box-shadow:0 3px 10px #b5781b22;margin-top:20px}
.tour-slider .tour-facts,.tour-controls[hidden]{display:none!important}
.tour-slider h2{min-height:0;margin-bottom:0}.tour-slider .tour-action{margin-top:auto}.tour-slider .tour-tile-copy{gap:16px}
.tour-intro{display:flex;flex-direction:column;gap:20px}.tour-intro>:is(h2,p,.tour-facts,.tour-start,.tour-text-link){margin:0!important}
.tour-intro .tour-facts{gap:8px}.tour-intro .tour-start{margin-top:4px!important}
.tour-page-title{color:#e3eaf0}.tour-page-title h2{color:#fff8e8}.tour-page-title>p:last-child{color:#becbd8}
.tour-footer{display:flex;justify-content:center;align-items:center;gap:18px;padding:26px 16px 24px;font:12px/1.6 TazikCompact,TazikText,monospace;color:#becbd8}
.tour-footer a{color:inherit;text-underline-offset:3px}
.tour-visit-host[hidden]{display:none!important}
body.tazik-app .tour-transport .tour-route-option{display:flex;flex-direction:column;gap:0;padding:16px 18px;font:15px/1.5 TazikReading,Arial,sans-serif}
body.tazik-app .tour-route-option .tour-option-stage{display:flex;flex-direction:column;gap:5px;position:relative;padding:0 0 16px 22px;grid-column:auto;grid-row:auto}
body.tazik-app .tour-route-option .tour-option-stage:last-child{padding-bottom:0}
.tour-option-stage:before{content:'';position:absolute;top:6px;left:0;width:8px;height:8px;border:1px solid #578176;border-radius:50%;background:#fff9ec;box-sizing:border-box}
.tour-option-stage:not(:last-child):after{content:'';position:absolute;left:3px;top:17px;bottom:4px;border-left:1px solid #57817655}
.tour-option-stage strong{font:12px/1.6 TazikUI,monospace;color:#28635d}.tour-option-stage>span{font:14px/1.5 TazikReading,Arial,sans-serif;color:#665c4b}
@media(max-width:350px){body.tazik-app .tour-step-nav{margin-inline:16px;gap:8px;padding:8px}.tour-intro{gap:18px}.tour-step-nav .tour-step-index{font-size:10px!important}}

body.tazik-app .tour-transport .tour-route-option{align-items:stretch;text-align:left}.tour-option-stage strong{text-align:left}

/* Short pages keep the native footer at the foot of the available viewport. */
body.tazik-app.excursions-page{padding-bottom:calc(var(--app-nav-height,48px) + var(--app-safe-bottom,0px))}
body.tazik-app #excursions-view{box-sizing:border-box;min-height:calc(100dvh / var(--app-ui-scale,1) - var(--app-safe-top,0px) - var(--app-header-height,36px) - var(--app-nav-height,48px) - var(--app-safe-bottom,0px));padding-bottom:0}
body.tazik-app .tour-content{box-sizing:border-box;display:flex!important;flex-direction:column;min-height:calc(100dvh / var(--app-ui-scale,1) - var(--app-safe-top,0px) - var(--app-header-height,36px) - var(--section-row,44px) - var(--app-nav-height,48px) - var(--app-safe-bottom,0px))}
.tour-content>.tour-footer{margin-top:auto;flex-shrink:0}
body.tazik-app .tour-step-nav{z-index:32;background:linear-gradient(145deg,#183c60ee,#102c50e0);border-color:#b5d7d466;box-shadow:0 5px 20px #06162b66,0 0 0 1px #102c5033}
body.tazik-app .tour-step-nav a{color:#fff8e8}
body.tazik-app .tour-step-nav .tour-step-index small{color:#c4d9df}
body.tazik-app .tour-step-nav :is(.tour-step-prev,.tour-step-next){background:#b5d7d426}
.tour-option-stage .tour-stage-time{white-space:nowrap;font:14px/1.5 TazikCompact,TazikText,monospace;font-weight:normal;color:#665c4b}

.tour-credits-button{border:0;background:none;color:inherit;opacity:.65;min-width:32px;min-height:32px;padding:0;font:italic 17px Georgia,serif;cursor:pointer}
.tour-credit-entry{margin-top:20px}.tour-credit-entry h3{font-size:15px}.tour-credit-entry p{font-size:13px;overflow-wrap:anywhere}
.tour-visit-host.is-error{min-height:0;margin:12px 20px}.tour-visit-host.is-error .tour-visit{padding:10px 14px;font-size:13px}.tour-visit-host.is-error small,.tour-visit-host.is-error progress{display:none}

.tour-tile.tour-upcoming{filter:grayscale(1)}

body.tazik-app #excursions-view .tour-story{padding-bottom:24px}
.tour-content>.tour-finish{flex:1;display:flex;flex-direction:column}
.tour-finish>.tour-intro{flex:1}
.tour-finish .tour-primary{margin-top:auto!important}
body.tazik-app :is(#excursions-view,.tour-transport) .tour-map-tools.tazik-map-tools{top:12px;bottom:12px;translate:none}
body.tazik-app :is(#excursions-view,.tour-transport) .tour-map-tools.tazik-map-tools .tazik-map-zoom{flex:1;min-height:0}
body.tazik-app :is(#excursions-view,.tour-transport) .tour-map-tools.tazik-map-tools .tazik-map-zoom button{flex:1;height:auto;min-height:32px}

.tour-note-copy .tour-archive-picture{margin:18px 0 8px;aspect-ratio:auto;overflow:visible}
.tour-note-copy .tour-archive-picture img{display:block;position:static;width:100%;height:auto}
.tour-archive-picture figcaption,.tour-note-copy>small{font:13px/1.45 TazikReading,Arial,sans-serif;color:#675d4b}
.tour-note-copy .tour-note-source{margin-top:12px}

.tour-note-dialog>figure.tour-archive-original{height:auto;aspect-ratio:auto}.tour-note-dialog>figure.tour-archive-original img{position:static;display:block;height:auto;width:100%}


.tour-note-pin.maplibregl-marker{width:0;height:0;pointer-events:none;z-index:2}
.tour-note-pin>i{position:absolute;top:-1px;left:0;height:2px;background:#326c5d;box-shadow:0 0 0 1px #fff8e8;transform-origin:0 50%;pointer-events:none}
.tour-note-pin::before{content:"";position:absolute;left:-2px;top:-2px;width:4px;height:4px;border-radius:50%;background:#326c5d;box-shadow:0 0 0 1px #fff8e8}
body.tazik-app .tour-note-pin>.tour-map-note{pointer-events:auto;margin:0;transform:translate(-50%,-50%)}
