/* ══════════════════════════════════════════════
   GMAC Main Landing — Design System
   ══════════════════════════════════════════════ */

/* ── Theme Variables ── */
:root,
[data-theme="light"] {
  --font-family: 'Noto Sans Thai', sans-serif;
  --color-primary: #735b25;
  --color-on-primary: #ffffff;
  --color-primary-container: #ffdf9e;
  --color-on-primary-container: #261900;
  --color-secondary: #6d5c3f;
  --color-on-secondary: #ffffff;
  --color-secondary-container: #f9dfb4;
  --color-on-secondary-container: #261a04;
  --color-tertiary: #715b2f;
  --color-tertiary-container: #ffdea6;
  --color-error: #ba1a1a;
  --color-on-error: #ffffff;
  --color-surface: #f8f9fa;
  --color-surface-container-lowest: #ffffff;
  --color-surface-container-low: #f1f3f5;
  --color-surface-container: #e9ecef;
  --color-surface-container-high: #dee2e6;
  --color-surface-container-highest: #d1d5db;
  --color-on-surface: #1a1c1e;
  --color-on-surface-variant: #44474b;
  --color-outline: #73777d;
  --color-outline-variant: #c4c7cc;
  --shadow-1: 0 1px 3px rgba(26,28,30,0.08);
  --shadow-2: 0 4px 12px rgba(26,28,30,0.10);
  --shadow-3: 0 12px 32px rgba(26,28,30,0.12);
  --shadow-gold: 0 8px 24px rgba(115,91,37,0.15);
  --header-blur-bg: rgba(248,249,250,0.80);

  /* ── Legacy GMAC Colors (shared across home/user/host dashboards) ── */
  --color-gmac-gold: #c0a062;
  --color-gmac-gold-hover: #C9AE7A;
  --color-gmac-gold-active: #CDB381;
  --color-gmac-warning: #d35400;
  --color-gmac-success: #00c896;
  --color-gmac-link: #d4af37;
  --color-gmac-link-hover: #e1c699;
  --color-gold-accent: #ffd700;
}

[data-theme="dark"] {
  --color-primary: #d4b96a;
  --color-on-primary: #3e2e00;
  --color-primary-container: #5a4520;
  --color-on-primary-container: #ffdf9e;
  --color-secondary: #d5c4a1;
  --color-on-secondary: #3a2f1a;
  --color-secondary-container: #544433;
  --color-on-secondary-container: #f9dfb4;
  --color-tertiary: #ddc08c;
  --color-tertiary-container: #574526;
  --color-error: #ffb4ab;
  --color-on-error: #690005;
  --color-surface: #111214;
  --color-surface-container-lowest: #0b0c0e;
  --color-surface-container-low: #1a1b1e;
  --color-surface-container: #1f2023;
  --color-surface-container-high: #292a2e;
  --color-surface-container-highest: #343538;
  --color-on-surface: #fafafa;
  --color-on-surface-variant: #e8e9ec;
  --color-outline: #8e929a;
  --color-outline-variant: #44474d;
  --shadow-1: 0 1px 3px rgba(0,0,0,0.30);
  --shadow-2: 0 4px 12px rgba(0,0,0,0.35);
  --shadow-3: 0 12px 32px rgba(0,0,0,0.40);
  --shadow-gold: 0 8px 24px rgba(212,185,106,0.20);
  --header-blur-bg: rgba(17,18,20,0.80);

  /* ── Legacy GMAC Colors (same values in dark) ── */
  --color-gmac-gold: #c0a062;
  --color-gmac-gold-hover: #C9AE7A;
  --color-gmac-gold-active: #CDB381;
  --color-gmac-warning: #d35400;
  --color-gmac-success: #00c896;
  --color-gmac-link: #e1c699;
  --color-gmac-link-hover: #e1c699;
  --color-gold-accent: #ffd700;
}

