/* ==========================================================================
   திருவள்ளுவர் சிலைகள் – உலகளாவிய அமைவிட வழிகாட்டி
   Thiruvalluvar Statues – Global Location Guide
   Cultural Design System & Modern UI Theme
   ========================================================================== */

:root {
  /* Safe Area Inset Support for Modern Mobile / Notches */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --header-height: clamp(56px, 7vh, 72px);

  /* Cultural Color Palette */
  --color-maroon-dark: #111111;
  --color-maroon: #222222;
  --color-maroon-light: #444444;
  --color-gold: #C29B38;
  --color-gold-light: #F4E2A8;
  --color-gold-dark: #9A7B1C;
  --color-terracotta: #555555;
  --color-sandal: #FAF4E8;
  --color-sandal-dark: #EFE4D0;
  --color-granite: #1A1E24;
  --color-granite-light: #2D3238;
  --color-granite-muted: #555D68;
  --color-bg-light: #FAF7F2;
  --color-bg-card: #FFFFFF;
  --color-border: #E8DFD5;
  --color-border-focus: #C29B38;
  
  /* Typography */
  --font-tamil: 'Noto Sans Tamil', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-tamil-serif: 'Noto Serif Tamil', 'InaiMathi', serif;
  --font-english: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Elevation & Shadows */
  --shadow-sm: 0 2px 8px rgba(26, 26, 26, 0.05);
  --shadow-md: 0 6px 18px rgba(26, 26, 26, 0.08);
  --shadow-lg: 0 12px 32px rgba(26, 26, 26, 0.12);
  --shadow-gold: 0 4px 16px rgba(194, 155, 56, 0.25);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  
  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-tamil), var(--font-english);
  background-color: var(--color-bg-light);
  color: var(--color-granite);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  width: 100%;
  min-width: 320px;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

/* Fluid Container System */
.container,
.site-container {
  width: min(100% - clamp(24px, 4vw, 64px), 1440px);
  margin-inline: auto;
}

/* Prose Reading Ergonomics (Max 75 characters for comfortable Tamil reading on 4K) */
.prose,
.modal-description-box,
.kural-meaning-box,
.hero-v2-description,
.card-highlight-desc,
.feature-card-text,
.scholar-quote-card p {
  max-width: 75ch;
}

/* Text & Headings Wrapping Safeguards */
p, span, h1, h2, h3, h4, h5, h6, a, button, li, label, td, th {
  overflow-wrap: break-word;
  word-break: normal;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-tamil), var(--font-english), sans-serif;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.38;
  letter-spacing: -0.01em;
}

/* Accessible Focus Indicator (WCAG 2.2 AA) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--color-gold) !important;
  outline-offset: 2px !important;
}

/* Official Government Top Bar (Centered Above Menu) */
.top-govt-bar {
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  width: 100%;
  padding: 5px clamp(8px, 2vw, 16px);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  position: relative;
  z-index: 1025;
}

.top-govt-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.4vw, 14px);
  text-decoration: none;
  text-align: center;
  max-width: 100%;
}

.top-govt-logo {
  width: clamp(28px, 2.8vw, 38px);
  height: clamp(28px, 2.8vw, 38px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12));
}

.top-govt-text-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.25;
}

.top-govt-dept-main {
  font-family: var(--font-english), var(--font-tamil), sans-serif;
  font-size: clamp(0.78rem, 1.15vw, 1.02rem);
  font-weight: 800;
  color: #003399 !important; /* Official Tamil Valarchi Thurai Blue */
  letter-spacing: 0.1px;
  text-align: center;
  word-break: normal;
}

.top-govt-dept-sub {
  font-family: var(--font-tamil), var(--font-english), sans-serif;
  font-size: clamp(0.7rem, 0.92vw, 0.84rem);
  font-weight: 700;
  color: #0369A1 !important; /* Ocean Blue Accent */
  letter-spacing: 0.1px;
  text-align: center;
  margin-top: 2px;
  word-break: normal;
}

@media (max-width: 640px) {
  .top-govt-bar {
    padding: 4px 8px;
  }
  .top-govt-container {
    gap: 8px;
  }
  .top-govt-logo {
    width: 28px;
    height: 28px;
  }
  .top-govt-dept-main {
    font-size: 0.76rem;
    line-height: 1.2;
  }
  .top-govt-dept-sub {
    font-size: 0.68rem;
    line-height: 1.2;
  }
}

@media (max-width: 380px) {
  .top-govt-logo {
    width: 24px;
    height: 24px;
  }
  .top-govt-dept-main {
    font-size: 0.7rem;
  }
  .top-govt-dept-sub {
    font-size: 0.64rem;
  }
}

/* Header & Glassmorphic Navigation */
.header-glass-nav {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: linear-gradient(135deg, #003399 0%, #004FA3 50%, #0284C7 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid #F59E0B;
  box-shadow: 0 2px 12px rgba(0, 51, 153, 0.2);
  width: 100%;
  padding-top: max(0px, var(--safe-top));
}

.header-glass-navbar {
  width: min(100% - clamp(16px, 3vw, 48px), 1440px);
  margin: 0 auto;
  padding: 0.35rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 50px;
}

.brand-badge-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0 !important;
  min-width: max-content !important;
}

.brand-emblem-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #F59E0B;
  background: #002244;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.5);
  flex-shrink: 0 !important;
  overflow: visible;
}

.brand-emblem-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 50%;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

.brand-emblem-number {
  position: absolute;
  bottom: -4px;
  right: -5px;
  background: linear-gradient(135deg, #0284C7 0%, #003399 100%);
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: var(--radius-pill);
  border: 1.5px solid #FDE047;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  line-height: 1.2;
}

.brand-titles-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.brand-title-ta {
  font-size: clamp(1.02rem, 1.4vw, 1.25rem);
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.2px;
  font-family: var(--font-tamil-serif);
  white-space: nowrap !important;
  line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.brand-subtitle-en {
  font-size: 0.64rem;
  color: #FDE047;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  line-height: 1.2;
  margin-top: 2px;
  white-space: nowrap !important;
}

/* Nav Links Menu - Perfectly Centered & Balanced */
.header-glass-navbar nav {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  flex: 1 1 auto;
}

.nav-links-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.35rem, 0.8vw, 0.75rem);
  list-style: none;
  margin: 0;
  padding: 3px 6px;
  background: rgba(0, 25, 75, 0.35);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  flex-wrap: nowrap !important;
  flex-shrink: 0;
}

.nav-links-menu li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap !important;
}

.nav-menu-link {
  color: #FFFFFF;
  text-decoration: none;
  font-size: clamp(0.88rem, 0.95vw, 0.98rem);
  font-weight: 700;
  transition: all 0.2s ease-in-out;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap !important;
  word-break: keep-all !important;
  line-height: 1.2;
  flex-shrink: 0;
}

.nav-menu-link span {
  white-space: nowrap !important;
  display: inline-block;
  vertical-align: middle;
}

.nav-menu-link i {
  font-size: 0.92rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FDE047;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
}

.nav-menu-link:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.18);
}

.nav-menu-link:hover i {
  transform: translateY(-1.5px) scale(1.12);
  color: #FFFBEB;
}

.nav-menu-link.active {
  color: #002244 !important;
  background: linear-gradient(135deg, #FDE047 0%, #F59E0B 100%) !important;
  box-shadow: 0 3px 12px rgba(245, 158, 11, 0.45);
  font-weight: 800;
}

.nav-menu-link.active i {
  color: #002244 !important;
  transform: scale(1.05);
}

.nav-menu-link.active span {
  color: #002244 !important;
}

/* Right Header Tools */
.header-right-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-shrink: 0;
}

