/* ============================================================
   HowfenConnect — Business profile, v2
   Loaded only by business/show-v2.blade.php (route /business-v2/{slug}).
   Theme vars: --accent --accent-dark --ink --line --hdr
   ------------------------------------------------------------
   Same rules as the browse rebuild: no blanket colour:inherit on links,
   no grey text, amber reserved for counts and accents, pill controls.
   ============================================================ */

.biz2{padding:72px 0 90px;color:var(--ink)}
.biz2 a{text-decoration:none}

/* ---------- breadcrumbs ---------- */
.biz2-crumbs{margin:0 0 14px;font-size:.88rem;font-weight:600;display:flex;
  gap:8px;flex-wrap:wrap;align-items:center}
.biz2-crumbs a{color:var(--ink);border-bottom:2px solid var(--accent)}
.biz2-crumbs em{font-style:normal}

/* ---------- cover ----------
   A fixed 16:9 box, so the browser never has to decide how to crop.
   Needs source images at 2400x1350 to stay sharp on a retina screen. */
/* explicit height, not aspect-ratio + max-height: when those two conflict the
   browser may shrink the WIDTH to keep the ratio, which left the cover half-width.
   object-fit:cover on the image handles the crop. */
.biz2-cover{position:relative;width:100%;height:clamp(200px,26vw,340px);
  border-radius:24px;overflow:hidden;background:#E7E5DE}
.biz2-cover img{width:100%;height:100%;object-fit:cover;display:block}
.biz2-verified{position:absolute;left:18px;top:18px;height:34px;padding:0 15px;
  border-radius:999px;background:rgba(255,255,255,.95);color:var(--ink);
  font-size:.8rem;font-weight:800;display:inline-flex;align-items:center;gap:8px}
.biz2-verified svg{width:14px;height:14px;stroke:var(--ink);fill:none}
.biz2-share{position:absolute;right:18px;top:18px;width:40px;height:40px;border:0;
  border-radius:999px;background:rgba(255,255,255,.95);color:var(--ink);
  display:grid;place-items:center;cursor:pointer;padding:0}
.biz2-share svg{width:18px;height:18px;stroke:var(--ink);fill:none}
.biz2-share.copied::after{content:"Link copied";position:absolute;top:48px;right:0;
  white-space:nowrap;background:var(--ink);color:#fff;font-size:.78rem;font-weight:700;
  padding:6px 11px;border-radius:999px}

/* ---------- identity card ---------- */
.biz2-id{position:relative;background:#fff;border:1px solid var(--line);border-radius:22px;
  padding:20px 24px;display:flex;align-items:center;gap:20px}
/* no shadow — it spread past the cover's right edge and read as a dark smear */
.biz2-id.is-over{margin:-54px 36px 0}
.biz2-logo{width:84px;height:84px;flex:none;border-radius:18px;object-fit:cover;background:#F3F2EE}
.biz2-logo-text{display:grid;place-items:center;background:var(--ink);color:var(--accent);
  font-size:1.6rem;font-weight:800}
.biz2-id-main{flex:1 1 0;min-width:0}
.biz2-id h1{margin:0;font-size:clamp(1.5rem,2.6vw,2.05rem);font-weight:800;
  letter-spacing:-.04em;line-height:1.08;color:var(--ink)}
.biz2-meta{margin-top:9px;display:flex;align-items:center;gap:11px;flex-wrap:wrap;
  font-size:.96rem;font-weight:600}
.biz2-meta a{color:var(--ink)}
.biz2-meta a:hover{color:var(--accent-dark)}
.biz2-sep{width:1px;height:15px;background:var(--line)}
.biz2-rate{display:inline-flex;align-items:center;gap:6px;font-weight:800}
.biz2-rate svg{width:15px;height:15px;fill:var(--accent)}
.biz2-rate b{font-weight:600}
.biz2-open{display:inline-flex;align-items:center;gap:7px;height:28px;padding:0 12px;
  border-radius:999px;background:#F3F2EE;font-size:.84rem;font-weight:800}
.biz2-open i{width:7px;height:7px;border-radius:999px;background:#8A8F9C}
.biz2-open.is-open{background:#E9F5EA}
.biz2-open.is-open i{background:#3E9B44}

.biz2-id-actions{flex:none;display:flex;gap:10px}
.biz2-cta{height:52px;padding:0 7px 0 22px;border-radius:999px;background:var(--ink);
  color:#fff;font-size:1rem;font-weight:700;display:inline-flex;align-items:center;gap:13px}
.biz2-cta span{width:36px;height:36px;border-radius:999px;background:var(--accent);
  color:var(--ink);display:grid;place-items:center}
.biz2-cta span svg{width:16px;height:16px;stroke:var(--ink);fill:none}
.biz2-cta:hover{background:#000}
.biz2-cta-amber{background:var(--accent);color:var(--ink);padding:0 24px}
.biz2-cta-amber:hover{background:var(--accent-dark)}

/* ---------- sticky section nav ----------
   top follows the header: it parks under it normally, and rises to 0 when the
   header slides away on scroll down. Without this it stayed pinned 94px down
   with page content visible in the gap above it. */
body.hc-v2.hv-up .biz2-nav{top:0}
.biz2-nav{position:sticky;top:calc(var(--hdr,96px) + var(--bar,0px));z-index:30;margin-top:26px;
  transition:top .26s ease;
  display:flex;gap:28px;align-items:center;background:#fff;
  border-bottom:1px solid var(--ink);
  height:54px;overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none}
.biz2-nav::-webkit-scrollbar{display:none}
.biz2-nav a{flex:none;height:54px;display:inline-flex;align-items:center;
  font-size:.97rem;font-weight:600;color:var(--ink)}
.biz2-nav a.on{font-weight:800;color:var(--accent-dark)}

/* ---------- layout ---------- */
.biz2-grid{margin-top:30px;display:flex;gap:40px;align-items:flex-start}
.biz2-main{flex:1 1 0;min-width:0}
.biz2-side{width:340px;flex:none;display:flex;flex-direction:column;gap:14px;
  position:sticky;top:calc(var(--hdr,96px) + var(--bar,0px) + 70px);align-self:flex-start}

.biz2-main h2{margin:44px 0 0;font-size:1.55rem;font-weight:800;letter-spacing:-.03em;
  scroll-margin-top:calc(var(--hdr,96px) + var(--bar,0px) + 70px)}
.biz2-main h2:first-child{margin-top:0}
.biz2-h-row{margin:44px 0 0;display:flex;align-items:baseline;justify-content:space-between;gap:16px}
.biz2-h-row h2{margin:0}
.biz2-count{font-size:.92rem;font-weight:800;color:var(--accent-dark)}

.biz2-tagline{margin:12px 0 0;font-size:1.12rem;font-weight:600;line-height:1.5}
.biz2-desc{margin-top:10px;font-size:1.05rem;line-height:1.62}
.biz2-tags{margin-top:18px;display:flex;gap:8px;flex-wrap:wrap}
.biz2-tags span{height:36px;padding:0 15px;border-radius:999px;background:#F3F2EE;
  font-size:.9rem;font-weight:700;display:inline-flex;align-items:center}

/* ---------- photos ---------- */
.biz2-photos{margin-top:14px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.biz2-photo{position:relative;display:block;aspect-ratio:4/3;border-radius:18px;
  overflow:hidden;background:#E7E5DE}
.biz2-photo img{width:100%;height:100%;object-fit:cover;display:block}
.biz2-photo-ico{position:absolute;right:12px;bottom:12px;width:34px;height:34px;
  border-radius:999px;background:rgba(15,20,36,.72);color:#fff;display:grid;place-items:center}
.biz2-photo-ico svg{width:15px;height:15px;stroke:#fff;fill:none}
.biz2-photo:first-child:nth-last-child(odd){grid-column:span 2;aspect-ratio:16/9}

/* ---------- reviews ---------- */
.biz2-rev-head{margin-top:14px;display:flex;align-items:center;gap:16px;flex-wrap:wrap;
  padding:16px 20px;border-radius:16px;background:#F8F7F4}
.biz2-rev-score{font-size:2.1rem;font-weight:800;letter-spacing:-.04em}
.biz2-rev-of b{display:block;margin-top:3px;font-size:.93rem;font-weight:600}
.biz2-stars{display:inline-flex;gap:2px}
.biz2-stars svg{width:15px;height:15px;fill:var(--accent)}
.biz2-rev-link{margin-left:auto;height:48px;padding:0 6px 0 20px;border:0;
  border-radius:999px;background:var(--accent);color:var(--ink);font-size:.95rem;
  font-weight:700;display:inline-flex;align-items:center;gap:12px}
.biz2-rev-link span{width:34px;height:34px;border-radius:999px;background:#fff;
  display:grid;place-items:center}
.biz2-rev-link span svg{width:15px;height:15px;stroke:var(--ink);fill:none}
.biz2-rev-link:hover{background:var(--accent-dark)}
.biz2-reviews{margin-top:14px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.biz2-review{margin:0;border:1px solid var(--line);border-radius:18px;padding:18px 20px}
.biz2-review blockquote{margin:0;font-size:1rem;line-height:1.55}
.biz2-review blockquote::before{content:"\201C"}
.biz2-review blockquote::after{content:"\201D"}
.biz2-review figcaption{margin-top:14px;display:flex;align-items:center;gap:10px;
  font-size:.9rem;font-weight:700}
.biz2-rev-av{width:32px;height:32px;border-radius:999px;background:#F3F2EE;
  display:grid;place-items:center;font-size:.8rem;font-weight:800}

/* ---------- opening hours ---------- */
.biz2-hours{margin:14px 0 0;padding:0;list-style:none;max-width:460px;font-size:1rem}
.biz2-hours li{display:flex;justify-content:space-between;gap:16px;padding:11px 0;
  border-bottom:1px solid var(--line)}
.biz2-hours li:last-child{border-bottom:0}
.biz2-hours li.is-today{font-weight:800}
.biz2-hours li.is-today span:last-child{color:var(--accent-dark)}

/* ---------- location ---------- */
.biz2-location{margin-top:14px;border:1px solid var(--line);border-radius:20px;overflow:hidden}
.biz2-map{height:300px;background:#EDEBE6}
.biz2-map iframe{width:100%;height:100%;border:0;display:block}
.biz2-loc-foot{padding:16px 20px;display:flex;align-items:center;justify-content:space-between;
  gap:20px;flex-wrap:wrap}
.biz2-loc-foot p{margin:0;font-size:1rem;font-weight:600;display:flex;align-items:center;gap:9px}
.biz2-loc-foot svg{width:17px;height:17px;flex:none;stroke:var(--accent-dark);fill:none}

/* ---------- map and hours, side by side ---------- */
.biz2-find{margin-top:44px;display:flex;gap:26px;align-items:flex-start}
.biz2-find-map{flex:1 1 0;min-width:0}
.biz2-find-hours{width:330px;flex:none}
.biz2-find.is-hours-only .biz2-find-hours{width:100%}
.biz2-find.is-hours-only .biz2-hours{max-width:none}
.biz2-find h2{margin-top:0}
.biz2-find .biz2-hours{max-width:none}

/* ---------- phone action bar ---------- */
.biz2-bar{display:none}

/* ---------- photo lightbox ---------- */
.biz2-lb{position:fixed;inset:0;z-index:200;background:rgba(15,20,36,.92);
  display:flex;align-items:center;justify-content:center;padding:70px 72px}
.biz2-lb[hidden]{display:none}
.biz2-lb-img{max-width:100%;max-height:100%;object-fit:contain;border-radius:10px;display:block}
.biz2-lb-x{position:absolute;top:18px;right:18px;width:46px;height:46px;border:0;
  border-radius:999px;background:rgba(255,255,255,.14);color:#fff;
  display:grid;place-items:center;cursor:pointer;padding:0}
.biz2-lb-x svg{width:19px;height:19px;stroke:#fff;fill:none}
.biz2-lb-nav{position:absolute;top:50%;margin-top:-26px;width:52px;height:52px;border:0;
  border-radius:999px;background:rgba(255,255,255,.14);color:#fff;
  display:grid;place-items:center;cursor:pointer;padding:0}
.biz2-lb-nav svg{width:22px;height:22px;stroke:#fff;fill:none}
.biz2-lb-nav:hover,.biz2-lb-x:hover{background:rgba(255,255,255,.26)}
.biz2-lb-prev{left:16px}
.biz2-lb-next{right:16px}
.biz2-lb-count{position:absolute;bottom:22px;left:50%;transform:translateX(-50%);
  color:#fff;font-size:.9rem;font-weight:700;background:rgba(255,255,255,.14);
  padding:7px 15px;border-radius:999px}

/* ---------- sidebar ---------- */
.biz2-side-legend{margin:0 0 13px;font-size:.74rem;font-weight:800;letter-spacing:.1em;
  text-transform:uppercase;color:var(--ink)}
.biz2-contact{border-radius:22px;background:var(--accent);padding:22px}
.biz2-contact-list{display:flex;flex-direction:column;gap:9px}
.biz2-contact-list a{height:52px;border-radius:999px;background:#fff;color:var(--ink);
  font-size:1rem;font-weight:700;display:flex;align-items:center;gap:12px;padding:0 18px}
.biz2-contact-list a svg{width:18px;height:18px;flex:none}
.biz2-contact-list a:hover{background:#FFFDF8}
.biz2-socials{margin-top:16px;padding-top:16px;border-top:1px solid rgba(15,20,36,.16);
  display:flex;gap:9px;flex-wrap:wrap}
.biz2-socials a{width:42px;height:42px;border-radius:999px;background:var(--ink);color:#fff;
  display:grid;place-items:center}
.biz2-socials a svg{width:18px;height:18px}
.biz2-socials a:hover{background:#000}

.biz2-edit{height:56px;border-radius:999px;background:var(--ink);color:#fff;
  font-size:.98rem;font-weight:700;display:flex;align-items:center;
  justify-content:space-between;padding:0 8px 0 20px}
.biz2-edit span{width:40px;height:40px;border-radius:999px;background:var(--accent);
  color:var(--ink);display:grid;place-items:center}
.biz2-edit span svg{width:16px;height:16px;stroke:var(--ink);fill:none}
.biz2-edit:hover{background:#000}

.biz2-related{border:1px solid var(--line);border-radius:22px;padding:20px 22px}
.biz2-related a{display:flex;gap:12px;align-items:center;margin-top:14px}
.biz2-related a:first-of-type{margin-top:0}
.biz2-related img,.biz2-rel-blank{width:52px;height:52px;flex:none;border-radius:12px;
  object-fit:cover;background:#F3F2EE}
.biz2-related img.is-logo{object-fit:contain;padding:7px;box-sizing:border-box;background:#fff}
.biz2-rel-blank{display:grid;place-items:center;background:var(--ink);color:var(--accent);
  font-size:1.1rem;font-weight:800}
.biz2-rel-text{min-width:0}
.biz2-rel-text b{display:block;font-size:.98rem;font-weight:700;letter-spacing:-.02em;color:var(--ink)}
.biz2-rel-text em{display:block;margin-top:2px;font-size:.86rem;font-style:normal;color:var(--ink)}

/* ============================================================
   Tablet
   ============================================================ */
@media (max-width:1040px){
  .biz2-side{position:static}
  /* align-items:stretch is the important one: the base rule sets flex-start,
     which in a COLUMN container controls width, not vertical position — the
     map then shrank to its content width and the iframe collapsed to nothing. */
  .biz2-find{flex-direction:column;align-items:stretch;gap:34px}
  .biz2-find-map{width:100%;min-width:0}
  .biz2-find-hours{width:100%}
  .biz2-grid{flex-direction:column;gap:30px}
  .biz2-side{width:100%}
  .biz2-id.is-over{margin:-40px 16px 0}
  .biz2-reviews{grid-template-columns:1fr}
}

/* ============================================================
   Phone
   ============================================================ */
@media (max-width:640px){
  .biz2{padding:44px 0 70px}
  .biz2-cover{border-radius:18px;height:clamp(150px,44vw,220px)}
  .biz2-id{flex-wrap:wrap;gap:14px;padding:16px;border-radius:18px}
  .biz2-id.is-over{margin:-28px 8px 0}
  .biz2-logo{width:60px;height:60px;border-radius:14px}
  .biz2-id-main{flex:1 1 180px}
  .biz2-meta{gap:9px;font-size:.9rem}
  .biz2-sep{display:none}
  .biz2-cta{flex:1;justify-content:center;height:50px;padding:0 6px 0 18px;font-size:.96rem}
  .biz2-cta-amber{justify-content:center;padding:0 18px}

  .biz2-nav{top:calc(var(--hdr,50px) + var(--bar,0px));gap:20px;height:50px;
    margin:20px calc(50% - 50vw) 0;padding:0 16px;width:100vw;box-sizing:border-box}
  .biz2-nav a{height:50px;font-size:.92rem}

  .biz2-main h2{margin-top:32px;font-size:1.35rem;
    scroll-margin-top:calc(var(--hdr,50px) + var(--bar,0px) + 62px)}
  .biz2-h-row{margin-top:32px}
  .biz2-find{margin-top:32px;gap:28px}
  .biz2-desc{font-size:1rem}

  /* photos swipe sideways instead of shrinking to stamps */
  .biz2-photos{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;
    scrollbar-width:none;-ms-overflow-style:none;margin-right:-16px;padding-right:16px}
  .biz2-photos::-webkit-scrollbar{display:none}
  .biz2-photo{flex:none;width:76%;aspect-ratio:4/3;scroll-snap-align:start}
  .biz2-photo:first-child:nth-last-child(odd){aspect-ratio:4/3}


  .biz2-lb{padding:56px 10px}
  .biz2-lb-nav{width:44px;height:44px;margin-top:-22px}
  .biz2-lb-prev{left:6px}
  .biz2-lb-next{right:6px}

  .biz2-rev-head{padding:14px 16px;gap:12px}
  .biz2-rev-link{margin-left:0;width:100%;justify-content:center}
  .biz2-map{height:230px}
  .biz2-loc-foot{gap:14px}
  .biz2-loc-foot .biz2-cta{width:100%;justify-content:space-between}
}

/* ============================================================
   CALL / WHATSAPP / DIRECTIONS BAR
   820px, NOT 640px: this page sets hide_bottom_bar, so the site's own bar
   stands down at 820. Starting this one at 640 left everything between the
   two with no bar at all.
   ============================================================ */
@media (max-width:820px){
  /* Call now / Directions come off the identity card here — the fixed bar
     below carries the same two actions plus WhatsApp, and showing both put
     four buttons for three things on one screen. */
  .biz2-id-actions{display:none}

  /* the action bar, and room so it never covers the last section */
  .biz2{padding-bottom:104px}
  .biz2-bar{display:flex;gap:9px;align-items:center;position:fixed;left:0;bottom:0;
    width:100vw;z-index:120;background:#fff;border-top:1px solid var(--line);
    box-shadow:0 -8px 24px rgba(15,20,36,.1);
    padding:10px 14px calc(14px + env(safe-area-inset-bottom))}
  .biz2-bar a{height:52px;border-radius:999px;display:inline-flex;align-items:center;
    justify-content:center;gap:9px;font-size:1rem;font-weight:700}
  .biz2-bar a svg{width:18px;height:18px}
  .biz2-bar-main{flex:1.4 1 0;background:var(--ink);color:#fff}
  .biz2-bar-main svg{stroke:#fff;fill:none}
  .biz2-bar-wa{flex:1 1 0;background:var(--accent);color:var(--ink)}
  .biz2-bar-wa svg{fill:var(--ink)}
  .biz2-bar-ico{width:52px;flex:none;border:1px solid #D9D7D0;color:var(--ink)}
  .biz2-bar-ico svg{stroke:var(--ink);fill:none}
}
