/* ============================================================
   immersive.css — Cabo Adventures Immersive Homepage Layout
   ============================================================ */

/* ── Stacking context fix ─────────────────────────────────────
   Tailwind adds overflow-x:hidden to <body> via class. When body (not html)
   has a non-visible overflow, it becomes a stacking context root in some
   browsers — this causes position:fixed elements at z-index:0 to paint at
   the body's canvas base level (which the browser fills with its default
   background color). Fix: set overflow-x:hidden on html instead, which takes
   ownership of the viewport overflow and prevents body from becoming the
   stacking context root. body { overflow-x:visible } cancels the Tailwind class. */
html  { overflow-x: hidden; background: transparent; }
body  { overflow-x: visible; background: transparent; }

/* ── Sky Background Layer ──────────────────────────────────── */
#sky-bg {
  position: fixed;
  inset: 0;
  z-index: 1;  /* same layer as sun/stars/moon — sky-bg is FIRST in DOM so
                  sun/stars/moon (which come after) still paint on top of it.
                  z-index:1 avoids the body-stacking-context z-index:0 trap. */
  will-change: background;
  /* NO CSS transition — sky.js lerp provides all smoothing at 60fps. */
  /* Fallback: Stage 0 (Sunrise) palette — shown before sky.js initializes. */
  background: linear-gradient(to bottom,
    #140830  0%,   /* deep violet zenith */
    #3a1060 18%,   /* rich indigo-violet */
    #82205e 33%,   /* magenta-plum */
    #c04055 48%,   /* rose-crimson */
    #e07040 68%,   /* warm ember-orange */
    #f4a060 84%,   /* peach-gold */
    #ffd090 100%   /* warm cream horizon */
  );
}

#sky-sun {
  position: fixed;
  z-index: 1;  /* above sky-bg (0), below sea (2) */
  border-radius: 50%;
  width: 48px;
  height: 48px;
  pointer-events: none;
  will-change: transform, left, top;
  background: #fff5e0;
  box-shadow: 0 0 72px 58px rgba(248,135,0,0.55), 0 0 144px 96px rgba(255,100,0,0.25);
  opacity: 0;
}

#sky-stars {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

#sky-moon {
  position: fixed;
  z-index: 1;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  pointer-events: none;
  background: radial-gradient(circle at 38% 38%, #f8f6ff 0%, #e8e4f8 45%, #c8c0e8 100%);
  /* outer glow + inner crescent shadow */
  box-shadow:
    0 0 22px 14px rgba(180, 200, 255, 0.30),
    0 0 55px 28px rgba(140, 170, 255, 0.14),
    inset -9px -3px 0 0 rgba(8, 12, 40, 0.52);
  opacity: 0;
  transform: translate(-50%, -50%);
}

/* ── Lens flare canvas ───────────────────────────────────────── */
#lens-flare-canvas {
  position: fixed;
  inset: 0;
  z-index: 7;          /* above sky(0-1), sea(2), arch(3), wave(4), layout(5) — flare is a camera artifact */
  pointer-events: none;
  mix-blend-mode: screen;  /* additive blending: flare brightens what’s beneath, never darkens */
}

/* ── Sea Canvas (full-width, bottom half of viewport) ───────────── */
#sea-bg {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50vh;
  z-index: 2;  /* above sky+sun (0-1), below arch (3) and layout (5) */
  pointer-events: none;
  will-change: auto;
}

.sky-star {
  position: absolute;
  border-radius: 50%;
  background: #ffffff;
  animation: star-twinkle 3s ease-in-out infinite;
}

