/* ═══════════════════════════════════════════════
   Tirth Connect — Explore Temples Shared Styles
   Unified Spiritual Theme Matching Home Portal
   Warm Glassmorphic UI & Consistent Sacred Palette
   ═══════════════════════════════════════════════ */

/* ─── Variables (Unified with Main Portal) ─── */
:root {
  --saffron: #FF6B00;
  --saffron-dark: #E55A00;
  --saffron-light: #FF8C42;
  --saffron-pale: #FFF0E2;
  --gold: #D4A853;
  --gold-dark: #B8860B;
  --gold-light: #E8C878;
  --temple-red: #C0392B;

  --white: #FFFFFF;
  --ivory: #FFFAF4;
  --cream: #FFF3E4;
  --warm-bg: #FEF6EE;
  --warm-bg-alt: #FDF0E3;

  --text-dark: #2C1810;
  --text: #3D2B1F;
  --text-muted: #5E4E42;
  --text-light: #6E5D52;

  --border: #F0E0D0;
  --border-hover: #E0C8B0;
  --card-bg: rgba(255, 255, 255, 0.9);

  --shadow: 0 4px 20px rgba(44, 24, 16, 0.06);
  --shadow-hover: 0 10px 30px rgba(255, 107, 0, 0.18);
  --font-display: 'Cinzel', 'Georgia', serif;
  --font-heading: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}
html {
  scroll-behavior: smooth;
  font-size: 18px;
}
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--warm-bg);
  background-image:
    radial-gradient(ellipse 600px 400px at 15% 20%, rgba(255, 107, 0, 0.04), transparent),
    radial-gradient(ellipse 500px 500px at 85% 40%, rgba(212, 168, 83, 0.05), transparent),
    radial-gradient(ellipse 700px 300px at 50% 80%, rgba(255, 107, 0, 0.03), transparent),
    radial-gradient(circle 1px at 20px 20px, rgba(212, 168, 83, 0.08) 1px, transparent 1px),
    radial-gradient(circle 1px at 60px 60px, rgba(255, 107, 0, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 80px 80px, 80px 80px;
  background-attachment: fixed;
}
a { color: var(--saffron); text-decoration: none; transition: all 0.25s ease; }
a:hover { color: var(--saffron-dark); }
img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ─── Unified Warm Glassmorphic Navbar (Spacious & Clean) ─── */
.guide-nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(44, 24, 16, 0.06);
  width: 100%;
  box-sizing: border-box;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.guide-nav .container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

/* ─── Unified Brand Logo (Exact Match to Main Portal) ─── */
.navbar-brand,
.guide-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}
.navbar-brand:hover,
.guide-brand:hover {
  opacity: 0.92;
}
.brand-om {
  font-size: 1.8rem;
  color: var(--saffron);
  line-height: 1;
  display: inline-block;
}
.brand-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-dark, #2C1810);
  font-weight: 800;
  letter-spacing: 1px;
  white-space: nowrap;
}
.brand-sub {
  display: none !important;
}

/* ─── 3 Primary Visible Links on Desktop ─── */
.guide-desktop-links {
  list-style: none;
  display: flex;
  gap: 1.4rem;
  align-items: center;
  margin: 0;
  margin-left: auto;
  padding: 0;
}
.guide-desktop-links li {
  white-space: nowrap;
}
.guide-desktop-links a {
  color: var(--text, #3D2B1F);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.3rem 0;
  position: relative;
  transition: 0.25s var(--ease);
  text-decoration: none;
  background: transparent !important;
}
.guide-desktop-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--saffron);
  border-radius: var(--radius-pill);
  transition: width 0.3s var(--ease);
}
.guide-desktop-links a:hover,
.guide-desktop-links a.active {
  color: var(--saffron) !important;
  background: transparent !important;
}
.guide-desktop-links a:hover::after,
.guide-desktop-links a.active::after {
  width: 100% !important;
}

/* ─── Right Actions Wrapper (1 Language + 1 Triple Bar Toggle) ─── */
.nav-right-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-left: 1.2rem;
  flex-shrink: 0;
  position: relative;
}

