/* ============================================================
   PRODUCT GUIDE v2 (PROPOSAL, Owner 2026-10-23: Product Guide reopened for the sidebar / related modules only)
   Loaded after the LOCKED Product Guide CSS and article-v2.css. Scoped to .pg-page. Nothing else in the LOCKED guide changes.
   - Sidebar: Most Popular (same module as the other article types) replaces Related guides; In this article (sticky, scroll-spy) stays.
   - Related guides move to the bottom as YOU MAY ALSO LIKE (replaces Latest on Traveleak), same module as the other article types.
   - Sticky zone: In this article stays in view to the end of More from (was: end of the body), released before Signature Hotels & Resorts.
   ============================================================ */

/* Most Popular: the rules of article-v2.css section 3, with the Product Guide scope */
.pg-page .most-popular > .discovery-head{margin:0 0 28px;}
.pg-page .most-popular > .compact-list{padding-top:0;}
.pg-page .popular-lead{margin:0 0 20px;padding:0 0 20px;border-bottom:1px solid var(--color-border);}
.pg-page .popular-lead__thumb{display:block;aspect-ratio:16/9;margin-bottom:14px;}
.pg-page .popular-lead__thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.pg-page .popular-lead .journey-eyebrow{margin:0 0 6px;}
.pg-page .popular-lead__title{margin:0;font-family:var(--font-editorial);font-weight:400;
  font-size:var(--card-title-secondary-size,20px);line-height:var(--card-title-secondary-line,1.3);}
.pg-page .popular-lead__title a{color:inherit;text-decoration:none;}
.pg-page .popular-lead__title a:hover{color:var(--color-accent);}
@media (min-width:641px) and (max-width:1023px){
  .pg-page .popular-lead{display:grid;grid-template-columns:minmax(0,34%) minmax(0,1fr);gap:24px;align-items:start;}
  .pg-page .popular-lead__thumb{margin-bottom:0;}
}
@media (max-width:640px){
  .pg-page .most-popular .compact-list--featured .compact-item{align-items:stretch;gap:16px;padding:14px 0;}
  .pg-page .most-popular .compact-list--featured .compact-item:first-child{padding-top:0;}
  .pg-page .most-popular .compact-list--featured .compact-thumb{flex:0 0 47.7%;width:47.7%;align-self:flex-start;}
  .pg-page .most-popular .compact-list--featured .compact-body{display:flex;flex-direction:column;}
  .pg-page .most-popular .compact-list--featured .compact-title{font-size:18px;line-height:23.4px;margin:0 0 8px;}
  .pg-page .most-popular .compact-list--featured .journey-eyebrow{font-size:10px;}
}

/* Featured Stories: the v2 module (article-v2.css section 5) with the Product Guide scope */
.pg-page .featured-stories{margin-top:28px;padding:32px;background:#F7F5EF;border:1px solid var(--color-border);}
.pg-page .featured-stories .discovery-head{margin:0 0 28px;}
.pg-page .featured-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px;margin:0;padding:0;list-style:none;}
.pg-page .featured-card{min-width:0;}
.pg-page .featured-card .d-thumb{display:block;margin-bottom:16px;}
.pg-page .featured-card .journey-eyebrow{margin:0 0 8px;}
.pg-page .featured-card .d-title{margin:0;font-size:var(--card-title-secondary-size,20px);line-height:var(--card-title-secondary-line,1.3);}
@media (max-width:640px){
  .pg-page .featured-stories{padding:20px;}
  .pg-page .featured-grid{grid-template-columns:1fr;gap:28px;}
}

/* Desktop grid (Owner 2026-10-23): rows 1 header, 2 body (incl. Continue + Tags), 3 Featured Stories (NEW), 4 More from, 5 Signature Hotels & Resorts.
   Sidebar = rows 1-4, two tracks on the same rows as the main column:
   - row 2 (body): In this article, sticky through the body (unchanged mechanism, scroll-spy);
   - rows 3-4 (Featured + More from): Most Popular takes over. It is taller than a laptop window, so it sits at the end of its track with sticky
     bottom:24px (scrolls until its last card is in view, then stays put); windows >=1120px tall: sticky from the top. Released before Signature stays. */
@media (min-width:1024px){
  .pg-page .featured-stories{grid-column:1;grid-row:4;min-width:0;margin-top:0;}
  .pg-page .article-main > .hub-section{grid-row:5;}
  .pg-page .article-layout > .stay-band{grid-row:6;}
  .pg-page .article-layout > .article-sidebar{grid-row:1 / 6;}
}
@media (min-width:1024px) and (min-height:420px){
  .pg-page .article-sidebar .sidebar-flow{grid-row:2 / 6;display:grid;grid-template-rows:subgrid;}
  .pg-page .article-sidebar .pg-sidebar-toc{grid-row:1;margin-top:0;}
  .pg-page .pg-popular-track{grid-row:3 / 5;display:flex;flex-direction:column;justify-content:flex-end;padding-top:48px;min-width:0;}
  .pg-page .pg-popular-track .most-popular{position:sticky;bottom:24px;}
}
@media (min-width:1024px) and (min-height:1120px){
  .pg-page .pg-popular-track{justify-content:flex-start;}
  .pg-page .pg-popular-track .most-popular{bottom:auto;top:24px;}
}

/* Below 1024: the v2 mobile order of the other article types (article incl. Continue + Tags > Most Popular > Selected / Signature stays > More from).
   LOCKED order was article 1, More from 2, stays 3, sidebar 4. In this article stays inline at the top of the body (LOCKED, unchanged). */
