/* =====================================================
   หมอลำมรดกภูมิปัญญาทางวัฒนธรรม - Main Stylesheet
   Thai Traditional Cultural Design Theme
   Color Palette: Warm Brown, Burnt Orange, Deep Gold
   Inspired by: Traditional Isan Cultural Aesthetic
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=KoHo:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;1,200;1,300;1,400;1,500;1,600;1,700&family=Sarabun:wght@300;400;500;600;700;800&family=Kanit:wght@300;400;500;600;700;800;900&family=Charm:wght@400;700&display=swap');

/* ===================== CSS Variables ===================== */
:root {
  --color-deep-brown: #2B1200;
  --color-dark-brown: #3D1A00;
  --color-rich-brown: #5C2800;
  --color-warm-brown: #7A3800;
  --color-brick: #9B3A1A;
  --color-orange: #C85A1A;
  --color-amber: #C97D2A;
  --color-golden: #D4A017;
  --color-gold-light: #F0C040;
  --color-gold-bright: #FFD700;
  --color-cream: #F5E6C8;
  --color-parchment: #EDD9A3;
  --color-warm-white: #FDF5E4;
  --color-dark: #1C0A00;
  --color-dark-2: #2B1200;
  --color-dark-3: #3D1A00;

  /* Thai Pattern Colors */
  --color-thai-red: #8B1A1A;
  --color-thai-orange: #B34A00;
  --color-thai-gold: #C8941A;

  --gradient-hero: linear-gradient(180deg,
      rgba(28, 10, 0, 0.6) 0%,
      rgba(92, 40, 0, 0.4) 30%,
      rgba(200, 90, 26, 0.3) 55%,
      rgba(92, 40, 0, 0.7) 80%,
      rgba(28, 10, 0, 0.95) 100%);

  --gradient-card: linear-gradient(145deg, #3D1A00, #4D2200);
  --gradient-card-warm: linear-gradient(145deg, #4D2000, #6B3200);
  --gradient-gold: linear-gradient(135deg, #C8941A, #F0C040, #D4A017);
  --gradient-btn: linear-gradient(135deg, #A03000, #C85A1A, #8B2010);
  --gradient-section-1: linear-gradient(180deg, #1C0A00 0%, #2B1200 50%, #1C0A00 100%);
  --gradient-section-2: linear-gradient(180deg, #2B1200 0%, #3D1A00 50%, #2B1200 100%);

  --font-thai: 'KoHo', 'Sarabun', 'Kanit', sans-serif;
  --font-heading: 'KoHo', 'Kanit', 'Sarabun', sans-serif;

  --shadow-glow: 0 0 40px rgba(212, 160, 23, 0.35);
  --shadow-warm: 0 0 30px rgba(200, 90, 26, 0.3);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-deep: 0 16px 48px rgba(0, 0, 0, 0.7);

  --border-radius: 12px;
  --border-radius-lg: 20px;
  --transition: all 0.35s ease;

  /* Thai Decorative Border */
  --border-thai: 1px solid rgba(212, 160, 23, 0.3);
  --border-thai-bright: 1px solid rgba(240, 192, 64, 0.5);
}

/* ===================== Reset & Base ===================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-thai);
  background-color: var(--color-dark);
  color: var(--color-cream);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Thai Pattern Background Texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(200, 90, 26, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(212, 160, 23, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ===================== Scrollbar ===================== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-dark-2);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--color-golden), var(--color-orange));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold-light);
}

/* ===================== Typography ===================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
}

a {
  color: var(--color-golden);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-gold-light);
}

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

/* ===================== Utility ===================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Thai Ornament Divider */
.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--color-parchment);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 16px rgba(212, 160, 23, 0.5),
    0 0 40px rgba(200, 100, 20, 0.3);
  position: relative;
}

.section-subtitle {
  text-align: center;
  font-size: 1rem;
  color: rgba(245, 230, 200, 0.7);
  margin-bottom: 3.5rem;
  font-weight: 400;
}

/* Thai-style decorative divider */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 1rem auto 1.5rem;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  max-width: 100px;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(212, 160, 23, 0.6));
}

.section-divider::after {
  background: linear-gradient(to left, transparent, rgba(212, 160, 23, 0.6));
}

.section-divider-gem {
  width: 10px;
  height: 10px;
  background: var(--gradient-gold);
  border-radius: 2px;
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(212, 160, 23, 0.6);
}

/* ===================== Thai Pattern SVG Background ===================== */
.thai-pattern-bg {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D4A017' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* ===================== Navbar ===================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  background: rgba(28, 10, 0, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212, 160, 23, 0.25);
  transition: var(--transition);
}

/* Thai gold top line */
.navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--color-golden), var(--color-gold-light), var(--color-golden), transparent);
}

