* { box-sizing: border-box; }
body { margin: 0; color: #123f39; background: #fbfaf4; font: 1rem/1.5 system-ui, sans-serif; }
header { padding: 10px clamp(20px, 4vw, 64px); border-bottom: 1px solid #c9d4c7; }
a { color: inherit; text-underline-offset: 4px; }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 1.75rem; font-weight: 850; letter-spacing: -.07em; text-decoration: none; }
.brand i { width: 20px; height: 20px; border: 6px solid #123f39; border-radius: 50%; background: #c9fa83; }
main { display: grid; grid-template-columns: minmax(330px, 425px) minmax(0, 1fr); align-items: start; max-width: 1920px; margin: auto; }
.panel { min-width: 0; padding: clamp(24px, 3.2vw, 50px); }
.city { margin: 0; font-size: .86rem; font-weight: 700; color: #416851; }
.city::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #57964c; }
h1 { margin: 12px 0 24px; font-size: clamp(2.15rem, 3.4vw, 3rem); line-height: 1.04; letter-spacing: -.055em; }
.field { position: relative; margin-bottom: 15px; }
label { display: block; margin-bottom: 4px; font-weight: 680; }
input, button { font: inherit; border-radius: 10px; min-height: 48px; }
.panel input { width: 100%; padding: 10px 12px; color: inherit; background: #fff; border: 1px solid #aebeb0; }
.measure { display: flex; align-items: center; gap: .75rem; }
.measure input { width: 8rem; }
button { width: 100%; padding: 10px 12px; border: 0; background: #133f38; color: white; font-weight: 700; cursor: pointer; }
.notice { margin: 5px 0 0; font-size: .8rem; color: #4a665a; }
.suggestions { position: absolute; z-index: 3; inset: auto 0; margin: 3px 0 0; padding: 4px; max-height: 255px; overflow: auto; list-style: none; background: #fff; border: 1px solid #aebeb0; border-radius: 10px; box-shadow: 0 8px 18px #133f3822; }
.suggestions li { display: flex; align-items: center; min-height: 44px; padding: 8px; border-radius: 6px; cursor: pointer; }
.suggestions li[aria-selected="true"], .suggestions li:hover { background: #e2ebdf; }
.map-area { position: sticky; top: 0; min-height: 630px; height: calc(100dvh - 65px); background: #e6ebe2; border-left: 1px solid #c9d4c7; }
#map { position: absolute; inset: 0; }
#map-status { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; padding: 1rem; border-radius: 12px; width: max-content; max-width: 80%; text-align: center; }
#search-status:not(:empty) { margin-top: 12px; }
#result:not(:empty) { border-top: 1px solid #a3bf9a; margin-top: 18px; padding-top: 16px; }
#result h2 { margin: 0 0 6px; font-size: 1.15rem; }
#result p { margin: 6px 0; }
.route-overview { padding: 12px; margin-bottom: 16px; border-radius: 10px; background: #e7efe4; }
.card { padding: 12px 0; border-bottom: 1px solid #c9d4c7; }
.card h3 { margin: 0; font-size: 1rem; }
.card p { font-size: .9rem; }
.card button { margin-top: 6px; background: #e2ebdf; color: #123f39; }
.card a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; }
:focus-visible { outline: 3px solid #39805f; outline-offset: 2px; }
footer { padding: 1rem 4vw; border-top: 1px solid #c9d4c7; font-size: .82rem; color: #48635a; }
@media (max-width: 720px) {
  main { grid-template-columns: minmax(0, 1fr); }
  .panel { display: contents; }
  .controls { grid-row: 1; padding: 22px 18px; }
  #result { grid-row: 3; margin: 0 18px 18px; }
  #result:empty { display: none; }
  .map-area { position: relative; min-height: 340px; height: 55dvh; border-left: 0; border-top: 1px solid #c9d4c7; }
}
