/* v1084 - route pages on phones: answer first, one offer that matches the trip, quote request on WhatsApp, pinned bar.
   Loaded for screens up to 900px. Nothing here applies until route-book-v1084.js adds body.ys84-on, so without the
   script the page stays exactly as before. Approved design: "Route page revamp: from route visitor to booking". */

html body.ys84-on .ys84-m { display: block; }

/* --- what the new blocks replace on phones ------------------------------------------------------------ */
html body.ys84-on .r14-intro .r14-facts,
html body.ys84-on .r14-intro .ys1046-hero,
html body.ys84-on .r14-intro .r14-lead,
html body.ys84-on .r14-intro .r14-important,
html body.ys84-on .r14-intro .r14-modes,
html body.ys84-on .r14-intro .r14-mode-answer,
html body.ys84-on .ys1047-near,
html body.ys84-on .ys1047-wa,
html body.ys84-on #route-stays,
html body.ys84-on .r14-closing,
html body.ys84-on .ys1046-bar { display: none !important; }

/* --- 1. answer first (inside the navy hero) ----------------------------------------------------------- */
html body.ys84-on .ys84-hero { margin: 12px 0 2px; }
.ys84-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.ys84-fact { min-width: 0; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); }
.ys84-fact b { display: block; font-size: 17px; line-height: 1.2; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.ys84-fact span { display: block; margin-top: 2px; font-size: 11.5px; line-height: 1.3; color: #c9d3de; overflow-wrap: anywhere; }
.ys84-lead { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: #e4ebf2; }
.ys84-note { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: #f4c27a; }

/* --- 2-5. the offer ----------------------------------------------------------------------------------- */
html body.ys84-on .ys84-offer { display: flex; flex-direction: column; gap: 14px; padding: 14px 16px 6px; }
.ys84-fest { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 44px; padding: 10px 12px; border-radius: 12px; background: #fff3e8; border: 1px solid #f3d6bd; color: #5a2f12 !important; text-decoration: none; font-size: 13.5px; order: 0; }
.ys84-fest b { color: #8a3f12; }
.ys84-card { padding: 18px 16px 16px; border-radius: 18px; background: #fffdf8; border: 1px solid #ead9c2; box-shadow: 0 10px 26px rgba(30, 50, 77, .08); }
.ys84-kick { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #a24f1c; }
.ys84-h { margin: 6px 0 4px !important; font-family: Fraunces, Georgia, serif; font-size: 22px !important; line-height: 1.2; font-weight: 600; color: #1e324d; }
.ys84-sub { margin: 0 0 12px; font-size: 13.5px; line-height: 1.45; color: #4a5866; }
.ys84-stay { display: flex; gap: 10px; align-items: center; margin-top: 8px; padding: 10px; border: 1px solid #ebe7e0; border-radius: 14px; background: #fff; color: #17222f !important; text-decoration: none; }
.ys84-ph { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: #e9e1d4; }
.ys84-st { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ys84-st b { font-size: 15px; line-height: 1.25; }
.ys84-dist { font-size: 12.5px; font-weight: 600; color: #2a6a42; }
.ys84-st small { font-size: 12.5px; color: #5d6977; }
.ys84-pr { flex: 0 0 auto; text-align: right; }
.ys84-pr b { display: block; font-size: 16px; color: #1e324d; }
.ys84-pr small { font-size: 11.5px; color: #5d6977; }
.ys84-go { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin-top: 14px; border: 0; border-radius: 12px; background: #dd7336; color: #fff !important; font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; }
.ys84-go:active { background: #c4602a; }
.ys84-all { display: block; margin-top: 10px; text-align: center; font-size: 13.5px; font-weight: 600; color: #1e324d !important; }

.ys84-needs { margin: 0 0 12px; padding: 0; border: 0; }
.ys84-needs legend { margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: #5d6977; }
.ys84-need { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 6px; padding: 0 12px; border: 1px solid #e3ddd2; border-radius: 12px; background: #fff; font-size: 14px; cursor: pointer; }
.ys84-need input { width: 20px; height: 20px; margin: 0; accent-color: #dd7336; flex: 0 0 auto; }
.ys84-need:has(input:checked) { border: 1.5px solid #dd7336; background: #fff8f3; font-weight: 600; }
.ys84-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.ys84-box { display: flex; flex-direction: column; gap: 3px; min-width: 0; margin: 0 0 8px; padding: 8px 12px; border: 1px solid #e3ddd2; border-radius: 12px; background: #fff; }
.ys84-two .ys84-box { margin: 0; }
.ys84-box small { font-size: 11.5px; font-weight: 600; color: #5d6977; }
.ys84-box input, .ys84-box select { width: 100%; min-width: 0; min-height: 28px; box-sizing: border-box; border: 0; padding: 0; background: transparent; font: inherit; font-size: 16px; font-weight: 600; color: #17222f; outline: none; }
.ys84-box:focus-within { border-color: #1e324d; box-shadow: 0 0 0 2px rgba(30, 50, 77, .15); }
.ys84-err { margin: 4px 0 0; font-size: 13px; font-weight: 600; color: #b42318; }
.ys84-wa { background: #1f8a4c; }
.ys84-wa:active { background: #18703d; }
.ys84-fine { margin: 8px 0 0; text-align: center; font-size: 12.5px; color: #5d6977; }
.ys84-sent { margin-top: 12px; padding: 12px; border-radius: 12px; background: #edf6f0; font-size: 13.5px; line-height: 1.5; color: #24402f; }
.ys84-sent ol { margin: 6px 0 8px; padding-left: 20px; }
.ys84-again { font-weight: 600; color: #1f6b3e !important; }

.ys84-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.ys84-trust li { padding: 10px; border-radius: 12px; background: #f3f6f4; font-size: 12px; line-height: 1.35; color: #24402f; }
.ys84-trust b { display: block; font-size: 13px; }

/* --- 6. pinned bar (same place as the v1046 search bar it replaces) ---------------------------------- */
html body.ys84-on .ys84-bar { display: flex; align-items: center; gap: 10px; position: fixed; left: 0; right: 0; top: var(--ys1046-top, 67px); z-index: 990; padding: 8px 12px; background: #fff; border-bottom: 1px solid #ebe7e0; box-shadow: 0 6px 16px rgba(16, 24, 40, .12); transform: translateY(-130%); visibility: hidden; transition: transform .2s ease, visibility .2s; }
html body.ys84-on.ys84-stuck .ys84-bar { transform: none; visibility: visible; }
html body.ys84-on.ys1046-open .ys84-bar { visibility: hidden; }
.ys84-bt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ys84-bt b { font-size: 14.5px; color: #1e324d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ys84-bt small { font-size: 12px; color: #5d6977; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ys84-bwa { flex: 0 0 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid #cfe3d6; color: #1f8a4c !important; }
.ys84-bgo { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 0; border-radius: 12px; background: #dd7336; color: #fff !important; font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; }

@media (prefers-reduced-motion: reduce) { html body.ys84-on .ys84-bar { transition: none; } }
