/* Tour builder ("Create your tour") — colours and fonts follow the Tynchtyk Site tokens (src/styles/global.css) */
:root {
  --c-ink: #14212e;
  --c-muted: #5b6b7b;
  --c-heading: #1d4e7a;
  --c-accent: #e2953a;
  --c-accent-dark: #c97b22;
  --c-green: #3f8f5a;
  --c-bg: #ffffff;
  --c-soft: #f4f7fa;
  --c-line: #e1e7ee;
  --c-dark: #0f1a24;
  --c-warn-bg: #fff4e3;
  --c-warn: #8a5208;
  --c-bad-bg: #fdecec;
  --c-bad: #8a1f26;
  --c-info-bg: #eaf2fa;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 6px 24px rgba(16, 37, 58, .12);
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --top: 56px;
  --panel-w: 410px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; font-family: var(--font); color: var(--c-ink); background: var(--c-bg); font-size: 16px; line-height: 1.5; -webkit-text-size-adjust: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2 { color: var(--c-heading); line-height: 1.2; margin: 0; }

.tb { position: fixed; inset: 0; display: grid; grid-template-columns: var(--panel-w) 1fr; grid-template-rows: var(--top) 1fr; }
.tb-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; padding: 0 20px; background: var(--c-dark); color: #fff; z-index: 1001; }
.tb-brand { color: #fff; font-weight: 800; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; font-size: .92rem; white-space: nowrap; }
.tb-top h1 { color: var(--c-accent); font-size: 1.05rem; font-weight: 700; flex: 1; }
.tb-top .tb-link { color: #fff; }
.tb-home { display: none; color: #fff; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.12); flex: none; } /* phones: back to the website (the name is hidden there) */
.tb-link { background: none; border: 0; padding: 4px 0; color: var(--c-heading); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: .92rem; }
.tb-map { grid-column: 2; grid-row: 2; background: #dfe4dc; z-index: 0; }
.tb-panel { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; min-height: 0; background: #fff; border-right: 1px solid var(--c-line); z-index: 2; }
.tb-handle { display: none; }
.tb-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.tb-sec { padding: 18px 20px; border-bottom: 1px solid var(--c-line); }
.tb-sec h2 { font-size: 1.15rem; margin-bottom: 10px; }
.tb-sec-head { display: flex; justify-content: space-between; align-items: baseline; }
.tb-empty { color: var(--c-muted); margin: 6px 0 12px; font-size: .95rem; }
.tb-note { color: var(--c-muted); font-size: .85rem; margin: 10px 0 0; }
.tb-hint { color: var(--c-muted); font-size: .85rem; margin: 6px 0 0; }

/* totals */
.tb-totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 14px; }
.tb-totals div { background: var(--c-dark); color: #fff; border-radius: 10px; padding: 10px 12px; }
.tb-totals dt { font-weight: 700; font-size: 1.3rem; line-height: 1.1; }
.tb-totals dd { margin: 3px 0 0; font-size: .78rem; color: rgba(255, 255, 255, .72); }

/* itinerary list */
.tb-list { list-style: none; margin: 0; padding: 0; }
.tb-item { display: grid; grid-template-columns: minmax(30px, auto) 1fr auto; gap: 4px 10px; align-items: center; padding: 8px 6px; border-radius: 10px; background: #fff; border: 1px solid transparent; }
.tb-item.dragging { opacity: .5; }
.tb-item.drop-before { box-shadow: inset 0 3px 0 var(--c-accent); }
.tb-item.drop-after { box-shadow: inset 0 -3px 0 var(--c-accent); }
.tb-item:hover { background: var(--c-soft); }
.tb-num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c-heading); color: #fff; font-weight: 700; font-size: .82rem; cursor: grab; touch-action: none; user-select: none; }
.tb-num.start { background: var(--c-dark); }
.tb-name { min-width: 0; }
.tb-name b { display: block; font-weight: 600; line-height: 1.25; cursor: pointer; }
.tb-name small { color: var(--c-muted); font-size: .8rem; }
.tb-tools { display: flex; align-items: center; gap: 2px; }
.tb-icon { width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: var(--c-muted); cursor: pointer; font-size: 1rem; line-height: 1; display: grid; place-items: center; }
.tb-icon:hover:not(:disabled) { background: var(--c-line); color: var(--c-ink); }
.tb-icon:disabled { opacity: .3; cursor: default; }
.tb-nights { grid-column: 2 / 4; display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--c-muted); }
.tb-nights button { width: 24px; height: 24px; border: 1px solid var(--c-line); background: #fff; border-radius: 6px; cursor: pointer; line-height: 1; padding: 0; }
.tb-nights output { min-width: 66px; text-align: center; color: var(--c-ink); font-weight: 600; }
.tb-leg { list-style: none; margin: 0 0 0 19px; padding: 4px 0 4px 18px; border-left: 2px dashed #b9c6d3; font-size: .82rem; color: var(--c-muted); }
.tb-leg.long { border-left-color: #e0a14e; color: var(--c-warn); }
.tb-leg.too-long { border-left-color: #d0545c; color: var(--c-bad); font-weight: 600; }
.tb-leg.return { margin-top: 2px; }
.tb-leg.foot { border-left-color: #0d7a5f; border-left-style: dotted; color: #0d5b47; }
.tb-leg.walk-days { color: var(--c-warn); }
.tb-mode-leg { border: 1px solid var(--c-line); background: #fff; border-radius: 999px; padding: 0 8px; font-size: .74rem; color: var(--c-muted); cursor: pointer; margin-left: 4px; white-space: nowrap; }
.tb-mode-leg:hover { border-color: var(--c-heading); color: var(--c-heading); }
.tb-wait { color: var(--c-muted); font-style: italic; }
.tb-tail { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 4px; font-size: .76rem; color: var(--c-muted); }
.tb-tail button { border: 1px solid var(--c-line); background: #fff; border-radius: 999px; padding: 1px 8px; font-size: .76rem; cursor: pointer; color: var(--c-ink); }
.tb-tail button[aria-pressed="true"] { background: #0d7a5f; border-color: #0d7a5f; color: #fff; }
.tb-walk { margin: -6px 0 12px; font-size: .9rem; color: #0d5b47; }
.tb-see { display: block; font-size: .78rem; color: var(--c-muted); font-weight: 400; line-height: 1.4; margin-top: 2px; }
.tb-spot-link { border: 0; background: none; padding: 0; color: #0d7a5f; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; font-size: inherit; }
.tb-see-d { color: #0d7a5f; }
.tb-end { list-style: none; display: flex; align-items: center; gap: 10px; padding: 6px; color: var(--c-muted); font-size: .9rem; }
.tb-end .tb-num { background: #8a99a8; cursor: default; }

/* alerts */
.tb-alerts { display: grid; gap: 8px; margin-top: 10px; }
.tb-alert { border-radius: 10px; padding: 10px 12px; font-size: .88rem; background: var(--c-warn-bg); color: var(--c-warn); }
.tb-alert.bad { background: var(--c-bad-bg); color: var(--c-bad); }
.tb-alert.info { background: var(--c-info-bg); color: var(--c-heading); }
.tb-alert b { display: block; margin-bottom: 2px; }
.tb-alert button { margin-top: 6px; border: 1px solid currentColor; background: #fff; color: inherit; border-radius: 8px; padding: 4px 10px; font-size: .85rem; cursor: pointer; font-weight: 600; }
.tb-check { display: flex; gap: 8px; align-items: center; margin-top: 10px; font-size: .92rem; cursor: pointer; }
.tb-check input { width: 18px; height: 18px; accent-color: var(--c-heading); }

/* fields */
.tb-field { border: 0; margin: 0 0 16px; padding: 0; }
.tb-two { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.tb-two .tb-hint { grid-column: 1 / -1; margin: 0; }
.tb-field > label, .tb-field legend { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; padding: 0; }
.tb-stepper { display: inline-flex; border: 1px solid var(--c-line); border-radius: 10px; overflow: hidden; }
.tb-stepper button { width: 42px; border: 0; background: var(--c-soft); cursor: pointer; font-size: 1.2rem; }
.tb-stepper input { width: 56px; border: 0; text-align: center; font-weight: 700; padding: 8px 0; -moz-appearance: textfield; }
.tb-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.tb-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tb-opt { position: relative; display: block; border: 1px solid var(--c-line); border-radius: 10px; padding: 9px 10px; cursor: pointer; font-size: .85rem; line-height: 1.3; }
.tb-opt input { position: absolute; opacity: 0; pointer-events: none; }
.tb-opt b { display: block; font-size: .92rem; }
.tb-opt span { color: var(--c-muted); }
.tb-by { margin-top: 8px; }
.tb-show-opt { display: flex; gap: 10px; align-items: flex-start; padding: 7px 4px; border-bottom: 1px solid var(--c-soft); cursor: pointer; }
.tb-show-opt input { margin-top: 4px; accent-color: var(--c-heading); }
.tb-show-opt b { display: block; font-size: .9rem; }
.tb-show-opt small { color: var(--c-muted); font-size: .76rem; }
.tb-show-opt.off { opacity: .55; cursor: default; }
.tb-opt.off { opacity: .55; cursor: not-allowed; }
.tb-opt .tb-no { display: block; color: var(--c-bad); font-size: .74rem; font-weight: 600; margin-bottom: 2px; }
.tb-opt:has(input:checked) { border-color: var(--c-heading); box-shadow: 0 0 0 1px var(--c-heading); background: var(--c-info-bg); }
.tb-opt:has(input:focus-visible) { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.tb-opt .tb-rec { position: absolute; top: -8px; right: 8px; background: var(--c-green); color: #fff; font-size: .68rem; font-weight: 700; padding: 1px 6px; border-radius: 6px; }
select, .tb-form input, .tb-form textarea { width: 100%; border: 1px solid var(--c-line); border-radius: 10px; padding: 9px 10px; background: #fff; }
.tb-price { margin-top: 4px; padding: 12px; border-radius: 10px; background: var(--c-soft); }
.tb-price b { font-size: 1.2rem; color: var(--c-heading); }
.tb-calc { width: 100%; border-collapse: collapse; font-size: .84rem; }
.tb-calc td { padding: 3px 0; border-bottom: 1px solid var(--c-line); }
.tb-calc td:last-child { text-align: right; white-space: nowrap; font-weight: 600; }
.tb-calc small { color: var(--c-muted); }
.tb-calc tr.sum td { font-weight: 700; color: var(--c-heading); border-bottom: 2px solid var(--c-heading); }
.tb-est { background: var(--c-info-bg) !important; }
.tb-est dd { font-size: 1.1rem; font-weight: 700; color: var(--c-heading); }

/* browse */
.tb-browse summary { cursor: pointer; font-weight: 600; color: var(--c-heading); }
.tb-region { margin: 12px 0 0; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--c-accent-dark); font-weight: 700; }
.tb-place-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--c-soft); font-size: .92rem; }
.tb-place-row button.tb-show { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: var(--c-ink); }
.tb-place-row button.tb-add-s { border: 1px solid var(--c-line); background: #fff; border-radius: 8px; padding: 2px 10px; cursor: pointer; font-size: .82rem; white-space: nowrap; }
.tb-place-row button.tb-add-s[aria-pressed="true"] { background: var(--c-green); border-color: var(--c-green); color: #fff; }

.tb-cta { position: sticky; bottom: 0; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(255,255,255,0), #fff 30%); }
.tb-btn { display: flex; width: 100%; justify-content: center; padding: 13px 18px; border: 0; border-radius: var(--radius-sm); background: var(--c-accent); color: #fff; font-weight: 700; font-size: 1rem; cursor: pointer; }
.tb-btn:hover:not(:disabled) { background: var(--c-accent-dark); }
.tb-btn:disabled { background: #c9d2db; cursor: not-allowed; }

/* map pins & popup */
.pin { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid #1d4e7a; box-shadow: 0 2px 6px rgba(0,0,0,.35); display: grid; place-items: center; font: 700 11px/1 var(--font); color: #fff; transition: transform .15s; }
.pin:hover { transform: scale(1.25); }
.pin.on { width: 28px; height: 28px; background: var(--c-accent); border-color: #fff; font-size: 13px; }
.pin.on.start { background: var(--c-dark); }
.pin-wrap { background: none; border: 0; }
.leaflet-popup-content-wrapper { border-radius: 14px; padding: 0; overflow: hidden; }
.leaflet-popup-content { margin: 0; width: 270px !important; }
.pop-img { width: 100%; height: 160px; object-fit: cover; display: block; background: var(--c-soft); }
.pop-noimg { height: 90px; display: grid; place-items: center; background: linear-gradient(135deg, #1d4e7a, #0f1a24); color: rgba(255,255,255,.7); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.pop-dots { display: flex; gap: 4px; justify-content: center; margin-top: -16px; position: relative; }
.pop-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.6); cursor: pointer; }
.pop-dots button.on { background: #fff; }
.pop-in { padding: 10px 14px 14px; }
.pop-in h3 { margin: 0 0 4px; font-size: 1.02rem; color: var(--c-heading); line-height: 1.25; }
.pop-in p { margin: 0 0 8px !important; font-size: .86rem; line-height: 1.45; color: var(--c-ink); }
.pop-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.pop-tags span { font-size: .72rem; padding: 2px 7px; border-radius: 6px; background: var(--c-soft); color: var(--c-muted); }
.pop-tags span.warn { background: var(--c-warn-bg); color: var(--c-warn); }
.pop-btn { width: 100%; padding: 9px; border: 0; border-radius: 8px; background: var(--c-accent); color: #fff; font-weight: 700; cursor: pointer; }
.pop-btn.added { background: var(--c-green); }
.pop-btn.pop-again { margin-top: 6px; background: #fff; color: var(--c-heading); border: 1px solid var(--c-heading); }
.pop-pic { position: relative; }
.pop-cap { position: absolute; left: 8px; bottom: 20px; max-width: calc(100% - 16px); padding: 2px 8px; border-radius: 6px; background: rgba(15,26,36,.7); color: #fff; font-size: .74rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop-cap[hidden] { display: none; }
.pop-in a { color: var(--c-accent-dark); font-weight: 600; }
/* photo points: small camera; a point that is its own (new) place has a darker ring */
.spot { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid #0d7a5f; box-shadow: 0 1px 4px rgba(0,0,0,.35); display: grid; place-items: center; transition: transform .15s; }
.spot svg { width: 13px; height: 13px; fill: none; stroke: #0d7a5f; stroke-width: 2.2; stroke-linejoin: round; }
.spot.own { border-color: var(--c-accent); }
.spot.own svg { stroke: var(--c-accent); }
.pin.guess { border-style: dashed; animation: tb-pulse 1.6s ease-in-out infinite; }
.spot:hover { transform: scale(1.2); }
@keyframes tb-pulse { 50% { box-shadow: 0 0 0 6px rgba(13,122,95,.25); } }
/* edit mode */
.tb-edit { background: #fff8e8; }
.ed-st { font-size: .82rem !important; color: var(--c-muted); }
.ed-l { display: grid; gap: 4px; font-size: .8rem; font-weight: 600; margin-bottom: 8px; }
.ed-l select { font: inherit; font-weight: 400; padding: 6px; border-radius: 8px; border: 1px solid var(--c-line); }
.ed-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; max-height: 360px; overflow-y: auto; }
.ed-list button { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 10px; width: 100%; text-align: left; padding: 4px; border: 1px solid var(--c-line); border-radius: 8px; background: #fff; cursor: pointer; font: inherit; }
.ed-list img, .ed-list span { grid-row: span 2; width: 44px; height: 34px; object-fit: cover; border-radius: 5px; background: var(--c-soft); }
.ed-list b { font-size: .86rem; color: var(--c-heading); }
.ed-list small { font-size: .74rem; color: var(--c-muted); }
.fx-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.fx-row button:not(.pop-btn) { border: 1px solid var(--c-line); background: #fff; border-radius: 999px; padding: 4px 10px; font-size: .8rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.fx-row button[aria-pressed="true"] { border-color: var(--c-heading); background: var(--c-info-bg); font-weight: 600; }
.fx-row button i { width: 16px; height: 4px; border-radius: 2px; background: var(--c); }
.fx-row .pop-btn:disabled { background: #c9d2db; cursor: not-allowed; }
.fx-list li { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border: 1px solid var(--c-line); border-radius: 8px; background: #fff; font-size: .82rem; }
.fx-list li small { flex: 1; min-width: 0; }
.fx-list li .fx-sw { grid-row: auto; width: 18px; height: 5px; flex: none; border-radius: 2px; background: var(--c); }
.fx-list li button { display: inline; width: auto; border-radius: 0; border: 0; background: none; color: var(--c-heading); text-decoration: underline; cursor: pointer; font-size: .76rem; padding: 0 2px; }
.fx-sw { width: 18px; height: 5px; border-radius: 2px; background: var(--c); flex: none; }
.fx-on, .fx-on .leaflet-interactive { cursor: crosshair !important; }
.leaflet-container a.leaflet-popup-close-button { color: #fff; text-shadow: 0 0 4px rgba(0,0,0,.8); font-size: 22px; width: 28px; height: 28px; }

/* build / explore switch */
.tb-mode { display: inline-flex; background: rgba(255,255,255,.12); border-radius: 999px; padding: 3px; gap: 2px; flex: none; }
.tb-mode button { border: 0; background: none; color: rgba(255,255,255,.8); padding: 5px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.tb-mode button[aria-pressed="true"] { background: #fff; color: var(--c-dark); }
.pin.small { width: 14px; height: 14px; border-width: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.thumb { width: 46px; height: 46px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.45); overflow: hidden; background: var(--c-soft); transition: transform .15s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb:hover { transform: scale(1.15); }
.tb-explore .tb-panel { display: none; }
.tb-explore .tb-map { grid-column: 1 / -1; }
.pop-x .pop-img { height: 200px; }
.pop-where { color: var(--c-muted); font-size: .8rem !important; margin-bottom: 6px !important; }
/* dialogs */
.tb-dialog { border: 0; border-radius: var(--radius); padding: 0; width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); box-shadow: var(--shadow); }
.tb-dialog::backdrop { background: rgba(15, 26, 36, .55); }
.tb-dialog-in { position: relative; padding: 24px; }
.tb-x { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--c-muted); }
.tb-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; color: var(--c-accent-dark); margin: 0 0 4px; }
.tb-dialog h2 { font-size: 1.4rem; margin-bottom: 12px; }
.tb-sum { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0 0 14px; }
.tb-sum div { background: var(--c-soft); border-radius: 10px; padding: 8px 12px; }
.tb-sum dt { font-size: .75rem; color: var(--c-muted); }
.tb-sum dd { margin: 0; font-weight: 600; }
.tb-days { margin: 0 0 16px; padding: 0; list-style: none; border: 1px solid var(--c-line); border-radius: 10px; max-height: 240px; overflow-y: auto; }
.tb-days li { padding: 7px 12px; border-bottom: 1px solid var(--c-soft); font-size: .9rem; }
.tb-days li b { color: var(--c-heading); margin-right: 6px; }
.tb-days li small { color: var(--c-muted); }
.tb-form { display: grid; gap: 10px; }
.tb-form label { display: grid; gap: 4px; font-size: .88rem; font-weight: 600; }
.tb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tb-dates { align-items: end; } .tb-dates .tb-flex { margin: 0 0 10px; } #date-hint { margin: 2px 0 8px; }
.tb-msg { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--c-info-bg); font-size: .9rem; }
.tb-msg.ok { background: #e7f5ec; color: #1f6b3b; }
.tb-msg.err { background: var(--c-bad-bg); color: var(--c-bad); }
.tb-steps { padding-left: 1.2em; }
.tb-steps li { margin: 0 0 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- phone / small tablet: map full screen, trip as a bottom sheet ---------- */
@media (max-width: 860px) {
  :root { --top: 48px; }
  .tb { grid-template-columns: 1fr; }
  .tb-top { padding: 0 14px; gap: 10px; }
  .tb-brand { display: none; }
  .tb-home { display: inline-flex; }
  .tb-top h1 { font-size: 1rem; }
  .tb-map { grid-column: 1; grid-row: 2; }
  .tb-panel { position: fixed; left: 0; right: 0; bottom: 0; height: calc(100dvh - var(--top) - 40px); border: 0; border-radius: 18px 18px 0 0; box-shadow: 0 -6px 24px rgba(16, 37, 58, .18); transform: translateY(calc(100% - 64px - env(safe-area-inset-bottom))); transition: transform .3s cubic-bezier(.2,.7,.2,1); z-index: 1000; }
  .tb-panel[data-state="open"] { transform: none; }
  .tb-handle { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; width: 100%; padding: 8px 16px 10px; border: 0; background: none; cursor: pointer; min-height: 64px; }
  .tb-grip { width: 40px; height: 5px; border-radius: 3px; background: #c9d2db; }
  .tb-peek { font-weight: 600; font-size: .95rem; color: var(--c-heading); text-align: center; }
  .tb-sec { padding: 14px 16px; }
  .tb-cta { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .tb-row { grid-template-columns: 1fr; }
  .tb-dialog-in { padding: 20px 16px; }
  .leaflet-popup-content { width: 240px !important; }
  .pop-img { height: 130px; }
  .leaflet-control-layers { margin-top: 10px !important; }
}
@media (max-width: 860px) { .tb-map { margin-bottom: 64px; } .tb-explore .tb-map { margin-bottom: 0; } .tb-top h1 { display: none; } .tb-mode { margin-right: auto; } .tb-mode button { padding: 5px 10px; font-size: .8rem; } .thumb { width: 40px; height: 40px; } }
/* Leaflet's layers icon is a PNG we don't ship — draw it inline */
.leaflet-control-layers-toggle, .leaflet-retina .leaflet-control-layers-toggle { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d4e7a' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 3 2 8l10 5 10-5-10-5z'/%3E%3Cpath d='m2 13 10 5 10-5'/%3E%3C/svg%3E"); background-size: 24px 24px; }

/* road types: bar under the totals, map legend, unpaved km per leg */
.tb-types { margin: -4px 0 14px; }
.tb-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; gap: 2px; background: var(--c-soft); }
.tb-bar span { background: var(--c); min-width: 3px; }
.tb-bar span.dash, .tb-types-list i.dash, .tb-legend i.dash { background: repeating-linear-gradient(90deg, var(--c) 0 6px, transparent 6px 9px); }
.tb-types-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; font-size: .84rem; color: var(--c-muted); }
.tb-types-list li { display: flex; align-items: center; gap: 6px; }
.tb-types-list b { margin-left: auto; color: var(--c-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.tb-types-list i, .tb-legend i { width: 18px; height: 4px; border-radius: 2px; background: var(--c); flex: none; }
.tb-unp { color: var(--c-accent-dark); }
.tb-legend { background: rgba(255, 255, 255, .92); border-radius: 10px; padding: 7px 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); display: grid; gap: 3px; font: 12px/1.3 var(--font); color: var(--c-ink); }
.tb-legend span { display: flex; align-items: center; gap: 7px; }
@media (max-width: 860px) { .tb-legend { font-size: 11px; padding: 5px 8px; } }

.pop-btn:disabled { background: #c9d2db; cursor: not-allowed; }

/* places to stay overnight: a dot in the middle of the pin */
/* overnight: a blue badge with a bed — clearly different from the small white visit dots */
.pin.stay:not(.on) { width: 28px; height: 28px; border-radius: 9px; background: #1d4e7a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 18V7M3 14h18v4M21 14v-2a3 3 0 0 0-3-3h-7v5'/%3E%3Ccircle cx='7' cy='11' r='1.6' fill='white'/%3E%3C/svg%3E") center / 18px no-repeat; border: 2px solid #fff; box-shadow: 0 2px 7px rgba(0,0,0,.45); }
.tb-visit { color: var(--c-muted); }
.pin-key { width: 11px; height: 11px; border-radius: 50%; border: 3px solid #1d4e7a; background: #fff; flex: none; margin: 0 4px; }
.pin-key.stay { width: 19px; height: 19px; margin: 0; border-radius: 6px; border: 0; background: #1d4e7a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 18V7M3 14h18v4M21 14v-2a3 3 0 0 0-3-3h-7v5'/%3E%3Ccircle cx='7' cy='11' r='1.6' fill='white'/%3E%3C/svg%3E") center / 14px no-repeat; }


/* place card */
.tb-tip { font: 600 12px/1.2 var(--font); padding: 3px 8px; border-radius: 6px; }
.card { padding: 12px 12px 10px; }
.card-h h3 { margin: 0 0 2px; font-size: 1.02rem; color: var(--c-heading); line-height: 1.25; padding-right: 18px; }
.card-meta { margin: 0 0 10px !important; font-size: .76rem !important; color: var(--c-muted); line-height: 1.35; }
.card-btns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.card-btns button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px; border: 1px solid var(--c-line); border-radius: 10px; background: #fff; font-size: .72rem; font-weight: 600; color: var(--c-ink); cursor: pointer; }
.card-btns button b { font-size: 1.15rem; line-height: 1; }
.card-btns button:hover:not(:disabled) { border-color: var(--c-heading); background: var(--c-info-bg); }
.card-btns button[data-c="stay"]:not(:disabled) { border-color: var(--c-accent); }
.card-btns button[aria-pressed="true"] { background: var(--c-info-bg); border-color: var(--c-heading); }
.card-btns button:disabled { opacity: .4; cursor: not-allowed; }
.card-in { margin: 8px 0 0 !important; font-size: .8rem !important; color: var(--c-green); font-weight: 600; }
.card-in button { border: 0; background: none; padding: 0 3px; color: var(--c-heading); text-decoration: underline; font-size: .76rem; cursor: pointer; font-weight: 400; }
.card-warn { margin: 8px 0 0 !important; font-size: .78rem !important; color: var(--c-bad); background: var(--c-bad-bg); padding: 5px 8px; border-radius: 8px; }
.card-body { margin-top: 10px; border-top: 1px solid var(--c-line); padding-top: 8px; }
.card-body p { font-size: .85rem; line-height: 1.45; margin: 0 0 8px !important; }
.card-soon { color: var(--c-muted); font-style: italic; }
.leaflet-container a.leaflet-popup-close-button { color: var(--c-muted); text-shadow: none; }
/* photo viewer */
.tb-viewer { position: fixed; inset: 0; z-index: 3000; background: rgba(8, 14, 20, .92); display: grid; place-items: center; padding: 16px; }
.tb-viewer[hidden] { display: none; }
.tb-viewer figure { margin: 0; max-width: min(1100px, 100%); }
.tb-viewer img { display: block; max-width: 100%; max-height: calc(100dvh - 90px); border-radius: 10px; margin: 0 auto; }
.tb-viewer figcaption { color: #fff; text-align: center; margin-top: 10px; font-weight: 600; }
.tb-v-x { position: absolute; top: 10px; right: 14px; border: 0; background: none; color: #fff; font-size: 38px; line-height: 1; cursor: pointer; }
.tb-v-a { position: absolute; top: 50%; transform: translateY(-50%); border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 34px; width: 46px; height: 64px; border-radius: 10px; cursor: pointer; }
.tb-v-a.prev { left: 10px; } .tb-v-a.next { right: 10px; }
@media (max-width: 860px) { .tb-legend { grid-template-columns: auto auto; column-gap: 10px; font-size: 10px; } }

/* edit mode: the send bar must not cover the road tools */
.is-edit .tb-cta { position: static !important; }

.tb-tours-h { display: block; margin-top: 8px; font-weight: 600; }
.tb-tours { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; gap: 3px; }
.tb-tours a, .tb-tours-all { color: inherit; font-weight: 600; }
.tb-tours small { opacity: .75; }

/* must-see places (Tynchtyk's picks): a gold star, on top of everything */
.pin.pick { position: relative; width: 32px; height: 32px; border-radius: 50%; background: #e0901f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2.8l2.8 5.9 6.4.8-4.7 4.4 1.2 6.4L12 17.2l-5.7 3.1 1.2-6.4-4.7-4.4 6.4-.8z'/%3E%3C/svg%3E") center / 20px no-repeat; border: 2.5px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.45); }
.pin.pick.bed::after { content: ''; position: absolute; right: -6px; bottom: -5px; width: 15px; height: 15px; border-radius: 5px; border: 1.5px solid #fff; background: #1d4e7a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 18V7M3 14h18v4M21 14v-2a3 3 0 0 0-3-3h-7v5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.pin-key.pick { width: 19px; height: 19px; margin: 0; border-radius: 50%; border: 0; background: #e0901f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2.8l2.8 5.9 6.4.8-4.7 4.4 1.2 6.4L12 17.2l-5.7 3.1 1.2-6.4-4.7-4.4 6.4-.8z'/%3E%3C/svg%3E") center / 13px no-repeat; }
/* zoomed out: hide the small visit pins */
.tb-far .pin-wrap:has(> .pin.small) { visibility: hidden; pointer-events: none; }
.card-pick { margin: 0 0 2px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; color: #b86e0c; }
/* zoomed out: overnight squares smaller, so the must-see stars lead */
.tb-far .pin.stay:not(.on) { transform: scale(.6); opacity: .9; }
.tb-far .pin.stay:not(.on):hover { transform: scale(.9); opacity: 1; }

/* ---------- pick experiences ---------- */
.tb-pick-sec { display: none; }
.tb-pick .tb-pick-sec { display: block; }
.tb-pick .tb-body > .tb-sec:not(.tb-pick-sec), .tb-pick .tb-cta { display: none; }
.pk-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.pk-tabs button { border: 1px solid var(--c-line); background: #fff; border-radius: 999px; padding: 6px 11px; font: inherit; font-size: .82rem; cursor: pointer; color: var(--c-heading); }
.pk-tabs button[aria-selected="true"] { background: var(--c-dark, #12202c); color: #fff; border-color: transparent; }
.pk-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pk-card { border: 1px solid var(--c-line); border-radius: 12px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.pk-card.on { border-color: var(--c-accent); box-shadow: 0 0 0 2px var(--c-accent) inset; }
.pk-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; cursor: pointer; background: var(--c-soft); }
.pk-noimg { display: grid; place-items: center; font-size: 1.6rem; color: var(--c-muted); }
.pk-in { padding: 8px 9px 10px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.pk-in b { font-size: .86rem; line-height: 1.25; color: var(--c-heading); }
.pk-in small { font-size: .74rem; color: var(--c-muted); }
.pk-tag { font-size: .68rem; font-weight: 700; color: #b86e0c; }
.pk-in button { margin-top: auto; align-self: stretch; margin-top: 8px; border: 0; border-radius: 8px; padding: 7px; font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; background: var(--c-soft); color: var(--c-heading); }
.pk-card.on .pk-in button { background: var(--c-accent); color: #fff; }
.pk-trek { margin-top: 8px; font-size: .78rem; font-weight: 700; color: #2e7d4f; }
.pk-cart { position: sticky; bottom: 0; margin: 16px -20px 0; padding: 10px 20px calc(14px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--c-line); box-shadow: 0 -6px 16px rgba(0,0,0,.06); }
.pk-cart h3 { margin: 0 0 6px; font-size: 1rem; color: var(--c-heading); }
.pk-chips { display: flex; gap: 5px; margin: 0 0 8px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.pk-chips button { flex: none; }
.pk-chips button { border: 0; border-radius: 999px; padding: 4px 9px; background: var(--c-soft); font: inherit; font-size: .76rem; cursor: pointer; color: var(--c-heading); }
.pk-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-bottom: 8px; }
.pk-row label { display: flex; flex-direction: column; gap: 3px; font-size: .76rem; font-weight: 600; color: var(--c-muted); }
.pk-step { height: 34px; }
.pk-step output { min-width: 44px; text-align: center; font-weight: 700; color: var(--c-heading); align-self: center; }
.pk-row select { height: 34px; border: 1px solid var(--c-line); border-radius: 8px; padding: 0 6px; font: inherit; }
.pk-cart .tb-btn { width: 100%; }
.pk-or { margin: 8px 0 0; text-align: center; }
.pin.wish { width: 28px; height: 28px; background: var(--c-accent); border-color: #fff; font-size: 14px; }
.pk-cbtns { grid-template-columns: 1fr 1fr 2fr; }
.pk-cbtns button.on { background: var(--c-accent); color: #fff; }
.pk-cbtns .pk-trek { align-self: center; }
.pk-cart .tb-hint { margin: 0 0 6px; }
.pk-or { font-size: .78rem; }
.pk-cart h3 { font-size: .92rem; }
.pk-txt { font-size: .74rem; line-height: 1.35; color: var(--c-text, #3a4652); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 3px; }

.pk-cart h3 small { font-weight: 400; color: var(--c-muted); font-size: .76rem; }
.pk-row { flex-wrap: nowrap; gap: 6px; }
.pk-row label { flex: 1 1 0; min-width: 0; }
.pk-step { display: flex; height: 32px; }
.pk-step button { width: 28px; padding: 0; }
.pk-step output { min-width: 34px; }
.pk-row select { width: 100%; height: 32px; }
.pk-or { margin-top: 6px; }

/* phone header: short tab names so everything fits */
.tb-mode .s, #help-btn .s { display: none; }
@media (max-width: 600px) {
  .tb-mode .l, #help-btn .l { display: none; }
  .tb-mode .s { display: inline; }
  #help-btn .s { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid currentColor; font-weight: 700; text-decoration: none; }
  #help-btn { text-decoration: none; }
  .tb-mode button { padding-left: 12px; padding-right: 12px; }
}

/* trip list and map: "Day N" only on overnight stops, a dot for visits */
.tb-num.tb-day { width: auto; min-width: 46px; height: 24px; padding: 0 7px; border-radius: 12px; font-size: .72rem; white-space: nowrap; }
.tb-num.tb-dot { width: 12px; height: 12px; margin: 8px; background: var(--c-accent); }
.tb-end .tb-num.tb-day { background: #8a99a8; }
.pin.on.day { width: auto !important; height: 24px !important; padding: 0 8px; border-radius: 12px; font-size: 11px; white-space: nowrap; }
.pin.on.visit { width: 16px !important; height: 16px !important; border-width: 2px; }

.tb-reset, .pk-reset { border: 1px solid var(--c-line); background: #fff; color: var(--c-heading); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.tb-reset:hover, .pk-reset:hover { border-color: #c0392b; color: #c0392b; }
.pk-reset { padding: 2px 9px; font-size: .72rem; margin-left: 6px; vertical-align: middle; }

/* review page */
.rv { max-width: 920px; margin: 0 auto; padding: 24px 16px 60px; font-family: var(--font, system-ui); color: #1f2a33; background: #fff; }
.rv h1 { font-size: 1.5rem; margin: 0 0 6px; }
.rv-t { border: 1px solid #dde3e8; border-radius: 12px; padding: 12px 16px; margin: 12px 0; }
.rv-t.bad { border-color: #e7a3a8; background: #fff6f6; }
.rv-t h2 { font-size: 1.02rem; margin: 0 0 4px; }
.rv-t h2 small { font-weight: 400; color: #5d6b78; }
.rv-m { margin: 0 0 6px; font-size: .86rem; color: #3b4a57; }
.rv-t ol { margin: 0; padding-left: 0; list-style: none; font-size: .9rem; line-height: 1.55; }
.rv-t b { display: inline-block; min-width: 52px; }
.rv-n { color: #1d4e7a; font-weight: 600; }
.rv-t small { color: #7a8794; }
.rv-w { margin: 6px 0 0; color: #a3262f; font-size: .86rem; }
.pk-staynote { align-self: center; font-size: .78rem; color: var(--c-muted); }

.pin-off { display: none !important; }
/* travellers: the tour is made for them — no free building tools */
body:not(.is-edit) #browse, body:not(.is-edit) .tb-check:has(#roundtrip) { display: none; }

/* steps of the pick flow */
.pk-steps { list-style: none; display: flex; gap: 6px; margin: 0 0 12px; padding: 0; font-size: .76rem; font-weight: 700; color: var(--c-muted); }
.pk-steps li { display: flex; align-items: center; gap: 5px; flex: 1; padding: 6px 8px; border-radius: 8px; background: var(--c-soft); white-space: nowrap; }
.pk-steps b { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #c9d2db; color: #fff; font-size: .7rem; }
.pk-steps li.on { background: #fdf0e1; color: #9a5a10; } .pk-steps li.on b { background: var(--c-accent); }
.pk-steps li.done b { background: #2e7d4f; }
.pk-form { display: grid; gap: 14px; margin: 12px 0; }
.pk-form label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: .86rem; color: var(--c-heading); }
.pk-form small { font-weight: 400; color: var(--c-muted); }
.pk-form .pk-step { align-self: flex-start; height: 38px; }
.pk-form .pk-step button { width: 38px; }
.pk-form select { height: 38px; border: 1px solid var(--c-line); border-radius: 8px; padding: 0 8px; font: inherit; max-width: 240px; }
.pk-chips-2 span { flex: none; border-radius: 999px; padding: 4px 9px; background: #fdf0e1; font-size: .76rem; color: #9a5a10; }
/* header tabs: clearly buttons */
.tb-mode { background: rgba(255,255,255,.18); }
.tb-mode button { color: #fff; }
.tb-mode button[aria-pressed="true"] { background: var(--c-accent); color: #fff; }
@media (max-width: 860px) {
  /* the bottom bar is a big button while choosing */
  .tb-panel.pk-peek[data-state="peek"] .tb-peek { background: var(--c-accent); color: #fff; padding: 10px 22px; border-radius: 999px; box-shadow: 0 3px 10px rgba(226,149,58,.45); }
}

/* step 3: ready tours */
.mt-list { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 10px; }
.mt-card { position: relative; border: 1px solid var(--c-line); border-radius: 12px; padding: 12px 14px; background: #fff; }
.mt-card.best { border-color: var(--c-accent); box-shadow: 0 0 0 2px var(--c-accent) inset; }
.mt-best { display: inline-block; margin-bottom: 4px; font-size: .72rem; font-weight: 800; color: #9a5a10; }
.mt-card b { font-size: 1rem; color: var(--c-heading); } .mt-card small { color: var(--c-muted); }
.mt-inc { margin: 6px 0 2px; font-size: .84rem; color: #2e7d4f; }
.mt-miss { margin: 0; font-size: .8rem; color: #9a5a10; } .mt-all { margin: 0; font-size: .8rem; color: #2e7d4f; font-weight: 600; }
.mt-price { margin: 6px 0 8px; font-weight: 700; color: var(--c-heading); }
.mt-card .tb-btn { width: 100%; }
.pk-none { padding: 12px; border-radius: 10px; background: var(--c-soft); }

.tb-prog { margin: 6px 0 4px; padding-left: 18px; } .tb-prog li { margin: 2px 0; }

/* day-by-day builder */
.dy-days { margin: 6px 0 12px; padding-left: 0; list-style: none; font-size: .86rem; line-height: 1.5; }
.dy-days li { padding: 5px 8px; border-radius: 8px; background: var(--c-soft); margin-bottom: 4px; }
.dy-undo { font-size: .76rem; margin-left: 6px; color: #a3262f; }
.dy-q { margin: 14px 0 8px; font-size: 1.02rem; color: var(--c-heading); }
.dy-more { width: 100%; margin-bottom: 8px; border: 1px dashed var(--c-accent); background: #fff8ef; color: #9a5a10; border-radius: 10px; padding: 9px; font: inherit; font-weight: 700; cursor: pointer; }
.dy-way { margin: 8px 0; padding: 8px 10px; border-radius: 10px; background: #f6faf7; font-size: .84rem; }
.dy-way p { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }
.dy-chip { border: 1px solid var(--c-line); background: #fff; border-radius: 999px; padding: 5px 10px; font: inherit; font-size: .8rem; cursor: pointer; color: var(--c-heading); }
.dy-chip.off, .dy-chip[disabled] { opacity: .45; cursor: not-allowed; }
.dy-chip.on { background: #2e7d4f; color: #fff; border-color: #2e7d4f; }
.dy-opt { cursor: pointer; }
.dy-opt .pk-in button { background: var(--c-accent); color: #fff; }
.pk-cart .pk-reset { display: block; margin: 8px auto 0; }

.dy-opt { transition: transform .12s, box-shadow .12s; }
.dy-opt:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(16,37,58,.15); border-color: var(--c-accent); }
.dy-opt:active { transform: none; }
.dy-start { margin: 4px 0 8px; padding: 8px 10px; border-radius: 8px; background: #fdf0e1; color: #7a4708; font-size: .88rem; }
.dy-who { margin: 4px 0 6px; font-size: .85rem; color: var(--muted, #5b6470); }
.dy-who .tb-link { margin-left: 4px; }
.pk-start { margin: 0 0 12px; } .pk-start > span { display: block; font-size: .9rem; margin-bottom: 6px; }
.pk-seg { display: inline-flex; border: 1px solid #d8dde3; border-radius: 10px; overflow: hidden; }
.pk-seg button { padding: 8px 16px; border: 0; background: #fff; font: inherit; cursor: pointer; }
.pk-seg button[aria-pressed="true"] { background: var(--c-accent); color: #fff; font-weight: 600; }
.tb-btn2 { background: #fff; color: var(--c-accent-dark); border: 1px solid var(--c-accent); margin-top: 6px; }
.dy-fixed { margin: 6px 0; font-size: .84rem; color: #3b4a57; } .dy-note { display: block; margin-top: 6px; color: #5d6b78; }
.dy-late summary { cursor: pointer; font-size: .86rem; color: #5d6b78; } .dy-late[open] summary { margin-bottom: 4px; }
.tb-incl ul { list-style: none; margin: 2px 0 8px; padding: 0; font-size: .84rem; } .tb-incl li { margin: 2px 0; }
.dy-boat select { margin-left: 6px; font: inherit; font-size: .82rem; }
.tb-est-line { margin: 8px 0; padding: 8px 10px; background: #fff7ec; border-radius: 8px; font-size: .88rem; }
.pk-note { color: #8a5a00; font-weight: 600; }

/* wish list box while building the route (2026-11-25) */
.dy-wish { border: 1px solid #f3c6cf; background: #fff7f8; border-radius: 12px; padding: 10px 12px; margin: 10px 0 4px; }
.dy-wish > b { display: block; font-size: .92rem; color: #b4233f; margin-bottom: 6px; }
.dy-wish > b small { font-weight: 500; color: var(--c-muted, #6b7785); margin-left: 4px; }
.dy-wish ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.dy-wl { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .86rem; }
.dy-wl > span, .dy-wl > button:first-child { flex: 1; text-align: left; padding: 6px 8px; border-radius: 8px; }
.dy-wl small { color: var(--c-muted, #6b7785); font-size: .78rem; }
.dy-wl.ok > span { color: #1f6b3b; background: #e9f6ee; }
.dy-wl.go > button:first-child { border: 1px solid #b4233f; background: #fff; color: #b4233f; font: inherit; font-size: .86rem; cursor: pointer; }
.dy-wl.go > button:first-child:hover { background: #b4233f; color: #fff; }
.dy-wl.go > button:first-child:hover small { color: #fde3e8; }
.dy-wl.later > span { color: var(--c-muted, #6b7785); background: #f4f5f7; }
.dy-wl-x { border: 0; background: none; color: #9aa3ad; cursor: pointer; font-size: .9rem; padding: 4px 6px; border-radius: 6px; }
.dy-wl-x:hover { color: #b4233f; background: #fde3e8; }
.dy-wish-note { background: #fff7f8; border: 1px solid #f3c6cf; color: #7a1f33; border-radius: 10px; padding: 8px 10px; font-size: .86rem; margin: 8px 0; }

/* stops on the way + things to do: small photo cards (2026-11-25) */
.dy-box { border: 1px solid #e6d7c0; background: #fffaf2; border-radius: 12px; padding: 12px; margin: 10px 0; }
.dy-box--act { border-color: #cfe0ef; background: #f5f9fd; }
.dy-box__h { display: block; font-size: 1rem; color: var(--c-heading, #1d3c5a); }
.dy-box__sub { display: block; color: var(--c-muted, #6b7785); font-size: .8rem; margin: 2px 0 10px; }
.dy-minis { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.dy-mini { display: flex; flex-direction: column; text-align: left; padding: 0; border: 1px solid #e3e6ea; background: #fff; border-radius: 10px; overflow: hidden; cursor: pointer; font: inherit; color: var(--c-heading, #1d3c5a); transition: border-color .15s, box-shadow .15s, transform .15s; }
.dy-mini:hover { border-color: #e2953a; box-shadow: 0 3px 10px rgba(0,0,0,.08); transform: translateY(-1px); }
.dy-mini img { width: 100%; height: 72px; object-fit: cover; display: block; }
.dy-mini__ic { display: flex; align-items: center; justify-content: center; height: 72px; font-size: 2rem; background: linear-gradient(135deg, #fdf0dc, #f6e3c6); }
.dy-box--act .dy-mini__ic { background: linear-gradient(135deg, #e6f0fa, #d6e6f5); }
.dy-mini__b { display: flex; flex-direction: column; gap: 2px; padding: 6px 8px 8px; flex: 1; }
.dy-mini__t { font-size: .8rem; font-weight: 700; line-height: 1.2; }
.dy-mini__s { font-size: .7rem; color: var(--c-muted, #6b7785); line-height: 1.25; }
.dy-mini__add { margin-top: auto; padding-top: 4px; font-size: .74rem; font-weight: 700; color: #c87a1e; }
.dy-mini.on { border-color: #2e8b57; box-shadow: 0 0 0 2px rgba(46,139,87,.25); }
.dy-mini.on .dy-mini__add { color: #2e8b57; }
.dy-mini.on img, .dy-mini.on .dy-mini__ic { opacity: .85; }
.dy-mini.off { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.dy-late .dy-minis { margin-top: 8px; }
