/* Temple Yatra — public site
   Palette: kavi red (temple wall stripes), marigold, banana-leaf green, granite */
:root {
  --kavi: #a3162b;
  --kavi-dk: #7a0f1f;
  --marigold: #f2a007;
  --marigold-lt: #fff3d6;
  --leaf: #2f6b3a;
  --granite: #23262b;
  --stone: #5c6068;
  --line: #dfe1e4;
  --mist: #eef0f2;
  --wall: #ffffff;
  --radius: 6px;
  --wrap: 1180px;
  --display: "Yatra One", "Hind", serif;
  --body: "Hind", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--wall); color: var(--granite); font: 400 1.0625rem/1.65 var(--body); }
img { max-width: 100%; display: block; }
a { color: var(--kavi); text-underline-offset: 3px; }
a:hover { color: var(--kavi-dk); }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
h1, h2, .h2 { font-family: var(--display); font-weight: 400; letter-spacing: .005em; }
h2, .h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
h3, .h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 680px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--granite); color: #fff; padding: .6rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; }
.small { font-size: .9rem; }
.muted { color: var(--stone); }
.lead { font-size: 1.2rem; color: var(--stone); max-width: 60ch; }
.note { background: var(--marigold-lt); padding: .6rem .9rem; border-radius: var(--radius); }

/* ---------- Kavi stripes: the red-and-white temple wall ---------- */
.kavi { height: 12px; background: repeating-linear-gradient(90deg, var(--kavi) 0 26px, #fff 26px 52px); border-top: 3px solid var(--granite); }
.kavi-thin { height: 8px; border-top-width: 2px; }
.kavi-tall { height: 56px; border-top: 6px solid var(--granite); background: repeating-linear-gradient(90deg, var(--kavi) 0 34px, #fff 34px 68px); }

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 1000; background: var(--wall); }
.head-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--granite); font: 1.55rem/1 var(--display); }
.brand-mark { width: 34px; height: 34px; color: var(--kavi); }
.site-nav { display: flex; gap: .25rem; }
.site-nav a { color: var(--granite); text-decoration: none; padding: .45rem .8rem; border-radius: var(--radius); font-weight: 500; }
.site-nav a:hover { background: var(--mist); }
.site-nav a[aria-current="page"] { background: var(--marigold-lt); color: var(--kavi-dk); }
.nav-toggle { display: none; background: none; border: 2px solid var(--granite); border-radius: var(--radius); padding: .35rem .8rem; font: 600 .95rem var(--body); color: var(--granite); }
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; background: #fff; padding: .5rem 1.25rem 1rem; border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .75rem .5rem; }
}

