/* myrentboat.com - partner offers block + sticky offers (assets/js/partner-offers.js). Built by build/build.mjs.
   Uses the site's own tokens (site.css :root): --font-h / --font-b, --ink*, --bg*, --card-bg, --line*, --accent*, --r. */
:root{--po-pad:24px;--po-card:#0b1324;--po-sheet:var(--bg-2);--po-price:var(--gold-3);--po-ok:#8fdcad;--po-line:var(--gold);--po-link:var(--gold);--po-eyebrow:var(--gold);--po-hover:rgba(255,255,255,.045);--po-pill:#03060d;--po-pill-line:rgba(216,178,110,.24);--po-shadow-h:0 30px 60px rgba(0,0,0,.55);--po-shadow-float:0 24px 48px -12px rgba(0,0,0,.75),0 0 0 1px rgba(216,178,110,.06);
  --po-star-svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23d8b26e' stroke='%23b8893c' stroke-linejoin='round' d='M12 2.8l2.84 5.76 6.36.92-4.6 4.49 1.08 6.33L12 17.31l-5.68 2.99 1.08-6.33-4.6-4.49 6.36-.92z'/%3E%3C/svg%3E");
  --po-clock-svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237fe1e8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E");
  --po-check-svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238fdcad' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --po-out-svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23f7f1e6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 3.5h7v7M12.5 3.5l-9 9'/%3E%3C/svg%3E")}
.po-sticky .so-count{background:rgba(216,178,110,.14)}
.po-sticky .so-all:hover{border-color:var(--gold)}

/* ============ the block: after the first content section (full width) or inside the article column (.po--col) ============ */
.po{padding-block:72px;background:var(--bg);border-bottom:1px solid var(--line)}
.po--col{padding-block:0;margin-top:60px;background:none;border:0}
.po .po-head{text-align:center;margin:0 auto 34px;max-width:760px}
.po--col .po-head{text-align:left;margin:0 0 24px;max-width:none}
.po--col .po-head .rule-c{margin-left:0}
.po .po-head .eyebrow{justify-content:center;margin:0 0 10px}
.po--col .po-head .eyebrow{justify-content:flex-start}
.po h2{margin:0 auto 12px;max-width:26ch}
.po--col h2{margin:0 0 12px;max-width:none;font-size:clamp(1.55rem,1.2rem + 1.3vw,2.1rem)}
.po h2:focus{outline:none}
.po-lead{margin:0;color:var(--ink-2);font-size:1.02rem;line-height:1.6}
.po-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.po--col .po-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.po-list li{display:flex;min-width:0}
/* 1 or 2 offers: card-width columns, centred (left in the article column) */
.po-list[data-n="2"]{grid-template-columns:repeat(2,minmax(0,370px));justify-content:center}
.po-list[data-n="1"]{grid-template-columns:minmax(0,370px);justify-content:center}
.po--col .po-list[data-n="1"]{justify-content:start}
.po-offer{position:relative;display:flex;flex-direction:column;flex:1 1 auto;min-width:0;background:var(--po-card);color:var(--ink);border:1px solid var(--line);border-radius:var(--r);overflow:hidden;box-shadow:var(--card-shadow);text-decoration:none;transition:transform .35s,box-shadow .35s}
.po-pic{display:block;flex:none;aspect-ratio:3/2;overflow:hidden;background:var(--bg-2)}
.po-pic img{width:100%;height:100%;object-fit:cover;transition:transform .9s cubic-bezier(.2,.7,.2,1)}
.po-body{display:flex;flex-direction:column;flex:1 1 auto;gap:10px;padding:18px 20px 18px}
.po-title{font-family:var(--font-h);font-weight:var(--h-weight);font-size:1.18rem;line-height:1.28;letter-spacing:-.005em;color:var(--ink-h);overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}
.po-info{display:flex;flex-direction:column;gap:4px;font-size:.9rem;color:var(--ink-2);line-height:1.45}
.po-meta{display:flex;flex-wrap:wrap;gap:2px 16px}
.po-rate,.po-time,.po-free{display:inline-flex;align-items:center;gap:6px}
.po-rate b{color:var(--ink-h);font-weight:600}
.po-free{color:var(--po-ok);font-weight:500}
.po-rate::before,.po-time::before,.po-free::before,.po-cta::after{content:"";width:15px;height:15px;flex:none;background:center/contain no-repeat}
.po-rate::before{background-image:var(--po-star-svg)}
.po-time::before{background-image:var(--po-clock-svg)}
.po-free::before{background-image:var(--po-check-svg)}
.po-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 14px;min-height:46px;margin-top:auto;border-top:1px dashed var(--line-2);padding-top:14px;line-height:1.35}
.po-price{font-size:.88rem;color:var(--ink-2)}
.po-price b{font:600 1.3rem/1.2 var(--font-h);color:var(--po-price)}
.po-cta{display:inline-flex;align-items:center;gap:6px;margin-left:auto;font-weight:600;font-size:.9rem;letter-spacing:.02em;color:var(--ink-h);text-decoration:underline;text-decoration-color:var(--po-line);text-decoration-thickness:2px;text-underline-offset:5px}
.po-cta::after{width:12px;height:12px;background-image:var(--po-out-svg)}
.po-note{margin-top:22px;font-size:.82rem;line-height:1.5;color:var(--muted)}
.po-note p{margin:0}
.po:not(.po--col) .po-note{text-align:center}
.po .vh,.po-sticky .vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media (hover:hover){
  .po-offer:hover{transform:translateY(-4px);box-shadow:var(--po-shadow-h)}
  .po-offer:hover .po-pic img{transform:scale(1.05)}
  .po-offer:hover .po-cta{text-decoration-color:currentColor}
}
@media (max-width:1099px){.po-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}}
/* phones: one swipe row to the screen edges, the next card peeking in */
@media (max-width:699px){
  .po{padding-block:48px}
  .po--col{padding-block:0;margin-top:48px}
  .po .po-head{margin-bottom:22px}
  .po .po-list{justify-content:start;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:min(82%,320px);gap:14px;margin:0 calc(-1*var(--po-pad));padding:4px var(--po-pad) 22px;overflow-x:auto;overscroll-behavior-x:contain;scroll-padding-inline:var(--po-pad);scroll-snap-type:x mandatory;scrollbar-width:none}
  .po-list::-webkit-scrollbar{display:none}
  .po-list li{scroll-snap-align:start}
  .po-body{padding:16px 18px 16px}
  .po-foot{flex-direction:column;align-items:flex-start;min-height:0}
  .po-cta{margin-left:0}
  .po-note{margin-top:0}
}
@media (max-width:599px){:root{--po-pad:16px}}
@media (prefers-reduced-motion:reduce){
  .po-offer,.po-pic img{transition:none}
  .po-offer:hover,.po-offer:hover .po-pic img{transform:none}
}

