/* ============================================================
   JoDoIndia — Design Tokens
   ============================================================ */
:root{
  /* Color */
  --jodo-red: #D32B1F;
  --jodo-red-dark: #A8200F;
  --jodo-orange: #FF7A1A;
  --ink: #211A14;
  --ink-soft: #5C4F42;
  --paper: #FFF6EC;
  --paper-dim: #FBEEDF;
  --paper-card: #FFFFFF;
  --gold: #FFB627;
  --teal: #0E8388;
  --teal-dark: #0A6669;
  --line: #E7D8C4;
  --line-soft: #F0E3D2;
  --shadow: 0 10px 30px -12px rgba(33, 26, 20, 0.18);
  --shadow-sm: 0 4px 14px -6px rgba(33, 26, 20, 0.15);

  /* Type */
  --font-display: "Baloo 2", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, sans-serif;
  --font-mono: "Space Mono", monospace;

  /* Layout */
  --radius: 14px;
  --radius-sm: 8px;
  --container: 1180px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family: inherit; cursor:pointer; }
input{ font-family: inherit; }

h1,h2,h3,h4{ font-family: var(--font-display); margin:0; line-height:1.15; color: var(--ink); }
.eyebrow{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--jodo-red-dark);
}
.mono{ font-family: var(--font-mono); }

.wrap{ max-width: var(--container); margin: 0 auto; padding: 0 24px; }

