/* ==========================================================================
   SRIYAM SHIVAM v2 — Violet UI layer (TempleInt Labs, Nov 2026)
   Loaded after the inline design system in index.html. Token-driven only.
   ========================================================================== */

/* ---- Global polish ---------------------------------------------------- */
.theme-card:hover { border-color: var(--gold-primary); }
.hero-title-ta {
  background: linear-gradient(180deg, var(--text-main) 30%, var(--gold-primary) 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.header-logo-img { filter: drop-shadow(0 2px 10px var(--gold-glow)); }
.btn-search-action:hover { transform: translateY(-1px); box-shadow: 0 8px 26px var(--gold-glow); }
.btn-search-action:focus-visible, .chip-btn:focus-visible, .v2-btn:focus-visible { outline: 3px solid var(--gold-primary); outline-offset: 2px; }

.v2-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--radius-sm); font-weight: 700; font-size: 0.92rem;
  border: var(--border-strong); background: var(--bg-card-inner); color: var(--text-main);
  cursor: pointer; text-decoration: none; transition: all .2s ease; font-family: var(--font-body);
}
.v2-btn:hover { border-color: var(--gold-primary); color: var(--gold-primary); }
.v2-btn.primary { background: var(--grad-primary); color: var(--on-primary) !important; border: none; box-shadow: 0 4px 18px var(--gold-glow); }
.v2-btn.primary:hover { color: var(--on-primary); transform: translateY(-1px); }
.v2-btn.wa { background: linear-gradient(135deg, #25d366, #128c7e); color: #fff !important; border: none; }
.v2-btn.ghost { background: transparent; }
.v2-btn.sm { padding: 7px 12px; font-size: 0.8rem; border-radius: 8px; }
.v2-btn.block { width: 100%; }
.v2-btn[disabled] { opacity: .5; pointer-events: none; }

.v2-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 0.74rem; font-weight: 700; background: var(--gold-faint); color: var(--gold-primary); border: var(--border-light); }
.v2-pill.pps { color: var(--accent-saffron); background: rgba(249,115,22,.12); border-color: rgba(249,115,22,.35); }
.v2-pill.dd { color: var(--accent-blue); background: rgba(96,165,250,.12); border-color: rgba(96,165,250,.35); }
.v2-pill.gold { color: var(--sacred-gold); background: rgba(251,191,36,.10); border-color: rgba(251,191,36,.35); }

.v2-card { background: var(--bg-card); border: var(--border-light); border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-sm); }
.v2-card h3 { font-family: var(--font-serif); color: var(--gold-primary); font-size: 1.3rem; margin-bottom: 8px; }
.v2-muted { color: var(--text-muted); }
.v2-eyebrow { font-size: .74rem; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--gold-primary); }
.v2-grid-2 { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 960px) { .v2-grid-2 { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }

/* ---- Home: pillars + map teaser + AI teaser ---------------------------- */
.v2-pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.v2-pillar { background: var(--bg-card); border: var(--border-light); border-radius: var(--radius-md); padding: 18px; }
.v2-pillar .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem;
  background: var(--gold-faint); border: var(--border-light); margin-bottom: 10px; }
.v2-pillar h4 { font-size: 1rem; margin-bottom: 4px; color: var(--text-main); }
.v2-pillar p { font-size: .86rem; color: var(--text-muted); line-height: 1.5; }

.v2-map-teaser { display: grid; grid-template-columns: 1fr; border-radius: var(--radius-lg); overflow: hidden;
  border: var(--border-strong); background: var(--bg-card); box-shadow: var(--shadow-md); }
@media (min-width: 900px) { .v2-map-teaser { grid-template-columns: 1fr 1.3fr; } }
.v2-map-teaser .copy { padding: 28px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.v2-map-teaser .copy h2 { font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2rem); color: var(--text-main); line-height: 1.2; }
#homeMiniMap { min-height: 300px; height: 100%; width: 100%; background: var(--bg-card-inner); }

.v2-ai-teaser { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 22px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(124,58,237,.22), rgba(91,33,182,.10)); border: var(--border-strong); }
.v2-ai-teaser .orb { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem;
  background: var(--grad-primary); box-shadow: 0 0 30px var(--gold-glow); flex: 0 0 auto; }

.pkg-from { display: flex; flex-direction: column; }
.pkg-from .lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); font-weight: 700; }
.pkg-from .val { font-size: 1.2rem; font-weight: 800; color: var(--sacred-gold); font-family: var(--font-serif); }
.pkg-free { font-size: .76rem; color: var(--accent-green); font-weight: 700; margin-top: 6px; }

