/*!
 * Riptide: Events and the event pages (the "events" section group). Tokens only.
 */

/* ---------- kinds of party: capsule tabs and alternating rows ---------- */
.rttypes{padding-bottom:5.5rem}
.rttypes .shead{margin-bottom:2rem}
.rttypes__tabs{position:sticky;top:var(--pe-top,0px);z-index:30;padding:.8rem 0;margin-bottom:3rem;background:var(--header-bg);
  -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
.alt .rttypes__tabs{background:color-mix(in srgb,var(--rt-band) 92%,transparent)}
.rttypes__tabs .wrap{display:flex;justify-content:center}
.rttypes__tabs ul{display:flex;gap:4px;min-width:0;max-width:100%;list-style:none;padding:6px;overflow-x:auto;scrollbar-width:none;
  background:var(--mist);border:1px solid var(--line);border-radius:var(--r-pill)}
.alt .rttypes__tabs ul{background:var(--paper)}
.rttypes__tabs ul::-webkit-scrollbar{display:none}
.rttypes__tabs a{display:inline-flex;align-items:center;gap:.5rem;min-height:44px;padding:.5rem 1.1rem;white-space:nowrap;border-radius:var(--r-pill);
  font-weight:600;font-size:.94rem;color:var(--ink);transition:background .2s ease,color .2s ease,box-shadow .2s ease}
.rttypes__tabs a .ic{width:17px;height:17px;color:var(--blue-dk)}
.rttypes__tabs a:hover{background:var(--paper);box-shadow:0 2px 10px color-mix(in srgb,var(--deep) 10%,transparent)}
.rttypes__tabs a.is-active{background:var(--deep);color:var(--on-deep)}
.rttypes__tabs a.is-active .ic{color:var(--sun)}
[data-theme="dark"] .rttypes__tabs ul{background:color-mix(in srgb,var(--on-deep) 6%,transparent);border-color:var(--rt-card-line)}
[data-theme="dark"] .rttypes__tabs a:hover{background:color-mix(in srgb,var(--on-deep) 10%,transparent)}
[data-theme="dark"] .rttypes__tabs a.is-active{background:var(--sun);color:var(--on-sun)}
[data-theme="dark"] .rttypes__tabs a.is-active .ic{color:var(--on-sun)}
.rttypes__rows{display:grid;gap:clamp(3rem,6vw,5rem)}
.rttype{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:clamp(2rem,5vw,4.5rem);align-items:center;scroll-margin-top:var(--pe-margin,6rem)}
.rttype--solo{grid-template-columns:minmax(0,760px)}
.rttype.is-flip .rttype__ph{order:2}
.rttype__ph{position:relative;aspect-ratio:4/3;border-radius:var(--r-lg);background:var(--blue-lt)}
.rttype__ph img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:var(--r-lg);box-shadow:var(--sh-2)}
/* A pale wave of water behind each photo, offset like the home page's about photos. */
.rttype__ph::before{content:"";position:absolute;inset:auto -1.2rem -1.2rem 1.6rem;height:62%;z-index:-1;border-radius:var(--r-lg);
  background:linear-gradient(140deg,var(--blue-lt),color-mix(in srgb,var(--blue) 22%,var(--rt-band)))}
.rttype.is-flip .rttype__ph::before{inset:auto 1.6rem -1.2rem -1.2rem}
.rttype__ph{isolation:isolate}
.rttype__buoy{position:absolute;z-index:2;top:-1.1rem;right:1.4rem;width:68px;height:68px;border-radius:50%;display:grid;place-items:center;
  background:var(--paper);color:var(--blue-dk);box-shadow:0 0 0 5px color-mix(in srgb,var(--orange) 85%,transparent),var(--sh-2);animation:rtbob 6s ease-in-out infinite}
.rttype.is-flip .rttype__buoy{right:auto;left:1.4rem;animation-delay:-3s}
.rttype__buoy .ic{width:28px;height:28px}
[data-theme="dark"] .rttype__buoy{background:var(--rt-card)}
.rttype h3{font-size:clamp(1.8rem,3.2vw,2.5rem);margin-bottom:.8rem;scroll-margin-top:var(--pe-margin,6rem)}
.rttype h3 em{font-style:italic;color:var(--blue-dk)}
.rttype h3:focus{outline:0}
.rttype__d{color:var(--muted);font-size:1.04rem}
.rttype__lbl{margin-top:1.6rem;font-family:var(--disp);font-weight:700;font-size:.78rem;letter-spacing:.14em;text-transform:uppercase;color:var(--blue-dk)}
.rttype .rtticks{margin-top:.8rem}
.rtticks--2{grid-template-columns:1fr 1fr;column-gap:1.2rem}
.rttype .btn{margin-top:1.8rem}

/* ---------- packages ---------- */
.rtpacks__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5rem;align-items:stretch}
.rtpacks__grid--1{grid-template-columns:minmax(0,420px);justify-content:center}
.rtpacks__grid--2{grid-template-columns:repeat(2,minmax(0,420px));justify-content:center}
.rtpacks__grid--4{grid-template-columns:repeat(4,minmax(0,1fr))}
.rtpack{position:relative;display:flex;flex-direction:column;gap:.6rem;padding:2.2rem 1.9rem 2rem;background:var(--rt-card);border:1px solid var(--rt-card-line);
  border-radius:var(--r-lg);transition:transform .18s ease,box-shadow .18s ease}
