/* Ayyappa Temples — festive saffron / maroon / gold theme */
:root {
  --saffron: #ff7a00;
  --saffron-2: #ff9f1c;
  --maroon: #7a1424;
  --maroon-2: #4d0b16;
  --gold: #e0a526;
  --gold-soft: #fff3d6;
  --black: #1b1012;          /* Ayyappa devotees' black vastram */
  --leaf: #2f8f4e;
  --sky: #1e6fb8;
  --cream: #fffaf2;
  --ink: #2b1a1d;
  --muted: #7b6a6d;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(122, 20, 36, .10);
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: "Noto Sans", "Noto Sans Telugu", "Noto Sans Tamil", "Noto Sans Malayalam", "Noto Sans Devanagari", system-ui, sans-serif;
}
body.lang-te { font-family: "Noto Sans Telugu", "Noto Sans", sans-serif; }
body.lang-ta { font-family: "Noto Sans Tamil", "Noto Sans", sans-serif; }
body.lang-ml { font-family: "Noto Sans Malayalam", "Noto Sans", sans-serif; }
body.lang-hi { font-family: "Noto Sans Devanagari", "Noto Sans", sans-serif; }

a { color: var(--maroon); }
a:hover { color: var(--saffron); }

/* ---------- top ribbon + nav ---------- */
.top-ribbon {
  background: linear-gradient(90deg, var(--gold), var(--saffron), var(--gold));
  color: var(--maroon-2);
  font-weight: 700;
  letter-spacing: .04em;
  padding: 4px 0;
  overflow: hidden; white-space: nowrap;
}
/* scrolling chant: two identical groups, slid by one group width for a seamless loop */
.ribbon-track { display: inline-flex; animation: ribbon-scroll 38s linear infinite; }
.ribbon-group { display: inline-flex; flex-shrink: 0; }
.ribbon-chant { padding: 0 2.2rem; }
.top-ribbon:hover .ribbon-track { animation-play-state: paused; }
@keyframes ribbon-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ribbon-track { animation-duration: 120s; }
}
.site-nav {
  background: linear-gradient(90deg, var(--maroon-2), var(--maroon));
  box-shadow: 0 4px 18px rgba(0,0,0,.18);
}
.brand-lamp { font-size: 1.6rem; filter: drop-shadow(0 0 6px rgba(255,170,0,.8)); }
.brand-text { font-family: "Marcellus", serif; font-size: 1.35rem; letter-spacing: .02em; color: #ffe8b0; }
.site-nav .nav-link { color: rgba(255,240,220,.88); }
.site-nav .nav-link:hover, .site-nav .nav-link:focus { color: #fff; }
.site-nav .btn-link.nav-link { text-decoration: none; }
.dropdown-item.active, .dropdown-item:active { background: var(--saffron); }

/* ---------- buttons ---------- */
.btn-saffron { background: linear-gradient(135deg, var(--saffron), var(--saffron-2)); color: #fff; border: 0; font-weight: 600; }
.btn-saffron:hover { background: linear-gradient(135deg, #e86d00, var(--saffron)); color: #fff; }
.btn-gold { background: var(--gold); color: var(--maroon-2); font-weight: 600; border: 0; }
.btn-gold:hover { background: #f0b83a; color: var(--maroon-2); }
.btn-outline-maroon { border: 1.5px solid var(--maroon); color: var(--maroon); background: transparent; }
.btn-outline-maroon:hover { background: var(--maroon); color: #fff; }
.btn-call { background: var(--leaf); color: #fff; font-weight: 600; border: 0; }
.btn-call:hover { background: #267a41; color: #fff; }
.btn-whatsapp { background: #25d366; color: #fff; font-weight: 600; border: 0; }
.btn-whatsapp:hover { background: #1fb457; color: #fff; }
.btn-book { background: var(--gold-soft); color: var(--maroon); border: 1px dashed var(--gold); }
.btn-chip { border: 1.5px solid var(--gold); color: var(--maroon); border-radius: 999px; background: #fff; }
.btn-check:checked + .btn-chip { background: var(--maroon); border-color: var(--maroon); color: #fff; }

/* ---------- chips & search panel ---------- */
.state-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: .9rem;
  text-decoration: none; color: #fff; border: 2px solid rgba(255,255,255,.65);
  transition: transform .15s ease, box-shadow .15s ease;
}
.state-chip:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.state-chip.active { border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.chip-tg { background: #d6336c; }     /* Telangana — pink (Bathukamma) */
.chip-ap { background: #1e6fb8; }     /* Andhra — blue */
.chip-tn { background: #2f8f4e; }     /* Tamil Nadu — green */

.search-panel {
  position: relative; z-index: 2;
  background: rgba(255,255,255,.97); color: var(--ink);
  border-radius: var(--radius); padding: 18px; box-shadow: 0 18px 40px rgba(60,5,15,.3);
  border-top: 5px solid var(--gold);
}
.search-panel .form-label { font-weight: 600; color: var(--maroon); margin-bottom: 4px; }

/* ---------- section headings ---------- */
.section-title {
  display: flex; align-items: center; gap: 8px;
  font-family: "Marcellus", serif; color: var(--maroon); font-size: 1.35rem;
}
body:not(.lang-en) .section-title { font-family: inherit; font-weight: 700; }
.section-title i { color: var(--saffron); }
#results { padding-top: 40px; }

/* ---------- temple cards ---------- */
.temple-card {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); border: 1px solid #f3e3c8;
  transition: transform .2s ease, box-shadow .2s ease;
}
.temple-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(122,20,36,.18); }
.temple-card-img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--gold-soft); }
.temple-card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-state-badge {
  position: absolute; left: 10px; top: 10px; background: rgba(77,11,22,.85); color: #ffe8b0;
  font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px;
}
.temple-card-body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; border-top: 4px solid var(--saffron); }
.temple-card-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 4px; line-height: 1.3; }
.temple-card-title a { color: var(--ink); text-decoration: none; }
.temple-card-title a:hover { color: var(--maroon); }
.temple-card-loc { font-size: .88rem; color: var(--muted); }
.temple-card-loc i { color: var(--saffron); }

.img-placeholder {
  width: 100%; height: 100%; min-height: 180px; display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, #fff3d6, #fff3d6 12px, #ffe7b3 12px, #ffe7b3 24px);
  font-size: 3.5rem;
}
.img-placeholder.big { min-height: 360px; font-size: 6rem; }

.empty-state { background: #fff; border-radius: var(--radius); border: 2px dashed var(--gold); }

.cta-band {
  background: linear-gradient(120deg, var(--maroon), #b51f35 55%, var(--saffron));
  color: #fff; border-radius: var(--radius); padding: 28px 30px; box-shadow: var(--shadow);
}
.cta-band h3 { font-family: "Marcellus", serif; }

/* ---------- page heads ---------- */
.page-head, .temple-hero {
  background: linear-gradient(120deg, var(--maroon-2), var(--maroon) 50%, #c0392b);
  color: #fff; padding: 32px 0 28px; position: relative;
}
.page-head::after, .temple-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 6px;
  background: linear-gradient(90deg, var(--gold), var(--saffron), var(--gold));
}
.page-head h1 { font-family: "Marcellus", serif; font-size: 1.9rem; }
body:not(.lang-en) .page-head h1 { font-family: inherit; font-weight: 700; }
.temple-title { font-family: "Marcellus", serif; font-size: clamp(1.7rem, 4vw, 2.6rem); margin-bottom: 8px; }
body:not(.lang-en) .temple-title { font-family: inherit; font-weight: 700; }
.temple-meta { color: #ffe8c2; font-size: .95rem; }

/* ---------- soft cards ---------- */
.card-soft { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border: 1px solid #f3e3c8; }
.prose { line-height: 1.75; white-space: normal; }

/* ---------- slider ---------- */
.temple-swiper { width: 100%; aspect-ratio: 16 / 10; background: #000; }
.temple-swiper img { width: 100%; height: 100%; object-fit: cover; }
.temple-swiper .swiper-button-prev, .temple-swiper .swiper-button-next { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.temple-swiper .swiper-pagination-bullet-active { background: var(--saffron); }
.temple-thumbs { padding: 8px; background: #fff; }
.temple-thumbs .swiper-slide { width: 90px; height: 64px; opacity: .55; cursor: pointer; border-radius: 8px; overflow: hidden; }
.temple-thumbs .swiper-slide-thumb-active { opacity: 1; outline: 3px solid var(--saffron); }
.temple-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- detail ---------- */
.contact-card { border-top: 5px solid var(--leaf); }
.contact-name { font-size: 1.15rem; font-weight: 700; }
.address-block { display: flex; gap: 10px; background: var(--gold-soft); border-radius: 12px; padding: 12px; font-size: .93rem; }
.address-block i { color: var(--saffron); font-size: 1.2rem; }
.deity-chip { background: var(--gold-soft); border: 1px solid var(--gold); color: var(--maroon); padding: 5px 12px; border-radius: 999px; font-weight: 600; font-size: .88rem; }
.deity-chip.main { background: var(--maroon); color: #ffe8b0; border-color: var(--maroon); }
.map-frame { width: 100%; height: 260px; border: 0; display: block; }
.pooja-table thead th { background: var(--gold-soft); color: var(--maroon); font-size: .85rem; border-bottom: 2px solid var(--gold); }
.review-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; background: #fff8e1; border: 1px solid #ffd54f; border-radius: 12px; padding: 10px 14px; }

/* ---------- wizard ---------- */
.wizard-steps { list-style: none; padding: 0; margin: 0 0 16px; display: flex; gap: 6px; overflow-x: auto; }
.wizard-step-tab {
  flex: 1 0 auto; display: flex; align-items: center; gap: 8px; cursor: pointer;
  background: #fff; border: 1px solid #f0dcb8; border-radius: 999px; padding: 6px 12px 6px 6px; font-size: .85rem; color: var(--muted);
}
.wizard-step-tab .num { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #f4e7d0; font-weight: 700; color: var(--maroon); }
.wizard-step-tab.active { border-color: var(--saffron); color: var(--maroon); font-weight: 600; box-shadow: 0 4px 12px rgba(255,122,0,.18); }
.wizard-step-tab.active .num { background: var(--saffron); color: #fff; }
.wizard-step-tab.done .num { background: var(--leaf); color: #fff; }
.wizard-pane { margin-bottom: 0; }
.wizard-pane legend { float: none; width: auto; }
.wizard.js .wizard-pane { display: none; }
.wizard.js .wizard-pane.active { display: block; }
.wizard:not(.js) .wizard-pane { margin-bottom: 16px; }
.wizard:not(.js) .js-prev, .wizard:not(.js) .js-next { display: none; }
@media (max-width: 767px) { .wizard-step-tab .lbl { display: none; } .wizard-step-tab.active .lbl { display: inline; } }

.pick-map { height: 300px; border-radius: 12px; border: 1px solid #f0dcb8; z-index: 0; }
.pooja-row { padding: 8px 0; border-bottom: 1px dashed #f0dcb8; }
.pooja-row:last-child { border-bottom: 0; }
.upload-drop {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px; cursor: pointer;
  border: 2px dashed var(--gold); border-radius: 14px; background: var(--gold-soft); color: var(--maroon); text-align: center;
}
.upload-drop input { display: none; }
.photo-tile { border-radius: 10px; overflow: hidden; border: 1px solid #f0dcb8; background: #fff; }
.photo-tile img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.photo-tile-actions { display: flex; justify-content: space-between; padding: 6px 8px; }
.preview-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; }
.lang-pills .nav-link { color: var(--maroon); border: 1px solid #f0dcb8; margin-right: 6px; margin-bottom: 6px; }
.lang-pills .nav-link.active { background: var(--maroon); color: #fff; }

.info-pill { background: #fff; border-radius: 14px; padding: 12px 8px; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .85rem; height: 100%; }
.info-pill i { font-size: 1.5rem; color: var(--saffron); }

/* ---------- dashboard / admin ---------- */
.booking-teaser { display: flex; gap: 12px; align-items: center; background: linear-gradient(120deg, #fff3d6, #ffe0b2); }
.booking-teaser i { color: var(--maroon); }
.admin-tabs .nav-link { color: #ffe8c2; border-radius: 999px; }
.admin-tabs .nav-link.active { background: rgba(255,255,255,.18); color: #fff; }
.stat-tile { display: flex; flex-direction: column; align-items: center; padding: 16px; border-radius: var(--radius); color: #fff; text-decoration: none; box-shadow: var(--shadow); }
.stat-tile:hover { color: #fff; opacity: .92; }
.stat-tile .num { font-size: 2rem; font-weight: 700; line-height: 1; }
.stat-pending { background: linear-gradient(135deg, #f59f00, #ff7a00); }
.stat-approved { background: linear-gradient(135deg, #2f8f4e, #40a65f); }
.stat-rejected { background: linear-gradient(135deg, #a3172b, #d6336c); }
.pending-thumb { width: 72px; height: 54px; border-radius: 8px; overflow: hidden; background: var(--gold-soft); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; }
.pending-thumb img { width: 100%; height: 100%; object-fit: cover; }
.district-pill { background: var(--gold-soft); color: var(--maroon); font-weight: 500; }

/* ---------- pagination ---------- */
.pagination .page-link { color: var(--maroon); }
.pagination .page-item.active .page-link { background: var(--maroon); border-color: var(--maroon); color: #fff; }

/* ---------- footer ---------- */
.site-footer { background: var(--black); color: #f6e7d2; }
.kolam-border {
  height: 14px;
  background:
    radial-gradient(circle at 7px 7px, var(--gold) 3px, transparent 3.5px) 0 0 / 14px 14px,
    linear-gradient(90deg, var(--saffron), var(--maroon), var(--saffron));
}
.footer-brand { font-family: "Marcellus", serif; font-size: 1.3rem; color: #ffe8b0; }

@media (max-width: 575px) {
  .card-soft { padding: 16px; }
  .cta-band { padding: 22px 18px; }
}

/* ---------- booking ---------- */
.text-maroon { color: var(--maroon) !important; }
.summary-card { border-top: 5px solid var(--gold); position: sticky; top: 90px; }
.receipt { border-top: 6px solid var(--leaf); }
.receipt-table th { width: 40%; color: var(--muted); font-weight: 600; font-size: .9rem; }
@media print {
  .top-ribbon, .site-nav, .site-footer, .alert-dismissible { display: none !important; }
  body { background: #fff; }
  .card-soft { box-shadow: none; border: 1px solid #ccc; }
}

/* ---------- home masthead: title over an embossed Ayyappa relief ---------- */
.masthead {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  padding: calc(var(--nav-h, 66px) + 92px) 0 36px;
  background: radial-gradient(ellipse 60% 95% at 50% 36%, #b8641c 0%, #8a2a1c 30%, #6d1222 58%, #2e060d 100%);
}
/* slide under the transparent nav; --nav-h is measured by app.js so long names in any language still fit */
body.page-home .masthead { margin-top: calc(-1 * var(--nav-h, 66px)); }
.masthead-bg { position: absolute; inset: 0; }
/* the photo, embossed by hero_emboss() and blended in like a carving in the background — texture, not a picture */
.masthead-relief {
  position: absolute; left: 50%; top: calc(var(--nav-h, 66px) - 30px);
  height: 190%; aspect-ratio: 621 / 879; transform: translateX(-50%);
  background: var(--relief-img) center top / cover no-repeat;
  mix-blend-mode: overlay; opacity: .62;
  -webkit-mask-image: radial-gradient(ellipse 52% 46% at 50% 30%, #000 45%, transparent 78%);
          mask-image: radial-gradient(ellipse 52% 46% at 50% 30%, #000 45%, transparent 78%);
}
.masthead-content { position: relative; z-index: 2; }
.masthead-title {
  font-family: "Marcellus", serif; font-weight: 400;
  font-size: clamp(1.7rem, 4.2vw, 3.2rem); line-height: 1.15; margin: 0 auto 12px; max-width: 920px;
  background: linear-gradient(180deg, #fff8dc 0%, #f7d774 42%, #e0a526 68%, #fff0bd 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  /* raised-gold look to match the embossed background */
  filter: drop-shadow(0 2px 0 rgba(70,12,12,.6)) drop-shadow(0 8px 20px rgba(0,0,0,.45));
}
body:not(.lang-en) .masthead-title { font-family: inherit; font-weight: 800; }
.masthead .divine-divider { margin-bottom: 24px; }
.masthead .search-panel.masthead-search { text-align: left; max-width: 1120px; margin: 0 auto; }

/* keep brand + menu button on one line on phones */
.site-nav .navbar-brand { min-width: 0; flex: 1 1 0; margin-right: .5rem; }
.site-nav .brand-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 991px) { .site-nav .brand-text { font-size: clamp(.98rem, 4.3vw, 1.3rem); } }
@media (min-width: 992px) { .site-nav .navbar-brand { flex: 0 1 auto; } }

/* rising diya sparks (drawn by app.js) */
.hero-sparks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }

/* marigold + mango-leaf thoranam hanging under the menu */
.hero-thoranam {
  position: absolute; left: 0; right: 0; top: var(--nav-h, 66px); height: 72px; z-index: 1; pointer-events: none;
  background: url('../img/thoranam.svg') repeat-x center top / 200px 72px;
  filter: drop-shadow(0 4px 4px rgba(0,0,0,.45));
  animation: thoranamSway 7s ease-in-out infinite alternate;
}
@keyframes thoranamSway { from { transform: translateY(0); } to { transform: translateY(2px); } }

/* gold lotus divider */
.divine-divider { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 auto 18px; max-width: 520px; }
.divine-divider::before, .divine-divider::after { content: ""; flex: 1; height: 1px; }
.divine-divider::before { background: linear-gradient(90deg, transparent, #e0a526); }
.divine-divider::after  { background: linear-gradient(90deg, #e0a526, transparent); }

/* nav floats transparently over the masthead, turns solid on scroll */
.site-nav.nav-over-hero { background: transparent; box-shadow: none; transition: background .25s ease, box-shadow .25s ease; }
.site-nav.nav-over-hero.scrolled, .site-nav.nav-over-hero.menu-open {
  background: linear-gradient(90deg, var(--maroon-2), var(--maroon)); box-shadow: 0 4px 18px rgba(0,0,0,.18);
}

@media (max-width: 991px) {
  .masthead { padding-top: calc(var(--nav-h, 66px) + 64px); padding-bottom: 24px; }
  .masthead-relief { height: 150%; }
  .hero-thoranam { height: 54px; background-size: 150px 54px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-thoranam { animation: none; }
  .hero-sparks { display: none; }
}

/* smaller thoranam on inner page headers (temple page, booking, dashboard…) */
.page-head, .temple-hero { padding-top: 58px; overflow: hidden; }
.page-head::before, .temple-hero::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 46px; pointer-events: none;
  background: url('../img/thoranam.svg') repeat-x center top / 128px 46px;
  filter: drop-shadow(0 3px 3px rgba(0,0,0,.35));
}
.page-head > .container, .temple-hero > .container { position: relative; }
.temple-hero { background:
  radial-gradient(circle at 85% 0%, rgba(255,200,90,.35), transparent 45%),
  linear-gradient(120deg, var(--maroon-2), var(--maroon) 50%, #c0392b); }

/* ---------- Ayyappa medallions in the masthead ---------- */
.medallion { position: relative; width: 158px; height: 158px; z-index: 2; }
.medallion span {
  position: absolute; inset: 14px; border-radius: 50%;
  background-repeat: no-repeat; background-size: 270% auto; background-position: 50% 21%;   /* face + crown */
  border: 3px solid #e0a526;
  box-shadow: 0 0 0 4px rgba(90,14,24,.95), 0 0 0 6px #f7d774, 0 0 36px 10px rgba(255,190,60,.45);
}
/* turning ring of golden rays, like the prabha around a deity */
.medallion::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: repeating-conic-gradient(#f7d774 0deg 3deg, transparent 3deg 10deg);
  -webkit-mask-image: radial-gradient(circle, transparent 60%, #000 61%, #000 69%, transparent 70%);
          mask-image: radial-gradient(circle, transparent 60%, #000 61%, #000 69%, transparent 70%);
  opacity: .85; animation: medallionSpin 70s linear infinite;
}
@keyframes medallionSpin { to { transform: rotate(360deg); } }
.medallion-left  { position: absolute; left: 0;  top: -10px; }
.medallion-right { position: absolute; right: 0; top: -10px; }
.medallion-top   { width: 116px; height: 116px; margin: -8px auto 10px; }
.medallion-top span { inset: 10px; }

/* SWAMIYE SARANAM AYYAPPA under the title */
.masthead-chant {
  font-family: "Marcellus", serif; font-weight: 700; text-transform: uppercase;
  letter-spacing: .18em; font-size: clamp(1rem, 2.1vw, 1.45rem); margin: 0 auto 14px;
  background: linear-gradient(100deg, #e0a526 0%, #f7d774 30%, #fffbe6 40%, #f7d774 50%, #e0a526 70%, #ffb347 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: chantShimmer 7s ease-in-out infinite;
  filter: drop-shadow(0 1px 0 rgba(60,10,10,.6)) drop-shadow(0 0 12px rgba(255,180,50,.35));
}
body:not(.lang-en) .masthead-chant { font-family: inherit; letter-spacing: .06em; }
@keyframes chantShimmer { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }

/* ---------- darshan section: framed Ayyappa + chant in four scripts ---------- */
.darshan-band {
  position: relative; overflow: hidden; color: #fff; border-radius: 22px; padding: 30px;
  background:
    radial-gradient(circle at 18% 50%, rgba(255,190,80,.35), transparent 38%),
    radial-gradient(ellipse 80% 120% at 60% 40%, #8a2a1c 0%, #5c0f1d 55%, #2e060d 100%);
  border: 2px solid rgba(224,165,38,.6);
  box-shadow: 0 16px 40px rgba(77,11,22,.28), inset 0 0 0 6px rgba(224,165,38,.08);
}
.darshan-frame {
  display: inline-block; width: 100%; max-width: 230px; aspect-ratio: 621 / 879;
  border-radius: 50% 50% 14px 14px / 30% 30% 14px 14px;     /* temple-arch shape */
  overflow: hidden; border: 4px solid #e0a526;
  box-shadow: 0 0 0 5px rgba(90,14,24,.9), 0 0 0 7px #f7d774, 0 0 46px 12px rgba(255,190,60,.38);
  animation: darshanGlow 5s ease-in-out infinite alternate;
}
.darshan-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes darshanGlow {
  from { box-shadow: 0 0 0 5px rgba(90,14,24,.9), 0 0 0 7px #f7d774, 0 0 30px 6px rgba(255,190,60,.28); }
  to   { box-shadow: 0 0 0 5px rgba(90,14,24,.9), 0 0 0 7px #f7d774, 0 0 56px 16px rgba(255,200,80,.5); }
}
.darshan-chant {
  font-family: "Marcellus", serif; text-transform: uppercase; letter-spacing: .12em; line-height: 1.15;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem); margin-bottom: 8px;
  background: linear-gradient(180deg, #fff8dc 0%, #f7d774 45%, #e0a526 75%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(60,10,10,.55));
}
.darshan-scripts { color: #f7d774; font-size: 1.05rem; font-weight: 600; line-height: 1.9; }
.darshan-scripts span[lang] { white-space: nowrap; }
.darshan-scripts .sep { color: #e0a526; opacity: .7; margin: 0 .55em; font-size: .8em; }
.darshan-rule { border-color: rgba(224,165,38,.5); opacity: 1; margin: 18px 0; }

.footer-chant {
  font-family: "Marcellus", serif; text-transform: uppercase; letter-spacing: .14em; font-size: 1.05rem;
  color: #f7d774; margin-bottom: 6px; text-shadow: 0 0 12px rgba(255,180,50,.35);
}
body:not(.lang-en) .footer-chant { font-family: inherit; letter-spacing: .04em; }

@media (prefers-reduced-motion: reduce) {
  .medallion::before, .masthead-chant, .darshan-frame { animation: none; }
}

/* ---------- temple music toggle (bottom-left) ---------- */
.music-toggle {
  position: fixed; left: 16px; bottom: 16px; z-index: 1050;
  width: 46px; height: 46px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: #f7d774; cursor: pointer;
  background: radial-gradient(circle at 35% 30%, #8a2a1c, #4d0b16);
  border: 2px solid #e0a526; box-shadow: 0 6px 18px rgba(0,0,0,.3);
  transition: transform .15s ease;
}
.music-toggle:hover { transform: scale(1.06); }
.music-toggle:focus-visible { outline: 3px solid #f7d774; outline-offset: 3px; }
.music-toggle.on { box-shadow: 0 6px 18px rgba(0,0,0,.3), 0 0 0 0 rgba(247,215,116,.6); animation: musicPulse 2.4s ease-out infinite; }
@keyframes musicPulse { 0% { box-shadow: 0 6px 18px rgba(0,0,0,.3), 0 0 0 0 rgba(247,215,116,.55); } 100% { box-shadow: 0 6px 18px rgba(0,0,0,.3), 0 0 0 14px rgba(247,215,116,0); } }
@media (prefers-reduced-motion: reduce) { .music-toggle.on { animation: none; } }
@media print { .music-toggle { display: none; } }