/* ---- Temple Map page ------------------------------------------------------ */
.tm-wrap { display: grid; grid-template-columns: 1fr; gap: 0; min-height: calc(100vh - 140px); }
@media (min-width: 980px) { .tm-wrap { grid-template-columns: 380px minmax(0, 1fr); } }
.tm-panel { background: var(--bg-container); border-right: var(--border-light); padding: 16px; display: flex; flex-direction: column; gap: 12px; order: 2; }
@media (min-width: 980px) { .tm-panel { order: 1; max-height: calc(100vh - 80px); overflow-y: auto; position: sticky; top: 72px; } }
.tm-map-col { position: relative; order: 1; }
#templeMap { width: 100%; height: 62vh; min-height: 380px; background: var(--bg-card-inner); }
@media (min-width: 980px) { #templeMap { height: calc(100vh - 80px); position: sticky; top: 72px; } }
.tm-search { width: 100%; padding: 12px 14px; border-radius: 12px; border: var(--border-strong); background: var(--bg-card);
  color: var(--text-main); font-size: .95rem; font-family: var(--font-body); }
.tm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tm-chip { padding: 6px 11px; border-radius: 999px; font-size: .78rem; font-weight: 600; border: var(--border-light);
  background: var(--bg-card); color: var(--text-muted); cursor: pointer; }
.tm-chip.on { background: var(--gold-faint); border-color: var(--gold-primary); color: var(--gold-primary); }
.tm-count { font-size: .8rem; color: var(--text-muted); }
.tm-list { display: flex; flex-direction: column; gap: 8px; }
.tm-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--bg-card);
  border: 1px solid transparent; cursor: pointer; }
.tm-item:hover, .tm-item.sel { border-color: var(--gold-primary); }
.tm-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex: 0 0 auto; }
.tm-item .nm { font-weight: 700; font-size: .9rem; color: var(--text-main); }
.tm-item .sb { font-size: .76rem; color: var(--text-muted); }
.tm-legend { position: absolute; left: 12px; bottom: 12px; z-index: 500; background: var(--bg-glass); border: var(--border-light);
  border-radius: 12px; padding: 8px 12px; font-size: .74rem; display: flex; gap: 12px; color: var(--text-main); backdrop-filter: blur(8px); }
.tm-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }
.tm-locate { position: absolute; right: 12px; top: 12px; z-index: 500; }
.tm-detail { border: var(--border-strong); border-radius: 14px; padding: 14px; background: var(--bg-card); }
.tm-detail .ttl { font-family: var(--font-tamil); font-size: 1.1rem; font-weight: 700; color: var(--text-main); }
.tm-detail .row { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tm-detail p { font-size: .84rem; color: var(--text-muted); line-height: 1.55; }

/* Yatra basket bar (map + temple pages) */
.basket-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 78px; z-index: 950; display: flex; align-items: center; gap: 12px;
  padding: 10px 12px 10px 18px; border-radius: 999px; background: var(--bg-glass); border: var(--border-strong); box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px); max-width: calc(100% - 32px); }
.basket-bar .cnt { font-weight: 800; color: var(--text-main); font-size: .9rem; white-space: nowrap; }
@media (min-width: 900px) { .basket-bar { bottom: 24px; } }

/* Leaflet popups in theme */
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--bg-card) !important; color: var(--text-main) !important; border: var(--border-light); }
.leaflet-popup-content { margin: 12px 14px !important; font-family: var(--font-body); }
.pop-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.pop-actions a, .pop-actions button { font-size: .74rem; font-weight: 700; padding: 5px 9px; border-radius: 8px; border: var(--border-light);
  background: var(--bg-card-inner); color: var(--gold-primary) !important; text-decoration: none; cursor: pointer; }
