/* v1086: itinerary page revamp (phones and computers).
   Everything here applies only after plan-book-v1086.js adds body.ys86-on - without it the page stays as before. */

body.ys86-on .ys86-m { display: block; }
body.ys86-on .ys86-switch { display: flex; }

/* ---- what the new blocks replace ---- */
body.ys86-on .tp-feature-band,
body.ys86-on .tp-section-heading,
body.ys86-on .tp-stays-section,
body.ys86-on .es-side,
body.ys86-on .es-mbar,
body.ys86-on .ys823-bar { display: none !important; }

/* ---- A: day switch in the hero ---- */
.ys86-switch { flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 4px; }
.ys86-switch-k { font: 600 12px/1 Inter, system-ui, sans-serif; color: rgba(255,255,255,.78); margin-right: 2px; }
.ys86-switch a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.45); color: #fff; font: 700 13px/1 Inter, system-ui, sans-serif; text-decoration: none; }
.ys86-switch a.is-on { background: #F5A524; border-color: #F5A524; color: #1B1203; }
.tp-hero-noimg .ys86-switch-k { color: #475467; }
.tp-hero-noimg .ys86-switch a { color: #062B5C; border-color: #C9D3E0; }

/* ---- shared bits ---- */
.ys86-btn, .ys86-btn-line { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px;
  border-radius: 12px; font: 700 14px/1.2 Inter, system-ui, sans-serif; text-decoration: none; cursor: pointer; text-align: center; }
.ys86-btn { background: #E8661E; color: #fff; border: 0; }
.ys86-btn-line { background: #fff; color: #0F2E4F; border: 1.5px solid #CBD5E1; }
.ys86-glance, .ys86-night, .ys86-cost, .ys86-book { background: #fff; border: 1px solid #E6EAF0; border-radius: 16px;
  padding: 16px; margin: 0 0 16px; box-shadow: 0 5px 20px rgba(6,43,92,.04); }
.ys86-glance h2, .ys86-cost h2, .ys86-book h2 { margin: 0; color: #062B5C; font-size: 1.08rem; line-height: 1.3; }

/* ---- B: trip at a glance ---- */
.ys86-glance-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.ys86-pill { flex: none; padding: 5px 10px; border-radius: 999px; background: #FFF4E5; color: #9A4A00; font: 700 12px/1 Inter, system-ui, sans-serif; }
.ys86-glance-list { list-style: none; margin: 0 0 12px; padding: 0; }
.ys86-glance-list li + li { border-top: 1px dashed #E6EAF0; }
.ys86-glance-list a { display: grid; grid-template-columns: 58px minmax(0,1fr); gap: 10px; padding: 9px 0; color: inherit; text-decoration: none; }
.ys86-glance-list b { color: #E8661E; font-size: .86rem; }
.ys86-glance-list strong { display: block; color: #17233A; font-size: .9rem; }
.ys86-glance-list em { display: block; font-style: normal; color: #475467; font-size: .82rem; line-height: 1.45; }
.ys86-glance-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ys86-glance-btns .ys86-btn-line { min-height: 40px; font-size: 13px; padding: 0 12px; }

/* ---- C: one-line stops (full text on tap) ---- */
body.ys86-on .tp-stop p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.ys86-on .tp-stop .tp-meta { display: none; }
body.ys86-on .tp-stop.ys86-open p { display: block; -webkit-line-clamp: unset; overflow: visible; }
body.ys86-on .tp-stop.ys86-open .tp-meta { display: flex; }
.ys86-more { margin-top: 4px; padding: 6px 0; border: 0; background: none; color: #C2410C; font: 700 12.5px/1 Inter, system-ui, sans-serif; cursor: pointer; }

/* ---- D: where you sleep ---- */
.ys86-night { border-color: #F3D9B5; background: linear-gradient(180deg, #FFFBF4, #fff 70%); scroll-margin-top: 110px; }
.ys86-night-head { display: flex; gap: 10px; align-items: flex-start; }
.ys86-moon { font-size: 22px; line-height: 1; }
.ys86-night h3 { margin: 0; color: #062B5C; font-size: 1rem; }
.ys86-night-head p { margin: 3px 0 0; color: #5B6575; font-size: .82rem; line-height: 1.45; }
.ys86-picks { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.ys86-pick { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 10px; align-items: center; padding: 8px;
  border: 1px solid #E6EAF0; border-radius: 12px; background: #fff; color: inherit; text-decoration: none; }
.ys86-pick-img { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: linear-gradient(145deg,#DDE9F1,#EFE3D3); }
.ys86-pick-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ys86-pick-txt { min-width: 0; }
.ys86-pick-txt strong { display: block; color: #17233A; font-size: .86rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ys86-pick-txt small { display: block; color: #6B7280; font-size: .74rem; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ys86-pick-txt b { display: block; margin-top: 2px; color: #17233A; font-size: .9rem; }
.ys86-pick-txt b small { display: inline; }
.ys86-night-cta { display: flex; gap: 8px; margin-top: 12px; }
.ys86-night-cta a { flex: 1; }

/* ---- E: cost ---- */
.ys86-cost { scroll-margin-top: 110px; }
.ys86-cost-rows { margin: 10px 0 12px; }
.ys86-cost-rows div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #F4F8FC; color: #17233A; font-size: .92rem; }
.ys86-cost-rows b { white-space: nowrap; }
.ys86-cost-rows p, .ys86-cost-none { margin: 8px 0 12px; color: #5B6575; font-size: .8rem; line-height: 1.5; }

/* ---- F: book this plan ---- */
.ys86-book { border: 1.5px solid #0F2E4F; scroll-margin-top: 110px; }
.ys86-sub { margin: 4px 0 12px; color: #5B6575; font-size: .84rem; line-height: 1.45; }
.ys86-needs { border: 0; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ys86-needs legend { font: 700 12.5px/1 Inter, system-ui, sans-serif; color: #344054; margin-bottom: 8px; }
.ys86-needs label { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1px solid #CBD5E1; border-radius: 999px; font-size: .84rem; cursor: pointer; }
.ys86-book label { font: 600 12.5px/1.3 Inter, system-ui, sans-serif; color: #344054; }
.ys86-book input[type=date], .ys86-book input[type=text], .ys86-book select { display: block; width: 100%; box-sizing: border-box; margin-top: 5px;
  min-height: 44px; padding: 0 10px; border: 1px solid #CBD5E1; border-radius: 10px; font: 400 15px Inter, system-ui, sans-serif; background: #fff; }
.ys86-row { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 10px; margin-bottom: 10px; }
.ys86-book > label { display: block; margin-bottom: 12px; }
.ys86-wa { width: 100%; background: #1F9D55; }
.ys86-err { margin: 0 0 8px; color: #B42318; font-size: .82rem; }
.ys86-sent { margin: 10px 0 0; color: #0F7C5A; font-size: .84rem; }

/* ---- G: one bar on phones ---- */
.ys86-bar { display: none !important; }

@media (max-width: 900px) {
  /* the plan starts on the first screen */
  body.ys86-on .tp-gallery-strip,
  body.ys86-on .tp-hero-meta,
  body.ys86-on .tp-search-wrap,
  body.ys86-on .tp-tabs,
  body.ys86-on .tp-section-heading { display: none !important; }
  body.ys86-on .tp-breadcrumb, body.ys86-on .tp-kicker { display: none !important; }
  body.ys86-on .tp-intro { font-size: .9rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  body.ys86-on .tp-intro.tp-base-note { display: block; -webkit-line-clamp: unset; font-size: .8rem; line-height: 1.45; }
  body.ys86-on .tp-hero { min-height: 0 !important; height: auto !important; }
  body.ys86-on .tp-hero-inner { min-height: 0 !important; padding-bottom: 22px !important; }
  body.ys86-on .tp-hero-actions { display: none; }
  .ys86-picks { grid-template-columns: minmax(0,1fr); }
  body.ys86-on .ys86-bar { display: grid !important; grid-template-columns: minmax(0,1fr) minmax(0,1.3fr); gap: 8px; position: fixed; left: 0; right: 0; z-index: 150;
    bottom: calc(var(--mobile-bottom-nav-height, 62px) + env(safe-area-inset-bottom, 0px)); padding: 8px 12px;
    background: rgba(255,255,255,.97); border-top: 1px solid #E6EAF0; box-shadow: 0 -6px 18px rgba(6,43,92,.08);
    transform: translateY(0); transition: transform .2s ease; }
  body.ys86-on .ys86-bar.ys86-hide { transform: translateY(140%); }
  .ys86-bar a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 12px;
    font: 700 15px Inter, system-ui, sans-serif; text-decoration: none; }
  .ys86-bar-main { background: #E8661E; color: #fff; }
  .ys86-bar-alt { border: 1.5px solid #0F2E4F; color: #0F2E4F; background: #fff; }
}

@media (min-width: 901px) {
  /* computers: the plan column carries the new blocks; the side keeps overview, map and share */
  .ys86-glance { padding: 20px 22px; }
  .ys86-glance-list a { grid-template-columns: 70px minmax(0,1fr); }
  .ys86-night { margin: -4px 0 18px 64px; }
  .ys86-picks { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ys86-night-cta a { flex: none; }
  .ys86-cost, .ys86-book { padding: 20px 22px; }
  .ys86-book .ys86-row { grid-template-columns: 1fr 1fr; }
  .ys86-wa { max-width: 420px; }
}

body.ys86-on .tp-day-card { scroll-margin-top: 110px; }

/* v1091: regular price struck out next to today's offer */
.ys86-pick-txt b .ys86-was { display: inline; margin-right: 5px; color: #8A94A3; font-size: .78rem; font-weight: 500; text-decoration: line-through; }