.navbar.scrolled {
  background: rgba(28, 10, 0, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(212, 160, 23, 0.2);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-gold-light);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
}

.nav-brand:hover {
  color: var(--color-gold-bright);
}

.nav-brand .brand-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #8B3A00, #C85A1A);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  border: 2px solid rgba(212, 160, 23, 0.4);
  box-shadow: 0 4px 15px rgba(200, 90, 26, 0.4);
}

.nav-brand-text-sm {
  font-size: 0.72rem;
  color: rgba(245, 230, 200, 0.55);
  line-height: 1.3;
  font-weight: 400;
}

.nav-brand-text-main {
  font-size: 0.92rem;
  color: var(--color-gold-light);
  line-height: 1.3;
  font-weight: 700;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-menu a {
  color: rgba(245, 230, 200, 0.85);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.nav-menu a:hover {
  color: var(--color-gold-light);
  background: rgba(212, 160, 23, 0.1);
}

.nav-menu a.active {
  color: var(--color-gold-light);
  background: rgba(212, 160, 23, 0.12);
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--gradient-gold);
  border-radius: 2px;
}

.nav-admin-btn {
  background: linear-gradient(135deg, #8B2010, #C85A1A) !important;
  color: var(--color-cream) !important;
  padding: 8px 20px !important;
  border-radius: 20px !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  border: 1px solid rgba(212, 160, 23, 0.3) !important;
  transition: var(--transition) !important;
  box-shadow: 0 4px 15px rgba(139, 32, 16, 0.4) !important;
}

.nav-admin-btn:hover {
  background: linear-gradient(135deg, #C85A1A, #D4A017) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 24px rgba(200, 90, 26, 0.5) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-cream);
  transition: var(--transition);
  border-radius: 2px;
}

/* ===================== Hero Section ===================== */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  /* head.jpg as background with dark overlay */
  background:
    linear-gradient(180deg, rgba(28, 10, 0, 0.4) 0%, rgba(28, 10, 0, 0.8) 100%),
    url('../includes/head.jpg') center/cover no-repeat;
}

/* Decorative top/bottom wave patterns */
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(200, 90, 26, 0.5) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(92, 40, 0, 0.6) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(139, 62, 0, 0.4) 0%, transparent 50%),
    linear-gradient(180deg, rgba(28, 10, 0, 0.7) 0%, transparent 30%, transparent 70%, rgba(28, 10, 0, 0.9) 100%);
}

/* Texture overlay */
.hero-bg-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='1' fill='%23D4A017' fill-opacity='0.08'/%3E%3Ccircle cx='0' cy='0' r='1' fill='%23D4A017' fill-opacity='0.05'/%3E%3Ccircle cx='100' cy='100' r='1' fill='%23D4A017' fill-opacity='0.05'/%3E%3C/svg%3E");
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--color-golden);
  animation: float-particle 10s infinite ease-in-out;
  opacity: 0.25;
}

@keyframes float-particle {

  0%,
  100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.2;
  }

  33% {
    transform: translateY(-40px) translateX(20px) scale(1.2);
    opacity: 0.45;
  }

  66% {
    transform: translateY(20px) translateX(-15px) scale(0.8);
    opacity: 0.15;
  }
}

