/* =====================================================================
   Infinity Binary — Businesses directory stylesheet
   Loaded by every page under /businesses/ AFTER the main site CSS.
   Uses the same design tokens and visual language as index-*.css:
   paper/ink/bone/signal/coral palette, IBM Plex Mono micro-labels,
   Space Grotesk headings, hairline grids, hard-shadow hovers.
   ===================================================================== */

:root {
  --ink: #0b1020;
  --ink-2: #11182b;
  --bone: #f2efe5;
  --paper: #fbfaf6;
  --muted: #9aa2b6;
  --line: #d9d7cd;
  --signal: #b7f52b;
  --coral: #ff7652;
  --white: #fff;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}

/* ---------- layout helpers ---------- */
.biz-wrap { padding: 0 clamp(24px, 8vw, 128px); }
.biz-page { background: var(--paper); color: var(--ink); }

/* ---------- breadcrumbs ---------- */
.biz-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; font: 600 11px/1.4 "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.biz-crumbs a { color: var(--bone); text-decoration: none; border-bottom: 1px solid #f2efe559; padding-bottom: 2px; }
.biz-crumbs a:hover { color: var(--signal); border-color: var(--signal); }
.biz-crumbs span[aria-hidden] { color: #4a5361; }
.biz-crumbs span[aria-current] { color: var(--signal); }

/* ---------- 1. hero ---------- */
.biz-hero { background: var(--ink); color: var(--bone); padding: 64px clamp(24px, 8vw, 128px) 78px; }
.biz-hero-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 56px; align-items: center; }
.biz-hero-copy h1 { margin: 0 0 18px; font-family: "Space Grotesk", sans-serif; font-size: clamp(38px, 5.4vw, 72px); line-height: .96; letter-spacing: -.065em; }
.biz-hero-tagline { color: #b1b8c6; max-width: 560px; margin: 0 0 26px; font-size: 18px; line-height: 1.65; }
.biz-hero .eyebrow { color: var(--signal); }
.biz-hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.biz-hero-ctas > a:not(.button) { color: var(--bone); font: 700 13px/1 "DM Sans", sans-serif; border-bottom: 1px solid #f2efe559; padding-bottom: 4px; text-decoration: none; transition: color .18s ease, border-color .18s ease; }
.biz-hero-ctas > a:not(.button):hover { color: var(--signal); border-color: var(--signal); }
.biz-hero-social { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 26px; }
.biz-hero-social .meta { color: #6d7688; }
.biz-hero-social a { color: var(--bone); font: 700 13px/1 "DM Sans", sans-serif; text-decoration: none; border-bottom: 1px solid #f2efe559; padding-bottom: 4px; }
.biz-hero-social a:hover { color: var(--signal); }
.biz-hero-media { position: relative; }
.biz-hero-photo { width: 100%; height: clamp(240px, 32vw, 420px); object-fit: cover; display: block; border: 1px solid #f2efe559; }
.biz-hero-media .biz-open-pill { position: absolute; top: 14px; left: 14px; z-index: 2; }

/* open/closed pill */
.biz-open-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--bone); border: 1px solid #f2efe559; padding: 8px 12px; font: 600 11px/1 "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.biz-open-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); flex: 0 0 auto; }
.biz-open-pill.is-open .biz-open-dot { background: var(--signal); box-shadow: 0 0 0 3px #b7f52b33; }
.biz-open-pill.is-closed .biz-open-dot { background: var(--coral); }

/* ---------- 2. quick-facts bar ---------- */
.biz-facts { border-bottom: 1px solid var(--line); background: var(--paper); padding: 34px clamp(24px, 8vw, 128px); }
.biz-facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; }
.biz-fact .meta { color: #656e7b; display: block; margin-bottom: 10px; }
.biz-fact-strong { margin: 0 0 6px; font: 600 17px/1.4 "DM Sans", sans-serif; }
.biz-fact-strong a { color: inherit; text-decoration: none; border-bottom: 2px solid var(--signal); }
.biz-fact-strong a:hover { background: var(--signal); }
.biz-fact-sub { margin: 0; color: #626a78; font-size: 13px; line-height: 1.55; }
.biz-fact-sub a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); display: inline-flex; align-items: center; gap: 6px; }
.biz-fact-sub a:hover { color: var(--ink); border-color: var(--ink); }
.biz-fact-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.biz-fact-chips a, .biz-fact-chips span { background: var(--bone); border: 1px solid var(--line); color: var(--ink); font: 600 11px/1 "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .05em; padding: 8px 10px; text-decoration: none; }
.biz-fact-chips a:hover { background: var(--signal); border-color: var(--signal); }
.biz-map { margin-top: 26px; border: 1px solid var(--line); }
.biz-map iframe { width: 100%; height: 300px; border: 0; display: block; filter: grayscale(12%); }

/* ---------- 3. gallery ---------- */
.biz-gallery { padding: 56px clamp(24px, 8vw, 128px); }
.biz-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.biz-gallery-item { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; }
.biz-gallery-item img { width: 100%; height: 220px; object-fit: cover; display: block; transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out); }
.biz-gallery-item:hover img { transform: translateY(-3px); box-shadow: 6px 6px 0 #b7f52be0; }
.biz-gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
.biz-gallery-item:first-child img { height: 100%; min-height: 452px; }
.biz-lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1100px); margin: auto; }
.biz-lightbox img { width: 100%; max-height: 86vh; object-fit: contain; background: var(--ink); }
.biz-lightbox-close { position: fixed; top: 18px; right: 22px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #f2efe559; background: var(--ink); color: var(--bone); font-size: 22px; line-height: 1; cursor: pointer; }
.biz-lightbox-close:hover { background: var(--coral); border-color: var(--coral); color: var(--ink); }
.biz-lightbox::backdrop { background: #0b1020e6; }

/* ---------- section headings ---------- */
.biz-page .section-heading { max-width: 780px; }
.biz-page .section-heading h2 { font-size: clamp(30px, 4vw, 52px); }

/* ---------- 4. core offerings ---------- */
.biz-services { padding: 64px clamp(24px, 8vw, 128px); background: var(--bone); border-block: 1px solid var(--line); }
.biz-services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.biz-service { background: var(--paper); padding: 24px; transition: background .24s ease; }
.biz-service:hover { background: var(--white); }
.biz-service h3 { margin: 0 0 8px; font-family: "Space Grotesk", sans-serif; font-size: 19px; letter-spacing: -.03em; }
.biz-service h3::before { content: ""; display: block; width: 26px; height: 4px; background: var(--signal); margin-bottom: 14px; }
.biz-service p { margin: 0; color: #626a78; font-size: 14px; line-height: 1.6; }

/* ---------- 5. about ---------- */
.biz-about { padding: 64px clamp(24px, 8vw, 128px); }
.biz-about-body { max-width: 760px; font-size: 17px; line-height: 1.7; color: #333a49; }
.biz-about-body p { margin: 0 0 18px; }
.biz-verified { color: #656e7b; margin-top: 22px; }

/* ---------- 6. optional blocks ---------- */
.biz-booking { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin: 0 clamp(24px, 8vw, 128px) 0; padding: 34px; border: 1px solid var(--ink); background: var(--white); }
.biz-booking h2 { margin: 0 0 4px; font-size: clamp(24px, 3vw, 34px); }
.biz-booking p { margin: 0; color: #626a78; }
.biz-booking > div { flex: 1 1 320px; }
.biz-booking .button { flex: 0 0 auto; }
.biz-page .biz-booking { margin-bottom: 56px; }

.biz-faq { padding: 0 clamp(24px, 8vw, 128px) 64px; }
.biz-faq-list { max-width: 780px; border-top: 1px solid var(--line); }
.biz-faq-list details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.biz-faq-list summary { cursor: pointer; list-style: none; position: relative; padding: 18px 44px 18px 0; font: 600 17px/1.4 "DM Sans", sans-serif; }
.biz-faq-list summary::-webkit-details-marker { display: none; }
.biz-faq-list summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 400 26px/1 "Space Grotesk", sans-serif; color: var(--ink); transition: transform .2s var(--ease-out); }
.biz-faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--coral); }
.biz-faq-list details p { margin: 0 0 18px; color: #626a78; font-size: 15px; line-height: 1.65; max-width: 680px; }

/* ---------- 7. claim CTA ---------- */
.biz-claim { background: var(--ink); color: var(--bone); padding: 74px clamp(24px, 8vw, 128px); }
.biz-claim .section-heading h2 { font-size: clamp(30px, 4vw, 52px); }
.biz-claim .section-heading p { color: #b1b8c6; }
.biz-claim-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: #f2efe533; border: 1px solid #f2efe533; margin-top: 40px; }
.biz-claim-card { background: var(--ink-2); padding: 26px; display: flex; flex-direction: column; gap: 0; align-items: flex-start; }
.biz-claim-card h3 { margin: 0 0 10px; font-family: "Space Grotesk", sans-serif; font-size: 22px; letter-spacing: -.03em; color: var(--signal); }
.biz-claim-card p { color: #b1b8c6; font-size: 14px; line-height: 1.6; margin: 0 0 20px; flex: 1 1 auto; }
.biz-claim-card .button { align-self: flex-start; }

/* ---------- 8. unclaimed notice + credit ---------- */
.biz-unclaimed-note { background: var(--bone); border-block: 1px solid var(--line); padding: 14px clamp(24px, 8vw, 128px); font-size: 13px; color: #4a5361; }
.biz-unclaimed-note p { margin: 0; }
.biz-unclaimed-note a { color: var(--ink); font-weight: 700; text-decoration-color: var(--signal); text-decoration-thickness: 2px; }
.biz-credit { padding: 22px clamp(24px, 8vw, 128px) 26px; background: var(--paper); border-top: 1px solid var(--line); font: 600 11px/1.6 "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .08em; color: #656e7b; }
.biz-credit a { color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--signal); }
.biz-credit a:hover { background: var(--signal); }
.biz-credit span { margin-left: 6px; }

/* =====================================================================
   Directory + category hubs
   ===================================================================== */
.biz-listing-hero .hero-thumb { border: 1px solid #f2efe559; }
.biz-listing-controls { display: grid; gap: 26px; padding: 40px clamp(24px, 8vw, 128px); border-bottom: 1px solid var(--line); background: var(--paper); }
.biz-cat-block > .meta, .biz-city-block > .meta { display: block; color: #656e7b; margin-bottom: 12px; }
.biz-cat-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.biz-cat-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #b9bbc0; color: #4a5361; background: 0 0; padding: 10px 12px; font: 600 11px/1 "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; cursor: pointer; transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s var(--ease-out); }
.biz-cat-chip b { font-weight: 600; color: var(--coral); }
.biz-cat-chip:hover { transform: translateY(-2px); color: var(--ink); border-color: var(--ink); }
.biz-cat-chip.active { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.biz-cat-chip.active b { color: var(--signal); }
.biz-city-row { display: flex; flex-wrap: wrap; gap: 8px; }
.biz-city-row button { color: #4a5361; text-transform: uppercase; cursor: pointer; background: 0 0; border: 1px solid #b9bbc0; padding: 10px 12px; font: 600 11px/1 "IBM Plex Mono", monospace; letter-spacing: .06em; display: inline-flex; gap: 8px; transition: background .16s ease, border-color .16s ease, color .16s ease; }
.biz-city-row button:hover { color: var(--ink); border-color: var(--ink); }
.biz-city-row button.active { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.biz-search-label { display: block; width: min(100%, 520px); color: #656e7b; font: 11px "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.biz-search-label input { width: 100%; margin-top: 8px; border: 1px solid #b9bbc0; background: var(--white); padding: 13px 14px; font: 500 14px/1.4 "DM Sans", sans-serif; color: var(--ink); }
.biz-search-label input:focus { outline: 2px solid var(--signal); outline-offset: 1px; border-color: var(--ink); }

.biz-listing { padding: 48px clamp(24px, 8vw, 128px) 64px; }
.biz-listing-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 24px; }
.biz-listing-head h2 { margin: 0; font-size: clamp(24px, 3vw, 38px); }
.biz-result-count { font: 600 11px/1 "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .08em; color: #656e7b; }
.biz-grid { background: var(--line); border: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; }
.biz-card { background: var(--paper); color: inherit; text-decoration: none; display: flex; flex-direction: column; min-height: 300px; padding: 0 0 20px; transition: background .24s ease, transform .24s var(--ease-out), box-shadow .24s var(--ease-out); }
.biz-card:hover { background: var(--white); }
.biz-card-signal { display: block; height: 4px; background: var(--signal); }
.biz-card-image { width: 100%; height: 165px; object-fit: cover; display: block; margin-bottom: 18px; }
.biz-card-marker { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 24px; margin-bottom: 8px; font: 600 10px "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .05em; color: #656e7b; }
.biz-card h3 { margin: 0 0 6px; padding: 0 24px; font-family: "Space Grotesk", sans-serif; font-size: 22px; letter-spacing: -.035em; }
.biz-card p { margin: 0; padding: 0 24px; color: #626a78; font-size: 14px; line-height: 1.55; flex: 1 1 auto; }
.biz-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 24px 0; flex-wrap: wrap; }
.biz-card-foot .text-link { color: var(--ink); }
.biz-card:hover .biz-card-signal { background: var(--coral); }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .biz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .biz-claim-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .biz-hero { padding-bottom: 54px; }
  .biz-hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .biz-hero-photo { height: clamp(200px, 46vw, 320px); }
  .biz-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .biz-gallery-item:first-child { grid-column: span 2; grid-row: auto; }
  .biz-gallery-item:first-child img { min-height: 240px; }
  .biz-map iframe { height: 240px; }
}
@media (max-width: 640px) {
  .biz-grid { grid-template-columns: 1fr; }
  .biz-card { min-height: 0; }
  .biz-gallery-grid { grid-template-columns: 1fr; }
  .biz-gallery-item:first-child { grid-column: auto; }
  .biz-gallery-item img, .biz-gallery-item:first-child img { height: 210px; min-height: 0; }
  .biz-facts { padding-top: 26px; }
  .biz-booking { padding: 24px; }
  .biz-service { padding: 20px; }
  .biz-crumbs { font-size: 10px; }
}

/* respect reduced-motion preferences, same spirit as the main CSS */
@media (prefers-reduced-motion: reduce) {
  .biz-gallery-item img, .biz-card, .biz-cat-chip, .biz-gallery-item, .biz-service { transition: none; }
  .biz-gallery-item:hover img { transform: none; }
}