.lang-switch-pill {
  display: flex;
  align-items: center;
  background: rgba(0, 25, 75, 0.4);
  border: 1.5px solid rgba(245, 158, 11, 0.65);
  border-radius: var(--radius-pill);
  padding: 3px;
  height: 38px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.lang-pill-btn {
  border: none;
  background: transparent;
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 13px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-fast);
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.lang-pill-btn.active {
  background: linear-gradient(135deg, #FDE047 0%, #F59E0B 100%);
  color: #002244;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn-header-search-icon {
  background: rgba(0, 25, 75, 0.35);
  border: 1.5px solid rgba(245, 158, 11, 0.55);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-header-search-icon:hover {
  background: #F59E0B;
  color: #002244;
  transform: translateY(-1px);
}

.mobile-menu-trigger {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

/* ==========================================================================
   Hero Section V2 - Natural Kanyakumari Monument Banner
   ========================================================================== */
.hero-v2-container {
  background: url('../img/kanyakumari_hero_banner.jpg') center right / cover no-repeat;
  position: relative;
  padding: clamp(3.5rem, 8vh, 6rem) clamp(1rem, 3.5vw, 2.5rem) clamp(4.5rem, 10vh, 7.5rem);
  color: #0F172A;
  overflow: hidden;
  min-height: clamp(540px, 72vh, 660px);
  display: flex;
  align-items: center;
}

.hero-v2-inner {
  width: min(100% - clamp(24px, 4vw, 64px), 1440px);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero-v2-content {
  max-width: min(100%, 720px);
  width: 100%;
}

.hero-glass-card {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid #BAE6FD; /* Sky Blue Border */
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.2vw, 2.6rem);
  box-shadow: 0 12px 36px rgba(2, 132, 199, 0.14), 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 380px;
}

.govt-brand-seal-badge {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: #FFFFFF;
  border: 2px solid #38BDF8;
  border-radius: 50px;
  padding: 8px 24px 8px 12px;
  margin-bottom: 1.5rem;
  width: fit-content;
  max-width: 100%;
  box-shadow: 0 4px 20px rgba(0, 51, 153, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: var(--transition-fast);
}

.govt-brand-seal-badge:hover {
  border-color: #F59E0B;
  box-shadow: 0 6px 24px rgba(0, 51, 153, 0.18);
  transform: translateY(-1px);
}

.govt-seal-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.15));
}

.govt-seal-dept {
  font-family: var(--font-tamil), var(--font-english);
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  font-weight: 900;
  color: #003399 !important; /* Official Tamil Valarchi Thurai Blue */
  line-height: 1.2;
  letter-spacing: -0.2px;
  text-shadow: none;
}

.hero-title-group {
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hero-title-top {
  display: block;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 700;
  color: #0284C7; /* Sky Blue */
  font-family: var(--font-tamil), var(--font-english);
  letter-spacing: -0.2px;
}

.hero-title-main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: clamp(1.4rem, 2.3vw, 2.15rem);
  font-weight: 800;
  color: #003399; /* Deep Dignified Royal Blue */
  font-family: var(--font-tamil), sans-serif;
  line-height: 1.28;
  letter-spacing: -0.015em;
  text-shadow: none;
  white-space: normal;
}

.hero-title-line {
  display: block;
  white-space: normal;
}

@media (min-width: 641px) {
  .hero-title-line {
    white-space: nowrap !important;
  }
}

.hero-v2-description {
  font-size: clamp(0.96rem, 1.35vw, 1.1rem);
  color: #1E293B; /* Black / Slate text */
  margin: 0 0 1.75rem;
  line-height: 1.75;
  text-shadow: none;
  max-width: 52ch;
  font-weight: 500;
}

.hero-v2-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(0.75rem, 1.5vw, 1.1rem);
  margin-top: 0.25rem;
}

/* 2. Primary CTA: Golden Yellow Background with Dark Text */
.btn-hero-primary-gold {
  background: linear-gradient(135deg, #FDE047 0%, #F59E0B 50%, #D97706 100%);
  color: #002244 !important; /* Bold Navy Blue / Black */
  font-weight: 800;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid #FCD34D;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
  transition: var(--transition-fast);
  cursor: pointer;
  min-height: 48px;
}

.btn-hero-primary-gold:hover {
  background: linear-gradient(135deg, #FEF08A 0%, #FBBF24 50%, #EA580C 100%);
  color: #001733 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(245, 158, 11, 0.55);
}

.btn-hero-primary-gold i {
  color: #003399;
}

/* 3. Secondary CTA: Subtle Light Grey/Sky Blue */
.btn-hero-glass-outline {
  background: #F0F9FF;
  color: #003399 !important;
  border: 1.5px solid #BAE6FD;
  font-weight: 700;
  font-size: clamp(0.92rem, 1.2vw, 1rem);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.08);
  transition: var(--transition-fast);
  min-height: 48px;
  text-decoration: none;
}

.btn-hero-glass-outline:hover {
  background: #E0F2FE;
  border-color: #38BDF8;
  color: #002244 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
}

/* Floating Stats Bar - Stitch 4-Column Grid/Flex Architecture */
.stats-floating-wrapper {
  width: min(100% - clamp(24px, 4vw, 64px), 1280px);
  margin: clamp(-38px, -4vw, -28px) auto clamp(2rem, 4vw, 3.5rem);
  padding: 0;
  position: relative;
  z-index: 10;
}

.stats-glass-bar {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1.5px solid #BAE6FD; /* Sky Blue Border */
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.12), 0 2px 6px rgba(0, 0, 0, 0.02);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: clamp(14px, 1.8vw, 18px) clamp(16px, 2.5vw, 24px);
  gap: 0;
  align-items: center;
}

.stat-cell-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.4vw, 16px);
  padding: 0.65rem clamp(0.75rem, 1.5vw, 1.5rem);
  text-align: left;
}

.stat-cell-box:not(:last-child) {
  border-right: 1.5px solid #E0F2FE; /* Sky Blue Separator */
}

.stat-icon-gold-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #E0F2FE; /* Sky Blue Tint */
  border: 1.5px solid #38BDF8;
  color: #0284C7; /* Vivid Sky Blue */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.15);
}

.stat-data-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-number-bold {
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-weight: 900;
  color: #003399; /* Royal Blue Number */
  line-height: 1.05;
  font-family: var(--font-english);
  letter-spacing: -0.5px;
}

.stat-label-muted {
  font-size: clamp(0.78rem, 1vw, 0.85rem);
  font-weight: 600;
  color: #334155; /* Slate Black Label */
  margin-top: 3px;
  line-height: 1.2;
}

@media (max-width: 900px) {
  .hero-v2-container {
    padding: 3rem 1.25rem 4.5rem;
    min-height: auto;
  }
  .stats-glass-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 0;
    padding: 18px 16px;
  }
  .stat-cell-box:nth-child(2n) {
    border-right: none;
  }
  .stat-cell-box:nth-child(1),
  .stat-cell-box:nth-child(2) {
    border-bottom: 1.5px solid #E0F2FE;
    padding-bottom: 1rem;
  }
  .stat-cell-box:nth-child(3),
  .stat-cell-box:nth-child(4) {
    padding-top: 1rem;
  }
}

@media (max-width: 600px) {
  .hero-v2-container {
    padding: 2.25rem 1rem 3.5rem;
  }
  .hero-glass-card {
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius-md);
  }
  .stats-glass-bar {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px 14px;
  }
  .stat-cell-box {
    border-right: none !important;
    border-bottom: 1.5px solid #E0F2FE;
    padding: 10px 12px 14px !important;
    justify-content: flex-start;
  }
  .stat-cell-box:last-child {
    border-bottom: none;
  }
}

/* ==========================================================================
   Map Explorer Page Layout (/tamil/#all)
   ========================================================================== */
.explorer-container {
  display: flex;
  height: calc(100dvh - 84px);
  height: calc(100vh - 84px);
  min-height: 480px;
  position: relative;
  overflow: hidden;
  background: #E5E3DF;
}

.explorer-sidebar {
  width: 42%;
  min-width: 380px;
  max-width: 520px;
  background: var(--color-bg-light);
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  height: 100%;
  z-index: 20;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.05);
}

.explorer-map-pane {
  flex: 1;
  height: 100%;
  position: relative;
  background: #E5E3DF;
}

/* Top Search & Filter Bar */
.sidebar-top-bar {
  padding: 0.6rem 0.75rem 0.5rem;
  background: #FFFFFF;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.sidebar-search-row {
  display: flex;
  width: 100%;
}

.sidebar-search-input-wrap {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
}

.sidebar-search-input-wrap input {
  width: 100%;
  height: 42px;
  padding: 0 34px 0 38px;
  border-radius: 10px;
  border: 1.5px solid var(--color-border);
  background: #FAF8F5;
  font-size: 0.88rem;
  color: #111827 !important;
  font-weight: 600;
  outline: none;
  font-family: inherit;
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
}

.sidebar-search-input-wrap input::placeholder {
  color: #64748B;
  font-weight: 500;
  font-size: 0.85rem;
}

.sidebar-search-input-wrap input:focus {
  border-color: var(--color-gold);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.22);
}

.sidebar-search-input-wrap i.search-icon-left,
.sidebar-search-input-wrap > i:first-child {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-terracotta, #9A3412);
  font-size: 0.95rem;
  pointer-events: none;
}

.sidebar-search-clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #E2DCD5;
  color: #4B5563;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  transition: all 0.15s ease;
  padding: 0;
}

.sidebar-search-clear-btn:hover {
  background: #C62828;
  color: #FFFFFF;
}

