/* ==========================================================================
   JALTARA WATERPARK — UNIFIED RESPONSIVE ARCHITECTURE
   Version: S5-N2.4
   Scope: Public Website + Admin Panel
   
   BREAKPOINT SYSTEM:
   320px  — Minimum supported mobile
   360px  — Common Android small
   375px  — iPhone SE / standard mobile
   390px  — iPhone 14 standard
   400px  — Common mid-range Android
   404px  — Specific test viewport
   412px  — Pixel / mid-range Android
   430px  — iPhone 14 Plus / large mobile
   432px  — Specific test viewport
   600px  — Tablet small / large mobile landscape
   768px  — iPad portrait / tablet
   1024px — Desktop small / iPad landscape
   1280px — Desktop standard
   1920px — Desktop large

   ARCHITECTURE:
   - No overflow-x hiding hacks unless source overflow is fixed
   - All containers use width:100%, max-width, min-width:0
   - Flex/grid children use min-width:0 where needed
   - Mobile-first where practical
   ========================================================================== */

/* ==========================================================================
   SECTION 1: BASE DOCUMENT — Prevent overflow
   ========================================================================== */

html {
  overflow-x: hidden; /* Defensive layer ONLY — all actual sources fixed below */
  max-width: 100vw;
}

body {
  overflow-x: hidden; /* Defensive layer ONLY */
  max-width: 100vw;
  min-width: 0;
}

/* All flex/grid children that can cause overflow */
* {
  min-width: 0; /* Prevents flex children from overflowing their containers */
  box-sizing: border-box;
}

img, video, svg {
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   SECTION 2: PUBLIC WEBSITE — GLOBAL CONTAINER
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max-width, 1240px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

/* ==========================================================================
   SECTION 3: PUBLIC WEBSITE — TOP BAR
   ========================================================================== */

@media (max-width: 900px) {
  .top-bar-content {
    flex-wrap: wrap;
    gap: 8px;
  }
  .top-bar-left,
  .top-bar-right {
    flex-wrap: wrap;
    gap: 6px;
  }
  .top-item {
    font-size: 0.75rem;
  }
}

@media (max-width: 640px) {
  .top-bar {
    display: none; /* Hide top bar on small mobile — header takes full priority */
  }
}

/* ==========================================================================
   SECTION 4: PUBLIC WEBSITE — SITE HEADER
   ========================================================================== */

.site-header {
  width: 100%;
  max-width: 100%;
}

.header-container {
  width: 100%;
  max-width: var(--container-max-width, 1240px);
  margin-left: auto;
  margin-right: auto;
}

/* Hide desktop navigation on mobile, show mobile toggle */
@media (max-width: 900px) {
  .main-nav {
    display: none !important;
  }
  .mobile-nav-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: var(--color-primary, #0878E8);
    font-size: 1.3rem;
    cursor: pointer;
    border-radius: 8px;
    flex-shrink: 0;
  }
  .header-container {
    height: 64px;
    gap: 12px;
  }
  .brand-logo img {
    height: 44px;
    width: auto;
  }
}

@media (max-width: 480px) {
  .header-container {
    height: 60px;
    padding: 0 16px;
  }
  .brand-logo img {
    height: 40px;
  }
  #headerBookBtn {
    padding: 8px 14px;
    font-size: 0.78rem;
    white-space: nowrap;
  }
}

@media (max-width: 360px) {
  .header-container {
    height: 56px;
    padding: 0 12px;
  }
  .brand-logo img {
    height: 36px;
  }
  #headerBookBtn {
    display: none; /* On very small screens, hide header book btn — drawer has one */
  }
}

/* ==========================================================================
   SECTION 5: PUBLIC WEBSITE — MOBILE NAVIGATION DRAWER
   
   FIX: Drawer was fixed 300px — on 320px phone this nearly fills viewport.
   NEW: Drawer width = min(300px, calc(100vw - 24px))
   ========================================================================== */

.mobile-nav-drawer {
  /* Source fix: width must never exceed viewport */
  width: min(300px, calc(100vw - 24px)) !important;
  max-width: calc(100vw - 24px);
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
  /* Ensure right position matches width so it starts fully offscreen */
  right: calc(-1 * min(300px, calc(100vw - 24px)));
}

.mobile-nav-drawer.active {
  right: 0 !important;
}

.mobile-nav-drawer .drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  width: 100%;
}

.mobile-nav-drawer .drawer-links {
  width: 100%;
  overflow: hidden;
}

.mobile-nav-drawer .drawer-link {
  display: block;
  width: 100%;
  white-space: normal;    /* Allow wrapping for long labels */
  word-break: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 44px;       /* Touch target */
  display: flex;
  align-items: center;
  padding: 10px 0;
  box-sizing: border-box;
}

@media (max-width: 360px) {
  .mobile-nav-drawer {
    padding: 20px 16px !important;
  }
  .mobile-nav-drawer .drawer-link {
    font-size: 1rem !important;
  }
}

/* ==========================================================================
   SECTION 6: PUBLIC WEBSITE — HERO SECTION
   
   FIX: Hero had desktop padding/positioning on mobile.
   ========================================================================== */

.hero-section {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
}

