/* Naada Habba 2026 event popup — markup is injected by assets/js/jhs-event-popup.js
   Visual language: Mysuru Dasara — the illuminated palace, the Jamboo Savari elephant
   with its golden ambari, and Karnataka's red-and-yellow. */
@property --nh-a {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.nh-pop {
  --nh-navy: #1a2653;
  --nh-ink: #001c54;
  --nh-red: #c1121f;
  --nh-yellow: #ffd23f;
  --nh-gold: #ffd76a;
  --nh-maroon: #7a1330;
  --nh-royal: #2d0b3f;
  --nh-cream: #fffaf1;
  position: fixed;
  inset: 0;
  z-index: 2147483600;   /* above the site's floating call/chat/tour buttons */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  visibility: hidden;
  pointer-events: none;
  font-family: "Plus Jakarta Sans", "Nunito", sans-serif;
}
.nh-pop.is-open { visibility: visible; pointer-events: auto; }

.nh-pop__ov {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(45, 11, 63, .55), rgba(8, 6, 24, .8));
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  opacity: 0;
  transition: opacity .45s ease;
}
.nh-pop.is-open .nh-pop__ov { opacity: 1; }

/* ---------- panel + animated gold border ---------- */
.nh-pop__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  width: min(860px, 100%);
  max-height: calc(100vh - 32px);
  border-radius: 26px;
  background: var(--nh-cream);
  box-shadow:
    0 0 0 1px rgba(255, 215, 106, .25),
    0 40px 90px -25px rgba(0, 0, 0, .6),
    0 0 60px -10px rgba(255, 190, 60, .4);
  opacity: 0;
  transform: translateY(40px) scale(.92);
  transition: opacity .5s ease, transform .7s cubic-bezier(.2, 1.25, .3, 1);
}
.nh-pop.is-open .nh-pop__panel { opacity: 1; transform: none; }
.nh-pop__panel::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 3;
  padding: 2px;
  border-radius: 28px;
  background: conic-gradient(from var(--nh-a), var(--nh-gold), transparent 20%, var(--nh-red) 35%, transparent 55%, var(--nh-yellow) 75%, transparent 90%, var(--nh-gold));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
  animation: nh-border 6s linear infinite;
}

/* ---------- left: Mysuru Dasara night ---------- */
.nh-pop__art {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 520px;
  padding: 0 26px 30px;
  border-radius: 26px 0 0 26px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 38% at 50% 50%, rgba(255, 196, 84, .55), transparent 70%),
    linear-gradient(180deg, #1c0830 0%, var(--nh-royal) 30%, #5a0f33 64%, var(--nh-maroon) 100%);
}
/* soft haze of light rising from the palace */
.nh-pop__art::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  top: 36%;
  height: 34%;
  background: radial-gradient(ellipse at 50% 60%, rgba(255, 210, 110, .35), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  animation: nh-haze 3.2s ease-in-out infinite alternate;
}

/* night sky */
.nh-pop__stars { position: absolute; inset: 0; pointer-events: none; }
.nh-pop__stars i {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #fff6d6;
  box-shadow: 0 0 6px rgba(255, 246, 214, .9);
  animation: nh-star 3s ease-in-out infinite;
}

/* Karnataka bunting */
.nh-pop__bunting {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 50px;
  transform-origin: 50% 0;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .3));
  animation: nh-sway 4s ease-in-out infinite alternate;
}

/* golden sparkles (fireworks glints) */
.nh-pop__sparks { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.nh-pop__sparks b {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #ffe7a3;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: nh-twinkle 2.4s ease-in-out infinite;
}

/* palace + elephant */
.nh-pop__scene {
  position: absolute;
  left: 0;
  right: 0;
  top: 17%;
  height: 50%;
  z-index: 1;
  pointer-events: none;
}
.nh-pop__palace {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 108%;
  max-width: 470px;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 14px rgba(255, 200, 90, .35));
}
/* "chasing" festival lights: the bulbs run along the palace outline */
.nh-pop__bulbs {
  filter: drop-shadow(0 0 2.5px rgba(255, 220, 130, .95));
  animation: nh-chase 1.1s linear infinite, nh-bulbs 1.8s ease-in-out infinite alternate;
}

