.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; }
.social-share { grid-column: 1/-1; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .6rem .8rem; padding-top: .25rem; }
.share-label { color: #32382f; font-size: .8rem; font-weight: 760; }
.social-share-buttons { display: flex; flex-wrap: wrap; gap: .45rem; }
.social-share-button { width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 1px solid #d4d9cf; border-radius: 50%; color: #171b15; background: #fff; cursor: pointer; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.social-share-button:hover { transform: translateY(-2px); border-color: #a8b19f; background: #f8fbf3; }
.social-share-button:focus-visible { outline: 3px solid rgba(111,179,0,.28); outline-offset: 2px; }
.social-share-button:disabled { cursor: wait; opacity: .55; transform: none; }
.social-share-button svg { width: 21px; height: 21px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.social-share-button svg .fill, .social-share-button.facebook svg, .social-share-button.pinterest svg { fill: currentColor; stroke: none; }
.social-share-button.facebook { color: #1877f2; }
.social-share-button.instagram { color: #c13584; }
.social-share-button.tiktok, .social-share-button.x { color: #050505; }
.social-share-button.pinterest { color: #e60023; }
.social-share-button.whatsapp { color: #1fa855; }
.social-share small { grid-column: 2; color: #81897d; font-size: .63rem; line-height: 1.35; }
.map-credit { margin: .75rem 0 0; color: #868e82; font-size: .65rem; }
.map-credit strong { color: #5a6356; }
.map-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.source-attribution { display: block; margin-top: .2rem; font-size: .58rem; }

.route-result.is-converted { display: grid; min-height: 760px; padding: 0; background: #112016; }
.route-result.is-converted > :not(.post-export-cta) { display: none !important; }
.post-export-cta { position: relative; min-width: 0; min-height: 760px; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(270px,.95fr); align-items: center; gap: clamp(1.4rem,4vw,3.2rem); overflow: hidden; padding: clamp(2rem,4.5vw,4rem); color: #fff; background: radial-gradient(circle at 78% 35%, rgba(145,230,0,.32), transparent 30%), linear-gradient(145deg,#102016,#182c1e 58%,#102016); animation: post-export-reveal .5s cubic-bezier(.2,.75,.25,1) both; }
.post-export-cta::before { content: ""; position: absolute; width: 330px; height: 330px; right: -190px; bottom: -170px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; box-shadow: 0 0 0 65px rgba(255,255,255,.025),0 0 0 130px rgba(255,255,255,.018); }
.post-export-copy { position: relative; z-index: 2; }
.post-export-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 2rem; font-size: 1rem; font-weight: 780; }
.post-export-brand img { width: 44px; height: 44px; }
.post-export-cta .kicker { margin-bottom: .7rem; color: #b9ed72; }
.post-export-cta h2 { max-width: 620px; margin: 0; font-size: clamp(2.65rem,5.2vw,5.25rem); line-height: .9; letter-spacing: -.07em; }
.post-export-copy > p:not(.kicker) { max-width: 610px; margin: 1.25rem 0 0; color: #c1cec0; font-size: .98rem; }
.post-export-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: 1.7rem; }
.post-export-button { min-height: 55px; color: #10160d; background: var(--lime); transition: transform .2s ease, background .2s ease; }
.post-export-button:hover { transform: translateY(-2px); background: #a7f334; }
.post-export-back { padding: .35rem 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.4); color: #d5dfd3; background: transparent; cursor: pointer; font-size: .78rem; font-weight: 700; }
.post-export-qr-row { width: fit-content; display: grid; grid-template-columns: 112px minmax(0,210px); align-items: center; gap: 1rem; margin-top: 2rem; padding: .8rem 1rem .8rem .8rem; border: 1px solid rgba(255,255,255,.13); border-radius: 1.35rem; background: rgba(255,255,255,.07); }
.post-export-qr-row > a { display: block; padding: .3rem; border-radius: .8rem; background: #fff; }
.post-export-qr-row img { width: 100%; height: auto; border-radius: .45rem; }
.post-export-qr-row p, .post-export-qr-row span, .post-export-qr-row small { display: block; margin: 0; }
.post-export-qr-row strong { font-size: .9rem; }
.post-export-qr-row span { margin-top: .15rem; color: #b9ed72; font-size: .8rem; font-weight: 720; }
.post-export-qr-row small { margin-top: .35rem; color: #93a091; font-size: .62rem; line-height: 1.4; }
.post-export-screens { position: relative; z-index: 1; min-height: 590px; }
.post-export-phone { position: absolute; overflow: hidden; margin: 0; border: 7px solid #090d09; border-radius: 34px; background: #fff; box-shadow: 0 30px 70px rgba(0,0,0,.38); }
.post-export-phone::before { content: ""; position: absolute; z-index: 2; top: 8px; left: 50%; width: 32%; height: 14px; border-radius: 999px; background: #090b08; transform: translateX(-50%); }
.post-export-phone img { width: 100%; height: 100%; object-fit: cover; }
.post-export-phone.phone-back { top: 65px; left: 0; width: 205px; height: 444px; transform: rotate(-10deg); opacity: .92; }
.post-export-phone.phone-front { top: 8px; right: 0; width: 245px; height: 531px; transform: rotate(6deg); }
.post-export-motion { position: absolute; z-index: 4; right: 42%; bottom: 20px; width: 65px; height: 65px; display: grid; place-items: center; border-radius: 50%; color: #10160d; background: var(--lime); box-shadow: 0 16px 30px rgba(0,0,0,.25); font-size: 1.5rem; animation: post-export-float 2.4s ease-in-out infinite; }
@keyframes post-export-reveal { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes post-export-float { 50% { transform: translateY(-9px) rotate(8deg); } }

.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; }
  .social-share { grid-template-columns: 1fr; }
  .social-share small { grid-column: 1; }
  .route-stats { grid-template-columns: 1fr 1fr; }
  .route-result.is-converted, .post-export-cta { min-height: 0; }
  .post-export-cta { grid-template-columns: 1fr; }
  .post-export-screens { min-height: 540px; width: min(455px,100%); margin-inline: auto; }
  .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; }
  .social-share { grid-column: 1; }
  .post-export-cta { padding: 1.5rem; }
  .post-export-cta h2 { font-size: clamp(2.7rem,13vw,4rem); }
  .post-export-qr-row { grid-template-columns: 88px 1fr; }
  .post-export-screens { min-height: 415px; }
  .post-export-phone.phone-back { top: 55px; width: 145px; height: 315px; }
  .post-export-phone.phone-front { width: 180px; height: 390px; }
  .post-export-motion { right: 40%; bottom: 2px; }
  .app-bridge-card { grid-template-columns: 1fr; }
  .app-qr-placeholder { width: 112px; }
  .related-guide-links a { align-items: flex-start; flex-direction: column; }
}