.num-marker { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff;
  font-weight: 800; font-size: 12px; border: 2px solid #fff; box-shadow: 0 0 14px rgba(124,58,237,.55); }

/* ---- Yatra (itinerary) page -------------------------------------------- */
.yt-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.yt-head h1 { font-family: var(--font-serif); font-size: clamp(1.6rem, 3.4vw, 2.3rem); color: var(--text-main); line-height: 1.15; }
.yt-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.yt-day { background: var(--bg-card); border: var(--border-light); border-radius: var(--radius-md); margin-bottom: 16px; overflow: hidden; }
.yt-day-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; background: var(--bg-card-inner); flex-wrap: wrap; }
.yt-day-h .d { font-weight: 800; color: var(--text-main); display: flex; align-items: center; gap: 10px; }
.yt-day-h .sw { width: 12px; height: 12px; border-radius: 4px; }
.yt-stop { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 14px 16px; border-top: var(--border-light); }
.yt-stop:first-of-type { border-top: none; }
.yt-num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: .85rem; }
.yt-stop .nm { font-weight: 700; color: var(--text-main); font-size: 1rem; }
.yt-stop .sb { font-size: .8rem; color: var(--text-muted); margin-top: 2px; }
.yt-stop .why { font-size: .84rem; color: var(--text-muted); margin-top: 8px; line-height: 1.55; border-left: 3px solid var(--gold-primary); padding-left: 10px; }
.yt-stop .acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.yt-near { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.yt-near button { font-size: .74rem; padding: 5px 9px; border-radius: 999px; border: 1px dashed var(--gold-primary); background: transparent; color: var(--gold-primary); cursor: pointer; }
.yt-price { background: linear-gradient(135deg, rgba(124,58,237,.18), rgba(91,33,182,.08)); border: var(--border-strong); border-radius: var(--radius-md); padding: 20px; }
.yt-price .big { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 800; color: var(--sacred-gold); line-height: 1; }
.yt-free-note { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: rgba(34,197,94,.10);
  border: 1px solid rgba(34,197,94,.35); color: var(--text-main); font-size: .86rem; margin-bottom: 16px; }

/* ---- Booking page ---------------------------------------------------------- */
.bk-steps { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.bk-step { flex: 1 1 140px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg-card);
  border: var(--border-light); color: var(--text-muted); font-weight: 700; font-size: .86rem; cursor: pointer; }
.bk-step .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-card-inner); font-size: .8rem; }
.bk-step.on { border-color: var(--gold-primary); color: var(--text-main); }
.bk-step.on .n, .bk-step.done .n { background: var(--primary-solid); color: var(--on-primary); }
.bk-section { background: var(--bg-card); border: var(--border-light); border-radius: var(--radius-md); padding: 20px; margin-bottom: 16px; }
.bk-section h3 { font-family: var(--font-serif); color: var(--gold-primary); font-size: 1.25rem; margin-bottom: 4px; }
.bk-section .hint { font-size: .84rem; color: var(--text-muted); margin-bottom: 14px; line-height: 1.5; }
.bk-label { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--text-muted); margin: 14px 0 6px; }
.bk-input, .bk-select, .bk-textarea { width: 100%; padding: 12px 14px; border-radius: 10px; border: var(--border-strong); background: var(--bg-card-inner);
  color: var(--text-main); font-size: .95rem; font-family: var(--font-body); }
.bk-textarea { min-height: 80px; resize: vertical; }
.bk-row { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .bk-row.two { grid-template-columns: 1fr 1fr; } .bk-row.three { grid-template-columns: 2fr 1fr 1fr; } }
.bk-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.bk-opt { border: var(--border-light); background: var(--bg-card-inner); border-radius: 12px; padding: 12px; cursor: pointer; text-align: left; color: var(--text-main); font-family: var(--font-body); }
.bk-opt.on { border: 2px solid var(--gold-primary); background: var(--gold-faint); }
.bk-opt .t { font-weight: 700; font-size: .9rem; }
.bk-opt .s { font-size: .76rem; color: var(--text-muted); margin-top: 2px; }
.bk-addon { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; border: var(--border-light); background: var(--bg-card-inner); cursor: pointer; margin-bottom: 8px; }
.bk-addon.on { border-color: var(--gold-primary); background: var(--gold-faint); }
.bk-addon .chk { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--gold-primary); display: grid; place-items: center; flex: 0 0 auto; font-size: .8rem; color: var(--on-primary); }
.bk-addon.on .chk { background: var(--primary-solid); }
.bk-addon .t { font-weight: 700; font-size: .92rem; color: var(--text-main); }
.bk-addon .s { font-size: .8rem; color: var(--text-muted); }
.bk-addon .p { margin-left: auto; font-weight: 800; color: var(--sacred-gold); white-space: nowrap; font-size: .9rem; }
.bk-pax { display: inline-flex; align-items: center; border: var(--border-strong); border-radius: 10px; overflow: hidden; }
.bk-pax button { width: 42px; height: 44px; background: var(--bg-card-inner); color: var(--text-main); font-size: 1.2rem; border: none; cursor: pointer; }
.bk-pax span { min-width: 54px; text-align: center; font-weight: 800; color: var(--text-main); }
.bk-name-row { display: grid; grid-template-columns: 1fr 1fr 36px; gap: 8px; margin-bottom: 8px; }
.bk-summary { position: sticky; top: 88px; }
.bk-line { display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; padding: 6px 0; color: var(--text-muted); border-bottom: 1px dashed rgba(167,139,250,.2); }
.bk-line strong { color: var(--text-main); }
.bk-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; }
.bk-total .v { font-family: var(--font-serif); font-size: 1.9rem; font-weight: 800; color: var(--sacred-gold); }
.bk-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; }
.bk-confirm { text-align: center; padding: 34px 22px; }
.bk-confirm .ref { display: inline-block; font-family: monospace; font-size: 1.3rem; font-weight: 800; letter-spacing: 1px; padding: 8px 16px;
  border-radius: 10px; background: var(--gold-faint); border: var(--border-strong); color: var(--gold-primary); margin: 12px 0; }
