/* ============================================================================
   MSMV Business Connect — Components & Page Layouts
   ============================================================================ */

/* ── Top strip (clean white) ── */
.topbar {
  background: #fff; color: var(--ink-2); font-size: .82rem; border-bottom: 1px solid var(--line);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .5rem; flex-wrap: wrap; }
.topbar a { color: var(--ink-2); display: inline-flex; align-items: center; gap: .35rem; font-weight: 500; }
.topbar a:hover { color: var(--red); }
.topbar .strip-right { display: flex; gap: 1.4rem; }

/* ── Navigation ── */
.nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease, background .25s ease;
}
.nav.scrolled { box-shadow: var(--sh-md); background: rgba(255, 255, 255, 0.96); }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }

.nav-logo { display: flex; align-items: center; gap: .75rem; }
.nav-logo .mark {
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--grad-btn); display: grid; place-items: center;
  box-shadow: var(--sh-glow); flex-shrink: 0; position: relative; overflow: hidden;
}
.nav-logo .mark svg { width: 30px; height: 30px; }
/* When a real logo image is supplied, drop the coloured tile backdrop */
.nav-logo .mark:has(img), .f-brand .mark:has(img), .admin-brand .mark:has(img) { background: none; box-shadow: none; }
.nav-logo .mark:has(img) { width: auto; }
.nav-logo-text strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.12rem; color: var(--ink); line-height: 1.1; }
.nav-logo-text span { display: block; font-family: var(--font-deva); font-size: .78rem; color: var(--red); }

.nav-links { display: flex; align-items: center; gap: .35rem; }
.nav-links a {
  padding: .55rem .9rem; border-radius: var(--r-pill); font-weight: 600; font-size: .95rem; color: var(--ink-2);
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--red); background: var(--surface-soft); }
.nav-actions { display: flex; align-items: center; gap: .6rem; }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-strong); align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }

/* ── Hero (centered directory style, animated aurora on white) ── */
.hero { position: relative; background: #fff; overflow: hidden; padding: 5.5rem 0 6rem; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .45; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23D63B1F' stroke-opacity='0.045' stroke-width='1.2'%3E%3Ccircle cx='60' cy='60' r='50'/%3E%3Ccircle cx='60' cy='60' r='34'/%3E%3Ccircle cx='60' cy='60' r='18'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 320px;
}
.hero-aurora { position: absolute; inset: -20% -10%; z-index: 0; pointer-events: none; filter: blur(60px); }
.hero-aurora .blob { position: absolute; border-radius: 50%; opacity: .55; animation: blobDrift 18s ease-in-out infinite; }
.hero-aurora .b1 { width: 420px; height: 420px; left: 2%; top: 4%; background: radial-gradient(circle, rgba(249,115,22,.5), transparent 70%); }
.hero-aurora .b2 { width: 380px; height: 380px; right: 4%; top: -4%; background: radial-gradient(circle, rgba(212,175,55,.45), transparent 70%); animation-delay: -6s; }
.hero-aurora .b3 { width: 460px; height: 460px; right: 12%; bottom: -18%; background: radial-gradient(circle, rgba(225,29,72,.30), transparent 70%); animation-delay: -12s; }
.hero-aurora .b4 { width: 320px; height: 320px; left: 8%; bottom: -14%; background: radial-gradient(circle, rgba(58,125,10,.22), transparent 70%); animation-delay: -3s; }
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.2rem; align-items: center; }
.hero-copy { text-align: left; min-width: 0; }
.hero-rotator { color: var(--red); display: inline-block; position: relative; }
.hero-rotator .word { display: inline-block; animation: wordIn .55s cubic-bezier(.22,1,.36,1); }
@keyframes wordIn { from { opacity: 0; transform: translateY(14px) rotateX(-40deg); } to { opacity: 1; transform: none; } }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem; background: var(--surface);
  border: 1px solid var(--line-strong); box-shadow: var(--sh-sm);
  padding: .45rem 1rem .45rem .5rem; border-radius: var(--r-pill); font-weight: 600; font-size: .85rem; color: var(--ink-2);
  margin-bottom: 1.6rem;
}
.hero-badge .dot { width: 26px; height: 26px; border-radius: 50%; background: var(--grad-gold); display: grid; place-items: center; font-size: .85rem; }
.hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: 1.06; color: var(--ink); letter-spacing: -0.015em; }
.hero h1 .deva { display: block; font-size: .5em; color: var(--red); margin-top: .5rem; font-weight: 500; }
.hero p.lead { font-size: 1.15rem; color: var(--ink-2); margin: 1.3rem 0 0; max-width: 48ch; }
.hero-copy .hero-tags { justify-content: flex-start; }
.hero-copy .hero-trust { justify-content: flex-start; }