@media (max-width:1023px){
  .pg-page .article-layout > .article-sidebar{order:2;}
  .pg-page .article-layout > .featured-stories{order:3;}
  .pg-page .article-layout > .stay-band{order:4;}
  .pg-page .article-layout .article-main > .hub-section{order:5;} /* .article-main is display:contents below 1024 */
}

/* With article-v2-pg.js (.pg-relay-js): Most Popular shares the column with In this article during the body. Its track covers rows 2-4 (body,
   Featured, More from) and starts right under In this article; the script sets its sticky top (under In this article, then following it up,
   then bottom-anchored). Both tracks sit in column 1 of the sidebar subgrid on purpose (overlapping rows, no overlapping boxes). */
@media (min-width:1024px) and (min-height:420px){
  .pg-page .article-sidebar.pg-relay-js .pg-sidebar-toc{grid-column:1;}
  .pg-page .article-sidebar.pg-relay-js .pg-popular-track{grid-column:1;grid-row:1 / 5;justify-content:flex-start;padding-top:calc(var(--pg-toc-h,357px) + 48px);}
  .pg-page .article-sidebar.pg-relay-js .pg-popular-track .most-popular{bottom:auto;}
}

/* Tags + Share: the current production rules (theme article.css, approved Share Buttons port), replacing the 10/10 snapshot of the LOCKED guide
   (40px buttons, 18px icons, gap 10px) and adding the 28px under the tags + share row that the live articles have (space above Featured Stories). */
.pg-page .article-end{margin-bottom:28px;}
.pg-page .article-share{display:flex;align-items:center;gap:8px;}
.pg-page .share-btn{width:44px;height:44px;border-radius:50%;border:1px solid var(--color-border);background:#fff;color:var(--color-text);display:inline-flex;align-items:center;justify-content:center;padding:0;cursor:pointer;transition:background .2s,border-color .2s,color .2s;}
.pg-page .share-btn:hover{background:var(--color-surface);border-color:var(--color-text);}
.pg-page .share-btn:active{background:var(--color-border);}
.pg-page .share-btn:focus-visible{outline:2px solid var(--color-accent);outline-offset:2px;}
.pg-page .share-btn svg{width:20px;height:20px;display:block;}
.pg-page .share-btn[data-share="facebook"] svg,.pg-page .share-btn[data-share="x"] svg{fill:currentColor;stroke:none;}
.pg-page .share-btn[data-share="facebook"] svg{width:24px;height:24px;}
.pg-page .share-btn[data-share="x"] svg{width:18px;height:18px;}

/* Selected Stays v2 card CTA (Read the Review / Read the Story): article-v2.css section rules with the Product Guide scope */
.pg-page .stay-band .card-story-link{align-self:flex-start;display:inline-flex;align-items:center;gap:8px;margin:0 0 16px;padding-bottom:4px;
  font:500 12px/1 var(--font-sans);letter-spacing:.08em;text-transform:uppercase;color:var(--color-text);border-bottom:1px solid var(--color-accent);white-space:nowrap;}
.pg-page .stay-band .card-story-link svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.8;}
.pg-page .stay-band .card-story-link:hover{color:var(--color-accent);}

/* More from <hub>: centred VIEW ALL (article-v2.css section 7) with the Product Guide scope */
.pg-page .hub-view-all{display:flex;justify-content:center;margin-top:28px;}
.pg-page .hub-view-all .btn-outline-dark{font-size:12px;font-weight:500;letter-spacing:.08em;text-transform:uppercase;}

/* ---- More from VIEW ALL, option A (Owner 2026-10-23): right-aligned under the list, wider button. Same .btn-outline-dark (gold border, 12px / 500 /
   .08em / uppercase, 14px arrow); only size and alignment change: 52px tall, 260px minimum width, right edge on the right edge of the list.
   Below 641px the live rule (.btn-outline-dark width 100%) keeps it full width. ---- */
.pg-page .hub-view-all{justify-content:flex-end;margin-top:28px;}
.pg-page .hub-view-all .btn-outline-dark{min-width:260px;min-height:52px;padding:16px 40px;gap:12px;}
@media (max-width:640px){
  .pg-page .hub-view-all{justify-content:stretch;}
  .pg-page .hub-view-all .btn-outline-dark{width:100%;min-width:0;}
}

/* Revision 14b: In this article and Most Popular move in the same frame when the header hides / shows (no 0.35s "top" transition here). */
@media (min-width:1024px) and (min-height:420px){
  .pg-page .article-sidebar.pg-relay-js .sidebar-sticky,.pg-page .article-sidebar.pg-relay-js .most-popular{transition:none;}
}

/* ---- Task 03 addition (2026-10-24): a state the E3 prototype does not show. A guide with fewer than 4 sections has no In this article list
   (inc/product-guide-nav.php); Most Popular then takes the whole zone, the approved "one module missing" rule of the other article types
   (article-v2.css: no House Promo = Most Popular takes the zone). The frame prints .no-toc on the sidebar in that case. ---- */
@media (min-width:1024px) and (min-height:420px){
  .pg-page .article-sidebar.no-toc .pg-popular-track{grid-row:1 / 5;padding-top:0;}
}

/* UI-199 (2026-11-01): desktop rows are 1 header, 2 body, 3 Continue + Tags, 4 Featured Stories, 5 More from, 6 Signature Hotels; sidebar 1-5. Supersedes the row numbers in the comment above. */
