/* RESET */
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
   font-family: 'Merriweather', serif;
}

/* ACCENT COLORS */
:root {
  --accent-gold: #f4c430;      /* saffron/gold for highlights */
  --accent-maroon: #800000;    /* deep maroon for headings */
  --accent-coral: #ff6600;     /* coral for buttons/headings */
  --accent-green: #2e8b57;     /* subtle green for balance */
  --text-dark: #4b2e2e;        /* earthy dark text */
  --text-light: #fff8dc;       /* soft cream text for overlays */
}


/* BODY BACKGROUND */
body {
  
  min-height: 100vh;
  /* position: relative; */
  color: var(--text-dark);
}
 body, html {
  /* Remove overflow-x: hidden */
  overflow-y: visible; 
  height: 100%; /* Optional: ensures full height */
}

/* STICKY GLASSMORPHIC NAVBAR */
.navbar-wrapper {
  /* Change sticky to fixed */
  position: fixed; 
  top: 0;
  left: 0;
  
  /* Ensure it spans the full width */
  width: 100%; 
  
  /* Keep it on top of other content */
  z-index: 9999;
}

/* Navbar general */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: rgba(255, 248, 220, 0.25);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  border: 1px solid rgba(255, 248, 220, 0.3);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  position: relative;
  z-index: 1000;
}

/* Left: logo + brand */
.nav-left {
  display: flex;
  align-items: center;
}

.nav-logo {
  width: 40px;
  height: 40px;
  margin-right: 10px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-left h2 {
  font-size: 22px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--accent-maroon);
}

/* Desktop: right group (lang + links) */
.nav-right-group {
  display: flex;
  align-items: center;
  gap: 25px;
}

/* Desktop nav-right links */
.nav-right {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-right a {
  text-decoration: none;
  font-size: 18px;
  color: var(--text-dark);
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s;
}

.nav-right a:hover {
  background: rgba(255, 248, 220, 0.2);
  color: var(--accent-gold);
}

/* Sangam Registration dropdown */
.nav-dropdown {
  position: relative;
  display: inline-block;
}
.nav-dropdown-trigger {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  padding: 8px 12px;
  margin: 0;
  text-decoration: none;
  display: inline-block;
  border-radius: 8px;
  transition: all 0.3s;
}
.nav-dropdown-trigger:hover {
  background: rgba(255, 248, 220, 0.2);
  color: var(--accent-gold);
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 140px;
  margin-top: 4px;
  padding: 4px 0;
  background: rgba(255, 248, 220, 0.98);
  backdrop-filter: blur(12px);
  border-radius: 8px;
  border: 1px solid rgba(255, 248, 220, 0.3);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  z-index: 1000;
}
.nav-dropdown-menu[hidden] {
  display: none;
}
.nav-dropdown-item {
  display: block;
  padding: 8px 16px;
  color: var(--text-dark);
  text-decoration: none;
  white-space: nowrap;
  font-size: 16px;
}
.nav-dropdown-item:hover {
  background: rgba(0,0,0,0.06);
  color: var(--accent-maroon);
}

/* Hamburger menu (desktop hidden) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 2px;
}

/* Language Radio Button Group */
.lang-switch-container,
.lang-switch {
  display: flex;
  gap: 12px;
  align-items: center;
}

.lang-radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 15px;
  color: var(--text-dark);
  user-select: none;
}

.lang-radio-label:hover {
  background: rgba(244, 196, 48, 0.15);
}

.lang-radio {
  cursor: pointer;
  width: 18px;
  height: 18px;
  accent-color: var(--accent-maroon);
  margin: 0;
}

.lang-radio-label span {
  font-weight: 500;
}

.lang-radio:checked + span {
  color: var(--accent-maroon);
  font-weight: 600;
}