/* ─── Triple Bar (Hamburger) Toggle Button ─── */
.guide-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: rgba(255, 107, 0, 0.08);
  border: 1.5px solid rgba(255, 107, 0, 0.25);
  border-radius: 8px;
  cursor: pointer;
  padding: 7px 9px;
  z-index: 1001;
  transition: all 0.2s ease;
}
.guide-toggle:hover {
  background: rgba(255, 107, 0, 0.15);
  border-color: var(--saffron);
  transform: translateY(-1px);
}
.guide-toggle span {
  display: block; width: 22px; height: 2.5px;
  background: var(--text-dark, #2C1810); border-radius: var(--radius-pill);
  transition: all 0.25s var(--ease);
}
.guide-toggle.open span:nth-child(1),
.guide-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); background: var(--saffron); }
.guide-toggle.open span:nth-child(2),
.guide-toggle.active span:nth-child(2) { opacity: 0; }
.guide-toggle.open span:nth-child(3),
.guide-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); background: var(--saffron); }

/* ─── Triple Bar Popover Drawer (Contains All Remaining Guides) ─── */
.guide-drawer {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 240px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(44, 24, 16, 0.16);
  border: 1px solid var(--border);
  padding: 0.65rem 0.5rem;
  display: none;
  flex-direction: column;
  z-index: 1002;
  animation: drawerFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.guide-drawer.show {
  display: flex;
}

@keyframes drawerFadeIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.drawer-header {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--gold-dark, #B8860B);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0.3rem 0.75rem 0.45rem;
  border-bottom: 1px solid rgba(240, 224, 208, 0.85);
  margin-bottom: 0.35rem;
}

.drawer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.drawer-menu li {
  width: 100%;
}
.drawer-menu a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-dark, #2C1810);
  text-decoration: none;
  transition: all 0.2s ease;
}
.drawer-menu a:hover,
.drawer-menu a.active {
  background: rgba(255, 107, 0, 0.08);
  color: var(--saffron) !important;
  transform: translateX(2px);
}

@media (min-width: 769px) {
  .drawer-menu li.mobile-only {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .guide-desktop-links {
    display: none !important;
  }
  .drawer-menu li.mobile-only {
    display: block !important;
  }
  .guide-drawer {
    position: fixed;
    top: 60px;
    left: 1rem;
    right: 1rem;
    width: auto;
    max-height: calc(100vh - 75px);
    overflow-y: auto;
  }
  .brand-om { font-size: 1.5rem !important; }
  .brand-text { font-size: 1.05rem !important; letter-spacing: 0.5px !important; }
  .guide-nav { padding: 0.45rem 0; }
  .nav-right-actions { gap: 0.5rem; margin-left: auto; }
}

@media (max-width: 420px) {
  .brand-om { font-size: 1.35rem !important; }
  .brand-text { font-size: 0.92rem !important; }
}

/* ─── Breadcrumb ─── */
.breadcrumb {
  padding: 1.2rem 0 0.6rem;
  font-size: 0.92rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--saffron); font-weight: 500; }
.breadcrumb span { margin: 0 0.5rem; color: #bbb; }
.breadcrumb .current { color: var(--text); font-weight: 600; }

/* ─── Grand Hero Section (With Background Photo) ─── */
.guide-hero {
  position: relative;
  min-height: 480px;
  padding: 5rem 0 4.5rem;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, rgba(14, 7, 2, 0.72) 0%, rgba(22, 10, 4, 0.88) 100%),
              url('../images/temple-guide-hero.webp') center 30% / cover no-repeat;
  box-shadow: inset 0 -40px 60px rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
}
.guide-hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}
.guide-hero-badge {
  display: inline-block;
  background: rgba(255, 107, 0, 0.25);
  border: 1px solid rgba(255, 107, 0, 0.6);
  color: #FFE0B2;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: 700;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  backdrop-filter: blur(8px);
}
.guide-hero h1 {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 0 3px 18px rgba(0,0,0,0.7);
  letter-spacing: 0.5px;
}
.guide-hero .tagline {
  font-size: 1.2rem;
  opacity: 0.95;
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto 2rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  color: #F5EFEB;
}