/* Bottom wave SVG */
.hero-lotus {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 120px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='%231C0A00' fill-opacity='1' d='M0,80L48,74.7C96,69,192,59,288,64C384,69,480,91,576,90.7C672,91,768,69,864,58.7C960,48,1056,48,1152,58.7C1248,69,1344,91,1392,101.3L1440,112L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom center;
  background-size: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 130px 24px 80px;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 160, 23, 0.15);
  border: 1px solid rgba(212, 160, 23, 0.5);
  color: var(--color-gold-light);
  padding: 8px 24px;
  border-radius: 24px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 2rem;
  letter-spacing: 0.08em;
  animation: fadeInDown 0.8s ease both;
  backdrop-filter: blur(4px);
}

.hero-badge::before,
.hero-badge::after {
  content: '✦';
  font-size: 0.6rem;
  opacity: 0.7;
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  color: var(--color-gold-light);
  text-shadow:
    0 2px 0px rgba(139, 60, 0, 0.8),
    0 4px 24px rgba(212, 130, 20, 0.7),
    0 0 80px rgba(240, 192, 64, 0.4);
  margin-bottom: 0.5rem;
  line-height: 1.1;
  animation: fadeInDown 0.9s ease 0.1s both;
  letter-spacing: -0.01em;
}

/* Thai style subtitle under hero title */
.hero-title-sub {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 600;
  color: var(--color-parchment);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  animation: fadeInDown 1s ease 0.15s both;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(245, 230, 200, 0.8);
  margin-bottom: 0.5rem;
  font-weight: 400;
  animation: fadeInDown 1s ease 0.2s both;
}

.hero-university {
  font-size: 0.9rem;
  color: rgba(245, 230, 200, 0.55);
  margin-bottom: 3rem;
  animation: fadeInDown 1s ease 0.3s both;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.4s both;
}

/* Thai Decorative line under title */
.hero-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 1.2rem auto 2rem;
  animation: fadeIn 1.2s ease 0.5s both;
}

.hero-ornament-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(212, 160, 23, 0.8));
}

.hero-ornament-line:last-child {
  background: linear-gradient(to left, transparent, rgba(212, 160, 23, 0.8));
}

.hero-ornament-diamond {
  width: 8px;
  height: 8px;
  background: var(--color-golden);
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(212, 160, 23, 0.8);
}

/* ===================== Buttons ===================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #8B2000, #C85A00, #7A1A00);
  color: var(--color-cream);
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid rgba(212, 160, 23, 0.3);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 6px 25px rgba(139, 32, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-decoration: none;
  letter-spacing: 0.03em;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(200, 90, 0, 0.6);
  color: var(--color-cream);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 160, 23, 0.08);
  color: var(--color-gold-light);
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid rgba(212, 160, 23, 0.5);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  letter-spacing: 0.03em;
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background: rgba(212, 160, 23, 0.18);
  border-color: var(--color-golden);
  transform: translateY(-3px);
  color: var(--color-gold-light);
  box-shadow: 0 8px 25px rgba(212, 160, 23, 0.2);
}

/* ===================== Stats Bar ===================== */
.stats-bar {
  background: linear-gradient(135deg, #2B1200, #3D1A00, #2B1200);
  border-top: 1px solid rgba(212, 160, 23, 0.2);
  border-bottom: 1px solid rgba(212, 160, 23, 0.2);
  padding: 36px 0;
  position: relative;
}

.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D4A017' fill-opacity='0.04'%3E%3Cpath d='M20 20.5V18h-1v2.5h-2.5V21H19v2.5h1V21h2.5v-0.5H20zm0-10V8h-1v2.5h-2.5V11H19v2.5h1V11h2.5v-0.5H20zM10 20.5V18H9v2.5H6.5V21H9v2.5h1V21h2.5v-0.5H10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 0;
  text-align: center;
}

.stat-item {
  padding: 20px 24px;
  border-right: 1px solid rgba(212, 160, 23, 0.15);
  position: relative;
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--color-gold-light);
  line-height: 1;
  display: block;
  text-shadow: 0 0 24px rgba(240, 192, 64, 0.4);
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(245, 230, 200, 0.6);
  margin-top: 8px;
  font-weight: 500;
}