.sidebar-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.sidebar-filter-toggle-btn {
  height: 38px;
  background: #FFFFFF;
  border: 1.5px solid var(--color-gold);
  color: var(--color-maroon-dark);
  padding: 0 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.sidebar-filter-toggle-btn:hover {
  background: #FFFDF7;
  border-color: var(--color-terracotta);
  color: var(--color-terracotta);
  transform: translateY(-1px);
}

.sidebar-count-chip {
  font-size: 0.76rem;
  font-weight: 700;
  color: #1E293B;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* Quick Category Chips Side Horizontal Scroll Bar (Clean Wrapping & Compact) */
.category-chips-scroll {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap !important;
  overflow-x: hidden !important;
  overflow-y: visible;
  gap: 6px;
  padding: 0.55rem 0.75rem 0.6rem;
  background: #FAF8F5;
  border-bottom: 1.5px solid var(--color-border);
}

.category-chip-btn {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  background: #FFFFFF;
  border: 1.5px solid #E2DCD5;
  color: #111827 !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  width: auto;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.category-chip-btn .chip-content-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.category-chip-btn .chip-content-wrap i {
  font-size: 0.8rem;
  color: #9A3412;
  flex-shrink: 0;
}

.category-chip-btn .chip-content-wrap span {
  white-space: nowrap;
}

.category-chip-badge {
  font-size: 0.7rem;
  font-weight: 800;
  background: #F1F5F9;
  color: #475569;
  padding: 1px 6px;
  border-radius: 9999px;
  flex-shrink: 0;
  line-height: 1.2;
}

.category-chip-btn:hover {
  border-color: var(--color-gold);
  background: #FFFDF9;
  color: #000000 !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.category-chip-btn.active {
  background: var(--color-maroon, #6B1724) !important;
  color: #FFFFFF !important;
  border-color: var(--color-maroon, #6B1724) !important;
  box-shadow: 0 2px 8px rgba(107, 23, 36, 0.3);
}

.category-chip-btn.active .chip-content-wrap i {
  color: #FDE047 !important;
}

.category-chip-btn.active .chip-content-wrap span {
  color: #FFFFFF !important;
}

.category-chip-btn.active .category-chip-badge {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #FFFFFF !important;
}

/* Collapsible Filter Panel */
.filter-dropdown-panel {
  background: #FFFFFF;
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 1.25rem;
  display: none;
  animation: slideDown 0.22s ease-out;
}

.filter-dropdown-panel.open {
  display: block;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.filter-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.filter-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.filter-field-group label {
  font-size: 0.78rem;
  font-weight: 800;
  color: #000000 !important;
  text-transform: uppercase;
}

.filter-field-group select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  font-size: 0.88rem;
  background-color: #fff;
  color: #000000 !important;
  font-weight: 600;
  outline: none;
  font-family: inherit;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-field-group select:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

.filter-field-group select:disabled {
  background-color: #F7F5F0;
  color: #8C827A !important;
  cursor: not-allowed;
  border-color: #E2DBD2;
  opacity: 0.85;
}

.filter-field-group select option {
  white-space: normal;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 6px;
  color: #1A1A1A;
}

.filter-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-clear-filters {
  background: #FFF7ED;
  border: 1px solid #FFEDD5;
  color: #C2410C;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 6px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-fast);
}

.btn-clear-filters:hover {
  background: #FFEDD5;
  color: #9A3412;
  border-color: #FDBA74;
}

/* Toolbar: Count & View Toggle */
.sidebar-toolbar {
  padding: 0.35rem 0.75rem;
  background: #FBF9F6;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

.results-count-text {
  font-weight: 800;
  color: #0F172A !important;
  font-size: 0.84rem;
}

.view-mode-toggles {
  display: flex;
  gap: 3px;
}

.view-btn {
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-granite-muted);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.82rem;
  transition: var(--transition-fast);
}

.view-btn:hover {
  border-color: var(--color-gold);
  color: var(--color-maroon-dark);
}

.view-btn.active {
  background: var(--color-maroon);
  color: #fff;
  border-color: var(--color-maroon);
}

/* Statue Cards Container with Sleek Side Scroll Bar */
.statue-cards-scroll-container,
#statue-list {
  flex: 1;
  overflow-y: auto !important;
  overflow-x: hidden;
  padding: 0.65rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #D4AF37 #F1E9DE;
}

.statue-cards-scroll-container::-webkit-scrollbar,
#statue-list::-webkit-scrollbar {
  width: 8px;
  display: block;
}

.statue-cards-scroll-container::-webkit-scrollbar-track,
#statue-list::-webkit-scrollbar-track {
  background: #F1E9DE;
  border-radius: 9999px;
}

.statue-cards-scroll-container::-webkit-scrollbar-thumb,
#statue-list::-webkit-scrollbar-thumb {
  background: #D4AF37;
  border-radius: 9999px;
}

.statue-cards-scroll-container::-webkit-scrollbar-thumb:hover,
#statue-list::-webkit-scrollbar-thumb:hover {
  background: #A04028;
}

/* Skeleton Loading Container & Animations */
#statue-list-skeleton[hidden] {
  display: none !important;
}

.skeleton-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
}

.skeleton-card {
  height: 130px;
  background: linear-gradient(90deg, #EDE8E1 25%, #F7F5F0 50%, #EDE8E1 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* List Error State */
.list-error-state {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: #FFF8F6;
  border: 1.5px dashed var(--color-terracotta);
  border-radius: var(--radius-md);
  margin: 1rem 0;
}

.list-error-state h2 {
  font-size: 1.15rem;
  color: var(--color-maroon);
  margin-bottom: 0.5rem;
}

.list-error-state p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.list-error-state button {
  background: var(--color-maroon);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.list-error-state button:hover {
  background: var(--color-terracotta);
}

/* Grid Mode Container */
.statue-cards-scroll-container.grid-mode,
#statue-list.grid-mode {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

/* Statue Card Component */
.statue-card {
  background: #FFFFFF;
  border-radius: 9px;
  border: 1.5px solid #E2E8F0;
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  flex-shrink: 0;
  min-height: 105px;
  height: auto;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  color: #000000;
}

.statue-card:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.14);
  border-color: #38BDF8;
}

.statue-card.active-marker {
  border: 2px solid #003399;
  box-shadow: 0 0 0 3px rgba(0, 51, 153, 0.25);
}

/* List Mode Card Layout */
.statue-card-image-wrap {
  width: 95px;
  min-width: 95px;
  aspect-ratio: 3 / 4;
  height: auto;
  flex-shrink: 0;
  position: relative;
  background: #E0F2FE;
  overflow: hidden;
  border-radius: 8px 0 0 8px;
}

.statue-card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top !important;
  display: block;
  transition: transform 0.4s ease;
}

.statue-card:hover .statue-card-image-wrap img {
  transform: scale(1.05);
}

.statue-year-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  background: rgba(0, 35, 80, 0.9);
  color: #FDE047;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(2px);
  border: 1px solid rgba(253, 224, 71, 0.5);
  line-height: 1.2;
}

.statue-dist-badge {
  position: absolute;
  bottom: 5px;
  left: 5px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: var(--radius-pill);
  line-height: 1.2;
}

.statue-card-body {
  padding: 0.45rem 0.7rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #000000;
  min-width: 0;
}

.statue-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0F172A !important;
  margin-bottom: 0.15rem;
  line-height: 1.35;
  font-family: var(--font-tamil), sans-serif;
  overflow-wrap: break-word;
  word-break: break-word;
}

.statue-card-loc-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: #0284C7 !important;
  font-weight: 700;
  margin-bottom: 0.2rem;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

.statue-card-loc-pill i {
  color: #0284C7;
  font-size: 0.78rem;
}

.statue-card-short-desc {
  font-size: 0.74rem;
  line-height: 1.42;
  color: #64748B;
  margin: 2px 0 5px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.statue-card-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 0.35rem;
  padding-top: 0.4rem;
  border-top: 1px solid #F1F5F9;
  width: 100%;
}

.btn-card-details {
  flex: 1;
  font-size: 0.78rem;
  font-weight: 800;
  color: #002244 !important;
  background: #FEF08A;
  border: 1px solid #FCD34D;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  text-decoration: none;
}

.btn-card-details:hover {
  background: #F59E0B;
  color: #FFFFFF !important;
  border-color: #D97706;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.btn-card-map-pin {
  font-size: 0.76rem;
  font-weight: 700;
  color: #0369A1 !important;
  background: #F0F9FF;
  border: 1px solid #BAE6FD;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: var(--transition-fast);
  margin-left: 0;
}

.btn-card-map-pin:hover {
  background: var(--color-gold);
  color: #000000 !important;
  border-color: var(--color-gold);
}

.btn-card-map-pin:hover {
  background: var(--color-gold);
  color: #000000 !important;
  border-color: var(--color-gold);
}

/* Grid Mode Card Layout */
.statue-cards-scroll-container.grid-mode .statue-card {
  flex-direction: column;
}

.statue-cards-scroll-container.grid-mode .statue-card-image-wrap {
  width: 100%;
  height: 140px;
}

/* ==========================================================================
   Leaflet Custom Marker, Popups & Floating Map Controls
   ========================================================================== */
.valluvar-custom-pin-marker {
  cursor: pointer;
}