/* ─── Search Box ─── */
.search-box {
  max-width: 620px;
  margin: 0 auto;
  position: relative;
}
.search-box input {
  width: 100%;
  padding: 1.15rem 1.4rem 1.15rem 3.4rem;
  border: 2px solid rgba(255, 107, 0, 0.5);
  border-radius: 50px;
  font-size: 1.05rem;
  font-family: var(--font-body);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 35px rgba(0,0,0,0.35), 0 0 0 4px rgba(255,107,0,0.15);
  outline: none;
  color: #222;
  transition: all 0.3s;
}
.search-box input:focus {
  border-color: var(--saffron);
  box-shadow: 0 12px 40px rgba(255,107,0,0.35), 0 0 0 5px rgba(255,107,0,0.25);
  background: #fff;
}
.search-box input::placeholder { color: #888; font-weight: 400; }
.search-box::before {
  content: '🔍';
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  z-index: 3;
}

/* ─── Temple Hero Section (for Detail Pages) ─── */
.temple-hero-section {
  position: relative;
  background: linear-gradient(135deg, rgba(160, 45, 0, 0.9) 0%, rgba(38, 14, 2, 0.95) 100%),
              url('../images/temple-interior.webp') center / cover no-repeat;
  color: #fff;
  padding: 3.5rem 2rem;
  border-radius: var(--radius);
  margin: 1.5rem 0 2rem;
  text-align: center;
  border: 1px solid rgba(255, 107, 0, 0.35);
  box-shadow: 0 10px 35px rgba(0,0,0,0.2);
}
.temple-hero-section h1 {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.temple-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}
.meta-tag {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 0.45rem 1.15rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
  color: #FFF9F2;
}

/* ─── Section Typography ─── */
.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  text-align: center;
  margin: 3.5rem 0 0.8rem;
  letter-spacing: 0.5px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin: 0 0 2.2rem;
  font-size: 1.05rem;
}

/* ─── PHOTOGRAPHIC DESTINATION CARDS ─── */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}
.quick-card-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.08);
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  background-size: cover;
  background-position: center;
}
.quick-card-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(15, 6, 2, 0.75) 55%, rgba(10, 4, 1, 0.95) 100%);
  transition: opacity 0.3s;
  z-index: 1;
}
.quick-card-photo:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(255, 107, 0, 0.28);
  border-color: var(--saffron);
}
.quick-card-photo:hover::before {
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(20, 8, 2, 0.7) 50%, rgba(12, 4, 1, 0.96) 100%);
}
.quick-card-body {
  position: relative;
  z-index: 2;
  padding: 1.8rem 1.5rem;
  color: #fff;
}
.quick-card-badge {
  display: inline-block;
  background: var(--saffron);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.6rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.quick-card-photo h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.quick-card-photo p {
  font-size: 0.92rem;
  color: #E0D7D0;
  line-height: 1.6;
  margin-bottom: 0.8rem;
}
.quick-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #FFE082;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: gap 0.2s;
}
.quick-card-photo:hover .quick-card-cta {
  gap: 0.7rem;
  color: #FFF;
}

/* ─── Content Section & Tables ─── */
.content-section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem;
  margin-bottom: 1.8rem;
  box-shadow: var(--shadow);
}
.content-section h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--saffron-dark);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--saffron-light);
}
.content-section p { margin-bottom: 1rem; }
.content-section p:last-child { margin-bottom: 0; }

.info-table { overflow-x: auto; margin-top: 1rem; border-radius: 8px; border: 1px solid var(--border); }
.info-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.info-table th {
  background: #FFF5EC;
  color: var(--saffron-dark);
  font-weight: 700;
  padding: 0.9rem 1.1rem;
  text-align: left;
  border-bottom: 2px solid var(--saffron);
}
.info-table td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border);
}
.info-table tr:hover td { background: #FFFBF7; }

/* ─── How to Reach Grid ─── */
.reach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 1rem;
}
.reach-card {
  background: #FFF8F2;
  padding: 1.6rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--saffron);
  border-top: 1px solid rgba(255,107,0,0.15);
  border-right: 1px solid rgba(255,107,0,0.15);
  border-bottom: 1px solid rgba(255,107,0,0.15);
}
.reach-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--saffron-dark);
}

/* ─── Places & Rules Lists ─── */
.places-list, .rules-list { list-style: none; padding: 0; }
.places-list li, .rules-list li {
  padding: 0.75rem 0 0.75rem 2rem;
  position: relative;
  border-bottom: 1px solid #f0ebe3;
}
.places-list li::before { content: '📍'; position: absolute; left: 0; font-size: 1.1rem; }
.rules-list li::before { content: '⚠️'; position: absolute; left: 0; font-size: 1.1rem; }
.places-list li:last-child, .rules-list li:last-child { border-bottom: none; }