.bk-timeline { text-align: left; max-width: 520px; margin: 18px auto 0; display: flex; flex-direction: column; gap: 10px; }
.bk-timeline div { display: flex; gap: 10px; font-size: .9rem; color: var(--text-muted); }
.bk-timeline b { color: var(--text-main); }
.bk-err { color: var(--accent-crimson); font-size: .82rem; margin-top: 6px; font-weight: 600; }

/* ---- Temple page extras ---------------------------------------------------- */
.tp-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 22px; }
@media (min-width: 600px) { .tp-actions { grid-template-columns: 1fr 1fr; } }
.tp-near { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.tp-near-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--bg-card-inner); }

/* ---- Sriyam.AI v2 ------------------------------------------------------------ */
.ai2-context { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 10px 16px; border-bottom: var(--border-light); background: var(--bg-card-inner); font-size: .8rem; color: var(--text-muted); }
.ai2-context select { background: var(--bg-card); color: var(--text-main); border: var(--border-light); border-radius: 8px; padding: 6px 8px; font-size: .8rem; font-family: var(--font-body); }
.ai2-temples { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.ai2-temple { padding: 10px 12px; border-radius: 10px; background: var(--bg-card); border: var(--border-light); }
.ai2-temple .nm { font-weight: 700; color: var(--text-main); font-size: .92rem; }
.ai2-temple .sb { font-size: .76rem; color: var(--text-muted); }
.ai2-temple .wy { font-size: .8rem; color: var(--text-muted); margin-top: 4px; line-height: 1.5; }
.ai2-map { height: 200px; border-radius: 12px; overflow: hidden; border: var(--border-light); margin: 10px 0; }
.ai2-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ai2-follow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ai2-follow button { font-size: .76rem; padding: 6px 10px; border-radius: 999px; border: var(--border-light); background: transparent; color: var(--gold-primary); cursor: pointer; }
.ai2-note { font-size: .72rem; color: var(--text-muted); margin-top: 8px; font-style: italic; }
.tirth-mic-btn.listening { color: var(--accent-crimson); animation: ai2pulse 1s infinite; }
@keyframes ai2pulse { 50% { opacity: .4; } }
.ai2-typing span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-primary); margin-right: 4px; animation: ai2dot 1.2s infinite; }
.ai2-typing span:nth-child(2) { animation-delay: .15s; } .ai2-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes ai2dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

/* Print: itinerary */
@media print {
  .basket-bar, .floating-contact-widget, .bottom-nav, .site-header, .site-footer { display: none !important; }
}

/* Floating WhatsApp: compact on phones so it never covers content / bottom nav */
@media (max-width: 899px) {
  .floating-contact-widget { bottom: 80px; right: 14px; padding: 12px; border-radius: 50%; }
  .floating-contact-widget span { display: none; }
  .floating-contact-widget svg { width: 26px; height: 26px; }
  .basket-bar { bottom: 80px; left: 16px; transform: none; max-width: calc(100% - 92px); }
}
.desktop-nav-links { gap: 6px; }
.nav-pill-btn { white-space: nowrap; }
@media (min-width: 900px) and (max-width: 1180px) { .nav-pill-btn { padding: 7px 12px; font-size: .82rem; } }

/* Map tiles: OSM tinted for dark mode */
[data-theme="dark"] .leaflet-tile-pane { filter: invert(1) hue-rotate(200deg) brightness(.82) contrast(.92) saturate(.55); }
.leaflet-container { background: var(--bg-card-inner) !important; font-family: var(--font-body); }

