/* v1046: route pages on phones - the results page's search pill in the first screen, a pinned copy while reading,
   and the Stays sheet. Linked with media="(max-width: 900px)"; computers are unchanged.
   Everything is switched on by route-search-phone-v1046.js (body.ys1046-on): without it the old search card stays. */

/* the old "Find your stay" card gives way to the pill */
html body.ys1046-on #stay-search{display:none !important}
html body.ys1046-on .r14-hero-grid{gap:0 !important}
/* the pill's one-line date text must shrink, never widen the hero column (grid items default to min-width:auto) */
html body.ys1046-on .r14-hero-grid > *,html body.ys1046-on .r14-intro{min-width:0}
html body.ys1046-on .ys1046-hero{min-width:0;max-width:100%}

/* ---------- pill (same look as the results page) ---------- */
html body.ys1046-on .ys1046-hero{display:block;margin:14px 0 16px}
html body .ys1046-pill{box-sizing:border-box;max-width:100%;display:flex;align-items:center;gap:12px;width:100%;min-height:60px;margin:0;padding:8px 8px 8px 16px;border:1px solid #EEF1F5;border-radius:999px;background:#FFFFFF;color:#101828;box-shadow:0 6px 18px rgba(0,0,0,.18);text-align:left;font-family:Inter,system-ui,sans-serif;cursor:pointer}
html body .ys1046-pill:focus-visible{outline:3px solid #FDB022;outline-offset:3px}
html body .ys1046-pill > svg{flex:none;color:#101828}
html body .ys1046-pt{flex:1;display:flex;flex-direction:column;min-width:0}
html body .ys1046-pt b{font-size:16px;font-weight:700;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body .ys1046-pt small{font-size:13px;color:#475467;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body .ys1046-go{flex:none;display:flex;align-items:center;height:44px;padding:0 16px;border-radius:999px;background:#C2410C;color:#FFFFFF;font-size:14px;font-weight:700}
html body .ys1046-note{margin:8px 2px 0;font-size:12.5px;line-height:1.4;color:#C9D3DF}

/* ---------- pinned bar under the fixed header, after the pill scrolls away ---------- */
html body.ys1046-on .ys1046-bar{display:block;position:fixed;left:0;right:0;top:var(--ys1046-top,67px);z-index:990;padding:8px 12px;background:#0B2A4A;box-shadow:0 4px 12px rgba(16,24,40,.18);transform:translateY(-130%);visibility:hidden;transition:transform .2s ease,visibility .2s}
html body.ys1046-on.ys1046-stuck .ys1046-bar{transform:none;visibility:visible}
html body .ys1046-pill-sm{min-height:50px;padding:4px 4px 4px 14px;box-shadow:none}
html body .ys1046-pill-sm .ys1046-pt b{font-size:15px}
html body .ys1046-pill-sm .ys1046-pt small{font-size:12px}
html body .ys1046-pill-sm .ys1046-go{height:42px;padding:0 14px}

/* ---------- the Stays sheet ---------- */
html body.ys1046-on .ys1046-sheet{display:flex;flex-direction:column;position:fixed;inset:0;z-index:10050;background:#F4F4F5;color:#101828;font-family:Inter,system-ui,sans-serif;transform:translateY(100%);visibility:hidden;transition:transform .25s ease,visibility .25s}
html body.ys1046-open .ys1046-sheet{transform:none;visibility:visible}
html body.ys1046-open{overflow:hidden}
html body.ys1046-open .ys1046-bar{visibility:hidden}
html body .ys1046-sh{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;min-height:64px;padding:0 16px;text-align:center}
html body .ys1046-sh b{font-size:17px}
html body .ys1046-x{width:44px;height:44px;border:1px solid #E4E7EC;border-radius:999px;background:#FFFFFF;color:#101828;font-size:24px;line-height:1;cursor:pointer}
html body .ys1046-form{flex:1;display:flex;flex-direction:column;gap:12px;padding:8px 16px calc(100px + env(safe-area-inset-bottom));overflow-y:auto}
html body .ys1046-box{display:flex;flex-direction:column;gap:2px;min-height:60px;justify-content:center;padding:8px 14px;border-radius:14px;background:#FFFFFF;box-shadow:0 1px 3px rgba(16,24,40,.08)}
html body .ys1046-box small{font-size:12px;color:#475467}
html body .ys1046-box input,html body .ys1046-box select{width:100%;min-height:32px;padding:0;border:0;background:transparent;color:#101828;font:700 16px Inter,system-ui,sans-serif;-webkit-appearance:none;appearance:none}
html body .ys1046-box input:focus,html body .ys1046-box select:focus{outline:none}
html body .ys1046-box:focus-within{box-shadow:0 0 0 2px #C2410C}
html body .ys1046-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
html body .ys1046-err{margin:0;padding:10px 12px;border-radius:10px;background:#FEF3F2;color:#B42318;font-size:14px}
html body .ys1046-err[hidden]{display:none}
html body .ys1046-foot{position:fixed;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:space-between;min-height:84px;padding:0 16px env(safe-area-inset-bottom);background:#FFFFFF;border-top:1px solid #EAECF0}
html body .ys1046-clear{min-height:44px;padding:0;border:0;background:none;color:#101828;font:700 16px Inter,system-ui,sans-serif;text-decoration:underline;cursor:pointer}
html body .ys1046-search{min-height:52px;padding:0 30px;border:0;border-radius:14px;background:#C2410C;color:#FFFFFF;font:700 16px Inter,system-ui,sans-serif;cursor:pointer}
html body .ys1046-search:focus-visible,html body .ys1046-clear:focus-visible,html body .ys1046-x:focus-visible{outline:3px solid #FDB022;outline-offset:2px}
