/* v1037: approved phone stay page - Proposal 1 (rooms first) with the navy name header and the temple route.
   Linked with media="(max-width: 900px)", so computers are unchanged. Same data and the same booking form;
   only order and presentation change. */

/* ---------- navy header: kicker, name, score box, verified ---------- */
html body.pdp16 .ys880-hero .ys1012-top{padding:14px 16px 16px !important}
html body.pdp16 .ys880-hero .ys1012-top .ys1013-topline{display:none !important}
html body.pdp16 .ys880-hero .ys1012-top .pdp9-head{display:grid !important;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start}
html body.pdp16 .ys880-hero .ys1012-top .ys1012-type{display:none !important}
html body.pdp16 .ys880-hero .ys1012-top .ys1037-kick{display:block;margin:0 0 4px;font:700 11px/1.4 Inter,system-ui,sans-serif;letter-spacing:.1em;color:#FDB022;overflow-wrap:anywhere}
html body.pdp16 .ys880-hero .ys1012-top .pdp9-title{margin:0 0 8px !important;font:800 23px/1.18 Inter,system-ui,sans-serif !important;letter-spacing:-.01em;color:#FFFFFF}
html body.pdp16 .ys880-hero .ys1012-top .pdp9-meta,
html body.pdp16 .ys880-hero .ys1012-top .ys896-facts,
html body.pdp16 .ys880-hero .ys1012-top .ys1012-map,
html body.pdp16 .ys880-hero .ys1012-top .ys1012-badge,
html body.pdp16 .ys880-hero .ys1012-top .pdp9-actions.ys892-side{display:none !important}
html body.pdp16 .ys880-hero .ys1012-top .ys1012-links{margin:0 !important}
html body.pdp16 .ys880-hero .ys1012-top .ys1012-verified{min-height:0;padding:0;border:0;background:none;color:#A6F4C5;font-size:13px;font-weight:600}
html body.pdp16 .ys880-hero .ys1012-top .ys1037-score{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:64px;min-height:52px;padding:6px 10px;border-radius:10px;background:#FFFFFF;color:#06345E;text-decoration:none}
html body.pdp16 .ys880-hero .ys1012-top .ys1037-score b{font:800 20px/1.1 Inter,system-ui,sans-serif}
html body.pdp16 .ys880-hero .ys1012-top .ys1037-score small{font-size:11px;color:#475467;white-space:nowrap}

/* the host row and the highlight tiles move out of the header (the same facts are in Property highlights) */
html body.pdp16 .ys880-hero .ys896-host,
html body.pdp16 .ys880-hero .ys896-hl{display:none !important}

/* ---------- temple route (owner's distances), compact ---------- */
html body.pdp16 .ys880-hero .ys907-thread[hidden]{position:relative;display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));margin:14px 0 2px;padding:0;list-style:none}
html body.pdp16 .ys880-hero .ys907-thread:before{content:"";position:absolute;top:26px;left:calc(50% / var(--n));right:calc(50% / var(--n));border-top:2px dotted #E8942A}
html body.pdp16 .ys880-hero .ys907-s{position:relative;display:flex;flex-direction:column;align-items:center;min-width:0;padding:18px 2px 0;text-align:center}
html body.pdp16 .ys880-hero .ys907-km{position:absolute;top:0;left:0;right:0;font:800 12px/1.3 Inter,system-ui,sans-serif;color:#B54708;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body.pdp16 .ys880-hero .ys907-s i{position:relative;width:16px;height:16px;margin:0 0 6px;border-radius:50%;background:#FFFFFF;border:3px solid #E8942A;box-sizing:border-box}
html body.pdp16 .ys880-hero .ys907-home i{background:#F56A00;border:0;box-shadow:0 0 0 4px #FFE4CC}
html body.pdp16 .ys880-hero .ys907-s b{font:700 12px/1.25 Inter,system-ui,sans-serif;color:#101828;overflow-wrap:anywhere}
html body.pdp16 .ys880-hero .ys907-s small{display:none}
/* the temple shows its short caption ("Main temple") instead of the long name */
html body.pdp16 .ys880-hero .ys907-temple:has(small) b{display:none}
html body.pdp16 .ys880-hero .ys907-temple:has(small) small{display:block;margin:0;font:700 12px/1.25 Inter,system-ui,sans-serif;color:#101828}

/* ---------- dates bar ---------- */
html body.pdp16 .ys1037-dates{display:flex;align-items:center;gap:12px;width:100%;min-height:56px;margin:0 0 12px;padding:8px 14px;border:1.5px solid #06345E;border-radius:12px;background:#FFFFFF;color:#06345E;text-align:left;font-family:inherit;cursor:pointer}
html body.pdp16 .ys1037-dates-t{flex:1;display:flex;flex-direction:column;min-width:0}
html body.pdp16 .ys1037-dates-t b{font-size:14px;color:#101828}
html body.pdp16 .ys1037-dates-t small{font-size:12px;color:#475467}
html body.pdp16 .ys1037-dates-c{font-size:13px;font-weight:700}
html body.pdp16 .ys1037-dates:focus-visible{outline:3px solid #FDB022;outline-offset:2px}

/* ---------- rooms first: new section order ---------- */
html body.pdp16 .pdp16-left{display:flex !important;flex-direction:column}
html body.pdp16 .pdp16-left > *{order:20}
html body.pdp16 .pdp16-left > .ys1037-dates{order:1}
html body.pdp16 .pdp16-left > .pdp16-rooms{order:2}
html body.pdp16 .pdp16-left > .pdp16-amenities{order:3}
html body.pdp16 .pdp16-left > .pdp16-reviews{order:4}
html body.pdp16 .pdp16-left > .pdp16-overview{order:5}
html body.pdp16 .pdp16-left > #highlights{order:6}
html body.pdp16 .pdp16-left > #location{order:7}
html body.pdp16 .pdp16-left > .pdp16-cancellation{order:8}
html body.pdp16 .pdp16-left > .pdp16-policies{order:9}
html body.pdp16 .pdp16-left > .pdp16-trip{order:10}
html body.pdp16 .pdp16-left > .pdp16-faq{order:11}

/* ---------- long sections fold to a short preview (pdp-mobile-v1037.js adds the classes and the button) ---------- */
html body.pdp16 .ys1037-fold{position:relative;max-height:340px;overflow:hidden}
html body.pdp16 .ys1037-fold::after{content:"";position:absolute;left:0;right:0;bottom:0;height:90px;background:linear-gradient(rgba(255,255,255,0),#FFFFFF);pointer-events:none}
html body.pdp16 .ys1037-fold.is-open{max-height:none;overflow:visible}
html body.pdp16 .ys1037-fold.is-open::after{display:none}
html body.pdp16 .ys1037-more{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:44px;margin:-4px 0 12px;border:1px solid #D0D5DD;border-radius:12px;background:#FFFFFF;color:#06345E;font:700 14px Inter,system-ui,sans-serif;cursor:pointer}

/* ---------- bottom: one bar only (the app menu is hidden on stay pages) ---------- */
html body.pdp16 .mobile-bottom-nav{display:none !important}
html body.pdp16 #stickyBar{bottom:0 !important;padding-bottom:calc(10px + env(safe-area-inset-bottom)) !important}

/* ---------- rooms: a single room uses the full width (the swipe list leaves a gap for the next card) ---------- */
html body.pdp16 .pdp16-rooms .rc-list > .rc-card:only-child{flex:1 1 auto !important}

/* ---------- v1041: more of the first screen for the stay itself ---------- */
/* 1) no search pill on the photo (it repeated the search and could show a different guest count than the booking bar) */
html body.pdp16 .ys896-gtop .ys896-gsp{display:none !important}
html body.pdp16 .ys896-gtop .ys896-gsp + .ys896-fb{margin-left:auto}
/* 2) no section tabs on phones (the page order changed; the sections follow each other directly) */
html body.pdp16 #sectionTabs{display:none !important}
/* 3) a shorter photo (300 -> 236 px); the photo counter moves with it */
html body.pdp16 .pdp9-main .pdp9-gallery{height:236px !important;min-height:0 !important}
html body.pdp16 .pdp9-main .pdp9-gallery > *{height:100% !important}
html body.pdp16 #ys896Count{top:180px !important}
