/* v1088: tourist place pages - stay-friendly layout (phones and computers).
   Everything applies only after place-stay-v1088.js adds body.ys88-on - without it the page stays as before. */

body.ys88-on .ys88-m { display: block; }
body.ys88-on .ys88-facts { display: flex; }

/* ---- A: quick facts in the hero ---- */
.ys88-facts { flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; padding: 0; list-style: none; }
.ys88-facts li { padding: 6px 11px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
  color: #fff; font: 600 12.5px/1.2 Inter, system-ui, sans-serif; }

/* ---- shared ---- */
.ys88-btn, .ys88-btn-line { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 16px; border-radius: 12px;
  font: 700 15px/1.2 Inter, system-ui, sans-serif; text-decoration: none; text-align: center; cursor: pointer; box-sizing: border-box; }
.ys88-btn { background: #E8661E; color: #fff; border: 0; }
.ys88-btn-line { background: #fff; color: #0B2A55; border: 1.5px solid #0B2A55; margin-top: 10px; }
.ys88-wa { background: #1F9D55; }
.ys88-stay, .ys88-with, .ys88-nudge { background: #fff; border: 1px solid #E6EAF0; border-radius: 16px; padding: 16px; margin: 0 0 16px;
  box-shadow: 0 6px 20px rgba(6,43,92,.06); font-family: Inter, system-ui, sans-serif; }
.ys88-stay h2, .ys88-with h2, .ys88-nudge h2 { margin: 0; color: #0B2A55; font-size: 1.12rem; line-height: 1.3; }

/* ---- B: stays from this place ---- */
.ys88-stay { border: 1.5px solid #F3C99A; scroll-margin-top: 120px; }
.ys88-stay-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ys88-stay-count { color: #9A4A00; font: 700 12.5px/1.2 Inter, system-ui, sans-serif; }
.ys88-stay-sub { margin: 4px 0 12px; color: #5B6575; font-size: .84rem; line-height: 1.45; }
.ys88-picks { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.ys88-pick { display: grid; grid-template-columns: 64px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 8px;
  border: 1px solid #E6EAF0; border-radius: 12px; color: inherit; text-decoration: none; background: #fff; }
.ys88-pick-img { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: linear-gradient(145deg,#DDE9F1,#EFE3D3); }
.ys88-pick-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ys88-pick-txt { min-width: 0; }
.ys88-pick-txt strong { display: block; color: #17233A; font-size: .9rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ys88-pick-txt em, .ys88-row em { display: block; font-style: normal; color: #475467; font-size: .78rem; font-weight: 600; }
.ys88-pick-txt em.is-walk, .ys88-row em.is-walk { color: #0F7C5A; }
.ys88-pick-txt small { display: block; color: #6B7280; font-size: .74rem; }
.ys88-pick-pr { text-align: right; }
.ys88-pick-pr del, .ys88-row-pr del { display: block; color: #8A94A3; font-size: .72rem; }
.ys88-pick-pr b { display: block; color: #17233A; font-size: 1rem; }
.ys88-pick-pr small { display: block; color: #6B7280; font-size: .68rem; }
.ys88-dates { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; margin-top: 12px; }
.ys88-dates label { display: flex; flex-direction: column; gap: 4px; font: 600 12px Inter, system-ui, sans-serif; color: #344054; min-width: 0; }
.ys88-dates input { min-height: 44px; padding: 0 10px; border: 1px solid #CBD5E1; border-radius: 10px; font: 500 15px Inter, system-ui, sans-serif; color: #0B2A55; background: #fff; box-sizing: border-box; width: 100%; }

/* ---- D: do it with ---- */
.ys88-with h2 { margin-bottom: 10px; }
.ys88-near { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 46px; padding: 0 12px; margin-bottom: 6px;
  border-radius: 10px; background: #F4F8FC; color: #17233A; text-decoration: none; font-size: .9rem; }
.ys88-near span { color: #5B6575; font-size: .82rem; white-space: nowrap; }
.ys88-plan { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 54px; margin-top: 10px; padding: 8px 14px;
  border: 1.5px solid #0B2A55; border-radius: 12px; color: #0B2A55; text-decoration: none; }
.ys88-plan b { display: block; font-size: .92rem; }
.ys88-plan small { display: block; color: #5B6575; font-size: .78rem; }
.ys88-plan i { font-style: normal; font-size: 1.3rem; }

/* ---- E: staying the night ---- */
.ys88-nudge { background: #FFF8F1; border-color: #F3D9B5; box-shadow: none; }
.ys88-nudge p { margin: 4px 0 12px; color: #5B6575; font-size: .88rem; line-height: 1.5; }
.ys88-nudge-btns { display: flex; gap: 8px; }
.ys88-nudge-btns a { flex: 1; }

/* ---- G: the full list, nearest first (replaces the old cards in #stays) ---- */
body.ys88-on #stays > .ys88-old { display: none !important; }   /* the script marks the old cards once the new list is there */
.ys88-list-sub { margin: 0 0 10px; color: #5B6575; font-size: .84rem; }
.ys88-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; margin-bottom: 6px;
  border-radius: 10px; background: #F4F8FC; color: #17233A; text-decoration: none; }
.ys88-row b { display: block; font-size: .92rem; }
.ys88-row-pr { text-align: right; white-space: nowrap; }

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

@media (max-width: 900px) {
  body.ys88-on .ysk-staystrip, body.ys88-on .tp-hero-why, body.ys88-on .ysk-bar { display: none !important; }
  .ys88-picks { grid-template-columns: minmax(0,1fr); }
  .ys88-dates { grid-template-columns: 1fr 1fr; }
  .ys88-dates .ys88-btn { grid-column: 1 / -1; }
  .ys88-stay { margin-top: 4px; }
  body.ys88-on .ys88-bar { display: grid !important; grid-template-columns: minmax(0,1fr) 52px; 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); }
  body.ys88-on .ys88-bar.ys88-hide { display: none !important; }
  .ys88-bar-main { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; border-radius: 12px;
    background: #E8661E; color: #fff; text-decoration: none; font-family: Inter, system-ui, sans-serif; }
  .ys88-bar-main b { font-size: 15px; line-height: 1.2; }
  .ys88-bar-main small { font-size: 11.5px; opacity: .92; }
  .ys88-bar-wa { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 12px; background: #1F9D55; color: #fff; }
  body.ys88-on .ys88-bar.ys88-solo { grid-template-columns: minmax(0,1fr); }
}

@media (min-width: 901px) {
  .ys88-stay { padding: 20px 22px; }
  .ys88-dates .ys88-btn { min-height: 44px; }
}