.valluvar-pin-wrapper {
  position: relative;
  width: 36px;
  height: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.35));
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.valluvar-pin-wrapper:hover {
  transform: scale(1.18) translateY(-4px);
  z-index: 1000 !important;
}

.valluvar-pin-head {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #111111 0%, #333333 100%);
  border: 2.5px solid #D4AF37;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

.valluvar-pin-head img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.valluvar-pin-pointer {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 10px solid #333333;
  margin-top: -2px;
}

/* GPS User Pulse Marker */
.user-pulse-marker {
  position: relative;
}

.user-pulse-dot {
  width: 16px;
  height: 16px;
  background: #007BFF;
  border: 3px solid #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.6);
  position: relative;
}

.user-pulse-ring {
  position: absolute;
  top: -12px;
  left: -12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #007BFF;
  animation: pulseUser 1.6s infinite ease-out;
  opacity: 0.8;
}

@keyframes pulseUser {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Floating Region Presets Bar on Map */
.map-floating-pill-presets {
  display: flex;
  gap: 5px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 5px 8px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
  border: 1.5px solid var(--color-gold);
}

.map-preset-btn {
  background: transparent;
  border: none;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-maroon-dark);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition-fast);
}

.map-preset-btn:hover, .map-preset-btn.active {
  background: var(--color-maroon);
  color: #fff;
}

/* Leaflet Popup Styling */
.valluvar-leaflet-popup .leaflet-popup-content-wrapper {
  border-radius: var(--radius-md) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25) !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1.5px solid var(--color-gold);
}

.valluvar-leaflet-popup .leaflet-popup-content {
  margin: 0 !important;
  width: 290px !important;
  font-family: inherit;
}

.popup-statue-card {
  display: flex;
  flex-direction: column;
}

.popup-img-wrap {
  width: 100%;
  height: 135px;
  position: relative;
  background: #E8DFD5;
}

.popup-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popup-year-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(56, 11, 18, 0.88);
  color: var(--color-gold-light);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.popup-height-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.popup-body {
  padding: 0.85rem 1rem;
}

.popup-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #000000 !important;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.popup-loc {
  font-size: 0.82rem;
  color: #111827 !important;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.popup-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.valluvar-leaflet-popup .btn-popup-primary,
.leaflet-container a.btn-popup-primary,
.btn-popup-primary {
  flex: 1;
  background: linear-gradient(135deg, #003399 0%, #002266 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid #002266 !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  padding: 8px 14px !important;
  border-radius: var(--radius-sm) !important;
  cursor: pointer !important;
  text-align: center !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  box-shadow: 0 2px 8px rgba(0, 51, 153, 0.28) !important;
  transition: all 0.2s ease !important;
}

.valluvar-leaflet-popup .btn-popup-primary i,
.leaflet-container a.btn-popup-primary i,
.btn-popup-primary i {
  color: #FDE047 !important;
  font-size: 0.92rem !important;
}

.valluvar-leaflet-popup .btn-popup-primary span,
.leaflet-container a.btn-popup-primary span,
.btn-popup-primary span {
  color: #FFFFFF !important;
  font-weight: 800 !important;
}

.valluvar-leaflet-popup .btn-popup-primary:hover,
.leaflet-container a.btn-popup-primary:hover,
.btn-popup-primary:hover {
  background: linear-gradient(135deg, #0044CC 0%, #003399 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(0, 51, 153, 0.4) !important;
  transform: translateY(-1px);
}

.btn-popup-directions {
  background: #FFFBEB !important;
  color: #B45309 !important;
  border: 1.5px solid #F59E0B !important;
  font-size: 0.88rem !important;
  padding: 7px 11px !important;
  border-radius: var(--radius-sm) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.btn-popup-directions:hover {
  background: #F59E0B !important;
  color: #FFFFFF !important;
  box-shadow: 0 3px 8px rgba(245, 158, 11, 0.35) !important;
}

.btn-popup-share {
  background: #F0FDF4 !important;
  color: #15803D !important;
  border: 1.5px solid #86EFAC !important;
  font-size: 0.88rem !important;
  padding: 7px 10px !important;
  border-radius: var(--radius-sm) !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
}

.btn-popup-share:hover {
  background: #16A34A !important;
  color: #FFFFFF !important;
  box-shadow: 0 3px 8px rgba(22, 163, 74, 0.35) !important;
}

/* ==========================================================================
   Modals (Statue Details, Quick Search, Thirukkural, Gallery, Timeline)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 10, 12, 0.78);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.modal-overlay.open {
  opacity: 1;
}

.modal-content-box {
  background: #FFFFFF;
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  overflow-y: auto;
  position: relative;
  border: 2px solid var(--color-gold);
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.modal-overlay.open .modal-content-box {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--color-maroon);
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--color-maroon);
  color: #fff;
}

/* ==========================================================================
   Statue Standalone SEO Page Hero & Image Styles
   ========================================================================== */
.statue-detail-page-card {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid #E8DFD5;
}

.statue-page-hero-wrap {
  position: relative;
  width: 100%;
  height: clamp(400px, 54vw, 580px);
  min-height: 360px;
  background: #0F172A;
  overflow: hidden;
  border-bottom: 2px solid #E8DFD5;
}

.statue-page-hero-bg {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center center;
  filter: blur(28px) saturate(1.2);
  opacity: 0.35;
  transform: scale(1.1);
  pointer-events: none;
  z-index: 1;
}

.statue-page-hero-wrap img.statue-main-photo {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  margin: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
  transition: transform 0.4s ease;
}

.statue-page-hero-wrap:hover img.statue-main-photo {
  transform: scale(1.02);
}

.statue-page-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: clamp(0.75rem, 2vw, 1.25rem);
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.55) 60%, transparent 100%);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  z-index: 3;
}

/* Prominent Turn-by-turn Navigation Button & Place Profile Link */
.btn-nav-direct-prominent {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #1E88E5 0%, #1565C0 50%, #0D47A1 100%);
  color: #FFFFFF !important;
  text-decoration: none;
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(21, 101, 192, 0.32), 0 2px 6px rgba(0, 0, 0, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}

.btn-nav-direct-prominent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(21, 101, 192, 0.45);
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 50%, #0D47A1 100%);
  color: #FFFFFF !important;
}

.btn-nav-direct-prominent .nav-direct-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #FDE047;
  flex-shrink: 0;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.btn-nav-direct-prominent .nav-direct-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.btn-nav-direct-prominent .nav-direct-title {
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
  font-weight: 800;
  letter-spacing: -0.2px;
  color: #FFFFFF;
}

.btn-nav-direct-prominent .nav-direct-sub {
  font-size: 0.8rem;
  color: #E3F2FD;
  font-weight: 500;
  opacity: 0.95;
}

.btn-nav-place-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #FFFFFF;
  color: #003399 !important;
  border: 1.5px solid #CBD5E1;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.btn-nav-place-link:hover {
  background: #F8FAFC;
  border-color: #003399;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 51, 153, 0.1);
}

/* Modal Hero Image Box */
.modal-hero-img-wrap {
  width: 100%;
  height: clamp(340px, 48vh, 460px);
  background: #1C2024;
  position: relative;
  overflow: hidden;
}

.modal-hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top !important;
  display: block;
}

.modal-hero-gradient-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.5rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, transparent 100%);
  display: flex;
  gap: 8px;
}

.modal-badge-region {
  background: var(--color-gold);
  color: var(--color-maroon-dark);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.modal-badge-year {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
}

.modal-body-content {
  padding: 1.75rem 2rem;
}

.modal-statue-title {
  font-size: 1.75rem;
  font-weight: 900;
  color: #000000 !important;
  margin-bottom: 0.25rem;
}

.modal-statue-subtitle {
  font-size: 1.05rem;
  color: #374151 !important;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  background: var(--color-sandal);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.modal-meta-item {
  display: flex;
  flex-direction: column;
}

.modal-meta-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: #374151 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-meta-value {
  font-size: 0.98rem;
  font-weight: 700;
  color: #000000 !important;
  margin-top: 2px;
}

.modal-section-card {
  margin-bottom: 1.5rem;
}

.modal-section-heading {
  font-size: 1.15rem;
  font-weight: 800;
  color: #000000 !important;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
}

.modal-description-box {
  font-size: 1rem;
  line-height: 1.8;
  color: #111827 !important;
}

/* Nearby Statues Matrix */
.modal-nearby-container {
  margin-bottom: 1.5rem;
}

.modal-nearby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem;
}

.nearby-statue-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.nearby-statue-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(44, 24, 16, 0.1);
}

.nearby-statue-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  object-position: center top !important;
  display: block;
}

.nearby-statue-info {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.nearby-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-maroon-dark);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.nearby-dist-pill {
  font-size: 0.72rem;
  color: var(--color-gold-dark);
  font-weight: 700;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.modal-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}

.share-buttons-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-share-social {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-maroon);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
}