/* ============ sticky offers: the feed's first 3 offers, fixed (no layout shift) ============
   From 1024px a corner card (minimised: a pill in the same place); below, a pill above the WhatsApp / quote bar
   (.mbar, 70px, shown below 1100px) that opens a bottom sheet. Layer 39: under the header (40), the quote bar (45),
   the menu (70) and the lead dialog (top layer); the open sheet goes to 65 to cover the page. */
.po-sticky{position:fixed;top:0;left:0;width:0;height:0;z-index:39;visibility:hidden;transition:visibility 0s linear .2s;color:var(--ink);font:400 15px/1.45 var(--font-b)}
.po-sticky.is-on{visibility:visible;transition:none}
.po-sticky.is-open{z-index:65}
html.lock .po-sticky:not(.is-open){visibility:hidden}
html.so-lock body{overflow:hidden}
.so-card,.so-mini,.so-pill{position:fixed;opacity:0;transform:translateY(16px);transition:opacity .2s ease,transform .2s ease}
.po-sticky.is-on .so-card,.po-sticky.is-on .so-mini,.po-sticky.is-on .so-pill{opacity:1;transform:none}
.po-sticky:not([data-layout="card"]) .so-card,.po-sticky:not([data-layout="mini"]) .so-mini,.po-sticky:not([data-layout="pill"]) .so-pill{display:none}
.po-sticky p{margin:0}
.po-sticky img{height:auto}

