/* v1028 / v1032: stay header for computers only (A2 top + the v907 "route" for distances).
   Linked with media="(min-width: 901px)" after stay-header-v1013.css, so phones keep the v1013 header.
   No markup or data changes. Any piece that is missing (rating, map pin, badges, distances) simply leaves its space. */

html body.pdp16 .pdp9-main > .container > .ys880-hero{
  display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:28px;
  grid-template-areas:"top top" "type rate" "title rate" "meta rate" "links rate" "dist dist";
  align-items:start;
  margin:6px 0 16px;padding:16px 28px 20px;border:1px solid #E4E7EC;border-radius:22px;overflow:hidden;
  background:#F7F8FA;box-shadow:none;color:#101828;font-family:Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif
}
/* with the route below, the white band closes the card */
html body.pdp16 .pdp9-main > .container > .ys880-hero:has(.ys907-thread){padding-bottom:0}

/* let the header's own boxes step aside so their pieces sit on the grid above */
html body.pdp16 .pdp9-main .ys880-hero .ys1012-top,
html body.pdp16 .pdp9-main .ys880-hero .ys1012-top .pdp9-head,
html body.pdp16 .pdp9-main .ys880-hero .ys1012-top .pdp9-head-main{display:contents!important}

/* top line: breadcrumb left, Share / Save right */
html body.pdp16 .pdp9-main .ys880-hero .ys1012-top .ys1013-topline{grid-area:top;display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 6px}
html body.pdp16 .pdp9-main .ys880-hero .ys1012-top .pdp9-crumbs{margin:0;padding:0;min-height:0;font-size:13px;color:#475467}
html body.pdp16 .pdp9-main .ys880-hero .ys1012-top .pdp9-crumbs a{color:#475467;text-decoration:none}
html body.pdp16 .pdp9-main .ys880-hero .ys1012-top .pdp9-crumbs a:hover{color:#06345E;text-decoration:underline}
html body.pdp16 .pdp9-main .ys880-hero .ys1012-top .ys892-acts{position:static;display:flex;gap:8px;margin:0}
html body.pdp16 .pdp9-main .ys880-hero .ys1012-top .pdp9-btn.ys892-btn{min-height:40px;height:40px!important;padding:0 14px!important;border:1px solid #D0D5DD;border-radius:999px!important;background:#fff;color:#344054;font:600 13px/1 Inter,system-ui,sans-serif;gap:8px}
html body.pdp16 .pdp9-main .ys880-hero .ys1012-top .pdp9-btn.ys892-btn svg{width:16px;height:16px}
html body.pdp16 .pdp9-main .ys880-hero .ys1012-top .pdp9-btn.ys892-btn:hover{border-color:#06345E;color:#06345E;background:#fff}
html body.pdp16 .pdp9-main .ys880-hero .ys1012-top .pdp9-btn.ys892-btn.active{border-color:#E8590C;color:#C4320A;background:#FFF4ED}

/* type, name, location */
html body.pdp16 .pdp9-main .ys880-hero .ys1012-top .ys1012-type{grid-area:type;justify-self:start;margin:0 0 8px;padding:5px 9px;border-radius:6px;background:#FFF4E5;color:#B54708;font-size:11px;font-weight:700;line-height:1.3;letter-spacing:.12em}
html body.pdp16 .pdp9-main .ys880-hero .ys1012-top .pdp9-title{grid-area:title;margin:0 0 6px;font:800 clamp(30px,2.9vw,40px)/1.12 Inter,system-ui,sans-serif;letter-spacing:-.02em;color:#06345E}
html body.pdp16 .pdp9-main .ys880-hero .ys1012-top .pdp9-meta{grid-area:meta;display:flex;margin:0 0 10px;padding:0;font-size:15px;color:#344054}
html body.pdp16 .pdp9-main .ys880-hero .ys1012-top .pdp9-loc{color:#344054}
html body.pdp16 .pdp9-main .ys880-hero .ys1012-top .pdp9-loc svg{color:#475467}

/* rating card */
html body.pdp16 .pdp9-main .ys880-hero .ys1012-top .pdp9-actions.ys892-side{grid-area:rate;display:block!important;align-self:center;margin:0;padding:0;border:0}
html body.pdp16 .pdp9-main .ys880-hero .ys1012-top .pdp9-actions.ys892-side:not(:has(.ys1012-review)){display:none!important}
html body.pdp16 .pdp9-main .ys880-hero .ys1012-top .ys1012-review{box-sizing:border-box;display:grid;grid-template-columns:auto auto;align-items:center;gap:1px 12px;min-height:0;padding:10px 14px;border:1px solid #E4E7EC;border-radius:14px;background:#fff;color:#101828}
html body.pdp16 .pdp9-main .ys880-hero .ys1012-top .ys1012-rating-line{grid-column:1;grid-row:1/span 4;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;min-width:48px;margin:0;padding:7px 8px;border-radius:12px;background:#06345E}
html body.pdp16 .pdp9-main .ys880-hero .ys1012-top .ys1012-rating-line b{color:#fff;font-size:19px;font-weight:800;line-height:1.1;letter-spacing:0}
html body.pdp16 .pdp9-main .ys880-hero .ys1012-top .ys1012-rating-line span{color:#C7D7EA;font-size:10px;line-height:1.2}
html body.pdp16 .pdp9-main .ys880-hero .ys1012-top .ys880-stars{grid-column:2;grid-row:1;margin:0;font-size:14px;letter-spacing:2px;color:#D0D5DD}
html body.pdp16 .pdp9-main .ys880-hero .ys1012-top .ys880-stars::before{color:#DC6803}
html body.pdp16 .pdp9-main .ys880-hero .ys1012-top .ys1013-adjective{grid-column:2;grid-row:2;margin:0;color:#101828;font-size:13px;font-weight:700}
html body.pdp16 .pdp9-main .ys880-hero .ys1012-top .ys1012-source{grid-column:2;grid-row:3;display:flex;align-items:center;gap:6px;min-height:0;margin:0;color:#475467;font-size:12px}
html body.pdp16 .pdp9-main .ys880-hero .ys1012-top .ys1012-source img{width:14px;height:14px;padding:0;background:none}
html body.pdp16 .pdp9-main .ys880-hero .ys1012-top .ys1012-review small{grid-column:2;grid-row:4;margin:0;color:#475467;font-size:12px}

/* verified card, map link, badges */
html body.pdp16 .pdp9-main .ys880-hero .ys1012-top .ys1012-links{grid-area:links;display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:0}
html body.pdp16 .pdp9-main .ys880-hero .ys1012-top .ys1012-verified{display:inline-flex;align-items:center;gap:6px;min-height:0;padding:6px 11px 6px 8px;border:0;border-radius:999px;background:#ECFDF3;color:#067647;font-size:13px;font-weight:700}
html body.pdp16 .pdp9-main .ys880-hero .ys1012-top .ys1012-verified svg{width:16px;height:16px;padding:0;background:none;color:#067647}
html body.pdp16 .pdp9-main .ys880-hero .ys1012-top .ys1012-map{align-self:center;min-height:32px;padding:0;border:0;background:none;color:#06345E;font-size:14px;font-weight:600;text-decoration:underline;text-underline-offset:3px}
html body.pdp16 .pdp9-main .ys880-hero .ys1012-top .ys1012-map:hover{color:#041F38;background:none}
html body.pdp16 .pdp9-main .ys880-hero .ys1012-top .ys1012-badge{align-self:center;min-height:0;padding:6px 11px;border:0;border-radius:999px;background:#FFF4E5;color:#B54708;font-size:12px;font-weight:700}

/* distances: the v907 route (dots on a dotted line) in a white band across the bottom of the card.
   The stops' own look comes from pdp-desktop-v907.css; only the band and the line's ends are set here. */
html body.pdp16 .pdp9-main .ys880-hero .ys907-thread[hidden]{grid-area:dist;position:relative;display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));
  max-width:none;margin:16px -28px 0;padding:14px 28px 14px;border-top:1px solid #E4E7EC;background:#FFFFFF;list-style:none}
html body.pdp16 .pdp9-main .ys880-hero .ys907-thread:before{top:43px;left:calc(28px + (100% - 56px) / var(--n) / 2);right:calc(28px + (100% - 56px) / var(--n) / 2)}
html body.pdp16 .pdp9-main .ys880-hero .ys907-s b,
html body.pdp16 .pdp9-main .ys880-hero .ys907-km{overflow-wrap:anywhere}

html body.pdp16 .pdp9-main .ys880-hero a:focus-visible,
html body.pdp16 .pdp9-main .ys880-hero button:focus-visible{outline:2px solid #06345E;outline-offset:3px}