.btn-share-social:hover {
  background: var(--color-maroon);
  color: #fff;
}

/* Quick Live Search Modal */
.quick-search-modal-box {
  background: #FFFFFF;
  width: 100%;
  max-width: 620px;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0,0,0,0.45);
  border: 2px solid var(--color-gold);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.quick-search-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-sandal);
}

.quick-search-input-field {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-maroon-dark);
  outline: none;
  font-family: inherit;
}

.quick-search-results-list {
  max-height: 420px;
  overflow-y: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.quick-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #FAF7F0;
  border: 1px solid #E8DFD5;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.quick-search-item:hover {
  background: #FFFFFF;
  border-color: var(--color-gold);
  transform: translateX(4px);
}

/* Toast Message */
.custom-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--color-maroon-dark);
  color: #fff;
  border: 1.5px solid var(--color-gold);
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  z-index: 4000;
  opacity: 0;
  transform: translateY(16px);
  transition: all var(--transition-normal);
  pointer-events: none;
}

.custom-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Daily Thirukkural Section & Widgets
   ========================================================================== */
.daily-kural-showcase-section {
  background: linear-gradient(135deg, #111111 0%, #222222 50%, #333333 100%);
  color: #fff;
  padding: 4rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.daily-kural-container {
  max-width: 980px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.kural-card-ornate {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  text-align: left;
}

.kural-header-badge-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.kural-badge-num {
  background: var(--color-gold);
  color: var(--color-maroon-dark);
  font-weight: 900;
  font-size: 0.85rem;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.3px;
}

.kural-date-pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #FDF6E2;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
}

.kural-couplet-text {
  font-family: var(--font-tamil-serif);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.9;
  color: #FDF6E2;
  margin: 1.25rem 0;
  letter-spacing: 0.5px;
  text-align: left;
  padding: 1.1rem 1.4rem;
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
}

.kural-meaning-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
  text-align: left;
}

.kural-meaning-header-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 1px dashed rgba(212, 175, 55, 0.2);
  padding-bottom: 0.5rem;
}

.kural-showcase-comm-tabs {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 20px;
  padding: 2px;
  gap: 2px;
}

.kural-showcase-comm-btn {
  background: transparent;
  border: none;
  color: #CBD5E1;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 14px;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: inherit;
}

.kural-showcase-comm-btn:hover {
  color: #FFF;
}

.kural-showcase-comm-btn.active {
  background: var(--color-gold);
  color: var(--color-maroon-dark);
  font-weight: 800;
}

.kural-showcase-english-wrap {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
}

.kural-action-tools {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn-kural-tool {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #fff;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
  font-family: inherit;
}

.btn-kural-tool:hover {
  background: var(--color-gold);
  color: var(--color-maroon-dark);
  border-color: var(--color-gold);
  transform: translateY(-1px);
}

.btn-kural-tool.highlight-gold {
  background: var(--color-gold);
  color: var(--color-maroon-dark);
  font-weight: 800;
  border-color: #FFF;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

.btn-kural-tool.highlight-gold:hover {
  background: #FFF;
  color: var(--color-maroon-dark);
}

/* ==========================================================================
   Photo Gallery Grid
   ========================================================================== */
.gallery-grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.85rem;
  padding: 1rem 0;
}

.gallery-card-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  cursor: pointer;
  position: relative;
  background: #000;
  aspect-ratio: 4 / 3;
}

.gallery-card-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-card-item:hover img {
  transform: scale(1.08);
}

.gallery-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
  padding: 8px 10px;
  color: #fff;
}

.gallery-title {
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-loc {
  font-size: 0.7rem;
  color: var(--color-gold);
}

/* Highlights Section */
.highlights-navy-section {
  background: linear-gradient(135deg, #2D080E 0%, #440F18 100%);
  padding: clamp(3rem, 6vh, 4.5rem) 0;
  color: #fff;
}

.highlights-container {
  width: min(100% - clamp(24px, 4vw, 64px), 1440px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(1.5rem, 2.5vw, 2.25rem);
  align-items: stretch;
}

.card-world-map-large {
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.world-map-graphic-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 200px;
  max-height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 1.25rem 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.world-map-graphic-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-card-pill-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--color-gold-light);
  border: 1.5px solid var(--color-gold);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 700;
  width: fit-content;
  max-width: 100%;
  transition: var(--transition-fast);
  min-height: 44px;
}

.btn-card-pill-outline:hover {
  background: var(--color-gold);
  color: var(--color-maroon-dark);
}

.cards-stacked-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(1.25rem, 2vw, 1.75rem);
  height: 100%;
}

.card-feature-horizontal {
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex: 1;
}

.feature-horizontal-body {
  flex: 1;
  min-width: 0;
}

.feature-horizontal-img {
  width: clamp(110px, 15vw, 145px);
  height: clamp(110px, 15vw, 145px);
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1.5px solid var(--color-gold);
  flex-shrink: 0;
}

.btn-card-pill-dark {
  background: var(--color-gold);
  color: var(--color-maroon-dark);
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 0.85rem;
  min-height: 40px;
  transition: var(--transition-fast);
}

.btn-card-pill-dark:hover {
  background: #FFFFFF;
  color: var(--color-maroon-dark);
  transform: translateY(-1px);
}

/* Featured Prominent Statues Section Spacing */
.featured-section {
  padding-top: clamp(3.5rem, 6.5vh, 5.5rem);
  padding-bottom: clamp(1.5rem, 3vh, 2.5rem);
  width: min(100% - clamp(24px, 4vw, 64px), 1440px);
  margin: 0 auto;
}

.featured-section .section-ornate-header {
  margin-top: 0;
  margin-bottom: clamp(1.25rem, 2.5vh, 1.75rem);
}

.featured-section .ornate-motif-divider {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

/* Features Light Section */
.features-light-section {
  padding: clamp(3rem, 6vh, 4.5rem) 0;
  width: min(100% - clamp(24px, 4vw, 64px), 1440px);
  margin: 0 auto;
}

.section-ornate-header {
  text-align: center;
  margin-bottom: clamp(1.25rem, 2.5vh, 2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.section-kural-subtitle {
  font-size: clamp(0.88rem, 1.4vw, 1.05rem);
  font-weight: 700;
  color: #8C481A;
  letter-spacing: 0.5px;
  line-height: 1.4;
  margin: 0;
}

.section-ornate-title {
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  font-weight: 800;
  color: var(--color-maroon-dark);
  font-family: var(--font-tamil-serif);
  line-height: 1.25;
  margin: 0;
}

.ornate-motif-divider {
  color: var(--color-gold);
  font-size: 1.15rem;
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.features-cards-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.feature-strip-card {
  background: #FFFFFF;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1rem, 2vw, 1.5rem);
  text-align: center;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
}

.feature-strip-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold);
}

.feature-card-icon-round {
  width: clamp(52px, 5.5vw, 60px);
  height: clamp(52px, 5.5vw, 60px);
  border-radius: 50%;
  background: var(--color-sandal);
  border: 1.5px solid var(--color-gold);
  color: var(--color-maroon);
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  flex-shrink: 0;
}

.feature-card-title {
  font-size: clamp(0.98rem, 1.5vw, 1.1rem);
  font-weight: 800;
  color: var(--color-maroon-dark);
  margin-bottom: 0.5rem;
}

.feature-card-text {
  font-size: clamp(0.82rem, 1.2vw, 0.88rem);
  color: var(--color-granite-muted);
  line-height: 1.55;
  max-width: 75ch;
}

/* Muppal Section */
.muppal-navy-section {
  background: linear-gradient(135deg, #24060B 0%, #360A10 100%);
  padding: clamp(3rem, 6vh, 4.5rem) 0;
  color: #fff;
}

.muppal-wrapper-card {
  width: min(100% - clamp(24px, 4vw, 64px), 1440px);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  padding: clamp(1.75rem, 3.5vw, 3rem);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}

.muppal-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.75rem, 1.2vw, 1rem);
}

.muppal-pillar-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: var(--radius-md);
  padding: clamp(1.25rem, 2vw, 1.75rem) 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.muppal-pillar-icon {
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  color: var(--color-gold);
  margin-bottom: 0.75rem;
}

/* Footer V2 */
.footer-v2-container {
  background: #1C0408;
  color: #fff;
  padding: clamp(3rem, 6vh, 4.5rem) 0 max(1.5rem, calc(1.5rem + var(--safe-bottom)));
  border-top: 3px solid var(--color-gold);
}

.footer-v2-grid {
  width: min(100% - clamp(24px, 4vw, 64px), 1440px);
  margin: 0 auto clamp(2rem, 4vh, 3rem);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.footer-col-title {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  font-weight: 800;
  color: var(--color-gold);
  margin-bottom: 1rem;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav-list a {
  color: #B5BFCF;
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition-fast);
  padding: 3px 0;
  display: inline-block;
  min-height: 28px;
}

.footer-nav-list a:hover {
  color: var(--color-gold);
}

.footer-social-strip {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-circle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition-fast);
}

.social-circle-btn:hover {
  background: var(--color-gold);
  color: #060910;
}

.footer-bottom-bar-v2 {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  font-size: 0.82rem;
  color: #8C96A8;
  max-width: 1360px;
  margin: 0 auto;
}

/* ==========================================================================
   Mobile Offcanvas Drawer & Navigation System
   ========================================================================== */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 4, 6, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-content {
  position: fixed;
  top: 0;
  right: 0;
  width: min(85vw, 320px);
  height: 100%;
  height: 100dvh;
  background: linear-gradient(180deg, #002B66 0%, #0047AB 50%, #0284C7 100%);
  border-left: 2px solid #F59E0B;
  padding: 1.5rem 1.25rem;
  z-index: 2001;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -8px 0 35px rgba(0, 51, 153, 0.5);
  overflow-y: auto;
}

.mobile-drawer-overlay.open .mobile-drawer-content {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1.5px solid rgba(245, 158, 11, 0.4);
  margin-bottom: 1.5rem;
}

.mobile-drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  font-family: var(--font-tamil-serif);
}

.mobile-drawer-close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid #F59E0B;
  color: #FDE047;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.mobile-drawer-close-btn:hover {
  background: #F59E0B;
  color: #002244;
}

.mobile-drawer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.mobile-drawer-links a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  transition: var(--transition-fast);
  min-height: 46px;
}