/* ---- v2.1: Murugan tradition, approx pins, collections ------------------ */
.v2-pill.mt { color: #fb7185; background: rgba(225,29,72,.12); border-color: rgba(225,29,72,.35); }
[data-theme="light"] .v2-pill.mt { color: #be123c; }
.v2-approx { font-size: .76rem; color: var(--text-muted); background: var(--bg-card-inner); border: 1px dashed var(--gold-primary); border-radius: 8px; padding: 6px 10px; margin: 8px 0; }
.pkg-noimg { display: grid; place-items: center; font-size: 3.4rem; background: var(--grad-primary); color: #fff; }

.col-tabs { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 14px; }
@media (min-width: 760px) { .col-tabs { grid-template-columns: repeat(3, 1fr); } }
.col-tab { display: flex; gap: 12px; align-items: center; text-align: left; padding: 14px 16px; border-radius: 14px; border: var(--border-light); background: var(--bg-card); color: var(--text-muted); cursor: pointer; font-family: var(--font-body); }
.col-tab .ico { font-size: 1.6rem; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--bg-card-inner); flex: 0 0 auto; }
.col-tab b { display: block; color: var(--text-main); font-size: .98rem; }
.col-tab small { display: block; font-size: .76rem; margin-top: 2px; }
.col-tab.on { border: 2px solid var(--gold-primary); background: var(--gold-faint); }
.col-tab.on .ico { background: var(--grad-primary); }
.col-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.col-views { display: inline-flex; border: var(--border-strong); border-radius: 10px; overflow: hidden; }
.col-views button { padding: 10px 12px; background: var(--bg-card); color: var(--text-muted); border: none; font-weight: 700; font-size: .82rem; cursor: pointer; font-family: var(--font-body); }
.col-views button.on { background: var(--primary-solid); color: var(--on-primary); }
.col-group-h { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-serif); font-size: 1.15rem; font-weight: 700; color: var(--gold-primary); margin: 18px 0 10px; padding-bottom: 6px; border-bottom: var(--border-light); }
.col-group-h span { font-family: var(--font-body); font-size: .78rem; color: var(--text-muted); font-weight: 600; }
.col-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.col-tile { position: relative; padding: 12px 12px 12px 14px; border-radius: 12px; background: var(--bg-card); border: var(--border-light); border-left: 4px solid var(--tc); cursor: pointer; min-height: 112px; transition: transform .15s, border-color .15s; }
.col-tile:hover, .col-tile:focus-visible { transform: translateY(-2px); border-color: var(--gold-primary); outline: none; }
.col-no { font-family: var(--font-serif); font-weight: 800; font-size: 1.1rem; color: var(--tc); line-height: 1; }
.col-nm { font-family: var(--font-tamil); font-weight: 700; font-size: .95rem; color: var(--text-main); margin-top: 6px; line-height: 1.35; padding-right: 22px; }
.col-en { font-size: .74rem; color: var(--text-muted); margin-top: 2px; line-height: 1.3; }
.col-meta { font-size: .7rem; color: var(--text-muted); margin-top: 6px; opacity: .85; }
.col-badge { position: absolute; right: 8px; bottom: 8px; font-size: .62rem; font-weight: 800; padding: 2px 6px; border-radius: 6px; background: var(--grad-primary); color: #fff; }
.col-add { position: absolute; right: 8px; top: 8px; width: 26px; height: 26px; border-radius: 8px; border: var(--border-strong); background: var(--bg-card-inner); color: var(--text-main); font-weight: 800; cursor: pointer; line-height: 1; }
.col-add.on { background: var(--primary-solid); color: var(--on-primary); border-color: transparent; }
.col-row { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--bg-card); border: 1px solid transparent; margin-bottom: 6px; cursor: pointer; }
.col-row:hover { border-color: var(--gold-primary); }
.col-row-no { min-width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .8rem; }
.col-row .nm { font-weight: 700; color: var(--text-main); font-size: .94rem; }
.col-row .sb { font-size: .76rem; color: var(--text-muted); }

/* ---- Lead capture (free PDF) ------------------------------------------ */
.lead-overlay { position: fixed; inset: 0; z-index: 10050; background: rgba(8, 4, 16, .72); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.lead-box { position: relative; width: 100%; max-width: 440px; background: var(--bg-card); border: var(--border-strong); border-radius: 20px; padding: 26px 22px 20px; box-shadow: var(--shadow-lg); }
.lead-box h2 { font-family: var(--font-serif); color: var(--text-main); font-size: 1.5rem; text-align: center; margin: 6px 0 6px; }
.lead-ico { width: 56px; height: 56px; margin: 0 auto; border-radius: 16px; display: grid; place-items: center; font-size: 1.7rem; background: var(--grad-primary); box-shadow: 0 0 26px var(--gold-glow); }
.lead-sub { text-align: center; color: var(--text-muted); font-size: .88rem; line-height: 1.5; margin-bottom: 4px; }
.lead-x { position: absolute; right: 12px; top: 10px; width: 34px; height: 34px; border-radius: 10px; border: none; background: transparent; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; }
.lead-x:hover { background: var(--bg-card-inner); color: var(--text-main); }
.lead-phone { display: grid; grid-template-columns: minmax(0, 132px) minmax(0, 1fr); gap: 8px; }
.lead-check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 4px; font-size: .82rem; color: var(--text-muted); cursor: pointer; }
.lead-check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--primary-solid); flex: 0 0 auto; }
.lead-fine { font-size: .72rem; color: var(--text-muted); text-align: center; margin-top: 10px; }
.lead-known { text-align: center; padding: 12px; border-radius: 12px; background: var(--bg-card-inner); margin-top: 8px; }
.lead-known b { display: block; color: var(--text-main); }
.lead-known span { font-size: .82rem; color: var(--text-muted); }