/* Segmented search */
.search-seg {
  margin: 2.2rem 0 0; max-width: 640px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-lg);
  padding: .5rem; display: flex; align-items: stretch; gap: .3rem; text-align: left;
}
.ss-field { flex: 1; display: flex; align-items: center; gap: .7rem; padding: .55rem 1rem; min-width: 0; }
.ss-field + .ss-field { border-left: 1px solid var(--line); }
.ss-field .ss-ico { width: 20px; height: 20px; color: var(--red); flex-shrink: 0; }
.ss-field .ss-inner { min-width: 0; flex: 1; }
.ss-field label { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ss-field input, .ss-field select {
  width: 100%; border: none; background: transparent; outline: none; font-size: .98rem; font-weight: 600; color: var(--ink); padding: .1rem 0;
}
.ss-field select { cursor: pointer; }
.search-seg .btn { flex-shrink: 0; padding-inline: 1.6rem; }
.hero-tags { margin-top: 1.4rem; display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; align-items: center; }
.hero-tags .tl { color: var(--muted); font-size: .85rem; font-weight: 600; }
.hero-tags a {
  font-size: .84rem; font-weight: 600; color: var(--ink-2); background: var(--surface);
  border: 1px solid var(--line-strong); padding: .35rem .85rem; border-radius: var(--r-pill); transition: all .15s ease;
}
.hero-tags a:hover { border-color: var(--red); color: var(--red); }
.hero-trust { display: flex; align-items: center; gap: 1rem; margin-top: 2.4rem; justify-content: center; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.hero-trust .avatars { display: flex; }
.hero-trust .avatars span {
  width: 36px; height: 36px; border-radius: 50%; border: 2.5px solid var(--bg); margin-left: -11px;
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .82rem; font-family: var(--font-display);
}
.hero-trust .avatars span:first-child { margin-left: 0; }

/* Hero media (lifestyle photo + floating cards) */
.hero-media { position: relative; }
.hero-photo {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  aspect-ratio: 5 / 5.4; box-shadow: var(--sh-lg);
  border: 6px solid #fff; background: var(--grad-warm);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-tint { position: absolute; inset: 0; background: linear-gradient(150deg, rgba(214,59,31,.18), transparent 45%, rgba(212,175,55,.12)); }
.hero-float-card {
  position: absolute; background: rgba(255,255,255,.96); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-lg);
  padding: .75rem .95rem; display: flex; align-items: center; gap: .65rem;
  animation: floaty 5s ease-in-out infinite;
}
.hero-float-card .fc-ico { width: 40px; height: 40px; border-radius: 12px; background: rgba(212,175,55,.16); display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0; }
.hero-float-card strong { display: block; font-family: var(--font-display); font-weight: 800; color: var(--ink); line-height: 1.1; }
.hero-float-card span { font-size: .78rem; color: var(--muted); }
.hero-float-card.fc-rating { top: 1.6rem; left: -1.4rem; }
.hero-float-card.fc-verified { bottom: 1.8rem; right: -1.2rem; animation-delay: -2.5s; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero-media { max-width: 460px; margin: 0 auto; width: 100%; }
  .hero-photo { aspect-ratio: 16 / 10; }
  .hero-float-card.fc-rating { left: .5rem; }
  .hero-float-card.fc-verified { right: .5rem; }
}
@media (max-width: 640px) {
  .search-seg { flex-direction: column; gap: .3rem; border-radius: var(--r-lg); }
  .ss-field + .ss-field { border-left: none; border-top: 1px solid var(--line); }
  .search-seg .btn { padding-block: .85rem; }
  .hero-float-card { display: none; }
}

/* ── Stats band ── */
.stats { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 2.2rem 1.5rem; }
.stat { text-align: center; padding: .5rem; }
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--red); line-height: 1; }
.stat .num .plus { color: var(--marigold); }
.stat .label { color: var(--ink-2); font-weight: 600; margin-top: .4rem; font-size: .92rem; }
.stat + .stat { border-left: 1px solid var(--line); }