/* ===================== Section Common Styles ===================== */
.section-inner-border {
  border: 1px solid rgba(212, 160, 23, 0.12);
  border-radius: var(--border-radius-lg);
  padding: 60px;
  position: relative;
  background: rgba(45, 18, 0, 0.4);
}

/* ===================== About Section ===================== */
.about-section {
  padding: 100px 0;
  background: var(--color-dark);
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(200, 90, 26, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* Parchment style frame - like the design */
.about-image-wrap {
  position: relative;
}

.about-image-frame {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 2px solid rgba(212, 160, 23, 0.3);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(212, 160, 23, 0.15);
  background: linear-gradient(145deg, #4A2800, #5C3200);
  padding: 36px 28px;
  text-align: center;
  position: relative;
}

.about-image-frame::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px solid rgba(212, 160, 23, 0.15);
  border-radius: calc(var(--border-radius-lg) - 4px);
  pointer-events: none;
}

.about-image-frame .icon-art {
  font-size: 9rem;
  display: block;
  margin-bottom: 20px;
  filter: drop-shadow(0 6px 16px rgba(212, 160, 23, 0.5));
  animation: float-art 4s ease-in-out infinite;
}

@keyframes float-art {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.about-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(200, 90, 26, 0.15);
  border: 1px solid rgba(200, 90, 26, 0.4);
  color: var(--color-amber);
  padding: 5px 16px;
  border-radius: 16px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.about-title {
  font-size: 2rem;
  color: var(--color-parchment);
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  line-height: 1.25;
}

.about-text {
  color: rgba(245, 230, 200, 0.78);
  font-size: 1rem;
  margin-bottom: 1.2rem;
  line-height: 1.85;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(212, 160, 23, 0.07);
  border: 1px solid rgba(212, 160, 23, 0.15);
  border-left: 3px solid rgba(200, 160, 23, 0.5);
  padding: 12px 18px;
  border-radius: 8px;
  transition: var(--transition);
}

.feature-item:hover {
  background: rgba(212, 160, 23, 0.13);
  border-color: rgba(212, 160, 23, 0.35);
  border-left-color: var(--color-golden);
  transform: translateX(6px);
}

.feature-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(212, 160, 23, 0.3));
}

.feature-text {
  font-size: 0.93rem;
  color: var(--color-cream);
  font-weight: 500;
}

/* ===================== Artist Types Section ===================== */
.types-section {
  padding: 100px 0;
  background: var(--gradient-section-2);
  position: relative;
  overflow: hidden;
}

.types-section::before {
  content: '✦';
  position: absolute;
  top: 40px;
  right: 80px;
  font-size: 4rem;
  color: rgba(212, 160, 23, 0.06);
  pointer-events: none;
}

.types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Thai-style type card - matching the design */
.type-card {
  background: linear-gradient(145deg, #4A2000, #5C2A00);
  border: 1px solid rgba(212, 160, 23, 0.22);
  border-radius: var(--border-radius);
  padding: 32px 20px;
  text-align: center;
  transition: var(--transition);
  cursor: default;
  position: relative;
  overflow: hidden;
}

/* Inner decorative border */
.type-card::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border: 1px solid rgba(212, 160, 23, 0.1);
  border-radius: calc(var(--border-radius) - 4px);
  pointer-events: none;
  transition: var(--transition);
}

/* Warm glow on hover */
.type-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transition: var(--transition);
}

.type-card:hover::after {
  transform: scaleX(1);
}

.type-card:hover::before {
  border-color: rgba(212, 160, 23, 0.25);
}

.type-card:hover {
  border-color: rgba(212, 160, 23, 0.5);
  transform: translateY(-8px);
  box-shadow: var(--shadow-card), 0 0 30px rgba(212, 160, 23, 0.15);
  background: linear-gradient(145deg, #5C2800, #7A3800);
}

.type-icon {
  font-size: 3.5rem;
  margin-bottom: 18px;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(212, 160, 23, 0.4));
  transition: transform 0.4s ease;
}

.type-card:hover .type-icon {
  transform: scale(1.15) rotate(-5deg);
}