/* MOBILE: lang switcher always visible in bar; menu in dropdown */
@media(max-width: 768px) {
  .nav-right-group {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .hamburger {
    display: flex;
  }

  /* Language switcher stays visible in navbar - compact horizontal */
  .nav-right-group .lang-switch-container {
    display: flex;
    flex-direction: row;
    gap: 6px;
    margin: 0;
    width: auto;
  }

  .nav-right-group .lang-radio-label {
    padding: 6px 10px;
    width: auto;
    font-size: 14px;
    justify-content: center;
  }

  .nav-right-group .lang-radio {
    width: 16px;
    height: 16px;
  }

  .nav-right {
    position: absolute;
    top: 60px;       /* below navbar */
    right: 10px;     /* align with hamburger */
    width: max-content;  /* auto width according to content */
    min-width: 150px;    /* don’t get too small */
    flex-direction: column;
    gap: 15px;
    background: white;   /* white background */
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    display: none;       /* hidden by default */
    z-index: 1001;
  }

  .nav-right.active {
    display: flex;  /* show when hamburger clicked */
  }

  /* Mobile link styles */
  .nav-right a {
    font-size: 16px;
    color: var(--text-dark);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 8px;
  }

  .nav-right a:hover {
    background: var(--accent-gold);
    color: var(--text-light);
  }
}


#content {
  /* Push the content down so it starts BELOW the navbar */
  padding-top: 100px; 
}

/* TEMPLE SECTION */
.temple-section {
  display: flex;
  flex-direction: row;
  gap: 30px;
  width: 100%;
  padding: 40px 20px;
  background: linear-gradient(
    135deg,
    rgba(255, 248, 220, 0.25),
    rgba(255, 235, 205, 0.15)
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 15px;
  border: 1px solid rgba(255, 248, 220, 0.3);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  color: var(--text-dark);
  flex-wrap: wrap;
  position: relative;
  padding-top: 100px; 
}

/* Optional faint motif overlay */
.temple-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.05;
  border-radius: 15px;
  pointer-events: none;
}

/* LEFT SIDE */
.temple-left {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Mobile + Desktop logo wrapper */
.mobile-logo-wrapper {
  display: flex;               /* show on all screen sizes */
  justify-content: center;     /* horizontally center */
  align-items: center;         /* vertically center if needed */
  margin-bottom: 20px;
  width: 100%;                 /* full width for centering */
}


.mobile-logo {
  width: 180px;      /* adjust size */
  height: 180px;     /* adjust size */
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent-maroon);
  display: block;
  margin: 0 auto;    /* center image horizontally */
}


/* HEADER */
.temple-header h1 {
  font-size: 34px;
  margin-bottom: 6px;
  color: var(--accent-maroon);
  letter-spacing: 0.5px;
}

.temple-header p {
  font-size: 17px;
  margin-bottom: 20px;
  color: #333;
  line-height: 1.6;
  opacity: 0.9;
}

/* FILTER ROW (District + Other States + Country) */
.filter-row {
  width: 140%;
  max-width: 900px;
}

/* SEARCH BAR */
.temple-search {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: nowrap;
  align-items: center;
}

.temple-search select,
.temple-search input {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.04);
  outline: none;
  background: rgba(255,255,255,0.65);
  color: var(--text-dark);
  flex: 1;
  min-width: 0;
  font-size: 15px;
  transition: box-shadow 0.2s ease, transform 0.1s ease;
}

.temple-search select:focus,
.temple-search input:focus {
  box-shadow: 0 0 0 2px rgba(244,196,48,0.35);
  background: #fff;
}

/* LIST */
.temple-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* CARD */
.temple-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255,248,220,0.28);
  padding: 16px;
  border-radius: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  cursor: pointer;
}

.temple-item:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
}

.temple-item img {
  width: 100px;
  height: 100px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
}

/* TEXT */
.temple-info {
  font-size: 19px;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  transition: 0.3s;
  text-transform: uppercase;
  font-style: oblique;
  letter-spacing: 0.3px;
  line-height: 1.3;
}

.temple-info p {
  font-size: 15px;
  color: #333;
  margin-top: 4px;
  opacity: 0.85;
}

/* RIGHT PANEL */
.temple-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: rgba(255,248,220,0.25);
  padding: 20px;
  border-radius: 15px;
  border: 1px solid rgba(255,248,220,0.3);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.temple-right img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.temple-right h2 {
  font-size: 22px;
  color: var(--accent-maroon);
}

/* QUICK LINKS */
.quick-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.quick-links li a {
  text-decoration: none;
  font-size: 17px;
  color: var(--text-dark);
  padding: 10px 12px;
  border-radius: 10px;
  transition: 0.25s ease;
  display: block;
}

.quick-links li a:hover {
  background: var(--accent-gold);
  color: var(--text-light);
}

