/* ======= CSS VARIABLES ======= */
:root {
  --saffron: #E8720C;
  --deep-red: #9B1B30;
  --gold: #C9922A;
  --gold-light: #F0C04A;
  --cream: #FAF3E0;
  --dark: #1A0A00;
  --charcoal: #2D1B0E;
  --text: #3D2000;
  --muted: #7A5C3A;
  --white: #FFFDF7;
  --green: #2E7D32;
  --whatsapp: #25D366;
  --shadow: 0 8px 32px rgba(232,114,12,0.15);
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

/* ======= SCROLLBAR ======= */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--saffron); border-radius: 3px; }

/* ======= LANGUAGE BAR ======= */
#lang-bar {
  background: var(--dark);
  padding: 6px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
#lang-bar span { color: var(--gold-light); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.lang-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.lang-btn {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  padding: 3px 10px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
  font-family: 'Lato', sans-serif;
}
.lang-btn:hover, .lang-btn.active { background: var(--gold); color: var(--dark); }

/* ======= HEADER / HERO ======= */
header {
  position: relative;
  background: linear-gradient(135deg, var(--dark) 0%, var(--charcoal) 60%, #4A1A00 100%);
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header-pattern {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(232,114,12,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(201,146,42,0.10) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9922A' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  flex-wrap: wrap;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 16px rgba(232,114,12,0.4);
}
.logo-text { color: var(--white); }
.logo-text .site-name { font-family: 'Cinzel Decorative', serif; font-size: 22px; color: var(--gold-light); line-height: 1; }
.logo-text .tagline { font-size: 11px; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; }

.nav-links { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.nav-links a {
  color: #D4B896;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: color 0.2s;
  font-weight: 400;
}
.nav-links a:hover { color: var(--gold-light); }
.nav-cta {
  background: linear-gradient(135deg, var(--saffron), var(--deep-red));
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 24px;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(155,27,48,0.4);
}

/* ======= HERO CONTENT ======= */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px 80px;
  position: relative; z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,114,12,0.15);
  border: 1px solid rgba(232,114,12,0.3);
  color: var(--gold-light);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeDown 0.8s ease both;
}

.hero h1 {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(32px, 6vw, 72px);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 8px;
  animation: fadeDown 0.9s ease both;
}
.hero h1 .accent { color: var(--gold-light); }

.hero-tamil {
  font-family: 'Tiro Tamil', serif;
  font-size: clamp(18px, 3vw, 32px);
  color: var(--saffron);
  margin-bottom: 20px;
  animation: fadeDown 1s ease both;
}

.hero p {
  max-width: 600px;
  color: #B8956A;
  font-size: clamp(14px, 2vw, 17px);
  line-height: 1.7;
  margin-bottom: 36px;
  animation: fadeDown 1.1s ease both;
}

.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
  animation: fadeDown 1.2s ease both;
}
.btn-primary {
  background: linear-gradient(135deg, var(--saffron), #C4500A);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 32px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(232,114,12,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  border: none; cursor: pointer;
  font-family: 'Lato', sans-serif;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(232,114,12,0.55); }
.btn-secondary {
  background: transparent;
  color: var(--gold-light);
  padding: 13px 32px;
  border-radius: 32px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--gold);
  transition: all 0.2s;
  cursor: pointer;
  font-family: 'Lato', sans-serif;
}
.btn-secondary:hover { background: var(--gold); color: var(--dark); }

/* ======= SEARCH BAR ======= */
.search-section {
  background: var(--white);
  padding: 40px 24px;
  border-bottom: 2px solid rgba(232,114,12,0.1);
}
.search-wrap {
  max-width: 700px;
  margin: 0 auto;
}
.search-wrap h2 {
  text-align: center;
  font-family: 'Cinzel Decorative', serif;
  font-size: 20px;
  color: var(--deep-red);
  margin-bottom: 20px;
}
.search-box {
  display: flex;
  gap: 0;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(232,114,12,0.2);
  border: 2px solid var(--saffron);
}
.search-box input {
  flex: 1;
  padding: 14px 24px;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: 'Lato', sans-serif;
  background: var(--white);
  color: var(--text);
}
.search-box button {
  background: linear-gradient(135deg, var(--saffron), var(--deep-red));
  color: var(--white);
  border: none;
  padding: 14px 28px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Lato', sans-serif;
  transition: opacity 0.2s;
}
.search-box button:hover { opacity: 0.9; }
.filter-chips {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 16px;
}
.chip {
  background: rgba(232,114,12,0.08);
  border: 1px solid rgba(232,114,12,0.25);
  color: var(--saffron);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.chip:hover, .chip.active { background: var(--saffron); color: var(--white); }

/* ======= SECTION COMMONS ======= */
section { padding: 72px 24px; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header .eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 10px;
  display: block;
}
.section-header h2 {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(22px, 4vw, 38px);
  color: var(--deep-red);
  line-height: 1.2;
}
.section-header p { color: var(--muted); margin-top: 12px; font-size: 15px; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; max-width: 1100px; margin: 0 auto; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; max-width: 900px; margin: 0 auto; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; max-width: 1100px; margin: 0 auto; }

/* ======= CARDS ======= */
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
  border: 1px solid rgba(232,114,12,0.08);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(232,114,12,0.18); }

.card-img {
  width: 100%; height: 180px;
  display: flex; align-items: center; justify-content: center;
  font-size: 56px;
  position: relative;
  overflow: hidden;
}
.card-body { padding: 18px 20px 20px; }
.card-tag {
  display: inline-block;
  background: rgba(232,114,12,0.1);
  color: var(--saffron);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.card h3 {
  font-family: 'Cinzel Decorative', serif;
  font-size: 16px;
  color: var(--deep-red);
  margin-bottom: 6px;
  line-height: 1.3;
}
.card p { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 12px; }
.card-meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.meta-item { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.rating { color: #F5A623; font-weight: 700; }
.card-actions { display: flex; gap: 8px; margin-top: 14px; }

/* temple card gradient */
.t1 { background: linear-gradient(135deg, #7B1A2A 0%, #C4500A 100%); }
.t2 { background: linear-gradient(135deg, #1A3A6B 0%, #2E7D9F 100%); }
.t3 { background: linear-gradient(135deg, #2E5C1A 0%, #5E8C2A 100%); }
.t4 { background: linear-gradient(135deg, #5C2E1A 0%, #A0612A 100%); }
.t5 { background: linear-gradient(135deg, #1A2E5C 0%, #3A5CA0 100%); }
.t6 { background: linear-gradient(135deg, #4A1A6B 0%, #7A4AA0 100%); }

.btn-sm {
  padding: 7px 14px; border-radius: 20px; font-size: 12px; font-weight: 700;
  text-decoration: none; border: none; cursor: pointer; font-family: 'Lato', sans-serif;
  transition: all 0.2s;
}
.btn-outline { background: transparent; border: 1.5px solid var(--saffron); color: var(--saffron); }
.btn-outline:hover { background: var(--saffron); color: var(--white); }
.btn-whatsapp { background: var(--whatsapp); color: var(--white); display: flex; align-items: center; gap: 5px; }
.btn-whatsapp:hover { background: #1FA855; }
.btn-map { background: var(--green); color: var(--white); }
.btn-map:hover { background: #1B5E20; }

/* ======= TEMPLES SECTION ======= */
#temples { background: var(--cream); }

/* ======= RESTAURANTS ======= */
#restaurants { background: #FFF8F0; }
.r1 { background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%); }
.r2 { background: linear-gradient(135deg, #556B2F 0%, #8B9B4A 100%); }
.r3 { background: linear-gradient(135deg, #8B1A1A 0%, #C0392B 100%); }

/* ======= HOTELS ======= */
#hotels { background: var(--cream); }
.h1 { background: linear-gradient(135deg, #1A3A5C 0%, #2980B9 100%); }
.h2 { background: linear-gradient(135deg, #2C1A40 0%, #8E44AD 100%); }
.h3 { background: linear-gradient(135deg, #1A4A2A 0%, #27AE60 100%); }

/* ======= TRANSPORT ======= */
#transport { background: #F0F8FF; }
.transport-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  max-width: 900px; margin: 0 auto;
}
.transport-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.2s;
  cursor: pointer;
}
.transport-card:hover { transform: translateY(-4px); }
.transport-icon { font-size: 40px; margin-bottom: 12px; }
.transport-card h3 { font-size: 15px; color: var(--deep-red); margin-bottom: 4px; font-family: 'Cinzel Decorative', serif; font-size: 14px; }
.transport-card p { font-size: 12px; color: var(--muted); }
.transport-card .btn-sm { margin-top: 12px; display: inline-block; }

/* ======= LOCATION MAP ======= */
#location { background: var(--charcoal); }
#location .section-header .eyebrow { color: var(--gold-light); }
#location .section-header h2 { color: var(--gold-light); }
#location .section-header p { color: #B8956A; }

.map-container {
  max-width: 1000px;
  margin: 0 auto;
  background: #2A1A08;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--gold);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.map-tabs {
  display: flex;
  background: #1A0A00;
  overflow-x: auto;
}
.map-tab {
  padding: 12px 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: transparent;
  white-space: nowrap;
  transition: all 0.2s;
  font-family: 'Lato', sans-serif;
  border-bottom: 2px solid transparent;
}
.map-tab:hover { color: var(--gold-light); }
.map-tab.active { color: var(--gold-light); border-bottom-color: var(--saffron); }

.map-embed-wrap {
  position: relative;
  padding-top: 56%;
}
.map-embed-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: none;
}
.map-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px;
  background: #1A0A00;
  color: var(--gold-light);
  font-size: 15px;
  text-align: center; padding: 20px;
}
.map-fallback .map-icon { font-size: 48px; }
.map-location-list {
  padding: 20px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.map-loc-btn {
  background: rgba(201,146,42,0.1);
  border: 1px solid rgba(201,146,42,0.25);
  color: var(--gold-light);
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  display: flex; align-items: center; gap: 8px;
  transition: all 0.2s;
  font-family: 'Lato', sans-serif;
  text-align: left;
}
.map-loc-btn:hover { background: rgba(201,146,42,0.25); }
.map-loc-btn a { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 8px; width: 100%; }

/* ======= DARSHAN TIMINGS ======= */
#darshan { background: #FFF8F0; }
.darshan-table {
  max-width: 900px; margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(232,114,12,0.1);
}
.darshan-table table {
  width: 100%; border-collapse: collapse;
}
.darshan-table th {
  background: linear-gradient(135deg, var(--deep-red), var(--saffron));
  color: var(--white);
  padding: 14px 18px;
  text-align: left;
  font-size: 13px;
  letter-spacing: 0.5px;
}
.darshan-table td {
  padding: 12px 18px;
  border-bottom: 1px solid rgba(232,114,12,0.08);
  font-size: 14px;
  color: var(--text);
}
.darshan-table tr:hover td { background: rgba(232,114,12,0.04); }
.darshan-table tr:last-child td { border-bottom: none; }
.status-open { color: var(--green); font-weight: 700; }
.status-closed { color: var(--deep-red); font-weight: 700; }

/* ======= WHATSAPP SECTION ======= */
#whatsapp-help {
  background: linear-gradient(135deg, #1A3C2A 0%, #0D5A3A 100%);
  text-align: center;
  padding: 72px 24px;
}
#whatsapp-help h2 {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(24px, 4vw, 40px);
  color: var(--white);
  margin-bottom: 12px;
}
#whatsapp-help p { color: #A8D5B5; font-size: 16px; max-width: 560px; margin: 0 auto 32px; line-height: 1.7; }

.wa-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 32px 28px;
  max-width: 480px;
  margin: 0 auto;
  backdrop-filter: blur(10px);
}
.wa-number { font-size: 28px; font-weight: 700; color: var(--gold-light); margin-bottom: 8px; }
.wa-desc { color: #A8D5B5; font-size: 14px; margin-bottom: 20px; }
.wa-features { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 24px; }
.wa-feat {
  background: rgba(37,211,102,0.15);
  border: 1px solid rgba(37,211,102,0.3);
  color: #7FFFD4;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
}
.btn-wa-large {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--whatsapp);
  color: var(--white);
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 18px; font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(37,211,102,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  border: none; cursor: pointer;
  font-family: 'Lato', sans-serif;
}
.btn-wa-large:hover { transform: scale(1.04); box-shadow: 0 12px 40px rgba(37,211,102,0.5); }
.wa-icon { font-size: 22px; }

/* Quick message buttons */
.quick-msgs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.quick-msg-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 12px; cursor: pointer;
  transition: all 0.2s;
  font-family: 'Lato', sans-serif;
  text-decoration: none;
}
.quick-msg-btn:hover { background: rgba(255,255,255,0.2); }

/* ======= TIPS SECTION ======= */
#tips { background: var(--cream); }
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1000px; margin: 0 auto;
}
.tip-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 20px;
  border-left: 4px solid var(--saffron);
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}
.tip-icon { font-size: 32px; margin-bottom: 12px; }
.tip-card h4 { font-size: 15px; font-weight: 700; color: var(--deep-red); margin-bottom: 8px; }
.tip-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ======= FOOTER ======= */
footer {
  background: var(--dark);
  padding: 48px 24px 24px;
  color: #8A6A4A;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 32px;
  max-width: 1000px; margin: 0 auto 32px;
}
footer h4 { color: var(--gold-light); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px; }
footer a { color: #8A6A4A; text-decoration: none; display: block; margin-bottom: 8px; font-size: 13px; transition: color 0.2s; }
footer a:hover { color: var(--gold-light); }
.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(201,146,42,0.15);
  font-size: 13px;
  color: #5A3A1A;
}
.footer-logo { font-family: 'Cinzel Decorative', serif; font-size: 18px; color: var(--gold-light); margin-bottom: 8px; }

/* ======= FLOATING WA BUTTON ======= */
.float-wa {
  position: fixed;
  bottom: 28px; right: 28px;
  background: var(--whatsapp);
  color: var(--white);
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37,211,102,0.5);
  z-index: 999;
  transition: transform 0.2s;
  animation: pulse 2s ease infinite;
}
.float-wa:hover { transform: scale(1.1); }

@keyframes pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37,211,102,0.5); }
  50% { box-shadow: 0 8px 40px rgba(37,211,102,0.8); }
}

/* ======= ANNOUNCEMENTS ======= */
.announcements {
  background: linear-gradient(90deg, var(--deep-red), var(--saffron), var(--deep-red));
  background-size: 200%;
  animation: bgMove 4s linear infinite;
  color: var(--white);
  padding: 10px 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  overflow: hidden;
}
@keyframes bgMove { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }

.marquee-wrap { overflow: hidden; white-space: nowrap; }
.marquee-inner { display: inline-block; animation: marquee 20s linear infinite; }
@keyframes marquee { 0% { transform: translateX(100vw); } 100% { transform: translateX(-100%); } }

/* ======= ANIMATIONS ======= */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ======= MULTILANG HIDDEN ======= */
[data-en], [data-ta], [data-hi], [data-te] { display: none; }
.lang-visible { display: inline !important; }
.lang-visible-block { display: block !important; }

/* ======= RESPONSIVE ======= */
@media(max-width: 768px) {
  nav { padding: 16px 20px; }
  .nav-links { display: none; }
  section { padding: 48px 16px; }
  .hero { padding: 40px 16px 60px; }
}