/* Jamboo Savari procession: the elephant walks across in front of the palace */
.nh-pop__parade {
  position: absolute;
  left: 0;
  bottom: -5%;
  width: 42%;
  max-width: 190px;
  animation: nh-parade 16s linear infinite;
}
.nh-pop__elephant {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  transform: scaleX(-1);                     /* face the direction of travel */
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .45));
}
.nh-ele-body { animation: nh-bob .7s ease-in-out infinite; }
.nh-ele-leg,
.nh-ele-trunk,
.nh-ele-ear,
.nh-ele-tail { transform-box: fill-box; }
.nh-ele-leg { transform-origin: 50% 0; animation: nh-leg .7s ease-in-out infinite alternate; }
.nh-ele-leg--b { animation-delay: -.35s; }
.nh-ele-trunk { transform-origin: 85% 0; animation: nh-trunk 1.4s ease-in-out infinite alternate; }
.nh-ele-ear { transform-origin: 20% 20%; animation: nh-ear 1.2s ease-in-out infinite alternate; }
.nh-ele-tail { transform-origin: 0 0; animation: nh-tail .9s ease-in-out infinite alternate; }

/* fireworks */
.nh-pop__fireworks { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.nh-pop__fw { position: absolute; width: 0; height: 0; }
.nh-pop__fw i {
  position: absolute;
  left: -1px;
  top: -5px;
  width: 2px;
  height: 10px;
  border-radius: 2px;
  background: linear-gradient(180deg, #fffbe6, var(--c));
  box-shadow: 0 0 6px var(--c);
  opacity: 0;
  transform: rotate(var(--r)) translateY(0) scaleY(.3);
  animation: nh-burst 3.3s ease-out infinite;
  animation-delay: var(--d);
}

/* text */
.nh-pop__eyebrow {
  position: relative;
  z-index: 2;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 10px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 215, 106, .55);
  border-radius: 999px;
  background: rgba(45, 11, 63, .55);
  color: var(--nh-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.nh-pop__kn {
  position: relative;
  z-index: 2;
  margin: 0 0 2px;
  color: var(--nh-yellow);
  font-family: "Noto Sans Kannada", "Plus Jakarta Sans", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .45);
}
.nh-pop__title {
  position: relative;
  z-index: 2;
  margin: 0;
  color: #fff;
  font-family: "Yatra One", "Plus Jakarta Sans", serif;
  font-size: clamp(40px, 5.4vw, 54px);
  font-weight: 400;
  line-height: 1;
  text-shadow: 0 2px 0 var(--nh-red), 0 6px 22px rgba(20, 4, 30, .7);
}
.nh-pop__year {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
  color: var(--nh-gold);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .5em;
  text-indent: .5em;
}
.nh-pop__year::before,
.nh-pop__year::after {
  content: "";
  width: 38px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--nh-red), var(--nh-yellow));
}
.nh-pop__year::after { background: linear-gradient(270deg, var(--nh-red), var(--nh-yellow)); }

/* staggered entrance */
.nh-pop__eyebrow,
.nh-pop__kn,
.nh-pop__title,
.nh-pop__year,
.nh-pop__body > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.nh-pop__scene { opacity: 0; transform: translateY(18px); transition: opacity .9s ease .15s, transform .9s ease .15s; }
.nh-pop.is-open .nh-pop__scene { opacity: 1; transform: none; }
.nh-pop.is-open .nh-pop__eyebrow,
.nh-pop.is-open .nh-pop__kn,
.nh-pop.is-open .nh-pop__title,
.nh-pop.is-open .nh-pop__year,
.nh-pop.is-open .nh-pop__body > * { opacity: 1; transform: none; }
.nh-pop.is-open .nh-pop__eyebrow { transition-delay: .3s; }
.nh-pop.is-open .nh-pop__kn      { transition-delay: .38s; }
.nh-pop.is-open .nh-pop__title   { transition-delay: .45s; }
.nh-pop.is-open .nh-pop__year    { transition-delay: .55s; }
.nh-pop.is-open .nh-pop__body > :nth-child(1) { transition-delay: .35s; }
.nh-pop.is-open .nh-pop__body > :nth-child(2) { transition-delay: .42s; }
.nh-pop.is-open .nh-pop__body > :nth-child(3) { transition-delay: .5s; }
.nh-pop.is-open .nh-pop__body > :nth-child(4) { transition-delay: .58s; }
.nh-pop.is-open .nh-pop__body > :nth-child(5) { transition-delay: .66s; }
.nh-pop.is-open .nh-pop__body > :nth-child(6) { transition-delay: .74s; }

