/* =====================================================================================================================
   TRAVELEAK ARTICLE SYSTEM: Selected Stays band (port step 6). Loaded ONLY on single posts whose band will render (inc/article.php).
   Source: prototypes/hotel-review-prototype.html (locked; identical in the Standard and Editorial prototypes), ported 1:1.
   Every selector is scoped under .stay-band so nothing here can touch another card, rail or section (the prototype's .media, .rail, .btn-solid-dark ...
   are generic names; here they only exist inside the band). Values are the prototype's; tokens get the prototype's own fallbacks.
   Behaviour: 3 cards + a quarter card peeking at 641px and wider (arrows on the photo band), 1 card + a quarter peeking at 640px and below (no arrows, native swipe).
   ===================================================================================================================== */
.stay-band{border-top:1px solid var(--color-border);padding-top:28px;margin-top:28px;}
/* Placement (fix 2026-10-07): the band is a grid item of .article-layout (the approved prototypes have it there), so it can be ordered against the sidebar.
   Desktop (>=1024px): full width, row 5 under the article columns (row 4 = More from <hub>). 1023px and below: the grid is one column and the order is
   article (main) > band > sidebar blocks (Featured, House Promo, Related). article.css already sets .article-sidebar order 4 at 640px and below. */
@media (min-width:1024px){.article-layout > .stay-band{grid-column:1 / -1;grid-row:5;}}
@media (max-width:1023px){.article-layout > .stay-band{order:3;}.article-layout > .article-sidebar{order:4;}}

/* Section layout */
.stay-band .rec-slot{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"head cta" "desc desc" "rail rail" "disc disc";column-gap:24px;align-items:end;}
.stay-band .rec-slot .slot-top{display:contents;}
.stay-band .rec-slot .discovery-head{grid-area:head;margin:0 0 28px;align-self:end;}
.stay-band .rec-slot .slot-all{grid-area:cta;margin-bottom:28px;}
.stay-band .rec-slot .rail{grid-area:rail;min-width:0;}
/* Section Description (master): Inter 16/300/1.75, muted. First content after the gold rule. */
.stay-band .section-desc{grid-area:desc;align-self:start;max-width:720px;margin:0 0 28px;font:300 16px/1.75 var(--font-sans);color:var(--color-text-muted);}
.stay-band .slot-all-arrow{display:none;width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;}
.stay-band .slot-all{font:500 12px/1 var(--font-sans);letter-spacing:.08em;text-transform:uppercase;border-bottom:1px solid var(--color-accent);padding-bottom:4px;white-space:nowrap;}

/* Commercial disclosure: sits at the end of the block, right under the cards and their View Rates buttons. Same master as the Affiliate Disclosure. */
.stay-band .stay-disclosure{grid-area:disc;margin:20px 0 0;max-width:720px;font:300 12px/1.5 var(--font-sans);letter-spacing:normal;color:var(--color-text-muted);}

/* Rail + property card (existing Signature Hotels & Resorts pattern) */
.stay-band .rail{position:relative;}
.stay-band .rail-track{display:flex;gap:26px;overflow-x:auto;scroll-snap-type:x proximity;-ms-overflow-style:none;scrollbar-width:none;margin:0;padding:0;}
.stay-band .rail-track::-webkit-scrollbar{display:none;}
.stay-band .media{position:relative;display:block;overflow:hidden;border-radius:var(--radius,2px);background:#f1f1f0;}
.stay-band .media > img{display:block;width:100%;height:100%;object-fit:cover;}
.stay-band .r32{aspect-ratio:3/2;}
.stay-band .property-card{flex:0 0 calc((100% - 78px)/3.25);min-width:0;scroll-snap-align:start;display:flex;flex-direction:column;}
.stay-band .property-card-media{display:block;}
.stay-band .property-card .media{margin-bottom:12px;}
.stay-band .property-card-body{display:flex;flex-direction:column;flex:1;}
.stay-band .property-card .journey-eyebrow{margin-bottom:8px;}
.stay-band .property-card .journey-eyebrow .meta-sep,.stay-band .property-card .journey-eyebrow .loc{color:var(--color-text-muted);}
.stay-band .property-card .journey-eyebrow .meta-sep{opacity:.5;}
.stay-band .property-card .card-title{margin:0 0 4px;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);}
.stay-band .property-card .card-title a{color:inherit;text-decoration:inherit;}   /* the title is a link to the Official Website: it must look like the prototype's plain title */
.stay-band .property-card:hover .card-title{text-decoration:underline;}
.stay-band .property-card .card-desc{margin:0 0 12px;color:var(--color-text-body,#4f4f4b);font-family:var(--font-sans);font-size:var(--text-body-size,14px);font-weight:300;line-height:var(--text-body-line,1.75);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;}
.stay-band .property-card-footer{margin-top:auto;}
.stay-band .card-provider{margin:8px 0 0;font:300 12px/1.5 var(--font-sans);color:var(--color-text-muted);}
.stay-band .btn-solid-dark{display:flex;align-items:center;justify-content:center;width:100%;padding:16px 20px;background:var(--color-dark,#0e0d0c);color:#fff;font-family:var(--font-sans);font-size:12px;font-weight:500;letter-spacing:.08em;text-transform:uppercase;border-radius:var(--radius,2px);transition:background .2s var(--ease,cubic-bezier(.4,0,.2,1));}
.stay-band .btn-solid-dark:hover{background:#000;}

/* Side arrows: overlay on the photo band (height written by the rail script, --rail-media-h) */
.stay-band .rail--side-arrows .rail-controls--overlay{position:absolute;top:0;left:0;right:0;height:var(--rail-media-h,29vw);z-index:3;display:flex;align-items:center;justify-content:space-between;padding:0;gap:0;pointer-events:none;}
.stay-band .rail--side-arrows .rail-controls--overlay .rail-btn{pointer-events:auto;background:var(--color-white,#fff);border-color:var(--color-white,#fff);box-shadow:0 2px 10px rgba(0,0,0,.18);}
.stay-band .rail--side-arrows .rail-controls--overlay .rail-btn:first-child{transform:translateX(-50%);}
.stay-band .rail--side-arrows .rail-controls--overlay .rail-btn:last-child{transform:translateX(50%);}
.stay-band .rail--side-arrows .rail-controls--overlay .rail-btn:hover{background:var(--color-surface);}
.stay-band .rail-btn{width:40px;height:40px;border-radius:50%;border:1px solid var(--color-border);background:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;color:var(--color-text);transition:border-color .2s var(--ease,cubic-bezier(.4,0,.2,1));}
.stay-band .rail-btn:hover{border-color:var(--color-accent);}
.stay-band .rail-btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;}
.stay-band .rail-btn.is-prev svg{transform:scaleX(-1);}
.stay-band .rail.is-static .rail-controls--overlay{display:none;}

/* Mobile (<= 640px): one card + a quarter peeking, native swipe, no arrows; the link moves under the disclosure */
@media (max-width:640px){
  .stay-band .rec-slot{grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "desc" "rail" "disc" "cta";}   /* disclosure stays right under the cards, above Explore */
  .stay-band .rec-slot .discovery-head{margin-bottom:28px;}
  .stay-band .rec-slot .slot-all{justify-self:start;margin:20px 0 0;display:inline-flex;align-items:center;gap:10px;}
  .stay-band .slot-all-arrow{display:block;}
  .stay-band .property-card{flex:0 0 calc((100% - 26px)/1.25);min-width:0;}
  .stay-band .rail--side-arrows .rail-controls--overlay{display:none;}
}
