/* =========================================================
   Bazaar page. Uses the site tokens from styles.css.
   Each state panel (.bx-state) sets --a, --a2, --tint, --band
   and --motif (its folk-art strip), see bazaar.js.
   ========================================================= */
.bz-page { background: #fffaf3; }
html { scroll-padding-top: 70px; }

/* ---------- Top bar ---------- */
.bz-top { background: var(--paper); border-bottom: 1px solid var(--hair); }
.bz-top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; }
.bz-logo img { height: 44px; width: auto; display: block; }
.bz-back { font-family: var(--sans); font-size: .82rem; font-weight: 600; color: var(--kumkum); }
.bz-back:hover { text-decoration: underline; }

/* ---------- Hero: real photos of monuments + bazaar crafts ---------- */
.hx { position: relative; overflow: hidden; color: #1b1a2e; padding: 56px 0 120px;
  background:
    radial-gradient(ellipse 55% 60% at 78% 30%, rgba(255,214,150,.55), transparent 70%),
    radial-gradient(ellipse 60% 50% at 85% 10%, rgba(196,220,245,.8), transparent 70%),
    linear-gradient(100deg, #fffaf2 0%, #fff4e4 45%, #fdebd3 70%, #f3efe8 100%); }
.hx-mandala { position: absolute; width: 300px; color: #e8a04a; opacity: .28; pointer-events: none; animation: hx-spin 120s linear infinite; }
.hx-m1 { top: -140px; left: -140px; } .hx-m2 { top: -150px; right: -150px; }
@keyframes hx-spin { to { transform: rotate(360deg); } }
.hx-skyline { position: absolute; left: 0; bottom: 70px; width: 46%; max-width: 620px; height: 150px; color: #f0b778; opacity: .2; }
.hx-wave { position: absolute; left: 0; bottom: 0; width: 100%; height: 96px; }

.hx-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px; align-items: center; }
.hx-kicker { font: 600 .82rem var(--sans); letter-spacing: .32em; text-transform: uppercase; color: #1b1a2e; }
.hx-kicker i { font-style: normal; color: #e8731c; margin: 0 4px; }
.hx-title { font-family: var(--serif-display); font-weight: 900; font-size: clamp(3rem, 6.4vw, 5.4rem); line-height: .98; letter-spacing: -.02em; margin-top: 14px; }
.hx-t1 { color: #14224a; } .hx-t2 { color: #e0601a; }
.hx-hi { font-family: "Yatra One", var(--deva); font-size: 1.5rem; color: #b3361f; margin-top: 8px; }
.hx-swoosh { display: block; width: 260px; height: 18px; margin: 4px 0 0; }
.hx .bz-lede { font-family: var(--sans); font-size: 1.08rem; line-height: 1.6; color: #2a2a3a; margin: 16px 0 0; max-width: 520px; }
.hx .bz-lede a { color: #e0601a; font-weight: 600; border-bottom: 2px solid #f3b06a; }
.hx-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 22px; }
.hx-cta { display: inline-flex; align-items: center; gap: 10px; background: linear-gradient(180deg, #ef6f1f, #d9520f); color: #fff; font: 700 1.02rem var(--sans);
  padding: 14px 26px; border-radius: 999px; box-shadow: 0 12px 24px -10px rgba(217,82,15,.7); transition: transform .2s, box-shadow .2s; }
.hx-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -10px rgba(217,82,15,.8); }
.hx-cta svg { transition: transform .2s; } .hx-cta:hover svg { transform: translateX(3px); }
.hx .bz-stats { font-family: var(--sans); font-size: .88rem; color: #4a4558; margin: 0; }
.hx .bz-stats b { color: #14224a; font-size: 1.1rem; } .hx .bz-stats span { color: #e8731c; margin: 0 6px; }
.hx .bz-search { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; max-width: 500px; background: #fff; color: #7a6a5e; border: 1px solid #f0d9bd; border-radius: 999px; padding: 0 18px; box-shadow: 0 10px 26px -16px rgba(120,60,10,.5); }
.hx .bz-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 .95rem var(--sans); color: var(--ink); padding: 13px 0; }
.hx .bz-search:focus-within { border-color: #e8731c; box-shadow: 0 0 0 3px rgba(232,115,28,.2); }
.hx .bz-try { font-family: var(--sans); font-size: .78rem; color: #6a5e56; margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.hx .bz-try button { font: 600 .76rem var(--sans); color: #6b2e0e; background: #fff1df; border: 1px solid #f3cfa4; border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.hx .bz-try button:hover { background: #e8731c; border-color: #e8731c; color: #fff; }
.hx .bz-result { font-family: var(--sans); font-size: .85rem; font-weight: 600; color: #e0601a; min-height: 1.2em; margin-top: 6px; }
.hx-features { list-style: none; display: flex; flex-wrap: wrap; margin-top: 18px; }
.hx-features li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font: 600 .78rem/1.25 var(--sans); color: #2a2a3a; padding: 0 18px; border-left: 1px solid #ecd4b6; }
.hx-features li:first-child { padding-left: 0; border-left: 0; }
.hx-features svg { width: 38px; height: 38px; fill: none; stroke: #e0601a; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* the photo composition */
.hx-visual { position: relative; aspect-ratio: 1 / .86; min-height: 420px; }
.hx-sun { position: absolute; top: 8%; left: 40%; width: 46%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255,226,170,.9), rgba(255,200,120,0) 70%); }
.hx-mon { position: absolute; object-fit: cover; filter: saturate(1.08) contrast(1.02); }
/* soft, feathered edges so the photos melt into the sky */
.hx-redfort { left: -8%; top: 4%; width: 50%; height: 74%; object-position: 50% 30%;
  -webkit-mask-image: radial-gradient(closest-side, #000 58%, transparent 100%); mask-image: radial-gradient(closest-side, #000 58%, transparent 100%); }
.hx-taj { right: -14%; top: -6%; width: 78%; height: 76%; object-position: 50% 40%;
  -webkit-mask-image: radial-gradient(closest-side, #000 58%, transparent 100%); mask-image: radial-gradient(closest-side, #000 58%, transparent 100%); }
.hx-gate { left: 18%; top: -10%; width: 48%; height: 84%; object-position: 50% 25%;
  -webkit-mask-image: radial-gradient(closest-side, #000 58%, transparent 100%); mask-image: radial-gradient(closest-side, #000 58%, transparent 100%); }
.hx-haze { position: absolute; left: -10%; right: -10%; top: 46%; height: 26%; background: linear-gradient(180deg, transparent, rgba(253,236,214,.9) 70%); }
.hx-counter { position: absolute; left: 2%; right: -4%; bottom: 4%; height: 22%; border-radius: 10px 10px 4px 4px;
  background: repeating-linear-gradient(92deg, rgba(0,0,0,.04) 0 3px, transparent 3px 11px), linear-gradient(180deg, #a8693a, #7a4522 60%, #5e331a);
  box-shadow: inset 0 3px 0 rgba(255,214,160,.35), 0 26px 40px -18px rgba(60,25,5,.6); }
.hx-prod { position: absolute; margin: 0; overflow: hidden; background: #fff; border: 5px solid #fff; outline: 2px solid #d9a441;
  box-shadow: 0 22px 38px -18px rgba(60,25,5,.65); animation: hx-float 6s ease-in-out infinite; }
.hx-prod img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s; }
.hx-visual:hover .hx-prod img { transform: scale(1.05); }
.hx-pottery { left: 4%; bottom: 14%; width: 23%; aspect-ratio: 3 / 4; border-radius: 50% 50% 10px 10px / 30% 30% 10px 10px; animation-delay: -1s; }
.hx-dolls { left: 27%; bottom: 10%; width: 34%; aspect-ratio: 4 / 3; border-radius: 14px; animation-delay: -3s; z-index: 2; }
.hx-toys { right: 2%; bottom: 16%; width: 32%; aspect-ratio: 1; border-radius: 50%; animation-delay: -4.5s; }
.hx-laddu { left: 56%; bottom: 4%; width: 15%; aspect-ratio: 1; border-radius: 50%; animation-delay: -2s; z-index: 3; }
@keyframes hx-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hx-tag { position: absolute; z-index: 4; font: 700 max(.68rem, var(--fmin, 0px)) var(--sans); letter-spacing: .04em; color: #6b2e0e; background: rgba(255,248,236,.95); border: 1px solid #f0cfa0; padding: 5px 10px; border-radius: 999px; box-shadow: 0 6px 14px -8px rgba(60,25,5,.5); }
.hx-tag1 { left: 6%; bottom: 46%; } .hx-tag2 { left: 33%; bottom: 4%; }
.hx .bz-title, .hx-title, .hx-kicker, .hx-hi, .hx .bz-lede { animation: bz-rise .9s cubic-bezier(.2,.8,.2,1) both; }
.hx-hi { animation-delay: .1s; } .hx .bz-lede { animation-delay: .2s; }
.hx-visual { animation: hx-in 1.1s .1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes bz-rise { from { opacity: 0; transform: translateY(20px); } }
@keyframes hx-in { from { opacity: 0; transform: translateX(30px) scale(.98); } }

.bz-credits { font-family: var(--sans); font-size: max(.72rem, var(--fmin, 0px)); line-height: 1.6; color: #8a7e77; margin-top: 14px; }
.bz-credits a { color: #c9b8a8; text-decoration: underline; }

/* ---------- Shared section heading ---------- */
.bz-sec { padding: 72px 0; position: relative; }
.bz-sec-head { text-align: center; max-width: 640px; margin: 0 auto 34px; }
.bz-sec-kicker { font: 700 max(.72rem, var(--fmin, 0px)) var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #e0601a; }
.bz-sec-kicker .deva { letter-spacing: 0; text-transform: none; font-size: .9rem; font-weight: 400; }
.bz-sec-title { font-family: var(--serif-display); font-weight: 900; font-size: clamp(1.8rem, 4vw, 2.7rem); color: #14224a; line-height: 1.1; margin-top: 8px; }
.bz-sec-title::after { content: ""; display: block; width: 90px; height: 6px; margin: 14px auto 0; border-radius: 3px;
  background: linear-gradient(90deg, #e8731c 0 33%, #fff 33% 66%, #1f7a3a 66%); box-shadow: 0 0 0 1px #ecd4b6; }
.bz-sec-sub { font-family: var(--sans); color: #5a5262; margin-top: 12px; line-height: 1.55; }

/* ---------- Shop by craft ---------- */
.bz-crafts { background: #fff; }
.bz-craft-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.bz-craft { display: flex; flex-direction: column; border: 1px solid #f0e2cf; padding: 0; overflow: hidden; border-radius: 18px; cursor: pointer; background: #fff; text-align: left;
  box-shadow: 0 10px 30px -22px rgba(80,40,10,.45); transition: transform .3s, box-shadow .3s; }
.bz-craft:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -24px rgba(80,40,10,.55); }
.bz-craft-ph { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #fdf1e2; }
.bz-craft-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.bz-craft:hover .bz-craft-ph img { transform: scale(1.06); }
.bz-craft-fill { display: grid; place-items: center; height: 100%; font-size: 2.2rem; color: #e0601a; background: radial-gradient(circle at 50% 40%, #fff3e0, #fbe0bd); }
.bz-craft-body { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px 16px; }
.bz-craft-body b { font: 700 1.05rem var(--sans); color: #14224a; }
.bz-craft-body small { font: 500 .8rem var(--sans); color: #8a7a6c; }
.bz-craft-body .deva { color: #e0601a; font-size: .9rem; }
.bz-craft:focus-visible { outline: 3px solid #e8731c; outline-offset: 3px; }

/* ---------- Melas & fairs ---------- */
.bz-melas { background: linear-gradient(180deg, #fdf0dc, #fff7ec); overflow: hidden; }
.bz-melas::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: repeating-linear-gradient(90deg, #e8a04a 0 8px, transparent 8px 16px); opacity: .5; }
.bz-mela-track { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 16px; overflow-x: auto; padding: 6px 2px 18px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.bz-mela { position: relative; scroll-snap-align: start; background: #fff; border-radius: 16px; padding: 22px 20px 18px; border-top: 6px solid var(--m);
  box-shadow: 0 16px 30px -22px rgba(60,25,5,.6); display: flex; flex-direction: column; gap: 6px; }
.bz-mela.now { box-shadow: 0 0 0 2px var(--m), 0 18px 34px -18px rgba(60,25,5,.6); }
.bz-mela-when { font: 700 max(.74rem, var(--fmin, 0px)) var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--m); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bz-now { font-size: max(.62rem, var(--fmin, 0px)); letter-spacing: .1em; color: #fff; background: #1f7a3a; padding: 3px 8px; border-radius: 999px; animation: bz-pulse 1.8s ease-in-out infinite; }
@keyframes bz-pulse { 50% { box-shadow: 0 0 0 5px rgba(31,122,58,.2); } }
.bz-mela h3 { font: 800 1.25rem var(--serif-display); color: #14224a; }
.bz-mela-place { display: flex; align-items: center; gap: 5px; font: 600 .78rem var(--sans); color: #6a5e56; }
.bz-mela-note { font-family: var(--sans); font-size: .88rem; line-height: 1.5; color: #3f3a48; flex: 1; }
.bz-mela a { font: 700 .78rem var(--sans); color: var(--m); margin-top: 4px; }

/* ---------- Bazaar tips ---------- */
.bz-tips { background: #fffaf2; border-top: 1px solid #f1dfc6; }
.bz-tip-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.bz-tip-grid li { background: #fff; border: 1px solid #f1dfc6; border-radius: 16px; padding: 24px 22px; box-shadow: 0 14px 28px -24px rgba(60,25,5,.6); }
.bz-tip-grid svg { width: 42px; height: 42px; fill: none; stroke: #e0601a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; background: #fff1df; border-radius: 12px; padding: 6px; }
.bz-tip-grid h3 { font: 800 1.12rem var(--serif-display); color: #14224a; margin: 12px 0 6px; }
.bz-tip-grid p { font-family: var(--sans); font-size: .9rem; line-height: 1.55; color: #4a4558; }

/* ---------- State explorer ---------- */
.bx { background: #fffaf3; padding: 72px 0 80px; }
.bz-rail-wrap { position: sticky; top: 0; z-index: 20; background: rgba(255,250,243,.94); backdrop-filter: blur(10px); padding: 10px 0; margin-bottom: 28px; border-bottom: 1px solid #f0e2cf; }
.bz-rail { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.bz-rail::-webkit-scrollbar { display: none; }
.bz-rail a { flex-shrink: 0; font: 600 .82rem var(--sans); color: #4a4558; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid #ecdcc6; transition: all .2s; }
.bz-rail a:hover { color: #e0601a; border-color: #f3b06a; }
.bz-rail a.on { background: #e0601a; border-color: #e0601a; color: #fff; box-shadow: 0 8px 18px -10px rgba(224,96,26,.8); }

.bx-state { animation: bx-in .5s cubic-bezier(.2,.8,.2,1); }
@keyframes bx-in { from { opacity: 0; transform: translateY(14px); } }

/* banner */
.bx-banner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); background: #fff; border-radius: 28px; overflow: hidden;
  box-shadow: 0 30px 60px -40px rgba(80,40,10,.5); border: 1px solid #f0e2cf; }
.bx-banner::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; background-color: var(--band); background-image: var(--motif); background-size: auto 100%; z-index: 2; }
.bx-banner-text { padding: 54px 48px 40px; position: relative; background: linear-gradient(160deg, color-mix(in srgb, var(--tint) 70%, #fff), #fff 70%); }
.bx-start { display: inline-block; font: 700 max(.7rem, var(--fmin, 0px)) var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #fff; background: #e0601a; padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; }
.bx-hi { font-family: "Yatra One", var(--deva); font-size: 1.5rem; color: var(--a); line-height: 1; }
.bx-banner h2 { font-family: var(--serif-display); font-weight: 900; font-size: clamp(2.2rem, 4.4vw, 3.4rem); color: #14224a; line-height: 1.05; margin-top: 6px; letter-spacing: -.01em; }
.bx-ut { font: 700 max(.6rem, var(--fmin, 0px)) var(--sans); letter-spacing: .14em; text-transform: uppercase; vertical-align: middle; color: var(--a); border: 1px solid currentColor; padding: 4px 8px; border-radius: 999px; }
.bx-tagline { font-family: var(--sans); font-size: 1.08rem; line-height: 1.55; color: #4a4558; margin-top: 12px; max-width: 460px; }
.bx-known { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.bx-known span { font: 600 .78rem var(--sans); color: #3a3446; background: #fff; border: 1px solid #ecdcc6; padding: 6px 12px; border-radius: 999px; }
.bx-meta { font: 500 .85rem var(--sans); color: #7a6e66; margin-top: 22px; }
.bx-meta b { color: #14224a; font-size: 1rem; } .bx-meta i { font-style: normal; color: var(--a); margin: 0 6px; }
.bx-banner-ph { position: relative; margin: 0; min-height: 380px; overflow: hidden; }
.bx-banner-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: bz-kenburns 20s ease-in-out infinite alternate; }
@keyframes bz-kenburns { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-2%, -1%); } }
.bx-banner-ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.25), transparent 30%); pointer-events: none; }
.bx-banner-ph.art { display: grid; place-items: center; background-color: var(--band); background-image: var(--motif); background-size: auto 25%; }
.bx-banner-ph.art span { font-family: "Yatra One", var(--deva); font-size: clamp(2.6rem, 6vw, 4.2rem); color: #fff; background: rgba(20,10,5,.35); padding: 6px 28px; border-radius: 18px; backdrop-filter: blur(4px); }
.bz-credit { position: absolute; right: 10px; bottom: 8px; z-index: 2; font: 500 max(.62rem, var(--fmin, 0px))/1.3 var(--sans); color: #fff; background: rgba(0,0,0,.45); padding: 3px 8px; border-radius: 999px; }
.bz-credit a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255,255,255,.5); }

/* sub-headings */
.bx-sub { display: flex; align-items: center; gap: 14px; font: 800 1.35rem var(--serif-display); color: #14224a; margin: 44px 0 18px; }
.bx-sub::after { content: ""; flex: 1; height: 1px; background: #ecdcc6; }

/* must-visit cards */
.bx-cards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.bx-cards.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bx-cards.n2 .bx-ph { aspect-ratio: 16 / 10; }
.bx-cards.n1 { grid-template-columns: minmax(0, 1fr); }
.bx-cards.n1 .bx-card { flex-direction: row; } .bx-cards.n1 .bx-ph { width: 50%; aspect-ratio: auto; min-height: 300px; }
.bx-card { display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden; border: 1px solid #f0e2cf; box-shadow: 0 14px 34px -26px rgba(80,40,10,.55); transition: transform .3s, box-shadow .3s; }
.bx-card:hover { transform: translateY(-4px); box-shadow: 0 26px 44px -28px rgba(80,40,10,.6); }
.bx-ph { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #f6ead8; }
.bx-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.bx-card:hover .bx-ph img { transform: scale(1.06); }
.bx-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.bx-city { display: flex; align-items: center; gap: 5px; font: 600 .76rem var(--sans); color: var(--a); text-transform: uppercase; letter-spacing: .06em; }
.bx-body h4 { font: 800 1.2rem var(--serif-display); color: #14224a; line-height: 1.2; }
.bx-desc { font-family: var(--sans); font-size: .9rem; line-height: 1.55; color: #4a4558; flex: 1; }
.bx-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.bx-tags li { font: 600 max(.7rem, var(--fmin, 0px)) var(--sans); color: #6b2e0e; background: #fff1df; padding: 4px 10px; border-radius: 999px; }
.bx-map { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font: 700 .8rem var(--sans); color: #e0601a; margin-top: 10px; }
.bx-map:hover { gap: 9px; }

/* more markets list */
.bx-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.bx-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; gap: 14px; align-items: start; background: #fff; border: 1px solid #f0e2cf; border-radius: 16px; padding: 18px; transition: border-color .2s, box-shadow .2s; }
.bx-row:hover { border-color: #f3b06a; box-shadow: 0 14px 30px -24px rgba(80,40,10,.5); }
.bx-pin { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--a); background: color-mix(in srgb, var(--a) 12%, #fff); }
.bx-pin svg { width: 18px; height: 18px; }
.bx-row h4 { font: 700 1.02rem var(--sans); color: #14224a; }
.bx-row h4 small { font-weight: 500; font-size: .8rem; color: #8a7a6c; margin-left: 4px; }
.bx-row p { font-family: var(--sans); font-size: .88rem; line-height: 1.5; color: #4a4558; margin-top: 4px; }
.bx-map-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #e0601a; border: 1px solid #f3cfa4; transition: all .2s; }
.bx-map-icon:hover { background: #e0601a; color: #fff; border-color: #e0601a; }

/* previous / next */
.bx-pn { display: flex; justify-content: space-between; gap: 14px; margin-top: 40px; }
.bx-pn a { display: flex; flex-direction: column; gap: 2px; font: 700 1rem var(--sans); color: #14224a; background: #fff; border: 1px solid #ecdcc6; padding: 14px 22px; border-radius: 16px; transition: all .2s; }
.bx-pn a:last-child { text-align: right; }
.bx-pn a small { font: 600 max(.7rem, var(--fmin, 0px)) var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #8a7a6c; }
.bx-pn a:hover { border-color: #e0601a; color: #e0601a; }

/* while searching: compact banners, no prev/next */
.searching .bx-banner { grid-template-columns: 1fr; border-radius: 18px; }
.searching .bx-banner-ph, .searching .bx-known, .searching .bx-tagline, .searching .bx-pn, .searching .bx-start, .searching .bx-meta { display: none; }
.searching .bx-banner-text { padding: 22px 26px 18px; }
.searching .bx-banner h2 { font-size: 1.6rem; }
.searching .bx-state + .bx-state { margin-top: 36px; }
.bz-empty { font-family: var(--sans); font-size: 1.02rem; text-align: center; padding: 48px 0; color: #6a5e56; }

/* ---------- Footer: uses the home page footer styles (styles.css) ---------- */
.bz-foot-extra > div { display: flex; flex-direction: column; gap: 10px; }
.bz-foot-extra .bz-credits { font-family: var(--sans); font-size: max(.74rem, var(--fmin, 0px)); line-height: 1.6; color: #8a7e77; margin: 0; }
.bz-foot-extra .bz-credits strong { color: #c9b8a8; }
.bz-foot-extra .bz-credits a { color: #d9cec4; text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); }

@media (max-width: 1100px) { .bz-craft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bz-tip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bx-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .bz-sec { padding: 52px 0; }
  .bz-craft-grid { gap: 12px; } .bz-craft { border-radius: 14px; } .bz-craft-body { padding: 10px 12px 12px; } .bz-craft-body b { font-size: .92rem; }
  .bx { padding: 52px 0 60px; }
  .bx-banner { grid-template-columns: minmax(0, 1fr); border-radius: 22px; }
  .bx-banner-ph { min-height: 220px; order: -1; } .bx-banner-text { padding: 26px 22px 24px; }
  .bx-cards, .bx-cards.n2, .bx-list { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .bx-cards.n1 .bx-card { flex-direction: column; } .bx-cards.n1 .bx-ph { width: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .bx-row { grid-template-columns: 34px minmax(0, 1fr) 34px; padding: 14px; gap: 10px; } .bx-pin, .bx-map-icon { width: 34px; height: 34px; }
  .bx-pn a { padding: 12px 14px; font-size: .9rem; }
  .bz-tip-grid { grid-template-columns: minmax(0, 1fr); }
  .bz-mela-track { grid-auto-columns: 80%; }
  .hx { padding: 36px 0 90px; }
  .hx-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hx-visual { min-height: 0; aspect-ratio: 1 / .9; margin: 0; }
  .hx-kicker { font-size: max(.7rem, var(--fmin, 0px)); letter-spacing: .18em; }
  .hx-counter { right: 2%; } .hx-toys { right: 1%; width: 30%; } .hx-tag { font-size: max(.62rem, var(--fmin, 0px)); }
  .hx-features li { padding: 0 10px; font-size: max(.72rem, var(--fmin, 0px)); } .hx-features svg { width: 30px; height: 30px; }
  .hx-skyline { width: 90%; bottom: 50px; } .hx-wave { height: 64px; } .hx-mandala { width: 200px; }
  .bz-lede { font-size: 1rem; }
  .bz-logo img { height: 36px; }
}
/* scroll reveal */
.bz-reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.bz-reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bx-card, .bx-ph img, .bz-craft, .bz-craft-ph img { transition: none; } .bz-now, .bx-state { animation: none; }
  .bz-reveal { opacity: 1; transform: none; transition: none; }
  .hx *, .hx-visual, .bx-banner-ph img { animation: none !important; }
}
/* no bottom tab bar on this page, so no extra space under the footer on phones */
@media (max-width: 820px) { .bz-page .footer-bar { padding-bottom: env(safe-area-inset-bottom); } }

/* Brand logo used in place of the "Grah Sundri" text */
.inline-logo { display: inline-block; height: 1.5em; width: auto; vertical-align: -.38em; margin: 0 .04em; }

/* ===== Bottom tab bar on phones (same as the magazine app) ===== */
.tabbar { display: none; }
@media (max-width: 820px) {
  .bz-page { --tabbar-h: 62px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: rgba(251, 247, 241, .97); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
    border-top: 1px solid rgba(27, 21, 20, .1);
  }
  .tab {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    font-family: Inter, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: max(.62rem, var(--fmin, 0px)); font-weight: 600; letter-spacing: .06em;
    color: #6f6259; text-decoration: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
  }
  .tab svg { width: 22px; height: 22px; box-sizing: content-box; padding: 4px 16px; border-radius: 999px; transition: transform .15s; }
  .tab.active { color: #9e1b32; }
  .tab.active svg { background: rgba(158, 27, 50, .1); }
  .tab:active svg { transform: scale(.9); }
  .bz-page .footer-bar { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
}

/* language button next to "Back" */
.bz-actions { display: inline-flex; align-items: center; gap: 10px; }
.bz-actions .lang-btn { height: 34px; }
@media (max-width: 820px) {
  .tabbar { grid-template-columns: repeat(6, 1fr) !important; }
  .tab svg { padding: 4px 12px !important; }
  .tab span { font-size: max(.58rem, var(--fmin, 0px)); letter-spacing: .03em; }
}

/* =========================================================
   Bottom menu: modern floating dock (phones)
   Active tab = cream pill with icon + name; others are icons.
   ========================================================= */
@media (max-width: 820px) {
  :root, .bz-page { --tabbar-h: 80px; }          /* dock (62) + gap (12) + breathing room: used for page spacing */
  .tabbar {
    display: flex !important; align-items: center; justify-content: space-between; gap: 2px;
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); top: auto;
    height: 62px !important; padding: 0 8px !important;
    background: #1b1514 !important; border: 1px solid rgba(255, 255, 255, .06) !important; border-radius: 24px;
    box-shadow: 0 18px 36px -14px rgba(27, 21, 20, .55), 0 2px 6px rgba(27, 21, 20, .18);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1);
  }
  .tabbar.hide { transform: translate3d(0, calc(100% + 32px), 0) !important; }
  .tabbar .tab {
    flex: 0 0 auto; display: inline-flex !important; flex-direction: row !important; align-items: center; justify-content: center; gap: 0 !important;
    height: 44px; min-width: 44px; padding: 0 11px; border-radius: 999px;
    color: rgba(251, 247, 241, .62) !important; text-decoration: none;
    transition: background-color .3s ease, color .3s ease, padding .3s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .tabbar .tab svg { width: 22px !important; height: 22px !important; padding: 0 !important; background: none !important; flex: none; transition: transform .15s; }
  .tabbar .tab span {
    max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0;
    font-family: Inter, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: .78rem !important; font-weight: 700; letter-spacing: 0 !important; text-transform: none;
    transition: max-width .3s ease, opacity .2s ease, margin .3s ease;
  }
  .tabbar .tab.active { background: #fbf7f1; color: #9e1b32 !important; padding: 0 14px 0 12px; }
  .tabbar .tab.active span { max-width: 90px; opacity: 1; margin-left: 7px; }
  .tabbar .tab.active svg { background: none !important; }
  .tabbar .tab:active svg { transform: scale(.88); }
  .tabbar .tab:not(.active):hover { color: #fbf7f1 !important; }
  .tabbar .tab:focus-visible { outline: 2px solid #c8902e; outline-offset: 2px; }
}
@media (max-width: 360px) {
  .tabbar .tab { padding: 0 8px; min-width: 40px; }
  .tabbar .tab.active span { max-width: 70px; }
}

/* =========================================================
   Page-changing effects
   ========================================================= */
/* moving between pages (Home → Bazaar → a story page…): smooth cross-fade, the dock stays put */
@view-transition { navigation: auto; }
@media (max-width: 820px) {
  .tabbar { view-transition-name: dock; }
  .appbar { view-transition-name: appbar; }
}
::view-transition-group(dock), ::view-transition-group(appbar) { animation-duration: 0s; }
::view-transition-old(root) { animation: vt-fade-out .22s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-fade-in .3s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-fade-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
/* dock and top bar don't cross-fade: they switch instantly while the page moves */
::view-transition-old(dock), ::view-transition-old(appbar) { animation: none; opacity: 0; }
::view-transition-new(dock), ::view-transition-new(appbar) { animation: none; }

/* =========================================================
   Phone polish: text at least 12px, dock with a name under every icon
   ========================================================= */
@media (max-width: 820px) {
  :root { --fmin: 12px; }
  .tabbar { gap: 0; padding: 0 6px !important; }
  .tabbar .tab, .tabbar .tab.active { flex: 1 1 0; min-width: 0; height: 52px; padding: 0 2px; flex-direction: column !important; gap: 3px !important; border-radius: 18px; }
  .tabbar .tab { color: rgba(251, 247, 241, .78) !important; }
  .tabbar .tab.active { color: #9e1b32 !important; }
  .tabbar .tab span, .tabbar .tab.active span { display: block; max-width: 100%; margin: 0; opacity: 1; overflow: hidden; text-overflow: ellipsis; font-size: 12px !important; font-weight: 600; line-height: 1.25; }
}
@media (max-width: 389px) { .tabbar .tab span, .tabbar .tab.active span { font-size: 11px !important; } }
/* six tabs: names fit on one line */
@media (max-width: 430px) { .tabbar .tab span, .tabbar .tab.active span { font-size: 11px !important; letter-spacing: -.02em !important; } }
@media (max-width: 374px) { .tabbar .tab span, .tabbar .tab.active span { font-size: 10.5px !important; } }
/* brand name in the title */
.hx-brand { display: inline-block; font-family: "Yatra One", var(--deva); font-weight: 400; font-size: .94em; line-height: 1.18; letter-spacing: 0; white-space: nowrap; }

/* ===== Dock: light bar, the open tab is a kumkum pill ===== */
@media (max-width: 820px) {
  .tabbar { background: #fffaf7 !important; border: 1px solid #f3e1dc !important; border-radius: 28px; box-shadow: 0 14px 34px -14px rgba(110, 20, 40, .34), 0 2px 8px rgba(110, 20, 40, .08); }
  .tabbar .tab { color: #2a1b18 !important; }
  .tabbar .tab.active { background: linear-gradient(160deg, #b51d3c, #8f1230); color: #fff !important; border-radius: 22px; }
  .tabbar .tab:not(.active):hover { color: #9e1b32 !important; }
  html[data-app-screen="shorts"] .tabbar { background: #fffaf7 !important; border-color: #f3e1dc !important; }
}

/* =========================================================
   Phones: Bazaar in the Wellness theme
   ========================================================= */
.hx-kicker .wd-leaf { display: none; }
@media (max-width: 820px) {
  body.bz-page { background: linear-gradient(180deg, #fdf8f5, #fdf1ef 460px, #fdf6f3); }
  .bz-top { position: sticky; top: 0; z-index: 60; background: #fdf8f5; border-bottom: 1px solid #f6e4e2; }
  .bz-top-inner { display: grid; grid-template-columns: 88px 1fr 88px; padding: 8px 0; min-height: 64px; }
  .bz-logo { justify-self: center; } .bz-logo img { height: 46px; }
  .bz-actions { justify-self: end; } .bz-back { display: none; }
  .bz-actions .lang-btn { height: 40px; border-color: #f4d5d7; background: #fff; }
  html { scroll-padding-top: 132px; }
  .bz-rail-wrap { top: 64px; }
  /* hero */
  .hx { padding: 18px 0 8px; background: none; }
  .hx-mandala, .hx-skyline, .hx-wave, .hx-swoosh, .hx-sun { display: none; }
  .hx-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: .86rem; font-weight: 600; letter-spacing: .02em; text-transform: none; color: #b01f45; }
  .hx-kicker .wd-leaf { display: block; margin-right: 4px; } .hx-kicker i { color: #e79aa3; }
  .hx-title { margin-top: 8px; font-size: clamp(2rem, 10vw, 2.6rem); }
  .hx-brand { font-family: "Poppins", "Tiro Devanagari Hindi", serif; font-weight: 700; font-size: .82em; line-height: 1.3; }
  .hx-t1 { color: #1b1514; } .hx-t2 { color: #a5163a; font-style: italic; font-weight: 800; }
  .hx-hi { font-family: var(--deva); font-size: 1.1rem; color: #a5163a; margin-top: 2px; }
  .hx .bz-lede { margin-top: 8px; font-size: .96rem; line-height: 1.55; color: var(--ink-2); }
  .hx .bz-lede a { color: #a5163a; border-bottom-color: #f0b8c0; }
  .hx-actions { margin-top: 16px; justify-content: space-between; gap: 12px; }
  .hx-cta { padding: 0 22px; height: 52px; font-size: .96rem; font-weight: 600; background: linear-gradient(160deg, #b51d3c, #8f1230); box-shadow: 0 12px 20px -12px rgba(143, 18, 48, .8); }
  .hx .bz-stats { font-size: .82rem; } .hx .bz-stats b { color: #1b1514; } .hx .bz-stats span { color: #a5163a; }
  .hx .bz-search { height: 54px; margin-top: 16px; padding: 0 16px; border: 1.500px solid #f4d5d7; border-radius: 18px; box-shadow: none; color: var(--muted); }
  .hx .bz-search input { font-size: 16px; } .hx .bz-search:focus-within { border-color: #a5163a; box-shadow: 0 0 0 3px rgba(165, 22, 58, .1); }
  .hx .bz-try { flex-wrap: nowrap; gap: 8px; margin: 12px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; }
  .hx .bz-try button { flex: none; height: 42px; padding: 0 16px; border-color: #f4dcdb; background: #fff; color: #2a1b18; font-size: .84rem; font-weight: 500; }
  .hx .bz-result { color: #a5163a; }
  .hx-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
  .hx-features li { padding: 12px 2px; border: 0; border-radius: 18px; background: #fff; font-weight: 500; box-shadow: 0 1px 2px rgba(120, 20, 45, .05), 0 14px 30px -22px rgba(120, 20, 45, .4); }
  .hx-features li:first-child { padding-left: 2px; }
  .hx-features svg { stroke: #a5163a; }
  .hx-visual { margin-top: 14px; border-radius: 26px; overflow: hidden; background: linear-gradient(180deg, #fbdde0, #fdebec); aspect-ratio: 1 / .78; }
  .hx-haze { background: linear-gradient(180deg, transparent, rgba(253, 225, 224, .9) 70%); }
  .hx-tag { color: #8f1230; background: #fff; border: 0; }
  .hx-prod { outline-color: #f0b8c0; }
  /* sections */
  .bz-sec, .bz-crafts, .bz-melas, .bz-tips, .bx { padding: 34px 0 0; background: none; border: 0; }
  .bx { padding-bottom: 8px; }
  .bz-melas::before, .bz-sec-title::after { display: none; }
  .bz-sec-head { margin: 0 0 16px; text-align: left; }
  .bz-sec-kicker { font-size: .86rem; font-weight: 600; letter-spacing: .02em; text-transform: none; color: #b01f45; }
  .bz-sec-title { margin-top: 2px; font-size: 1.6rem; font-weight: 800; color: #1b1514; }
  .bz-sec-sub { margin-top: 6px; font-size: .9rem; color: var(--ink-2); }
  .bz-craft { border: 0; border-radius: 22px; padding: 8px; box-shadow: 0 1px 2px rgba(120, 20, 45, .05), 0 14px 30px -22px rgba(120, 20, 45, .4); }
  .bz-craft-ph { border-radius: 16px; background: #fdebec; }
  .bz-craft-body { padding: 10px 6px 6px; } .bz-craft-body b { color: #1b1514; font-family: var(--serif-display); font-size: 1rem; }
  .bz-craft-body .deva { color: #a5163a; } .bz-craft-body small { color: var(--muted); }
  .bz-craft-fill { color: #a5163a; background: #fdebec; }
  .bz-mela-track { margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 18px; gap: 12px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .bz-mela { border: 0; border-radius: 22px; padding: 18px; box-shadow: 0 1px 2px rgba(120, 20, 45, .05), 0 14px 30px -22px rgba(120, 20, 45, .4); }
  .bz-mela.now { box-shadow: inset 0 0 0 1.500px #a5163a, 0 14px 30px -22px rgba(120, 20, 45, .4); }
  .bz-mela-when { color: #8f1230; letter-spacing: 0; text-transform: none; font-size: .84rem; } .bz-mela h3 { color: #1b1514; } .bz-mela a { color: #a5163a; min-height: 40px; display: inline-flex; align-items: center; }
  .bz-now { background: linear-gradient(160deg, #b51d3c, #8f1230); letter-spacing: 0; animation: none; }
  .bz-rail-wrap { background: #fdf4f2; backdrop-filter: none; border-color: #f6e0df; margin-bottom: 16px; }
  .bz-rail-wrap .wrap { width: 100%; } .bz-rail { padding: 2px var(--gutter); }
  .bz-rail a { display: inline-flex; align-items: center; height: 42px; border-color: #f4dcdb; color: #2a1b18; font-weight: 500; }
  .bz-rail a.on { background: linear-gradient(160deg, #b51d3c, #8f1230); border-color: transparent; box-shadow: none; }
  .bx-state { --a: #a5163a !important; --a2: #8f1230 !important; --tint: #fdebec !important; }
  .bx-banner { border: 0; border-radius: 26px; box-shadow: 0 1px 2px rgba(120, 20, 45, .05), 0 18px 34px -24px rgba(120, 20, 45, .45); }
  .bx-banner::before { display: none; }
  .bx-banner-text { padding: 20px 18px; background: linear-gradient(180deg, #fdebec, #fff 70%); }
  .bx-start { margin-bottom: 10px; background: linear-gradient(160deg, #b51d3c, #8f1230); letter-spacing: 0; text-transform: none; }
  .bx-hi { font-family: var(--deva); font-size: 1.2rem; color: #a5163a; line-height: 1.4; }
  .bx-banner h2 { margin-top: 0; font-size: 2rem; color: #1b1514; }
  .bx-tagline { margin-top: 6px; font-size: .95rem; }
  .bx-known { margin-top: 14px; gap: 6px; } .bx-known span { border: 0; background: #fff; box-shadow: inset 0 0 0 1px #f6dcdb; font-weight: 500; }
  .bx-meta { margin-top: 14px; } .bx-meta b { color: #1b1514; }
  .bx-sub { margin: 28px 0 12px; font-size: 1.4rem; color: #1b1514; } .bx-sub::after { display: none; }
  .bx-card { border: 0; border-radius: 24px; padding: 8px; box-shadow: 0 1px 2px rgba(120, 20, 45, .05), 0 14px 30px -22px rgba(120, 20, 45, .4); }
  .bx-ph { border-radius: 18px; aspect-ratio: 16 / 10; }
  .bx-body { padding: 14px 10px 10px; } .bx-body h4, .bx-row h4, .bx-pn a { color: #1b1514; }
  .bx-city { color: #a5163a; letter-spacing: 0; text-transform: none; font-size: .82rem; }
  .bx-tags li { background: #fdebec; color: #8f1230; font-weight: 500; }
  .bx-map { min-height: 44px; margin-top: 2px; color: #a5163a; font-size: .86rem; }
  .bx-row { border: 0; border-radius: 22px; grid-template-columns: 44px minmax(0, 1fr) 44px; box-shadow: 0 1px 2px rgba(120, 20, 45, .05), 0 14px 30px -22px rgba(120, 20, 45, .4); }
  .bx-pin { width: 44px; height: 44px; border-radius: 14px; background: #fdebec; color: #a5163a; }
  .bx-map-icon { width: 44px; height: 44px; color: #a5163a; border-color: #f4d5d7; }
  .bx-pn a { border: 0; border-radius: 20px; box-shadow: 0 1px 2px rgba(120, 20, 45, .05), 0 14px 30px -22px rgba(120, 20, 45, .4); } .bx-pn a small { letter-spacing: 0; text-transform: none; }
  .bz-tip-grid { gap: 10px; }
  .bz-tip-grid li { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 14px; padding: 16px; border: 0; border-radius: 22px; box-shadow: 0 1px 2px rgba(120, 20, 45, .05), 0 14px 30px -22px rgba(120, 20, 45, .4); }
  .bz-tip-grid svg { grid-row: span 2; width: 52px; height: 52px; padding: 10px; border-radius: 16px; stroke: #a5163a; background: #fde4e6; }
  .bz-tip-grid h3 { margin: 0 0 2px; color: #1b1514; }
  .bz-empty { padding: 28px 0; }
  .bz-page .menu-btn { color: #9e1b32; }
}