/* ─── Celestial Panchang Widget ─── */
.panchang-widget {
  position: relative;
  background: linear-gradient(135deg, #0F1748 0%, #1A237E 50%, #283593 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  margin-bottom: 3.5rem;
  border: 1px solid rgba(212, 160, 23, 0.4);
  box-shadow: 0 12px 40px rgba(15, 23, 72, 0.35);
  overflow: hidden;
}
.panchang-widget::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.panchang-widget h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  text-align: center;
  color: var(--gold-light);
  letter-spacing: 0.5px;
}
.panchang-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: 1.5rem;
}
.panchang-item {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 1.2rem 1rem;
  border-radius: 10px;
  text-align: center;
  backdrop-filter: blur(8px);
}
.panchang-item .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #FFD54F;
  margin-bottom: 0.4rem;
  font-weight: 600;
}
.panchang-item .value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

/* ─── Festival Row ─── */
.festival-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-bottom: 3.5rem;
}
.festival-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}
.festival-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--saffron);
}
.festival-card .fest-emoji { font-size: 2.2rem; margin-bottom: 0.6rem; display: block; }
.festival-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.3rem; }
.festival-card .fest-date { color: var(--saffron); font-weight: 700; font-size: 0.92rem; }
.festival-card .fest-days {
  display: inline-block;
  margin-top: 0.6rem;
  background: #FFF3E8;
  color: var(--saffron-dark);
  padding: 0.25rem 0.9rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
}

/* ─── Modern Blog Cards with Images ─── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}
.blog-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.35s ease;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--saffron);
  color: var(--text);
}
.blog-card-thumb {
  height: 190px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.blog-card .blog-tag {
  display: inline-block;
  background: var(--saffron-light);
  color: var(--saffron-dark);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 0.6rem;
  align-self: flex-start;
}
.blog-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.4; }
.blog-card p { font-size: 0.92rem; color: var(--text-light); line-height: 1.6; }

/* ─── Regional Matrix Grid ─── */
.region-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.1rem;
  margin-bottom: 3.5rem;
}
.region-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1rem 1.4rem;
  text-align: center;
  transition: all 0.35s ease;
  text-decoration: none;
  color: #fff;
  display: block;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}
.region-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 7, 2, 0.55) 0%, rgba(10, 4, 1, 0.88) 100%);
  z-index: 1;
  transition: background 0.3s;
}
.region-card:hover {
  border-color: var(--saffron);
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(255, 107, 0, 0.28);
  color: #fff;
}
.region-card:hover::before {
  background: linear-gradient(180deg, rgba(15, 7, 2, 0.35) 0%, rgba(10, 4, 1, 0.82) 100%);
}
.region-card .region-emoji,
.region-card h3,
.region-card p {
  position: relative;
  z-index: 2;
}
.region-card .region-emoji { font-size: 2.3rem; display: block; margin-bottom: 0.5rem; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5)); }
.region-card h3 { font-size: 1.12rem; font-weight: 700; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.7); }
.region-card p { color: #E8DFD8 !important; text-shadow: 0 1px 4px rgba(0,0,0,0.8); }

/* ─── Season Grid ─── */
.season-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}
.season-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--saffron);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transition: all 0.3s ease;
}
.season-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.94);
  z-index: 1;
  transition: background 0.3s;
}
.season-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.season-card:hover::before {
  background: rgba(255, 255, 255, 0.90);
}
.season-card h3,
.season-card p,
.season-card ul {
  position: relative;
  z-index: 2;
}
.season-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--saffron-dark);
}
.season-card ul { list-style: none; padding: 0; }
.season-card li { padding: 0.35rem 0; font-size: 0.95rem; }

/* ─── Grouping Toggles ─── */
.group-toggles {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.2rem;
  flex-wrap: wrap;
}
.group-btn {
  padding: 0.6rem 1.4rem;
  border: 2px solid var(--border);
  border-radius: 50px;
  background: var(--card-bg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  color: var(--text);
}
.group-btn:hover, .group-btn.active {
  background: var(--saffron);
  color: #fff;
  border-color: var(--saffron);
  box-shadow: 0 4px 14px rgba(255,107,0,0.35);
}

/* ─── Explainer Blocks ─── */
.explainer-block {
  background: #FFF7EE;
  border-left: 5px solid var(--saffron);
  padding: 1.8rem 2.2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 2.5rem;
  border-top: 1px solid rgba(255,107,0,0.15);
  border-right: 1px solid rgba(255,107,0,0.15);
  border-bottom: 1px solid rgba(255,107,0,0.15);
}
.explainer-block h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--saffron-dark);
  margin-bottom: 0.6rem;
}