/* ---------- Buttons, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; background: var(--kavi); color: #fff; border: 2px solid var(--kavi); padding: .65rem 1.15rem; border-radius: var(--radius); font: 600 1rem/1.2 var(--body); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--kavi-dk); border-color: var(--kavi-dk); color: #fff; }
.btn-ghost { background: transparent; color: var(--kavi); }
.btn-ghost:hover { background: var(--marigold-lt); color: var(--kavi-dk); }
.btn-light { background: #fff; color: var(--granite); border-color: #fff; }
.btn-light:hover { background: var(--marigold-lt); color: var(--granite); border-color: var(--marigold-lt); }
.btn-go { background: var(--leaf); border-color: var(--leaf); width: 100%; }
.btn-go:hover { background: #24532d; border-color: #24532d; }
.btn:disabled { opacity: .6; cursor: wait; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1rem 0; }
.chip { display: inline-block; background: #fff; border: 1.5px solid var(--line); color: var(--granite); text-decoration: none; padding: .3rem .8rem; border-radius: 99px; font: 500 .92rem/1.4 var(--body); cursor: pointer; }
.chip:hover { border-color: var(--marigold); color: var(--granite); }
.chip.on { background: var(--marigold); border-color: var(--marigold); color: var(--granite); }
.chip.clear { border-style: dashed; }

/* ---------- Search box ---------- */
.search-box { position: relative; display: flex; gap: .5rem; max-width: 640px; background: #fff; border: 2px solid var(--granite); border-radius: var(--radius); padding: .35rem; }
.search-box input, .search-box select { flex: 1; min-width: 0; border: 0; font: 400 1.1rem var(--body); padding: .55rem .7rem; background: transparent; color: var(--granite); }
.search-box input:focus, .search-box select:focus { outline: none; }
.search-box:focus-within { box-shadow: 0 0 0 3px var(--marigold); }
.search-box button { background: var(--kavi); color: #fff; border: 0; border-radius: 4px; padding: 0 1.3rem; font: 600 1.05rem var(--body); cursor: pointer; }
.search-box button:hover { background: var(--kavi-dk); }
.search-inline { max-width: 820px; }
.search-inline select { flex: 0 0 auto; max-width: 40%; border-left: 1px solid var(--line); }
.suggest { position: absolute; left: -2px; right: -2px; top: calc(100% + 4px); margin: 0; padding: .3rem 0; list-style: none; background: #fff; border: 2px solid var(--granite); border-radius: var(--radius); z-index: 50; }
.suggest a { display: flex; flex-direction: column; padding: .45rem .9rem; text-decoration: none; color: var(--granite); }
.suggest a span { font-size: .88rem; color: var(--stone); }
.suggest li[aria-selected="true"] a, .suggest a:hover { background: var(--marigold-lt); }
.suggest .sg-all a { border-top: 1px solid var(--line); color: var(--kavi); font-weight: 500; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(2rem, 6vw, 4.5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; align-items: end; gap: 2rem; }
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); line-height: 1.02; margin-bottom: .3em; max-width: 12ch; }
.hero .lead { margin-bottom: 1.5rem; }
.hero-note { font-size: .95rem; color: var(--stone); margin-bottom: 2.5rem; }
.hero-art { display: flex; justify-content: center; align-self: end; }
.gopuram { width: min(100%, 330px); color: var(--kavi); display: block; margin-bottom: -1px; }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .search-box button { padding: 0 .9rem; }
}

/* ---------- Blocks ---------- */
.block { padding-block: clamp(2.2rem, 5vw, 3.5rem); }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.block-head h2, .block-head .h2 { margin: 0; }
.block-head a { font-weight: 500; }
.count { color: var(--stone); }
.band-stone { background: var(--mist); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.6rem 1.25rem; }
.card { display: block; text-decoration: none; color: var(--granite); }
.card-img { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; position: relative;
  background: repeating-linear-gradient(90deg, #f1d6da 0 18px, #fbf0f1 18px 36px); }
.card-img img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s ease, transform .5s ease; }
.card-img.loaded img, .card-img img[src]:not([data-wait]) { opacity: 1; }
.card-img.noimg::after { content: ""; position: absolute; inset: 30% 38%; background: var(--kavi); opacity: .5;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 3l3 5h-6zM14 10h12l2 6H12zM10 18h20l3 8H7zM5 28h30v9H5z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 3l3 5h-6zM14 10h12l2 6H12zM10 18h20l3 8H7zM5 28h30v9H5z'/%3E%3C/svg%3E") center/contain no-repeat; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { display: block; padding-top: .65rem; }
.card-title { display: block; font-weight: 600; font-size: 1.08rem; line-height: 1.3; }
.card:hover .card-title { color: var(--kavi); }
.card-meta { display: block; color: var(--stone); font-size: .93rem; margin-top: .15rem; }

/* ---------- Jyotirlinga list ---------- */
.jyotir { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0; counter-reset: j; border-top: 2px solid var(--granite); }
.jyotir li { counter-increment: j; border-bottom: 1px solid #cfd3d8; }
.jyotir a { display: grid; grid-template-columns: 2.4rem 1fr; padding: .8rem .4rem; text-decoration: none; color: var(--granite); }
.jyotir a::before { content: counter(j); grid-row: span 2; font: 1.6rem/1 var(--display); color: var(--kavi); }
.jyotir strong { font-weight: 600; }
.jyotir span { color: var(--stone); font-size: .9rem; }
.jyotir a:hover strong { color: var(--kavi); }

/* ---------- States ---------- */
.states { list-style: none; padding: 0; margin: 0; columns: 3 220px; column-gap: 2rem; }
.states li { break-inside: avoid; }
.states a { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--granite); }
.states a:hover span { color: var(--kavi); }
.states b { font-weight: 500; color: var(--stone); }

/* ---------- How it works ---------- */
.how h2 { margin-bottom: 1.2rem; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: s; }
.steps li { counter-increment: s; border-top: 4px solid var(--marigold); padding-top: .9rem; }
.steps li::before { content: "Step " counter(s); display: block; color: var(--stone); font-size: .9rem; }
.steps b { display: block; font: 1.35rem/1.25 var(--display); font-weight: 400; margin: .1rem 0 .4rem; }
.steps span { color: var(--stone); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Wikipedia call-to-action ---------- */
.wiki-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-top: 2.5rem; padding: 1.4rem 1.6rem; background: var(--mist); border-left: 6px solid var(--marigold); border-radius: var(--radius); }
.wiki-cta p { margin: 0; color: var(--stone); }
.empty { text-align: left; }

/* ---------- Temple page ---------- */
.t-hero { position: relative; min-height: 260px; display: flex; align-items: flex-end; color: var(--granite); background: var(--mist); }
.t-hero.has-img { min-height: clamp(360px, 62vh, 620px); color: #fff; background: var(--granite); }
.t-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.t-hero.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 16, 14, .86) 0%, rgba(20, 16, 14, .45) 45%, rgba(20, 16, 14, .05) 75%); }
.t-hero-text { position: relative; z-index: 2; padding-block: 2.2rem; }
.t-hero h1 { font-size: clamp(2rem, 4.8vw, 3.6rem); max-width: 20ch; margin-bottom: .2em; }
.t-deity { font-size: 1.25rem; font-weight: 500; margin: 0; }
.t-place { margin: .1rem 0 1.2rem; opacity: .9; }
.t-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.crumbs { font-size: .92rem; margin-bottom: .6rem; opacity: .95; }
.crumbs a { color: inherit; }
.credit { position: absolute; z-index: 2; right: .8rem; bottom: .4rem; margin: 0; font-size: .75rem; color: rgba(255, 255, 255, .8); }
.credit a { color: inherit; }
.t-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 3rem; padding-block: 2.5rem; }
.t-main { max-width: 72ch; }
.t-lead { font-size: 1.28rem; line-height: 1.55; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.t-sec { margin-top: 2.4rem; }
.t-sec h2 { padding-bottom: .3rem; border-bottom: 2px solid var(--granite); }
.t-sec h3 { margin-top: 1.5rem; }
.fest { padding-left: 1.2rem; }
.fest li { margin-bottom: .3rem; }
.fest li::marker { color: var(--marigold); }
.wiki-more { margin-top: 1rem; }
.wiki-more-body { margin-top: 1.2rem; padding-left: 1.1rem; border-left: 3px solid var(--marigold); }
.t-side .info { position: sticky; top: 90px; background: var(--marigold-lt); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.info dl, .reach dl { margin: 0; }
.info dt, .reach dt { font-weight: 600; margin-top: .9rem; }
.info dt:first-child, .reach dt:first-child { margin-top: 0; }
.info dd, .reach dd { margin: .1rem 0 0; }
@media (max-width: 900px) {
  .t-grid { grid-template-columns: 1fr; gap: 1rem; }
  .t-side { order: -1; }
  .t-side .info { position: static; }
}

/* ---------- Gallery & lightbox ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .7rem; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.gallery figcaption { font-size: .72rem; color: var(--stone); margin-top: .2rem; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(15, 12, 10, .94); display: flex; align-items: center; justify-content: center; padding: 3rem 3.5rem; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 82vh; max-width: 100%; border-radius: 4px; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; padding: .5rem .8rem; }
.lb-close { top: .5rem; right: .7rem; }
.lb-prev { left: .3rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .3rem; top: 50%; transform: translateY(-50%); }
.lb-cap { position: absolute; bottom: .8rem; left: 1rem; right: 1rem; color: #ddd; text-align: center; font-size: .9rem; margin: 0; }

/* ---------- Route ---------- */
.route-sec { background: var(--mist); padding-block: 2.5rem 3rem; scroll-margin-top: 70px; }
.route-grid { display: grid; grid-template-columns: 360px 1fr; gap: 1.5rem; align-items: start; }
.route-panel { background: #fff; border-radius: var(--radius); padding: 1.3rem; }
.route-form label { font-weight: 600; display: block; margin-bottom: .35rem; }
.from-row { display: flex; gap: .4rem; margin-bottom: .6rem; }
.from-row input { flex: 1; min-width: 0; font: 1rem var(--body); padding: .6rem .7rem; border: 2px solid var(--granite); border-radius: var(--radius); }
.locate { width: 100%; }
.route-result:not(:empty) { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.route-result.warn p { color: var(--kavi-dk); }
.route-sum { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: .4rem; }
.route-sum div { background: #e9f1ea; border-radius: var(--radius); padding: .6rem .8rem; }
.route-sum b { display: block; font: 1.5rem/1.2 var(--display); color: var(--leaf); font-weight: 400; }
.route-sum span { font-size: .85rem; color: var(--stone); }
.steps-list { margin-top: .8rem; }
.steps-list summary { cursor: pointer; font-weight: 600; color: var(--leaf); }
.steps-list ol { padding-left: 1.3rem; max-height: 320px; overflow: auto; font-size: .93rem; }
.steps-list li { margin: .35rem 0; }
.steps-list li span { color: var(--stone); white-space: nowrap; }
.reach { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.reach h3 { margin-bottom: .6rem; }
.map { height: 520px; border-radius: var(--radius); background: #dde3e7; z-index: 1; }
.map-missing { padding: 2rem; }
@media (max-width: 900px) { .route-grid { grid-template-columns: 1fr; } .map { height: 380px; } }

/* map pins (temple = kavi red drop with marigold dot) */
.pin { background: none; border: 0; }
.pin-temple span { display: block; width: 30px; height: 30px; background: var(--kavi); border: 3px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.pin-temple span::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--marigold); }
.pin-sm span { width: 22px; height: 22px; border-width: 2px; }
.pin-sm span::after { inset: 5px; }
.pin-start span { display: block; width: 22px; height: 22px; border-radius: 50%; background: var(--leaf); border: 4px solid #fff; box-shadow: 0 0 0 2px var(--leaf); }

/* ---------- Big map page ---------- */
.map-page { display: grid; grid-template-columns: 360px 1fr; height: calc(100vh - 79px); min-height: 520px; }
.map-side { overflow: auto; padding: 1.4rem 1.2rem; border-right: 1px solid var(--line); }
.map-filters input, .map-filters select { width: 100%; font: 1rem var(--body); padding: .55rem .7rem; border: 2px solid var(--granite); border-radius: var(--radius); margin-bottom: .5rem; background: #fff; }
.map-list { list-style: none; padding: 0; margin: 0; }
.map-list button { all: unset; box-sizing: border-box; display: block; width: 100%; padding: .55rem .3rem; border-bottom: 1px solid var(--line); cursor: pointer; }
.map-list button:hover b, .map-list button:focus-visible b { color: var(--kavi); }
.map-list button:focus-visible { outline: 3px solid var(--marigold); }
.map-list span { display: block; font-size: .88rem; color: var(--stone); }
.bigmap { height: 100%; z-index: 1; }
@media (max-width: 820px) {
  .map-page { grid-template-columns: 1fr; height: auto; }
  .bigmap { height: 60vh; order: -1; }
  .map-side { border: 0; max-height: none; }
}

/* ---------- Forms (contact) ---------- */
.form label { display: block; font-weight: 600; margin: 1rem 0 .3rem; }
.form input, .form textarea { width: 100%; font: 1rem var(--body); padding: .6rem .7rem; border: 2px solid var(--granite); border-radius: var(--radius); }
.form .btn { margin-top: 1.2rem; }
.hp { position: absolute; left: -9999px; }
.ok-box { background: #e6f2e8; color: var(--leaf); padding: 1rem; border-radius: var(--radius); }
.err-box { background: #fbe9ea; color: var(--kavi-dk); padding: 1rem; border-radius: var(--radius); }

/* ---------- Footer ---------- */
.site-foot { margin-top: 3rem; background: var(--granite); color: #d8dadd; }
.site-foot .kavi { border-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: 2rem; padding-block: 2.5rem 1.5rem; }
.foot-brand { font: 1.6rem/1 var(--display); color: #fff; }
.foot-h { color: #fff; font-weight: 600; margin-bottom: .5rem; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin: .25rem 0; }
.site-foot a { color: var(--marigold); }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding-block: 1rem 1.6rem; border-top: 1px solid #3a3e45; font-size: .9rem; color: #a5a9b0; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.leaflet-container { font: inherit; }
.gallery > p { grid-column: 1 / -1; }

/* =====================================================================
   v2 — logo, motion, pilgrim tools
   ===================================================================== */
.brand { gap: .6rem; }
.brand-logo { width: 44px; height: 44px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text small { font: 500 .78rem/1.2 var(--body); color: var(--kavi); letter-spacing: .01em; margin-top: .2rem; }
.brand:hover .ty-rays { animation: spin 6s linear infinite; }
.ty-rays { transform-origin: 32px 23px; }
@keyframes spin { to { transform: rotate(360deg); } }
.site-nav .yathra-link { position: relative; }
.badge-n { display: inline-grid; place-items: center; min-width: 1.3rem; height: 1.3rem; padding: 0 .3rem; margin-left: .25rem; border-radius: 99px; background: var(--kavi); color: #fff; font-size: .75rem; font-weight: 600; }
.badge-n[hidden] { display: none; }

/* marching temple-wall stripes */
.kavi { background-size: 52px 100%; animation: march 3.5s linear infinite; }
.kavi-tall { background-size: 68px 100%; }
@keyframes march { to { background-position: 52px 0; } }

/* ---------- Preloader ---------- */
#ty-preloader { position: fixed; inset: 0; z-index: 5000; display: grid; place-items: center; background: radial-gradient(circle at 50% 70%, #f7b733 0, #e8590c 18%, #a3162b 45%, #3b0a12 100%); transition: opacity .6s, visibility .6s; }
#ty-preloader.done { opacity: 0; visibility: hidden; }
.pre-wrap { text-align: center; color: #fff; }
.pre-wrap svg { width: 140px; height: 140px; }
.pre-wrap p { font: 1.6rem var(--display); margin: .6rem 0 0; opacity: 0; }
#ty-preloader.run .pre-sun { animation: rise 1.1s cubic-bezier(.2, .8, .2, 1) both; }
#ty-preloader.run .pre-tier { animation: stack .5s cubic-bezier(.2, .8, .2, 1) both; }
#ty-preloader.run .pre-tier:nth-child(5) { animation-delay: .15s; } #ty-preloader.run .pre-tier:nth-child(4) { animation-delay: .3s; }
#ty-preloader.run .pre-tier:nth-child(3) { animation-delay: .45s; } #ty-preloader.run .pre-tier:nth-child(2) { animation-delay: .6s; } #ty-preloader.run .pre-tier:nth-child(1) { animation-delay: .75s; }
#ty-preloader.run p { animation: fadeUp .6s .8s both; }
@keyframes rise { from { transform: translateY(26px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes stack { from { transform: translateY(-14px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeUp { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Hero: darshan reel ---------- */
.hero-reel { position: relative; overflow: hidden; color: #fff; min-height: min(86vh, 760px); display: flex; flex-direction: column; justify-content: flex-end;
  background: radial-gradient(ellipse at 70% 85%, #f7b733 0, #e8590c 16%, #a3162b 42%, #3b0a12 85%); }
.reel-stage { position: absolute; inset: 0; }
.reel-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; transform: scale(1.08); }
.reel-img.on { opacity: 1; animation: kb0 8s ease-out both; }
.reel-img.on.k1 { animation-name: kb1; } .reel-img.on.k2 { animation-name: kb2; } .reel-img.on.k3 { animation-name: kb3; }
@keyframes kb0 { from { transform: scale(1.18) translate(2%, 1%); } to { transform: scale(1.04) translate(0, 0); } }
@keyframes kb1 { from { transform: scale(1.04) translate(-2%, 0); } to { transform: scale(1.16) translate(1%, -1%); } }
@keyframes kb2 { from { transform: scale(1.15) translate(0, -2%); } to { transform: scale(1.03) translate(-1%, 1%); } }
@keyframes kb3 { from { transform: scale(1.05) translate(1%, 2%); } to { transform: scale(1.17) translate(-2%, 0); } }
.hero-reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25, 8, 10, .82) 0%, rgba(25, 8, 10, .55) 45%, rgba(25, 8, 10, .1) 80%), linear-gradient(0deg, rgba(25, 8, 10, .75) 0%, rgba(25, 8, 10, 0) 35%); pointer-events: none; }
.hero-reel .petals { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.reel-art { position: absolute; right: 6%; bottom: 0; width: min(36vw, 420px); z-index: 1; transition: opacity 1s; }
.reel-art .gopuram { color: #2a0a0f; width: 100%; }
.reel-art .sunrise { position: absolute; left: 50%; bottom: 38%; width: 70%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, #ffe08a 0, #f7b733 45%, rgba(247, 183, 51, 0) 70%); animation: sunrise 4s ease-out both, glow 5s 4s ease-in-out infinite alternate; }
@keyframes sunrise { from { transform: translate(-50%, 45%); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@keyframes glow { to { filter: brightness(1.15); transform: translate(-50%, -3%) scale(1.04); } }
.hero-reel.has-photos .reel-art { opacity: 0; }
.hero-reel .wrap { position: relative; z-index: 3; width: min(var(--wrap), 100% - 2.5rem); }
.hero-reel .hero-copy { padding: clamp(5rem, 14vh, 9rem) 0 2rem; max-width: 640px; }
.hero-reel h1 { font-size: clamp(2.8rem, 6.6vw, 5rem); line-height: 1; margin-bottom: .35em; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); animation: fadeUp .9s .2s both; }
.hero-reel .lead { color: rgba(255, 255, 255, .9); animation: fadeUp .9s .35s both; }
.hero-reel .search-box { border-color: #fff; box-shadow: 0 10px 40px rgba(0, 0, 0, .35); animation: fadeUp .9s .5s both; }
.hero-reel .chips { animation: fadeUp .9s .65s both; }
.hero-reel .chip { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35); color: #fff; backdrop-filter: blur(4px); }
.hero-reel .chip:hover { background: var(--marigold); border-color: var(--marigold); color: var(--granite); }
.hero-reel .hero-note { color: rgba(255, 255, 255, .8); }
.hero-reel .hero-note a { color: #ffd77a; }
.reel-ui { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; padding-bottom: 1.4rem; flex-wrap: wrap; }
.reel-cap { min-height: 3.2rem; opacity: 0; }
.reel-cap.show { animation: fadeUp .7s both; }
.reel-cap span { display: block; font-size: .8rem; color: #ffd77a; }
.reel-cap a { color: #fff; font: 1.35rem/1.2 var(--display); text-decoration: none; }
.reel-cap a:hover { text-decoration: underline; }
.reel-cap small { display: block; opacity: .8; }
.reel-ctrl { display: flex; align-items: center; gap: .8rem; }
.reel-bars { display: flex; gap: 5px; }
.reel-bars span { width: 34px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .3); overflow: hidden; cursor: pointer; }
.reel-bars i { display: block; height: 100%; width: 0; background: #fff; }
.reel-bars .done i { width: 100%; }
.reel-bars .now i { animation: bar linear forwards; }
@keyframes bar { to { width: 100%; } }
.reel-play { width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); background: rgba(0, 0, 0, .25); color: #fff; cursor: pointer; display: grid; place-items: center; }
.reel-play::before { content: ""; width: 10px; height: 12px; border-left: 3px solid #fff; border-right: 3px solid #fff; box-sizing: border-box; }
.reel-play[aria-pressed="true"]::before { width: 0; height: 0; border: 0; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.hero-reel:not(.has-photos) .reel-ui { visibility: hidden; }
@media (max-width: 820px) { .reel-art { opacity: .35; width: 70vw; right: -10vw; } .reel-bars span { width: 18px; } .hero-reel .hero-copy { padding-top: 3.5rem; } }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-block: 2rem 0; }
.stats div { border-left: 4px solid var(--marigold); padding: .2rem 0 .2rem 1rem; }
.stats b { display: block; font: 2.6rem/1 var(--display); font-weight: 400; color: var(--kavi); }
.stats span { color: var(--stone); }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- Scroll reveal ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.rv.in { opacity: 1; transform: none; }
.card { transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.card:hover { transform: translateY(-4px); }
.card-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .5) 50%, transparent 60%); background-size: 250% 100%; animation: shimmer 1.6s linear infinite; z-index: 1; }
.card-img.loaded::before, .card-img.noimg::before { display: none; }
@keyframes shimmer { from { background-position: 130% 0; } to { background-position: -30% 0; } }
.card-img img { z-index: 2; position: relative; }

/* ---------- Circuits ---------- */
.circuits { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; }
.circuit-card { display: grid; grid-template-rows: 170px auto; text-decoration: none; color: var(--granite); background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); transition: transform .35s, box-shadow .35s; }
.circuit-card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(35, 38, 43, .14); color: var(--granite); }
.cc-img { position: relative; background: repeating-linear-gradient(90deg, #f1d6da 0 18px, #fbf0f1 18px 36px); overflow: hidden; }
.cc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 6s ease; }
.circuit-card:hover .cc-img img { transform: scale(1.12); }
.cc-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .25rem; }
.cc-body b { font: 1.3rem/1.2 var(--display); font-weight: 400; color: var(--kavi); }
.cc-body small { color: var(--stone); font-weight: 500; }
.cc-body span { color: var(--stone); font-size: .95rem; }

/* ---------- Trip planner / circuit page ---------- */
.trip { display: grid; grid-template-columns: 400px 1fr; gap: 1.5rem; align-items: start; }
.trip-panel { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1.2rem; }
.trip-map { height: 640px; border-radius: 10px; z-index: 1; position: sticky; top: 90px; }
.trip-list { list-style: none; padding: 0; margin: .8rem 0; }
.trip-list li { display: grid; grid-template-columns: 2rem 1fr auto; align-items: center; gap: .5rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.trip-list .n { width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--kavi); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: .9rem; }
.trip-list a { text-decoration: none; color: var(--granite); }
.trip-list small { display: block; color: var(--stone); }
.trip-list .ctl button { border: 1px solid var(--line); background: #fff; border-radius: 4px; width: 1.9rem; height: 1.9rem; cursor: pointer; }
.trip-list .ctl button:disabled { opacity: .3; cursor: default; }
.trip-list .empty-msg { display: block; color: var(--stone); }
.trip-tools { display: flex; gap: .5rem; flex-wrap: wrap; }
.start-form { margin: .8rem 0; }
.start-form label { font-weight: 600; display: block; margin-bottom: .3rem; }
.start-form .from-row input { border-width: 2px; }
.start-msg { font-size: .9rem; color: var(--kavi-dk); margin: .3rem 0 0; }
.quick-add { position: relative; margin-top: .8rem; }
.quick-add input { width: 100%; font: 1rem var(--body); padding: .55rem .7rem; border: 2px dashed var(--line); border-radius: 6px; }
.quick-add ul { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; list-style: none; margin: .2rem 0 0; padding: .2rem 0; background: #fff; border: 2px solid var(--granite); border-radius: 6px; }
.quick-add button { all: unset; display: block; width: 100%; box-sizing: border-box; padding: .4rem .7rem; cursor: pointer; }
.quick-add button:hover, .quick-add button:focus-visible { background: var(--marigold-lt); }
.quick-add small { display: block; color: var(--stone); }
.legs { padding-left: 1.2rem; font-size: .93rem; }
.legs li { margin: .35rem 0; }
.legs span { display: block; color: var(--stone); }
.trip-result .btn { width: 100%; margin-top: .5rem; }
.pin-num span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--kavi); color: #fff; font: 600 .9rem var(--body); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.pilgrim span { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--marigold); border: 3px solid #fff; box-shadow: 0 0 0 4px rgba(242, 160, 7, .35), 0 0 14px #f2a007; }
@media (max-width: 960px) { .trip { grid-template-columns: 1fr; } .trip-map { position: static; height: 420px; order: -1; } }

/* ---------- Temple page extras ---------- */
.t-hero.has-img .t-hero-img { animation: kb0 14s ease-out both; }
.t-hero-text > * { animation: fadeUp .8s both; }
.t-hero-text > :nth-child(2) { animation-delay: .1s; } .t-hero-text > :nth-child(3) { animation-delay: .2s; } .t-hero-text > :nth-child(4) { animation-delay: .3s; } .t-hero-text > :nth-child(5) { animation-delay: .4s; }
.btn-yathra span::before { content: "+ "; }
.btn-yathra.on { background: var(--marigold); border-color: var(--marigold); color: var(--granite); }
.btn-yathra.on span::before { content: "✓ "; }
.btn-wa { background: #1f8a4c; border-color: #1f8a4c; }
.btn-wa:hover { background: #176b3a; border-color: #176b3a; }
.bell { position: absolute; z-index: 3; right: clamp(1rem, 5vw, 4rem); top: 1rem; width: 64px; height: 84px; border: 0; background: none; cursor: pointer; color: #f2a007; transform-origin: 50% 6px; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .35)); }
.bell svg { width: 100%; height: 100%; }
.bell .clapper { transform-origin: 32px 20px; }
.bell.ring { animation: swing 2.6s cubic-bezier(.3, .1, .3, 1); }
.bell.ring .clapper { animation: clap 2.6s ease-in-out; }
@keyframes swing { 0% { transform: rotate(0); } 12% { transform: rotate(22deg); } 30% { transform: rotate(-18deg); } 48% { transform: rotate(12deg); } 64% { transform: rotate(-7deg); } 80% { transform: rotate(3deg); } 100% { transform: rotate(0); } }
@keyframes clap { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(-20deg); } 33% { transform: rotate(18deg); } 50% { transform: rotate(-10deg); } }
.bell-tip { position: absolute; right: 0; top: 100%; font-size: .75rem; white-space: nowrap; color: rgba(255, 255, 255, .85); }
.t-hero:not(.has-img) .bell-tip { color: var(--stone); }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.2rem; }
.tool { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem 1.2rem; }
.tool h3 { margin-bottom: .7rem; }
.wx-now { display: flex; gap: .9rem; align-items: center; }
.wx-ico { font-size: 2.6rem; line-height: 1; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-5px); } }
.wx-now b { display: block; font: 1.9rem/1 var(--display); font-weight: 400; }
.wx-now small { display: block; color: var(--stone); }
.wx-days { list-style: none; padding: 0; margin: .9rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; text-align: center; }
.wx-days li { background: var(--mist); border-radius: 8px; padding: .4rem; font-size: .88rem; }
.wx-days b { display: block; font-size: 1.3rem; }
.wx-days small { display: block; color: var(--stone); }
.ess { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.ess a { display: flex; gap: .45rem; align-items: center; padding: .45rem .6rem; border-radius: 6px; background: var(--mist); text-decoration: none; color: var(--granite); font-size: .93rem; transition: background .2s; }
.ess a:hover { background: var(--marigold-lt); }
.share-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .8rem; margin-bottom: .8rem; }
.yt { position: relative; border: 0; padding: 0; cursor: pointer; border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .5s; }
.yt:hover img { transform: scale(1.06); }
.yt-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 44px; margin: -22px 0 0 -32px; border-radius: 12px; background: #e62117; }
.yt-play::after { content: ""; position: absolute; left: 26px; top: 13px; border-left: 16px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.yt-frame { aspect-ratio: 16 / 9; } .yt-frame iframe { width: 100%; height: 100%; border: 0; border-radius: 8px; }
.yt-search { display: flex; gap: 1rem; align-items: center; padding: .9rem 1rem; border-radius: 10px; background: #1d1f23; color: #fff; text-decoration: none; transition: transform .3s; }
.yt-search:hover { color: #fff; transform: translateY(-2px); }
.yt-search .yt-play.sm { position: relative; left: auto; top: auto; margin: 0; flex: none; width: 54px; height: 38px; animation: pulse 2s infinite; }
.yt-search .yt-play.sm::after { left: 21px; top: 10px; }
.yt-search small { display: block; opacity: .75; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(230, 33, 23, .6); } 70% { box-shadow: 0 0 0 14px rgba(230, 33, 23, 0); } 100% { box-shadow: 0 0 0 0 rgba(230, 33, 23, 0); } }
.gal-play { margin-bottom: .8rem; }
.lightbox.auto img { animation: kb0 5s ease-out both; }
@media (max-width: 700px) { .tool-grid { grid-template-columns: 1fr; } }

/* districts */
.districts { display: flex; flex-wrap: wrap; gap: .4rem; margin: -.3rem 0 1.2rem; }
.districts .chip { font-size: .85rem; padding: .2rem .65rem; }

/* map pins drop */
.leaflet-marker-icon.drop { animation: drop .6s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes drop { from { opacity: 0; margin-top: -40px !important; } to { opacity: 1; } }

/* toast */
#ty-toast { position: fixed; left: 50%; bottom: 1.4rem; z-index: 4000; transform: translate(-50%, 140%); background: var(--granite); color: #fff; padding: .7rem 1.2rem; border-radius: 99px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
#ty-toast.show { animation: toast 2.6s both; }
@keyframes toast { 0% { transform: translate(-50%, 140%); } 12%, 85% { transform: translate(-50%, 0); } 100% { transform: translate(-50%, 140%); } }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; }
  .kavi, .reel-img.on, .t-hero-img, .wx-ico, .yt-play.sm { animation: none !important; }
}
.t-hero { overflow: hidden; }
main { overflow-x: clip; }

/* ---------- v3: temple markers, directions, puja ---------- */
.tpin { background: none; border: 0; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .35)); transition: transform .2s; }
.tpin svg { width: 100%; height: 100%; display: block; }
.tpin:hover { transform: scale(1.15); z-index: 1000 !important; }
.tpin b { position: absolute; top: -6px; right: -8px; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 99px; background: var(--granite); color: #fff; font: 600 .75rem/20px var(--body); text-align: center; border: 2px solid #fff; }
.pin-flag span { display: block; width: 26px; height: 34px; background: linear-gradient(var(--leaf), var(--leaf)) 2px 0 / 3px 34px no-repeat; position: relative; }
.pin-flag span::after { content: ""; position: absolute; left: 5px; top: 1px; width: 20px; height: 14px; background: var(--leaf); clip-path: polygon(0 0, 100% 50%, 0 100%); }

.dir-form .dir-fields { display: grid; grid-template-columns: 1fr auto; gap: .45rem .5rem; align-items: center; margin-bottom: .6rem; }
.dir-form .dir-fields label { grid-column: 1 / -1; font-weight: 600; margin: 0; }
.dir-form .dir-fields input { min-width: 0; font: 1rem var(--body); padding: .6rem .7rem; border: 2px solid var(--granite); border-radius: var(--radius); }
.dir-form .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .35rem; vertical-align: middle; }
.dir-form .dot.a { background: var(--leaf); } .dir-form .dot.b { background: var(--kavi); }
.swap { grid-row: 2 / 5; grid-column: 2; align-self: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line); background: #fff; cursor: pointer; font-size: 1.1rem; color: var(--granite); }
.swap:hover { border-color: var(--marigold); }
.swap.spin { animation: spin180 .4s ease; }
@keyframes spin180 { from { transform: rotate(0); } to { transform: rotate(180deg); } }
.dir-form .dir-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.dir-form .dir-actions .btn { width: 100%; }

.rituals { position: absolute; z-index: 6; right: clamp(1rem, 5vw, 4rem); top: 1rem; display: flex; gap: 1rem; align-items: flex-start; }
.rituals .bell { position: relative; right: auto; top: auto; }
.puja { position: relative; width: 72px; height: 84px; border: 0; background: none; cursor: pointer; padding: 0; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .35)); }
.puja svg { width: 72px; height: 64px; }
.puja .flame { transform-origin: 36px 20px; animation: flicker 1.2s ease-in-out infinite alternate; }
@keyframes flicker { 0% { transform: scale(1, 1); } 50% { transform: scale(.9, 1.12) rotate(-3deg); } 100% { transform: scale(1.05, .95) rotate(3deg); } }
.puja.do svg { animation: aarti 2.4s ease-in-out; }
@keyframes aarti { 0% { transform: translate(0, 0); } 25% { transform: translate(-14px, 10px); } 50% { transform: translate(0, 20px); } 75% { transform: translate(14px, 10px); } 100% { transform: translate(0, 0); } }
.puja-tip, .bell-tip { position: absolute; left: 50%; transform: translateX(-50%); top: 100%; font-size: .75rem; white-space: nowrap; color: rgba(255, 255, 255, .9); }
.bell-tip { right: auto; }
.t-hero:not(.has-img) .puja-tip { color: var(--stone); }
.flower-layer { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; transition: opacity 1.2s; }
.flower-layer.fade { opacity: 0; }
.flower-layer span { position: absolute; top: -50px; line-height: 1; animation-name: fall; animation-timing-function: cubic-bezier(.35, .1, .5, 1); animation-fill-mode: both; text-shadow: 0 2px 4px rgba(0, 0, 0, .3); }
@keyframes fall { 0% { transform: translate(0, 0) rotate(0); opacity: 0; } 8% { opacity: 1; } 100% { top: var(--end); transform: translate(var(--dx), 0) rotate(var(--rot)); opacity: 1; } }
.aarti-glow { position: absolute; left: 50%; top: 55%; width: 40vmin; height: 40vmin; margin: -20vmin 0 0 -20vmin; border-radius: 50%; background: radial-gradient(circle, rgba(255, 200, 80, .55), rgba(255, 160, 7, 0) 70%); animation: glowpulse 2.4s ease-out both; }
@keyframes glowpulse { 0% { transform: scale(.3); opacity: 0; } 40% { opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
@media (max-width: 700px) { .rituals { top: .6rem; right: .6rem; gap: .4rem; } .rituals .bell { width: 46px; height: 62px; } .puja, .puja svg { width: 54px; } .puja svg { height: 48px; } .puja { height: 64px; } }
.t-hero, .flower-layer, .hero-reel { overflow: clip; }

/* =====================================================================
   v4 — brand from the Temple Yatra logo (navy · saffron · gopuram orange)
   ===================================================================== */
:root {
  --navy: #13205c;
  --navy-2: #1d2f7a;
  --kavi: #c8401a;        /* gopuram vermilion: primary buttons */
  --kavi-dk: #9c2f12;
  --marigold: #f4a51c;    /* the road / sun */
  --marigold-lt: #fff3dc;
  --granite: #18203f;     /* text */
  --stone: #5a6078;
  --mist: #f3f4f9;
  --line: #e1e4ee;
  --display: "Cinzel", "Hind", serif;
}
body { color: var(--granite); }
h1, h2, .h2 { font-family: var(--display); font-weight: 700; letter-spacing: .01em; }
.h3, h3 { font-family: var(--body); }

/* no more striped bands — a thin brand line instead */
.kavi, .kavi-thin, .kavi-tall { height: 3px; border: 0; animation: none; background: linear-gradient(90deg, var(--navy) 0%, var(--navy-2) 35%, var(--marigold) 70%, var(--kavi) 100%); }
.site-foot .kavi { display: none; }
.card-img, .cc-img { background: linear-gradient(135deg, #fdf1dc 0%, #f7e3c4 100%); }
.card-img.noimg::after { background: var(--kavi); opacity: .35; }

/* header */
.site-head { background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--line); }
.brand-img { width: 46px; height: 46px; flex: none; border-radius: 50%; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.brand:hover .brand-img { transform: rotate(-8deg) scale(1.06); }
.brand-text { font: 700 1.38rem/1 "Cinzel", serif; color: var(--navy); letter-spacing: .02em; }
.brand-text small { color: var(--kavi); letter-spacing: 0; }
.site-nav a { font-weight: 500; color: var(--granite); }
.site-nav a[aria-current="page"] { background: var(--navy); color: #fff; }
.site-nav .login-link { border: 1.5px solid var(--navy); color: var(--navy); }
.site-nav .login-link:hover { background: var(--navy); color: #fff; }
.badge-n { background: var(--marigold); color: var(--navy); }

/* buttons */
.btn { border-radius: 8px; box-shadow: 0 2px 0 rgba(0, 0, 0, .08); transition: background .2s, transform .15s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(200, 64, 26, .25); }
.btn-ghost { background: #fff; }
.search-box { border-radius: 12px; border-color: var(--navy); }
.search-box button { border-radius: 8px; }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Hero with animated logo ---------- */
.hero-reel { background: radial-gradient(ellipse at 78% 60%, #2a3f99 0%, #1a2a72 30%, #101a4d 65%, #0a1033 100%); min-height: min(88vh, 780px); }
.hero-reel::after { background: linear-gradient(90deg, rgba(10, 16, 51, .92) 0%, rgba(10, 16, 51, .7) 45%, rgba(10, 16, 51, .25) 100%), linear-gradient(0deg, rgba(10, 16, 51, .85) 0%, rgba(10, 16, 51, 0) 40%); }
.hero-reel .reel-img { filter: saturate(.9); }
.hero-reel .reel-art { display: none; }
.hero-grid2 { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 2rem; }
.hero-reel .hero-copy { padding: clamp(4rem, 11vh, 7rem) 0 2rem; }
.hero-reel h1 { font-family: "Cinzel", serif; font-weight: 700; font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: 1.05; letter-spacing: .01em; }
.hero-reel h1 em { font-style: normal; color: var(--marigold); display: block; }
.hero-kicker { display: inline-flex; align-items: center; gap: .5rem; font: 600 .95rem var(--body); color: #ffd98a; margin-bottom: 1rem; animation: fadeUp .8s both; }
.hero-kicker::before { content: ""; width: 28px; height: 2px; background: var(--marigold); }
.hero-reel .search-box { border-color: transparent; }
.hero-reel .search-box button { background: var(--kavi); }
.hero-reel .chip { background: rgba(255, 255, 255, .1); }
.hero-reel .chip:hover { background: var(--marigold); color: var(--navy); }

.logo-stage { position: relative; width: min(100%, 440px); aspect-ratio: 1; margin-inline: auto; animation: logoIn 1.4s .2s cubic-bezier(.2, .8, .2, 1) both; }
.logo-stage::before { content: ""; position: absolute; inset: -22%; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 210, 122, .22) 0deg 6deg, rgba(255, 210, 122, 0) 6deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 35%, transparent 70%); mask: radial-gradient(circle, #000 35%, transparent 70%);
  animation: spin 60s linear infinite; }
.logo-stage::after { content: ""; position: absolute; inset: 4%; border-radius: 50%; box-shadow: 0 0 80px 20px rgba(244, 165, 28, .35), 0 30px 60px rgba(0, 0, 0, .45); animation: halo 4s ease-in-out infinite alternate; z-index: 0; }
.logo-stage img { position: relative; z-index: 1; width: 100%; height: 100%; animation: float 7s ease-in-out infinite; }
.logo-stage .shine { position: absolute; inset: 0; z-index: 2; border-radius: 50%; overflow: hidden; pointer-events: none; }
.logo-stage .shine::after { content: ""; position: absolute; top: -20%; bottom: -20%; width: 30%; left: -40%; transform: skewX(-18deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); animation: sweep 6s 2s ease-in-out infinite; }
.logo-stage svg.walk { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; animation: float 7s ease-in-out infinite; }
.logo-stage .ring2 { position: absolute; inset: -6%; z-index: 0; border-radius: 50%; border: 1px dashed rgba(255, 210, 122, .35); animation: spin 40s linear infinite reverse; }
@keyframes logoIn { from { opacity: 0; transform: scale(.7) rotate(-12deg); } to { opacity: 1; transform: none; } }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes halo { to { box-shadow: 0 0 120px 34px rgba(244, 165, 28, .5), 0 30px 60px rgba(0, 0, 0, .45); } }
@keyframes sweep { 0% { left: -40%; } 35%, 100% { left: 130%; } }
.hero-reel .reel-ui { padding-top: .5rem; }
@media (max-width: 900px) { .hero-grid2 { grid-template-columns: 1fr; } .logo-stage { width: 220px; margin: 0 auto 1rem; order: -1; } .hero-reel .hero-copy { padding-top: 2rem; } }

/* preloader with the logo */
#ty-preloader { background: radial-gradient(circle at 50% 55%, #24398f 0, #13205c 45%, #0a1033 100%); }
.pre-wrap img { width: 150px; height: 150px; animation: preIn 1.2s cubic-bezier(.2, .8, .2, 1) both; filter: drop-shadow(0 0 30px rgba(244, 165, 28, .6)); }
.pre-wrap p { font: 700 1.5rem "Cinzel", serif; color: #fff; letter-spacing: .08em; }
@keyframes preIn { from { transform: scale(.4) rotate(-90deg); opacity: 0; } to { transform: none; opacity: 1; } }
.pre-bar { width: 160px; height: 3px; margin: .9rem auto 0; border-radius: 3px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.pre-bar i { display: block; height: 100%; width: 0; background: var(--marigold); animation: bar 1.3s .2s ease-out forwards; }

/* stats, footer */
.stats div { border-left-color: var(--marigold); }
.stats b { color: var(--navy); font-family: "Cinzel", serif; font-weight: 700; }
.site-foot { background: linear-gradient(180deg, #13205c 0%, #0a1033 100%); color: #d6daf0; border-top: 4px solid var(--marigold); }
.foot-brand { display: flex; align-items: center; gap: .7rem; font: 700 1.5rem "Cinzel", serif; }
.foot-brand img { width: 64px; height: 64px; }
.site-foot a { color: #ffcf6e; }
.foot-base { border-top-color: rgba(255, 255, 255, .12); color: #a9b0d6; align-items: center; }
.visitors { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.visitors span { display: inline-flex; align-items: center; gap: .4rem; }
.visitors b { font: 700 1.05rem "Cinzel", serif; color: #fff; }
.visitors i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: livepulse 1.8s infinite; }
@keyframes livepulse { 70% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }

/* temple hero tweaks */
.t-hero { background: linear-gradient(135deg, #13205c, #1d2f7a); color: #fff; }
.t-hero:not(.has-img) .bell-tip, .t-hero:not(.has-img) .puja-tip { color: rgba(255, 255, 255, .85); }
.t-hero.has-img::after { background: linear-gradient(to top, rgba(10, 16, 51, .9) 0%, rgba(10, 16, 51, .5) 45%, rgba(10, 16, 51, .05) 78%); }
.t-sec h2 { border-bottom: 0; padding-bottom: 0; }
.t-sec h2::after { content: ""; display: block; width: 56px; height: 3px; margin-top: .45rem; border-radius: 3px; background: linear-gradient(90deg, var(--marigold), var(--kavi)); }
.info { border: 1px solid #f3dfb4; }
.managed { display: inline-flex; align-items: center; gap: .45rem; margin: .2rem 0 1rem; padding: .35rem .8rem; border-radius: 99px; background: #eef1fb; color: var(--navy); font-weight: 500; font-size: .92rem; text-decoration: none; }
.managed::before { content: "🏛"; }

/* ---------- Ride (Rapido-style) ---------- */
.veh { background: none; border: 0; }
.veh-in { display: block; width: 40px; height: 40px; transition: transform .25s linear; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .35)); position: relative; z-index: 2; }
.veh-in svg { width: 100%; height: 100%; }
.veh-pulse { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px; border-radius: 50%; background: rgba(244, 165, 28, .35); animation: vpulse 1.6s ease-out infinite; z-index: 1; }
@keyframes vpulse { from { transform: scale(.5); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
.ride { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.ride-modes { display: flex; gap: .4rem; margin-bottom: .7rem; }
.ride-modes button { flex: 1; padding: .45rem; border: 1.5px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; font: 500 .92rem var(--body); }
.ride-modes button.on { border-color: var(--navy); background: var(--navy); color: #fff; }
.ride-card { background: linear-gradient(135deg, #13205c, #24398f); color: #fff; border-radius: 14px; padding: 1rem 1.1rem; box-shadow: 0 10px 24px rgba(19, 32, 92, .3); }
.ride-top { display: flex; align-items: center; gap: .5rem; }
.ride-dot { width: 10px; height: 10px; border-radius: 50%; background: #9aa3c7; }
.ride.moving .ride-dot, .ride.live .ride-dot { background: #3ddc84; animation: livepulse 1.4s infinite; }
.ride-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin: .8rem 0 .6rem; }
.ride-nums b { display: block; font: 700 1.15rem "Cinzel", serif; color: #ffd27a; }
.ride-nums span { font-size: .78rem; opacity: .8; }
.ride-bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.ride-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--marigold), #ffd27a); transition: width .3s; }
.ride-to { margin: .5rem 0 0; font-size: .85rem; opacity: .85; }
.ride-btns { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .7rem; }
.ride-btns .btn { width: 100%; padding-inline: .5rem; }
.ride-follow { display: flex; gap: .4rem; align-items: center; font-size: .88rem; color: var(--stone); margin-top: .5rem; }

/* ---------- Near the temple ---------- */
.near { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.near-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.near-tabs button { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .75rem; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font: 500 .9rem var(--body); color: var(--granite); }
.near-tabs button em { font-style: normal; font-size: .78rem; min-width: 1.3rem; padding: 0 .3rem; border-radius: 99px; background: var(--mist); color: var(--stone); }
.near-tabs button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.near-tabs button[aria-selected="true"] em { background: var(--marigold); color: var(--navy); }
.near-list { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow: auto; }
.near-list li { display: grid; grid-template-columns: 2rem 1fr auto auto auto; gap: .5rem; align-items: center; padding: .55rem .2rem; border-bottom: 1px solid var(--line); }
.near-list li.muted, .near-list li.near-more { display: block; }
.near-list .ni { font-size: 1.2rem; }
.near-list .nt small { display: block; color: var(--stone); font-size: .82rem; }
.near-list .nd { font-weight: 600; color: var(--navy); white-space: nowrap; }
.near-list .nr { font-size: .85rem; padding: .2rem .55rem; border-radius: 6px; background: var(--mist); text-decoration: none; }
.near-map { height: 460px; border-radius: 12px; z-index: 1; }
.near-pin span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 2px solid var(--navy); box-shadow: 0 2px 6px rgba(0, 0, 0, .3); font-size: 15px; }
@media (max-width: 900px) { .near { grid-template-columns: 1fr; } .near-map { height: 300px; } }

/* ---------- Accounts & endowments ---------- */
.auth { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.auth .tool h2 { font-size: 1.4rem; }
.auth label { display: block; font-weight: 600; margin: .8rem 0 .25rem; }
.auth input { width: 100%; padding: .6rem .7rem; border: 2px solid var(--line); border-radius: 8px; font: 1rem var(--body); }
.auth input:focus { border-color: var(--navy); outline: none; }
.auth .btn { margin-top: 1rem; width: 100%; }
@media (max-width: 760px) { .auth { grid-template-columns: 1fr; } }
.dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; }
.dept { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem 1.3rem; position: relative; overflow: hidden; transition: transform .3s, box-shadow .3s; }
.dept:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(19, 32, 92, .12); }
.dept::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(var(--marigold), var(--kavi)); }
.dept h3 { font: 700 1.1rem "Cinzel", serif; color: var(--navy); margin-bottom: .2rem; }
.dept .st { color: var(--kavi); font-weight: 600; font-size: .9rem; }
.dept .big { font: 700 1.6rem "Cinzel", serif; color: var(--navy); margin: .5rem 0 0; }
.dept .big small { font: 400 .85rem var(--body); color: var(--stone); display: block; }
.dept .links { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .8rem; }
.etable { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
.etable th, .etable td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); }
.etable th { background: var(--navy); color: #fff; font-weight: 500; }
.etable tr:hover td { background: #fbf7ee; }

/* ---------- v5: announcement, Pushkaralu, socials ---------- */
.brand-text small { display: none; }
.announce { background: var(--marigold); color: var(--navy); font-weight: 600; font-size: .95rem; text-align: center; padding: .45rem 0; }
.announce a { color: var(--navy); }
.socials { display: flex; gap: 1rem; }
.pk-hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(160deg, #0a1033 0%, #13205c 45%, #1d5fb4 100%); padding: clamp(3rem, 8vw, 5.5rem) 0 4.5rem; }
.pk-water { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; pointer-events: none; }
.pk-water span { position: absolute; left: -50%; width: 200%; height: 100%; bottom: 0; border-radius: 45%; background: rgba(255, 255, 255, .06); animation: wave 14s linear infinite; }
.pk-water span:nth-child(2) { bottom: -18px; animation-duration: 20s; background: rgba(244, 165, 28, .08); }
.pk-water span:nth-child(3) { bottom: -36px; animation-duration: 26s; background: rgba(255, 255, 255, .05); }
@keyframes wave { from { transform: translateX(0) rotate(0); } to { transform: translateX(25%) rotate(360deg); } }
.pk-grid { position: relative; display: grid; grid-template-columns: 1.3fr .9fr; gap: 2.5rem; align-items: center; }
.pk-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.05; margin-bottom: .3rem; }
.pk-dates { font-size: 1.25rem; color: #ffd27a; font-weight: 600; }
.countdown { display: flex; gap: .7rem; margin: 1.4rem 0; flex-wrap: wrap; }
.countdown div { min-width: 86px; padding: .8rem .6rem; text-align: center; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); backdrop-filter: blur(4px); }
.countdown b { display: block; font: 700 2.2rem/1 "Cinzel", serif; color: #fff; }
.countdown span { font-size: .8rem; opacity: .8; }
.cd-msg { font-size: 1.2rem; font-weight: 600; } .cd-msg.live i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #3ddc84; margin-right: .5rem; animation: livepulse 1.4s infinite; }
.pk-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.pk-counts { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); border-radius: 16px; padding: 1.3rem 1.5rem; }
.pk-total b { display: block; font: 700 3rem/1 "Cinzel", serif; color: #ffd27a; }
.pk-counts ul { list-style: none; padding: 0; margin: .8rem 0; }
.pk-counts li { display: flex; justify-content: space-between; padding: .35rem 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.pk-counts li b { color: #ffd27a; }
.pk-layout { display: grid; grid-template-columns: 440px 1fr; gap: 1.4rem; align-items: start; }
.pk-search { width: 100%; padding: .65rem .8rem; border: 2px solid var(--line); border-radius: 10px; font: 1rem var(--body); margin-bottom: .8rem; }
.ghat-list { max-height: 640px; overflow: auto; padding-right: .3rem; }
.ghat { display: grid; grid-template-columns: 2.4rem 1fr; gap: .7rem; padding: .9rem; border: 1px solid var(--line); border-radius: 12px; margin-bottom: .7rem; background: #fff; }
.ghat-n { width: 2.2rem; height: 2.2rem; border-radius: 50%; background: #e7f0fb; color: #1d5fb4; display: grid; place-items: center; font-weight: 700; }
.ghat h3 { font: 700 1.05rem "Cinzel", serif; color: var(--navy); margin: 0 0 .2rem; }
.ghat-m { margin: 0 0 .3rem; color: var(--stone); font-size: .92rem; }
.ghat-m b { color: #1d5fb4; }
.ghat .tiny { font-size: .78rem; margin: 0 0 .4rem; }
.ghat-a { display: flex; gap: .4rem; flex-wrap: wrap; }
.ghat-a .btn { padding: .4rem .7rem; font-size: .88rem; }
.ghat-map { height: 700px; border-radius: 14px; position: sticky; top: 90px; z-index: 1; }
.gpin { background: none; border: 0; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .35)); }
.gpin svg { width: 100%; height: 100%; }
.gpin b { position: absolute; top: -6px; right: -8px; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 99px; background: var(--marigold); color: var(--navy); font: 700 .75rem/20px var(--body); text-align: center; border: 2px solid #fff; }
.pk-tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.pk-tips ul { padding-left: 1.1rem; margin: 0; } .pk-tips li { margin: .35rem 0; }
@media (max-width: 960px) { .pk-grid, .pk-layout, .pk-tips { grid-template-columns: 1fr; } .ghat-map { position: static; height: 420px; order: -1; } }
.linkish { background: none; border: 0; padding: 0; color: var(--kavi); text-decoration: underline; cursor: pointer; font: inherit; }
.near-tabs em.ld { animation: ldp 1s ease-in-out infinite; }
@keyframes ldp { 50% { opacity: .3; } }