.rtpack:hover{transform:translateY(-4px);box-shadow:var(--sh-2)}
.rtpack__ic{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;margin-bottom:.4rem;background:var(--blue-lt);color:var(--blue-dk)}
.rtpack__ic .ic{width:26px;height:26px}
.rtpack h3{font-size:1.4rem}
.rtpack__blurb{color:var(--muted);font-size:.96rem}
.rtpack__price{display:flex;align-items:baseline;flex-wrap:wrap;gap:.35rem;margin:.5rem 0 .3rem;padding:.9rem 0;border-top:1px dashed var(--line);border-bottom:1px dashed var(--line)}
.rtpack__price span{font-size:.85rem;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.rtpack__price b{font-family:var(--disp);font-weight:800;font-size:2.5rem;line-height:1;letter-spacing:-.02em;color:var(--ink)}
.rtpack__price small{font-size:.9rem;color:var(--muted)}
.rtpack .rtticks{flex:1;margin:.5rem 0 1.4rem}
.rtpack .btn{width:100%}
.rtpack.is-featured{color:var(--on-deep);border-color:transparent;transform:translateY(-10px);box-shadow:var(--sh-2);
  background:linear-gradient(160deg,var(--blue) 0%,var(--blue-dk) 45%,var(--deep) 100%)}
.rtpack.is-featured:hover{transform:translateY(-14px)}
[data-theme="dark"] .rtpack.is-featured{background:linear-gradient(160deg,var(--blue-lt) 0%,var(--deep) 100%);border-color:var(--rt-card-line)}
.rtpack.is-featured :is(h3,.rtpack__price b,.rtticks li){color:var(--on-deep)}
.rtpack.is-featured :is(.rtpack__blurb,.rtpack__price span,.rtpack__price small){color:var(--on-deep-dim)}
.rtpack.is-featured .rtpack__price{border-color:var(--rule-on-deep)}
.rtpack.is-featured .rtpack__ic{background:color-mix(in srgb,var(--on-deep) 14%,transparent);color:var(--sun)}
.rtpack.is-featured .rtticks .ic{background:var(--sun);color:var(--on-sun)}
.rtpack__badge{position:absolute;top:-.85rem;left:50%;transform:translateX(-50%);white-space:nowrap;padding:.35rem 1rem;border-radius:var(--r-pill);
  background:var(--sun);color:var(--on-sun);font-family:var(--disp);font-weight:700;font-size:.8rem;letter-spacing:.04em;box-shadow:var(--sh-1)}
.rtpacks__note{max-width:70ch;margin:2.4rem auto 0;text-align:center;font-size:.92rem;color:var(--muted)}

/* ---------- gallery: core's grid and lightbox, Riptide's frames ---------- */
.rtgal .pe-gal__link{border-radius:var(--r-lg);background:var(--blue-lt)}
.rtgal .pe-gal__link img{transition:transform .6s cubic-bezier(.2,.8,.2,1)}
.rtgal .pe-gal__link:hover img{transform:scale(1.06)}
.rtgal .pe-gal__link::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 55%,color-mix(in srgb,var(--deep) 55%,transparent));opacity:0;transition:opacity .3s ease}
.rtgal .pe-gal__link:hover::after{opacity:1}
.rtgal .pe-gal__zoom{z-index:2;background:var(--sun);color:var(--on-sun);transition:transform .3s ease,opacity .3s ease}
.rtgal .pe-gal__link:focus-visible{outline:3px solid var(--blue);outline-offset:3px}

/* ---------- picks on an event page: the home page's rental cards ---------- */
.rtpicks__cats{justify-content:flex-start;margin:-1.4rem 0 2.2rem}
.rtpicks__cats small{padding:.05rem .45rem;border-radius:var(--r-pill);font-size:.75rem;font-weight:700;background:var(--blue-lt);color:var(--blue-dk)}

@media(max-width:1080px){.rtpacks__grid--4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:960px){
  .rttype{grid-template-columns:1fr;gap:2.4rem}
  .rttype.is-flip .rttype__ph{order:0}
  .rttype__ph{max-width:620px}
  .rtpacks__grid{grid-template-columns:1fr;max-width:520px;margin:0 auto}
  .rtpacks__grid--2{grid-template-columns:1fr}
  .rtpack.is-featured{transform:none;margin-top:.6rem}
  .rtpack.is-featured:hover{transform:translateY(-4px)}
  .rttypes__tabs .wrap{justify-content:flex-start}
}
@media(max-width:620px){
  .rtticks--2{grid-template-columns:1fr}
  .rttype__buoy{width:56px;height:56px;top:-.9rem}
  .rttype__ph::before{inset:auto -.6rem -.8rem .8rem}
  .rttype.is-flip .rttype__ph::before{inset:auto .8rem -.8rem -.6rem}
  .rttypes__tabs a{padding:.45rem .9rem;font-size:.9rem}
}
@media(prefers-reduced-motion:reduce){
  .rttype__buoy{animation:none}
  .rtpack:hover,.rtpack.is-featured:hover,.rtgal .pe-gal__link:hover img{transform:none}
  .rtpack.is-featured{transform:translateY(-10px)}
}
/* QA round: the featured package's icon is white on its blue (gold was 1.5:1),
   and its gold badge gets a white ring so it stands off the card. */
:root:not([data-theme="dark"]) .rtpack.is-featured .rtpack__ic{color:var(--on-deep)}
:root:not([data-theme="dark"]) .rtpack.is-featured .rtticks .ic{background:var(--on-deep);color:var(--blue-dk)}
.rtpack.is-featured .rtpack__badge{box-shadow:0 0 0 3px var(--paper),var(--sh-1)}
/* Tablets: two packages across (one narrow column left wide empty sides); an
   odd last card fills the row, as the events cards do. */
@media(min-width:621px) and (max-width:960px){
  .rtpacks__grid:not(.rtpacks__grid--1){grid-template-columns:repeat(2,minmax(0,1fr));max-width:none}
  .rtpacks__grid:not(.rtpacks__grid--1)>.rtpack:last-child:nth-child(odd){grid-column:1/-1}
}