.type-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-parchment);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.type-desc {
  font-size: 0.84rem;
  color: rgba(245, 230, 200, 0.6);
  line-height: 1.65;
}

/* ===================== Artists Section ===================== */
.artists-section {
  padding: 100px 0;
  background: var(--color-dark);
  position: relative;
}

.artists-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.artist-card {
  background: linear-gradient(160deg, #3D1A00, #4D2200);
  border: 1px solid rgba(212, 160, 23, 0.2);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.artist-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-gold);
  opacity: 0;
  transition: var(--transition);
}

.artist-card:hover::before {
  opacity: 1;
}

.artist-card:hover {
  transform: translateY(-10px);
  border-color: rgba(212, 160, 23, 0.5);
  box-shadow: var(--shadow-deep), var(--shadow-glow);
}

.artist-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #5C2800, #8B4A00);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
  overflow: hidden;
}

.artist-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(28, 10, 0, 0.5) 100%);
}

.artist-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist-level-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, #8B6A00, var(--color-golden));
  color: var(--color-dark);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 14px;
  z-index: 1;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.artist-body {
  padding: 12px 10px;
  text-align: center;
}

.artist-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-parchment);
  margin-bottom: 0;
  line-height: 1.3;
}

.artist-type {
  font-size: 0.85rem;
  color: var(--color-amber);
  margin-bottom: 10px;
  font-weight: 600;
}