/* ---------- Temple artwork (collections, temple page, itinerary) ---------- */
.t-art { position: relative; overflow: hidden; border-radius: 10px; background: #2e1065; background: linear-gradient(160deg, color-mix(in srgb, var(--tc, #8b5cf6) 60%, #1e1033), #1e1033 88%); aspect-ratio: 2 / 3; flex: 0 0 auto; }
.t-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; display: block; }
.t-art-fb { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 10px; text-align: center; color: #fff; }
.t-art-fb span { font-size: 2rem; line-height: 1; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .4)); }
.t-art-fb b { font-family: var(--font-tamil); font-size: .8rem; line-height: 1.35; font-weight: 700; opacity: .95; }
.t-art.row { width: 40px; border-radius: 8px; }
.t-art.stop { float: right; width: 64px; margin: 0 0 8px 12px; border-radius: 8px; }
.t-art.row .t-art-fb b, .t-art.stop .t-art-fb b { display: none; }
.t-art.row .t-art-fb span, .t-art.stop .t-art-fb span { font-size: 1.2rem; }
.t-head { display: flex; gap: 18px; align-items: flex-start; }
.t-art.hero { width: 136px; border-radius: 14px; box-shadow: 0 10px 28px rgba(46, 16, 101, .28); }
@media (max-width: 520px) { .t-art.hero { width: 92px; } .t-head { gap: 12px; } }

