/*
Theme Name: Flamingo Casino Hotel Theme
Theme URI: https://gevgelija.casino-f.com/
Author: SIKS Holding
Author URI: https://siks.me/
Description: Custom premium WordPress theme developed for Casino Flamingo Hotel Gevgelija. Features live XML jackpot integration, multilingual support, and luxury resort sections.
Version: 1.0.0
Text Domain: flamingo-casino-hotel
*/
/*
 * Partial stylesheets are no longer pulled in with @import - the browser could
 * only discover them after style.css had been downloaded and parsed, which made
 * them load one chain at a time. They are concatenated into a single cached
 * bundle by flamingo_get_css_bundle_url() in functions.php instead. Google
 * Fonts is preconnected + linked from the same place, for the same reason.
 */
@font-face {
  font-family: "EB Garamond";
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-display: swap;
}
:root {
  --bg-base: #0d0d0d;
  --bg-elevated: #16120d;
  --bg-header: rgba(10, 10, 10, 0.95);
  --border-hairline: #2a2620;
  --accent-gold: #c9a24b;
  --accent-amber: #ffbf00;
  --accent-red: #7e1c24;
  --interactive-blue: #0076ff;
  --jackpot-purple: #8b5cf6;
  --text-primary: #f3eee3;
  --text-muted: #9a9082;
  --font-heading: "EB Garamond", serif;
  --font-body: "IBM Plex Sans", sans-serif;
}
textarea {
  resize: none;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body,
html {
  height: 100%;
  overflow-x: hidden;
}
body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-primary);
  padding-top: 76px;
}

body.menu-open {
  overflow: hidden !important;
  height: 100dvh !important;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 8px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background-color: var(--bg-header);
  border-bottom: 1px solid var(--border-hairline);
  backdrop-filter: blur(8px);
  padding: 15px 0;
  transition: all 0.3s ease;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.header-logo-img {
  height: 45px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}

.header-logo-img:hover {
  transform: scale(1.02);
}

.main-navigation {
  flex-grow: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
}

.nav-list a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 400;
  transition: color 0.3s ease;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--accent-gold);
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 25px;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switcher a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: none !important;
  padding: 5px 0;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.lang-switcher a:hover {
  color: var(--text-primary);
}

.lang-switcher a.active {
  color: var(--accent-gold) !important;
}

.lang-switcher a:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.15);
  margin-left: 10px;
  pointer-events: none;
}