@keyframes star-twinkle {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ── 3-Column Layout ────────────────────────────────────────── */
.immersive-layout {
  display: grid;
  grid-template-columns: 35fr 30fr 35fr;
  grid-template-rows: auto;
  min-height: 100vh;
  width: 100%;
  position: relative;
  z-index: 5;  /* cards/carousel always in front of sea+arch stack (sea=2,arch=3,wave=4) */
}

/* Left column — content sections */
.col-left {
  grid-column: 1;
  padding-top: 80px; /* navbar height */
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Center column — fixed so it never scrolls away. left/width mirror the 35fr·30fr·35fr
   grid fractions so the card occupies the same space the grid column would. */
.col-center {
  grid-column: 2;
  position: fixed;
  top: 0;
  left: 35%;           /* 35fr out of 100fr total */
  width: 30%;          /* 30fr out of 100fr total */
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding-top: 80px; /* clear the fixed navbar */
}

/* Center floating card — fills the remaining height of the sticky column */
.center-float-card {
  flex: 1;              /* fills 100vh − 80px(padding-top) − 16px(margin-bottom) ≈ calc(100vh − 96px) */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: 0 16px 16px 16px !important;
}

/* Right column — arch + sky */
.col-right {
  grid-column: 3;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 0;
  pointer-events: none;
}

/* ── Column visibility states (Site Settings → column eye toggles) ──
   Driven by data-cols on .immersive-layout = the VISIBLE columns:
   "LCR" = default (no overrides) · "LC"/"LR"/"CR" = two (half each)
   · "L"/"C"/"R" = one (full width). Hidden columns are removed; the
   remaining ones redistribute. col-center is position:fixed, so its
   left/width are overridden explicitly per state. */

/* Hidden columns (every breakpoint) */
.immersive-layout[data-cols="L"]  .col-center,
.immersive-layout[data-cols="L"]  .col-right,
.immersive-layout[data-cols="LR"] .col-center,
.immersive-layout[data-cols="LC"] .col-right,
.immersive-layout[data-cols="C"]  .col-left,
.immersive-layout[data-cols="C"]  .col-right,
.immersive-layout[data-cols="CR"] .col-left,
.immersive-layout[data-cols="R"]  .col-left,
.immersive-layout[data-cols="R"]  .col-center { display: none !important; }

/* Desktop redistribution of the remaining columns */
@media (min-width: 769px) {
  /* Two columns — half each */
  .immersive-layout[data-cols="LC"] { grid-template-columns: 50fr 50fr 0fr; }
  .immersive-layout[data-cols="LC"] .col-center { left: 50% !important; width: 50% !important; }

  .immersive-layout[data-cols="LR"] { grid-template-columns: 50fr 0fr 50fr; }

  .immersive-layout[data-cols="CR"] { grid-template-columns: 0fr 50fr 50fr; }
  .immersive-layout[data-cols="CR"] .col-center { left: 0 !important; width: 50% !important; }

  /* One column — full width */
  .immersive-layout[data-cols="L"] { grid-template-columns: 1fr 0fr 0fr; }
  .immersive-layout[data-cols="C"] .col-center { left: 0 !important; width: 100% !important; }
  .immersive-layout[data-cols="R"] { grid-template-columns: 0fr 0fr 1fr; }
}

/* Mobile: a single visible column fills the slide (no adjacent peek) */
@media (max-width: 768px) {
  .immersive-layout[data-cols="L"] .col-left,
  .immersive-layout[data-cols="C"] .col-center,
  .immersive-layout[data-cols="R"] .col-right { flex-basis: 100vw !important; }
}

/* ── Floating Section Cards (Left Column) ──────────────────── */
/* ── Shared item-card designs ─────────────────────────────────────────────────
   The SAME card markup/style is used on the public pages (tours/blog/reviews) AND
   in the builder's data components, so they always match. */
.h-product-card { flex-shrink:0; width:220px; background:rgba(var(--ds-ink-rgb,255,255,255),0.06);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); border-radius:18px;
  border:1px solid rgba(var(--ds-ink-rgb,255,255,255),0.12); overflow:hidden; cursor:pointer;
  transition:transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s; box-shadow:0 4px 20px rgba(0,0,0,0.30); }
.h-product-card:hover { transform:translateY(-4px) scale(1.02); box-shadow:0 12px 40px rgba(0,0,0,0.50); border-color:rgba(234,88,12,0.45); }
.h-product-card-img-wrap { position:relative; aspect-ratio:3/4; overflow:hidden; }   /* 1080×1440 product-card ratio */
.h-product-card-img-wrap img { width:100%; height:100%; object-fit:contain; transition:transform 0.4s ease; }
.h-product-card:hover .h-product-card-img-wrap img { transform:scale(1.07); }
.h-product-card-img-wrap::after { content:''; position:absolute; inset:0; background:linear-gradient(to bottom, transparent 40%, rgba(15,23,42,0.80) 100%); }
.h-product-card-featured { position:absolute; top:8px; left:8px; background:#EA580C; color:#fff; font-family:'Poppins',sans-serif; font-weight:700; font-size:0.6rem; padding:2px 7px; border-radius:99px; z-index:2; }
.h-product-card-duration { position:absolute; bottom:8px; right:8px; background:rgba(0,0,0,0.60); color:rgba(255,255,255,0.85); font-size:0.6rem; padding:2px 6px; border-radius:7px; z-index:2; }
.h-product-card-rating { position:absolute; bottom:8px; left:8px; background:rgba(217,119,6,0.85); color:#fff; font-size:0.6rem; font-weight:700; padding:2px 6px; border-radius:7px; z-index:2; }
.h-product-card-body { padding:10px 12px 12px; }
.h-product-card-name-row { display:flex; align-items:center; justify-content:space-between; gap:4px; margin-bottom:4px; }
.h-product-card-name { font-family:'Poppins',sans-serif; font-weight:700; font-size:0.82rem; color:rgba(var(--ds-ink-rgb,255,255,255),0.95); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; flex:1; }
.h-product-card-po-badge { flex-shrink:0; font-size:0.50rem; font-weight:700; background:rgba(var(--ds-ink-rgb,255,255,255),0.07); border:1px solid rgba(var(--ds-ink-rgb,255,255,255),0.14); border-radius:99px; padding:2px 5px; color:rgba(var(--ds-ink-rgb,255,255,255),0.52); white-space:nowrap; }
.h-product-card-desc { font-size:0.68rem; color:rgba(var(--ds-ink-rgb,255,255,255),0.55); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-bottom:7px; }
.h-product-card-footer { display:flex; align-items:center; justify-content:space-between; }
.h-product-card-price { font-family:'Poppins',sans-serif; font-weight:800; font-size:0.88rem; color:#fb923c; }
.h-product-card-book { font-family:'Poppins',sans-serif; font-weight:600; font-size:0.68rem; background:rgba(234,88,12,0.18); border:1px solid rgba(234,88,12,0.45); color:#fb923c; padding:3px 10px; border-radius:99px; transition:background 0.2s, color 0.2s; }

/* ── Card SIZE presets — S is the base (220px). Same data, scaled up visually. ── */
.h-product-card.ds-sz-m { width:330px; }               /* ~1.5× width; img-wrap keeps 3:4 */
.h-product-card.ds-sz-m .h-product-card-body { padding:15px 17px 17px; }
.h-product-card.ds-sz-m .h-product-card-name { font-size:1.06rem; }
.h-product-card.ds-sz-m .h-product-card-desc { font-size:0.84rem; white-space:normal; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.h-product-card.ds-sz-m .h-product-card-price { font-size:1.2rem; }
.h-product-card.ds-sz-m .h-product-card-book { font-size:0.84rem; padding:5px 14px; }

.h-product-card.ds-sz-l { width:495px; }               /* ~1.5× width of M; img-wrap keeps 3:4 */
.h-product-card.ds-sz-l .h-product-card-body { padding:20px 24px 24px; }
.h-product-card.ds-sz-l .h-product-card-name { font-size:1.5rem; }
.h-product-card.ds-sz-l .h-product-card-desc { font-size:1rem; white-space:normal; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; }
.h-product-card.ds-sz-l .h-product-card-price { font-size:1.7rem; }
.h-product-card.ds-sz-l .h-product-card-book { font-size:1rem; padding:7px 18px; }

/* XS = compact chip: round avatar image + name + price only. */
.h-product-card.ds-sz-xs { width:240px; display:flex; align-items:center; gap:10px; padding:7px 12px 7px 7px; }
.h-product-card.ds-sz-xs .h-product-card-img-wrap { width:42px; height:42px; aspect-ratio:auto; flex-shrink:0; border-radius:50%; }
.h-product-card.ds-sz-xs .h-product-card-img-wrap img { object-fit:cover; }   /* round avatar fills */
.h-product-card.ds-sz-xs .h-product-card-img-wrap::after,
.h-product-card.ds-sz-xs .h-product-card-featured,
.h-product-card.ds-sz-xs .h-product-card-duration,
.h-product-card.ds-sz-xs .h-product-card-rating,
.h-product-card.ds-sz-xs .h-product-card-desc,
.h-product-card.ds-sz-xs .h-product-card-po-badge,
.h-product-card.ds-sz-xs .h-product-card-book { display:none; }
.h-product-card.ds-sz-xs .h-product-card-body { padding:0; flex:1; min-width:0; display:flex; flex-direction:column; gap:1px; }
.h-product-card.ds-sz-xs .h-product-card-name-row { margin:0; }
.h-product-card.ds-sz-xs .h-product-card-name { font-size:0.82rem; }
.h-product-card.ds-sz-xs .h-product-card-footer { justify-content:flex-start; }
.h-product-card.ds-sz-xs .h-product-card-price { font-size:0.82rem; }
.h-product-card:hover .h-product-card-book { background:#EA580C; color:#fff; border-color:#EA580C; }

.h-blog-card { flex-shrink:0; width:240px; background:rgba(var(--ds-ink-rgb,255,255,255),0.07); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); border-radius:18px; border:1px solid rgba(var(--ds-ink-rgb,255,255,255),0.12); overflow:hidden; cursor:pointer; transition:transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s; box-shadow:0 4px 20px rgba(0,0,0,0.30); }
.h-blog-card:hover { transform:translateY(-4px) scale(1.02); box-shadow:0 12px 40px rgba(0,0,0,0.50); border-color:rgba(8,145,178,0.45); }
.h-blog-card-img-wrap { position:relative; height:140px; overflow:hidden; }
.h-blog-card-img-wrap img { width:100%; height:100%; object-fit:cover; transition:transform 0.4s ease; }
.h-blog-card:hover .h-blog-card-img-wrap img { transform:scale(1.07); }
.h-blog-card-img-wrap::after { content:''; position:absolute; inset:0; background:linear-gradient(to bottom, transparent 40%, rgba(15,23,42,0.80) 100%); }
.h-blog-card-section-tag { position:absolute; top:8px; left:8px; background:rgba(8,145,178,0.85); color:#fff; font-family:'Poppins',sans-serif; font-weight:700; font-size:0.6rem; padding:2px 7px; border-radius:99px; z-index:2; }
.h-blog-card-body { padding:10px 12px 12px; }
.h-blog-card-name { font-family:'Poppins',sans-serif; font-weight:700; font-size:0.85rem; color:rgba(var(--ds-ink-rgb,255,255,255),0.95); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; margin-bottom:6px; line-height:1.35; }
.h-blog-card-preview { font-size:0.68rem; color:rgba(var(--ds-ink-rgb,255,255,255),0.45); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-bottom:8px; }
.h-blog-card-read { font-family:'Poppins',sans-serif; font-weight:600; font-size:0.68rem; background:rgba(8,145,178,0.18); border:1px solid rgba(8,145,178,0.45); color:#38bdf8; padding:3px 10px; border-radius:99px; transition:background 0.2s, color 0.2s; display:inline-block; }
.h-blog-card:hover .h-blog-card-read { background:#0891B2; color:#fff; border-color:#0891B2; }

.rv-card { flex-shrink:0; width:230px; border-radius:16px; overflow:hidden; background:rgba(var(--ds-ink-rgb,255,255,255),0.06); border:1px solid rgba(var(--ds-ink-rgb,255,255,255),0.10); cursor:pointer; transition:transform 0.2s, box-shadow 0.2s; display:flex; flex-direction:column; }
.rv-card:hover { transform:translateY(-3px); box-shadow:0 8px 32px rgba(0,0,0,0.35); }
.rv-card-thumb { width:100%; height:130px; object-fit:cover; background:rgba(var(--ds-ink-rgb,255,255,255),0.05); flex-shrink:0; }
.rv-card-thumb-placeholder { width:100%; height:130px; background:linear-gradient(135deg,rgba(3,105,161,0.25),rgba(15,23,42,0.6)); display:flex; align-items:center; justify-content:center; font-size:2.5rem; }
.rv-card-body { padding:12px 13px; flex:1; display:flex; flex-direction:column; gap:5px; }
.rv-stars { color:#fbbf24; font-size:0.80rem; letter-spacing:1px; }
.rv-card-author { font-weight:700; font-size:0.78rem; color:rgba(var(--ds-ink-rgb,255,255,255),0.88); }
.rv-card-location { font-size:0.68rem; color:rgba(var(--ds-ink-rgb,255,255,255),0.40); }
.rv-card-product { font-size:0.68rem; color:rgba(251,146,60,0.80); font-weight:600; }
.rv-card-comment { font-size:0.70rem; color:rgba(var(--ds-ink-rgb,255,255,255),0.55); line-height:1.5; overflow:hidden; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; }

/* ── Blog card SIZE presets ─────────────────────────────────────────────── */
.h-blog-card.ds-sz-m { width:360px; }
.h-blog-card.ds-sz-m .h-blog-card-img-wrap { height:340px; }
.h-blog-card.ds-sz-m .h-blog-card-body { padding:15px 17px 17px; }
.h-blog-card.ds-sz-m .h-blog-card-name { font-size:1.1rem; }
.h-blog-card.ds-sz-m .h-blog-card-preview { font-size:0.84rem; white-space:normal; }
.h-blog-card.ds-sz-m .h-blog-card-read { font-size:0.84rem; padding:5px 14px; }
.h-blog-card.ds-sz-l { width:540px; }
.h-blog-card.ds-sz-l .h-blog-card-img-wrap { height:640px; }
.h-blog-card.ds-sz-l .h-blog-card-body { padding:20px 24px 24px; }
.h-blog-card.ds-sz-l .h-blog-card-name { font-size:1.5rem; }
.h-blog-card.ds-sz-l .h-blog-card-preview { font-size:1rem; white-space:normal; }
.h-blog-card.ds-sz-l .h-blog-card-read { font-size:1rem; padding:7px 18px; }
.h-blog-card.ds-sz-xs { width:240px; display:flex; align-items:center; gap:10px; padding:7px 12px 7px 7px; }
.h-blog-card.ds-sz-xs .h-blog-card-img-wrap { width:42px; height:42px; flex-shrink:0; border-radius:50%; }
.h-blog-card.ds-sz-xs .h-blog-card-img-wrap::after,
.h-blog-card.ds-sz-xs .h-blog-card-section-tag,
.h-blog-card.ds-sz-xs .h-blog-card-preview,
.h-blog-card.ds-sz-xs .h-blog-card-read { display:none; }
.h-blog-card.ds-sz-xs .h-blog-card-body { padding:0; flex:1; min-width:0; }
.h-blog-card.ds-sz-xs .h-blog-card-name { font-size:0.82rem; margin:0; -webkit-line-clamp:1; }

/* ── Review card SIZE presets ───────────────────────────────────────────── */
.rv-card.ds-sz-m { width:360px; }
.rv-card.ds-sz-m .rv-card-thumb, .rv-card.ds-sz-m .rv-card-thumb-placeholder { height:325px; }
.rv-card.ds-sz-m .rv-card-body { padding:16px 18px; }
.rv-card.ds-sz-m .rv-card-author { font-size:1rem; }
.rv-card.ds-sz-m .rv-card-comment { font-size:0.9rem; }
.rv-card.ds-sz-l { width:540px; }
.rv-card.ds-sz-l .rv-card-thumb, .rv-card.ds-sz-l .rv-card-thumb-placeholder { height:620px; }
.rv-card.ds-sz-l .rv-card-body { padding:20px 24px; }
.rv-card.ds-sz-l .rv-card-author { font-size:1.4rem; }
.rv-card.ds-sz-l .rv-card-comment { font-size:1.1rem; -webkit-line-clamp:5; }
.rv-card.ds-sz-xs { width:240px; flex-direction:row; align-items:center; gap:10px; padding:7px 12px 7px 7px; }
.rv-card.ds-sz-xs .rv-card-thumb, .rv-card.ds-sz-xs .rv-card-thumb-placeholder { width:42px; height:42px; flex-shrink:0; border-radius:50%; }
.rv-card.ds-sz-xs .rv-card-location, .rv-card.ds-sz-xs .rv-card-product, .rv-card.ds-sz-xs .rv-card-comment { display:none; }
.rv-card.ds-sz-xs .rv-card-body { padding:0; gap:1px; }
.rv-card.ds-sz-xs .rv-card-author { font-size:0.82rem; }
.rv-verified-badge { display:inline-flex; align-items:center; gap:3px; background:rgba(21,128,61,0.18); border:1px solid rgba(21,128,61,0.35); border-radius:20px; padding:2px 8px; font-size:0.60rem; font-weight:700; color:#4ade80; width:fit-content; }

/* Minimalist ITEM card (product / tour / blog cards) — no border, shadow or surface;
   just the image, name, price and action. Toggled by the 'min' item-card preset. */
.h-product-card.item-card-min,
.carousel-card.item-card-min,
.dc-card.item-card-min,
.h-blog-card.item-card-min {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.carousel-card.item-card-min .carousel-card-img-wrap,
.h-product-card.item-card-min .h-product-card-img-wrap,
.h-blog-card.item-card-min .h-blog-card-img-wrap { border-radius: 14px; }

/* Minimal product/blog cards: drop the image-bottom gradient "shadow" so a
   transparent product-card PNG (with its own baked soft shadow) sits clean. */
.item-card-min .h-product-card-img-wrap::after,
.item-card-min .carousel-card-img-wrap::after,
.item-card-min .dc-card-img-wrap::after,
.item-card-min .h-blog-card-img-wrap::after { display: none !important; }

/* Minimal product cards: full product name on 2 lines, no description, no charge badge. */
.item-card-min .h-product-card-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; }
.item-card-min .h-product-card-desc,
.item-card-min .h-product-card-po-badge { display: none !important; }

/* Content cards GROW to contain their components (never clip); the page scrolls
   naturally to the footer. (Superseded the old bounded scroll-pane approach.) */
.nested-scroll-pane { overflow: visible; max-height: none; }

/* Prev/next arrows shown on STATIC-motion carousels (window.dsCarouselArrows). */
.ds-carousel-arrow {
  position: absolute; transform: translateY(-50%); z-index: 6;
  width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(var(--ds-ink-rgb,255,255,255),0.14); color: rgba(var(--ds-ink-rgb,255,255,255),0.92);
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
  box-shadow: 0 3px 12px rgba(0,0,0,0.25); transition: background 0.15s, color 0.15s;
}
.ds-carousel-arrow:hover { background: var(--cabo-accent,#EA580C); color: #fff; }
.ds-arrow-prev { left: 4px; } .ds-arrow-next { right: 4px; }

/* Sections with dark/navy backgrounds become glass cards — adapt to the theme
   (dark on dark sites, light on light sites) so nothing paints pre-morph navy. */
.section-card-dark {
  background: rgba(var(--ds-surface-1-rgb, 15, 23, 42), 0.78) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 24px !important;
  border: 1px solid rgba(var(--ds-ink-rgb, 255, 255, 255), 0.10);
  margin: 16px;
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.45),
    0 24px 80px rgba(0, 0, 0, 0.25),
    0 0 0 0 transparent;
  overflow: hidden;
}
/* Center card: allow shadow to bleed past column boundary */
.center-float-card.section-card-dark {
  overflow: visible;
  box-shadow:
    0 8px 60px rgba(0, 0, 0, 0.55),
    0 32px 120px rgba(0, 0, 0, 0.30);
}

/* Sections with light backgrounds become transparent — sky shows through */
.section-card-light {
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 24px !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

/* Hero card — first in left column */
.section-card-hero {
  background: rgba(var(--ds-surface-1-rgb, 15, 23, 42), 0.60) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px !important;
  border: 1px solid rgba(var(--ds-ink-rgb, 255, 255, 255), 0.12);
  margin: 16px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.40);
  overflow: hidden;
}

/* Light section text overrides */
.section-card-light h2,
.section-card-light h3,
.section-card-light p,
.section-card-light li {
  color: rgba(255, 255, 255, 0.92) !important;
}
.section-card-light .text-gray-500,
.section-card-light .text-gray-600 { color: rgba(255,255,255,0.70) !important; }
.section-card-light .text-cabo-navy { color: rgba(255,255,255,0.95) !important; }
.section-card-light .bg-white,
.section-card-light .bg-gray-50 {
  background: rgba(255,255,255,0.12) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
}
.section-card-light .shadow-sm { box-shadow: 0 2px 12px rgba(0,0,0,0.20) !important; }

/* ── Minimalist card mode (Site Settings → square button per card) ──
   Full-width, square corners, no shadow, no border, no glass blur.
   Applied via .card-minimal on any [data-edit-section] (works on the
   immersive section cards and on standalone cards like the login card). */
.card-minimal {
  margin-left: 0 !important;
  margin-right: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* ── Tour Carousel (Center Column) ─────────────────────────── */
.product-carousel-header {
  width: 100%;
  padding: 12px 16px 8px;
  text-align: center;
  color: rgba(255,255,255,0.85);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.product-carousel-wrap {
  width: 100%;
  flex: 1;
  overflow: hidden;
  position: relative;
  padding: 0 12px;
}

.product-carousel-track {
  display: flex;
  flex-direction: column;
  gap: 16px;
  will-change: transform;
  /* auto-scroll via JS animation */
}

/* Carousel tour cards — compact premium style */
.carousel-card {
  background: rgba(var(--ds-surface-1-rgb,15,23,42),0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(var(--ds-ink-rgb,255,255,255),0.12);
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
}
.carousel-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 10px 40px rgba(0,0,0,0.50);
  border-color: rgba(234,88,12,0.40);
}
.carousel-card-img-wrap {
  width: 100%;
  height: 120px;
  position: relative;
  overflow: hidden;
}
.carousel-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.carousel-card:hover .carousel-card-img-wrap img {
  transform: scale(1.06);
}
/* Gradient overlay on image */
.carousel-card-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    transparent 40%,
    rgba(var(--ds-surface-1-rgb,15,23,42),0.85) 100%);
  pointer-events: none;
}
/* Featured badge (inside image, bottom-left) */
.carousel-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #EA580C;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 99px;
  z-index: 2;
  letter-spacing: 0.04em;
}
/* Duration badge (inside image, bottom-right) */
.carousel-card-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.60);
  color: rgba(255,255,255,0.90);
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 8px;
  z-index: 2;
}
/* Rating badge (inside image, bottom-left) */
.carousel-card-rating {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(217,119,6,0.85);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 8px;
  z-index: 2;
}
.carousel-card-body {
  padding: 10px 12px 12px;
}
.carousel-card-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: rgba(var(--ds-ink-rgb,255,255,255),0.95);
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.carousel-card-meta {
  font-size: 0.72rem;
  color: rgba(var(--ds-ink-rgb,255,255,255),0.55);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.carousel-card-price {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  color: #fb923c;
  font-size: 0.85rem;
}
.carousel-card-book {
  display: inline-block;
  margin-top: 7px;
  background: rgba(234,88,12,0.20);
  border: 1px solid rgba(234,88,12,0.50);
  color: #fb923c;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  padding: 4px 12px;
  border-radius: 99px;
  transition: background 0.2s, color 0.2s;
  text-align: center;
  width: 100%;
}
.carousel-card:hover .carousel-card-book {
  background: #EA580C;
  color: #fff;
  border-color: #EA580C;
}

/* Fade edges on carousel */
.product-carousel-wrap::before,
.product-carousel-wrap::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 64px;
  z-index: 2;
  pointer-events: none;
}
.product-carousel-wrap::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15), transparent);
}
.product-carousel-wrap::after {
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.15), transparent);
}

/* ── The Arch (spans col-center → col-right → off-screen right) ── */
.arch-container-outer {
  /* kept in col-right but arch escapes via fixed positioning */
  width: 100%;
  height: 100vh;
  position: relative;
  pointer-events: none;
}

#arch-container {
  /*
   * SVG viewBox is 612 × 410. Rock base = bottom of SVG (y=410).
   *
   * HORIZONTAL: `left` is set by arch.js using .col-right.getBoundingClientRect()
   * so the SVG center is always the exact pixel center of the right column.
   * CSS fallback: 82.5vw.
   * translateX(-50%) pins the SVG horizontal center to `left`.
   *
   * VERTICAL: `bottom: 50vh` = the rock BASE sits exactly at the horizon
   * (sea surface). The arch towers upward into the sky from there.
   * No Y translation needed — `bottom` already places the element correctly.
   */
  position: fixed;
  left: 82.5vw;            /* JS overrides this to exact pixels */
  bottom: 47vh;            /* rock base just at/below the waterline — SVG has ~4px dead-space below rock */
  transform: translateX(-50%); /* SVG horizontal center at `left` */
  height: 62vh;            /* = 85vh × (300/410) — same visual size, trimmed viewBox */
  width: auto;             /* aspect ratio from trimmed SVG (612/300 ≈ 2.04) */
  z-index: 3;  /* above sea (2), below sea-top (4) and layout (5) */
  pointer-events: none;
  overflow: visible;
  transform-origin: 50% 100%;  /* parallax pivot: rock base (= container bottom) */
  filter: drop-shadow(0 -6px 28px rgba(0,0,0,0.38));
}

.arch-svg-inner {
  height: 100%;    /* fill container height */
  width: auto;     /* maintain SVG aspect ratio */
  display: block;
  overflow: visible;
}

/* ── Sea-top wave overlay (laps over arch base) ──────────────────────────── */
#sea-top {
  position: fixed;
  bottom: 0; /* same baseline as arch */
  left: 0;
  width: 100%;
  /* height is set by JS to ~18% of sea-bg height */
  z-index: 4;  /* above arch (3), below layout (5) */
  pointer-events: none;
}

/* ── Sky-tinted DOM clouds in the right column ──────────────────────────────── */
.sky-clouds-right {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 52%;
  pointer-events: none;
  z-index: 4;
  overflow: hidden;
  /* Updated by JS every raf via tintClouds() */
  --cloud-tint: rgba(255,255,255,0.90);
}

/* --cscale is the per-cluster scale hook the keyframes below read. It was never defined, so
   scale(var(--cscale,1)) always resolved to scale(1) — harmless, but the hook did nothing and
   an undefined variable is invisible to CSS. Declared here at its no-op value so the token
   exists and an element can still override it inline.
   NOTE: nothing in the project currently creates .sky-cloud-cluster; this rule and the two
   around it appear to be unreferenced. Left in place rather than deleted — removing CSS I have
   not traced end to end is how a background quietly disappears. */
.sky-cloud-cluster {
  --cscale: 1;
  position: absolute;
  /* Horizontal sway animation only — vertical offset via JS translateY on container */
  animation: cloud-sway linear infinite;
  will-change: transform;
}

@keyframes cloud-sway {
  0%   { transform: scale(var(--cscale,1)) translateX(0px); }
  20%  { transform: scale(var(--cscale,1)) translateX(14px) translateY(-3px); }
  45%  { transform: scale(var(--cscale,1)) translateX(24px); }
  70%  { transform: scale(var(--cscale,1)) translateX(10px) translateY(3px); }
  100% { transform: scale(var(--cscale,1)) translateX(0px); }
}

.sky-cloud-puff {
  position: absolute;
  border-radius: 50%;
  /* Soft radial gradient using the sky-driven custom property */
  background: radial-gradient(
    ellipse 100% 82% at 50% 62%,
    var(--cloud-tint, rgba(255,255,255,0.90)) 0%,
    rgba(255,255,255,0.22) 55%,
    transparent 100%
  );
  /* Color transition driven by JS updating --cloud-tint */
  transition: background 1.8s ease;
}

/* Bottom shadow under each cluster for 3-D lift */
.sky-cloud-cluster::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 15%;
  width: 70%;
  height: 16px;
  border-radius: 50%;
  background: rgba(0,0,0,0.10);
  filter: blur(6px);
}

/* ── Reveal animations ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal-stagger.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

/* ── Card Tilt + Hover Lift ──────────────────────────────────── */
.card-tilt {
  will-change: transform;
  transform-style: preserve-3d;
  cursor: default;
}

a.card-tilt { cursor: pointer; }

.card-tilt:hover {
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.50),
    0  6px 20px rgba(0, 0, 0, 0.30) !important;
}