/* ── Categories (contained panel of flat tiles) ── */
.cat-panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--sh-md); padding: 1.4rem;
}
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; }
.cat-card {
  border-radius: var(--r); padding: 1.4rem 1rem; text-align: center;
  transition: transform .2s ease, background .2s ease;
}
.cat-card:hover { background: var(--surface-soft); }
.cat-icon {
  width: 62px; height: 62px; margin: 0 auto .8rem; border-radius: 18px;
  background: var(--surface-soft); display: grid; place-items: center; font-size: 1.8rem;
  border: 1px solid var(--line-strong); transition: transform .38s cubic-bezier(.34,1.56,.64,1), background .25s ease;
}
.cat-card:hover .cat-icon { background: var(--grad-warm); border-color: transparent; }
.cat-name { font-weight: 700; color: var(--ink); font-size: .98rem; }
.cat-count { color: var(--muted); font-size: .82rem; margin-top: .2rem; }

/* ── Business card (cover-image style) ── */
.biz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.biz-card { position: relative; overflow: hidden; display: flex; flex-direction: column; border-radius: var(--r-lg); }
.biz-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: var(--line-strong); }

/* Cover banner (photo + brand overlay) */
.bc-cover { position: relative; height: 156px; display: grid; place-items: center; overflow: hidden; }
.bc-cover img.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.22,1,.36,1); }
.biz-card:hover .bc-cover img.cover-img { transform: scale(1.07); }
.bc-cover::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(30,21,18,.06) 0%, rgba(30,21,18,.02) 40%, rgba(30,21,18,.42) 100%),
              linear-gradient(115deg, rgba(214,59,31,.30), rgba(249,115,22,.10) 55%, transparent 75%);
}
.bc-cover-emoji { font-size: 3rem; filter: drop-shadow(0 4px 10px rgba(0,0,0,.18)); z-index: 0; }
.bc-chips { position: absolute; top: .8rem; left: .8rem; display: flex; gap: .35rem; flex-wrap: wrap; z-index: 2; }
.bc-chips .badge { background: rgba(255,255,255,.92); backdrop-filter: blur(4px); box-shadow: var(--sh-sm); border: none; }
.bc-rating {
  position: absolute; top: .8rem; right: .8rem; z-index: 2;
  background: rgba(255,255,255,.95); color: var(--ink); font-weight: 700; font-size: .82rem;
  padding: .3rem .6rem; border-radius: var(--r-pill); box-shadow: var(--sh-sm);
  display: inline-flex; align-items: center; gap: .25rem;
}
.bc-rating .star { color: var(--gold); }
.bc-rating small { color: var(--muted); font-weight: 600; }
.bc-logo {
  position: absolute; bottom: -26px; left: 1.3rem; z-index: 3;
  width: 60px; height: 60px; border-radius: 16px; font-size: 1.3rem;
  border: 3px solid var(--surface); box-shadow: var(--sh-md);
}