.hero-bg {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-content {
  width: 100%;
  max-width: 900px;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

.hero-title {
  /* clamp ensures it scales but MUST have a small-screen minimum */
  font-size: clamp(1.6rem, 5.5vw, 4.4rem);
  word-break: break-word;
  hyphens: auto;
  overflow-wrap: break-word;
  white-space: normal !important; /* Override any nowrap */
}

.hero-subtitle {
  font-size: clamp(0.875rem, 2.5vw, 1.2rem);
  word-break: break-word;
  overflow-wrap: break-word;
}

.hero-badge {
  font-size: clamp(0.6rem, 2vw, 0.9rem);
  white-space: normal;
  word-break: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.hero-cta-group {
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.hero-cta-group .btn {
  white-space: nowrap;
  min-width: 0;
}

@media (max-width: 900px) {
  .hero-section {
    padding: 70px 0 90px;
    min-height: 70vh;
  }
  .hero-content {
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero-title {
    font-size: clamp(1.8rem, 6vw, 2.8rem);
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding: 55px 0 70px;
    min-height: 60vh;
  }
  .hero-content {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero-title {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }
  .hero-subtitle {
    font-size: 0.9rem;
  }
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }
  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 430px) {
  .hero-section {
    padding: 50px 0 60px;
    min-height: 55vh;
  }
  .hero-title {
    font-size: clamp(1.4rem, 8vw, 2rem);
    line-height: 1.2;
  }
  .hero-badge {
    font-size: 0.6rem;
    letter-spacing: 0;
    padding: 6px 12px;
  }
}

@media (max-width: 360px) {
  .hero-section {
    padding: 45px 0 55px;
  }
  .hero-title {
    font-size: 1.4rem;
  }
  .hero-content {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* ==========================================================================
   SECTION 7: PUBLIC WEBSITE — FLOATING INFO BAR
   ========================================================================== */

.floating-info-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.floating-info-bar {
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 640px) {
  .floating-info-wrapper {
    margin-top: -20px;
  }
  .floating-info-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 16px 12px;
  }
}

@media (max-width: 430px) {
  .floating-info-bar {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 10px;
  }
}

/* ==========================================================================
   SECTION 8: PUBLIC WEBSITE — TICKET & PACKAGE CARDS
   
   FIX: minmax(280px, 1fr) on 320px screen forces cards wider than viewport
   ========================================================================== */

.packages-grid-5 {
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
}

.package-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.package-card-extended {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.ticket-tier-card {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* All generic grids */
.grid-2,
.grid-3,
.grid-4 {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 640px) {
  .packages-grid-5 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 430px) {
  .packages-grid-5,
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .package-card {
    padding: 20px 16px;
  }
}

@media (max-width: 360px) {
  .package-card {
    padding: 16px 12px;
  }
}

/* ==========================================================================
   SECTION 9: PUBLIC WEBSITE — PRICING / COST ESTIMATOR
   ========================================================================== */

.calc-widget-box {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.calc-visitor-grid,
.calc-addons-grid {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 640px) {
  .calc-visitor-grid,
  .calc-addons-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .calc-widget-box {
    padding: 16px;
  }
}

@media (max-width: 430px) {
  .calc-widget-box {
    padding: 14px 12px;
  }
}

/* ==========================================================================
   SECTION 10: PUBLIC WEBSITE — FAQ
   ========================================================================== */

.faq-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.faq-item {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.faq-question {
  width: 100%;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.faq-answer p {
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

@media (max-width: 640px) {
  .section-faq {
    padding: 40px 0;
  }
  .faq-question {
    font-size: 0.95rem;
    padding: 14px 16px;
    min-height: 44px;
  }
  .faq-answer p {
    font-size: 0.875rem;
    padding: 0 16px 14px;
  }
}

@media (max-width: 430px) {
  .faq-question {
    font-size: 0.9rem;
    padding: 12px 14px;
  }
}

  @media (max-width: 991px) {
    .faq-guide-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      gap: 20px !important;
    }
    .section-faq-guide {
      padding: 60px 0 !important;
    }
  }

  @media (max-width: 640px) {
    .faq-guide-grid {
      grid-template-columns: 1fr !important;
      gap: 16px !important;
    }
    .section-faq-guide {
      padding: 48px 0 !important;
    }
  }

/* ==========================================================================
   SECTION 11: PUBLIC WEBSITE — FOOTER
   ========================================================================== */

footer,
.site-footer {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.footer-top-grid {
  width: 100%;
}

@media (max-width: 991px) and (min-width: 641px) {
  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 40px 32px !important;
  }
}

@media (max-width: 640px) {
  .footer-top-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    gap: 14px !important;
    text-align: center !important;
  }
  .footer-bottom > div:last-child {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 14px !important;
  }
}

@media (max-width: 430px) {
  .site-footer,
  footer {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ==========================================================================
   SECTION 12: PUBLIC WEBSITE — SECTION CONTAINERS
   ========================================================================== */

section {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.section-content-wrapper,
.section-inner,
.section-wrap {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* ==========================================================================
   SECTION 13: PUBLIC WEBSITE — MODALS & OVERLAYS
   ========================================================================== */

.modal-dialog,
.modal-box {
  width: calc(100vw - 32px);
  max-width: 560px;
  margin: 16px auto;
  box-sizing: border-box;
  overflow-y: auto;
  max-height: calc(100vh - 32px);
}

@media (max-width: 430px) {
  .modal-dialog,
  .modal-box {
    width: calc(100vw - 20px);
    margin: 10px;
    border-radius: 12px;
  }
}

/* ==========================================================================
   SECTION 14: PUBLIC WEBSITE — FORMS
   ========================================================================== */

.form-group,
.form-control,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.form-row {
  width: 100%;
}

@media (max-width: 640px) {
  .form-row {
    flex-direction: column;
    gap: 12px;
  }
  .form-row > * {
    width: 100%;
  }
}

/* ==========================================================================
   SECTION 15: PUBLIC WEBSITE — TABLES
   ========================================================================== */

.table-responsive,
.comparison-table-wrapper {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

table {
  min-width: 0;
}

/* ==========================================================================
   SECTION 16: PUBLIC WEBSITE — BUTTONS
   ========================================================================== */

.btn {
  white-space: nowrap;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 430px) {
  .btn-lg {
    padding: 14px 24px;
    font-size: 0.95rem;
  }
  .btn-sm {
    padding: 7px 14px;
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   SECTION 17: PUBLIC WEBSITE — TYPOGRAPHY SYSTEM
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
}

p, span, li, a {
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

@media (max-width: 430px) {
  .section-title {
    font-size: clamp(1.3rem, 6vw, 2rem);
    line-height: 1.25;
  }
  .section-subtitle {
    font-size: 0.875rem;
  }
  .page-hero .hero-title {
    font-size: clamp(1.3rem, 7vw, 2rem);
  }
}

@media (max-width: 360px) {
  .section-title {
    font-size: clamp(1.2rem, 7vw, 1.8rem);
  }
}

/* ==========================================================================
   SECTION 18: PUBLIC WEBSITE — SPACING SYSTEM
   ========================================================================== */

@media (max-width: 640px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 430px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (max-width: 360px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .section-padding,
  .py-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

/* ==========================================================================
   SECTION 19: PUBLIC WEBSITE — FLOATING ELEMENTS
   ========================================================================== */

/* Ensure any fixed floating elements don't cause overflow */
[style*="position: fixed"],
[style*="position:fixed"] {
  max-width: calc(100vw - 20px);
  box-sizing: border-box;
}

/* WhatsApp / support chat buttons */
.whatsapp-concierge-card,
.whatsapp-btn,
.floating-support {
  max-width: calc(100vw - 40px);
  box-sizing: border-box;
}

@media (max-width: 430px) {
  .whatsapp-concierge-card {
    right: 12px !important;
    bottom: 12px !important;
    left: auto;
  }
}

/* ==========================================================================
   SECTION 20: PUBLIC WEBSITE — CAROUSELS & SLIDERS
   ========================================================================== */

.carousel-viewport,
.slider-track-wrapper,
[class*="carousel"],
[class*="slider"] {
  overflow: hidden;
  max-width: 100%;
}

/* ==========================================================================
   SECTION 21: PUBLIC WEBSITE — CALENDARS
   ========================================================================== */

.calendar-scroll-container,
.booking-calendar-wrap {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

/* ==========================================================================
   SECTION 22: PUBLIC WEBSITE & ADMIN — CHARTS
   ========================================================================== */

/* Scoped strictly to chart containers and canvas, never matching icons or inline elements */
.chart-container,
.chart-wrapper,
.chart-card canvas,
canvas[class*="chart"],
canvas[class*="Chart"],
div[class*="chart-wrap"],
div[class*="ChartWrap"] {
  width: 100% !important;
  max-width: 100% !important;
}

/* Explicit protection for all font awesome and navigation icons */
i[class*="fa-"],
i.fa-chart-pie,
i.fa-chart-line,
i.fa-chart-bar,
.nav-item i {
  width: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;
  flex-shrink: 0 !important;
}

/* ==========================================================================
   SECTION 23: PUBLIC WEBSITE — PAGE-SPECIFIC RESPONSIVE FIXES
   ========================================================================== */

/* Attractions page */
.attractions-grid,
.rides-grid,
.spotlight-specs-grid {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 640px) {
  .attractions-grid {
    grid-template-columns: 1fr;
  }
}

/* Gallery page */
.gallery-grid {
  width: 100%;
  max-width: 100%;
}

.gallery-tile-wide,
.gallery-tile-tall {
  min-width: 0;
  max-width: 100%;
}

/* Events page */
.events-grid,
.event-card {
  min-width: 0;
  max-width: 100%;
}

/* Food page */
.food-venues-list {
  width: 100%;
  max-width: 100%;
}

/* Merchandise page */
.products-grid,
.product-card {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 430px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 360px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* Booking flow */
.booking-step-panel {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.booking-layout-grid {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 900px) {
  .booking-sidebar-card {
    position: static !important;
    margin-top: 24px;
    width: 100%;
    box-sizing: border-box;
  }
}

/* Contact page */
.contact-grid {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Plan Your Visit */
.plan-steps-grid,
.bring-grid {
  width: 100%;
  max-width: 100%;
}

/* Offers page */
.offers-grid {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 640px) {
  .offers-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   SECTION 24: ADMIN PANEL — GLOBAL ADMIN LAYOUT
   ========================================================================== */

.admin-layout {
  width: 100vw;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

.admin-main-wrapper,
.admin-main {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  min-width: 0;
}

.admin-workspace {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  min-width: 0;
}

.admin-workspace-inner {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* ==========================================================================
/* Mobile triggers hidden on desktop by default */
.mobile-menu-trigger,
.mobile-sidebar-toggle {
  display: none;
}

@media (max-width: 1024px) {
  .admin-sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    bottom: 0;
    z-index: 1050;
    transition: left 0.3s ease;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.2);
  }
  .admin-sidebar.mobile-open {
    left: 0;
  }
  /* Backdrop for mobile sidebar */
  .admin-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1040;
  }
  .admin-sidebar-backdrop.active {
    display: block;
  }
  .mobile-menu-trigger,
  .mobile-sidebar-toggle,
  .sidebar-toggle-btn,
  .sidebar-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--admin-text-main, #1E293B);
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 8px;
    flex-shrink: 0;
  }
}

@media (max-width: 768px) {
  .mobile-menu-trigger,
  .mobile-sidebar-toggle,
  .sidebar-toggle-btn,
  .sidebar-toggle {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

/* ==========================================================================
   SECTION 26: ADMIN PANEL — HEADER
   ========================================================================== */

.admin-header {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.header-left,
.header-right {
  min-width: 0;
}

.header-breadcrumbs {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .admin-header {
    height: 60px;
    min-height: 60px;
    padding: 0 16px;
  }
  .header-breadcrumbs .current {
    display: none; /* Hide deepest crumb on very small screens */
  }
  .admin-profile-btn .profile-meta {
    display: none; /* Hide name/role on small screens */
  }
  .admin-profile-btn .profile-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }
  .header-search-trigger,
  .header-occupancy-pill,
  .search-shortcut-badge {
    display: none !important;
  }
  .global-search-trigger,
  .global-search-wrap {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .admin-header {
    height: 56px;
    min-height: 56px;
    padding: 0 14px;
    gap: 8px;
  }
  .header-icon-btn {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 430px) {
  .admin-header {
    height: 52px;
    min-height: 52px;
    padding: 0 12px;
  }
  /* Hide secondary header actions on very small mobile */
  .header-right > *:not(#profileTriggerBtn):not(#notifTriggerBtn):not(.mobile-menu-trigger) {
    display: none !important;
  }
}

/* ==========================================================================
   SECTION 27: ADMIN PANEL — KPI CARDS
   ========================================================================== */

.kpi-grid,
.kpi-cards-row,
.stat-cards-grid {
  width: 100%;
  max-width: 100%;
}

.kpi-card,
.stat-card {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .kpi-card {
    padding: 14px 12px;
  }
  .kpi-card .kpi-value {
    font-size: 1.3rem;
  }
  .kpi-card .kpi-label {
    font-size: 0.75rem;
  }
}

@media (max-width: 430px) {
  .kpi-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .kpi-card {
    padding: 12px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
}

@media (max-width: 360px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   SECTION 28: ADMIN PANEL — PAGE HEADER & ACTIONS
   ========================================================================== */

.page-header {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.page-header-actions {
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .page-header-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .page-header-title,
  .page-header h1,
  .page-header h2 {
    font-size: clamp(1.1rem, 4vw, 1.4rem);
  }
  .page-header-actions .btn {
    padding: 8px 14px;
    font-size: 0.82rem;
  }
}

@media (max-width: 430px) {
  .page-header-actions {
    flex-direction: column;
    gap: 8px;
  }
  .page-header-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   SECTION 29: ADMIN PANEL — FILTERS & SEARCH
   ========================================================================== */

.filter-bar,
.filters-row,
.filter-group {
  width: 100%;
  max-width: 100%;
  flex-wrap: wrap;
  gap: 10px;
  box-sizing: border-box;
}

.filter-bar select,
.filter-bar input,
.filter-bar .search-input {
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-bar > * {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .filter-bar {
    gap: 8px;
  }
}

/* ==========================================================================
   SECTION 30: ADMIN PANEL — DATA TABLES
   ========================================================================== */

.admin-table-wrapper,
.data-table-wrap,
.table-container {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
}

.admin-table,
.data-table {
  min-width: 600px; /* Tables can scroll horizontally */
  width: 100%;
}

@media (max-width: 768px) {
  .admin-table-wrapper {
    border: 1px solid var(--admin-card-border, #E2E8F0);
    border-radius: 12px;
  }

  /* Responsive Employee Table: hide secondary fields on tablet/mobile so core info is readable */
  #employeeTableContainer table.data-table th:nth-child(6),
  #employeeTableContainer table.data-table td:nth-child(6),
  #employeeTableContainer table.data-table th:nth-child(7),
  #employeeTableContainer table.data-table td:nth-child(7),
  #employeeTableContainer table.data-table th:nth-child(8),
  #employeeTableContainer table.data-table td:nth-child(8),
  #employeeTableContainer table.data-table th:nth-child(9),
  #employeeTableContainer table.data-table td:nth-child(9),
  #employeeTableContainer table.data-table th:nth-child(10),
  #employeeTableContainer table.data-table td:nth-child(10) {
    display: none !important;
  }

  #employeeTableContainer table.data-table {
    min-width: 520px;
  }
}

@media (max-width: 480px) {
  #employeeTableContainer table.data-table th:nth-child(1),
  #employeeTableContainer table.data-table td:nth-child(1) {
    display: none !important;
  }
  #employeeTableContainer table.data-table {
    min-width: 440px;
  }
}


/* ==========================================================================
   SECTION 31: ADMIN PANEL — SUBNAV BAR
   ========================================================================== */

.admin-subnav-bar {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  white-space: nowrap;
  display: flex;
  flex-shrink: 0;
}

.admin-subnav-bar::-webkit-scrollbar {
  display: none;
}

.admin-subnav-item {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .admin-subnav-bar {
    padding: 0 16px;
    gap: 4px;
  }
  .admin-subnav-item {
    padding: 10px 14px;
    font-size: 0.82rem;
  }
}

@media (max-width: 430px) {
  .admin-subnav-bar {
    padding: 0 12px;
  }
  .admin-subnav-item {
    padding: 8px 12px;
    font-size: 0.78rem;
  }
}

/* Dashboard Split Grid (Transactions & Telemetry) responsive stacking */
.dashboard-split-grid,
.dashboard-transactions-telemetry-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 992px) {
  .dashboard-split-grid,
  .dashboard-transactions-telemetry-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

/* ==========================================================================
   SECTION 32: ADMIN PANEL — CARDS
   ========================================================================== */

.admin-card,
.data-card,
.content-card {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .admin-card,
  .data-card {
    padding: 16px 14px;
  }
}

@media (max-width: 430px) {
  .admin-card,
  .data-card {
    padding: 14px 12px;
    border-radius: 12px;
  }
}

/* ==========================================================================
   SECTION 33: ADMIN PANEL — MODALS & DRAWERS
   ========================================================================== */

.admin-modal,
.modal-container {
  width: calc(100vw - 32px);
  max-width: 640px;
  box-sizing: border-box;
  overflow-y: auto;
  max-height: calc(100vh - 32px);
}

.admin-drawer {
  width: min(500px, calc(100vw - 20px));
  max-width: calc(100vw - 20px);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-height: 100vh;
}

.admin-drawer .drawer-body {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.admin-drawer .drawer-footer {
  flex-shrink: 0;
}

.customer-drawer-tabs {
  display: flex !important;
  gap: 6px !important;
  border-bottom: 1px solid var(--admin-card-border, #E2E8F0);
  margin-bottom: 16px;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding-bottom: 8px !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  white-space: nowrap !important;
}

.customer-drawer-tabs button,
.customer-drawer-tabs .btn-admin {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  min-width: max-content !important;
}

.customer-drawer-actions {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 8px !important;
}

.customer-drawer-actions button,
.customer-drawer-actions .btn-admin {
  width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-size: 0.78rem !important;
  padding: 6px 8px !important;
}

@media (max-width: 640px) {
  .admin-modal {
    width: calc(100vw - 20px);
    margin: 10px auto;
    border-radius: 12px;
  }
  .admin-drawer {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    right: 0;
  }
  .admin-drawer .drawer-footer {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    padding: 12px !important;
  }
  .customer-drawer-actions {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
}

/* ==========================================================================
   SECTION 34: ADMIN PANEL — FINANCE TABLES
   ========================================================================== */

.finance-table-wrapper,
.accounting-table-wrap,
.invoice-table-wrap,
.payroll-table-wrap {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.finance-table,
.accounting-table,
.invoice-table {
  min-width: 700px; /* Financial tables need horizontal scroll on mobile */
  width: 100%;
}

@media (max-width: 768px) {
  /* Finance KPI cards */
  .finance-kpi-grid,
  .accounting-kpi-grid,
  .income-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 430px) {
  .finance-kpi-grid,
  .accounting-kpi-grid,
  .income-kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   SECTION 35: ADMIN PANEL — BUTTONS
   ========================================================================== */

.btn-action {
  white-space: nowrap;
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .btn-action {
    padding: 8px 14px;
    font-size: 0.82rem;
  }
}

@media (max-width: 430px) {
  .btn-action {
    padding: 7px 12px;
    font-size: 0.8rem;
  }
  /* Action button groups should wrap */
  .action-group,
  .btn-group {
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* ==========================================================================
   SECTION 36: ADMIN PANEL — CHARTS & ANALYTICS
   ========================================================================== */

.chart-container,
[class*="chart-wrap"],
[class*="analytics-card"] {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

canvas {
  max-width: 100% !important;
  height: auto !important;
}

/* ==========================================================================
   SECTION 37: ADMIN PANEL — CALENDARS
   ========================================================================== */

.calendar-container,
.booking-calendar,
.shift-calendar {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

/* ==========================================================================
   SECTION 38: ADMIN PANEL — FORMS
   ========================================================================== */

.admin-form .form-group,
.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.admin-form .form-row,
.admin-form .form-grid {
  width: 100%;
}

@media (max-width: 768px) {
  .admin-form .form-row,
  .admin-form .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   SECTION 39: ADMIN PANEL — AI COMPONENTS
   ========================================================================== */

.ai-insight-card,
.ai-recommendation-card,
[class*="ai-card"] {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .ai-insight-card,
  .ai-recommendation-card {
    padding: 16px 14px;
  }
}

/* ==========================================================================
   SECTION 40: ADMIN PANEL — ATTENDANCE / HR / MARKETING PAGE-SPECIFIC
   ========================================================================== */

.attendance-kpi-grid,
.hr-kpi-grid,
.campaign-kpi-grid {
  width: 100%;
  max-width: 100%;
}

.demand-heatmap-grid,
.heatmap-day-header-grid {
  overflow-x: auto;
  max-width: 100%;
}

.segment-catalog-grid {
  width: 100%;
}

@media (max-width: 640px) {
  .attendance-kpi-grid,
  .hr-kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 430px) {
  .attendance-kpi-grid,
  .hr-kpi-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   SECTION 41: ADMIN PANEL — WORKSPACE SECTIONS
   ========================================================================== */

@media (max-width: 640px) {
  .admin-workspace {
    padding: 14px;
  }
}

@media (max-width: 430px) {
  .admin-workspace {
    padding: 12px;
  }
}

@media (max-width: 360px) {
  .admin-workspace {
    padding: 10px;
  }
}

/* ==========================================================================
   SECTION 42: GLOBAL TOUCH TARGETS
   ========================================================================== */

@media (max-width: 1024px) {
  /* All interactive elements must have at minimum 44px touch target */
  button,
  a,
  [role="button"],
  .btn,
  .nav-item,
  .drawer-link,
  .tab-item,
  .accordion-trigger {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  
  /* Exceptions for inline text links */
  p a,
  .breadcrumb a,
  .footer a {
    min-height: unset;
    display: inline;
  }
}

/* ==========================================================================
   SECTION 43: GLOBAL ACCESSIBILITY
   ========================================================================== */

:focus-visible {
  outline: 2px solid var(--color-primary, #0878E8);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ==========================================================================
   SECTION 44: OVERFLOW AUDIT UTILITY (Development only)
   Remove before production
   ========================================================================== */

/* Uncomment below to highlight overflow culprits during debugging:
* {
  outline: 1px solid rgba(255,0,0,0.1);
}
*/

/* ==========================================================================
   SECTION 45: SAFE AREA INSETS (iPhone notch / Dynamic Island)
   ========================================================================== */

@supports (padding: max(0px)) {
  .site-header,
  .admin-header {
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
  }
  .mobile-nav-drawer {
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }
}

/* ==========================================================================
   SECTION 46: UIUX-04 — 1080P DESKTOP SCALE & PIXEL-PERFECT VISUAL MATCH
   Viewports: 1440px, 1600px, 1920px (User Reference Standard)
   ========================================================================== */

@media (min-width: 1440px) {
  :root {
    --container-max-width: 1400px;
  }
  .container,
  .header-container {
    max-width: 1400px;
    padding-left: 28px;
    padding-right: 28px;
  }
  .nav-list {
    gap: 20px;
  }
  .nav-link {
    font-size: 0.94rem;
    padding: 8px 10px;
  }
  .hero-title {
    font-size: 58px;
  }
  .hero-subtitle {
    font-size: 18.5px;
    max-width: 820px;
  }
  .section-header .section-title {
    font-size: 38px;
  }
  .section-header .section-subtitle {
    font-size: 17px;
  }
  .attractions-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 28px !important;
  }
  .merch-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
  }
}

@media (min-width: 1600px) {
  :root {
    --container-max-width: 1560px;
  }
  .container,
  .header-container {
    max-width: 1560px;
    padding-left: 32px;
    padding-right: 32px;
  }
  .site-header {
    height: 80px;
  }
  .header-container {
    height: 80px;
  }
  .brand-logo img {
    height: 60px;
  }
  .nav-list {
    gap: 24px;
  }
  .nav-link {
    font-size: 0.96rem;
    padding: 8px 10px;
  }
  #headerBookBtn {
    font-size: 0.9rem;
    padding: 10px 24px;
  }
  .hero-title {
    font-size: 64px;
    line-height: 1.15;
  }
  .hero-subtitle {
    font-size: 19px;
    max-width: 840px;
    line-height: 1.6;
  }
  .section-header .section-title {
    font-size: 40px;
  }
  .section-header .section-subtitle {
    font-size: 17.5px;
  }
  .attractions-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
  }
  .merch-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
  }
}

@media (min-width: 1800px) {
  :root {
    --container-max-width: 1620px;
  }
  .container,
  .header-container {
    max-width: 1620px;
    padding-left: 32px;
    padding-right: 32px;
  }
  
  /* Top Notification Bar */
  .top-bar {
    padding: 8px 0;
    font-size: 0.85rem;
  }
  
  /* Sticky Main Header */
  .site-header {
    height: 80px;
    background: #FFFFFF;
    box-shadow: 0 2px 12px rgba(6, 59, 145, 0.08);
  }
  .header-container {
    height: 80px;
    max-width: 1620px;
  }
  .brand-logo img {
    height: 62px;
  }
  .nav-list {
    gap: 24px;
  }
  .nav-link {
    font-size: 0.96rem;
    font-weight: 600;
    color: #0F172A;
    padding: 8px 8px;
    position: relative;
    transition: color 0.2s ease;
  }
  .nav-link:hover {
    color: #0878E8;
  }
  .nav-link.active {
    color: #0878E8 !important;
  }
  .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 8px;
    right: 8px;
    height: 2.5px;
    background: #0878E8;
    border-radius: 9999px;
  }
  
  #headerBookBtn,
  .header-actions .btn-primary {
    background: linear-gradient(135deg, #FF6B4A 0%, #EC3B83 100%) !important;
    border-radius: 9999px !important;
    padding: 10px 24px !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 15px rgba(255, 107, 74, 0.4) !important;
    text-transform: uppercase !important;
    border: none !important;
  }
  #headerBookBtn:hover,
  .header-actions .btn-primary:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 24px rgba(236, 59, 131, 0.5) !important;
  }

  /* Hero Section */
  .hero-section {
    min-height: 82vh;
    padding: 110px 0 95px;
  }
  .hero-badge {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1.5px solid rgba(254, 240, 138, 0.7) !important;
    color: #FEF08A !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    padding: 8px 24px !important;
    border-radius: 9999px !important;
    margin-bottom: 22px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    backdrop-filter: blur(8px) !important;
    text-transform: uppercase !important;
  }
  .hero-title {
    font-size: 68px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em !important;
    color: #FFFFFF !important;
    margin-bottom: 20px !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.45) !important;
  }
  .hero-title .hero-repeat {
    color: #F59E0B !important;
    background: linear-gradient(135deg, #FDE047 0%, #F59E0B 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    display: inline-block !important;
  }
  .hero-title .hero-dot {
    background: none !important;
    -webkit-text-fill-color: #FF5000 !important;
    color: #FF5000 !important;
    display: inline-block !important;
  }
  .hero-subtitle {
    font-size: 19.5px !important;
    line-height: 1.65 !important;
    max-width: 860px !important;
    margin: 0 auto 36px !important;
    color: rgba(255, 255, 255, 0.95) !important;
  }
  .hero-cta-group {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 20px !important;
  }
  #heroBookPrimaryBtn {
    background: linear-gradient(135deg, #FF7A00 0%, #FF5000 100%) !important;
    border-radius: 9999px !important;
    padding: 15px 36px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    color: #FFFFFF !important;
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.45) !important;
    border: none !important;
    text-transform: uppercase !important;
  }
  #heroBookPrimaryBtn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 30px rgba(255, 107, 0, 0.55) !important;
  }
  #heroExploreSecondaryBtn {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 2px solid rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(8px) !important;
    border-radius: 9999px !important;
    padding: 15px 36px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    color: #FFFFFF !important;
    text-transform: uppercase !important;
  }
  #heroExploreSecondaryBtn:hover {
    background: #FFFFFF !important;
    color: #063B91 !important;
    border-color: #FFFFFF !important;
    transform: translateY(-2px) !important;
  }

  /* Floating Quick-Info Bar */
  .floating-info-wrapper {
    position: relative;
    z-index: 20;
    margin-top: -55px;
    margin-bottom: 60px;
  }
  .floating-info-bar {
    background: #FFFFFF !important;
    border-radius: 24px !important;
    box-shadow: 0 20px 45px rgba(0, 30, 80, 0.12) !important;
    border: 1px solid rgba(8, 120, 232, 0.1) !important;
    padding: 18px 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px !important;
    max-width: 1620px !important;
  }
  .info-item {
    gap: 14px;
    min-width: 160px;
  }
  .info-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 1.25rem;
  }
  .info-label {
    font-size: 0.72rem !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    color: #64748B !important;
    letter-spacing: 0.05em !important;
  }
  .info-value {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: #0F172A !important;
  }
  .info-quick-book-form {
    gap: 12px;
  }
  .quick-date-picker {
    border-radius: 9999px !important;
    padding: 10px 18px !important;
    border: 1px solid #CBD5E1 !important;
    background: #F8FAFC !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    color: #1E293B !important;
  }
  .info-quick-book-form button {
    background: linear-gradient(135deg, #FF6B4A 0%, #FF5000 100%) !important;
    border-radius: 9999px !important;
    padding: 11px 26px !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 16px rgba(255, 107, 74, 0.4) !important;
    border: none !important;
    text-transform: uppercase !important;
  }
  .info-quick-book-form button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 107, 74, 0.5) !important;
  }

  /* Section Headers */
  .section-header {
    text-align: center;
    margin-bottom: 36px;
  }
  .badge-tag,
  .section-header .badge-tag {
    background: #E0F2FE !important;
    color: #0284C7 !important;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    padding: 6px 18px !important;
    border-radius: 9999px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    margin-bottom: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
  }
  .section-header .section-title {
    font-size: 42px !important;
    font-weight: 800 !important;
    color: #0F172A !important;
    margin-bottom: 12px !important;
    font-family: var(--font-heading) !important;
    letter-spacing: -0.01em !important;
  }
  .section-header .section-subtitle {
    font-size: 17.5px !important;
    color: #64748B !important;
    max-width: 820px !important;
    margin: 0 auto !important;
    line-height: 1.6 !important;
  }

  /* Popular Attractions Section */
  .section-attractions {
    padding: 80px 0;
  }
  .attraction-filter-tabs {
    display: flex !important;
    justify-content: center !important;
    gap: 14px !important;
    flex-wrap: wrap !important;
    margin-bottom: 45px !important;
  }
  .filter-btn {
    padding: 10px 24px !important;
    border-radius: 9999px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    border: 1px solid #E2E8F0 !important;
    background: #FFFFFF !important;
    color: #334155 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
  }
  .filter-btn:hover {
    border-color: #0878E8 !important;
    color: #0878E8 !important;
  }
  .filter-btn.active {
    background: #0878E8 !important;
    color: #FFFFFF !important;
    border-color: #0878E8 !important;
    box-shadow: 0 4px 14px rgba(8, 120, 232, 0.35) !important;
  }
  .attractions-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 32px !important;
  }
  .attraction-card {
    border-radius: 20px !important;
    overflow: hidden !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06) !important;
    background: #FFFFFF !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  }
  .attraction-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1) !important;
  }
  .attraction-img-wrapper {
    height: 240px !important;
    position: relative !important;
    overflow: hidden !important;
  }
  .attraction-category-badge {
    position: absolute !important;
    top: 14px !important;
    left: 14px !important;
    border-radius: 9999px !important;
    padding: 5px 14px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    color: #FFFFFF !important;
  }
  .badge-thrill-extreme { background: #EA580C !important; }
  .badge-thrill-family { background: #16A34A !important; }
  .badge-thrill-relax { background: #0284C7 !important; }
  .badge-thrill-kids { background: #7C3AED !important; }
  
  .thrill-meter-badge {
    position: absolute !important;
    bottom: 12px !important;
    right: 12px !important;
    background: rgba(15, 23, 42, 0.75) !important;
    backdrop-filter: blur(6px) !important;
    color: #FFFFFF !important;
    border-radius: 9999px !important;
    padding: 4px 12px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }
  .thrill-meter-badge .thrill-meter-dots {
    color: #FBBF24 !important;
    letter-spacing: 2px !important;
  }
  .attraction-body {
    padding: 24px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
  }
  .attraction-title {
    font-size: 1.28rem !important;
    font-weight: 700 !important;
    color: #0F172A !important;
    margin-bottom: 8px !important;
    font-family: var(--font-heading) !important;
  }
  .attraction-desc {
    font-size: 0.92rem !important;
    color: #64748B !important;
    line-height: 1.55 !important;
    margin-bottom: 18px !important;
    min-height: 48px !important;
  }
  .attraction-meta-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px 16px !important;
    padding: 14px 0 !important;
    border-top: 1px solid #F1F5F9 !important;
    font-size: 0.85rem !important;
    color: #475569 !important;
    margin-bottom: 18px !important;
  }
  .meta-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }
  .meta-item i {
    color: #0878E8 !important;
    font-size: 0.9rem !important;
  }
  .explore-attraction-btn {
    background: transparent !important;
    border: 2px solid #0878E8 !important;
    color: #0878E8 !important;
    border-radius: 9999px !important;
    padding: 11px 0 !important;
    width: 100% !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
  }
  .explore-attraction-btn:hover {
    background: #0878E8 !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(8, 120, 232, 0.35) !important;
  }

  /* Merchandise & Swim Gear Section */
  #merchandise {
    display: block !important;
  }
  .section-merch {
    padding: 80px 0 !important;
    background: #F5FAFF !important;
  }
  .merch-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 26px !important;
  }
  .merch-card {
    background: #FFFFFF !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05) !important;
    display: flex !important;
    flex-direction: column !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  }
  .merch-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1) !important;
    border-color: rgba(8, 120, 232, 0.3) !important;
  }
  .merch-img-box {
    height: 200px !important;
    background: #FFFFFF !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 24px !important;
  }
  .merch-img-box img {
    max-width: 75% !important;
    max-height: 75% !important;
    object-fit: contain !important;
  }
  .merch-body {
    padding: 22px 24px 24px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
  }
  .merch-name {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #0F172A !important;
    margin-bottom: 8px !important;
    font-family: var(--font-heading) !important;
  }
  .merch-desc {
    font-size: 0.88rem !important;
    color: #64748B !important;
    line-height: 1.5 !important;
    margin-bottom: 20px !important;
    flex-grow: 1 !important;
    min-height: 48px !important;
  }
  .merch-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-top: 16px !important;
    border-top: 1px solid #F1F5F9 !important;
  }
  .merch-price {
    font-size: 1.45rem !important;
    font-weight: 800 !important;
    color: #0878E8 !important;
    font-family: var(--font-heading) !important;
  }
  .merch-footer .btn {
    border: 2px solid #0878E8 !important;
    color: #0878E8 !important;
    background: transparent !important;
    border-radius: 9999px !important;
    padding: 8px 20px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
  }
  .merch-footer .btn:hover {
    background: #0878E8 !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(8, 120, 232, 0.3) !important;
  }

  /* Admin Scaling Restoration for 1920x1080 */
  .admin-workspace {
    max-width: 100% !important;
    padding: 28px 36px !important;
  }
  .admin-card {
    border-radius: 18px !important;
    padding: 28px !important;
  }
  .kpi-card {
    padding: 24px !important;
    border-radius: 18px !important;
  }
  .kpi-value {
    font-size: 2.2rem !important;
  }
  .page-header-title {
    font-size: 1.85rem !important;
  }
}