/* ── Navbar override — gradient fade top→bottom ────────────── */
#navbar {
  background: linear-gradient(to bottom,
    rgba(15, 23, 42, 0.88) 0%,
    rgba(15, 23, 42, 0.55) 55%,
    transparent 100%) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: none !important;
}
/* Mobile menu keeps solid bg */
#navbar #mobile-menu {
  background: rgba(15, 23, 42, 0.97) !important;
  backdrop-filter: blur(16px) !important;
}

/* ── Mobile: Horizontal Slider (<= 768px) ───────────────────── */
@media (max-width: 768px) {
  .immersive-layout {
    display: flex;
    flex-direction: row;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    height: auto;
    min-height: 100dvh;
    /* Hide scrollbar */
    scrollbar-width: none;
  }
  .immersive-layout::-webkit-scrollbar { display: none; }

  .col-left,
  .col-center,
  .col-right {
    flex: 0 0 calc(100vw - 40px); /* peek: show 20px of adjacent */
    scroll-snap-align: center;
    min-height: 100dvh;
    height: auto;
    position: relative;
    top: auto;
    overflow-y: auto;
    overflow-x: hidden;
  }

  /* Left column is the default start */
  .col-left {
    scroll-snap-align: start;
    flex: 0 0 calc(100vw - 40px);
  }

  /* Center column */
  .col-center {
    position: relative;
    height: 100dvh;
    overflow: hidden;
  }

  /* Right column: transparent sky backdrop */
  .col-right {
    height: 100dvh;
    justify-content: flex-end;
  }

  /* Arch: centered in mobile viewport, hidden on slides 0 & 1, shown on slide 2.
     `bottom: 50vh` is inherited from base rule — rock base at the waterline.
     `left: 50%` + JS translateX(-50%) = arch center at viewport center, base at horizon.
     height: 47dvh = 65dvh × (300/410) — proportionally trimmed for the new viewBox. */
  #arch-container {
    left: 50%;    /* JS clears inline `left` on mobile so this CSS takes effect */
    height: 47dvh;
    opacity: 0;
    transition: opacity 0.35s ease;
  }
  #arch-container.arch-visible {
    opacity: 1;
  }

  /* Sky stays fixed */
  #sky-bg, #sky-sun, #sky-stars { position: fixed; }
}