/* ---------- right: details ---------- */
.nh-pop__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 38px 34px 30px;
  overflow-y: auto;
  border-radius: 0 26px 26px 0;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 210, 63, .16), transparent 45%),
    var(--nh-cream);
}
.nh-pop__kicker {
  margin: 0;
  color: var(--nh-red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.nh-pop__head {
  margin: -8px 0 0;
  color: var(--nh-ink);
  font-size: 23px;
  font-weight: 800;
  line-height: 1.25;
}
.nh-pop__head em { color: var(--nh-red); font-style: normal; }
.nh-pop__lead {
  margin: 0;
  color: #5b6474;
  font-size: 14.5px;
  line-height: 1.6;
}
.nh-pop__facts {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 6px 14px;
  border: 1px solid #f1e0c0;
  border-radius: 16px;
  background: #fff;
  list-style: none;
}
.nh-pop__facts li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  color: var(--nh-ink);
  font-size: 14.5px;
  font-weight: 700;
}
.nh-pop__facts li + li { border-top: 1px dashed #efdcb8; }
.nh-pop__facts small {
  display: block;
  color: #7b8494;
  font-size: 12.5px;
  font-weight: 500;
}
.nh-pop__ico {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, #fff4cf, #ffe29a);
  color: var(--nh-red);
}
.nh-pop__ico svg { width: 18px; height: 18px; }

.nh-pop__count {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.nh-pop__count div {
  position: relative;
  overflow: hidden;
  padding: 10px 4px 8px;
  border-radius: 12px;
  background: linear-gradient(160deg, #3d1452, var(--nh-royal));
  color: #fff;
  text-align: center;
}
.nh-pop__count div::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--nh-red) 50%, var(--nh-yellow) 50%);
}
.nh-pop__count b {
  display: block;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.nh-pop__count b.is-tick { animation: nh-tick .35s ease; }
.nh-pop__count span {
  color: rgba(255, 255, 255, .7);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.nh-pop__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nh-pop__cta {
  position: relative;
  display: inline-flex;
  flex: 1 1 auto;
  gap: 8px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 15px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #9e0f28, var(--nh-red) 45%, #e8a317);
  box-shadow: 0 12px 26px -10px rgba(193, 18, 31, .7);
  color: #fff !important;
  font-size: 15.5px;
  font-weight: 800;
  text-decoration: none !important;
  animation: nh-pulse 2.4s ease-in-out infinite 1.5s;
  transition: transform .2s ease, box-shadow .2s ease;
}
.nh-pop__cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: skewX(-20deg);
  animation: nh-shine 3.2s ease-in-out infinite 1.2s;
}
.nh-pop__cta:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(193, 18, 31, .8); }
.nh-pop__cta svg { width: 16px; height: 16px; transition: transform .2s ease; }
.nh-pop__cta:hover svg { transform: translateX(3px); }
.nh-pop__later {
  padding: 10px 14px;
  border: 0;
  background: none;
  color: #7b8494;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.nh-pop__later:hover { color: var(--nh-ink); }

.nh-pop__x {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .14);
  color: var(--nh-ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: transform .25s ease;
}
.nh-pop__x:hover { transform: rotate(90deg); }
.nh-pop__x:focus-visible,
.nh-pop__cta:focus-visible,
.nh-pop__later:focus-visible { outline: 3px solid var(--nh-yellow); outline-offset: 2px; }

@keyframes nh-border { to { --nh-a: 360deg; } }
@keyframes nh-star { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes nh-bulbs { from { opacity: .72; } to { opacity: 1; } }
@keyframes nh-haze { from { opacity: .7; } to { opacity: 1; } }
@keyframes nh-sway { from { transform: rotate(-1deg); } to { transform: rotate(1deg); } }
@keyframes nh-chase { to { stroke-dashoffset: -13; } }
/* percentages of the art panel: enter from the left edge, leave past the right */
@keyframes nh-parade { from { left: -44%; } to { left: 104%; } }
@keyframes nh-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.5px); } }
@keyframes nh-leg { from { transform: rotate(9deg); } to { transform: rotate(-9deg); } }
@keyframes nh-trunk { from { transform: rotate(-6deg); } to { transform: rotate(10deg); } }
@keyframes nh-ear { from { transform: rotate(0deg) scaleX(1); } to { transform: rotate(-6deg) scaleX(1.08); } }
@keyframes nh-tail { from { transform: rotate(-12deg); } to { transform: rotate(14deg); } }
@keyframes nh-burst {
  0%   { opacity: 0; transform: rotate(var(--r)) translateY(0) scaleY(.3); }
  8%   { opacity: 1; }
  45%  { opacity: 1; transform: rotate(var(--r)) translateY(-30px) scaleY(1); }
  70%  { opacity: 0; transform: rotate(var(--r)) translateY(-40px) scaleY(.4); }
  100% { opacity: 0; transform: rotate(var(--r)) translateY(-40px) scaleY(.4); }
}
@keyframes nh-twinkle { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1); } }
@keyframes nh-shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
@keyframes nh-pulse {
  0%, 100% { box-shadow: 0 12px 26px -10px rgba(193, 18, 31, .7), 0 0 0 0 rgba(255, 210, 63, .45); }
  50%      { box-shadow: 0 12px 26px -10px rgba(193, 18, 31, .7), 0 0 0 10px rgba(255, 210, 63, 0); }
}
@keyframes nh-tick { from { transform: translateY(-6px); opacity: .3; } to { transform: none; opacity: 1; } }