.col-grid { grid-template-columns: repeat(auto-fill, minmax(152px, 1fr)); gap: 12px; }
.col-tile { padding: 0; overflow: hidden; min-height: 0; border-left: var(--border-light); border-top: 3px solid var(--tc); display: flex; flex-direction: column; }
.col-tile .t-art.tile { border-radius: 0; aspect-ratio: 4 / 5; width: 100%; }
.col-tile:hover .t-art img { transform: scale(1.04); }
.col-tile .t-art img { transition: transform .35s ease; }
.col-txt { padding: 10px 12px 12px; flex: 1; }
.col-tile .col-nm { margin-top: 0; padding-right: 0; }
.col-tile .col-no { position: absolute; left: 8px; top: 8px; z-index: 2; font-family: var(--font-body); font-size: .76rem; color: #fff; background: rgba(20, 8, 40, .72); padding: 5px 8px; border-radius: 8px; line-height: 1; }
.col-tile .col-add { z-index: 2; background: rgba(20, 8, 40, .72); color: #fff; border: 1px solid rgba(255, 255, 255, .4); }
.col-tile .col-add.on { background: var(--primary-solid); color: var(--on-primary); border-color: transparent; }
.col-tile .col-badge { z-index: 2; bottom: auto; top: 40px; right: 8px; }
.col-row { align-items: center; }

/* ---- v2.3: service tiers (plan yourself / guided on request / fixed departure) ---- */
.svc-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; line-height: 1.5; white-space: nowrap; vertical-align: middle; color: var(--text-main); border: 1px solid transparent; }
.svc-self { background: rgba(100, 116, 139, .14); border-color: rgba(100, 116, 139, .38); }
.svc-guided { background: rgba(16, 185, 129, .16); border-color: rgba(16, 185, 129, .5); }
.svc-fixed { background: rgba(245, 158, 11, .18); border-color: rgba(245, 158, 11, .55); }
.svc-banner { display: flex; gap: 8px 10px; align-items: flex-start; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; background: var(--bg-card); border: var(--border-light); margin: -4px 0 16px; font-size: .88rem; line-height: 1.55; color: var(--text-main); }
.svc-banner > span:last-child { flex: 1 1 260px; }
.yt-free-note .svc-badge { margin-right: 6px; }

/* ---- v2.4: fixed departures (top banner, home card, departure page) ---- */
.fx-topbar { position: relative; z-index: 101; color: #fff; background: linear-gradient(90deg, #6d28d9, #c026d3, #ea580c, #d97706, #c026d3, #6d28d9); background-size: 300% 100%; animation: fxFlow 14s linear infinite; box-shadow: 0 2px 14px rgba(109, 40, 217, .35); }
.fx-tb-in { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 14px; padding: 9px 16px; max-width: 1280px; margin: 0 auto; color: #fff; text-decoration: none; font-size: .88rem; line-height: 1.35; }
.fx-tb-tag { display: inline-flex; align-items: center; gap: 7px; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .5); font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.fx-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #fde047; animation: fxPulse 1.6s ease-out infinite; flex: 0 0 auto; }
.fx-tb-title { font-weight: 800; font-size: .98rem; }
.fx-tb-price { font-weight: 900; font-size: 1.05rem; color: #fef08a; }
.fx-tb-price small { margin-left: 2px; font-size: .72rem; font-weight: 600; color: #fff; opacity: .85; }
.fx-tb-cta { padding: 6px 14px; border-radius: 999px; background: #fff; color: #6d28d9; font-weight: 800; white-space: nowrap; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); transition: transform .15s ease; }
.fx-tb-in:hover .fx-tb-cta, .fx-tb-in:focus-visible .fx-tb-cta { transform: translateY(-1px) scale(1.03); }
body.on-map .fx-topbar { display: none; }
@keyframes fxFlow { from { background-position: 0% 0; } to { background-position: 300% 0; } }
@keyframes fxPulse { 0% { box-shadow: 0 0 0 0 rgba(253, 224, 71, .85); } 70% { box-shadow: 0 0 0 8px rgba(253, 224, 71, 0); } 100% { box-shadow: 0 0 0 0 rgba(253, 224, 71, 0); } }
@media (max-width: 720px) { .fx-tb-in { gap: 6px 10px; padding: 8px 12px; font-size: .82rem; } .fx-tb-meta, .fx-tb-tag { display: none; } .fx-tb-title { font-size: .9rem; } }

.fx-home-wrap { padding: 0 16px; }
.fx-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; align-items: center; max-width: 1180px; margin: 18px auto 26px; padding: 24px 26px; border-radius: 22px; overflow: hidden; cursor: pointer;
  background: radial-gradient(120% 140% at 0% 0%, rgba(245, 158, 11, .20), transparent 55%), radial-gradient(120% 140% at 100% 100%, rgba(192, 38, 211, .22), transparent 60%), var(--bg-card);
  border: 2px solid rgba(245, 158, 11, .7); box-shadow: 0 0 0 4px rgba(245, 158, 11, .12), 0 18px 50px rgba(109, 40, 217, .25); }
.fx-hero.on-page { cursor: default; margin-top: 0; }
.fx-hero-tag { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; font-size: .74rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--text-main); background: rgba(245, 158, 11, .18); border: 1px solid rgba(245, 158, 11, .6); }
.fx-hero h2 { margin: 10px 0 6px; font-family: var(--font-serif); font-size: clamp(1.6rem, 3.6vw, 2.4rem); line-height: 1.15; color: var(--text-main); }
.fx-hero-when { margin-bottom: 12px; font-size: .95rem; font-weight: 600; line-height: 1.6; color: var(--text-main); }
.fx-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.fx-stats span { padding: 4px 12px; border-radius: 999px; background: var(--bg-card-inner); border: var(--border-light); font-size: .84rem; font-weight: 700; color: var(--text-main); }
.fx-inc-row { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 16px; font-size: .9rem; font-weight: 600; color: var(--text-main); }
.fx-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.fx-price { font-size: 2rem; font-weight: 900; line-height: 1; color: var(--text-main); }
.fx-price small { margin-left: 3px; font-size: .85rem; font-weight: 600; color: var(--text-muted); }
.fx-hero-art { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.fx-hero-art img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 12px; box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
.fx-hero-art img:nth-child(even) { transform: translateY(14px); }
@media (max-width: 760px) { .fx-hero { grid-template-columns: minmax(0, 1fr); padding: 18px 16px; gap: 16px; } .fx-hero-art { order: -1; } .fx-hero-art img:nth-child(even) { transform: none; } .fx-price { font-size: 1.7rem; } }

.fx-page { max-width: 1180px; margin: 0 auto; }
.fx-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 22px; align-items: start; }
.fx-grid aside { position: sticky; top: 90px; }
@media (max-width: 900px) { .fx-grid { grid-template-columns: minmax(0, 1fr); } .fx-grid aside { position: static; } }
.fx-inc ul { list-style: none; display: grid; gap: 6px; margin: 10px 0; padding: 0; font-size: .92rem; color: var(--text-main); }
.fx-h3 { margin: 22px 0 10px; font-family: var(--font-serif); font-size: 1.4rem; color: var(--text-main); }
.fx-day { margin-bottom: 14px; padding: 14px 16px; border-radius: 16px; background: var(--bg-card); border: var(--border-light); }
.fx-day-h { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; padding-bottom: 10px; border-bottom: var(--border-light); }
.fx-day-h b { flex: 1; font-size: 1.1rem; color: var(--text-main); }
.fx-day-n { padding: 3px 10px; border-radius: 999px; background: var(--primary-solid); color: #fff; font-size: .74rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.fx-it { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px dashed rgba(127, 127, 127, .25); }
.fx-it:last-child { border-bottom: 0; }
.fx-time { padding-top: 2px; font-size: .82rem; font-weight: 800; white-space: nowrap; color: var(--text-muted); }
.fx-what-t { font-size: .95rem; line-height: 1.45; color: var(--text-main); }
.fx-it:not(.has-t) .fx-what-t { font-size: .88rem; color: var(--text-muted); }
.fx-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.fx-thumb { display: flex; flex-direction: column; width: 86px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.fx-thumb img { width: 86px; height: 112px; object-fit: cover; border-radius: 10px; border-bottom: 3px solid var(--tc); background: var(--bg-card-inner); }
.fx-thumb span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; font-size: .7rem; line-height: 1.25; color: var(--text-main); }
.fx-book { border: 2px solid rgba(245, 158, 11, .65); }
.fx-book .fx-price { margin: 8px 0 4px; }
.fx-seats { margin-bottom: 6px; font-size: .84rem; font-weight: 800; color: var(--text-main); }
.fx-total { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 6px; padding: 10px 12px; border-radius: 10px; background: var(--bg-card-inner); color: var(--text-main); }
.fx-total b { font-size: 1.2rem; }
.fx-done { text-align: center; color: var(--text-main); }
.fx-done p { margin: 6px 0 12px; font-size: .9rem; color: var(--text-muted); }
.fx-mini { margin-left: 6px; }
@media (prefers-reduced-motion: reduce) { .fx-topbar, .fx-dot { animation: none; } }

/* ---- v2.5: mobile polish (logo-only header, no sound button, 4-item bottom nav, no overflow) ---- */
.split-layout > *, .v2-grid-2 > *, .tirth-hero-grid > *, .fx-grid > *, .bk-row > * { min-width: 0; }
@media (max-width: 959px) { .split-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 991px) { .tirth-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; } }
@media (max-width: 899px) {
  .site-header { height: 60px; padding: 0 14px; }
  .header-brand, #headerScanBtn { display: none !important; }
  .header-logo-img { height: 40px; }
  .header-actions { gap: 8px; }
  .btn-circle { width: 38px; height: 38px; }
  .lang-toggle-btn { padding: 6px 12px; font-size: .8rem; }
  h1, h2, h3, h4, .col-nm, .t-head *, .hero-title-ta, .tirth-hero-title { overflow-wrap: anywhere; }
  .bottom-nav { padding: 0 6px; }
  .bottom-nav .nav-item { flex: 1 1 0; min-width: 0; }
  .bottom-nav .nav-item span { font-size: .7rem; white-space: nowrap; }
  .hero-banner { padding: 28px 16px; }
  .hero-title-ta { font-size: 2.1rem; }
  .hero-title-en { font-size: 1.1rem; margin-bottom: 12px; }
  .hero-subtitle { font-size: .95rem; margin-bottom: 20px; }
  .hero-stats-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; margin-bottom: 22px; }
  .stat-val { font-size: 1.7rem; }
  .stat-lbl { font-size: .7rem; text-align: center; }
  .floating-booking-bar { padding: 16px; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .page-section { padding: 28px 16px; }
  .section-title { font-size: 1.45rem; line-height: 1.25; }
  .v2-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .v2-pillar { padding: 12px; }
  .v2-pillar .ico { width: 36px; height: 36px; font-size: 1.1rem; margin-bottom: 8px; }
  .v2-pillar h4 { font-size: .9rem; }
  .v2-pillar p { font-size: .78rem; }
  .packages-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 12px -16px 0; padding: 4px 16px 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .packages-grid::-webkit-scrollbar { display: none; }
  .packages-grid > .package-card { flex: 0 0 84%; scroll-snap-align: start; padding: 16px; }
  .pkg-card-img { height: 150px; }
  .themes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .theme-card { padding: 14px 10px; }
  .planner-card { padding: 18px 14px; }
  .planner-theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .col-tab { padding: 10px 12px; }
  .col-tab .ico { width: 36px; height: 36px; font-size: 1.3rem; }
  .col-tab small { display: none; }
  .col-nm { font-size: .8rem; line-height: 1.3; }
  .tirth-hero-title { font-size: 1.9rem; }
  .yt-free-note { flex-wrap: wrap; align-items: flex-start; }
  .yt-free-note > span:last-child { flex: 1 1 220px; min-width: 0; }
  .footer-brand-title { font-size: 1.15rem; line-height: 1.4; }
  .site-footer { padding-left: 16px; padding-right: 16px; }
  .v2-btn { white-space: normal; }
}
.t-art-fb b { overflow-wrap: anywhere; }
@media (max-width: 899px) {
  .packages-grid { scroll-padding: 0 16px; }
  .page-section h2 { font-size: clamp(1.35rem, 6vw, 1.7rem); line-height: 1.25; }
}
@media (max-width: 899px) {
  .fx-grid aside { order: -1; }
  #app p, #app li { overflow-wrap: break-word; }
}
@media (max-width: 899px) {
  .t-head h1 { font-size: clamp(1.3rem, 6vw, 1.7rem) !important; }
  .t-head { gap: 12px; }
}