/* FADE ANIMATION */
.fade-in {
  animation: softFade 0.6s ease forwards;
}

@keyframes softFade {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .temple-section {
    flex-direction: column;
  }

  .temple-right {
    width: 100%;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .temple-section {
    padding-top: 60px;
  }

  .temple-item {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 16px;
  }

  .filter-row {
    width: 100%;
    max-width: 100%;
  }

  .temple-search {
    flex-direction: column;
    gap: 10px;
  }

  .temple-search select,
  .temple-search input {
    flex: unset;
    width: 100%;
    font-size: 14px;
    padding: 10px;
  }

  .temple-item img {
    width: 100%;
    height: auto;
  }

 
  .mobile-logo {
    width: 180px;
    height: 180px;
  }

  .temple-right {
    padding: 16px;
  }
}


/* ABOUT SECTION */
.about-section {
  width: 100%;
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 15px;
  color: var(--accent-maroon);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about-section h1 {
  font-size: 36px;
  text-align: center;
  color: var(--accent-maroon);
  margin-bottom: 30px;
}

.about-content {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.about-left, .about-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: rgba(255,248,220,0.25);
  padding: 20px;
  border-radius: 15px;
}

.about-left h2, .about-right h2 {
  font-size: 24px;
  color: var(--accent-maroon);
  margin-bottom: 10px;
}

.about-left ul, .about-right ul {
  list-style: disc inside;
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.6;
}

.about-image {
  width: 100%;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: auto;
  max-height: 300px;
  display: block;
  border-radius: 15px;
}

/* CONTACT SECTION CONTAINER */
.contact-section {
  width: 100%;
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  color: var(--text-dark);
}

.contact-section h1 {
  font-size: 36px;
  text-align: center;
  color: var(--accent-maroon);
  margin-bottom: 5px;
}

.contact-section > p {
  text-align: center;
  font-size: 16px;
  margin-bottom: 20px;
  color: #333;
}

/* --- SPLIT LAYOUT (Video Left / Office Right) --- */
.contact-info {
  display: flex;
  flex-direction: row; /* Forces side-by-side */
  gap: 30px;
  justify-content: center;
  align-items: stretch; /* Makes both boxes equal height */
  flex-wrap: wrap; /* Allows stacking on mobile */
  margin-bottom: 20px;
}

/* LEFT: VIDEO CONTAINER */
.contact-video {
  flex: 1;            /* Takes 50% width */
  min-width: 300px;   /* Prevents it from getting too small */
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  background: #000;
  display: flex;      /* Aligns video internally */
  align-items: center;
}

.contact-video video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures video fills the box nicely */
  display: block;
}

/* Video Overlay – click-to-play hint */
.contact-video {
  cursor: pointer;
}

.video-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.contact-video:hover .video-overlay {
  opacity: 1;
}

/* Play button circle */
.video-overlay::before {
  content: "▶";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #222;
  font-size: 1.4rem;
  padding-left: 4px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.video-overlay span {
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  letter-spacing: 0.3px;
}

/* RIGHT: OFFICE INFO */
.contact-office {
  flex: 1;            /* Takes 50% width */
  min-width: 300px;   /* Prevents it from getting too small */
  background: rgba(255, 248, 220, 0.25); /* Kept your theme color */
  padding: 30px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Vertically centers the text */
}

.contact-office h2 {
  font-size: 24px;
  color: var(--accent-maroon);
  margin-bottom: 20px;
  border-bottom: 2px solid rgba(0,0,0,0.05);
  padding-bottom: 10px;
}

.contact-office p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 10px;
  text-align: left; /* Ensures text aligns left inside the box */
}

/* --- CONTACT FORM (Unchanged Logic, just ensuring alignment) --- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.contact-form h2 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 22px;
  color: var(--text-dark);
  font-weight: 700;
}

@media (min-width: 768px) {
  .contact-form {
    max-width: 700px;
    margin: 20px auto 0 auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0,0,0,0.05);
  }
}

.contact-form input,
.contact-form textarea {
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  outline: none;
  width: 100%;
  font-size: 16px;
  background: #f9f9f9;
  color: var(--text-dark);
  transition: all 0.3s ease;
  font-family: inherit;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: #fff;
  border-color: var(--accent-coral);
  box-shadow: 0 0 0 4px rgba(255, 127, 80, 0.15);
}

.contact-form button {
  padding: 15px;
  border-radius: 8px;
  border: none;
  background-color: var(--accent-coral);
  color: var(--text-light);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.contact-form button:hover {
  background-color: #ff9933;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 153, 51, 0.3);
}

/* RESPONSIVE: STACK ON MOBILE */
@media(max-width: 992px) {
  .contact-info {
    flex-direction: column; /* Stack them top to bottom */
  }
  
  .contact-video, .contact-office {
    width: 100%; /* Full width on mobile */
    min-height: 250px; /* Ensure video has height on mobile */
  }
}

/* MODAL STYLES */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.video-modal.active {
  display: flex;
}

.video-modal video {
  width: 90vw;
  max-width: 960px;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.7);
}

