/* =========================================================================
   MillionsDigital design system
   -------------------------------------------------------------------------
   Hand-authored, no build step. The app runs after `composer install` with
   no Node toolchain, which matters on the shared PHP hosting most Indian
   small-business projects start on.

   Palette is sampled directly from the brand marks:
     navy   #02336b  the "Millions" wordmark
     green  #048b3c  the "Digital" wordmark
     orange #fc7b03  the dot over the i
     azure  #0073d0  cool end of the map-pin icon gradient
     lime   #92cc28  warm end of the same gradient

   Navy carries structure and trust, green signals verified/open/positive,
   and orange is scarce on purpose: ratings, the primary action and
   sponsored labels only. The azure-to-green sweep from the icon appears
   once, across the hero, so the page echoes the logo without repeating it.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* ---- neutrals, cooled very slightly toward the navy ---- */
  --ink:        #0d1b2e;
  --ink-soft:   #35465c;
  --muted:      #64748b;
  --line:       #dde4ed;
  --line-soft:  #eef2f7;
  --paper:      #f4f7fb;
  --card:       #ffffff;

  /* ---- brand ---- */
  --brand:      #02336b;
  --brand-deep: #012349;
  --brand-lift: #0a4a92;
  --brand-wash: #eaf1fa;

  --green:      #048b3c;
  --green-deep: #036b2e;
  --green-wash: #e7f6ed;

  --orange:      #fc7b03;
  --orange-deep: #c25d00;
  --orange-wash: #fff3e3;

  --azure:      #0073d0;
  --lime:       #92cc28;

  /* ---- semantic ---- */
  --good:       #048b3c;
  --good-wash:  #e7f6ed;
  --warn:       #9a6408;
  --warn-wash:  #fdf1de;
  --bad:        #c0392b;
  --bad-wash:   #fdeceb;
  --info:       #0a4a92;
  --info-wash:  #eaf1fa;

  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;
  --r-pill: 999px;

  --shell: 1180px;
  --gap:   20px;

  /* Layered rather than single shadows: premium surfaces read as lifted,
     not outlined. */
  --shadow-sm:   0 1px 2px rgba(13, 27, 46, .05), 0 1px 3px rgba(13, 27, 46, .04);
  --shadow:      0 2px 4px rgba(13, 27, 46, .04), 0 6px 16px rgba(13, 27, 46, .07);
  --shadow-lift: 0 10px 20px rgba(2, 51, 107, .10), 0 24px 48px rgba(2, 51, 107, .12);
  --shadow-bar:  0 -2px 18px rgba(13, 27, 46, .13);

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --display: 'Plus Jakarta Sans', var(--sans);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.22; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: 2rem; font-weight: 800; }
h2 { font-size: 1.4rem; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
h4 { font-size: .95rem; font-weight: 700; }
p  { margin: 0 0 1em; max-width: 72ch; }

a { color: var(--brand-lift); text-decoration: none; }
a:hover { color: var(--brand); text-decoration: underline; }

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

img { max-width: 100%; display: block; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 18px; }
.stack > * + * { margin-top: var(--gap); }
.muted { color: var(--muted); }
.tiny { font-size: .78rem; }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------------------------------------------------------------- header */
.masthead {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
}
.masthead__inner { display: flex; align-items: center; gap: 18px; height: 70px; }

/* The wordmark is the supplied artwork, not type we re-set. */
.wordmark { display: flex; align-items: center; gap: 10px; flex: none; }
.wordmark:hover { text-decoration: none; }
.wordmark img { height: 30px; width: auto; }
.wordmark__mark { width: 32px; height: 32px; flex: none; }
.wordmark__tag {
  display: none; font-family: var(--sans); font-size: .7rem; font-weight: 600;
  color: var(--muted); letter-spacing: .04em; text-transform: uppercase;
  padding-left: 10px; margin-left: 2px; border-left: 1px solid var(--line);
}
@media (min-width: 980px) { .wordmark__tag { display: inline-block; } }

.masthead__nav { margin-left: auto; display: none; align-items: center; gap: 4px; }
@media (min-width: 860px) { .masthead__nav { display: flex; } }
.masthead__nav a {
  color: var(--ink-soft); font-size: .9rem; font-weight: 600;
  padding: 8px 12px; border-radius: var(--r-sm); transition: background .14s ease, color .14s ease;
}
.masthead__nav a:hover { background: var(--brand-wash); color: var(--brand); text-decoration: none; }
.masthead__nav .btn { margin-left: 6px; }

.masthead__search { flex: 1; max-width: 480px; display: none; }
@media (min-width: 1040px) { .masthead__search { display: block; } }

/* ------------------------------------------------------------------- hero
   The one deliberately loud element on the site. A directory lives or dies
   on whether people search, so the search console is the hero rather than a
   headline with a picture behind it. The gradient runs navy to azure to
   green: the same sweep as the map-pin mark. */
.hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 88% -20%, rgba(4, 139, 60, .55), transparent 60%),
    radial-gradient(760px 380px at 8% 110%, rgba(0, 115, 208, .45), transparent 62%),
    linear-gradient(135deg, #012349 0%, #02336b 48%, #0b4f86 100%);
  color: #fff;
  padding: 52px 0 32px;
  overflow: hidden;
}
/* A single hairline of the brand gradient closes the hero off crisply. */
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--azure), var(--green) 55%, var(--orange));
}
.hero h1 {
  color: #fff; font-size: clamp(1.75rem, 5vw, 2.9rem); max-width: 17ch;
  font-weight: 800; letter-spacing: -.03em;
}
.hero h1 em { font-style: normal; color: var(--lime); }
.hero__sub { color: rgba(255,255,255,.82); max-width: 54ch; margin-bottom: 26px; font-size: 1.02rem; }