.artist-location {
  font-size: 0.82rem;
  color: rgba(245, 230, 200, 0.55);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.artist-bio {
  font-size: 0.86rem;
  color: rgba(245, 230, 200, 0.7);
  line-height: 1.65;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.no-artists {
  text-align: center;
  padding: 80px 20px;
  color: rgba(245, 230, 200, 0.35);
  grid-column: 1/-1;
}

.no-artists .no-icon {
  font-size: 5rem;
  margin-bottom: 20px;
}

.no-artists p {
  font-size: 1.1rem;
}

/* ===================== Heritage Section ===================== */
.heritage-section {
  padding: 100px 0;
  background: #1C0A00;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(212, 160, 23, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(212, 160, 23, 0.03) 0%, transparent 40%),
    url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23D4A017' stroke-opacity='0.04' stroke-width='0.8'%3E%3Ccircle cx='60' cy='60' r='10'/%3E%3Ccircle cx='60' cy='60' r='20'/%3E%3Ccircle cx='60' cy='60' r='30'/%3E%3Ccircle cx='60' cy='60' r='45'/%3E%3Cpath d='M0 60h120M60 0v120' stroke-opacity='0.02'/%3E%3C/g%3E%3C/svg%3E");
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(212, 160, 23, 0.1);
}

.heritage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 30px;
  margin-top: 4rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.heritage-book {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  perspective: 1000px;
}

.book-cover {
  width: 100%;
  max-width: 180px;
  aspect-ratio: 1 / 1.4;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow:
    5px 5px 15px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(212, 160, 23, 0.1);
  border-radius: 2px 6px 6px 2px;
  background: #1C0A00;
}

.heritage-book:hover .book-cover {
  transform: rotateY(-10deg) translateY(-10px);
  box-shadow:
    15px 15px 30px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(212, 160, 23, 0.2);
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px 6px 6px 2px;
}

.book-spine {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 12px;
  background: linear-gradient(to right,
      rgba(0, 0, 0, 0.2),
      rgba(255, 255, 255, 0.1) 50%,
      rgba(0, 0, 0, 0.2));
  border-radius: 2px 0 0 2px;
}

.book-download-btn {
  background: linear-gradient(135deg, #E67E22, #D35400);
  color: white;
  text-decoration: none;
  padding: 8px 24px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(211, 84, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: 0.02em;
}

.book-download-btn:hover {
  background: linear-gradient(135deg, #F39C12, #E67E22);
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(211, 84, 0, 0.4);
  color: white;
}

/* Style for text on book cover when no image is available */
.book-no-img {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
}

.book-ornament {
  font-size: 1.5rem;
  margin-bottom: 12px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.book-title-on-cover {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-gold-light);
  line-height: 1.3;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 20px;
}

.book-brand {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(212, 160, 23, 0.4);
  position: absolute;
  bottom: 20px;
  text-transform: uppercase;
}



/* ===================== News Section ===================== */
.news-section {
  padding: 100px 0;
  background: var(--color-dark);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.news-card {
  background: rgba(61, 26, 0, 0.4);
  border: 1px solid rgba(212, 160, 23, 0.2);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  height: 100%;
}

.news-card:hover {
  transform: translateY(-10px);
  border-color: var(--color-golden);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 15px rgba(212, 160, 23, 0.2);
  background: rgba(77, 34, 0, 0.6);
}

.news-card-img-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.news-card-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.news-card:hover .news-card-img-box img {
  transform: scale(1.1);
}

.news-card-category {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--color-golden);
  color: var(--color-dark);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.news-card-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-date {
  font-size: 0.8rem;
  color: var(--color-gold-bright);
  margin-bottom: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-parchment);
  margin-bottom: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s;
}

.news-card:hover .news-title {
  color: var(--color-gold-light);
}

.news-excerpt {
  font-size: 0.9rem;
  color: rgba(245, 230, 200, 0.6);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-readmore {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-golden);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ===================== Contact Section ===================== */
.contact-section {
  padding: 100px 0;
  background: linear-gradient(160deg, #2B1200 0%, #1C0A00 50%, #2B1200 100%);
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info-title {
  font-size: 1.7rem;
  color: var(--color-parchment);
  margin-bottom: 8px;
}

.contact-info-subtitle {
  font-size: 0.95rem;
  color: rgba(245, 230, 200, 0.55);
  margin-bottom: 2rem;
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  color: rgba(245, 230, 200, 0.8);
  font-size: 0.95rem;
  padding: 14px 18px;
  background: rgba(212, 160, 23, 0.05);
  border: 1px solid rgba(212, 160, 23, 0.1);
  border-radius: 10px;
  transition: var(--transition);
}

.contact-info-list li:hover {
  background: rgba(212, 160, 23, 0.1);
  border-color: rgba(212, 160, 23, 0.25);
}

.contact-info-list .ci-icon {
  font-size: 1.2rem;
  color: var(--color-golden);
  flex-shrink: 0;
  margin-top: 1px;
}

.contact-form-box {
  background: linear-gradient(145deg, #3D1A00, #4D2200);
  border: 1px solid rgba(212, 160, 23, 0.22);
  border-radius: var(--border-radius-lg);
  padding: 36px;
  position: relative;
}

.contact-form-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--gradient-gold);
  opacity: 0.6;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  color: var(--color-cream);
  margin-bottom: 8px;
  font-weight: 600;
}

.form-control {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(212, 160, 23, 0.22);
  border-radius: 10px;
  padding: 13px 18px;
  color: var(--color-cream);
  font-family: var(--font-thai);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.2);
}

.form-control:focus {
  border-color: var(--color-golden);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.12), inset 0 2px 6px rgba(0, 0, 0, 0.15);
  background: rgba(0, 0, 0, 0.4);
}

.form-control::placeholder {
  color: rgba(245, 230, 200, 0.3);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* ===================== Footer ===================== */
.footer {
  background: linear-gradient(180deg, #1C0A00 0%, #0E0500 100%);
  border-top: 1px solid rgba(212, 160, 23, 0.2);
  padding: 64px 0 0;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, #8B3A00, #C8941A, #F0C040, #C8941A, #8B3A00, transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 48px;
}

.footer-brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-gold-light);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.02em;
}

.footer-desc {
  font-size: 0.88rem;
  color: rgba(245, 230, 200, 0.48);
  line-height: 1.8;
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-parchment);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(212, 160, 23, 0.2);
  letter-spacing: 0.04em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.87rem;
  color: rgba(245, 230, 200, 0.52);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a::before {
  content: '›';
  color: var(--color-amber);
  font-size: 1rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--color-gold-light);
  padding-left: 4px;
}

/* UDRU Footer Bottom - matching the design */
.footer-bottom {
  border-top: 1px solid rgba(212, 160, 23, 0.12);
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #4D2000, #8B3A00);
  border-radius: 12px;
  border: 1px solid rgba(212, 160, 23, 0.3);
  font-size: 1.6rem;
  flex-shrink: 0;
}

.footer-bottom-text {
  font-size: 0.82rem;
  color: rgba(245, 230, 200, 0.35);
  line-height: 1.6;
}

.footer-bottom-right {
  font-size: 0.8rem;
  color: rgba(245, 230, 200, 0.28);
  text-align: right;
}

/* ===================== Animations ===================== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

.animate-in {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== Responsive ===================== */
@media (max-width: 1100px) {
  .types-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .heritage-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 20px;
  }

  .artists-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}

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

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2) {
    border-right: none;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-right {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(28, 10, 0, 0.98);
    flex-direction: column;
    padding: 24px 20px;
    gap: 4px;
    border-bottom: 2px solid rgba(212, 160, 23, 0.2);
    backdrop-filter: blur(16px);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 10px;
  }

  .hamburger {
    display: flex;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hero-title-sub {
    font-size: 1.1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .types-grid {
    grid-template-columns: 1fr;
  }

  .artists-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .heritage-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  .about-section,
  .types-section,
  .artists-section,
  .heritage-section,
  .news-section,
  .contact-section {
    padding: 72px 0;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .artists-grid {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================== Map Section ===================== */
.map-section {
  padding: 100px 0;
  background: linear-gradient(160deg, #1C0A00 0%, #2B1200 50%, #1C0A00 100%);
  position: relative;
  overflow: hidden;
}

.map-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23D4A017' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* Map Layout */
.map-wrapper {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

/* Map Box */
.map-container-box {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 2px solid rgba(212, 160, 23, 0.25);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(212, 160, 23, 0.1);
}

/* Thai gold top border on map */
.map-container-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--color-golden), var(--color-gold-light), var(--color-golden), transparent);
  z-index: 1000;
}

#artistMap {
  width: 100%;
  height: 480px;
  background: #2B1200;
}

/* Override Leaflet default colors to match theme */
.leaflet-container {
  font-family: var(--font-thai) !important;
  background: #3D1A00 !important;
}

.leaflet-control-zoom a {
  background: #3D1A00 !important;
  color: var(--color-gold-light) !important;
  border-color: rgba(212, 160, 23, 0.3) !important;
}

.leaflet-control-zoom a:hover {
  background: #5C2800 !important;
}

.leaflet-control-attribution {
  background: rgba(28, 10, 0, 0.7) !important;
  color: rgba(245, 230, 200, 0.4) !important;
  font-size: 0.7rem;
}

.leaflet-control-attribution a {
  color: var(--color-amber) !important;
}

/* Map Legend */
.map-legend {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(28, 10, 0, 0.9);
  border: 1px solid rgba(212, 160, 23, 0.3);
  border-radius: 10px;
  padding: 12px 16px;
  z-index: 999;
  backdrop-filter: blur(8px);
  min-width: 140px;
}

.map-legend-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-parchment);
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}

.map-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}

.map-legend-item:last-child {
  margin-bottom: 0;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
}

.map-legend-item span {
  font-size: 0.8rem;
  color: rgba(245, 230, 200, 0.75);
}

/* ===== Custom Leaflet Marker ===== */
.custom-leaflet-marker {
  background: none !important;
  border: none !important;
}

.artist-map-marker {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid #D4A017;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #5C2800, #3D1A00);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.artist-map-marker:hover {
  transform: scale(1.15);
  z-index: 1000;
}

.artist-map-marker img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist-map-marker span {
  font-size: 1.8rem;
  line-height: 1;
}

/* Pulsing ring animation */
.artist-map-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(212, 160, 23, 0.5);
  animation: pulse-ring 2s ease-out infinite;
  pointer-events: none;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }

  70% {
    transform: scale(1.4);
    opacity: 0;
  }

  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* ===== Leaflet Popup Thai Style ===== */
.leaflet-popup-content-wrapper.thai-popup,
.thai-popup .leaflet-popup-content-wrapper {
  background: linear-gradient(145deg, #3D1A00, #4D2200) !important;
  border: 1px solid rgba(212, 160, 23, 0.4) !important;
  border-radius: 14px !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7) !important;
  padding: 0 !important;
  color: var(--color-cream) !important;
}

.thai-popup .leaflet-popup-tip {
  background: #4D2200 !important;
}

.thai-popup .leaflet-popup-close-button {
  color: var(--color-gold-light) !important;
  font-size: 1.1rem !important;
  top: 8px !important;
  right: 10px !important;
}

.map-popup {
  font-family: var(--font-thai);
  min-width: 180px;
}

.map-popup-header {
  width: 100%;
  height: 100px;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(135deg, #5C2800, #8B3A00);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-popup-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.map-popup-emoji {
  font-size: 3.5rem;
}

.map-popup-body {
  padding: 14px 16px 16px;
}

.map-popup-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-parchment);
  margin-bottom: 3px;
  line-height: 1.3;
}