/* ─── CTA Link ─── */
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #FF6B00 0%, #E55D00 100%);
  color: #fff;
  padding: 0.75rem 1.6rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.25s;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(255,107,0,0.35);
}
.cta-link:hover {
  background: var(--saffron-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,107,0,0.45);
}

/* ─── Two-Tile Layout ─── */
.two-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
  margin: 2.2rem 0;
}
.tile-card {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.35s;
  text-decoration: none;
  color: var(--text);
  display: block;
}
.tile-card:hover {
  border-color: var(--saffron);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  color: var(--text);
}
.tile-card .tile-emoji { font-size: 3.2rem; display: block; margin-bottom: 1rem; }
.tile-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.tile-card p { color: var(--text-light); font-size: 0.95rem; line-height: 1.6; }

/* ─── Nearby Temples ─── */
.nearby-temples { margin: 2.5rem 0 3.5rem; }
.nearby-temples h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--saffron-dark);
}
.nearby-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.nearby-card {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  text-align: center;
  transition: all 0.3s;
  text-decoration: none;
  color: var(--text);
  display: block;
}
.nearby-card:hover {
  border-color: var(--saffron);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  color: var(--text);
}
.nearby-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.35rem; }
.nearby-card p { font-size: 0.88rem; color: var(--text-light); }

/* ─── Temple List Grid ─── */
.temple-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-bottom: 2rem;
}
.temple-list-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: all 0.3s;
  text-decoration: none;
  color: var(--text);
  display: block;
}
.temple-list-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--saffron);
  color: var(--text);
}
.temple-list-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.4rem; }
.temple-list-card .tl-location { font-size: 0.92rem; color: var(--text-light); margin-bottom: 0.5rem; }
.temple-list-card .tl-badge {
  display: inline-block;
  background: #FFF3E8;
  color: var(--saffron);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
}