.console {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 8px;
  display: grid;
  gap: 8px;
  box-shadow: var(--shadow-lift);
  position: relative;
}
@media (min-width: 760px) { .console { grid-template-columns: 1.5fr 1fr auto; align-items: center; } }

.console__field { position: relative; display: flex; align-items: center; border-radius: var(--r); }
.console__field + .console__field { border-top: 1px solid var(--line-soft); }
@media (min-width: 760px) {
  .console__field + .console__field { border-top: 0; border-left: 1px solid var(--line-soft); }
}
.console__field label {
  position: absolute; left: 44px; top: 9px; font-size: .67rem; color: var(--muted);
  font-weight: 700; letter-spacing: .04em; text-transform: uppercase; pointer-events: none;
}
/* Sit on the text line, not the middle of the field -- the floating label
   occupies the top of the box. */
.console__field svg { position: absolute; left: 15px; top: 34px; transform: translateY(-50%); color: var(--brand-lift); pointer-events: none; }
/* These must out-specify the generic `input[type=...]` block further down.
   `.console input` ties with it on specificity and loses on source order,
   which put the placeholder back under the floating label and the icon. */
.console .console__field input {
  width: 100%; border: 0; background: transparent; box-shadow: none;
  border-radius: var(--r); font: inherit; color: var(--ink);
  padding: 25px 14px 9px 44px; font-weight: 500; line-height: 1.2;
  min-height: 58px;
}
.console .console__field input::placeholder { color: #94a3b8; font-weight: 400; }
.console .console__field input:focus { outline: none; border: 0; box-shadow: none; }
/* Safari draws its own decoration on search inputs. */
.console .console__field input[type="search"]::-webkit-search-decoration,
.console .console__field input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.console__field:focus-within { background: var(--brand-wash); }
.console__field:focus-within label { color: var(--brand); }
.console .btn { min-height: 58px; padding-inline: 30px; align-self: stretch; }

.hero__chips { display: flex; gap: 8px; overflow-x: auto; padding: 20px 0 4px; scrollbar-width: none; }
.hero__chips::-webkit-scrollbar { display: none; }
.hero__chips a {
  flex: none; padding: 8px 15px; border-radius: var(--r-pill); font-size: .85rem; font-weight: 600;
  background: rgba(255,255,255,.13); color: #fff; border: 1px solid rgba(255,255,255,.22);
  transition: background .14s ease, border-color .14s ease;
}
.hero__chips a:hover { background: rgba(255,255,255,.24); border-color: rgba(255,255,255,.4); color: #fff; text-decoration: none; }

.hero__stats { display: flex; flex-wrap: wrap; gap: 18px 34px; margin-top: 24px; font-size: .85rem; color: rgba(255,255,255,.74); }
.hero__stats b { color: #fff; font-family: var(--display); font-size: 1.2rem; font-weight: 800; display: block; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: .92rem;
  padding: 12px 20px; border-radius: var(--r-sm); border: 1px solid transparent;
  cursor: pointer; text-align: center;
  transition: background .14s ease, border-color .14s ease, box-shadow .14s ease, transform .14s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-lift); color: #fff; box-shadow: var(--shadow); }

/* Orange is the conversion colour: enquire, call, submit. Nothing else. */
.btn--accent { background: var(--orange); color: #fff; box-shadow: 0 1px 2px rgba(194,93,0,.3); }
.btn--accent:hover { background: #e06e02; color: #fff; box-shadow: 0 4px 12px rgba(252,123,3,.32); }

.btn--ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand-lift); color: var(--brand); background: var(--brand-wash); }
.btn--quiet { background: transparent; color: var(--muted); padding: 9px 11px; }
.btn--quiet:hover { color: var(--brand); background: var(--brand-wash); }
.btn--danger { background: var(--bad-wash); color: var(--bad); border-color: #f5cfcb; }
.btn--danger:hover { background: #fbdedb; color: var(--bad); }
.btn--sm { padding: 8px 13px; font-size: .84rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* ------------------------------------------------------------------ cards */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}
.card__body { padding: 20px; }
.card__head {
  padding: 15px 20px; border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card__head h2, .card__head h3 { margin: 0; }

.section { padding: 40px 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section__head p { margin: 3px 0 0; font-size: .88rem; color: var(--muted); }

.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
@media (min-width: 720px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 719px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }

/* --------------------------------------------------------- category tiles */
.tile {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  color: var(--ink); font-weight: 600; font-size: .9rem;
  box-shadow: var(--shadow-sm);
  transition: border-color .14s ease, box-shadow .14s ease, transform .14s ease;
}
.tile:hover { border-color: var(--brand-lift); box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; color: var(--ink); }
.tile__icon {
  width: 46px; height: 46px; flex: none; border-radius: 13px;
  background: linear-gradient(140deg, var(--brand-wash), var(--green-wash));
  color: var(--brand); display: grid; place-items: center; font-size: 1.15rem;
}
.tile:hover .catico { transform: scale(1.06) rotate(-2deg); }

/* -------------------------------------------------------- category icons
   Duotone vectors, tinted per family so a grid reads as a set rather than a
   wall of identical blue. The fill is the same hue at low alpha, which keeps
   the icons legible at 20px without a second colour to manage. */
.catico {
  width: 46px; height: 46px; flex: none; border-radius: 13px;
  display: grid; place-items: center;
  transition: transform .18s ease, box-shadow .18s ease;
}
.catico svg { width: 24px; height: 24px; display: block; }
.catico__fill { fill: currentColor; opacity: .16; stroke: none; }

.catico--navy   { color: #02336b; background: linear-gradient(145deg, #e8effa, #d8e4f6); }
.catico--green  { color: #04773a; background: linear-gradient(145deg, #e6f6ec, #d3efdf); }
.catico--orange { color: #c25d00; background: linear-gradient(145deg, #fff1de, #ffe3c2); }
.catico--azure  { color: #0060b0; background: linear-gradient(145deg, #e5f2fd, #d0e7fb); }
.catico--violet { color: #6b3fa0; background: linear-gradient(145deg, #f1ecfb, #e4daf7); }

.catico--lg { width: 64px; height: 64px; border-radius: 18px; }
.catico--lg svg { width: 32px; height: 32px; }
.catico--sm { width: 34px; height: 34px; border-radius: 10px; }
.catico--sm svg { width: 19px; height: 19px; }

/* Icon-first category grid, closer to how a directory homepage actually
   gets used: the picture is the target, the label sits under it. */
.catgrid { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
@media (min-width: 560px) { .catgrid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 900px) { .catgrid { grid-template-columns: repeat(8, 1fr); } }
.catgrid a {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 16px 8px; border-radius: var(--r); background: var(--card);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: .78rem; font-weight: 600; color: var(--ink-soft); text-align: center;
  line-height: 1.25;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.catgrid a:hover {
  text-decoration: none; color: var(--brand); transform: translateY(-3px);
  border-color: var(--brand-lift); box-shadow: var(--shadow);
}
.catgrid a:hover .catico { transform: scale(1.08); }
.catgrid small { display: block; color: var(--muted); font-weight: 500; font-size: .7rem; }
.tile__count { display: block; font-size: .74rem; color: var(--muted); font-weight: 500; margin-top: 1px; }

/* --------------------------------------------------------- business cards
   The left rail holds the logo and reads as a spine down the card, which
   keeps a dense results list scannable without a border around every
   element. */
.listing {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px; display: flex; gap: 16px; position: relative;
  box-shadow: var(--shadow-sm);
  transition: border-color .14s ease, box-shadow .14s ease;
}
.listing:hover { border-color: #c3d3e6; box-shadow: var(--shadow); }
.listing__rail { flex: none; width: 60px; }
.listing__logo {
  width: 60px; height: 60px; border-radius: 11px; object-fit: cover;
  background: linear-gradient(140deg, var(--brand-wash), var(--green-wash));
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; color: var(--brand); font-size: 1.4rem;
  border: 1px solid var(--line-soft);
}
.listing__body { flex: 1; min-width: 0; }
.listing__name { font-family: var(--display); font-size: 1.06rem; font-weight: 700; margin: 0 0 4px; }
.listing__name a { color: var(--ink); }
.listing__name a:hover { color: var(--brand); }
.listing__meta { font-size: .84rem; color: var(--muted); margin: 0 0 8px; }
.listing__addr { font-size: .85rem; color: var(--ink-soft); margin: 0 0 12px; }
.listing__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.listing__actions .btn { flex: 1 1 auto; min-width: 100px; }

/* Rating chip follows the directory convention: a solid score block, then
   the stars. Green reads as good at a glance in this palette. */
.rating { display: inline-flex; align-items: center; gap: 7px; font-size: .85rem; }
.rating__score {
  background: var(--green); color: #fff; font-weight: 700; font-size: .8rem;
  padding: 3px 8px; border-radius: var(--r-sm);
}
.rating__score--low { background: var(--warn); }
.rating__score--none { background: #94a3b8; }
.stars { color: var(--orange); letter-spacing: 1px; font-size: .92rem; }
.stars--empty { color: #cbd5e1; }

/* ------------------------------------------------------------------ pills */
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--line-soft); color: var(--ink-soft); letter-spacing: .01em;
}
.pill--best  { background: var(--green-wash);  color: var(--green-deep); }
.pill--good  { background: var(--green-wash);  color: var(--green-deep); }
.pill--info  { background: var(--brand-wash);  color: var(--brand-lift); }
.pill--muted { background: var(--line-soft);   color: var(--muted); }
.pill--open  { background: var(--green-wash);  color: var(--green-deep); }
.pill--shut  { background: var(--bad-wash);    color: var(--bad); }
.pill--featured { background: var(--orange-wash); color: var(--orange-deep); }

/* Sponsored placement is always spelled out, never implied by styling. */
.pill--sponsored {
  background: transparent; color: var(--muted);
  border: 1px dashed #b6c4d6; font-weight: 600;
}

/* ------------------------------------------------------------------ forms */
label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); }
.field { margin-bottom: 18px; }
.field__hint { font-size: .78rem; color: var(--muted); margin-top: 5px; }

input[type=text], input[type=email], input[type=tel], input[type=url],
input[type=password], input[type=number], input[type=search], input[type=date],
input[type=time], select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--card);
  transition: border-color .14s ease, box-shadow .14s ease;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand-lift); box-shadow: 0 0 0 3px rgba(10, 74, 146, .14);
}
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--bad); }
.error { color: var(--bad); font-size: .8rem; margin-top: 5px; font-weight: 500; }
.row { display: grid; gap: 16px; }
@media (min-width: 640px) { .row--2 { grid-template-columns: 1fr 1fr; } .row--3 { grid-template-columns: repeat(3,1fr); } }

.checkline { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; font-weight: 400; }
.checkline input { width: auto; margin-top: 3px; accent-color: var(--brand); }

/* ------------------------------------------------------------------ alert */
.alert { padding: 13px 15px; border-radius: var(--r-sm); font-size: .89rem; margin-bottom: 18px; border: 1px solid; border-left-width: 4px; }
.alert--good { background: var(--green-wash); border-color: #b7e2c6; border-left-color: var(--green); color: #05612b; }
.alert--bad  { background: var(--bad-wash);  border-color: #f5cfcb; border-left-color: var(--bad); color: #8c2418; }
.alert--info { background: var(--brand-wash); border-color: #c5d8ef; border-left-color: var(--brand-lift); color: var(--brand); }
.alert--warn { background: var(--warn-wash); border-color: #edd6ab; border-left-color: var(--orange); color: #7a4f06; }
.alert ul { margin: 7px 0 0; padding-left: 18px; }

/* ------------------------------------------------------------ search page */
.results { display: grid; gap: var(--gap); }
@media (min-width: 900px) { .results { grid-template-columns: 256px 1fr; align-items: start; } }

.filters { position: sticky; top: 86px; }
.filters__group + .filters__group { border-top: 1px solid var(--line-soft); padding-top: 16px; margin-top: 16px; }
.filters h3 { font-size: .74rem; margin-bottom: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }

.toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-bottom: 16px;
}
.toolbar select { width: auto; padding: 8px 11px; font-size: .85rem; }

.filters__toggle { display: block; width: 100%; }
@media (min-width: 900px) { .filters__toggle { display: none; } }
@media (max-width: 899px) { .filters[hidden] { display: none; } }

.empty { text-align: center; padding: 56px 20px; }
.empty h2 { margin-bottom: 8px; }
.empty p { margin: 0 auto 20px; max-width: 46ch; color: var(--muted); }

/* --------------------------------------------------------- business profile */
.profile__head { background: var(--card); border-bottom: 1px solid var(--line); padding: 26px 0; }
.profile__title { display: flex; gap: 18px; align-items: flex-start; }
.profile__logo {
  width: 86px; height: 86px; flex: none; border-radius: var(--r); object-fit: cover;
  background: linear-gradient(140deg, var(--brand-wash), var(--green-wash));
  display: grid; place-items: center;
  font-family: var(--display); font-size: 2rem; font-weight: 800; color: var(--brand);
  border: 1px solid var(--line-soft);
}
.profile__badges { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0 0; }
.profile__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.profile__grid { display: grid; gap: var(--gap); padding: 26px 0 90px; }
@media (min-width: 900px) { .profile__grid { grid-template-columns: 1fr 340px; align-items: start; } }
@media (min-width: 900px) { .profile__side { position: sticky; top: 86px; } }

.deflist { display: grid; grid-template-columns: 124px 1fr; gap: 9px 16px; font-size: .9rem; margin: 0; }
.deflist dt { color: var(--muted); font-weight: 500; }
.deflist dd { margin: 0; }

.hours { width: 100%; border-collapse: collapse; font-size: .88rem; }
.hours td { padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.hours tr:last-child td { border-bottom: 0; }
.hours td:last-child { text-align: right; color: var(--ink-soft); }
.hours tr[data-today] td { font-weight: 700; color: var(--brand); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 9px; }
.gallery img { border-radius: var(--r-sm); aspect-ratio: 4/3; object-fit: cover; }

.review { padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.review:last-child { border-bottom: 0; }
.review__head { display: flex; align-items: center; gap: 11px; margin-bottom: 8px; }
.review__avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(140deg, var(--brand-wash), var(--green-wash));
  display: grid; place-items: center; font-weight: 700; color: var(--brand); font-size: .85rem; flex: none;
}
.review__reply {
  margin: 12px 0 0 47px; padding: 12px 14px; background: var(--paper);
  border-left: 3px solid var(--green); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: .88rem;
}
.bars { display: grid; gap: 6px; }
.bar { display: grid; grid-template-columns: 30px 1fr 36px; gap: 9px; align-items: center; font-size: .78rem; }
.bar__track { height: 8px; background: var(--line-soft); border-radius: var(--r-pill); overflow: hidden; }
.bar__fill { height: 100%; background: linear-gradient(90deg, var(--orange), #ffa142); border-radius: var(--r-pill); }

/* Mobile contact bar: the whole point of a local directory on a phone. */
.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--card); border-top: 1px solid var(--line);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  display: flex; gap: 9px; box-shadow: var(--shadow-bar);
}
.stickybar .btn { flex: 1; }
@media (min-width: 900px) { .stickybar { display: none; } }

/* -------------------------------------------------------------- mobile nav */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  background: var(--card); border-top: 1px solid var(--line);
  display: flex; padding-bottom: env(safe-area-inset-bottom);
}
@media (min-width: 860px) { .tabbar { display: none; } }
.tabbar a {
  flex: 1; padding: 9px 4px 8px; text-align: center;
  font-size: .67rem; color: var(--muted); font-weight: 600;
}
.tabbar a:hover { text-decoration: none; }
.tabbar a[aria-current="page"] { color: var(--brand); }
.tabbar span { display: block; font-size: 1.2rem; line-height: 1.25; }
body.has-tabbar { padding-bottom: 64px; }
@media (min-width: 860px) { body.has-tabbar { padding-bottom: 0; } }
body.has-stickybar { padding-bottom: 136px; }
@media (min-width: 900px) { body.has-stickybar { padding-bottom: 0; } }

/* ------------------------------------------------------------- dashboards */
.console-shell { display: grid; gap: var(--gap); padding: 24px 0 80px; }
@media (min-width: 900px) { .console-shell { grid-template-columns: 224px 1fr; align-items: start; } }

.sidenav { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 8px; box-shadow: var(--shadow-sm); }
.sidenav a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm);
  color: var(--ink-soft); font-size: .89rem; font-weight: 600;
}
.sidenav a:hover { background: var(--paper); text-decoration: none; color: var(--brand); }
.sidenav a[aria-current="page"] { background: var(--brand); color: #fff; }
.sidenav__label { padding: 13px 12px 6px; font-size: .68rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 899px) { .sidenav { display: flex; gap: 4px; overflow-x: auto; } .sidenav a { white-space: nowrap; } .sidenav__label { display: none; } }

.kpis { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 17px;
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.kpi::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--azure), var(--green));
}
.kpi__value { font-family: var(--display); font-size: 1.7rem; font-weight: 800; line-height: 1.1; letter-spacing: -.03em; }
.kpi__label { font-size: .8rem; color: var(--muted); margin-top: 3px; }
.kpi__delta { font-size: .76rem; margin-top: 7px; font-weight: 700; }
.kpi__delta--up { color: var(--green); }
.kpi__delta--down { color: var(--bad); }

/* Funnel steps run cool to warm, ending on the conversion accent. */
.funnel { display: grid; gap: 8px; }
.funnel__step { display: grid; grid-template-columns: 138px 1fr 56px; gap: 11px; align-items: center; font-size: .85rem; }
.funnel__track { height: 26px; background: var(--line-soft); border-radius: var(--r-sm); overflow: hidden; }
.funnel__fill { height: 100%; background: var(--azure); border-radius: var(--r-sm); }
.funnel__step:nth-child(2) .funnel__fill { background: var(--brand-lift); }
.funnel__step:nth-child(3) .funnel__fill { background: var(--green); }
.funnel__step:nth-child(4) .funnel__fill { background: var(--orange); }

.spark { display: flex; align-items: flex-end; gap: 2px; height: 58px; }
.spark i { flex: 1; background: var(--brand-wash); border-radius: 3px 3px 0 0; min-height: 2px; }
.spark i[data-hot] { background: var(--brand-lift); }

/* ------------------------------------------------------------------ tables */
.table { width: 100%; border-collapse: collapse; font-size: .88rem; background: var(--card); }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.table th { font-size: .72rem; color: var(--muted); font-weight: 700; background: var(--paper); text-transform: uppercase; letter-spacing: .05em; }
.table tbody tr:hover { background: var(--brand-wash); }
.table__wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.table td .btn { white-space: nowrap; }

/* ------------------------------------------------------------- pagination */
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.pager a, .pager span {
  padding: 8px 13px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--card); color: var(--ink-soft); font-size: .86rem; font-weight: 600;
}
.pager a:hover { border-color: var(--brand-lift); color: var(--brand); text-decoration: none; }
.pager .is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager .is-disabled { opacity: .45; }

/* ----------------------------------------------------------- breadcrumbs */
.crumbs { font-size: .8rem; color: var(--muted); padding: 14px 0; display: flex; gap: 7px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs span[aria-current] { color: var(--ink-soft); font-weight: 600; }

/* ---------------------------------------------------------------- footer */
.footer {
  background: var(--brand-deep); color: rgba(255,255,255,.7);
  padding: 46px 0 28px; margin-top: 52px; font-size: .87rem;
  border-top: 3px solid var(--azure);
  border-image: linear-gradient(90deg, var(--azure), var(--green) 55%, var(--orange)) 1;
}
.footer h4 { color: #fff; font-size: .78rem; margin-bottom: 13px; text-transform: uppercase; letter-spacing: .06em; }
.footer a { color: rgba(255,255,255,.7); }
.footer a:hover { color: #fff; }
.footer img { height: 26px; width: auto; margin-bottom: 12px; }
.footer__grid { display: grid; gap: 28px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 820px) { .footer__grid { grid-template-columns: 1.6fr repeat(4, 1fr); } }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__base {
  border-top: 1px solid rgba(255,255,255,.13); margin-top: 32px; padding-top: 20px;
  font-size: .8rem; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
}

/* -------------------------------------------------------------- suggest */
.suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lift); overflow: hidden; max-height: 340px; overflow-y: auto;
}
.suggest[hidden] { display: none; }
.suggest button {
  display: flex; width: 100%; gap: 11px; align-items: center; text-align: left;
  padding: 11px 15px; border: 0; background: none; font: inherit; cursor: pointer;
}
.suggest button:hover, .suggest button[aria-selected="true"] { background: var(--brand-wash); }
.suggest small { color: var(--muted); margin-left: auto; font-size: .74rem; }

@media (min-width: 760px) { .console__field:first-child { position: static; } }
