/* Ya Salam Dubai — Luxury Overlay v4 (iOS-ready, floating top nav) */

/* ============================================================
 * Floating top nav (Torti-style)
 * ============================================================ */
.ys-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 2147483644;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) 18px 12px;
  background: rgba(10,10,10,0.55);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  border-bottom: 1px solid rgba(201,162,74,0.10);
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  transition: background .3s cubic-bezier(.4,0,.2,1), backdrop-filter .3s cubic-bezier(.4,0,.2,1), border-color .3s, box-shadow .3s, padding .25s;
}
.ys-topbar.ys-topbar-scrolled {
  background: rgba(12,12,12,0.82);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border-bottom-color: rgba(201,162,74,0.28);
  box-shadow: 0 10px 28px rgba(0,0,0,0.38);
}
/* Reserve top + bottom space so hero content and page footers don't hide
   behind the floating bars. 60px top bar + 78px tab bar + safe areas. */
body:not(.ys-gate-active) {
  padding-top: calc(60px + env(safe-area-inset-top));
  padding-bottom: calc(82px + env(safe-area-inset-bottom));
}
/* But admin + auth pages manage their own layout */
body.ys-admin-shell,
body:has(.ys-no-topbar),
body:has(> .ys-gate-active) { padding-top: 0; padding-bottom: 0; }
.ys-topbar-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
  color: #f5f0e8;
  font-family: 'Inter', system-ui, sans-serif;
  letter-spacing: 0.28em;
  font-size: 11px;
  font-weight: 600;
}
.ys-topbar-brand span { color: #f5f0e8; }
.ys-topbar-brand em {
  font-style: normal;
  color: #c9a24a;
  background: linear-gradient(180deg, #e7c478, #c9a24a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ys-topbar-menu {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(201,162,74,0.32);
  background: rgba(18,18,18,0.55);
  color: #f5f0e8;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s, color .2s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.ys-topbar-menu:hover,
.ys-topbar-menu:active {
  background: linear-gradient(180deg, #e7c478, #c9a24a);
  color: #111;
  transform: translateY(-1px);
}
.ys-topbar-menu svg { width: 22px; height: 22px; }

/* Legacy circular ys-menu-btn is replaced by the top bar menu icon */
.ys-menu-btn { display: none !important; }

/* Push page content below the floating bar (first main/section) */
body:not(.ys-gate-active) main:first-of-type,
body:not(.ys-gate-active) .hero,
body:not(.ys-gate-active) .ys-hero { padding-top: env(safe-area-inset-top); }

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================================
 * iOS / Capacitor hardening
 * - 100vh → 100dvh for correct height under Safari tool bars
 * - env(safe-area-inset-*) padding on sticky/fixed elements
 * - min 44px tap targets on buttons/links
 * - prevent double-tap zoom on buttons
 * - fix iOS elastic overscroll revealing white background
 * ============================================================ */
html, body { background: #0a0a0a; }
html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
body {
  min-height: 100vh;
  min-height: 100dvh;
  overscroll-behavior-y: none;
}
/* Any element sized to full viewport should use dynamic viewport units */
body:not(.ys-no-overlay) [style*="100vh"],
body:not(.ys-no-overlay) .min-h-screen,
body:not(.ys-no-overlay) .h-screen {
  min-height: 100dvh;
}
/* Sticky headers, menus, modals: honour safe area */
.ys-menu-btn {
  top: calc(16px + env(safe-area-inset-top, 0px));
  right: calc(16px + env(safe-area-inset-right, 0px));
}
.ys-menu-panel {
  padding-top: calc(112px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px));
  padding-right: calc(40px + env(safe-area-inset-right, 0px));
  padding-left: 40px;
}
@supports (padding: max(0px)) {
  body:not(.ys-no-overlay) nav[class*="fixed"],
  body:not(.ys-no-overlay) header[class*="fixed"] {
    padding-top: max(12px, env(safe-area-inset-top));
  }
  body:not(.ys-no-overlay) footer[class*="fixed"],
  body:not(.ys-no-overlay) [class*="bottom-nav"],
  body:not(.ys-no-overlay) [class*="TabBar"] {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
}
/* Tap target minimum */
body:not(.ys-no-overlay) button,
body:not(.ys-no-overlay) a[role="button"],
body:not(.ys-no-overlay) a.button,
body:not(.ys-no-overlay) [class*="btn"]:not([class*="ys-cal-cell"]):not([class*="ys-cursor"]) {
  min-height: 44px;
  min-width: 44px;
}
/* Disable iOS text callout on non-editable text */
body:not(.ys-no-overlay) h1,
body:not(.ys-no-overlay) h2,
body:not(.ys-no-overlay) h3,
body:not(.ys-no-overlay) button,
body:not(.ys-no-overlay) [role="button"] {
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
/* Inputs: explicit 16px font to prevent iOS zoom on focus */
body:not(.ys-no-overlay) input,
body:not(.ys-no-overlay) textarea,
body:not(.ys-no-overlay) select {
  font-size: max(16px, 1rem);
}

:root {
  --ys-gold: #c9a24a;
  --ys-gold-light: #e7c478;
  --ys-gold-dark: #9a7830;
  --ys-ink: #f5f5f5;
  --ys-ink-muted: #b9b9b9;
  --ys-bg: #0a0a0a;
  --ys-glass: rgba(18, 18, 18, 0.55);
  --ys-glass-border: rgba(201, 162, 74, 0.22);
}

html { scroll-behavior: smooth; }

/* Hide the broken original nav that was animated off-screen --------- */
body:not(.ys-no-overlay) > nav[style*="translateY(-100px"],
body:not(.ys-no-overlay) > nav[style*="translateY(-100"] {
  display: none !important;
}

/* Typography -------------------------------------------------------- */
body,
body * {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body:not(.ys-no-overlay) {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif !important;
  letter-spacing: -0.005em;
}
body:not(.ys-no-overlay) h1,
body:not(.ys-no-overlay) h2,
body:not(.ys-no-overlay) h3,
body:not(.ys-no-overlay) .hero-title,
body:not(.ys-no-overlay) [class*="headline"],
body:not(.ys-no-overlay) [class*="Heading"] {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif !important;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
body:not(.ys-no-overlay) h1 {
  background: linear-gradient(180deg, #ffffff 0%, #d8d8d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Selection / focus ------------------------------------------------- */
::selection { background: var(--ys-gold); color: #111; }
:focus-visible { outline: 2px solid var(--ys-gold) !important; outline-offset: 3px; }

/* Scroll reveal ----------------------------------------------------- */
.ys-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}
.ys-reveal.ys-in { opacity: 1; transform: none; }
.ys-reveal[data-delay="1"] { transition-delay: 0.08s; }
.ys-reveal[data-delay="2"] { transition-delay: 0.16s; }
.ys-reveal[data-delay="3"] { transition-delay: 0.24s; }
.ys-reveal[data-delay="4"] { transition-delay: 0.32s; }

/* ============================================================
   GLASS MENU
   ============================================================ */
.ys-menu-btn {
  position: fixed;
  top: calc(16px + env(safe-area-inset-top, 0px));
  right: 16px;
  z-index: 9998;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--ys-glass-border);
  color: var(--ys-ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
              background 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}
.ys-menu-btn:hover,
.ys-menu-btn:focus-visible {
  background: rgba(20, 20, 20, 0.78);
  border-color: var(--ys-gold);
}
.ys-menu-btn svg { width: 18px; height: 18px; }
.ys-menu-btn .ys-menu-line {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ys-ink);
  margin: 3px auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
  border-radius: 2px;
}
body.ys-menu-open .ys-menu-btn .ys-menu-line:nth-child(1) {
  transform: translateY(4.5px) rotate(45deg);
}
body.ys-menu-open .ys-menu-btn .ys-menu-line:nth-child(2) { opacity: 0; }
body.ys-menu-open .ys-menu-btn .ys-menu-line:nth-child(3) {
  transform: translateY(-4.5px) rotate(-45deg);
}

.ys-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 6, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  z-index: 9990;
}
body.ys-menu-open .ys-menu-overlay {
  opacity: 1;
  visibility: visible;
}

.ys-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  width: min(400px, 92vw);
  background: rgba(12, 12, 12, 0.78);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-left: 1px solid var(--ys-glass-border);
  box-shadow: -40px 0 80px rgba(0, 0, 0, 0.5);
  padding: 112px 40px 48px;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 9991;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
body.ys-menu-open .ys-menu-panel { transform: translateX(0); }

.ys-menu-brand {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--ys-gold);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.ys-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 18px;
}
.ys-menu-section {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: 0.34em;
  color: var(--ys-gold);
  font-weight: 600;
  text-transform: uppercase;
  margin: 18px 0 4px;
}
.ys-menu-goldsep {
  height: 1px;
  width: 60%;
  margin: 12px 0 2px;
  background: linear-gradient(90deg, transparent, rgba(201,162,74,.45) 40%, rgba(231,196,120,.7) 60%, transparent);
  opacity: 0;
  transition: opacity .6s ease .25s;
}
body.ys-menu-open .ys-menu-goldsep { opacity: 1; }
.ys-menu-link {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--ys-ink);
  text-decoration: none;
  padding: 7px 0;
  letter-spacing: -0.01em;
  position: relative;
  transition: color 0.2s ease, padding 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  opacity: 0;
  transform: translateX(20px);
  transition-property: opacity, transform, color, padding;
  transition-duration: 0.5s, 0.5s, 0.2s, 0.25s;
  transition-timing-function: cubic-bezier(0.2,0.8,0.2,1);
}
body.ys-menu-open .ys-menu-link { opacity: 1; transform: none; }
body.ys-menu-open .ys-menu-link:nth-child(1) { transition-delay: 0.15s; }
body.ys-menu-open .ys-menu-link:nth-child(2) { transition-delay: 0.20s; }
body.ys-menu-open .ys-menu-link:nth-child(3) { transition-delay: 0.25s; }
body.ys-menu-open .ys-menu-link:nth-child(4) { transition-delay: 0.30s; }
body.ys-menu-open .ys-menu-link:nth-child(5) { transition-delay: 0.35s; }
body.ys-menu-open .ys-menu-link:nth-child(6) { transition-delay: 0.40s; }
body.ys-menu-open .ys-menu-link:nth-child(7) { transition-delay: 0.45s; }
body.ys-menu-open .ys-menu-link:nth-child(8) { transition-delay: 0.50s; }
.ys-menu-link:hover { color: var(--ys-gold); padding-left: 12px; }
.ys-menu-link::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 8px;
  height: 1px;
  background: var(--ys-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.ys-menu-link:hover::before { transform: scaleX(1); transform-origin: left; }

.ys-menu-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ys-glass-border), transparent);
  margin: 24px 0 20px;
}

.ys-menu-foot {
  margin-top: auto;
  padding-top: 24px;
  color: var(--ys-ink-muted);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.ys-menu-foot a {
  color: var(--ys-ink-muted);
  text-decoration: none;
  display: block;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.ys-menu-foot a:hover { color: var(--ys-gold); }

body.ys-menu-open { overflow: hidden; }

/* ============================================================
   CUSTOM CURSOR (desktop only, no mix-blend-mode)
   ============================================================ */
@media (hover: hover) and (pointer: fine) {
  body.ys-cursor-on,
  body.ys-cursor-on * {
    cursor: none !important;
  }
  .ys-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border: 1.5px solid var(--ys-gold);
    border-radius: 50%;
    pointer-events: none;
    transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
    transition: width 0.25s cubic-bezier(0.2,0.8,0.2,1),
                height 0.25s cubic-bezier(0.2,0.8,0.2,1),
                background 0.25s ease,
                border-color 0.25s ease;
    z-index: 99998;
    box-shadow: 0 0 12px rgba(201, 162, 74, 0.35),
                inset 0 0 8px rgba(201, 162, 74, 0.15);
    background: rgba(201, 162, 74, 0.05);
  }
  .ys-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--ys-gold-light);
    border-radius: 50%;
    pointer-events: none;
    transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
    z-index: 99999;
    box-shadow: 0 0 8px rgba(231, 196, 120, 0.8);
  }
  .ys-cursor.ys-cursor-hover {
    width: 64px;
    height: 64px;
    background: rgba(201, 162, 74, 0.15);
    border-color: var(--ys-gold-light);
  }
}

/* Mobile: hide cursor, keep menu */
@media (max-width: 900px), (hover: none), (pointer: coarse) {
  .ys-cursor, .ys-cursor-dot { display: none !important; }
  .ys-menu-btn { width: 44px; height: 44px; }
  .ys-menu-link { font-size: 22px; }
  .ys-menu-panel { padding-top: 88px; padding-left: 28px; padding-right: 28px; }
}

/* ============================================================
 * Page-level UI fixes (chip overlaps, Food Experiences etc.)
 * ============================================================ */

/* Original pages render category pills in a flex row that overflows
 * horizontally. On narrow widths the pills collapse onto each other.
 * Force them to wrap and prevent the underlying gold "track" bar from
 * rendering over them. */
body:not(.ys-no-overlay) [class*="overflow-x-auto"]:has(> button[class*="rounded-full"]),
body:not(.ys-no-overlay) [class*="whitespace-nowrap"][class*="flex"]:not(.ys-menu-nav):not(.adm-subtabs) {
  flex-wrap: wrap !important;
  gap: 8px !important;
  overflow-x: visible !important;
}
body:not(.ys-no-overlay) [class*="overflow-x-auto"] > div[class*="bg-[#c9a962]"],
body:not(.ys-no-overlay) [class*="overflow-x-auto"] > div[class*="bg-gold"],
body:not(.ys-no-overlay) [class*="overflow-x-auto"] > div[style*="height: 4px"] {
  display: none !important;
}

/* Category chips: make each pill self-contained */
body:not(.ys-no-overlay) button[class*="rounded-full"][class*="px-"] {
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============================================================
 * Mobile chip-row hard fix — forces category pills to WRAP on
 * all narrow viewports and hides any sibling track / underline
 * bars that would otherwise overlap them.
 * ============================================================ */
@media (max-width: 900px) {
  /* Only wrap containers that are ACTUAL chip rows, i.e. ones whose
   * direct children are rounded-full buttons. Using :has() avoids
   * clobbering real card sliders that share the overflow-x-auto class. */
  body div[class*="overflow-x-auto"]:has(> button[class*="rounded-full"]),
  body div[class*="overflow-x-auto"]:has(> a[class*="rounded-full"]),
  body div[class*="flex"][class*="overflow-x-auto"]:has(> button[class*="rounded-full"]) {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    padding-bottom: 8px !important;
    justify-content: flex-start !important;
  }

  /* Every rounded-full chip inside such a row */
  body div[class*="overflow-x-auto"]:has(> button[class*="rounded-full"]) > button[class*="rounded-full"],
  body div[class*="overflow-x-auto"]:has(> a[class*="rounded-full"]) > a[class*="rounded-full"] {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    max-width: calc(50% - 4px);
    font-size: 13px !important;
    padding: 8px 14px !important;
  }

  /* Kill the gold "track" bar under the chips (it's a standalone
   * 4px high div that overlaps chips when they wrap) */
  body div[class*="overflow-x-auto"] ~ div[class*="bg-[#c9a962]"],
  body div[class*="overflow-x-auto"] + div[style*="height"],
  body div[class*="h-1"][class*="bg-[#c9a962]"],
  body div[class*="h-[4px]"][class*="bg-[#c9a962]"] {
    display: none !important;
  }

  /* Header: avoid wide Plan Trip button covering hamburger */
  body header a[class*="px-6"][class*="py-3"],
  body nav a[class*="px-6"][class*="py-3"] {
    padding: 8px 14px !important;
    font-size: 13px !important;
  }

  /* Page titles: reduce clamp so they never wrap awkwardly */
  body h1[class*="text-5xl"],
  body h1[class*="text-6xl"] {
    font-size: clamp(28px, 8vw, 40px) !important;
    line-height: 1.15 !important;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ys-reveal, .ys-reveal.ys-in {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
  .ys-menu-panel, .ys-menu-link { transition: none !important; }
}

/* ============================================================
 * Shared Luxury Footer (injected by luxury.js on every page)
 * ============================================================ */
.ys-footer {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
  border-top: 1px solid rgba(201, 162, 74, 0.18);
  padding: 72px 24px 32px;
  color: #b9b9b9;
  font-family: 'Inter', system-ui, sans-serif;
  margin-top: 80px;
}
.ys-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c9a24a, transparent);
}
.ys-foot-top {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 56px;
  padding-bottom: 48px;
}
.ys-foot-brand .ys-foot-logo {
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.28em;
  font-size: 13px;
  font-weight: 600;
  color: #c9a24a;
  margin-bottom: 18px;
}
.ys-foot-brand .ys-foot-logo span { color: #e7c478; }
.ys-foot-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: #8a8a8a;
  margin: 0 0 20px;
  max-width: 320px;
}
.ys-foot-cta {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #e7c478, #c9a24a);
  color: #111;
  font-weight: 600;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: filter .2s ease, transform .2s ease;
}
.ys-foot-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }
.ys-foot-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.ys-foot-col h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 14px;
  font-weight: 500;
  color: #f5f5f5;
  margin: 0 0 16px;
  letter-spacing: 0.02em;
}
.ys-foot-col ul { list-style: none; margin: 0; padding: 0; }
.ys-foot-col li { margin-bottom: 10px; }
.ys-foot-col a {
  color: #8a8a8a;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.5;
  transition: color .2s ease;
}
.ys-foot-col a:hover { color: #c9a24a; }

.ys-foot-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: #6a6a6a;
  letter-spacing: 0.02em;
}
.ys-foot-links { display: flex; gap: 18px; }
.ys-foot-links a {
  color: #6a6a6a;
  text-decoration: none;
  transition: color .2s ease;
}
.ys-foot-links a:hover { color: #c9a24a; }

@media (max-width: 780px) {
  .ys-footer { padding: 56px 20px 28px; margin-top: 56px; }
  .ys-foot-top { grid-template-columns: 1fr; gap: 36px; padding-bottom: 32px; }
  .ys-foot-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .ys-foot-bottom { flex-direction: column; text-align: center; gap: 12px; }
}
@media (max-width: 440px) {
  .ys-foot-cols { grid-template-columns: 1fr; }
}

/* ============================================================
 * Bottom Tab Bar — Torti-style glass dock, Ya Salam gold accent
 * ============================================================ */
.ys-tabbar {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  top: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  transform: none !important;
  z-index: 2147483646 !important;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  align-items: flex-end;
  gap: 0;
  padding: 8px 14px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
  background: linear-gradient(180deg, rgba(18,18,18,0.92), rgba(10,10,10,0.98)) !important;
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 0 !important;
  border-top: 1px solid rgba(201,162,74,0.22) !important;
  border-radius: 0 !important;
  box-shadow:
    0 -10px 40px rgba(0, 0, 0, 0.55),
    0 -2px 6px rgba(0, 0, 0, 0.35);
  animation: ys-tabbar-in 0.5s cubic-bezier(.22,.8,.22,1) both;
  justify-content: space-around;
}
@keyframes ys-tabbar-in {
  from { opacity: 0; transform: translateY(16px) !important; }
  to   { opacity: 1; transform: none !important; }
}
body.ys-menu-open .ys-tabbar { opacity: 0.25 !important; pointer-events: none !important; }
.ys-tab {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px 6px;
  color: rgba(245,240,232,0.58);
  font: inherit;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 0.22s ease, transform 0.22s ease;
  position: relative;
}
.ys-tab:hover { color: #fff; }
.ys-tab:active { transform: scale(0.94); }
.ys-tab-ico {
  display: inline-grid;
  place-items: center;
  width: 24px; height: 24px;
  transition: transform 0.25s cubic-bezier(.22,.8,.22,1);
}
.ys-tab-ico svg { width: 24px; height: 24px; display: block; }
.ys-tab-lab { line-height: 1.1; white-space: nowrap; }

.ys-tab-active {
  color: #c9a24a;
}
.ys-tab-active .ys-tab-ico { transform: scale(1.08); }
.ys-tab-active::after {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 28px; height: 2px;
  background: linear-gradient(90deg, transparent, #c9a24a, transparent);
  border-radius: 100px;
}

/* Center raised AI Trip button */
.ys-tab-center .ys-tab-ico {
  background: linear-gradient(180deg, #e7c478, #c9a24a);
  color: #111;
  border-radius: 50%;
  width: 52px; height: 52px;
  margin-top: -24px;
  border: 4px solid rgba(12, 12, 12, 0.95);
  box-shadow: 0 8px 22px rgba(201, 162, 74, 0.45), inset 0 1px 0 rgba(255,255,255,.25);
}
.ys-tab-center .ys-tab-ico svg { width: 22px; height: 22px; }
.ys-tab-center:hover .ys-tab-ico { filter: brightness(1.06); transform: translateY(-1px); }
.ys-tab-center .ys-tab-lab {
  color: #c9a24a;
  font-weight: 600;
  font-size: 10px;
  margin-top: 2px;
}
.ys-tab-center.ys-tab-active { color: #c9a24a; }
.ys-tab-center.ys-tab-active::after { display: none; }

/* Menu center (legacy) still styled the same */
.ys-tab-menu .ys-tab-ico {
  background: linear-gradient(180deg, #e7c478, #c9a24a);
  color: #111;
  border-radius: 50%;
  width: 52px; height: 52px;
  margin-top: -24px;
  border: 4px solid rgba(12, 12, 12, 0.95);
  box-shadow: 0 8px 22px rgba(201, 162, 74, 0.45);
}
.ys-tab-menu .ys-tab-ico svg { width: 22px; height: 22px; }

/* Chat tab — green online dot indicator */
.ys-tab-dot .ys-tab-ico::after {
  content: '';
  position: absolute;
  top: -2px; right: -2px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #3fb950;
  box-shadow: 0 0 6px rgba(63, 185, 80, 0.7);
  animation: ys-tab-dot-pulse 1.8s ease-in-out infinite;
}
@keyframes ys-tab-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(1.2); }
}

/* Nudge page content so tab bar doesn't cover footer on short pages */
body:not(.ys-no-overlay) { padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
body:not(.ys-no-overlay) .ys-footer { margin-bottom: 0; }

/* Hide top hamburger since the tab bar is the new primary nav.
 * Keep .ys-menu-btn available for the tab-bar "Menu" button click. */
body:not(.ys-no-overlay) .ys-menu-btn {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.5);
}

/* Bottom tab bar on small screens (already edge-to-edge — just tighten text) */
@media (max-width: 560px) {
  .ys-tabbar { padding: 6px 6px calc(8px + env(safe-area-inset-bottom, 0px)) !important; }
  .ys-tab { min-width: 0; font-size: 9.5px; padding: 6px 2px 4px; }
  .ys-tab-lab { font-size: 9px; }
}

/* Hide any external floating chat bubble button (Next.js chunks, widgets
 * etc.) since Chat is now inside the tab bar. */
body:not(.ys-no-overlay) button[class*="chat"]:not(.ys-tab):not(.ys-ab-chat):not([class*="lucide"]),
body:not(.ys-no-overlay) a[class*="chat"][class*="fixed"]:not(.ys-tab):not(.ys-ab-chat),
body:not(.ys-no-overlay) [class*="chat-bubble"]:not(.ys-tab):not(.ys-ab-chat),
body:not(.ys-no-overlay) [class*="ChatButton"]:not(.ys-tab):not(.ys-ab-chat),
body:not(.ys-no-overlay) [class*="FloatingChat"]:not(.ys-tab):not(.ys-ab-chat),
body:not(.ys-no-overlay) .fixed.bottom-\[24px\]:has(svg[class*="message"]),
body:not(.ys-no-overlay) .fixed.bottom-6:has(svg[class*="message"]),
body:not(.ys-no-overlay) .fixed.bottom-8:has(svg[class*="message"]),
body:not(.ys-no-overlay) button.fixed.rounded-full:has(svg[class*="message-circle"]),
body:not(.ys-no-overlay) a.fixed.rounded-full:has(svg[class*="message-circle"]) {
  display: none !important;
}

/* Hide tab bar on admin pages */
body:not(.ys-no-overlay) { /* applies everywhere with overlay */ }

/* ============================================================
 * Apple-style horizontal sliders on mobile
 * Converts stacked category grids into snap-scroll carousels.
 * Uses :has() (Chrome 105+, Safari 15.4+, Firefox 121+ — fine in 2026).
 * ============================================================ */
@media (max-width: 900px) {
  /* Hit any grid that contains a category link */
  body:not(.ys-no-overlay) div[class*="grid"]:has(> a[href="/yachts/"]),
  body:not(.ys-no-overlay) div[class*="grid"]:has(> a[href="/food-experiences/"]),
  body:not(.ys-no-overlay) div[class*="grid"]:has(> a[href="/attractions/"]),
  body:not(.ys-no-overlay) div[class*="grid"]:has(> a[href="/car-rentals/"]),
  body:not(.ys-no-overlay) div[class*="grid"]:has(> a[href="/activities/"]),
  body:not(.ys-no-overlay) div[class*="grid"]:has(> a[href="/member/"]),
  body:not(.ys-no-overlay) div[class*="grid"]:has(> article[class*="card"]),
  body:not(.ys-no-overlay) div[class*="grid"]:has(> div[class*="card"]),
  body:not(.ys-no-overlay) div[class*="grid"]:has(> a[class*="card"]) {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 16px !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    scroll-snap-type: x mandatory !important;
    scroll-padding-left: 20px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 20px 12px !important;
    margin-left: -20px !important;
    margin-right: -20px !important;
    scroll-behavior: smooth;
    /* Soft fade on both edges using mask */
    mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  }
  body:not(.ys-no-overlay) div[class*="grid"]:has(> a[href="/yachts/"])::-webkit-scrollbar,
  body:not(.ys-no-overlay) div[class*="grid"]:has(> a[href="/food-experiences/"])::-webkit-scrollbar,
  body:not(.ys-no-overlay) div[class*="grid"]:has(> a[href="/attractions/"])::-webkit-scrollbar,
  body:not(.ys-no-overlay) div[class*="grid"]:has(> a[href="/car-rentals/"])::-webkit-scrollbar,
  body:not(.ys-no-overlay) div[class*="grid"]:has(> article[class*="card"])::-webkit-scrollbar,
  body:not(.ys-no-overlay) div[class*="grid"]:has(> div[class*="card"])::-webkit-scrollbar {
    display: none;
  }

  /* Children: each becomes a snap card at ~78vw */
  body:not(.ys-no-overlay) div[class*="grid"]:has(> a[href="/yachts/"]) > *,
  body:not(.ys-no-overlay) div[class*="grid"]:has(> a[href="/food-experiences/"]) > *,
  body:not(.ys-no-overlay) div[class*="grid"]:has(> a[href="/attractions/"]) > *,
  body:not(.ys-no-overlay) div[class*="grid"]:has(> a[href="/car-rentals/"]) > *,
  body:not(.ys-no-overlay) div[class*="grid"]:has(> a[href="/activities/"]) > *,
  body:not(.ys-no-overlay) div[class*="grid"]:has(> a[href="/member/"]) > *,
  body:not(.ys-no-overlay) div[class*="grid"]:has(> article[class*="card"]) > article,
  body:not(.ys-no-overlay) div[class*="grid"]:has(> div[class*="card"]) > div,
  body:not(.ys-no-overlay) div[class*="grid"]:has(> a[class*="card"]) > a {
    flex: 0 0 78vw !important;
    max-width: 78vw !important;
    width: 78vw !important;
    scroll-snap-align: center !important;
    scroll-snap-stop: always;
    transition: transform 0.35s cubic-bezier(.22,.8,.22,1);
  }

  /* Slight glass-edge highlight on the focused (centered) card */
  body:not(.ys-no-overlay) div[class*="grid"]:has(> a[href="/yachts/"]) > *:focus-within,
  body:not(.ys-no-overlay) div[class*="grid"]:has(> a[href="/food-experiences/"]) > *:focus-within {
    transform: scale(1.02);
  }
}

/* Narrow phones: cards a bit wider so only one is visible at a time */
@media (max-width: 480px) {
  body:not(.ys-no-overlay) div[class*="grid"]:has(> a[href^="/"]) > *,
  body:not(.ys-no-overlay) div[class*="grid"]:has(> article[class*="card"]) > article,
  body:not(.ys-no-overlay) div[class*="grid"]:has(> div[class*="card"]) > div {
    flex: 0 0 84vw !important;
    max-width: 84vw !important;
    width: 84vw !important;
  }
}

/* ============================================================
 * Floating Action Bar — LighRent-style, Ya Salam luxury
 * Draggable glass panel docked above the bottom tab bar
 * ============================================================ */
.ys-actionbar {
  position: fixed !important;
  left: 12px; right: 12px;
  /* Sits above tab bar: tab bar is 86px + safe-area */
  bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  z-index: 2147483645;

  background:
    linear-gradient(135deg, rgba(26,26,26,0.85), rgba(12,12,12,0.92));
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(201, 162, 74, 0.32);
  border-radius: 22px;
  padding: 8px 16px 14px;
  box-shadow:
    0 16px 50px rgba(0, 0, 0, 0.55),
    0 4px 12px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(201, 162, 74, 0.08);
  transition: transform 0.35s cubic-bezier(.22,.8,.22,1),
              opacity 0.3s ease,
              bottom 0.35s cubic-bezier(.22,.8,.22,1);

  animation: ys-ab-in 0.55s cubic-bezier(.22,.8,.22,1) both;
  max-width: 680px;
  margin: 0 auto;
}
@keyframes ys-ab-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
/* Gold "reflection" strip at top edge */
.ys-actionbar::before {
  content: '';
  position: absolute;
  top: 0; left: 40px; right: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(231, 196, 120, 0.55) 50%, transparent);
  pointer-events: none;
}
.ys-actionbar-hidden {
  opacity: 0;
  transform: translateY(140%);
  pointer-events: none;
}
.ys-actionbar-collapsed {
  /* Only the handle + a tiny strip shows */
  transform: translateY(calc(100% - 52px));
  opacity: 0.92;
}

/* Drag handle */
.ys-ab-handle {
  display: flex;
  justify-content: center;
  padding: 6px 0 10px;
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.ys-ab-handle:active { cursor: grabbing; }
.ys-ab-handle span {
  display: block;
  width: 42px; height: 4px;
  background: rgba(201, 162, 74, 0.55);
  border-radius: 100px;
  transition: width 0.2s, background 0.2s;
}
.ys-ab-handle:hover span { width: 56px; background: var(--ys-gold-light, #e7c478); }

/* Body layout */
.ys-ab-body {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
}
.ys-ab-left { min-width: 0; }
.ys-ab-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px;
  line-height: 1.2;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ys-ab-sub {
  font-size: 11px;
  color: rgba(245,240,232,0.55);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
}

.ys-ab-mid { text-align: right; }
.ys-ab-price {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  background: linear-gradient(180deg, #e7c478, #c9a24a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.ys-ab-price-lab {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(245,240,232,0.45);
  text-transform: uppercase;
  margin-top: 3px;
}

.ys-ab-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ys-ab-chat {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201, 162, 74, 0.22);
  border-radius: 14px;
  color: #c9a24a;
  transition: all 0.25s;
  text-decoration: none;
}
.ys-ab-chat:hover {
  background: rgba(201,162,74,0.12);
  border-color: var(--ys-gold-light, #e7c478);
  color: var(--ys-gold-light, #e7c478);
  transform: translateY(-1px);
}
.ys-ab-chat svg { width: 20px; height: 20px; }

.ys-ab-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  background: linear-gradient(180deg, #e7c478, #c9a24a);
  color: #111;
  border-radius: 14px;
  font: inherit;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: filter 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 16px rgba(201, 162, 74, 0.28), inset 0 1px 0 rgba(255,255,255,0.25);
}
.ys-ab-cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(201, 162, 74, 0.38), inset 0 1px 0 rgba(255,255,255,0.3);
}

@media (max-width: 560px) {
  .ys-actionbar { left: 8px; right: 8px; bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
  .ys-ab-title { font-size: 14px; }
  .ys-ab-price { font-size: 19px; }
  .ys-ab-cta { padding: 11px 16px; font-size: 13px; }
  .ys-ab-chat { width: 38px; height: 38px; border-radius: 12px; }
}

/* When menu is open, dim action bar too */
body.ys-menu-open .ys-actionbar { opacity: 0.2; pointer-events: none; }