.close-video {
  position: absolute;
  top: 20px;
  right: 28px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.close-video:hover {
  background: rgba(255, 255, 255, 0.35);
}

  /* FOR FONTS */
  /* Section Headings (H1, H2) */
.temple-header h1,
.temple-right h2,
.about-section h1,
.about-left h2,
.about-right h2,
.contact-section h1,
.contact-left h2,
.contact-right h2 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 1px; /* Slight spacing for premium look */
}
/* Optional Accent/Script font for small highlights */
.quick-links li a,
.lang-radio-label span,
.contact-form button {
    font-family: 'Dancing Script', cursive;
    font-weight: 500;
}
          /* ===================== TEMPLE DETAILS CONTAINER ===================== */
.details-container {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 25px;
  border-radius: 18px;
  color: #222;
  font-style: oblique;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* ===================== HEADER ===================== */
.details-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.details-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.details-header h1 {
  color: var(--accent-maroon);
  font-size: 28px;
  letter-spacing: 0.4px;
}

.details-header p {
  font-size: 15px;
  color: #444;
  opacity: 0.9;
}

/* ===================== SERVICES LIST ===================== */
.details-services {
  list-style: none;
  margin-left: 10px;
  margin-top: 10px;
  padding: 0;
  color: #333;
  font-size: 16px;
  line-height: 1.6;
}

.details-services li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}

/* Custom bullet */
.details-services li::before {
  content: "•";
  color: #f4c430;
  position: absolute;
  left: 0;
  font-size: 22px;
  line-height: 1;
  top: 2px;
}

/* ===================== BACK BUTTON ===================== */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-maroon);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  font-size: 15px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.25s ease;
  box-shadow: 0 6px 14px rgba(128, 0, 0, 0.2);
  width: fit-content;
}

.back-btn:hover {
  background: #a00000;
  transform: translateX(-2px);
  box-shadow: 0 8px 18px rgba(128, 0, 0, 0.35);
}

/* ===================== MAIN ADDRESS ===================== */
.main-address {
  margin-bottom: 25px;
  font-size: 16px;
  color: #333;
}

/* ===================== GRID ===================== */
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.left-section,
.right-section {
  background: rgba(255, 255, 255, 0.35);
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}

.left-section h2,
.right-section h2 {
  margin-top: 15px;
  margin-bottom: 10px;
  color: var(--accent-maroon);
  font-size: 20px;
  letter-spacing: 0.3px;
}

/* ===================== IMAGE COLLAGE ===================== */
.image-collage {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.image-collage img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.image-collage img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 26px rgba(0,0,0,0.18);
}

/* ===================== LIGHTBOX ===================== */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 14px;
}

#lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 42px;
  color: white;
  cursor: pointer;
}

/* ===================== RIGHT SECTION ===================== */
.right-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.right-section p {
  line-height: 1.7;
  font-size: 15px;
  color: #333;
}

/* ===================== MAP ===================== */
.map-box {
  margin-top: 25px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.map-box iframe {
  width: 100%;
  height: 320px;
  border: none;
  display: block;
}
#leafletMap {
  width: 100%;
  height: 320px;   /* same as your iframe height */
  border-radius: 14px;
  overflow: hidden;
}


/* ===================== MOBILE RESPONSIVE ===================== */
@media(max-width: 768px) {
  .details-grid {
    grid-template-columns: 1fr;
  }

  .details-container {
    padding: 18px;
  }

  .map-box iframe {
    height: 250px;
  }

  .image-collage img {
    height: 180px;
  }

  .back-btn {
    font-size: 14px;
    padding: 8px 16px;
  }
}

