/* ==========================================================================
   Category feature animations.

   Two things only, on the homepage rentals tabs and the rentals page filters:
   1. Hover a category — its animations peek out from behind the button and
      land fully clear of it, centred. Animations only, no text.
   2. Select Deluxe Houses or Ultimate Houses — the animations plus their
      names sit centred above the rentals. No other category shows a strip.

   The category buttons themselves are untouched.
   ========================================================================== */

/* The old text tooltips were the hover; the animations replace them. Hide only
   the ::after text tooltip — the ::before carries the category icon artwork
   (celebration.css), which must keep showing on the rentals filter cards just
   as it does on the homepage tabs. */
.catalog .filter[data-description]::after { content: none !important; display: none !important; }
.featured .tab__sub { display: none !important; }

/* --- a single animation, and an animation with its name ----------------- */
.cf-glyph { --s: 46px; width: var(--s); height: var(--s); display: block; }
.cf-glyph svg {
  width: var(--s); height: var(--s); display: block; overflow: visible;
  filter: drop-shadow(0 4px 6px rgba(43, 45, 66, 0.2));
}
.cf-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cf-item b {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 700; letter-spacing: 0.03em;
  color: var(--ink); line-height: 1.2; text-transform: none;
}

/* --- hover row: centred on the button, always fully clear of it --------- */
.cf-pop {
  position: absolute; left: 0; top: 0; z-index: 1;
  display: flex; align-items: flex-end; justify-content: center; gap: 14px;
  transform: translateX(-50%);
  pointer-events: none; visibility: hidden;
}
.cf-pop.is-on { visibility: visible; }
.cf-pop .cf-glyph { opacity: 0; }
.cf-pop.is-on .cf-glyph { opacity: 1; }
/* The buttons must paint over the row while it rises out from behind them. */
.featured .tabs .tab,
.catalog .filters .filter { position: relative; z-index: 2; }
@media (max-width: 767px) { .cf-pop { display: none !important; } }

/* --- selected row: Deluxe and Ultimate only ---------------------------- */
.cf-strip {
  display: flex; justify-content: center; align-items: flex-end;
  gap: clamp(20px, 3vw, 48px);
  padding: clamp(18px, 2.4vw, 28px) var(--page-gutter) 4px;
}
.cf-strip[hidden] { display: none; }
.cf-strip .cf-glyph { --s: 52px; }