/* ── Bilingual content toggle ── */
[data-lang-content="en"] { display: none; }
[data-lang="en"] [data-lang-content="en"] { display: block; }
[data-lang="en"] [data-lang-content="th"] { display: none; }

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-family);
  background: var(--color-surface);
  color: var(--color-on-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { opacity: 0.85; }
.carousel-slide a,
.carousel-slide a:hover,
.carousel-slide a:active { opacity: 1 !important; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }

/* ══════ HEADER ══════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--color-surface);
  transition: background 300ms cubic-bezier(0.2,0,0,1), box-shadow 300ms cubic-bezier(0.2,0,0,1);
}

.site-header.scrolled {
  background: var(--header-blur-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-2);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

.header-logo img { width: 36px; height: 36px; }

.header-logo span {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  color: var(--color-on-surface);
}

/* ── Desktop Nav ── */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  flex: 1;
  justify-content: center;
}

.nav-desktop > li { position: relative; }

.nav-desktop > li > a,
.nav-desktop > li > button.nav-link-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-on-surface-variant);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color 200ms;
  letter-spacing: 0.01em;
}

.nav-desktop > li > a:hover,
.nav-desktop > li > button.nav-link-btn:hover,
.nav-desktop > li.open > button.nav-link-btn {
  color: var(--color-primary);
  opacity: 1;
}

.nav-link-btn .chevron {
  width: 12px; height: 12px;
  transition: transform 200ms;
}

.nav-desktop > li.open .chevron {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-surface-container-lowest);
  border-radius: 0.5rem;
  box-shadow: var(--shadow-3);
  min-width: 220px;
  padding: 0.5rem 0;
  z-index: 1001;
}

.nav-desktop > li.open > .dropdown { display: block; }

.dropdown a {
  display: block;
  padding: 0.625rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--color-on-surface);
  transition: background 150ms, color 150ms;
}

.dropdown a:hover {
  background: var(--color-surface-container-low);
  color: var(--color-primary);
  opacity: 1;
}

.dropdown .divider {
  height: 1px;
  background: var(--color-outline-variant);
  margin: 0.375rem 1rem;
}

/* Header right controls */
.header-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Lang switcher */
.lang-switch {
  display: flex;
  align-items: center;
  background: var(--color-surface-container);
  border-radius: 0.25rem;
  overflow: hidden;
  font-size: 0.75rem;
  font-weight: 600;
}

.lang-switch button {
  padding: 0.375rem 0.625rem;
  border: none;
  background: none;
  color: var(--color-on-surface-variant);
  cursor: pointer;
  transition: background 150ms, color 150ms;
}

.lang-switch button.active {
  background: var(--color-primary);
  color: var(--color-on-primary);
}

/* Theme toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--color-outline-variant);
  border-radius: 0.25rem;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-on-surface-variant);
  transition: border-color 200ms, color 200ms;
}

.theme-toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 36px; height: 36px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--color-on-surface);
  border-radius: 1px;
  transition: transform 300ms cubic-bezier(0.2,0,0,1), opacity 200ms;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile menu ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0; bottom: 0;
  background: var(--color-surface);
  z-index: 999;
  padding: 1rem 1.5rem;
  overflow-y: auto;
}

.mobile-menu.open { display: block; }

.mobile-menu .mm-item > a,
.mobile-menu .mm-item > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.875rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-on-surface);
  background: none;
  border: none;
  border-bottom: 1px solid var(--color-outline-variant);
  cursor: pointer;
  text-align: left;
}

.mobile-menu .mm-item > a:hover,
.mobile-menu .mm-item > button:hover { color: var(--color-primary); opacity: 1; }

.mobile-menu .mm-sub {
  display: none;
  padding-left: 1.25rem;
}

.mobile-menu .mm-item.open > .mm-sub { display: block; }

.mobile-menu .mm-sub a {
  display: block;
  padding: 0.625rem 0;
  font-size: 0.875rem;
  color: var(--color-on-surface-variant);
  border-bottom: 1px solid var(--color-outline-variant);
}

.mobile-menu .mm-sub a:hover { color: var(--color-primary); opacity: 1; }

@media (max-width: 960px) {
  .nav-desktop { display: none; }
  .hamburger { display: flex; }
}

/* ══════ HERO CAROUSEL ══════ */
.carousel-section {
  margin-top: 64px;
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
}