/* Body */
.bc-body { padding: 2.2rem 1.3rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.bc-cat-row { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin-bottom: .5rem; }
.bc-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--ink); line-height: 1.2; }
.bc-name .verified { color: var(--green); font-size: .8rem; }
.bc-owner { color: var(--muted); font-size: .85rem; margin-top: .2rem; }
.bc-desc { color: var(--ink-2); font-size: .9rem; margin-top: .7rem; flex: 1; }
.bc-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: 1.2rem; }
.bc-city { color: var(--muted); font-size: .82rem; display: inline-flex; align-items: center; gap: .3rem; min-width: 0; }
.bc-city span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-actions { display: flex; gap: .5rem; flex-shrink: 0; }
.bc-actions .btn { padding: .55rem 1rem; font-size: .88rem; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; background: var(--surface-soft);
  border: 1px solid var(--line-strong); display: grid; place-items: center; flex-shrink: 0;
  transition: all .15s ease;
}
.icon-btn:hover { background: #25D366; color: #fff; border-color: #25D366; }
.icon-btn svg { width: 18px; height: 18px; }

/* ── Pricing ── */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; align-items: stretch; }
.price-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 2rem 1.6rem; box-shadow: var(--sh-sm); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.price-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.price-card.featured { border: 2px solid var(--saffron); box-shadow: var(--sh-glow); position: relative; }
.price-card.featured::before {
  content: "Most Popular"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad-btn); color: #fff; font-size: .72rem; font-weight: 700; padding: .3rem 1rem; border-radius: var(--r-pill);
}
.price-card .tier { font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.price-card .tier.sponsor { color: #a67c00; }
.price-card .amount { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; color: var(--red); margin: .6rem 0 .2rem; }
.price-card .amount small { font-size: .95rem; color: var(--muted); font-weight: 500; font-family: var(--font-body); }
.price-card ul { margin: 1.2rem 0; display: flex; flex-direction: column; gap: .6rem; }
.price-card li { display: flex; gap: .55rem; align-items: flex-start; color: var(--ink-2); font-size: .92rem; }
.price-card li::before { content: "✓"; color: var(--green); font-weight: 800; flex-shrink: 0; }
.price-card li.off { color: var(--muted); }
.price-card li.off::before { content: "–"; color: var(--muted); }
.price-card .btn { margin-top: auto; }

/* ── Why join / features ── */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.8rem; box-shadow: var(--sh-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.feat:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.feat .fi {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 1rem; background: var(--surface-soft); border: 1px solid var(--line-strong);
}
.feat h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--ink); margin-bottom: .4rem; }
.feat p { color: var(--ink-2); font-size: .95rem; }

/* ── Testimonials ── */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.8rem; box-shadow: var(--sh-sm); }
.testi .quote { font-size: 2.4rem; font-family: var(--font-display); color: var(--marigold); line-height: 0; }
.testi p { color: var(--ink-2); margin: 1rem 0 1.4rem; font-style: italic; }
.testi .who { display: flex; align-items: center; gap: .8rem; }
.testi .stars { color: var(--gold); font-size: .9rem; margin-top: .2rem; }

