:root {
  color-scheme: light;
  --paper: #f8f4ea;
  --white: #fffdf7;
  --ink: #202b24;
  --muted: #646c60;
  --line: #e6ddca;
  --green: #254c3d;
  --dark: #1c382e;
  --sage: #e6ece3;
  --sand: #e9d7b1;
  --sand-light: #f1e6cd;
  --gold: #a37937;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.5 var(--sans); }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #b48131; outline-offset: 4px; }
a { color: var(--green); }
h1, h2, h3, p { margin: 0; }
button[disabled] { cursor: default; opacity: .5; }
[hidden], .hide { display: none !important; }
.shell { width: min(100% - 96px, 1232px); margin-inline: auto; }
.skip { position: absolute; top: -100px; left: 12px; z-index: 10; padding: 10px; background: white; }
.skip:focus { top: 12px; }
.icon { width: 18px; height: 18px; display: inline-block; flex: none; vertical-align: -3px; }
.masthead { background: var(--white); border-bottom: 1px solid var(--line); }
.masthead-inner { height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.brand { display: inline-flex; gap: 11px; align-items: center; font-size: 1.14rem; text-decoration: none; }
.brand span { display: grid; gap: 2px; }
.brand strong { font-family: var(--serif); line-height: 1.2; font-weight: 700; }
.brand small { letter-spacing: .115em; font-weight: 700; color: #69746a; font-size: .57rem; }
.header-actions, .footer div { display: flex; gap: 15px; align-items: center; }
.quiet, .footer button, .text-button { border: 0; background: none; color: var(--green); font-size: .875rem; font-weight: 700; padding: 8px 0; }
.quiet:hover, .footer button:hover, .text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.city-nav { display: flex; align-items: center; gap: 5px; min-height: 57px; border-top: 1px solid #eeebe2; }
.city-tab { background: transparent; border: 1px solid transparent; border-radius: 7px; padding: 8px 16px; display: flex; align-items: center; gap: 7px; color: #59645b; font-size: .875rem; font-weight: 700; }
.city-tab:hover { background: #f6f5ec; }
.city-tab[aria-pressed="true"] { background: var(--sand-light); color: var(--green); border-color: #e9dbc1; }
.city-tab .icon { width: 16px; height: 16px; }
.hero { margin-top: 28px; min-height: 326px; border-radius: 15px; overflow: hidden; isolation: isolate; position: relative; display: flex; align-items: center; background: var(--sand); color: var(--dark); }
.hero-photo { position: absolute; inset: 0 0 0 36%; width: 64%; height: 100%; object-fit: cover; object-position: center 70%; z-index: -3; }
.hero[data-city="jerusalem"] .hero-photo { object-position: center 55%; }
.hero[data-city="makkah"] .hero-photo { object-position: center 58%; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .15; z-index: -3; background: repeating-radial-gradient(ellipse at 1% 108%, transparent 0 18px, #987848 19px, transparent 20px 32px); mask-image: linear-gradient(90deg,#000,transparent 58%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, transparent 30%, #e9d7b1 36%, #e9d7b1fa 42%, #e9d7b1c7 55%, #e9d7b10a 80%); }
.hero-copy { padding: 35px 48px 38px; width: min(615px, 64%); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 700; display: flex; gap: 7px; align-items: center; }
.hero .eyebrow { color: #4b5940; }
.hero .eyebrow .icon { width: 15px; height: 15px; }
.hero h1 { font: 600 clamp(3.5rem,6vw,5.1rem)/1.05 var(--serif); margin-top: 8px; letter-spacing: -.06em; }
.hero-ar { color: var(--green); font-size: 1.4rem; line-height: 1.25; margin-top: 8px; width: max-content; }
.hero-description { color: #303f31; margin-block: 14px 21px; max-width: 390px; line-height: 1.56; }
.primary, .outline, .hero-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 15px; border-radius: 7px; font-size: .875rem; font-weight: 700; text-decoration: none; }
.primary { border: 1px solid var(--green); background: var(--green); color: white; }
.primary:hover { background: #15382d; }
.outline { border: 1px solid #d9dfd3; background: var(--white); color: var(--green); }
.outline:hover { background: var(--sage); }
.hero-button { background: var(--green); color: var(--white); border: 1px solid var(--green); }
.hero-button:hover { background: var(--dark); }
.hero-credit { position: absolute; right: 16px; bottom: 12px; color: #fff; display: flex; gap: 6px; align-items: center; text-shadow: 0 1px 4px #202b24; font-size: .75rem; }
.hero-credit button { background: #17332bdd; border: 0; color: white; border-radius: 5px; padding: 4px 7px; }
.journey { margin-top: 34px; scroll-margin-top: 16px; }
.journey-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; }
.journey-head h2 { font: 600 clamp(1.95rem,3.5vw,2.75rem)/1.16 var(--serif); letter-spacing: -.045em; }
.journey-head p { color: var(--muted); margin-top: 6px; }
.view-tabs { margin: 17px 0 13px; display: flex; gap: 5px; width: fit-content; border: 1px solid var(--line); background: #eeece3; padding: 4px; border-radius: 9px; }
.view-tab { border: 1px solid transparent; background: transparent; border-radius: 6px; padding: 7px 15px; color: #59645b; font-size: .875rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.view-tab[aria-pressed="true"] { background: var(--white); border-color: #e2e0d8; box-shadow: 0 1px 2px #23372c14; color: var(--green); }
.view-tab:hover { color: var(--dark); }
.workspace { display: grid; grid-template-columns: minmax(0,1.62fr) minmax(335px,1fr); gap: 18px; align-items: start; }
.map-column { min-width: 0; }
.map-frame { height: 554px; border-radius: 13px; border: 1px solid #dcded1; overflow: hidden; position: relative; background: #e7e9dc; isolation: isolate; }
.map-controls { position: absolute; z-index: 2; top: 10px; right: 10px; display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: 0 2px 6px #1c382e20; }
.map-controls button { width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--green); font-size: 1.4rem; line-height: 1; touch-action: manipulation; }
.map-controls button + button { border-top: 1px solid var(--line); }
.map-controls button:disabled { color: var(--muted); cursor: default; opacity: .45; }
.map-controls button:focus-visible { outline-offset: -4px; }
#map { position: absolute; inset: 0; }
#map .maplibregl-canvas { outline-offset: -4px; }
.maplibregl-ctrl-top-right { top: 8px; right: 7px; }
.maplibregl-ctrl-attrib { font-size: 10px !important; }
.map-label { position: absolute; z-index: 1; top: 13px; left: 13px; pointer-events: none; }
.map-label span { display: inline-flex; align-items: center; gap: 7px; border-radius: 7px; border: 1px solid #dddcd1; background: #fffef6; padding: 6px 10px; font-size: .75rem; font-weight: 700; color: var(--green); box-shadow: 0 2px 6px #25372d13; }
.map-label .icon { width: 15px; height: 15px; }
.map-legend { position: absolute; bottom: 22px; left: 12px; pointer-events: none; display: flex; align-items: center; gap: 11px; padding: 6px 9px; font-size: .68rem; font-weight: 700; background: #fffef9ef; border-radius: 6px; color: #48574b; }
.map-legend span { display: flex; align-items: center; gap: 5px; }
.legend-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.legend-dot.optional { background: #aa8541; }
.legend-dot.pass { background: #fbf8ed; border: 1px solid var(--green); }
.map-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; font-size: .75rem; color: var(--muted); padding: 9px 2px; }
.map-pin { width: 31px; height: 31px; display: grid; place-items: center; color: #fff; background: var(--green); border: 2px solid white; border-radius: 50%; box-shadow: 0 2px 7px #183b31a6; font-size: .75rem; font-weight: 700; padding: 0; }
.map-pin.pass-by { background: #f8f5e8; color: #244d3f; border-color: #244d3f; }
.map-pin.optional { background: #906b31; }
.map-pin[aria-pressed="true"] { box-shadow: 0 0 0 4px #d4b573aa, 0 3px 8px #183b31a6; }
.map-pin .icon { width: 14px; height: 14px; }
.pin-card { position: absolute; z-index: 1; bottom: 57px; left: 12px; right: 12px; max-width: 385px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 13px 39px 11px 14px; box-shadow: 0 8px 18px #263b2838; }
.pin-card h3 { font-family: var(--serif); font-size: 1.2rem; }
.pin-card-ar { display: block; width: fit-content; color: var(--green); }
.pin-card p { font-size: .875rem; color: var(--muted); margin-top: 4px; }
.pin-card .dismiss { position: absolute; right: 8px; top: 8px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 13px; }
.panel-head { padding: 17px 20px 15px; border-bottom: 1px solid #ede9df; }
.panel-topline { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; font-size: .72rem; line-height: 1.4; background: var(--sage); border-radius: 4px; color: var(--green); font-weight: 700; }
.badge.warm { background: #f2e8d2; color: #715522; }
.panel h3 { font: 600 1.66rem/1.18 var(--serif); margin-top: 7px; letter-spacing: -.035em; }
.panel-summary { margin-top: 6px; color: var(--muted); font-size: .88rem; }
.route-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; margin-top: 13px; }
.metric { display: grid; gap: 1px; background: #f6f4ec; border: 1px solid #efebe0; border-radius: 7px; padding: 7px 8px; min-width: 0; }
.metric strong { color: var(--green); font-size: .87rem; line-height: 1.25; white-space: nowrap; }
.metric small { font-size: .67rem; color: var(--muted); }
.panel-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.panel-actions button { min-height: 37px; padding: 7px 9px; }
.panel-actions .icon { width: 14px; height: 14px; }
.panel-subhead { padding: 12px 20px 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 700; font-size: .88rem; }
.panel-subhead small { color: var(--muted); white-space: nowrap; font-size: .72rem; font-weight: 600; }
.stop-list, .site-list { list-style: none; margin: 0; padding: 0; }
.stop-list, .site-list { padding: 0 13px 8px; }
@media (min-width: 691px) {
  .panel { overflow: hidden; }
  .stop-list, .site-list { overflow: auto; }
  .stop-list { max-height: 468px; }
  .site-list { max-height: 439px; }
}
.stop-row, .site-row { width: 100%; display: flex; gap: 9px; position: relative; align-items: center; text-align: left; padding: 8px 7px; background: transparent; border: 0; border-bottom: 1px solid #f0ede5; }
.stop-row:hover, .site-row:hover, .stop-row.active, .site-row.active { background: #f1f5ed; border-radius: 6px; }
.stop-row .num, .site-type-icon { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--sage); color: var(--green); font-size: .78rem; font-weight: 700; }
.stop-row .num.pass-by { background: #f5f2e8; }
.stop-row .num.optional { background: #f3e8d0; color: #775321; }
.stop-row .num.done { background: var(--green); color: white; }
.site-type-icon .icon { width: 15px; height: 15px; }
.row-body { flex: 1; min-width: 0; }
.row-body strong { display: block; font-size: .88rem; line-height: 1.25; font-weight: 700; }
.row-body small { color: var(--muted); font-size: .73rem; display: block; margin-top: 2px; }
.row-ar { color: var(--muted); font-family: Tahoma,Arial,sans-serif; font-size: .79rem; }
.row-tail { font-size: .72rem; font-weight: 700; color: #51604f; flex: none; }
.row-photo { width: 48px; height: 43px; border-radius: 5px; object-fit: cover; }
.leg { padding: 4px 8px 4px 46px; color: #707a6c; font-size: .7rem; }
.leg .icon { width: 12px; height: 12px; margin-right: 4px; }
.route-note { padding: 9px 20px; font-size: .76rem; color: var(--muted); border-top: 1px solid #eeebe2; }
.route-note summary { cursor: pointer; font-weight: 700; color: var(--green); }
.route-note p { margin-top: 4px; }
.route-note a { font-weight: 700; }
.search { display: flex; align-items: center; gap: 8px; border: 1px solid #dce1d6; background: #faf9f2; border-radius: 7px; margin-top: 13px; padding: 3px 10px; }
.search input { padding: 7px 0; border: 0; width: 100%; color: var(--ink); background: transparent; font-size: .88rem; }
.search input:focus { outline: 0; }
.search:focus-within { outline: 2px solid #68816a; }
.filter { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.filter button, .route-tabs button { font-size: .76rem; font-weight: 700; border: 1px solid var(--line); background: #f9f8f1; border-radius: 5px; padding: 5px 8px; }
.filter button[aria-pressed="true"], .route-tabs button[aria-pressed="true"] { background: var(--sage); color: var(--green); border-color: #d5e0d3; }
.empty { padding: 20px; color: var(--muted); font-size: .88rem; }
.footer { margin-top: 36px; padding: 15px 0 23px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); }
.footer > span { font-family: var(--serif); font-weight: 700; }
html:has(dialog[open]) { overflow: hidden; }
dialog { width: min(92vw,645px); max-height: 88svh; padding: 0; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: var(--white); box-shadow: 0 16px 70px #142b22a1; overscroll-behavior: contain; }
dialog::backdrop { background: #1a2a20a8; }
.dialog-photo { width: 100%; height: clamp(135px,24vw,230px); object-fit: cover; object-position: center 66%; display: block; }
.dialog-photo[src$="/quba.webp"] { height: auto; aspect-ratio: 16 / 9; max-height: 330px; object-position: center 42%; }
.dialog-inner { padding: 21px 25px 28px; }
.dialog-inner h2 { font: 600 2rem/1.13 var(--serif); letter-spacing: -.035em; margin-block: 6px; }
.dialog-ar { color: var(--green); font-size: 1.37rem; margin-bottom: 9px; }
.dialog-inner p { margin-block: 6px 10px; }
.dialog-inner details { border-top: 1px solid var(--line); padding-block: 9px; }
.dialog-inner summary { cursor: pointer; font-weight: 700; color: var(--green); }
.dialog-inner ul { margin: 8px 0 0; padding-left: 22px; }
.dialog-inner li { margin-block: 5px; }
.dialog-navigation { border-top: 1px solid var(--line); padding: 13px 25px 19px; display: flex; flex-wrap: wrap; gap: 7px; background: var(--white); }
.dismiss { border: 1px solid var(--line); border-radius: 7px; display: grid; place-items: center; width: 33px; height: 33px; background: var(--white); }
.dialog-close { position: sticky; float: right; z-index: 2; right: 10px; top: 10px; margin: 10px 10px -43px 0; }
.arabic-quote { background: #f5f1e7; border-radius: 6px; padding: 9px 12px; line-height: 1.8; font: 1.4rem/1.7 Tahoma, Arial, sans-serif; }
.translation, .credit-note { color: var(--muted); font-size: .8rem; }
.toast { position: fixed; z-index: 4; bottom: 17px; left: 50%; transform: translateX(-50%); padding: 9px 14px; background: #15382d; color: #fff; border-radius: 7px; width: max-content; max-width: 90vw; }
.mobile-nav, .route-map-toggle, .route-map-toolbar { display: none; }
.workspace[data-view="map"] { grid-template-areas: "map tools" "map panel"; grid-template-rows: auto 1fr; row-gap: 9px; }
.workspace[data-view="map"] .map-column { grid-area: map; }
.workspace[data-view="map"] .panel { grid-area: panel; }
.site-tools { grid-area: tools; }
.site-tools .search { margin-top: 0; background: var(--white); border-color: var(--line); }
.map-status { position: absolute; z-index: 1; top: 55px; left: 13px; right: 53px; padding: 7px 9px;
  width: fit-content; background: var(--white); border: 1px solid var(--line); border-radius: 7px; color: var(--ink); font-size: .8rem; }
.next-visit { color: var(--muted); font-size: .82rem; margin-top: 10px; }
.next-visit strong { color: var(--ink); }
.more-menu { display: grid; gap: 7px; margin-top: 14px; }
.more-menu .outline { justify-content: flex-start; min-height: 44px; }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.google-route { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 12px; }
.google-route-part { display: grid; justify-items: start; gap: 4px; margin: 10px 0; }
.google-route-part small { color: var(--muted); }
.related-reading { margin: 12px 0; background: var(--sand-light); border-radius: 8px; padding-inline: 10px; }
.related-reading .text-button { display: flex; align-items: center; gap: 8px; min-height: 44px; }
@media(max-width: 950px) {
  .shell { width: min(100% - 44px,1232px); }
  .hero-copy { padding-inline: 32px; }
  .workspace { gap: 13px; grid-template-columns: minmax(0,1.25fr) minmax(310px,1fr); }
  .panel-head, .panel-subhead { padding-inline: 14px; }
}
@media(max-width: 690px) {
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .shell { width: calc(100% - 28px); }
  .masthead-inner { height: 59px; }
  .brand { gap: 9px; font-size: 1.13rem; }
  .brand img { width: 37px; height: 37px; }
  .brand small { font-size: .55rem; }
  .header-actions, .view-tabs, .journey-head, .footer { display: none; }
  .city-nav { min-height: 54px; gap: 3px; }
  .city-tab { min-height: 42px; padding: 7px 6px; flex: 1; justify-content: center; font-size: .85rem; }
  .city-tab .icon { width: 14px; height: 14px; }
  .hero { margin-top: 12px; min-height: 96px; border-radius: 13px; }
  .hero-photo { inset-inline-start: 53%; width: 47%; object-position: 55% 71%; }
  .hero::after { background: linear-gradient(90deg, transparent 47%, var(--sand) 53%, #e9d7b1bd 62%, #e9d7b100 88%); }
  .hero-copy { width: 100%; padding: 11px 15px; }
  .hero .eyebrow { font-size: .65rem; }
  .hero h1 { margin-top: 2px; font-size: clamp(1.95rem, 8vw, 2.7rem); }
  .hero-ar { margin-top: 4px; font-size: 1rem; }
  .hero-description, .hero-button { display: none; }
  .hero-credit { bottom: 6px; right: 6px; }
  .journey { margin-top: 11px; }
  .workspace, .workspace[data-view="map"] { display: flex; flex-direction: column; gap: 9px; }
  .map-column, .panel, .site-tools { width: 100%; }
  .map-frame { height: clamp(260px, 46svh, 445px); }
  .map-label span { font-size: .75rem; }
  .workspace[data-view="route"][data-route-map="false"] .map-column { display: none; }
  .workspace[data-view="route"][data-route-map="true"] .route-map-toolbar { display: block; margin-bottom: 8px; }
  .workspace[data-view="route"][data-route-map="true"] .route-map-toggle { display: none; }
  .route-map-toggle { display: inline-flex; }
  .route-map-toolbar button { min-height: 44px; }
  .stop-row, .site-row { min-height: 53px; }
  .panel-head { padding: 15px; }
  .panel-actions .primary, .panel-actions .outline { min-height: 44px; }
  .panel-actions .primary { flex: 1; }
  .route-tabs button, .filter button { min-height: 40px; }
  .search input { font-size: 1rem; min-height: 42px; }
  .pin-card .dismiss { width: 40px; height: 40px; }
  .mobile-nav { position: fixed; inset: auto 0 0; z-index: 3; display: flex; justify-content: center; gap: 4px;
    border-top: 1px solid var(--line); background: var(--white);
    padding: 6px max(12px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
  .mobile-tab { display: flex; flex: 1; max-width: 175px; min-height: 49px; flex-direction: column; align-items: center;
    justify-content: center; gap: 2px; border: 0; border-radius: 10px; background: none; color: #4d5d51; font-size: .78rem; font-weight: 700; }
  .mobile-tab .icon { width: 21px; height: 21px; }
  .mobile-tab[aria-pressed="true"] { background: var(--sand-light); color: var(--green); }
  .toast { bottom: calc(73px + env(safe-area-inset-bottom)); }
  dialog { inset: auto 0 0; width: 100%; max-width: none; max-height: 90svh; margin: 0; border-radius: 19px 19px 0 0; }
  .dialog-inner { padding: 21px 18px calc(17px + env(safe-area-inset-bottom)); }
  .dialog-inner h2 { padding-right: 29px; }
  .dialog-close { width: 44px; height: 44px; margin-bottom: -54px; }
  .dialog-navigation { position: sticky; bottom: 0; padding: 9px 14px calc(9px + env(safe-area-inset-bottom)); }
  .dialog-navigation button { flex: 1 1 auto; min-height: 44px; padding-inline: 9px; }
}
@media(prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
.share-input { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); }
#map { z-index: 0; }
@media(max-width: 420px) {
  .row-ar { max-width: 36%; }
  .map-legend { flex-wrap: wrap; max-width: calc(100% - 24px); }
}
.leaflet-container { background: #e7e9dc; font-family: var(--sans); }
.leaflet-tile-pane { filter: saturate(.78); }
.leaflet-container .leaflet-control-attribution { font-size: 10px; }
.leaflet-site-marker .map-pin { cursor: pointer; }

.plan-launch { margin-top: 8px; }
.planner fieldset { border: 0; margin: 0 0 14px; padding: 0; }
.planner legend, .planner-stops label { font-weight: 700; }
.planner-modes, .planner-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.planner-modes { margin-top: 6px; }
.planner-modes label { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.planner-modes label:has(input:checked) { background: var(--sand-light); }
.planner-modes input { accent-color: var(--green); }
.planner .planner-stops, .planned-stops { margin: 0; padding: 0; list-style: none; }
.planner-stops li { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px; align-items: end; margin-bottom: 10px; }
.planner-stops label { display: grid; gap: 4px; min-width: 0; }
.planner-stops select { width: 100%; min-height: 44px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); color: var(--ink); font: inherit; font-weight: 500; }
.planner-order { display: flex; gap: 3px; }
.planner-order button { min-width: 36px; min-height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 7px; background: var(--white); color: var(--green); font-size: 1.1rem; }
.planner #planner-submit { margin-top: 14px; }
.planner-result { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 10px; }
.planned-stops { counter-reset: planner-point; margin: 0 14px 12px; }
.planned-stops li { display: flex; align-items: center; gap: 9px; padding: 9px 5px; border-bottom: 1px solid var(--line); }
.planned-stops li::before { counter-increment: planner-point; content: counter(planner-point); color: var(--green); background: var(--sand-light); width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; font-weight: 700; }
@media(max-width: 690px) {
  .plan-launch { width: 100%; min-height: 44px; }
  .planner-order button { min-width: 42px; }
}

.research-section { margin-top: 14px; overflow-wrap: anywhere; }
.research-section h3 { color: var(--green); font: 600 1.12rem/1.4 var(--serif); }
.research-section p[dir], .research-section li { white-space: pre-line; }
.research-reference { font-size: .875rem; }
.related-site { display: flex; gap: 7px; align-items: center; text-align: start; }

.guide-context { color: var(--muted); }
.research-subsection { margin: 10px 0 0; }
.research-subsection h4 { margin: 0; color: var(--green); }
.dialog-inner .guide-related { list-style: none; padding-inline-start: 0; }
.itinerary-entry { display: flex; align-items: stretch; gap: 2px; }
.itinerary-entry .stop-row { flex: 1; min-width: 0; }
.stop-grip { width: 32px; min-height: 44px; display: grid; place-items: center; flex: none; border: 0; background: transparent; color: var(--muted); cursor: grab; touch-action: none; }
.stop-grip:active, .itinerary-dragging { cursor: grabbing; user-select: none; }
.drag-source .itinerary-entry { opacity: .5; }
.drop-target .itinerary-entry { box-shadow: inset 0 -2px var(--green); background: var(--sand-light); }
.itinerary-hint { margin: -7px 20px 4px; color: var(--muted); font-size: .8rem; }
.itinerary-update { margin-top: 12px; color: var(--muted); font-size: .85rem; }
@media(max-width: 690px) {
  .stop-grip { width: 36px; }
}

.itinerary-coverage { margin-top: 8px; }
