/* Extend the existing warm green / banana palette. */
.planner-teaser { max-width: 530px; margin: 16px 0 0; color: var(--green); font-size: 14px; }
.planner-bar { display: grid; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: #fbf7e7; }
.planner-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.planner-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.quick-routes { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-routes button { min-height: 44px; padding: 8px 12px; border: 1px solid #dddfcc; border-radius: 12px; background: var(--paper); color: var(--green); cursor: pointer; font: inherit; font-size: 13px; }
.journey-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .75fr); gap: 20px; margin-top: 22px; align-items: start; }
.journey-card { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.journey-card h3 { margin: 0 0 6px; color: var(--green-dark); font-size: 21px; line-height: 1.5; }
.journey-card p { margin: 8px 0; }
.route-description, .route-note, .journey-card small { color: var(--muted); font-size: 12px; }
.route-notice { margin: 12px 0; padding: 11px 14px; border-radius: 12px; background: var(--yellow-soft); color: #67551c; font-size: 13px; }
.route-notice[data-kind="road"] { background: var(--green-soft); color: var(--green-dark); }
.route-timeline { margin: 18px 0; padding: 0; list-style: none; }
.route-timeline li { position: relative; padding: 0 0 20px 44px; min-height: 48px; overflow-wrap: anywhere; }
.route-timeline li:not(:last-child)::after { content: ''; position: absolute; left: 16px; top: 35px; bottom: 4px; border-left: 2px dashed #b7c6ae; }
.journey-number { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 33px; height: 33px; border-radius: 11px; background: var(--green); color: white; font-weight: 850; }
.route-stop-name { border: 0; padding: 2px 0; background: transparent; color: var(--ink); font: inherit; font-weight: 850; text-align: left; cursor: pointer; min-height: 36px; }
.route-timeline p { margin: 3px 0; font-size: 12px; color: var(--muted); }
.route-leg { display: block; margin-top: 8px; color: var(--green); font-size: 12px; }
.route-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 15px; border-radius: 14px; background: var(--bg); font-size: 13px; }
.route-summary strong { display: block; color: var(--green); font-size: 17px; }
.journey-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.route-reasons { margin: 12px 0; padding-left: 20px; font-size: 13px; color: var(--muted); }
.route-status { margin-top: 16px; color: var(--green); font-size: 13px; overflow-wrap: anywhere; }
.my-route-list { padding: 0; list-style: none; margin: 16px 0; }
.my-route-list li { border-top: 1px solid var(--line); padding: 12px 0; }
.my-route-list strong { display: block; font-size: 14px; overflow-wrap: anywhere; }
.my-route-controls { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.my-route-controls button { min-width: 44px; min-height: 44px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 9px; color: var(--green); background: var(--bg); cursor: pointer; font: inherit; font-size: 12px; }
.spot-card-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 3px; align-items: center; }
.add-route-button { min-height: 44px; min-width: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--yellow-soft); color: var(--green); font: inherit; cursor: pointer; }
.route-inline-button { margin-top: 10px; }
.pin-dot.is-in-route { background: #b9792e; outline: 2px solid #f2c94c; }
.custom-pin[data-route-order] { z-index: 4; }
.route-planner { width: min(600px, calc(100% - 32px)); max-height: 86dvh; padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); overflow-y: auto; }
.route-planner::backdrop { background: rgba(36, 56, 44, .24); }
.planner-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.planner-title h2 { margin: 0; font-size: 23px; }
.planner-title button { min-width: 44px; min-height: 44px; border: 0; border-radius: 12px; background: var(--bg); color: var(--green); font-size: 21px; cursor: pointer; }
.route-planner fieldset { padding: 0; border: 0; margin: 16px 0; }
.route-planner legend, .planner-label { display: block; margin-bottom: 7px; font-weight: 800; font-size: 14px; }
.planner-input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.route-planner select { display: block; width: 100%; min-height: 46px; padding: 9px 10px; border: 1px solid #c7cfbd; border-radius: 11px; background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; }
.interest-options { display: flex; flex-wrap: wrap; gap: 8px; }
.interest-options label { display: flex; align-items: center; gap: 5px; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); cursor: pointer; font-size: 13px; }
.interest-options label:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.interest-options input { accent-color: var(--green); width: 17px; height: 17px; }
.planner-submit { position: sticky; bottom: -24px; padding: 14px 0 0; background: var(--paper); }
.planner-submit .button { width: 100%; cursor: pointer; }
.planner-privacy { margin: 12px 0; color: var(--muted); font-size: 11px; }
.planner-error { color: #8d4028; font-size: 13px; }
button:focus-visible, select:focus-visible { outline: 3px solid #d29818; outline-offset: 3px; }
@media (max-width: 680px) {
  .journey-grid { grid-template-columns: 1fr; gap: 14px; }
  .journey-card { padding: 19px; }
  .planner-bar { padding: 14px; }
  .planner-heading .button { width: 100%; }
  .route-planner { width: 100%; max-width: 100%; max-height: 66dvh; margin: auto 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; }
  .route-planner::before { content: ''; display: block; width: 40px; height: 4px; margin: 0 auto 12px; border-radius: 99px; background: #c8d2bd; }
  .planner-title h2 { font-size: 21px; }
  .planner-input-grid { gap: 10px; }
  .planner-submit { bottom: -18px; padding-bottom: env(safe-area-inset-bottom); }
  .route-summary { padding: 12px; }
  .journey-actions .small-button { flex: 1 1 auto; }
}