/* Mobile slider navigation dots + arrows */
.mobile-slider-nav {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  align-items: center;
  gap: 12px;
  background: rgba(15,23,42,0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 40px;
  padding: 8px 16px;
}

@media (max-width: 768px) {
  .mobile-slider-nav { display: flex; }
}

.mobile-slider-arrow {
  background: none;
  border: none;
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
}
.mobile-slider-arrow:hover { color: #fff; background: rgba(255,255,255,0.12); }

.mobile-slider-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.mobile-slider-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border: none;
  padding: 0;
}
.mobile-slider-dot.active {
  background: #EA580C;
  transform: scale(1.35);
}

/* ── Desktop: section min widths ───────────────────────────── */
@media (min-width: 769px) {
  .col-left  { min-width: 320px; }
  .col-center { min-width: 260px; }
  .col-right  { min-width: 280px; }
}

/* Very wide screens: cap total layout width */
@media (min-width: 1600px) {
  .immersive-layout {
    max-width: 1600px;
    margin: 0 auto;
  }
  /* Re-anchor the fixed center column to the capped 1600px layout.
     left col = 1600×0.35 = 560px; center width = 1600×0.30 = 480px.
     With the layout centered: left = (100vw−1600px)/2 + 560px = 50vw−240px */
  .col-center {
    left: calc(50vw - 240px);
    width: 480px;
  }
}