/* ── CTA band ── */
.cta-band { background: var(--grad-btn); color: #fff; border-radius: var(--r-xl); padding: 3rem; text-align: center; position: relative; overflow: hidden; box-shadow: var(--sh-glow); }
.cta-band::after {
  content: ""; position: absolute; inset: 0; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.25' stroke-width='1'%3E%3Ccircle cx='40' cy='40' r='30'/%3E%3Ccircle cx='40' cy='40' r='16'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 160px;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.cta-band p { opacity: .95; margin: .8rem auto 1.6rem; max-width: 46ch; }
.cta-band .btn-ghost { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.4); }
.cta-band .btn-ghost:hover { background: #fff; color: var(--red); }

/* ── Contact + map ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.3rem; box-shadow: var(--sh-sm); }
.contact-item .ci { width: 46px; height: 46px; border-radius: 12px; background: var(--surface-soft); border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0; }
.contact-item .ct-label { font-size: .8rem; color: var(--muted); font-weight: 600; }
.contact-item .ct-val { font-weight: 700; color: var(--ink); }
.map-wrap { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-md); min-height: 320px; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ── Footer ── */
.footer { background: #2A1A15; color: #E7D3BF; margin-top: 4rem; }
.footer a { color: #E7D3BF; opacity: .85; }
.footer a:hover { opacity: 1; color: #FDBA74; }
.footer .container { padding: 3.5rem 1.5rem 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer h4 { color: #fff; font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 1rem; }
.footer ul { display: flex; flex-direction: column; gap: .6rem; font-size: .92rem; }
.footer .f-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.footer .f-brand .mark { width: 44px; height: 44px; border-radius: 12px; background: var(--grad-btn); display: grid; place-items: center; }
.footer .f-brand strong { color: #fff; font-family: var(--font-display); font-size: 1.1rem; }
.footer .f-brand span { display: block; font-family: var(--font-deva); font-size: .78rem; color: #FDBA74; }
.footer .f-desc { color: #C9B29E; font-size: .92rem; max-width: 34ch; }
.footer .social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.footer .social a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.06); display: grid; place-items: center; }
.footer .social a:hover { background: var(--grad-btn); }
.footer .social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: #C9B29E; }

/* ── Page header (inner pages) ── */
.page-head { background: var(--grad-hero); padding: 3rem 0 2.5rem; border-bottom: 1px solid var(--line); position: relative; }
.page-head h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--ink); }
.page-head p { color: var(--ink-2); margin-top: .5rem; }
.breadcrumb { display: flex; gap: .5rem; align-items: center; color: var(--muted); font-size: .85rem; margin-bottom: .8rem; }
.breadcrumb a:hover { color: var(--red); }

/* ── Directory filters ── */
.filter-bar {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-sm); padding: 1.2rem; margin-bottom: 2rem;
  display: grid; grid-template-columns: 2fr 1.2fr 1.2fr 1.2fr; gap: .8rem; align-items: end;
}
.filter-search { position: relative; }
.filter-search svg { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.filter-search .input { padding-left: 2.6rem; }
.chip-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.chip {
  padding: .5rem 1rem; border-radius: var(--r-pill); background: var(--surface); border: 1.5px solid var(--line-strong);
  font-weight: 600; font-size: .88rem; color: var(--ink-2); transition: all .15s ease; display: inline-flex; align-items: center; gap: .4rem;
}
.chip:hover { border-color: var(--red); color: var(--red); }
.chip.active { background: var(--grad-btn); color: #fff; border-color: transparent; }
.result-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; color: var(--ink-2); flex-wrap: wrap; gap: 1rem; }

/* ── Pagination ── */
.pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 2.5rem; flex-wrap: wrap; }
.pagination button, .pagination .pg {
  min-width: 42px; height: 42px; padding: 0 .8rem; border-radius: 12px; background: var(--surface);
  border: 1.5px solid var(--line-strong); font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center;
}
.pagination button:hover:not([disabled]) { border-color: var(--red); color: var(--red); }
.pagination button.active { background: var(--grad-btn); color: #fff; border-color: transparent; }
.pagination button[disabled] { opacity: .4; cursor: not-allowed; }

/* ── Empty state ── */
.empty { text-align: center; padding: 4rem 1rem; color: var(--muted); }
.empty .emoji { font-size: 3rem; }

/* ── Directory split (list + map) ── */
.dir-split { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 2rem; align-items: start; }
.dir-main { min-width: 0; }
.dir-main .biz-grid { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.dir-map { position: sticky; top: calc(var(--nav-h) + 1rem); }
.dir-map-inner {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-sm); overflow: hidden;
}
.dir-map-head { padding: 1rem 1.2rem; display: flex; align-items: center; gap: .6rem; border-bottom: 1px solid var(--line); }
.dir-map-head .mi { width: 38px; height: 38px; border-radius: 11px; background: var(--surface-soft); border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: 1.1rem; }
.dir-map-head strong { display: block; color: var(--ink); }
.dir-map-head span { color: var(--muted); font-size: .82rem; }
.dir-map iframe { width: 100%; height: calc(100vh - var(--nav-h) - 8rem); min-height: 460px; border: 0; display: block; }
.view-toggle { display: none; }

@media (max-width: 1080px) {
  .dir-split { grid-template-columns: 1fr; }
  .dir-map { position: static; }
  .dir-map iframe { height: 380px; min-height: 0; }
  .view-toggle { display: inline-flex; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-pill); padding: .25rem; gap: .2rem; }
  .view-toggle button { padding: .45rem 1rem; border-radius: var(--r-pill); font-weight: 600; font-size: .88rem; color: var(--ink-2); }
  .view-toggle button.active { background: var(--grad-btn); color: #fff; }
  .dir-split.show-map .dir-main { display: none; }
  .dir-split:not(.show-map) .dir-map { display: none; }
}
@media (max-width: 560px) {
  .dir-main .biz-grid { grid-template-columns: 1fr; }
}

/* ── Business profile ── */
.profile-cover { position: relative; height: 300px; overflow: hidden; background: var(--grad-warm); }
.profile-cover .pc-img { width: 100%; height: 100%; object-fit: cover; }
.profile-cover .pc-tint { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,21,18,.25) 0%, rgba(30,21,18,.05) 30%, rgba(30,21,18,.55) 100%); }
.profile-cover .container { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-start; padding-top: 1.4rem; }
.breadcrumb.light, .breadcrumb.light a { color: rgba(255,255,255,.9); }
.breadcrumb.light a:hover { color: #fff; text-decoration: underline; }

.profile-hero { background: transparent; padding: 0 0 2.5rem; }
.profile-top {
  display: flex; gap: 1.6rem; align-items: flex-start; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-md); padding: 1.7rem; margin-top: -90px; position: relative; z-index: 3;
}
.profile-top .logo-avatar { width: 110px; height: 110px; font-size: 2.4rem; border-radius: 24px; box-shadow: var(--sh-md); border: 4px solid #fff; margin-top: -3.4rem; }
.profile-top h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--ink); }
.profile-meta { display: flex; gap: 1rem; flex-wrap: wrap; color: var(--ink-2); margin-top: .6rem; }
.profile-body { display: grid; grid-template-columns: 1.7fr 1fr; gap: 2rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); padding: 1.8rem; }
.panel h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; margin-bottom: 1rem; color: var(--ink); }
.detail-row { display: flex; gap: .8rem; padding: .7rem 0; border-bottom: 1px dashed var(--line); }
.detail-row:last-child { border-bottom: none; }
.detail-row .dk { color: var(--muted); min-width: 110px; font-size: .9rem; }
.detail-row .dv { font-weight: 600; }
.review { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: none; }
.review .stars { color: var(--gold); }

/* Review form */
.review-form .star-input { display: inline-flex; gap: .15rem; }
.review-form .star-btn { font-size: 1.7rem; line-height: 1; color: var(--line-strong); transition: color .12s ease, transform .12s ease; padding: 0 .05rem; }
.review-form .star-btn:hover { transform: scale(1.15); }
.review-form .star-btn.on { color: var(--gold); }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.gallery-item { display: block; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-soft); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s cubic-bezier(.22,1,.36,1); }
.gallery-item:hover img { transform: scale(1.08); }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── Auth pages ── */
.auth-wrap { min-height: calc(100vh - var(--nav-h)); display: grid; grid-template-columns: 1fr 1fr; }
.auth-visual { background: var(--grad-warm); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-visual::after {
  content: ""; position: absolute; inset: 0; opacity: .3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='0.3'%3E%3Ccircle cx='50' cy='50' r='40'/%3E%3Ccircle cx='50' cy='50' r='24'/%3E%3C/g%3E%3C/svg%3E"); background-size: 180px;
}
.auth-visual > * { position: relative; z-index: 1; }
.auth-visual h2 { font-family: var(--font-display); font-size: 2.2rem; margin-bottom: 1rem; }
.auth-form-wrap { display: grid; place-items: center; padding: 3rem 1.5rem; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; color: var(--ink); }
.auth-card .sub { color: var(--ink-2); margin: .3rem 0 1.6rem; }
.auth-alt { text-align: center; margin-top: 1.2rem; color: var(--ink-2); font-size: .92rem; }
.auth-alt a { color: var(--red); font-weight: 700; }

/* ── Responsive ── */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .biz-grid, .feat-grid, .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .profile-body { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 1rem; gap: .3rem; box-shadow: var(--sh-md);
  }
  .nav-links.open a { width: 100%; }
  .nav-toggle { display: flex; }
  .topbar .strip-right span { display: none; }
  .stats .container { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 0; }
  .stat + .stat { border-left: none; }
  .stat:nth-child(2) { border-left: 1px solid var(--line); }
  .stat:nth-child(4) { border-left: 1px solid var(--line); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .biz-grid, .feat-grid, .testi-grid, .price-grid { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  .cta-band { padding: 2rem 1.2rem; }
}

/* ============================================================================
   Motion & interaction polish
   ============================================================================ */
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }

/* Button shine sweep */
.btn-primary, .btn-gold { position: relative; overflow: hidden; }
.btn-primary::after, .btn-gold::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 45%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-20deg); pointer-events: none;
}
.btn-primary:hover::after, .btn-gold:hover::after { animation: shine .85s ease; }
@keyframes shine { to { left: 130%; } }