.map-popup-stage {
  font-size: 0.82rem;
  color: var(--color-amber);
  margin-bottom: 4px;
  font-style: italic;
}

.map-popup-type {
  font-size: 0.82rem;
  color: rgba(245, 230, 200, 0.7);
  margin-bottom: 6px;
}

.map-popup-level {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.map-popup-location {
  font-size: 0.78rem;
  color: rgba(245, 230, 200, 0.55);
}

/* ===== Tooltip ===== */
.leaflet-tooltip.thai-tooltip {
  background: rgba(28, 10, 0, 0.92) !important;
  border: 1px solid rgba(212, 160, 23, 0.4) !important;
  color: var(--color-gold-light) !important;
  border-radius: 8px !important;
  font-family: var(--font-thai) !important;
  font-size: 0.85rem !important;
  padding: 5px 12px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5) !important;
}

.leaflet-tooltip.thai-tooltip::before {
  border-top-color: rgba(212, 160, 23, 0.4) !important;
}

/* ===== Artist List Panel ===== */
.map-artist-panel {
  background: linear-gradient(145deg, #3D1A00, #4D2200);
  border: 1px solid rgba(212, 160, 23, 0.22);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  position: sticky;
  top: 90px;
  max-height: 520px;
  display: flex;
  flex-direction: column;
}

.map-panel-title {
  padding: 16px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-parchment);
  border-bottom: 1px solid rgba(212, 160, 23, 0.15);
  background: rgba(92, 40, 0, 0.3);
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.map-artist-list {
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 160, 23, 0.3) transparent;
}