.carousel-track {
  display: flex;
  transition: transform 500ms cubic-bezier(0.2, 0, 0, 1);
}

.carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
  position: relative;
  height: 0;
  padding-bottom: clamp(200px, 30vw, 380px);
  overflow: hidden;
}

/* Layer 1: BG — banner ขยายเต็ม, dim + desaturate + scanline */
.carousel-slide .slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.2) saturate(0.2);
  z-index: 0;
}

/* Scanline overlay — เส้นๆ แบบทีวีเก่า */
.carousel-slide .slide-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.15) 2px,
    rgba(0, 0, 0, 0.15) 4px
  );
  z-index: 1;
  pointer-events: none;
}

/* Layer 2: Banner สีเต็ม ตรงกลาง */
.carousel-slide .slide-banner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: auto;
  height: auto;
  max-width: 92%;
  max-height: 88%;
  object-fit: contain;
  border-radius: 0.375rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

/* Layer 3: Overlay text ด้านล่าง */
.carousel-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.30);
  color: #fafafa;
  z-index: 3;
}

.carousel-overlay h2 {
  font-size: clamp(0.9375rem, 2.5vw, 1.375rem);
  font-weight: 700;
  margin-bottom: 0.125rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.carousel-overlay p {
  font-size: 0.8125rem;
  opacity: 0.85;
}

@media (max-width: 768px) {
  .carousel-slide { padding-bottom: 65%; }
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms;
  z-index: 10;
}

.carousel-btn:hover { background: rgba(255,255,255,0.30); }
.carousel-btn.prev { left: 1rem; }
.carousel-btn.next { right: 1rem; }

.carousel-dots {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0;
  z-index: 10;
}

.carousel-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: background 200ms, transform 200ms;
  padding: 0;
  min-width: 44px; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
  background-clip: content-box;
  box-sizing: content-box;
  /* Visual dot inside touch area */
  background: transparent;
  position: relative;
}

.carousel-dot::after {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transition: background 200ms, transform 200ms;
}

.carousel-dot.active::after {
  background: var(--color-primary);
  transform: scale(1.3);
}

/* ══════ SECTION ══════ */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-on-surface);
  margin-bottom: 1.5rem;
}

.section-title .accent { color: var(--color-primary); }

/* ── Manual Guide SVG ── */
.manual-link {
  position: absolute;
  top: -50px;
  right: 1.5rem;
  z-index: 100;
  opacity: 0.8;
  transition: opacity 300ms cubic-bezier(0.2,0,0,1), transform 300ms cubic-bezier(0.2,0,0,1), box-shadow 300ms;
  pointer-events: auto;
}

.manual-link:hover {
  opacity: 1;
  transform: translateY(-4px);
}

.manual-img {
  width: 250px;
  height: 250px;
}

/* Mobile: stack outside section, full-width banner */
.manual-mobile-section {
  display: none;
}

@media (max-width: 768px) {
  .manual-link {
    display: none;
  }
  .manual-mobile-section {
    display: block;
    padding: 2rem 1.5rem;
    text-align: center;
    background: var(--color-surface-container-low);
  }
  .manual-mobile-section a {
    display: block;
    max-width: 400px;
    margin: 0 auto;
    opacity: 1;
  }
  .manual-mobile-section img {
    width: 100%;
    height: auto;
    max-width: 320px;
    margin: 0 auto;
    display: block;
  }
}