/* ─── Compact Unified Footer (Matches Main Portal) ─── */
.guide-footer {
  background: #2C1810;
  border-top: 1px solid rgba(255, 243, 228, 0.08);
  color: rgba(255, 243, 228, 0.7);
  padding: 1.25rem 0 0.85rem;
  text-align: center;
  font-size: 0.82rem;
  margin-top: 2rem;
}
.guide-footer .container {
  max-width: 1200px;
  padding: 0 1.5rem;
}
.guide-footer a {
  color: #E8C878;
  transition: color 0.2s ease;
  text-decoration: none;
}
.guide-footer a:hover {
  color: var(--saffron, #FF6B00);
}
.guide-footer p {
  margin-bottom: 0.35rem;
  line-height: 1.5;
}
.guide-footer p:last-child {
  margin-bottom: 0;
  font-size: 0.74rem;
  color: rgba(255, 243, 228, 0.45);
}

.guide-main { min-height: 60vh; padding-bottom: 2.5rem; }

/* ─── About Snippet ─── */
.about-snippet {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3.5rem;
  padding: 2.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about-snippet h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin-bottom: 1rem;
  color: var(--saffron-dark);
}

/* ═══════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════ */
/* ═══════════════════════════════════
   RESPONSIVE BREAKPOINTS (Fluid Tablet & Mobile)
   ═══════════════════════════════════ */
@media (max-width: 1100px) {
  .guide-toggle { display: flex; }
  .guide-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #FFFFFF;
    padding: 0.85rem 1.25rem 1.25rem;
    gap: 0.25rem;
    box-shadow: 0 14px 35px rgba(44, 24, 16, 0.12);
    border-bottom: 2px solid var(--saffron);
    max-height: calc(100vh - 65px);
    overflow-y: auto;
    z-index: 999;
  }
  .guide-menu.active { display: flex; }
  .guide-menu li { width: 100%; }
  .guide-menu a {
    display: block;
    width: 100%;
    padding: 0.6rem 0.85rem;
    font-size: 0.95rem;
    color: var(--text-dark, #2C1810);
    border-radius: 8px;
    box-sizing: border-box;
  }
  .guide-menu a::after { display: none !important; }
  .guide-menu a:hover,
  .guide-menu a.active {
    color: var(--saffron) !important;
    background: rgba(255, 107, 0, 0.08) !important;
  }
  .nav-live-btn {
    width: 100% !important;
    justify-content: center !important;
    margin-top: 0.35rem !important;
  }
}

@media (max-width: 768px) {
  .brand-om { font-size: 1.5rem !important; }
  .brand-text { font-size: 1.05rem !important; letter-spacing: 0.5px !important; }
  .guide-nav { padding: 0.45rem 0; }
  .nav-right-actions { gap: 0.4rem; margin-left: 0.5rem; }
  .tc-lang-trigger { height: 28px; padding: 0.2rem 0.45rem; font-size: 0.74rem; }
}

@media (max-width: 420px) {
  .brand-om { font-size: 1.35rem !important; }
  .brand-text { font-size: 0.92rem !important; }
  .nav-right-actions { gap: 0.25rem; margin-left: 0.35rem; }
}

@media (max-width: 992px) {
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .region-grid { grid-template-columns: repeat(3, 1fr); }
  .panchang-grid { grid-template-columns: repeat(2, 1fr); }
  .festival-row { grid-template-columns: repeat(2, 1fr); }
  .season-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .reach-grid { grid-template-columns: 1fr; }
  .temple-list-grid { grid-template-columns: 1fr; }
  .two-tiles { grid-template-columns: 1fr; }
  .nearby-grid { grid-template-columns: 1fr; }
  .guide-hero h1 { font-size: 2.2rem; }
  .temple-hero-section h1 { font-size: 2rem; }
}

@media (max-width: 768px) {
  html { font-size: 16px; }
  .container { padding: 0 1rem; }
  .guide-nav .container { padding: 0 0.8rem; }
  .quick-grid { grid-template-columns: 1fr; }
  .region-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .festival-row { grid-template-columns: 1fr; }
  .panchang-grid { grid-template-columns: 1fr; }
  .content-section { padding: 1.6rem 1.2rem; }
  .guide-hero { min-height: 380px; padding: 3.5rem 0.5rem; }
  .guide-hero h1 { font-size: 1.95rem; }
  .guide-hero p { font-size: 1rem; }
  .hero-search { max-width: 100%; }
  .hero-search input { font-size: 0.95rem; padding: 0.8rem 1rem; }
  .about-snippet { padding: 1.8rem 1.2rem; margin-bottom: 2.5rem; }
  .guide-footer { padding: 1.25rem 0.85rem 0.85rem; margin-top: 1.5rem; }
}

@media (max-width: 480px) {
  .region-grid { grid-template-columns: 1fr; }
  .guide-hero { min-height: 350px; padding: 3rem 0; }
  .guide-hero h1 { font-size: 1.65rem; }
  .guide-hero p { font-size: 0.92rem; }
  .content-section { padding: 1.3rem 1rem; }
  .group-nav { flex-direction: column; gap: 0.5rem; }
  .group-btn { width: 100%; text-align: center; }
  .info-table th, .info-table td { padding: 0.7rem 0.75rem; font-size: 0.88rem; }
}

/* ─── GEO & AI Overview Structured Quick Facts ─── */
.temple-quick-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2.2rem;
}
.fact-card {
  background: var(--surface, #FFFDF8);
  border: 1.5px solid var(--border, #E8DEC8);
  border-left: 4px solid var(--saffron, #FF6B00);
  border-radius: var(--radius-sm, 6px);
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.fact-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}
.fact-info {
  display: flex;
  flex-direction: column;
}
.fact-label {
  font-size: 0.75rem;
  color: var(--text-muted, #5E4E42);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.fact-val {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text, #1C0F05);
  margin-top: 0.15rem;
}


/* ─── Multi-Lingual Language Selector in Guide Nav ─── */
.nav-right-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.guide-nav .lang-selector-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 107, 0, 0.5);
  border-radius: 20px;
  padding: 0.22rem 0.65rem;
  transition: all 0.25s ease;
  z-index: 10;
}
.guide-nav .lang-selector-wrap:hover,
.guide-nav .lang-selector-wrap:focus-within {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--saffron, #FF6B00);
  box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.3);
}
.guide-nav .lang-icon {
  font-size: 0.95rem;
  margin-right: 0.35rem;
  pointer-events: none;
  line-height: 1;
}
.guide-nav .tc-lang-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: #FFF;
  cursor: pointer;
  padding-right: 1.1rem;
  outline: none;
}
.guide-nav .tc-lang-select option {
  color: #2D2424;
  background: #FFF;
}
.guide-nav .lang-selector-wrap::after {
  content: '▾';
  position: absolute;
  right: 0.5rem;
  font-size: 0.75rem;
  color: var(--saffron, #FF6B00);
  pointer-events: none;
}


/* ─── COMPACT STICKY HOME BUTTON & TOP-RIGHT LANGUAGE SELECTOR ─── */
.tc-sticky-home {
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 999999;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, #FF6B00 0%, #D84315 100%);
  color: #FFFFFF !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: 24px;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.35), 0 2px 5px rgba(0, 0, 0, 0.15);
  border: 1.2px solid rgba(255, 255, 255, 0.45);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  line-height: 1;
}
.tc-sticky-home:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 18px rgba(255, 107, 0, 0.55);
  border-color: #FFFFFF;
  color: #FFFFFF !important;
}
.tc-sticky-home .home-icon { font-size: 1.05rem; line-height: 1; }
.tc-sticky-home .home-text { font-size: 0.88rem; letter-spacing: 0.2px; }