/* desktop: the corner card (above the quote bar until 1100px, where the bar goes away) */
.so-card{right:24px;bottom:calc(86px + env(safe-area-inset-bottom));display:flex;flex-direction:column;width:372px;max-width:calc(100% - 48px);max-height:calc(100vh - 200px);overflow:hidden;background:var(--po-card);border:1px solid var(--line-2);border-radius:var(--r);box-shadow:var(--po-shadow-float)}
.so-head{display:flex;flex:none;align-items:flex-start;gap:2px;padding:12px 8px 4px 18px}
.so-titles{flex:1 1 auto;min-width:0;padding-top:5px}
.so-eyebrow{font:600 .68rem/1.4 var(--font-b);letter-spacing:.2em;text-transform:uppercase;color:var(--po-eyebrow);margin:0 0 3px}
.so-title{font:var(--h-weight) 1.08rem/1.28 var(--font-h);letter-spacing:-.005em;margin:0;color:var(--ink-h)}
.so-btn{display:grid;flex:none;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--ink-2);cursor:pointer;transition:background-color .15s ease,color .15s ease}
.so-btn:hover{background:var(--po-hover);color:var(--ink-h)}
.so-list{list-style:none;display:grid;flex:0 1 auto;gap:2px;min-height:0;margin:0;padding:4px 8px 8px;overflow-y:auto;overscroll-behavior:contain}
.so-offer{display:grid;grid-template-columns:96px minmax(0,1fr);gap:14px;align-items:start;padding:10px;border-radius:var(--r-sm);color:var(--ink);text-decoration:none;transition:background-color .15s ease}
.so-photo{display:block;width:96px;height:72px;overflow:hidden;border-radius:8px;background:var(--bg-2)}
.so-photo img{width:100%;height:100%;object-fit:cover}
.so-body{display:flex;flex-direction:column;gap:3px;min-width:0}
.so-otitle{font:var(--h-weight) .98rem/1.3 var(--font-h);color:var(--ink-h);overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
.so-meta{display:flex;flex-wrap:wrap;gap:0 12px;font-size:.8rem;line-height:1.35;color:var(--ink-2)}
.so-meta .po-rate,.so-meta .po-time{gap:4px}
.so-meta .po-rate::before,.so-meta .po-time::before{width:12px;height:12px}
.so-foot{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:0 10px;margin-top:1px}
.so-price{font-size:.75rem;color:var(--ink-2)}
.so-price b{font:600 1rem/1.2 var(--font-h);color:var(--po-price)}
.so-cta{margin-left:auto;font-size:.8rem;font-weight:600;color:var(--ink-h);text-decoration:underline;text-decoration-color:var(--po-line);text-decoration-thickness:2px;text-underline-offset:4px}
.so-more{display:flex;flex:none;align-items:center;justify-content:center;gap:6px;min-height:46px;border-top:1px solid var(--line);color:var(--po-link);font-weight:600;font-size:.9rem;text-decoration:none}
.so-more:hover{background:var(--po-hover);text-decoration:underline;text-underline-offset:4px}
.so-more:focus-visible{outline-offset:-4px;border-radius:0 0 var(--r) var(--r)}
@media (hover:hover){
  .so-offer:hover{background:var(--po-hover)}
  .so-offer:hover .so-cta{text-decoration-color:currentColor}
}

/* desktop, minimised: a compact pill in the same corner */
.so-mini{right:24px;bottom:calc(86px + env(safe-area-inset-bottom));display:inline-flex;align-items:center;gap:10px;min-height:48px;padding:0 14px 0 18px;border:1px solid var(--line-2);border-radius:var(--pill);background:var(--po-card);color:var(--ink-h);box-shadow:var(--po-shadow-float);font:600 .95rem/1 var(--font-b);cursor:pointer}
.so-mini-tag{font:600 .66rem/1 var(--font-b);letter-spacing:.18em;text-transform:uppercase;color:var(--po-eyebrow)}
.so-count{display:inline-grid;place-items:center;min-width:24px;height:24px;padding:0 7px;border-radius:var(--pill);background:var(--accent-soft);color:var(--po-link);font:600 .8rem/1 var(--font-b)}
.so-chev{flex:none;color:var(--muted)}
@media (min-width:1100px){.so-card,.so-mini{bottom:24px}}

/* below 1024px: the dark pill, centred, above the quote bar */
.so-pill{left:12px;right:12px;bottom:calc(82px + env(safe-area-inset-bottom));display:flex;align-items:center;width:fit-content;max-width:min(480px,calc(100% - 24px));margin:0 auto;padding:3px;border:1px solid var(--po-pill-line);border-radius:var(--pill);background:var(--po-pill);color:#fff;box-shadow:0 14px 32px -8px rgba(0,0,0,.5)}
.so-pill-open{display:flex;align-items:center;gap:10px;min-width:0;min-height:46px;padding:0 6px 0 3px;border:0;border-radius:var(--pill);background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}
.so-thumbs{display:flex;flex:none}
.so-thumb{display:block;flex:none;width:34px;height:34px!important;border:2px solid var(--po-pill);border-radius:50%;object-fit:cover;background:var(--navy-2)}
.so-thumb+.so-thumb{margin-left:-13px}
.so-ptext{display:flex;flex-direction:column;gap:3px;min-width:0}
.so-plabel{overflow:hidden;font:600 .95rem/1.15 var(--font-b);white-space:nowrap;text-overflow:ellipsis}
.so-psub{display:inline-flex;align-items:center;gap:4px;overflow:hidden;font:500 .75rem/1.2 var(--font-b);color:rgba(255,255,255,.74);white-space:nowrap}
.so-star{flex:none;width:12px;height:12px;background:center/contain no-repeat var(--po-star-svg)}
.so-pill .so-chev{color:rgba(255,255,255,.74)}
.so-sep{flex:none;width:1px;height:24px;background:var(--po-pill-line)}
.so-x{display:grid;flex:none;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:#fff;cursor:pointer}
@media (hover:hover){.so-pill-open:hover,.so-x:hover{background:rgba(255,255,255,.08)}}
@media (max-width:430px){.so-thumb:nth-child(3),.so-pill .so-chev{display:none}.so-pill-open{gap:8px;padding-right:10px}}

/* the bottom sheet over a dimmed page */
@keyframes so-sheet-in{from{transform:translateY(100%)}}
@keyframes so-fade-in{from{opacity:0}}
.so-backdrop{position:fixed;inset:0;background:rgba(4,8,16,.6);animation:so-fade-in .2s ease-out}
.so-sheet{position:fixed;right:0;bottom:0;left:0;display:flex;flex-direction:column;max-width:600px;max-height:85vh;max-height:85dvh;margin:0 auto;padding:8px 12px calc(16px + env(safe-area-inset-bottom));border-radius:20px 20px 0 0;background:var(--po-sheet);color:var(--ink);box-shadow:0 -12px 32px rgba(0,0,0,.3);animation:so-sheet-in .22s ease-out}
.so-backdrop[hidden],.so-sheet[hidden]{display:none}
.so-handle{display:block;flex:none;width:40px;height:4px;margin:0 auto 4px;border-radius:var(--pill);background:var(--line-2)}
.so-sheet .so-head{padding:4px 0 6px 6px}
.so-sheet .so-title{font-size:1.15rem}
.so-sheet .so-list{flex:1 1 auto;gap:8px;padding:4px 0 10px}
.so-sheet .so-offer{grid-template-columns:104px minmax(0,1fr);padding:10px;background:var(--po-card);border:1px solid var(--line)}
.so-sheet .so-photo{width:104px;height:78px}
.so-sheet .so-otitle{font-size:1.02rem}
.so-all{display:flex;flex:none;align-items:center;justify-content:center;width:100%;min-height:48px;border:1px solid var(--line-2);border-radius:var(--pill);color:var(--ink-h);font-weight:600;font-size:.94rem;letter-spacing:.02em;text-decoration:none}
.so-all:hover{border-color:var(--accent)}
@media (prefers-reduced-motion:reduce){
  .so-card,.so-mini,.so-pill{transform:none;transition:opacity .01s}
  .so-sheet,.so-backdrop{animation:none}
  .so-offer,.so-btn{transition:none}
}