.btn-visit-us {
  background: transparent;
  color: var(--accent-gold) !important;
  border: 1px solid var(--accent-gold);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  padding: 10px 22px;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.btn-visit-us:hover {
  background-color: var(--accent-gold);
  color: #000000 !important;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}
/* =====================================================
   Footer Styles (Ažurirano)
   ===================================================== */
.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 64px 0 48px;
  gap: 64px;
  border-top: 1px solid var(--border-hairline);
  margin-top: 40px;
}

.footer-contact-list > * {
  width: 100%;
  display: flex;
  text-align: left;
}
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.footer-logo {
  height: 65px;
  object-fit: contain;
  margin-bottom: 8px;
}

.footer-disclaimer-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-disclaimer {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Stilovi za društvene mreže sa krugovima */
.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--text-muted);
  border-radius: 50%;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.footer-social a svg {
  fill: currentColor;
  transition: fill 0.3s ease;
}

.footer-social a:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* Desna strana za Explore i Contact kolone */
.footer-right {
  display: flex;
  justify-content: flex-end;
  gap: 120px;
}

.footer-col-title {
  font-size: 13px;
  text-align: left;
  font-weight: 600;
  color: var(--accent-gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: block;
}

.footer-links {
  display: flex;
  flex-direction: column;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links-list > a {
  color: var(--text-primary);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links-list > a:hover {
  color: var(--accent-gold);
}

.contact-text,
.contact-text-link {
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
  margin: 0;
}

.contact-text-link {
  transition: color 0.3s ease;
}

.contact-text-link:hover {
  color: var(--accent-gold);
}

.contact-phones {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-hours-highlight {
  color: var(--accent-gold);
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
}

/* Traka na dnu (Copyright i linkovi) */
.footer-bottom {
  border-top: 1px solid var(--border-hairline);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-legal-links a {
  color: var(--text-muted);
  font-size: 12px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legal-links a:hover {
  color: var(--text-primary);
}

.legal-separator {
  color: var(--text-muted);
  font-size: 12px;
}

/* =====================================================
   Mobilni uređaji (Zameni stari @media deo za footer)
   ===================================================== */
@media (max-width: 991px) {
  .footer-right {
    justify-content: space-between;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .footer-main {
    flex-direction: column;
    align-items: center;
    gap: 48px;
    padding-top: 48px;
  }

  .footer-left {
    align-items: center;
    text-align: center;
  }

  .footer-right {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 48px;
  }

  .footer-links {
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .footer-contact-list {
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
/* ========== DROPDOWN MENU (Casino) ========== */

/* Desktop: show sub-menu on hover */
.main-navigation .nav-list .menu-item-has-children {
  position: relative;
}

.main-navigation .nav-list .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg-header);
  border: 1px solid var(--border-hairline);
  min-width: 200px;
  z-index: 9999;
  list-style: none;
  border-radius: 4px;
  backdrop-filter: blur(8px);
}

/* Invisible bridge that extends hover zone between parent link and sub-menu */
.main-navigation .nav-list .menu-item-has-children::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 10px;
  pointer-events: auto;
}

.main-navigation .nav-list .menu-item-has-children:hover > .sub-menu {
  display: block;
}

.main-navigation .nav-list .sub-menu li a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.main-navigation .nav-list .sub-menu li a:hover {
  background-color: rgba(212, 175, 55, 0.1);
  color: var(--accent-gold);
}

/* Mobile: sub-menu hidden by default, toggled via JS */
.mobile-nav-list .sub-menu {
  display: none;
  list-style: none;
  padding-left: 20px;
  margin: 10px 0 0 0;
}

.mobile-nav-list .sub-menu.is-visible {
  display: block;
}

.mobile-nav-list .sub-menu li a {
  font-size: 18px;
  text-transform: none;
  letter-spacing: 1px;
  color: var(--text-muted);
  display: block;
  padding: 8px 0;
  text-decoration: none;
}

.mobile-nav-list .sub-menu li a:hover,
.mobile-nav-list .sub-menu li a.active {
  color: var(--accent-gold);
}

/* Optional: a small indicator for the dropdown toggle on mobile */
.mobile-dropdown-toggle {
  cursor: pointer;
}
/* Make the Casino span look and behave like a nav link */
.nav-list .dropdown-toggle {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.3s ease;
}
.nav-list .dropdown-toggle:hover {
  color: var(--accent-gold);
}

/* Mobile logo */
.mobile-menu-logo {
  height: 64px;
  width: auto;
  display: block;
}
.mobile-nav-list .mobile-dropdown-toggle {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: var(--font-heading);
  transition: color 0.3s ease;
  display: block;
  width: 100%;
  text-align: center;
}
.mobile-nav-list .mobile-dropdown-toggle:hover {
  color: var(--accent-gold);
}
.age-badge {
  height: 32px;
  width: 32px;
  border-radius: 50%;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 11px;
}

.footer-right {
  display: flex;
  flex: 1;
  justify-content: space-between;
  align-items: flex-start;
  gap: 64px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-gold);
  position: relative;
  text-transform: uppercase;
  width: fit-content;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links-list > a {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 14px;
  text-align: left;
  width: 100%;
  transition: color 0.2s ease;
}

.footer-links-list > a:hover {
  color: var(--accent-gold);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.contact-item-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.contact-item-link:hover {
  color: var(--accent-gold);
}

.contact-item-title {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.footer-right-last {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.open-hours-div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.open-hours {
  display: flex;
  flex-direction: column;
}

.open-hours-item {
  font-size: 32px;
  font-family: var(--font-heading);
  color: var(--accent-gold);
}

.open-hours-note {
  font-size: 12px;
  color: var(--text-muted);
}

.social-media {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.social-media-icons {
  display: flex;
  gap: 12px;
}

.social-media-icons > a {
  transition: all 0.2s ease;
}

.social-media-icons > a:hover {
  transform: scale(0.98);
}

.social-media-icons svg {
  fill: var(--accent-gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-legal-links {
  display: flex;
}

.footer-legal-links a {
  color: var(--text-muted);
  font-size: 12px;
  text-decoration: none;
  padding: 0 8px;
}

.footer-legal-links a:hover {
  color: var(--text-primary);
}

.footer-legal-links > a:not(:last-child) {
  border-right: 1px solid var(--border-hairline);
}

.error-404-main {
  min-height: 576px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 0;
  background-color: #0d0d0d; /* Čista tamna pozadina bez slike */
}

.error-404-content {
  max-width: 600px;
  margin: 0 auto;
}

/* Mali zlatni tekst na samom vrhu */
.error-code-badge {
  color: var(--accent-gold, #d4af37);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 600;
  display: block;
  margin-bottom: 25px;
}

/* Veliki, elegantni naslov sa slike */
.error-main-title {
  font-family: var(--font-heading), serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 25px;
}

.error-description {
  color: var(--text-muted, #9a9082);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 40px;
  font-family: var(--font-body), sans-serif;
}

/* Dugme sa zlatnim okvirom i prozirnom pozadinom */
.btn-outline-gold {
  display: inline-block;
  background-color: transparent;
  color: var(--accent-gold, #d4af37) !important;
  border: 1px solid var(--accent-gold, #d4af37);
  border-radius: 4px;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 3px;
  font-weight: 500;
  padding: 14px 42px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-outline-gold:hover {
  background-color: var(--accent-gold, #d4af37);
  color: #000000 !important;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.desktop-only {
  display: flex !important;
}

.mobile-navigation-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  background-color: rgba(13, 13, 13, 0.98);
  z-index: 9998;
  display: none;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s ease,
    visibility 0.5s;
}

.mobile-navigation-overlay.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 5px;
  z-index: 10000;
}

.hamburger-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.2s ease;
  transform-origin: center;
}

.mobile-menu-toggle.is-active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background-color: var(--accent-gold);
}

.mobile-menu-toggle.is-active .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.is-active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background-color: var(--accent-gold);
}

/* =====================================================
   Slots Section – re-used on homepage, slots, live-games, etc.
   ===================================================== */
.slots-section {
  display: flex;
  gap: 48px;
  padding: 64px 0 !important;
  align-items: stretch;
}

.slots-section:nth-of-type(odd) {
  flex-direction: row-reverse;
}

.slots-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.slots-subtitle {
  font-size: 12px;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  display: block;
}

.slots-title {
  font-size: 44px;
  font-weight: 400;
  font-family: var(--font-heading);
  line-height: 50px;
  padding-bottom: 16px;
  padding-top: 16px;
  margin-bottom: 16px;
  position: relative;
}

.slots-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 1px;
  background-color: var(--accent-gold);
}

.slots-title .highlight {
  color: var(--accent-gold);
}

.slots-description {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 26px;
  max-width: 560px;
  padding: 16px 0;
  margin: 0;
}

.slots-image {
  width: 50%;
  object-fit: cover;
  align-self: stretch;
  border-radius: 4px;
}

.wide-image .slots-image {
  width: 65%;
}

.slots-button {
  margin-top: 12px;
  border-radius: 4px;
  border: solid 1px var(--accent-gold);
  color: var(--accent-gold);
  background-color: transparent;
  padding: 12px 24px;
  font-size: 14px;
  cursor: pointer;
  width: fit-content;
  font-family: inherit;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    background-color 0.3s,
    color 0.3s;
  display: inline-block;
}

.slots-button:hover {
  background-color: var(--accent-gold);
  color: var(--bg-base);
}

.slots-divider {
  height: 1px;
  background-color: var(--border-hairline);
  margin: 32px 64px;
}

@media (max-width: 1024px) {
  .slots-section,
  .slots-section:nth-of-type(odd) {
    flex-direction: column;
    gap: 32px;
    padding: 32px 0 !important;
  }

  .slots-image {
    width: 100%;
    height: auto;
    max-height: none;
  }

  .slots-title {
    font-size: 28px;
    line-height: 34px;
  }

  .slots-description {
    font-size: 14px;
    line-height: 22px;
  }
}

@media (max-width: 991px) {
  body {
    padding-top: 57px;
  }

  body.menu-open {
    overflow: hidden;
  }

  .site-header {
    padding: 10px 0;
  }

  .header-logo-img {
    height: 36px;
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: flex;
  }
  .mobile-navigation-overlay {
    display: block;
  }
  .mobile-menu-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding: 40px 20px;
    gap: 28px;
  }
  .mobile-menu-nav {
    width: 100%;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
  }
  .mobile-nav-list {
    display: flex;
    flex-direction: column;
    list-style: none;
    align-items: center;
    gap: 24px;
    padding: 0;
    margin: 0;
    width: 100%;
  }
  .mobile-nav-list > li {
    width: 100%;
  }

  .mobile-nav-list a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--font-heading);
    transition: color 0.3s ease;
    width: 100%;
    display: block;
    text-align: center;
  }

  .mobile-nav-list a:hover,
  .mobile-nav-list a.active,
  .mobile-nav-list .current-menu-item a {
    color: var(--accent-gold);
  }

  .mobile-only-langs {
    justify-content: center;
    border-top: 1px solid var(--border-hairline);
    padding-top: 25px;
    width: 100%;
    gap: 16px;
  }
  .mobile-nav-list .sub-menu {
    margin: 0px;
    padding-left: 0px;
  }
  .mobile-only-langs a {
    font-size: 16px;
  }

  .footer-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
  }

  .footer-left {
    align-items: center;
  }

  .footer-disclaimer {
    max-width: 240px;
  }

  .footer-right-last {
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .footer-main {
    margin-top: 24px;
  }

  .footer-right-last {
    flex-direction: row;
    width: 100%;
    justify-content: center;
    gap: 32px;
  }

  .open-hours-item {
    text-align: center;
  }

  .footer-right {
    flex-direction: column;
    align-items: center;
    gap: 32px;
    width: 100%;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
  }

  .footer-col-title {
    width: 100%;
  }

  .footer-links-list,
  .footer-contact-list {
    align-items: center;
    width: 100%;
  }

  .contact-item {
    width: 100%;
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
  }

  .footer-legal-links {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .header-right-actions {
    gap: 12px;
  }

  .btn-visit-us {
    padding: 8px 14px;
    font-size: 11px;
  }

  .btn-gold {
    width: 100%;
    box-sizing: border-box;
  }
}

/* ---------- Caret down icon for dropdown menus ---------- */
.dropdown-toggle,
.mobile-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.caret-down {
  display: inline-block;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  color: currentColor;
}

/* Rotate caret on hover (desktop) */
.menu-item-has-children:hover .caret-down {
  transform: rotate(180deg);
}
/* =====================================================
   Loading Screen & CLS Prevention
   ===================================================== */

/* ---------- Prevent layout shift on all images ---------- */
img {
  max-width: 100%;
  height: auto;
}

/* ---------- Loading Screen ---------- */
.flamingo-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-base);
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
  opacity: 1;
  visibility: visible;
}

.flamingo-loader.loader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.loader-logo {
  width: 120px;
  height: auto;
  animation: loader-pulse 2s ease-in-out infinite;
}

@keyframes loader-pulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.loader-spinner {
  position: relative;
  width: 60px;
  height: 60px;
}

.spinner-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid transparent;
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  animation: loader-spin 0.8s linear infinite;
}

.spinner-ring::before,
.spinner-ring::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
}

.spinner-ring::before {
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  border-top-color: var(--accent-amber);
  animation: loader-spin 1.5s linear infinite reverse;
}

.spinner-ring::after {
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border-top-color: var(--accent-gold);
  animation: loader-spin 2s linear infinite;
}

@keyframes loader-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ---------- Keep page hidden until loaded ---------- */
body.loading {
  overflow: hidden;
}

body.loaded .flamingo-loader {
  opacity: 0;
  visibility: hidden;
}

/* ---------- Prevent FOUT (Flash of Unstyled Text) ---------- */
body {
  font-display: swap;
}

/* ---------- Reserve space for specific elements ---------- */
.hero-section {
  background-color: var(--bg-base);
}

/* ---------- Archive / Page Hero ---------- */
.archive-hero-section {
  background-size: cover;
  background-position: center;
  height: 320px;
  display: flex;
  align-items: center;
  text-align: center;
  border-bottom: 1px solid var(--border-hairline);
  margin-bottom: 60px;
}

.archive-hero-content {
  max-width: 750px;
  margin: 0 auto;
}

.archive-hero-content .section-subtitle {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  line-height: 100%;
  letter-spacing: 2.5px;
  text-align: center;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 12px;
  display: block;
}

.archive-main-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 56px;
  line-height: 100%;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .archive-main-title {
    font-size: 40px;
  }
}

.archive-hero-desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 25.5px;
  text-align: center;
  color: var(--text-muted);
  margin: 0;
  padding-bottom: 0;
}

.archive-hero-desc::after {
  display: none !important;
}

@media (max-width: 768px) {
  .archive-hero-section {
    height: auto;
    min-height: 280px;
    max-height: none;
    padding: 40px 0;
  }
}

.slots-gallery-slider .slick-slide {
  min-height: 300px;
}

.legal-content {
  margin: 0 auto;
  padding: 80px 0;
  color: var(--text-primary);
}

.legal-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.legal-content ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.legal-content ul li {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.6;
}

.legal-content ul li a {
  color: var(--accent-gold);
  text-decoration: none;
}

.legal-content ul li a:hover {
  text-decoration: underline;
}

.legal-content strong {
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .legal-content {
    padding: 40px 0;
  }
}

/* Lottery schedule list */
.lottery-schedule {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 10px;
}

.lottery-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-hairline);
  font-size: 16px;
  color: var(--text-primary);
}

.lottery-item--special {
  color: var(--accent-gold);
}

.lottery-prize {
  font-weight: 600;
  font-size: 18px;
  color: var(--accent-gold);
  font-family: var(--font-heading);
}

.lottery-notes {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.lottery-notes p {
  margin: 0;
}
.sub-menu .sub-menu-separator {
  border-top: 1px solid var(--border-hairline);
  margin: 5px 0;
  height: 0;
  padding: 0;
  pointer-events: none;
}
.events-section .events-header-text {
  margin: unset;
}

/* =====================================================
   Flamingo Custom Lightbox
   ===================================================== */
.flamingo-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}

.flamingo-lightbox.flamingo-lightbox-open {
  display: flex;
}

.flamingo-lightbox-inner {
  position: relative;
  width: 800px;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flamingo-lightbox-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}

.flamingo-lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--accent-gold);
  font-size: 32px;
  cursor: pointer;
  z-index: 10;
  padding: 4px 12px;
  line-height: 1;
  transition: opacity 0.2s ease;
  opacity: 0.8;
}

.flamingo-lightbox-close:hover {
  opacity: 1;
}

.flamingo-lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--accent-gold);
  font-size: 40px;
  cursor: pointer;
  z-index: 10;
  padding: 8px;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.flamingo-lightbox-arrow:hover {
  opacity: 1;
  background: none;
  border: none;
}

.flamingo-lightbox-prev {
  left: -60px;
}

.flamingo-lightbox-next {
  right: -60px;
}

.flamingo-lightbox-caption {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 12px;
  text-align: center;
  font-family: var(--font-body);
}

.flamingo-lightbox-counter {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 4px;
  text-align: center;
  font-family: var(--font-body);
  opacity: 0.7;
}

@media (max-width: 768px) {
  .flamingo-lightbox-prev {
    left: 10px;
  }

  .flamingo-lightbox-next {
    right: 10px;
  }

  .flamingo-lightbox-arrow {
    padding: 12px 10px;
    font-size: 22px;
  }

  .flamingo-lightbox-img {
    max-width: 100vw;
    max-height: 70vh;
  }

  .flamingo-lightbox-inner {
    max-width: 100vw;
  }
}