@media (prefers-reduced-motion: no-preference) {
  .cf-pop.is-on .cf-glyph { animation: cfPeek 550ms cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--i) * 90ms) both; }
  .cf-pop.is-above.is-on .cf-glyph { animation-name: cfPeekDown; }
  .cf-strip .cf-item { animation: cfRise 450ms cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i) * 70ms) both; }

  .cf-inflate { transform-box: fill-box; transform-origin: 50% 100%; animation: cfBreathe 2.6s ease-in-out infinite; }
  .cf-house { transform-box: fill-box; transform-origin: 50% 100%; animation: cfSquash 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
  .cf-puff { animation: cfPuff 2.4s ease-out infinite; }
  .cf-ball { transform-box: fill-box; transform-origin: 50% 50%; animation: cfDrop 2.6s cubic-bezier(0.5, 0, 0.7, 1) infinite; }
  .cf-rim { transform-box: fill-box; transform-origin: 50% 50%; animation: cfBoing 2.6s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
  .cf-swish { animation: cfSparkle 2.6s ease-out infinite; }
  .cf-kbounce { transform-origin: 0 6px; animation: cfKbounce 3.8s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
  .cf-kride { offset-rotate: 0deg; animation: cfKride 3.8s cubic-bezier(0.5, 0, 0.75, 0.5) infinite; }
  .cf-kland { transform-origin: 0 4px; animation: cfKland 3.8s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
  .cf-zoom { animation: cfZoom 3.8s linear infinite; }
  .cf-run { transform-origin: 0 3px; animation: cfCourse 3.8s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
  .cf-boing { animation: cfBoingMark 3.8s ease-out infinite; }
  .cf-confetti { transform-box: fill-box; transform-origin: 50% 100%; animation: cfConfetti 3.8s ease-out infinite; }
  .cf-k { transform-box: fill-box; transform-origin: 50% 100%; animation: cfPop 2.2s cubic-bezier(0.34, 1.56, 0.64, 1) infinite; }
  .cf-k2 { animation-delay: 0.3s; } .cf-k3 { animation-delay: 0.6s; } .cf-k4 { animation-delay: 0.9s; } .cf-k5 { animation-delay: 1.2s; }
}

@keyframes cfPeek { 0% { opacity: 0; transform: translateY(-58px) scale(0.55); } 62% { opacity: 1; transform: translateY(5px) scale(1.06); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes cfPeekDown { 0% { opacity: 0; transform: translateY(58px) scale(0.55); } 62% { opacity: 1; transform: translateY(-5px) scale(1.06); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes cfRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes cfBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.02, 1.035); } }
@keyframes cfSquash { 0% { transform: none; } 14% { transform: translateY(-20px); } 36% { transform: translateY(0); } 44% { transform: scale(1.18, 0.76); } 56% { transform: translateY(-9px) scale(0.98, 1.06); } 66% { transform: translateY(0) scale(1.06, 0.94); } 74%, 100% { transform: none; } }
@keyframes cfPuff { 0%, 38% { opacity: 0; transform: scale(0.4); } 44% { opacity: 0.95; transform: scale(1); } 60%, 100% { opacity: 0; transform: scale(1.5); } }
@keyframes cfDrop { 0% { transform: translateY(-30px) scale(0.85); opacity: 0; } 8% { opacity: 1; } 42% { transform: translateY(0) scale(1); } 50% { transform: translateY(2px) scale(1.06, 0.9); } 56%, 78% { transform: none; opacity: 1; } 86% { transform: translateY(4px); opacity: 0; } 100% { transform: translateY(-30px) scale(0.85); opacity: 0; } }
@keyframes cfBoing { 0%, 36% { transform: scale(1); } 44% { transform: scale(1.18, 0.66); } 52% { transform: scale(0.95, 1.12); } 60%, 100% { transform: scale(1); } }
@keyframes cfSparkle { 0%, 46% { opacity: 0; transform: scale(0.3); } 56% { opacity: 1; transform: scale(1.15); } 68%, 100% { opacity: 0; transform: scale(1.4); } }
@keyframes cfKbounce { 0% { transform: none; opacity: 1; } 8% { transform: translateY(0) scale(1.1, 0.88); } 17% { transform: translateY(-10px) scale(0.96, 1.06); } 26% { transform: translateY(0) scale(1.14, 0.84); } 34% { transform: translateY(-12px) scale(0.96, 1.06); } 42% { transform: translateY(0) scale(1.12, 0.86); } 47% { transform: translate(4px, -4px); opacity: 1; } 49% { transform: translate(4px, -4px); opacity: 0; } 96% { transform: none; opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes cfKride { 0%, 48% { offset-distance: 0%; opacity: 0; } 50% { opacity: 1; } 70% { offset-distance: 100%; opacity: 1; } 84% { offset-distance: 100%; opacity: 1; } 88% { offset-distance: 100%; opacity: 0; } 100% { offset-distance: 0%; opacity: 0; } }
@keyframes cfKland { 0%, 70% { transform: none; } 73% { transform: scale(1.18, 0.8); } 77% { transform: translateY(-6px) scale(0.96, 1.06); } 81% { transform: scale(1.1, 0.9); } 84%, 100% { transform: none; } }
@keyframes cfZoom { 0%, 52% { opacity: 0; } 58% { opacity: 0.9; } 70% { opacity: 0.9; } 74%, 100% { opacity: 0; } }
@keyframes cfCourse { 0% { transform: translate(-52px, 0); opacity: 1; } 10% { transform: translate(-46px, 0); } 16% { transform: translate(-42px, -2px) rotate(-10deg); } 22% { transform: translate(-36px, 0) rotate(6deg); } 28% { transform: translate(-32px, 0) scale(1.1, 0.9); } 36% { transform: translate(-25px, -16px) rotate(8deg); } 44% { transform: translate(-18px, 0) scale(1.2, 0.8); } 48% { transform: translate(-16px, 0); } 54% { transform: translate(-11px, -2px) rotate(-10deg); } 60% { transform: translate(-5px, 0) rotate(6deg); } 66% { transform: translate(-2px, 0) scale(1.1, 0.9); } 72% { transform: translate(0, -10px); } 78% { transform: translate(0, 0) scale(1.16, 0.84); } 82% { transform: none; } 90% { transform: none; opacity: 1; } 93% { transform: translate(3px, 0); opacity: 0; } 97% { transform: translate(-52px, 0); opacity: 0; } 100% { transform: translate(-52px, 0); opacity: 1; } }
@keyframes cfBoingMark { 0%, 32% { opacity: 0; } 38% { opacity: 0.8; } 46%, 100% { opacity: 0; } }
@keyframes cfConfetti { 0%, 70% { opacity: 0; transform: translateY(6px) scale(0.4); } 76% { opacity: 1; transform: translateY(-4px) scale(1.1); } 90% { opacity: 0; transform: translateY(-12px) scale(1); } 100% { opacity: 0; } }
@keyframes cfPop { 0% { opacity: 0; transform: translateY(14px) scale(0.2); } 18% { opacity: 1; transform: translateY(-5px) scale(1.18); } 28%, 58% { opacity: 1; transform: none; } 72% { opacity: 0; transform: translateY(-12px) scale(0.9); } 100% { opacity: 0; transform: translateY(14px) scale(0.2); } }

/* Rentals page (client, 2026-10-05): the picked Deluxe or Ultimate category says what is inside, in one line, with
   the category name in the gold script. The line opens smoothly and the products move down only by its height. */
.catalog .cf-strip.cf-strip--line{ display:grid; grid-template-rows:0fr; padding:0!important; margin:0!important; gap:0; transition:grid-template-rows 480ms cubic-bezier(.22,1,.36,1); }
.catalog .cf-strip.cf-strip--line.is-open{ grid-template-rows:1fr; }
.cf-strip--line .cf-line-wrap{ min-height:0; overflow:hidden; }
.cf-strip--line .cf-line{ margin:0 auto; padding:14px 0 26px; max-width:min(92vw, 1000px); text-align:center; font:400 clamp(20px, 2.1vw, 28px)/1.3 "DM Serif Display", Georgia, serif; color:#08152B; letter-spacing:0;
  opacity:0; transform:translateY(8px); transition:opacity 360ms cubic-bezier(.22,1,.36,1) 120ms, transform 480ms cubic-bezier(.22,1,.36,1) 120ms; }
.cf-strip--line.is-open .cf-line{ opacity:1; transform:none; }
.cf-strip--line .cf-key{ font-family:'Allura', cursive; font-size:1.55em; line-height:.8; color:#BF9553; font-weight:400; margin-right:.08em; }
@media (prefers-reduced-motion:reduce){ .catalog .cf-strip.cf-strip--line, .cf-strip--line .cf-line{ transition:none; } }