/* ---------- small screens: stack art above details ---------- */
/* ---------- phones (and landscape phones): bottom sheet, art stacked above details ---------- */
@media (max-width: 720px), (max-height: 500px) and (max-width: 950px) {
  .nh-pop { align-items: flex-end; padding: 0; }
  .nh-pop__panel {
    grid-template-columns: minmax(0, 1fr);
    max-height: 94vh;
    max-height: 94dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
  }
  .nh-pop__panel::before { display: none; }
  .nh-pop__art { min-height: clamp(360px, 108vw, 460px); padding: 0 18px 22px; border-radius: 24px 24px 0 0; }
  @media (orientation: landscape) { .nh-pop__art { min-height: 340px; } .nh-pop__parade { width: 22%; } }
  .nh-pop__scene { top: 11%; height: 46%; }
  .nh-pop__palace { width: 100%; }
  .nh-pop__parade { width: 36%; bottom: -4%; }
  .nh-pop__bunting { height: 40px; }
  .nh-pop__eyebrow { margin-bottom: 6px; font-size: 10px; letter-spacing: .1em; }
  .nh-pop__kn { font-size: clamp(17px, 5vw, 20px); }
  .nh-pop__title { font-size: clamp(32px, 10.5vw, 40px); }
  .nh-pop__year { font-size: 14px; }
  .nh-pop__body { gap: 14px; padding: 22px 18px calc(24px + env(safe-area-inset-bottom)); overflow: visible; border-radius: 0; }
  .nh-pop__head { font-size: clamp(18px, 5.4vw, 21px); }
  .nh-pop__lead { font-size: 14px; }
  .nh-pop__facts { padding: 4px 12px; }
  .nh-pop__facts li { font-size: 14px; }
  .nh-pop__count { gap: 6px; }
  .nh-pop__count b { font-size: clamp(17px, 5.2vw, 20px); }
  .nh-pop__cta { width: 100%; padding: 16px 20px; font-size: 16px; }
  .nh-pop__later { width: 100%; padding: 12px; }
  .nh-pop__x { width: 44px; height: 44px; top: 12px; right: 12px; font-size: 26px; }  /* touch-size target */
}

/* small phones (iPhone SE, 320–380 px) */
@media (max-width: 380px) {
  .nh-pop__art { padding: 0 14px 18px; }
  .nh-pop__eyebrow { padding: 5px 10px; font-size: 9px; letter-spacing: .06em; }
  .nh-pop__body { padding-left: 14px; padding-right: 14px; }
  .nh-pop__facts small { font-size: 12px; }
  .nh-pop__ico { width: 32px; height: 32px; }
  .nh-pop__count span { font-size: 9px; letter-spacing: .06em; }
}

/* landscape phones and short screens: keep both columns, let the panel scroll */
@media (min-width: 721px) and (min-height: 501px) and (max-height: 640px) {
  .nh-pop__panel { max-height: calc(100vh - 20px); overflow-y: auto; }
  .nh-pop__art { min-height: 0; padding-bottom: 20px; }
  .nh-pop__scene { top: 12%; height: 52%; }
  .nh-pop__title { font-size: 38px; }
  .nh-pop__body { gap: 12px; padding: 26px 26px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .nh-pop__panel, .nh-pop__ov, .nh-pop__eyebrow, .nh-pop__kn, .nh-pop__title, .nh-pop__year, .nh-pop__body > * {
    transition: opacity .2s ease;
    transform: none !important;
  }
  .nh-pop__scene { transition: opacity .2s ease; transform: none; }
  .nh-pop__panel::before, .nh-pop__art::after, .nh-pop__stars i, .nh-pop__bunting, .nh-pop__sparks b,
  .nh-pop__bulbs, .nh-pop__parade, .nh-ele-body, .nh-ele-leg, .nh-ele-trunk, .nh-ele-ear, .nh-ele-tail,
  .nh-pop__fw i, .nh-pop__cta, .nh-pop__cta::after, .nh-pop__count b.is-tick { animation: none; }
  .nh-pop__parade { left: 50%; transform: translateX(-50%); }   /* elephant stands still, centred */
  .nh-pop__fireworks { display: none; }
}

/* while the popup is open, the site's floating chat / call / tour / scroll-top buttons step aside */
.nh-pop-open .jhsw-fab,
.nh-pop-open .jhsw-tip,
.nh-pop-open .jhs-cfab-btn,
.nh-pop-open .jhs-tour-fab,
.nh-pop-open .jhs-tour-tip,
.nh-pop-open .scroll-top { visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; }