/* ── Services Section ── */
.services-section {
  background: var(--color-surface-container-low);
  padding: 3rem 1.5rem;
}

.services-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.services-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.services-header h2 {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--color-on-surface);
  margin-bottom: 0.5rem;
}

.services-header p {
  font-size: 0.9375rem;
  color: var(--color-on-surface-variant);
}

.services-header .bar {
  width: 3rem;
  height: 3px;
  background: var(--color-primary);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: var(--color-surface-container-lowest);
  border-radius: 0.75rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow-1);
  transition: transform 300ms cubic-bezier(0.2,0,0,1), box-shadow 300ms;
  text-decoration: none;
  color: var(--color-on-surface);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
  opacity: 1;
}

.service-card .svc-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.5rem;
  background: var(--color-primary-container);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-card .svc-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-on-surface);
}

.service-card p {
  font-size: 0.8125rem;
  color: var(--color-on-surface-variant);
  line-height: 1.6;
}

/* ── Sport filter tabs ── */
.sport-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.sport-filter-btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid var(--color-outline-variant);
  border-radius: 2rem;
  background: none;
  color: var(--color-on-surface-variant);
  cursor: pointer;
  transition: all 200ms;
  white-space: nowrap;
}

.sport-filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.sport-filter-btn.active {
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-color: var(--color-primary);
}

/* ── Year heading ── */
.year-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-on-surface-variant);
  margin: 2.5rem 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-outline-variant);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.year-heading:first-of-type { margin-top: 0; }

.year-heading .accent {
  color: var(--color-primary);
}

/* ══════ TOURNAMENT CARDS ══════ */
.tournament-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

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

.tour-card {
  background: var(--color-surface-container-lowest);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform 300ms cubic-bezier(0.2,0,0,1), box-shadow 300ms cubic-bezier(0.2,0,0,1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  color: var(--color-on-surface);
}

.tour-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
  color: var(--color-on-surface);
  opacity: 1;
}

.tour-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