.map-artist-list::-webkit-scrollbar {
  width: 4px;
}

.map-artist-list::-webkit-scrollbar-track {
  background: transparent;
}

.map-artist-list::-webkit-scrollbar-thumb {
  background: rgba(212, 160, 23, 0.25);
  border-radius: 2px;
}

.map-artist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(212, 160, 23, 0.08);
  cursor: pointer;
  transition: var(--transition);
}

.map-artist-item:hover {
  background: rgba(212, 160, 23, 0.1);
}

.map-artist-item.active {
  background: rgba(200, 90, 26, 0.15);
  border-left: 3px solid var(--color-golden);
}

.map-artist-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(212, 160, 23, 0.3);
  background: linear-gradient(135deg, #5C2800, #3D1A00);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.map-artist-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.map-artist-avatar span {
  font-size: 1.4rem;
}

.map-artist-info {
  flex: 1;
  min-width: 0;
}

.map-artist-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-parchment);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.map-artist-sub {
  font-size: 0.75rem;
  color: rgba(245, 230, 200, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Responsive Map ===== */
@media (max-width: 992px) {
  .map-wrapper {
    grid-template-columns: 1fr;
  }

  .map-artist-panel {
    position: static;
    max-height: 300px;
  }

  #artistMap {
    height: 380px;
  }
}

@media (max-width: 600px) {
  #artistMap {
    height: 280px;
  }

  .map-legend {
    display: none;
  }
}