.mobile-drawer-links a i {
  color: #FDE047;
  font-size: 1.15rem;
  width: 26px;
  text-align: center;
  transition: transform 0.22s ease, color 0.2s ease;
  flex-shrink: 0;
}

.mobile-drawer-links a:hover,
.mobile-drawer-links a.active {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

.mobile-drawer-links a:hover i,
.mobile-drawer-links a.active i {
  transform: scale(1.15);
  color: #FEF08A;
}

.mobile-drawer-footer {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(245, 158, 11, 0.3);
  text-align: center;
  font-size: 0.78rem;
  color: #BAE6FD;
}

/* ==========================================================================
   Responsive Multi-Tier Breakpoint Architecture
   ========================================================================== */

/* 1. Large Monitors & 4K (1920px - 2560px+) */
@media (min-width: 1920px) {
  .hero-v2-container {
    padding: 6rem 2rem 8rem;
  }
  .hero-v2-content {
    max-width: 820px;
  }
  .stats-floating-wrapper {
    max-width: 1440px;
  }
}

/* 2. Standard Laptops (1200px - 1440px) */
@media (max-width: 1440px) {
  .hero-title-main {
    font-size: clamp(1.4rem, 2.4vw, 2.15rem);
    line-height: 1.25;
  }
}

@media (max-width: 1200px) {
  .hero-title-main {
    font-size: clamp(1.3rem, 2.2vw, 1.95rem);
    line-height: 1.25;
  }
  .features-cards-strip {
    grid-template-columns: repeat(3, 1fr);
  }
  .stats-glass-bar {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 3. Landscape Tablets & Medium Screens (under 1024px) */
@media (max-width: 1024px) {
  .highlights-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .muppal-wrapper-card {
    grid-template-columns: 1fr;
    padding: 1.75rem;
  }
  .footer-v2-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
}

/* 4. Portrait Tablets & Mobile (under 768px) */
@media (max-width: 768px) {
  .header-glass-navbar nav,
  .nav-links-menu {
    display: none !important;
  }
  .mobile-menu-trigger {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(212, 175, 55, 0.4);
    color: #fff;
    cursor: pointer;
    font-size: 1.25rem;
    transition: var(--transition-fast);
  }
  .mobile-menu-trigger:hover {
    background: var(--color-gold);
    color: var(--color-maroon-dark);
  }

  .hero-v2-container {
    padding: 2.5rem 1rem 4rem;
    min-height: auto;
    background-position: center 30%;
  }
  .hero-glass-card {
    padding: 1.5rem 1.25rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
  }
  .hero-title-top {
    font-size: clamp(1.1rem, 3.8vw, 1.4rem);
  }
  .hero-title-main {
    font-size: clamp(1.2rem, 4.5vw, 1.6rem);
    line-height: 1.25;
  }
  .hero-v2-description {
    font-size: 0.95rem;
    margin: 0.75rem 0 1.25rem;
  }
  .hero-v2-cta-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.6rem;
  }
  .btn-hero-primary-gold,
  .btn-hero-glass-outline {
    width: 100%;
    justify-content: center;
    padding: 11px 18px;
    font-size: 0.92rem;
  }

  /* Stats Floating Bar (2x2 Grid for 4 metrics) */
  .stats-floating-wrapper {
    margin: -2.5rem auto 2rem;
  }
  .stats-glass-bar {
    grid-template-columns: repeat(2, 1fr);
    padding: 0.75rem 0.25rem;
  }
  .stat-cell-box:nth-child(1),
  .stat-cell-box:nth-child(3) {
    border-right: 1.5px solid #EAE4DC;
  }
  .stat-cell-box:nth-child(2),
  .stat-cell-box:nth-child(4) {
    border-right: none;
  }
  .stat-cell-box:nth-child(3),
  .stat-cell-box:nth-child(4) {
    border-top: 1px solid var(--color-border);
  }

  /* Feature cards and highlights */
  .features-cards-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .muppal-pillars-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .footer-v2-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Horizontal Feature Cards */
  .card-feature-horizontal {
    flex-direction: column-reverse;
    align-items: stretch;
    padding: 1.25rem;
    gap: 1rem;
  }
  .feature-horizontal-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }
  .card-world-map-large {
    padding: 1.5rem;
  }
  .card-world-map-large .world-map-graphic-wrap {
    height: 190px;
    margin: 1rem 0;
  }

  .kural-card-ornate {
    padding: 1.5rem 1.25rem;
  }
  .kural-couplet-text {
    font-size: 1.2rem;
    line-height: 1.75;
    padding: 0.75rem 1rem;
  }
  .kural-action-tools {
    justify-content: flex-start;
    gap: 0.5rem;
  }
  .btn-kural-tool {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  /* Explorer Split Layout & Map Toggling */
  .explorer-container {
    flex-direction: column;
    height: calc(100dvh - 84px);
    height: calc(100vh - 84px);
  }
  .explorer-sidebar {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: 52%;
    border-right: none;
    border-bottom: 2px solid var(--color-gold);
  }
  .explorer-map-pane {
    width: 100%;
    height: 48%;
  }

  /* Show Map Only Mode */
  .explorer-container.show-map-only .explorer-sidebar {
    display: none !important;
  }
  .explorer-container.show-map-only .explorer-map-pane {
    height: 100% !important;
    display: block !important;
  }

  /* Show List Only Mode */
  .explorer-container.show-list-only .explorer-map-pane {
    display: none !important;
  }
  .explorer-container.show-list-only .explorer-sidebar {
    height: 100% !important;
    display: flex !important;
  }

  .mobile-map-toggle-fab {
    display: inline-flex;
  }

  .filter-fields-grid {
    grid-template-columns: 1fr;
  }
  .filter-actions-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .filter-actions-row .filter-field-group {
    max-width: 100% !important;
  }

  /* Modals */
  .modal-overlay {
    padding: 0.75rem;
  }
  .modal-content-box {
    width: 100%;
    max-height: calc(100dvh - 24px);
    border-radius: var(--radius-md);
  }
  .modal-hero-img-wrap {
    height: clamp(260px, 36vh, 320px);
  }
  .statue-page-hero-wrap {
    height: clamp(300px, 62vw, 420px);
    min-height: 280px;
  }
  .modal-body-content {
    padding: 1.25rem 1rem;
  }
  .modal-statue-title {
    font-size: 1.4rem;
  }
  .modal-meta-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    padding: 1rem;
  }
  .modal-actions-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }
  .modal-actions-bar .btn-hero-primary-gold,
  .modal-actions-bar .btn-card-pill-outline {
    width: 100%;
    justify-content: center;
  }
  .share-buttons-group {
    justify-content: center;
  }
}