/* Top-Right Compact Language Selector */
.tc-top-lang {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 10001;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.tc-top-lang.tc-fixed-top-right {
  position: fixed;
  top: 12px;
  right: 16px;
  z-index: 999999;
}
.tc-lang-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: #FFFFFF;
  color: #2D2424;
  border: 1.5px solid #FF6B00;
  border-radius: 20px;
  padding: 0.28rem 0.65rem;
  height: 32px;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(255, 107, 0, 0.2);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1;
  white-space: nowrap;
}
.tc-lang-trigger:hover {
  background: #FFF8F2;
  border-color: #E65100;
  box-shadow: 0 4px 14px rgba(255, 107, 0, 0.35);
  transform: translateY(-1px);
}
.tc-lang-icon { font-size: 0.95rem; line-height: 1; }
.tc-lang-code { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.5px; color: #1F150D; }
.tc-lang-caret { font-size: 0.65rem; color: #FF6B00; transition: transform 0.2s ease; line-height: 1; }
.tc-lang-trigger[aria-expanded="true"] .tc-lang-caret { transform: rotate(180deg); }

/* Dropdown popover */
.tc-lang-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 235px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  box-shadow: 0 16px 44px rgba(31, 21, 13, 0.16), 0 4px 16px rgba(255, 107, 0, 0.12);
  border: 1.5px solid rgba(255, 107, 0, 0.28);
  padding: 0.35rem;
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000000;
}
.tc-lang-popover.show { display: flex; animation: tcPopDown 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
.tc-lang-header {
  padding: 0.45rem 0.8rem 0.35rem;
  font-size: 0.7rem;
  font-weight: 800;
  color: #9E8E84;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 0.25rem;
}
.tc-lang-list { display: flex; flex-direction: column; max-height: 320px; overflow-y: auto; gap: 2px; }
.tc-lang-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.52rem 0.8rem;
  background: none;
  border: none;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}
.tc-lang-opt:hover {
  background: #FFF5EC;
  transform: translateX(2px);
}
.tc-lang-opt.active {
  background: linear-gradient(135deg, #FFF0E2 0%, #FFE6D2 100%);
  font-weight: 700;
}
.lang-opt-main {
  font-size: 0.92rem;
  color: #1F150D;
  font-weight: 600;
}
.tc-lang-opt.active .lang-opt-main {
  color: #D84315;
  font-weight: 700;
}
.lang-opt-sub {
  font-size: 0.74rem;
  color: #8C7B72;
  margin-left: auto;
  margin-right: 0.45rem;
  font-weight: 500;
}
.tc-lang-opt.active .lang-opt-sub {
  color: #E65100;
  font-weight: 600;
}
.lang-check {
  color: #FF6B00;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
}

@keyframes tcPopDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.guide-nav .tc-lang-trigger {
  background: #FFFFFF;
  border-color: #FF6B00;
  color: #1F150D;
}

@media (max-width: 600px) {
  /* Hidden on mobile — chatbot.css already hides it; belt-and-suspenders */
  .tc-sticky-home { display: none !important; }
  .tc-top-lang.tc-fixed-top-right { top: 10px; right: 12px; }
  .tc-lang-trigger { height: 28px; padding: 0.2rem 0.5rem; font-size: 0.76rem; }
  .tc-lang-popover { width: 235px; right: 0; }
}