/* Entry count badge — gacha rarity tiers */
.tour-card-entries {
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

/* N — Normal (0-150) */
.tour-card-entries[data-tier="N"] {
  background: rgba(100,116,139,0.85);
  color: #e2e8f0;
}

/* R — Rare (151-300) */
.tour-card-entries[data-tier="R"] {
  background: rgba(59,130,246,0.85);
  color: #fff;
}

/* SR — Super Rare (301-500) */
.tour-card-entries[data-tier="SR"] {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* SSR — Super Super Rare (501-800) */
.tour-card-entries[data-tier="SSR"] {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #1a1c1e;
  text-shadow: 0 0 6px rgba(251,191,36,0.4);
  box-shadow: 0 0 8px rgba(245,158,11,0.3);
}

/* UR — Ultra Rare (801-1000) */
.tour-card-entries[data-tier="UR"] {
  background: linear-gradient(135deg, #ef4444, #f97316, #eab308);
  color: #fff;
  text-shadow: 0 0 8px rgba(239,68,68,0.5);
  box-shadow: 0 0 12px rgba(239,68,68,0.3);
  animation: tier-pulse 2s ease-in-out infinite;
}

/* LR — Legendary (1001-2000) */
.tour-card-entries[data-tier="LR"] {
  background: linear-gradient(135deg, #ec4899, #8b5cf6, #3b82f6);
  color: #fff;
  text-shadow: 0 0 10px rgba(236,72,153,0.6);
  box-shadow: 0 0 16px rgba(139,92,246,0.4);
  animation: tier-pulse 1.5s ease-in-out infinite;
}

/* MR — Mythic (2001-3000) */
.tour-card-entries[data-tier="MR"] {
  background: linear-gradient(135deg, #fbbf24, #f59e0b, #ef4444, #ec4899, #8b5cf6);
  background-size: 200% 200%;
  color: #fff;
  text-shadow: 0 0 12px rgba(251,191,36,0.7);
  box-shadow: 0 0 20px rgba(245,158,11,0.5), inset 0 0 8px rgba(255,255,255,0.1);
  animation: tier-rainbow 3s ease infinite, tier-pulse 1.5s ease-in-out infinite;
}

/* GOD — 3000+ */
.tour-card-entries[data-tier="GOD"] {
  background: linear-gradient(135deg, #fbbf24, #ef4444, #ec4899, #8b5cf6, #3b82f6, #06b6d4, #10b981, #fbbf24);
  background-size: 400% 400%;
  color: #fff;
  font-size: 0.75rem;
  text-shadow: 0 0 16px rgba(255,255,255,0.8);
  box-shadow: 0 0 24px rgba(251,191,36,0.6), 0 0 48px rgba(139,92,246,0.3), inset 0 0 12px rgba(255,255,255,0.2);
  animation: tier-rainbow 2s ease infinite, tier-pulse 1s ease-in-out infinite;
  border: 1px solid rgba(255,255,255,0.3);
}

@keyframes tier-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; transform: scale(1.02); }
}

@keyframes tier-rainbow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.tour-card-body {
  padding: 1rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.tour-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-on-surface);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tour-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
}

.tour-card-date {
  font-size: 0.8125rem;
  color: var(--color-on-surface-variant);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.tour-card-date svg {
  width: 15px; height: 15px;
  flex-shrink: 0;
  fill: var(--color-primary);
}

.tour-card-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  background: var(--color-primary-container);
  color: var(--color-on-primary-container);
  width: fit-content;
}

/* ── Loading spinner ── */
.load-more-area {
  text-align: center;
  padding: 2rem;
}

.spinner {
  display: inline-block;
  width: 32px; height: 32px;
  border: 3px solid var(--color-outline-variant);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ══════ FOOTER ══════ */
/* ══════ FLOATING SOCIAL ══════ */
.social-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 50;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 0.625rem;
}

.social-fab {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-on-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-2);
  transition: transform 300ms cubic-bezier(0.2,0,0,1), box-shadow 300ms;
}

.social-fab:hover {
  box-shadow: var(--shadow-gold);
  transform: scale(1.05);
}

.social-float.open .social-fab {
  transform: rotate(45deg);
}

.social-items {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.9);
  transition: opacity 250ms cubic-bezier(0.2,0,0,1), transform 250ms cubic-bezier(0.2,0,0,1);
}

.social-float.open .social-items {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.social-item {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 200ms, box-shadow 200ms;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.social-item:hover {
  transform: scale(1.12);
  opacity: 1;
}

.social-top {
  background: var(--color-surface-container-highest);
  color: var(--color-on-surface);
  border: none;
  cursor: pointer;
}
[data-theme="dark"] .social-top {
  background: var(--color-surface-container-highest);
  color: #fafafa;
}
[data-theme="light"] .social-top {
  background: var(--color-on-surface);
  color: var(--color-surface);
}
.social-yt { background: #ff0000; }
.social-fb { background: #1877f2; }
.social-line { background: #06c755; }

/* ══════ NEWS GRID ══════ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

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

.news-card {
  background: var(--color-surface-container-lowest);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform 300ms cubic-bezier(0.2,0,0,1), box-shadow 300ms;
  display: flex;
  flex-direction: column;
  color: var(--color-on-surface);
  text-decoration: none;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
  opacity: 1;
  color: var(--color-on-surface);
}

.news-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.news-card-body {
  padding: 1rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.news-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-on-surface);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-date {
  font-size: 0.75rem;
  color: var(--color-on-surface-variant);
  margin-top: auto;
}

.news-card-excerpt {
  font-size: 0.8125rem;
  color: var(--color-on-surface-variant);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ══════ FOOTER ══════ */
.site-footer {
  background: var(--color-surface-container-low);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--color-on-surface-variant);
  font-size: 0.8125rem;
}