/* Nav logo mark liveliness */
.nav-logo .mark { transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.nav-logo:hover .mark { transform: rotate(-8deg) scale(1.06); }
.nav { transition: box-shadow .3s ease, background .3s ease, height .3s ease; }
.nav.scrolled .container { height: 66px; }
.nav .container { transition: height .3s ease; }

/* Segmented search focus glow */
.search-seg { transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease; }
.search-seg:focus-within { border-color: var(--saffron); box-shadow: 0 0 0 4px rgba(249,115,22,.14), var(--sh-lg); }
.hero-tags a { transition: transform .18s ease, border-color .15s ease, color .15s ease; }
.hero-tags a:hover { transform: translateY(-2px); }

/* Category cards */
.cat-card { transition: transform .28s cubic-bezier(.22,1,.36,1), box-shadow .28s ease, border-color .28s ease; }
.cat-card:hover { transform: translateY(-6px); }
.cat-icon { transition: transform .38s cubic-bezier(.34,1.56,.64,1), background .25s ease; }
.cat-card:hover .cat-icon { transform: translateY(-3px) rotate(-8deg) scale(1.1); }

/* Business card cover motion */
.bc-cover { transition: transform .4s ease; }
.bc-cover-emoji { transition: transform .45s cubic-bezier(.34,1.56,.64,1); }
.biz-card:hover .bc-cover-emoji { transform: scale(1.2) rotate(-7deg); }
.bc-logo { transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.biz-card:hover .bc-logo { transform: scale(1.07) rotate(-4deg); }
.biz-card { transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease, border-color .3s ease; }

/* Feature icons */
.feat .fi { transition: transform .38s cubic-bezier(.34,1.56,.64,1); }
.feat:hover .fi { transform: translateY(-4px) rotate(6deg) scale(1.08); }

/* WhatsApp icon pulse on hover */
.icon-btn:hover { animation: pulseRing 1s ease; }

/* Pricing featured gentle float */
.price-card.featured { animation: floaty 6s ease-in-out infinite; }
.price-card.featured:hover { animation-play-state: paused; }

/* Chips */
.chip { transition: transform .15s ease, border-color .15s ease, color .15s ease, background .15s ease; }
.chip:hover { transform: translateY(-2px); }

/* Stat numbers glow lightly */
.stat:hover .num { text-shadow: 0 6px 22px rgba(214,59,31,.18); }
.stat .num { transition: text-shadow .3s ease; }