:focus-visible{
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ============================================================
   Top utility bar + Nav
   ============================================================ */
.topbar{
  background: var(--ink);
  color: #F4E8DA;
  font-size: 13px;
}
.topbar .wrap{ display:flex; justify-content: space-between; align-items:center; height: 34px; }
.topbar a{ opacity: .85; }
.topbar a:hover{ opacity: 1; color: var(--gold); }
.topbar .sep{ opacity:.4; margin: 0 10px; }

.nav{
  position: sticky; top:0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav .wrap{ display:flex; align-items:center; gap: 22px; height: 72px; }

.logo{ display:flex; align-items:center; gap:8px; font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--jodo-red); white-space: nowrap; }
.logo .dot{ color: var(--jodo-orange); }
.logo small{ font-family: var(--font-body); font-weight: 600; font-size: 11px; letter-spacing:.06em; color: var(--ink-soft); display:block; margin-top:-2px; }

.city-pill{
  display:flex; align-items:center; gap:6px;
  border:1.5px solid var(--line); background: var(--paper-card);
  border-radius: 999px; padding: 9px 14px; font-weight:600; font-size: 14px;
  flex-shrink:0;
}
.city-pill svg{ width:16px; height:16px; fill: var(--jodo-red); }

.nav-search{
  flex:1; display:flex; border:1.5px solid var(--line); border-radius: 999px; background: var(--paper-card);
  overflow:hidden; min-width: 0;
}
.nav-search input{ flex:1; border:none; outline:none; padding: 12px 16px; font-size: 14px; background:transparent; min-width:0; }
.nav-search button{ border:none; background: var(--jodo-red); color:#fff; padding: 0 20px; font-weight:700; display:flex; align-items:center; gap:6px; }
.nav-search button svg{ width:16px; height:16px; fill:#fff; }
.nav-search button:hover{ background: var(--jodo-red-dark); }

.nav-actions{ display:flex; align-items:center; gap: 14px; flex-shrink:0; }
.nav-link{ font-weight:600; font-size: 14px; color: var(--ink-soft); }
.nav-link:hover{ color: var(--jodo-red); }
.btn-add-biz{
  background: var(--jodo-orange); color:#fff; font-weight:700; font-size:14px;
  padding: 11px 18px; border-radius: 999px; border:none; display:flex; align-items:center; gap:8px;
  box-shadow: 0 6px 16px -6px rgba(255,122,26,.55);
}
.btn-add-biz:hover{ background:#e9690d; }
.nav-burger{ display:none; }

/* ============================================================
   Hero — signature "directory tab" search ledger
   ============================================================ */
.hero{
  background: linear-gradient(180deg, var(--paper-dim) 0%, var(--paper) 100%);
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
}
.hero .wrap{ display:flex; align-items:flex-start; gap: 0; }
.hero-main{
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius) 0 0 var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 44px;
  flex:1;
  position: relative;
}
.hero-tabs{
  display:flex; flex-direction: column; gap: 10px;
  padding-top: 30px;
}
.dtab{
  background: var(--jodo-red);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 11px 16px 11px 14px;
  border-radius: 0 10px 10px 0;
  box-shadow: var(--shadow-sm);
  display:flex; align-items:center; gap:8px;
  transform: translateX(0);
  transition: transform .15s ease, background .15s ease;
  cursor:pointer;
  border:none;
  white-space:nowrap;
}
.dtab svg{ width:15px; height:15px; fill:#fff; flex-shrink:0; }
.dtab:hover{ transform: translateX(6px); background: var(--jodo-orange); }
.dtab.alt{ background: var(--teal); }
.dtab.alt:hover{ background: var(--teal-dark); }

.hero-kicker{ display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.hero-kicker .pulse{ width:8px; height:8px; border-radius:50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(14,131,136,.18); }

.hero h1{ font-size: 42px; max-width: 560px; margin-bottom:8px; }
.hero h1 span{ color: var(--jodo-red); }
.hero p.lede{ color: var(--ink-soft); font-size: 16px; margin-bottom: 26px; max-width: 520px; }

.search-panel{ display:flex; gap:10px; flex-wrap:wrap; }
.search-field{
  flex: 2 1 280px; display:flex; align-items:center; gap:10px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 16px; background: var(--paper-dim);
}
.search-field.loc{ flex: 1 1 200px; }
.search-field svg{ width:18px; height:18px; fill: var(--ink-soft); flex-shrink:0; }
.search-field input{ border:none; background:transparent; outline:none; font-size:15px; width:100%; color: var(--ink); }
.search-go{
  background: var(--jodo-red); color:#fff; border:none; border-radius: var(--radius-sm);
  padding: 14px 28px; font-weight:700; font-size:15px;
  box-shadow: 0 8px 18px -8px rgba(211,43,31,.6);
}
.search-go:hover{ background: var(--jodo-red-dark); }

.quick-chips{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 18px; }
.chip{
  border:1px solid var(--line); background: var(--paper); border-radius: 999px;
  padding: 7px 14px; font-size: 13px; font-weight:600; color: var(--ink-soft);
}
.chip:hover{ border-color: var(--jodo-red); color: var(--jodo-red); }

/* Stat strip */
.stat-strip{ border-bottom: 1px solid var(--line); background: var(--paper-card); }
.stat-strip .wrap{ display:flex; gap: 0; padding: 22px 24px; }
.stat{ flex:1; text-align:center; border-right:1px solid var(--line-soft); }
.stat:last-child{ border-right:none; }
.stat b{ font-family: var(--font-display); font-size: 26px; color: var(--jodo-red); display:block; }
.stat span{ font-size: 12.5px; color: var(--ink-soft); font-weight:600; text-transform:uppercase; letter-spacing:.04em; }

/* ============================================================
   Section headers
   ============================================================ */
.section{ padding: 56px 0; }
.section-head{ display:flex; justify-content:space-between; align-items:flex-end; margin-bottom: 30px; gap: 16px; flex-wrap:wrap; }
.section-head h2{ font-size: 28px; }
.section-head p{ color: var(--ink-soft); font-size: 14px; margin-top:4px; }
.see-all{ font-weight:700; font-size: 13.5px; color: var(--jodo-red); display:flex; align-items:center; gap:4px; flex-shrink:0; }
.see-all:hover{ color: var(--jodo-red-dark); }

/* Category grid */
.cat-grid{ display:grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cat-card{
  background: var(--paper-card); border:1px solid var(--line); border-radius: var(--radius);
  padding: 22px 16px; text-align:center; transition: transform .15s ease, box-shadow .15s ease;
}
.cat-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.cat-ico{
  width:54px; height:54px; border-radius: 16px; margin: 0 auto 12px; display:flex; align-items:center; justify-content:center;
  background: var(--paper-dim);
}
.cat-ico svg{ width:26px; height:26px; fill: var(--jodo-red); }
.cat-card h4{ font-size: 14.5px; font-weight:700; font-family: var(--font-body); margin-bottom: 2px; }
.cat-card span{ font-size: 12px; color: var(--ink-soft); font-family: var(--font-mono); }

/* Business cards */
.biz-row{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.biz-card{
  background: var(--paper-card); border:1px solid var(--line); border-radius: var(--radius);
  overflow:hidden; box-shadow: var(--shadow-sm); transition: transform .15s ease;
}
.biz-card:hover{ transform: translateY(-3px); }
.biz-photo{ position:relative; aspect-ratio: 16/10; overflow:hidden; background: var(--paper-dim); }
.biz-photo img{ width:100%; height:100%; object-fit:cover; }
.biz-badge{
  position:absolute; top:10px; left:10px; background: var(--teal); color:#fff;
  font-size: 11px; font-weight:700; padding: 4px 9px; border-radius: 999px; display:flex; align-items:center; gap:4px;
}
.biz-badge svg{ width:11px; height:11px; fill:#fff; }
.biz-body{ padding: 16px; }
.biz-cat{ font-size: 12px; color: var(--jodo-red); font-weight:700; text-transform:uppercase; letter-spacing:.03em; }
.biz-body h4{ font-size: 17px; font-family: var(--font-body); font-weight:700; margin: 4px 0 6px; }
.rating{ display:flex; align-items:center; gap:6px; margin-bottom: 8px; }
.rating .stars{ background: var(--gold); color:#211A14; font-weight:800; font-size:12.5px; padding:2px 7px; border-radius:5px; display:flex; align-items:center; gap:3px; }
.rating .stars svg{ width:11px; height:11px; fill:#211A14; }
.rating .count{ font-size:12.5px; color: var(--ink-soft); font-family: var(--font-mono); }
.biz-addr{ font-size: 13px; color: var(--ink-soft); margin-bottom: 12px; display:flex; gap:6px; }
.biz-addr svg{ width:14px; height:14px; fill: var(--ink-soft); flex-shrink:0; margin-top:1px; }
.biz-actions{ display:flex; gap:8px; }
.btn-call{ flex:1; background: var(--jodo-red); color:#fff; border:none; border-radius: var(--radius-sm); padding: 9px; font-weight:700; font-size:13px; display:flex; align-items:center; justify-content:center; gap:6px; }
.btn-call svg{ width:13px; height:13px; fill:#fff; }
.btn-call:hover{ background: var(--jodo-red-dark); }
.btn-wa{ width:40px; background: #e9f6ec; border:1px solid #cfe9d4; border-radius: var(--radius-sm); display:flex; align-items:center; justify-content:center; }
.btn-wa svg{ width:18px; height:18px; fill: #2E9E50; }

/* CTA banner */
.cta-banner{
  background: linear-gradient(120deg, var(--jodo-red) 0%, var(--jodo-red-dark) 100%);
  border-radius: var(--radius); padding: 40px 44px; color:#fff;
  display:flex; align-items:center; justify-content:space-between; gap: 24px; flex-wrap:wrap;
}
.cta-banner h3{ font-size: 26px; color:#fff; margin-bottom:6px; }
.cta-banner p{ opacity:.88; font-size:14px; max-width: 420px; }
.btn-white{ background:#fff; color: var(--jodo-red); border:none; padding: 14px 26px; border-radius: 999px; font-weight:800; font-size:14.5px; flex-shrink:0; }
.btn-white:hover{ background: var(--gold); color: var(--ink); }

/* ============================================================
   Footer
   ============================================================ */
footer{ background: var(--ink); color: #D9C9B6; padding: 50px 0 20px; margin-top: 30px; }
.foot-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.1); }
.foot-grid h5{ color:#fff; font-size: 13.5px; margin-bottom: 14px; font-family: var(--font-body); }
.foot-grid li{ margin-bottom: 9px; }
.foot-grid a{ font-size: 13.5px; opacity: .8; }
.foot-grid a:hover{ opacity:1; color: var(--gold); }
.foot-logo{ font-family: var(--font-display); font-weight:800; font-size:24px; color:#fff; margin-bottom: 10px; }
.foot-logo .dot{ color: var(--jodo-orange); }
.foot-bottom{ display:flex; justify-content:space-between; align-items:center; padding-top: 20px; font-size: 12.5px; opacity: .65; flex-wrap:wrap; gap:10px; }

/* ============================================================
   Breadcrumb (shared)
   ============================================================ */
.crumb{ padding: 16px 0; font-size: 13px; color: var(--ink-soft); }
.crumb a:hover{ color: var(--jodo-red); }
.crumb .sep{ margin: 0 6px; opacity:.5; }
.crumb .current{ color: var(--ink); font-weight:600; }

/* ============================================================
   Category index page
   ============================================================ */
.cat-layout{ display:grid; grid-template-columns: 230px 1fr; gap: 0; align-items: start; }
.index-rail{ position: sticky; top: 92px; display:flex; flex-direction:column; gap:8px; }
.index-rail .itab{
  background: var(--paper-card); border:1px solid var(--line); border-left: 5px solid transparent;
  border-radius: 0 10px 10px 0; padding: 11px 14px; font-size: 13.5px; font-weight:700; color: var(--ink-soft);
  display:flex; align-items:center; gap:10px; transition: all .12s ease;
}
.index-rail .itab svg{ width:16px; height:16px; fill: var(--ink-soft); flex-shrink:0; }
.index-rail .itab:hover, .index-rail .itab.active{ border-left-color: var(--jodo-red); color: var(--jodo-red); background: var(--paper-dim); }
.index-rail .itab.active svg{ fill: var(--jodo-red); }

.cat-content{ padding-left: 36px; border-left: 1px solid var(--line); }
.cat-hero{ display:flex; align-items:center; gap: 18px; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px dashed var(--line); }
.cat-hero .cat-ico{ width:64px; height:64px; flex-shrink:0; margin:0; }
.cat-hero .cat-ico svg{ width:30px; height:30px; }
.cat-hero h2{ font-size: 26px; }
.cat-hero p{ color: var(--ink-soft); font-size: 13.5px; font-family: var(--font-mono); }

.subcat-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 36px; }
.subcat-card{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  background: var(--paper-card); border:1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.subcat-card:hover{ border-color: var(--jodo-red); }
.subcat-card .name{ font-weight:700; font-size: 14.5px; }
.subcat-card .count{ font-size: 12px; color: var(--ink-soft); font-family: var(--font-mono); }
.subcat-card .arrow{ width:28px; height:28px; border-radius:50%; background: var(--paper-dim); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.subcat-card .arrow svg{ width:13px; height:13px; fill: var(--jodo-red); }

.popular-tags{ display:flex; flex-wrap:wrap; gap:10px; }

/* ============================================================
   Listing detail page
   ============================================================ */
.gallery{ display:grid; grid-template-columns: 2fr 1fr; gap: 10px; height: 380px; margin-bottom: 26px; border-radius: var(--radius); overflow:hidden; }
.gallery img{ width:100%; height:100%; object-fit:cover; }
.gallery-side{ display:grid; grid-template-rows: 1fr 1fr; gap:10px; }

.detail-layout{ display:grid; grid-template-columns: 1fr 340px; gap: 36px; align-items:start; }

.detail-head{ display:flex; justify-content:space-between; align-items:flex-start; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 22px; flex-wrap:wrap; }
.detail-head h1{ font-size: 30px; margin: 6px 0 8px; }
.detail-tags{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:10px; }
.tag{ font-size:12px; font-weight:700; background: var(--paper-dim); color: var(--ink-soft); padding: 4px 10px; border-radius:999px; }
.open-badge{ display:inline-flex; align-items:center; gap:6px; color: var(--teal-dark); font-weight:700; font-size: 13.5px; }
.open-badge .dot{ width:7px; height:7px; border-radius:50%; background: var(--teal); }
.detail-addr{ display:flex; gap:8px; color: var(--ink-soft); font-size: 14px; margin-top:8px; }
.detail-addr svg{ width:16px; height:16px; fill: var(--jodo-red); flex-shrink:0; margin-top:2px; }
.action-row{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom: 30px; }
.action-row button{ display:flex; align-items:center; gap:8px; padding: 12px 20px; border-radius: var(--radius-sm); font-weight:700; font-size: 14px; border: none; }
.act-call{ background: var(--jodo-red); color:#fff; }
.act-call:hover{ background: var(--jodo-red-dark); }
.act-wa{ background: #2E9E50; color:#fff; }
.act-wa:hover{ background: #257f41; }
.act-dir{ background: var(--paper-card); border:1.5px solid var(--line) !important; color: var(--ink); }
.act-dir:hover{ border-color: var(--jodo-red) !important; color: var(--jodo-red); }
.act-rev{ background: transparent; border: 1.5px dashed var(--line) !important; color: var(--ink-soft); }
.action-row svg{ width:16px; height:16px; fill:currentColor; }

.tabs-nav{ display:flex; gap: 26px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.tabs-nav button{ background:none; border:none; padding: 10px 2px 14px; font-weight:700; font-size: 14.5px; color: var(--ink-soft); border-bottom: 3px solid transparent; }
.tabs-nav button.active{ color: var(--jodo-red); border-color: var(--jodo-red); }

.about-text{ color: var(--ink-soft); font-size: 14.5px; line-height: 1.7; margin-bottom: 22px; }
.svc-list{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom: 28px; }
.svc-tag{ border:1px solid var(--line); background: var(--paper-card); padding: 8px 14px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight:600; }

.timing-table{ width:100%; border-collapse: collapse; margin-bottom: 30px; font-size: 13.5px; }
.timing-table td{ padding: 8px 0; border-bottom: 1px dashed var(--line-soft); }
.timing-table td:first-child{ font-weight:700; width: 130px; }
.timing-table tr.today td{ color: var(--jodo-red); }

.review{ display:flex; gap:14px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.review .avatar{ width:42px; height:42px; border-radius:50%; background: var(--jodo-red); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:800; flex-shrink:0; }
.review .who{ font-weight:700; font-size: 14px; }
.review .when{ font-size: 12px; color: var(--ink-soft); font-family: var(--font-mono); }
.review p{ font-size: 14px; color: var(--ink-soft); margin-top:6px; line-height:1.6; }

.side-card{ background: var(--paper-card); border:1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; position: sticky; top: 92px; }
.side-card h4{ font-size: 15px; margin-bottom: 14px; }
.side-row{ display:flex; justify-content:space-between; font-size: 13.5px; padding: 7px 0; border-bottom: 1px dashed var(--line-soft); }
.side-row b{ font-family: var(--font-mono); }
.map-box{ aspect-ratio: 4/3; background: var(--paper-dim); border-radius: var(--radius-sm); display:flex; align-items:center; justify-content:center; color: var(--ink-soft); font-size:12.5px; font-family: var(--font-mono); margin-top: 14px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px){
  .cat-grid{ grid-template-columns: repeat(3,1fr); }
  .biz-row{ grid-template-columns: repeat(2,1fr); }
  .foot-grid{ grid-template-columns: 1fr 1fr; }
  .detail-layout{ grid-template-columns: 1fr; }
  .cat-layout{ grid-template-columns: 1fr; }
  .index-rail{ position:static; flex-direction:row; overflow-x:auto; padding-bottom:6px; }
  .index-rail .itab{ border-left:none; border-bottom:3px solid transparent; border-radius:8px 8px 0 0; white-space:nowrap; }
  .index-rail .itab.active{ border-bottom-color: var(--jodo-red); }
  .cat-content{ padding-left:0; border-left:none; margin-top: 20px; }
  .subcat-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px){
  .nav .wrap{ flex-wrap:wrap; height:auto; padding: 12px 18px; gap:10px; }
  .nav-search{ order:3; width:100%; }
  .nav-actions .nav-link{ display:none; }
  .hero-tabs{ display:none; }
  .hero-main{ border-radius: var(--radius); padding: 28px 22px; }
  .hero h1{ font-size: 30px; }
  .stat-strip .wrap{ flex-wrap:wrap; }
  .stat{ flex: 1 1 45%; border-right:none; margin-bottom:12px; }
  .cat-grid{ grid-template-columns: repeat(2,1fr); }
  .biz-row{ grid-template-columns: 1fr; }
  .foot-grid{ grid-template-columns: 1fr 1fr; }
  .cta-banner{ flex-direction:column; align-items:flex-start; }
  .gallery{ grid-template-columns: 1fr; height:auto; }
  .gallery-side{ grid-template-columns: 1fr 1fr; grid-template-rows:none; }
  .subcat-grid{ grid-template-columns: 1fr; }
  .action-row button span{ display:none; }
}