/* 5. Mobile Devices (480px - 600px) */
@media (max-width: 600px) {
  .features-cards-strip {
    grid-template-columns: 1fr;
  }
  .statue-card {
    min-height: 98px;
  }
  .statue-card-image-wrap {
    width: 90px;
    min-width: 90px;
  }
  .statue-card-body {
    padding: 0.45rem 0.65rem;
  }
  .statue-card-title {
    font-size: 0.92rem;
    line-height: 1.25;
  }
  .statue-card-loc-pill {
    font-size: 0.76rem;
    margin-bottom: 0.2rem;
  }
  .btn-card-details,
  .btn-card-map-pin {
    font-size: 0.72rem;
    padding: 3px 8px;
  }
  .gallery-grid-layout {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
}

/* 6. Standard & Small Mobile Devices (320px - 430px) */
@media (max-width: 430px) {
  .header-glass-navbar {
    gap: 0.4rem;
  }
  .brand-titles-block {
    max-width: 175px;
  }
  .brand-title-ta {
    font-size: 0.98rem;
  }
  .brand-subtitle-en {
    display: none;
  }
  .lang-pill-btn {
    padding: 3px 8px;
    font-size: 0.74rem;
  }
  .btn-header-search-icon {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  .hero-v2-container {
    padding: 2rem 0.85rem 3.5rem;
  }
  .hero-title-main {
    font-size: clamp(1.1rem, 4.8vw, 1.35rem);
    line-height: 1.25;
  }
  .hero-title-top {
    font-size: 1.1rem;
  }
  .hero-v2-description {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  /* Single Column Stats for narrow viewports */
  .stats-glass-bar {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .stat-cell-box {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding: 0.65rem 0.85rem;
    justify-content: flex-start;
  }
  .stat-cell-box:last-child {
    border-bottom: none;
  }

  /* Statue Cards on Narrow Mobile */
  .statue-card {
    flex-direction: column;
    min-height: auto;
  }
  .statue-card-image-wrap {
    width: 100%;
    height: 140px;
    min-width: 100%;
  }
  .statue-card-body {
    padding: 0.85rem;
  }
  .statue-card-title {
    font-size: 0.95rem;
  }

  /* Leaflet Popups */
  .valluvar-leaflet-popup .leaflet-popup-content {
    width: calc(100vw - 48px) !important;
    max-width: 290px !important;
  }

  /* Quick Search Modal */
  .quick-search-modal-box {
    width: 100%;
    margin: 0.5rem auto;
  }
  .quick-search-header {
    padding: 0.75rem 1rem;
  }

  /* Gallery Grid */
  .gallery-grid-layout {
    grid-template-columns: 1fr;
  }

  /* Muppal Wrapper */
  .muppal-navy-section {
    padding: 2.5rem 1rem;
  }
  .muppal-wrapper-card {
    padding: 1.25rem 1rem;
  }
}

/* 7. Extra Small Phones (320px - 360px) */
@media (max-width: 360px) {
  .brand-titles-block {
    max-width: 140px;
  }
  .brand-title-ta {
    font-size: 0.88rem;
  }
  .brand-emblem-badge {
    width: 34px;
    height: 34px;
  }
  .brand-emblem-number {
    display: none;
  }
  .btn-hero-primary-gold,
  .btn-hero-glass-outline {
    font-size: 0.88rem;
    padding: 10px 14px;
  }
  .hero-title-main {
    font-size: 1.08rem;
    line-height: 1.25;
  }
}

/* 8. Mobile Landscape Optimization */
@media (orientation: landscape) and (max-height: 520px) {
  .header-glass-navbar {
    padding: 0.35rem 0;
  }
  .hero-v2-container {
    padding: 2rem 1rem;
  }
  .stats-floating-wrapper {
    margin: -1.5rem auto 1.5rem;
  }
  .stats-glass-bar {
    grid-template-columns: repeat(3, 1fr);
  }
  .modal-content-box {
    max-height: 94dvh;
  }
  .modal-hero-img-wrap {
    height: 180px;
  }
  .statue-page-hero-wrap {
    height: 240px;
  }
}

/* ==========================================================================
   Marker Cluster Badge & Mobile FAB
   ========================================================================== */
.valluvar-cluster-badge {
  background: linear-gradient(135deg, #F3DB83 0%, #D4AF37 100%);
  color: var(--color-maroon-dark);
  font-family: var(--font-tamil), var(--font-sans);
  font-weight: 900;
  border-radius: 50%;
  border: 3px solid #333333;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.valluvar-cluster-badge:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

.mobile-map-toggle-fab {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background: var(--color-maroon);
  color: #fff;
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  cursor: pointer;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

/* Print Styles */
@media print {
  .header-glass-nav,
  .map-action-tools-card,
  .map-floating-pill-presets,
  .mobile-map-toggle-fab,
  .mobile-drawer-overlay {
    display: none !important;
  }
}

/* ==========================================================================
   Verification Badges, Breadcrumbs & Scholarly Components
   ========================================================================== */
.badge-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(46, 125, 50, 0.12);
  color: #1b5e20;
  border: 1px solid rgba(46, 125, 50, 0.3);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.badge-unverified-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(230, 81, 0, 0.12);
  color: #b74700;
  border: 1px solid rgba(230, 81, 0, 0.3);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.breadcrumb-nav-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--color-granite-muted);
  margin-bottom: 1.25rem;
}

.breadcrumb-nav-bar a {
  color: var(--color-maroon);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.breadcrumb-nav-bar a:hover {
  color: var(--color-gold-dark);
  text-decoration: underline;
}

.breadcrumb-nav-bar .separator {
  color: var(--color-border-focus);
  font-size: 0.75rem;
}

.breadcrumb-nav-bar .current-crumb {
  color: var(--color-granite);
  font-weight: 700;
}

.scholar-quote-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 1.35rem;
  border: 1.5px solid #E8DFD5;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.scholar-quote-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.scholar-quote-author {
  font-weight: 800;
  color: var(--color-maroon-dark);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.scholar-quote-source {
  font-size: 0.78rem;
  color: var(--color-granite-muted);
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* ==========================================================================
   Official Government Hero Banner (அதிகாரப்பூர்வ அறிமுக பேனர்)
   Matches https://thiruvalluvarstatues.in/ exactly - 100% Edge-to-Edge Fit
   ========================================================================== */
.official-hero-banner {
  position: relative;
  width: 100%;
  background: #11203d;
  line-height: 0;
  overflow: hidden;
}

.official-banner-wrapper {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.official-banner-img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  user-select: none;
  -webkit-user-select: none;
}

.official-banner-cta {
  position: absolute;
  top: 67%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  line-height: 1.2;
}

.btn-explore-statues {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: #F5A623;
  color: #000000 !important;
  font-family: var(--font-english), var(--font-tamil), sans-serif;
  font-size: clamp(0.85rem, 1.35vw, 1.15rem);
  font-weight: 700;
  padding: clamp(0.55rem, 1vw, 0.75rem) clamp(1.25rem, 2.2vw, 1.85rem);
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-explore-statues:hover {
  background: #FFB300;
  color: #000000 !important;
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(245, 166, 35, 0.55);
}

.btn-explore-statues:active {
  transform: scale(0.98);
}

.btn-explore-statues i {
  font-size: 1.15em;
  transition: transform 0.2s ease;
}

.btn-explore-statues:hover i {
  transform: translateX(3px);
}

/* Smooth scrolling for anchor jumps */
html {
  scroll-behavior: smooth;
}

/* ==========================================================================
   Tamil Nadu Government Official Header Banner (முகப்பு பக்கத்தில் மேலே மையத்தில் அரசு சின்னம்)
   ========================================================================== */
.tn-govt-official-header-strip {
  background: linear-gradient(180deg, #1C0B10 0%, #2A1017 100%);
  border-bottom: 1.5px solid rgba(212, 175, 55, 0.45);
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 1002;
}

.tn-govt-official-center {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-decoration: none;
}

.tn-govt-emblem-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.tn-govt-official-title {
  font-family: var(--font-tamil), sans-serif;
  font-size: clamp(0.95rem, 1.4vw, 1.2rem);
  font-weight: 800;
  color: #F8D878;
  letter-spacing: 0.35px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .tn-govt-official-header-strip {
    padding: 0.35rem 0.5rem;
  }
  .tn-govt-emblem-icon {
    width: 26px;
    height: 26px;
  }
  .tn-govt-official-title {
    font-size: 0.84rem;
  }
}

/* ==========================================================================
   Statue Detail Page Enhancements: Map, Timings, Highlights & Media
   ========================================================================== */

/* Visiting Hours Card */
.statue-timings-card {
  background: #FFFFFF;
  border: 1px solid #E8DFD5;
  border-left: 5px solid #2E7D32;
  border-radius: 14px;
  padding: clamp(1rem, 2.5vw, 1.4rem);
  margin-bottom: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.timings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #F0E8DF;
}

.timings-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.timings-header-title i {
  font-size: 1.4rem;
  color: #2E7D32;
}

.timings-header-title h3 {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: #1A1A1A;
  margin: 0;
  font-family: var(--font-tamil-serif), var(--font-tamil), sans-serif;
  font-weight: 800;
}

.timings-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  background: #E8F5E9;
  color: #1B5E20;
  border: 1px solid #A5D6A7;
}

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

.timing-item {
  background: #FAF8F5;
  border: 1px solid #EFE8DF;
  padding: 0.85rem 1rem;
  border-radius: 10px;
}

.timing-item.full-width {
  grid-column: 1 / -1;
  background: #FFFDF8;
  border-color: #F5E6CC;
}

.timing-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

.timing-val {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1A1A1A;
  line-height: 1.55;
}

/* Highlights Box */
.statue-highlights-card {
  background: #FAF8F5;
  border: 1px solid #E8DFD5;
  border-radius: 14px;
  padding: clamp(1.15rem, 2.5vw, 1.5rem);
  margin-bottom: 2rem;
}

.statue-highlights-card h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: #1A1A1A;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-tamil-serif), var(--font-tamil), sans-serif;
  font-weight: 800;
}

.statue-highlights-card h3 i {
  color: #D4AF37;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1rem;
}

.highlight-box {
  background: #FFFFFF;
  border: 1.5px solid #E8DFD5;
  border-radius: 12px;
  padding: 1rem 1.15rem;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(44, 24, 16, 0.03);
}

.highlight-box:hover {
  transform: translateY(-2px);
  border-color: var(--color-gold);
  box-shadow: 0 6px 14px rgba(44, 24, 16, 0.08);
}

.highlight-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #FAF5F0;
  color: var(--color-terracotta, #9A3412);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  border: 1px solid rgba(154, 52, 18, 0.15);
}

.highlight-content {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.highlight-content dt {
  font-size: 0.8rem;
  color: #64748B;
  font-weight: 700;
  text-transform: none;
  margin-bottom: 4px;
  line-height: 1.35;
}

.highlight-content dd {
  font-size: 0.95rem;
  color: #1E293B;
  font-weight: 600;
  margin: 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Interactive Map & Address Layout */
.statue-map-section {
  background: #FFFFFF;
  border: 1px solid #E8DFD5;
  border-radius: 16px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  margin-bottom: 2rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.map-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #F0E8DF;
}

.map-title-wrap h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  color: #1A1A1A;
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-tamil-serif), var(--font-tamil), sans-serif;
  font-weight: 800;
}

.map-title-wrap h2 i {
  color: #D4AF37;
}

.map-title-wrap p {
  font-size: 0.88rem;
  color: #666;
  margin: 0;
}

.btn-map-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #D4AF37;
  color: #1A1A1A;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.btn-map-action:hover {
  background: #C49B27;
  color: #000;
  transform: translateY(-2px);
}

.statue-map-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

@media (max-width: 860px) {
  .statue-map-layout {
    grid-template-columns: 1fr;
  }
}

.map-viewport-wrapper {
  position: relative;
  width: 100%;
  min-height: 480px;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid #E8DFD5;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  background: #F1EFEA;
}

#statueDetailMap {
  width: 100%;
  height: 100%;
  min-height: 480px;
  z-index: 1;
}

.map-floating-coords {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 500;
  background: rgba(18, 22, 28, 0.9);
  color: #F8D878;
  font-family: monospace;
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  backdrop-filter: blur(4px);
  pointer-events: none;
}

/* Custom Gold Leaflet Marker */
.statue-gold-marker {
  position: relative;
}

.statue-gold-marker .marker-pin {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #FFDF40 0%, #D4AF37 50%, #B8860B 100%);
  border: 2.5px solid #FFFFFF;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  color: #1A1A1A;
  font-size: 16px;
}

.statue-gold-marker .marker-pin i {
  transform: rotate(45deg);
}

.statue-gold-marker .marker-pulse {
  position: absolute;
  width: 22px;
  height: 12px;
  background: rgba(212, 175, 55, 0.5);
  border-radius: 50%;
  bottom: -6px;
  left: 8px;
  animation: markerPulse 2s infinite;
}

@keyframes markerPulse {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Address Card & Verified Preview */
.statue-address-card {
  background: #FAF8F5;
  border: 1px solid #E8DFD5;
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.statue-address-card h3 {
  font-size: 1.05rem;
  color: #1A1A1A;
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-tamil-serif), var(--font-tamil), sans-serif;
  font-weight: 800;
  border-bottom: 1.5px solid #E8DFD5;
  padding-bottom: 0.6rem;
}

/* Verified Statue Photo Preview inside Map Card */
.statue-address-preview-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #E2D7C9;
  background: #1A1F26;
  margin-bottom: 1rem;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.statue-address-preview-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(12px) brightness(0.6);
  opacity: 0.85;
  transform: scale(1.1);
}

.statue-address-preview-img {
  position: relative;
  z-index: 2;
  max-height: 92%;
  max-width: 92%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
}

.statue-address-preview-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  background: #2E7D32;
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 4px;
}

.address-details-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.addr-row {
  display: grid;
  grid-template-columns: 115px 1fr;
  font-size: 0.9rem;
  line-height: 1.45;
}

.addr-row dt {
  color: #666;
  font-weight: 700;
}

.addr-row dd {
  color: #1A1A1A;
  font-weight: 600;
  margin: 0;
}

.addr-row dd code {
  background: #ECE5DC;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.86em;
  color: #1A1A1A;
  font-weight: 700;
}

/* 360 Street View Advisory Box */
.statue-streetview-advisory {
  background: #FEF9E7;
  border: 1px solid #F9E79F;
  border-left: 4px solid #D4AF37;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 1.1rem;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #4A3B12;
}

.statue-streetview-advisory strong {
  display: block;
  margin-bottom: 3px;
  color: #851424;
  font-size: 0.86rem;
}

/* Navigation Actions Grid */
.statue-nav-actions-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.btn-nav-direct {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #FFDF40 0%, #D4AF37 50%, #C49B27 100%);
  color: #1A1A1A !important;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 16px;
  border-radius: 9px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
  transition: all 0.2s ease;
  border: 1px solid #B8860B;
}

.btn-nav-direct:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.45);
  color: #000 !important;
}

.statue-nav-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

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

.btn-nav-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1.5px solid #D5C9BA;
  color: #333333;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-nav-sub:hover {
  border-color: #D4AF37;
  color: #851424;
  background: #FFFDF8;
  transform: translateY(-1px);
}

/* Rich Popup styling for Statue Markers */
.leaflet-popup-content-wrapper {
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.statue-map-popup-body {
  padding: 2px;
  font-family: var(--font-tamil), sans-serif;
  text-align: center;
  width: 210px;
}

.statue-popup-thumb-wrap {
  width: 100%;
  height: 110px;
  border-radius: 8px;
  overflow: hidden;
  background: #1A1F26;
  position: relative;
  margin-bottom: 8px;
}

.statue-popup-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.statue-map-popup-body h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #851424;
  margin: 0 0 4px;
  line-height: 1.3;
}

.statue-map-popup-body p {
  font-size: 0.78rem;
  color: #555;
  margin: 0 0 8px;
  line-height: 1.35;
}

.statue-popup-btn-row {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.statue-popup-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #D4AF37;
  color: #1A1A1A;
  font-weight: 800;
  font-size: 0.76rem;
  padding: 5px 10px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.statue-popup-btn:hover {
  background: #C49B27;
  color: #000;
}

/* ==========================================================================
   Statue Directions, StreetView Advisory & Action Buttons
   ========================================================================== */
.statue-streetview-advisory {
  background: #F0F9FF;
  border: 1px solid #BAE6FD;
  border-left: 4px solid #0284C7;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: #0369A1;
  line-height: 1.6;
  margin-top: 1rem;
}

.statue-streetview-advisory strong {
  display: block;
  color: #0C4A6E;
  margin-bottom: 4px;
  font-size: 0.88rem;
}

.statue-nav-actions-wrap {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.btn-nav-direct {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #003399 0%, #0284C7 100%);
  color: #FFFFFF !important;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(0, 51, 153, 0.25);
  transition: all 0.2s ease;
  border: 1.5px solid transparent;
}

.btn-nav-direct:hover {
  background: linear-gradient(135deg, #002266 0%, #0369A1 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 51, 153, 0.35);
  color: #FFFFFF !important;
}

.statue-nav-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

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

.btn-nav-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  color: #1E293B !important;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-nav-sub:hover {
  border-color: #003399;
  background: #F8FAFC;
  color: #003399 !important;
  transform: translateY(-1px);
}

/* ==========================================================================
   Home Page: Featured Statues Symmetrical Grid (3x2 Balanced Layout)
   ========================================================================== */
.featured-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

@media (max-width: 992px) {
  .featured-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 620px) {
  .featured-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.featured-statue-card {
  background: #FFFFFF;
  border-radius: 12px;
  border: 1.5px solid #E2E8F0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  color: inherit;
  position: relative;
}

.featured-statue-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 51, 153, 0.12);
  border-color: #F59E0B;
}

/* ==========================================================================
   Cultural Heritage Footer & Official Tamil Nadu Government Seal
   ========================================================================== */
.footer-inner-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.35fr;
  max-width: 1240px;
  margin: 0 auto 1.75rem;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 992px) {
  .footer-inner-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .footer-inner-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

.footer-govt-col {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(253, 224, 71, 0.25);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  backdrop-filter: blur(6px);
}
