.download-float-disabled { display: none !important; }
.tool-page { background: #f7f8f3; }
.tool-page [hidden] { display: none !important; }
.tool-page .site-header { background: rgba(247,248,243,.9); }
.tool-hero { padding-block: 76px 46px; }
.tool-hero-copy { max-width: 880px; }
.tool-hero h1 { max-width: 900px; margin: 0; font-size: clamp(3.4rem, 7.4vw, 7rem); line-height: .91; letter-spacing: -.075em; }
.tool-hero h1 em { color: #6fb300; font-style: normal; }
.tool-hero-copy > p:not(.eyebrow) { max-width: 720px; margin: 1.6rem 0 0; color: var(--soft-ink); font-size: clamp(1.05rem, 1.6vw, 1.22rem); }
.tool-proof { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.tool-proof li { padding: .48rem .72rem; border: 1px solid #d7dccf; border-radius: 999px; color: #4d5549; background: #fff; font-size: .76rem; font-weight: 720; }
.tool-proof li::before { content: "✓"; margin-right: .38rem; color: #69a900; }

.map-tool-section { padding-bottom: 88px; }
.map-builder-card { display: grid; grid-template-columns: minmax(360px,.72fr) minmax(0,1.28fr); overflow: hidden; border: 1px solid #d5d9cf; border-radius: 2.2rem; background: #fff; box-shadow: 0 28px 80px rgba(26,35,18,.1); }
.route-form, .route-result { padding: clamp(1.5rem, 3.4vw, 2.7rem); }
.route-form { border-right: 1px solid var(--line); background: #fff; }
.route-result { min-width: 0; background: #f1f4ec; }
.builder-heading, .result-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; }
.builder-heading .kicker, .result-heading .kicker { margin-bottom: .55rem; }
.builder-heading h2, .result-heading h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.55rem); line-height: 1; letter-spacing: -.05em; }
.text-button { padding: .25rem 0; border: 0; border-bottom: 1px solid currentColor; color: #566050; background: transparent; cursor: pointer; font-size: .78rem; font-weight: 700; }
.field-label { display: block; margin-bottom: .45rem; color: #32382f; font-size: .82rem; font-weight: 720; }
.field-label span { color: #8a9185; font-weight: 500; }
.text-input, .stop-input, .mode-select, .format-select, .photo-input { width: 100%; border: 1px solid #d9ddd3; border-radius: .9rem; color: var(--ink); background: #fbfcf8; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.text-input, .stop-input { height: 50px; padding: 0 .9rem; }
.text-input:focus, .stop-input:focus, .mode-select:focus, .format-select:focus, .photo-input:focus { border-color: #78b91a; box-shadow: 0 0 0 4px rgba(145,230,0,.16); }
.mode-label { margin-top: 1rem; }
.route-mode-select { height: 50px; padding: 0 .9rem; cursor: pointer; }
.stops-label-row { display: flex; align-items: center; justify-content: space-between; margin-top: 1.5rem; }
.stop-count { color: #858d7f; font-size: .72rem; }
.stops-list { display: grid; gap: .72rem; }
.stop-row { position: relative; display: grid; grid-template-columns: 30px minmax(0,1fr) 66px; align-items: center; gap: .55rem; }
.stop-index { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--ink); font-size: .72rem; font-weight: 800; }
.stop-field { position: relative; min-width: 0; }
.stop-input.is-selected { padding-right: 2.25rem; border-color: #a9cb74; background: #f8fdec; }
.stop-selected-mark { position: absolute; top: 15px; right: .8rem; display: none; color: #568600; font-size: .78rem; font-weight: 900; }
.stop-input.is-selected + .stop-selected-mark { display: block; }
.search-results { position: absolute; z-index: 12; top: calc(100% + 5px); right: 0; left: 0; overflow: hidden; margin: 0; padding: .35rem; border: 1px solid #d4dacd; border-radius: .9rem; background: #fff; box-shadow: 0 18px 46px rgba(23,32,18,.16); list-style: none; }
.search-results button { width: 100%; display: block; padding: .68rem .72rem; border: 0; border-radius: .65rem; color: #20271e; background: transparent; cursor: pointer; text-align: left; }
.search-results button:hover, .search-results button:focus, .search-results button.is-active { background: #eef8dd; outline: none; }
.search-results strong, .search-results small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-results strong { font-size: .78rem; }
.search-results small { margin-top: .16rem; color: #737b6e; font-size: .66rem; }
.search-results .search-empty { padding: .65rem .72rem; color: #777f72; font-size: .72rem; }
.stop-controls { display: grid; grid-template-columns: repeat(2,1fr); gap: .25rem; }
.stop-control { width: 31px; height: 31px; display: grid; place-items: center; padding: 0; border: 1px solid #dfe3d9; border-radius: .65rem; color: #5e6659; background: #fff; cursor: pointer; font-size: .78rem; }
.stop-control:hover { border-color: #b9c1b2; color: var(--ink); }
.stop-control.remove { grid-column: 1/-1; width: 66px; height: 27px; color: #8a4a43; font-size: .68rem; }
.add-stop-button { width: 100%; min-height: 44px; margin-top: .8rem; border: 1px dashed #bbc3b4; border-radius: .9rem; color: #4d5648; background: #f8faf4; cursor: pointer; font-size: .82rem; font-weight: 700; }
.add-stop-button:disabled { cursor: not-allowed; opacity: .45; }
.form-note { margin: 1rem 0 0; color: #7b8275; font-size: .74rem; line-height: 1.45; }
.form-message { min-height: 24px; margin-top: .65rem; color: #94483f; font-size: .78rem; }
.form-message.is-working { color: #586250; }
.generate-button { width: 100%; margin-top: .25rem; border: 0; cursor: pointer; justify-content: space-between; }
.generate-button:disabled { cursor: wait; opacity: .68; transform: none; }

.result-state { padding: .4rem .65rem; border: 1px solid #d3dacd; border-radius: 999px; color: #687061; background: #fff; font-size: .68rem; font-weight: 760; letter-spacing: .07em; text-transform: uppercase; }
.result-state.is-ready { color: #355514; border-color: #b9db83; background: #effbdc; }
.map-canvas-wrap { position: relative; min-height: 450px; display: grid; place-items: center; overflow: hidden; padding: 1rem; border: 1px solid #d8ddd2; border-radius: 1.6rem; background: #dfe8df; }
.route-card { width: 100%; max-height: 620px; display: block; object-fit: contain; border-radius: 1rem; box-shadow: 0 18px 45px rgba(24,32,19,.14); background: #f7f8f3; }
.map-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 2rem; color: #687169; text-align: center; background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.7), rgba(255,255,255,.24)); }
.map-placeholder strong { color: #2a3129; font-size: 1.1rem; }
.map-placeholder > span:last-child { margin-top: .25rem; font-size: .8rem; }
.placeholder-route { display: flex; align-items: center; width: min(250px,70%); margin-bottom: 1.4rem; }
.placeholder-route i { flex: 1; border-top: 2px dashed rgba(57,72,63,.35); }
.placeholder-route b { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: var(--lime); font-size: 1.25rem; }
.result-summary { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.result-summary span { padding: .42rem .62rem; border: 1px solid #d9ded3; border-radius: 999px; background: #fff; font-size: .72rem; font-weight: 680; }
.route-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: .55rem; margin-top: 1rem; }
.route-stats div { padding: .8rem; border: 1px solid #d9ded3; border-radius: 1rem; background: #fff; }
.route-stats span { display: block; color: #7b8376; font-size: .62rem; font-weight: 760; letter-spacing: .05em; text-transform: uppercase; }
.route-stats strong { display: block; margin-top: .18rem; font-size: 1.05rem; }
.export-actions { display: grid; grid-template-columns: auto minmax(135px,1fr) auto minmax(135px,1fr); align-items: center; gap: .65rem; margin-top: 1rem; }
.export-actions label { color: #697164; font-size: .72rem; font-weight: 700; }
.format-select { height: 48px; padding: 0 .75rem; }
.photo-label, .photo-input { grid-column: 1/-1; }
.photo-input { padding: .72rem; }
.export-actions .button { min-height: 48px; border: 0; cursor: pointer; white-space: nowrap; }
.export-actions .button-ghost { border: 1px solid #d4d9cf; }
.map-credit { margin: .75rem 0 0; color: #868e82; font-size: .65rem; }

.animate-cta { min-height: 430px; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 2rem; margin-bottom: 20px; padding: clamp(2rem,5vw,4.5rem); overflow: hidden; border-radius: 2.6rem; color: #fff; background: radial-gradient(circle at 84% 45%, rgba(145,230,0,.27), transparent 34%), #142219; }
.animate-copy h2 { max-width: 700px; margin: 0; font-size: clamp(2.5rem,5vw,4.9rem); line-height: .95; letter-spacing: -.06em; }
.animate-copy > p:not(.kicker) { max-width: 650px; color: #c3cec0; }
.animate-copy .kicker { color: var(--lime-light); }
.animate-copy small { display: block; margin-top: .7rem; color: #96a391; font-size: .72rem; }
.animate-copy [aria-disabled="true"] { cursor: not-allowed; opacity: .78; }
.app-bridge-card { justify-self: end; width: min(390px,100%); display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 1.3rem; padding: 1.1rem; border: 1px solid rgba(255,255,255,.13); border-radius: 2rem; background: rgba(255,255,255,.07); }
.app-bridge-card strong { font-size: 1.25rem; }
.app-bridge-card p { margin: .35rem 0 0; color: #aebaaa; font-size: .82rem; }
.app-qr-placeholder { position: relative; width: 150px; aspect-ratio: 1; display: grid; place-items: center; border: 8px solid #fff; border-radius: 1rem; background: #fff; overflow: hidden; }
.app-qr-placeholder span { position: absolute; inset: 4px; background-color: #111510; background-image: linear-gradient(90deg,#fff 25%,transparent 25% 50%,#fff 50% 75%,transparent 75%),linear-gradient(#fff 25%,transparent 25% 50%,#fff 50% 75%,transparent 75%); background-size: 14px 14px; opacity: .75; }
.app-qr-placeholder img { position: relative; z-index: 2; border: 6px solid #fff; border-radius: 50%; background: #fff; }

.tool-how { padding-top: 100px; }
.tool-benefits { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.tool-benefits article { min-height: 290px; padding: 1.7rem; border: 1px solid var(--line); border-radius: 1.8rem; background: #fff; }
.tool-benefits article:nth-child(2) { background: var(--lime); border-color: var(--lime); }
.tool-benefits article > span { color: #70796a; font-size: .72rem; font-weight: 800; }
.tool-benefits h3 { margin: 5rem 0 .6rem; font-size: 1.45rem; line-height: 1.1; letter-spacing: -.035em; }
.tool-benefits p { margin: 0; color: #596155; }
.related-guides { display: grid; grid-template-columns: .8fr 1.2fr; gap: 5rem; padding-top: 40px; }
.related-guides h2 { margin: 0; font-size: clamp(2.4rem,4.5vw,4.3rem); line-height: .98; letter-spacing: -.055em; }
.related-guide-links { border-top: 1px solid var(--line); }
.related-guide-links a { display: flex; justify-content: space-between; gap: 1rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.related-guide-links span { color: #6f776a; font-size: .78rem; white-space: nowrap; }

@media (max-width: 1050px) {
  .map-builder-card { grid-template-columns: 1fr; }
  .route-form { border-right: 0; border-bottom: 1px solid var(--line); }
  .map-canvas-wrap { min-height: 520px; }
  .animate-cta { grid-template-columns: 1fr; }
  .app-bridge-card { justify-self: start; }
}
@media (max-width: 760px) {
  .tool-hero { padding-block: 54px 34px; }
  .tool-hero h1 { font-size: clamp(3.1rem,14vw,5.4rem); }
  .map-tool-section { width: 100%; padding-bottom: 64px; }
  .map-builder-card { border-inline: 0; border-radius: 0; }
  .route-form, .route-result { padding: 1.3rem; }
  .stop-row { grid-template-columns: 30px minmax(0,1fr); }
  .stop-controls { grid-column: 2/-1; display: flex; justify-content: flex-end; }
  .stop-control.remove { grid-column: auto; width: 58px; }
  .map-canvas-wrap { min-height: 380px; }
  .export-actions { grid-template-columns: 1fr 1fr; }
  .route-stats { grid-template-columns: 1fr 1fr; }
  .animate-cta { width: calc(100% - 28px); min-height: 0; padding: 2rem; border-radius: 2rem; }
  .app-bridge-card { grid-template-columns: 96px 1fr; }
  .app-qr-placeholder { width: 96px; border-width: 6px; }
  .tool-benefits { grid-template-columns: 1fr; }
  .tool-benefits article { min-height: 240px; }
  .tool-benefits h3 { margin-top: 3.5rem; }
  .related-guides { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 470px) {
  .builder-heading, .result-heading { align-items: flex-start; flex-direction: column; }
  .stop-row { grid-template-columns: 28px minmax(0,1fr); }
  .stop-controls { grid-column: 2; justify-content: flex-start; }
  .export-actions { grid-template-columns: 1fr; }
  .export-actions .button, .format-select, .export-actions label { grid-column: 1; }
  .app-bridge-card { grid-template-columns: 1fr; }
  .app-qr-placeholder { width: 112px; }
  .related-guide-links a { align-items: flex-start; flex-direction: column; }
}