/* ===================== REMOVE EXTRA SPACING (IF NAVBAR CAUSES GAP) ===================== */
.no-navbar {
  margin-top: 0 !important;
  padding-top: 0 !important;
}


/* -----------------------------------
   GLOBAL RESET
----------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* THEME COLORS */
/* ================================
   ROOT VARIABLES
================================ */
:root {
  --accent-maroon: #800000;
  --accent-gold: #f4c430;
  --bg-soft: #faf8f5;
  --card-bg: rgba(255, 255, 255, 0.96);
  --text-dark: #222;
}

/* ================================
   PAGE CONTAINER
================================ */
body {
  background: linear-gradient(135deg, #fff9eb, #fff4d6);
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: var(--text-dark);
}

.container {
  max-width: 1150px;
  margin: 20px auto;
  padding: 0 16px;
}

/* ================================
   HEADER
================================ */
.header {
  background: linear-gradient(135deg, var(--accent-maroon), #5a0000);
  color: white;
  padding: 18px 22px;
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.14);
}

.header h1 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ================================
   PANEL
================================ */
.panel {
  margin-top: 18px;
  background: var(--card-bg);
  padding: 18px;
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

/* ================================
   TOOLBAR
================================ */
.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

/* ================================
   INPUTS & BUTTONS
================================ */
.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 14px;
  background: #fff;
  transition: box-shadow 0.2s ease, border 0.2s ease;
}

.input:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 2px rgba(244,196,48,0.25);
}

.search {
  flex: 1;
  max-width: 350px;
}

/* Buttons */
.btn {
  padding: 12px 18px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s;
  white-space: nowrap;
}

.btn.primary {
  background: linear-gradient(135deg, #f4c430, #ffdd66);
  color: #222;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.btn.primary:hover {
  transform: translateY(-1px);
  background: #ffd24d;
}

.btn.ghost {
  background: rgba(255,255,255,0.3);
  color: #333;
}

.btn.ghost:hover {
  background: rgba(255,255,255,0.5);
}

.btn.warn {
  background: linear-gradient(135deg, #ff5c5c, #e24040);
  color: white;
}

.btn.warn:hover {
  background: #d93636;
}

/* ================================
   TEMPLE LIST
================================ */
.admin-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

/* Card */
.temple-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: white;
  border-radius: 20px;
  padding: 16px;
  border: 1px solid #eee;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: all 0.25s ease;
}

.temple-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}

.temple-card img {
  width: 100%;
  height: 150px;
  border-radius: 16px;
  object-fit: cover;
}

/* Text */
.temple-card strong {
  font-size: 16px;
}

.temple-card > div {
  font-size: 14px;
  color: #555;
}

/* Action buttons inside cards */
.temple-card button {
  width: 100%;
  margin-top: 6px;
}

/* ================================
   MODAL
================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
  z-index: 9999;
}

.modal {
  background: white;
  width: 100%;
  max-width: 560px;
  padding: 22px;
  border-radius: 22px;
  box-shadow: 0 16px 50px rgba(0,0,0,0.3);
  max-height: 90vh;
  overflow-y: auto;
}

.modal h2 {
  margin-bottom: 14px;
  color: var(--accent-maroon);
}

/* Form fields */
.modal input,
.modal textarea {
  width: 100%;
  margin-bottom: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 14px;
}

.modal textarea {
  resize: vertical;
  min-height: 80px;
}

/* ================================
   INCHARGE ROW
================================ */
#incharges-container > div {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

#incharges-container input {
  flex: 1;
}

.btn-remove {
  background: #ff4d4d;
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
}

/* Add incharge button */
#btn-add-incharge {
  margin-bottom: 10px;
}

/* ================================
   TOAST
================================ */
#toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #222;
  color: white;
  padding: 12px 18px;
  border-radius: 12px;
  display: none;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* ================================
   RESPONSIVENESS
================================ */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    text-align: center;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .search {
    max-width: 100%;
  }

  .admin-list {
    grid-template-columns: 1fr;
  }

  .temple-card {
    padding: 14px;
  }

  .modal {
    border-radius: 16px;
  }
}

@media (max-width: 420px) {
  .header h1 {
    font-size: 18px;
  }

  .btn {
    font-size: 13px;
    padding: 10px 14px;
  }
}

