:root {
  --charcoal: #171717;
  --gold: #C9A227;
  --gold-dark: #A9861C;
  --emerald: #0F6B5B;
  --ivory: #F7F4ED;
  --surface: #FFFFFF;
  --ink: #222222;
  --muted: #737373;
}

html { scroll-behavior: smooth; }
body {
  background: var(--ivory);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.font-serif { font-family: 'Playfair Display', Georgia, serif; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

.skip-link {
  position: absolute; left: -9999px; top: 1rem; z-index: 100;
  background: var(--gold); color: var(--charcoal); padding: .6rem 1rem; border-radius: .5rem; font-weight: 600;
}
.skip-link:focus { left: 1rem; }

/* Buttons */
.btn-gold, .btn-dark, .btn-outline, .btn-outline-light, .btn-emerald {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: .9rem; padding: .75rem 1.25rem; border-radius: .75rem;
  transition: background-color .25s ease, transform .25s ease, box-shadow .25s ease, color .25s ease, border-color .25s ease;
  cursor: pointer; text-align: center; line-height: 1.2;
}
.btn-gold { background: var(--gold); color: var(--charcoal); }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-1px); box-shadow: 0 12px 25px -12px rgba(201,162,39,.8); }
.btn-dark { background: var(--charcoal); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-1px); box-shadow: 0 12px 25px -12px rgba(0,0,0,.6); }
.btn-emerald { background: var(--emerald); color: #fff; }
.btn-emerald:hover { background: #0b5549; transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--charcoal); border: 1px solid rgba(23,23,23,.15); }
.btn-outline:hover { border-color: var(--gold); color: #000; }
.btn-outline-light { color: #fff; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.05); }
.btn-outline-light:hover { border-color: var(--gold); color: var(--gold); }
.btn-gold svg, .btn-dark svg, .btn-outline svg, .btn-outline-light svg, .btn-emerald svg { width: 1rem; height: 1rem; }

/* Navigation */
.nav-link { position: relative; color: rgba(255,255,255,.82); transition: color .2s; padding: .25rem 0; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--gold); }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--gold); transition: width .3s ease;
}
.nav-link:hover::after, .nav-link[aria-current="page"]::after { width: 100%; }

.logo-chip {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; position: relative;
  background: repeating-conic-gradient(var(--gold) 0 22.5deg, #2a2a2a 22.5deg 45deg);
  box-shadow: 0 0 0 2px var(--gold), 0 6px 14px rgba(0,0,0,.4);
}
.logo-chip::after {
  content: "S"; position: absolute; inset: 7px; border-radius: 50%;
  background: var(--charcoal); border: 1.5px dashed var(--gold);
  color: var(--gold); font: 700 13px/19px 'Playfair Display', Georgia, serif; text-align: center;
}

/* Hero backgrounds (descriptive names, layered fallback images) */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-bg-luxury-casino-floor-night,
.page-hero-bg-resort-pool-catalog,
.page-hero-bg-coastal-boardwalk-attractions,
.page-hero-bg-grand-hotel-lobby-about,
.page-hero-bg-elegant-suite-legal {
  position: absolute; inset: -15% 0 -15% 0; z-index: -3;
  background-size: cover; background-position: center; will-change: transform;
}
.hero-bg-luxury-casino-floor-night {
  background-image:
    url('https://images.unsplash.com/photo-1596838132731-3301c3fd4317?auto=format&fit=crop&w=1920&q=80'),
    url('images/photo-1566073771259-6a8506099945.png'),
    linear-gradient(135deg, #171717, #2b2410);
}
.page-hero-bg-resort-pool-catalog {
  background-image:
    url('https://images.unsplash.com/photo-1571896349842-33c89424de2d?auto=format&fit=crop&w=1920&q=80'),
    url('images/photo-1566073771259-6a8506099945.png'),
    linear-gradient(135deg, #171717, #0F6B5B);
}
.page-hero-bg-coastal-boardwalk-attractions {
  background-image:
    url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1920&q=80'),
    url('images/photo-1566073771259-6a8506099945.png'),
    linear-gradient(135deg, #171717, #0F6B5B);
}
.page-hero-bg-grand-hotel-lobby-about {
  background-image:
    url('https://images.unsplash.com/photo-1564501049412-61c2a3083791?auto=format&fit=crop&w=1920&q=80'),
    url('images/photo-1566073771259-6a8506099945.png'),
    linear-gradient(135deg, #171717, #2b2410);
}
.page-hero-bg-elegant-suite-legal {
  background-image:
    url('https://images.unsplash.com/photo-1582719478250-c89cae4dc85b?auto=format&fit=crop&w=1920&q=80'),
    url('images/photo-1566073771259-6a8506099945.png'),
    linear-gradient(135deg, #171717, #2b2410);
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(180deg, rgba(23,23,23,.55) 0%, rgba(23,23,23,.72) 55%, rgba(23,23,23,.94) 100%);
}
.hero-glow {
  position: absolute; inset: -25%; z-index: -1; pointer-events: none; mix-blend-mode: screen;
  background:
    radial-gradient(circle at 20% 30%, rgba(201,162,39,.32), transparent 38%),
    radial-gradient(circle at 80% 65%, rgba(15,107,91,.38), transparent 42%),
    radial-gradient(circle at 55% 10%, rgba(255,255,255,.08), transparent 30%);
  animation: glowShift 16s ease-in-out infinite alternate;
}
@keyframes glowShift {
  0% { transform: translate3d(-4%, -2%, 0) rotate(0deg); }
  100% { transform: translate3d(4%, 3%, 0) rotate(10deg); }
}

/* Entrance & reveal animations */
.fade-up { opacity: 0; transform: translateY(26px); animation: fadeUp .9s cubic-bezier(.2,.7,.2,1) forwards; }
.delay-1 { animation-delay: .15s; } .delay-2 { animation-delay: .3s; } .delay-3 { animation-delay: .45s; } .delay-4 { animation-delay: .6s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* 3D decorative casino chips & dice */
.chip-3d {
  --c: var(--gold);
  position: absolute; width: 84px; height: 84px; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(var(--c) 0 20deg, #f5f5f5 20deg 40deg);
  box-shadow: inset 0 0 0 4px rgba(0,0,0,.18), 0 7px 0 rgba(0,0,0,.45), 0 22px 35px rgba(0,0,0,.45);
  animation: floatChip 8s ease-in-out infinite;
}
.chip-3d::before {
  content: ""; position: absolute; inset: 14px; border-radius: 50%;
  background: var(--c); border: 2px dashed rgba(255,255,255,.75);
}
.chip-emerald { --c: var(--emerald); }
.chip-charcoal { --c: #2c2c2c; }
.chip-sm { width: 58px; height: 58px; }
.chip-sm::before { inset: 10px; }
@keyframes floatChip {
  0%, 100% { transform: translateY(0) rotateX(52deg) rotateZ(0deg); }
  50% { transform: translateY(-18px) rotateX(52deg) rotateZ(45deg); }
}
.dice-3d {
  position: absolute; width: 54px; height: 54px; border-radius: 12px; pointer-events: none;
  background:
    radial-gradient(circle at 25% 25%, #171717 0 4.5px, transparent 5.5px),
    radial-gradient(circle at 75% 25%, #171717 0 4.5px, transparent 5.5px),
    radial-gradient(circle at 50% 50%, #C9A227 0 4.5px, transparent 5.5px),
    radial-gradient(circle at 25% 75%, #171717 0 4.5px, transparent 5.5px),
    radial-gradient(circle at 75% 75%, #171717 0 4.5px, transparent 5.5px),
    linear-gradient(145deg, #ffffff, #e9e4d6);
  box-shadow: 6px 8px 0 rgba(0,0,0,.25), 0 20px 35px rgba(0,0,0,.4);
  animation: floatDice 9s ease-in-out infinite;
}
@keyframes floatDice {
  0%, 100% { transform: translateY(0) rotate(-12deg); }
  50% { transform: translateY(-16px) rotate(14deg); }
}

/* Hotel cards */
.hotel-card {
  background: var(--surface); border: 1px solid rgba(23,23,23,.08); border-radius: 1rem; overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: transform .35s ease, box-shadow .35s ease;
  display: flex; flex-direction: column;
}
.hotel-card:hover { transform: translateY(-4px); box-shadow: 0 25px 50px -20px rgba(23,23,23,.28); }
.hotel-card .card-media { position: relative; overflow: hidden; background: #e8e3d6; }
.hotel-card .card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s ease; }
.hotel-card:hover .card-media img { transform: scale(1.06); }
.line-clamp-2, .line-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { -webkit-line-clamp: 2; } .line-clamp-3 { -webkit-line-clamp: 3; }

/* Search suggestions */
.suggestions {
  position: absolute; left: 0; right: 0; top: calc(100% + .5rem); z-index: 30;
  background: #fff; border-radius: 1rem; border: 1px solid rgba(23,23,23,.08);
  box-shadow: 0 25px 50px -15px rgba(0,0,0,.35); overflow: hidden; text-align: left;
}
.suggestions a { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; color: var(--ink); }
.suggestions a:hover, .suggestions a.is-active { background: var(--ivory); }
.suggestions img { width: 48px; height: 48px; border-radius: .6rem; object-fit: cover; flex-shrink: 0; }

/* Tabs */
.tab-btn {
  padding: .6rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: .875rem;
  border: 1px solid rgba(23,23,23,.12); background: #fff; color: var(--ink); transition: all .25s ease; white-space: nowrap;
}
.tab-btn:hover { border-color: var(--gold); }
.tab-btn[aria-selected="true"] { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 90; background: rgba(10,10,10,.94);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 78vh; max-width: min(1200px, 100%); border-radius: 1rem; object-fit: contain; box-shadow: 0 30px 60px rgba(0,0,0,.6); }
.lightbox-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 999px; display: grid; place-items: center;
  background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); transition: background .2s;
}
.lightbox-btn:hover { background: var(--gold); color: var(--charcoal); }

/* Cookie banner */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 80; max-width: 46rem; margin: 0 auto;
  background: var(--charcoal); color: #e5e5e5; border: 1px solid rgba(201,162,39,.35);
  border-radius: 1rem; padding: 1.25rem 1.5rem; box-shadow: 0 30px 60px -15px rgba(0,0,0,.55);
  transform: translateY(140%); transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.cookie-banner.is-visible { transform: translateY(0); }

/* Legal & prose */
.legal h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.5rem; font-weight: 700; color: var(--charcoal); margin: 2.25rem 0 .75rem; }
.legal h3 { font-weight: 700; color: var(--charcoal); margin: 1.5rem 0 .5rem; }
.legal p, .legal li { color: #404040; line-height: 1.8; }
.legal p { margin-bottom: 1rem; }
.legal ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1rem; }
.legal a { color: var(--emerald); text-decoration: underline; }

details.faq summary { list-style: none; cursor: pointer; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq[open] .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform .3s ease; }

.gold-divider { width: 64px; height: 3px; background: linear-gradient(90deg, var(--gold), transparent); border-radius: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .fade-up, .js .reveal { opacity: 1 !important; transform: none !important; }
}