:root {
    --bs-primary: #e36c4f;
    --bs-primary-rgb: 227, 108, 79;
    --bs-link-color: #1d6661;
    --bs-link-hover-color: #134a47;
    --bd-ink: #142c2e;
    --bd-ink-soft: #254346;
    --bd-deep-surface: #142c2e;
    --bd-coral: #e36c4f;
    --bd-coral-dark: #c95137;
    --bd-sand: #f5efe4;
    --bd-cream: #fbf8f2;
    --bd-mint: #dcebe4;
    --bd-line: #e5e0d7;
    --bd-muted: #677476;
    --bd-card-radius: 18px;
    --app-surface: #ffffff;
    --app-surface-muted: #f2f5f3;
    --app-radius-sm: .75rem;
    --app-radius-md: 1rem;
    --app-radius-lg: 1.25rem;
    --app-shadow-card: 0 12px 34px rgba(20, 44, 46, .09);
    --app-safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Premium mobile application shell and discovery controls */
.mobile-tabbar { position: fixed; z-index: 1045; right: 10px; bottom: 10px; left: 10px; display: grid; grid-template-columns: repeat(4, 1fr); min-height: 66px; padding: 7px 8px calc(7px + var(--app-safe-bottom)); background: color-mix(in srgb, var(--bs-body-bg) 92%, transparent); border: 1px solid color-mix(in srgb, var(--bs-body-color) 10%, transparent); border-radius: 20px; box-shadow: 0 18px 50px rgba(8, 24, 25, .2); backdrop-filter: blur(20px); }
.mobile-tab { display: flex; min-width: 0; min-height: 52px; align-items: center; justify-content: center; flex-direction: column; gap: 2px; color: var(--bd-muted); border-radius: 14px; font-size: .67rem; font-weight: 750; text-decoration: none; transition: color .18s ease, background .18s ease, transform .18s ease; }
.mobile-tab-icon { display: grid; place-items: center; width: 34px; height: 28px; border-radius: 12px; font-size: 1.08rem; transition: transform .18s ease; }
.mobile-tab.is-active { color: var(--bd-coral-dark); background: rgba(227, 108, 79, .1); }
.mobile-tab.is-active .mobile-tab-icon { transform: translateY(-1px) scale(1.05); }
.mobile-tab:active, .touch-action:active, .btn:active { transform: scale(.98); }

.scrollbar-none { scrollbar-width: none; }
.scrollbar-none::-webkit-scrollbar { display: none; }
.discovery-strip, .quick-filter-strip { display: flex; gap: 9px; overflow-x: auto; padding: 2px 1px 5px; scroll-snap-type: x proximity; }
.search-pill { display: flex; min-height: 54px; align-items: center; gap: 10px; padding: 5px 7px 5px 17px; background: var(--bs-body-bg); border: 1px solid var(--bd-line); border-radius: 18px; box-shadow: var(--app-shadow-card); }
.search-pill > i { flex: 0 0 auto; color: var(--bd-coral-dark); font-size: 1.05rem; }
.search-pill input { min-width: 0; flex: 1; color: var(--bs-body-color); background: transparent; border: 0; outline: 0; font-size: .9rem; }
.search-pill-action { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; padding: 0; color: var(--bd-ink); background: var(--app-surface-muted); border: 0; border-radius: 14px; text-decoration: none; }
.discovery-chip, .filter-chip { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; flex: 0 0 auto; gap: 7px; padding: 9px 14px; color: var(--bd-ink); background: var(--bs-body-bg); border: 1px solid var(--bd-line); border-radius: 999px; font-size: .78rem; font-weight: 750; text-decoration: none; scroll-snap-align: start; transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease; }
.filter-chip { min-height: 40px; padding-block: 7px; }
button.filter-chip { appearance: none; }
.discovery-chip.is-active, .filter-chip.is-active { color: #fff; background: var(--bd-ink); border-color: var(--bd-ink); }
.discovery-chip:active, .filter-chip:active { transform: scale(.97); }

.filter-sheet { --bs-offcanvas-height: min(88vh, 760px); border-radius: 24px 24px 0 0; }
.filter-sheet .offcanvas-header { position: relative; padding-top: 26px; border-bottom: 1px solid var(--bd-line); }
.filter-sheet-handle { position: absolute; top: 9px; left: 50%; width: 44px; height: 5px; background: #aab3b1; border-radius: 99px; transform: translateX(-50%); }
.filter-sheet .filter-card { border: 0; border-radius: 0; }

.result-skeleton-grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-bottom: 20px; }
.result-skeleton-grid.htmx-indicator { display: none; }
.result-skeleton-grid.htmx-request, .htmx-request .result-skeleton-grid.htmx-indicator { display: grid; }
.skeleton-card { overflow: hidden; min-height: 430px; padding-bottom: 20px; background: var(--bs-body-bg); border: 1px solid var(--bd-line); border-radius: var(--bd-card-radius); }
.skeleton-media, .skeleton-line, .skeleton-actions { display: block; background: linear-gradient(100deg, rgba(120,130,128,.12) 25%, rgba(160,170,168,.23) 45%, rgba(120,130,128,.12) 65%); background-size: 200% 100%; animation: skeleton-shimmer 1.2s ease-in-out infinite; }
.skeleton-media { width: 100%; aspect-ratio: 4 / 3; }
.skeleton-line { width: 62%; height: 13px; margin: 18px 20px 0; border-radius: 7px; }
.skeleton-line.wide { width: 72%; height: 20px; }
.skeleton-line.short { width: 44%; }
.skeleton-actions { width: calc(100% - 40px); height: 44px; margin: 25px 20px 0; border-radius: 12px; }
@keyframes skeleton-shimmer { to { background-position-x: -200%; } }

.contact-action { width: auto !important; min-width: 44px; padding: 0 11px; gap: 6px; }
.contact-action span { font-size: .7rem; font-weight: 800; }
.results-error { display: grid; min-height: 360px; place-items: center; align-content: center; padding: 40px 20px; color: var(--bd-muted); background: var(--bs-body-bg); border: 1px solid var(--bd-line); border-radius: var(--bd-card-radius); text-align: center; }
.results-error > i { margin-bottom: 8px; color: var(--bd-coral-dark); font-size: 2rem; }
.results-error h2 { margin-bottom: 4px; font-size: 1.2rem; }
.results-error p { margin-bottom: 18px; }
.filter-sheet.is-dragging { transition: none !important; }

@media (max-width: 991.98px) {
    body { padding-bottom: calc(88px + var(--app-safe-bottom)); }
    .site-footer { padding-bottom: calc(90px + var(--app-safe-bottom)); }
    .site-nav { min-height: 62px; }
    .site-nav .container { flex-wrap: nowrap; gap: 5px; }
    .site-nav .navbar-brand { margin-right: 0; font-size: 1.2rem; }
    .site-nav .navbar-toggler { width: 42px; height: 42px; padding: 8px; border: 0; }
    .filter-sheet .offcanvas-body { overflow-y: auto; }
    .filter-sheet form .btn-primary { position: sticky; z-index: 2; bottom: 10px; min-height: 48px; box-shadow: 0 10px 26px rgba(20,44,46,.2); }
}

@media (min-width: 768px) {
    .result-skeleton-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 992px) {
    .filter-sheet { position: static; visibility: visible !important; width: auto; height: auto; border: 0; border-radius: 0; transform: none !important; }
    .filter-sheet .offcanvas-body { overflow: visible; }
    .directory-results { --bs-columns: 2; }
}

[data-bs-theme="dark"] .mobile-tabbar { background: rgba(17, 36, 38, .94); border-color: rgba(255,255,255,.1); }
[data-bs-theme="dark"] .site-nav.is-scrolled { background: rgba(17, 36, 38, .9); }
[data-bs-theme="dark"] .discovery-chip, [data-bs-theme="dark"] .filter-chip { color: #eaf1ef; background: #172c2e; border-color: #405154; }
[data-bs-theme="dark"] .search-pill-action { color: #eaf1ef; background: #243d3f; }
[data-bs-theme="dark"] .discovery-chip.is-active, [data-bs-theme="dark"] .filter-chip.is-active { color: #142c2e; background: #f0a58f; border-color: #f0a58f; }

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

body { background: var(--bd-cream); color: var(--bd-ink); font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif; line-height: 1.6; overflow-x: hidden; }
/* Bootstrap 5 only caps width via .img-fluid/.card-img-top — this is a blanket safety net so no
   image (current or future) can force horizontal scroll on a phone-width viewport. */
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 { color: inherit; font-weight: 750; letter-spacing: -.035em; }
a, button, input, select { touch-action: manipulation; }
a { color: var(--bs-link-color); }
:focus-visible { outline: 3px solid #f2a65a; outline-offset: 3px; }
.skip-link { position: fixed; left: 1rem; top: -6rem; z-index: 2000; padding: .75rem 1rem; background: #fff; color: #142c2e; border-radius: 10px; }
.skip-link:focus { top: 1rem; }
.btn { border-radius: 10px; font-weight: 700; padding: .68rem 1.05rem; }
.btn-sm { padding: .5rem .78rem; }
.btn-primary { --bs-btn-color: #142c2e; --bs-btn-bg: var(--bd-coral); --bs-btn-border-color: var(--bd-coral); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #a93b27; --bs-btn-hover-border-color: #a93b27; --bs-btn-active-color: #fff; --bs-btn-active-bg: #8f311f; --bs-btn-active-border-color: #8f311f; --bs-btn-disabled-color: #142c2e; --bs-btn-disabled-bg: var(--bd-coral); --bs-btn-disabled-border-color: var(--bd-coral); }
.btn-outline-primary { --bs-btn-color: #a9402d; --bs-btn-border-color: #c3543d; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #a9402d; --bs-btn-hover-border-color: #a9402d; }
.btn-dark { --bs-btn-bg: var(--bd-ink); --bs-btn-border-color: var(--bd-ink); --bs-btn-hover-bg: var(--bd-ink-soft); --bs-btn-hover-border-color: var(--bd-ink-soft); }
.text-primary { color: #ac432f !important; }
.form-control, .form-select { min-height: 46px; border-radius: 10px; }
.form-control:focus, .form-select:focus { border-color: #4b918c; box-shadow: 0 0 0 .2rem rgba(29, 102, 97, .14); }

/* Navigation */
.site-nav { min-height: 70px; background: rgba(251, 248, 242, .94); border-bottom: 1px solid rgba(20, 44, 46, .08); backdrop-filter: blur(16px); }
.mobile-location { display: inline-flex; align-items: center; gap: 5px; max-width: 112px; min-height: 44px; margin-left: auto; padding: 0 8px; overflow: hidden; color: var(--bd-ink); border-radius: 12px; font-size: .72rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.mobile-location span { overflow: hidden; text-overflow: ellipsis; }
.mobile-profile { display: grid; place-items: center; width: 44px; height: 44px; color: var(--bd-ink); border: 1px solid var(--bd-line); border-radius: 14px; font-size: 1.05rem; }
.site-nav.is-scrolled { background: rgba(251, 248, 242, .86); box-shadow: 0 8px 30px rgba(20,44,46,.07); }
.navbar-brand, .footer-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--bd-ink); font-size: 1.48rem; font-weight: 800; letter-spacing: -.06em; text-decoration: none; }
.navbar-brand > span:last-child > span { color: #b94730; }
.brand-logo { display: block; width: 168px; height: auto; flex: 0 0 auto; }
.app-brand .brand-logo { width: 172px; }
.footer-brand .brand-logo { width: 192px; }
.footer-brand .brand-logo, [data-bs-theme="dark"] .brand-logo { box-sizing: border-box; padding: 6px 8px; background: #fbf8f2; border-radius: 8px; }
@media (max-width: 991.98px) {
    .site-nav .brand-logo { width: 132px; }
}
@media (max-width: 359.98px) {
    .site-nav .brand-logo { width: 116px; }
    .mobile-location span { display: none; }
}
.navbar .nav-link { color: #435658; font-size: .88rem; font-weight: 650; padding: .75rem .72rem !important; }
.navbar .nav-link:hover { color: var(--bd-coral-dark); }
.navbar .business-nav-link { color: var(--bd-ink); }
.navbar-collapse { padding: 14px 0 18px; }
.navbar-collapse .navbar-nav { align-items: flex-start !important; }
.theme-toggle { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--bd-line); border-radius: 50%; color: var(--bd-ink); }
.nav-cta { padding-inline: 1rem; }

/* Home hero */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--bd-deep-surface); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .16; background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0); background-size: 28px 28px; mask-image: linear-gradient(90deg, #000, transparent 70%); }
.hero-layout { position: relative; display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; min-height: auto; padding-top: 48px; padding-bottom: 52px; }
.hero-intro { position: relative; z-index: 2; }
.hero-kicker, .eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--bd-coral); font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero-kicker { color: #f1b09e; }
.hero h1 { max-width: 780px; margin: 22px 0 24px; color: #fff; font-size: clamp(2.55rem, 13vw, 3rem); line-height: .98; letter-spacing: -.065em; }
.hero h1 em { color: #f0a58f; font-family: Georgia, serif; font-weight: 400; }
.hero-intro > p { max-width: 610px; margin-bottom: 30px; color: #d7e2df; font-size: .96rem; }
.discovery-search { display: grid; grid-template-columns: 1fr; gap: 4px; max-width: 860px; padding: 12px; color: #142c2e; background: #fff; border-radius: 16px; box-shadow: 0 18px 50px rgba(0, 0, 0, .2); }
.search-field { min-width: 0; padding: 6px 4px; border-bottom: 1px solid #e4e7e5; }
.search-field label { display: block; margin: 0 0 -3px 29px; font-size: .7rem; font-weight: 800; color: #465759; }
.search-control { display: flex; align-items: center; gap: 8px; }
.search-control > i { color: var(--bd-coral); }
.search-field .form-control, .search-field .form-select { min-width: 0; min-height: 38px; padding: 4px 0; color: var(--bd-ink); background-color: #fff; border: 0; box-shadow: none; font-size: .88rem; }
.search-submit { min-width: 118px; min-height: 50px; border-radius: 11px; }
.search-submit i { margin-left: 14px; }
.popular-searches { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 20px; font-size: .77rem; }
.popular-searches span { color: #91a4a3; }
.popular-searches a { color: #dce7e4; text-underline-offset: 5px; text-decoration-color: #54706f; }
.popular-searches a:hover { color: #fff; }
.hero-discovery { position: relative; display: none; min-height: 430px; }
.hero-orbit { position: absolute; border: 1px solid rgba(240, 165, 143, .25); border-radius: 50%; }
.hero-orbit-one { width: 440px; height: 440px; top: 0; left: -20px; }
.hero-orbit-two { width: 315px; height: 315px; top: 62px; left: 42px; }
.discovery-stack { position: absolute; z-index: 2; inset: 52px 0 auto 22px; padding: 24px; color: var(--bd-ink); background: #fff; border-radius: 22px; box-shadow: 22px 24px 0 rgba(227, 108, 79, .18); transform: rotate(2deg); }
.discovery-label { display: block; margin-bottom: 10px; color: #899694; font-size: .63rem; font-weight: 800; letter-spacing: .15em; }
.discovery-item { display: grid; grid-template-columns: 48px 1fr auto; gap: 13px; align-items: center; padding: 13px 2px; color: var(--bd-ink); border-bottom: 1px solid #e8ece9; text-decoration: none; }
.discovery-item:hover { color: var(--bd-coral-dark); }
.discovery-item > span:nth-child(2) { display: grid; }
.discovery-item small { color: #9aa5a4; font-size: .62rem; letter-spacing: .08em; }
.discovery-item strong { font-size: .95rem; }
.discovery-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: var(--bd-coral-dark); background: #fbe9e3; font-size: 1.2rem; }
.discovery-item:nth-of-type(3) .discovery-icon { color: #3f6f63; background: var(--bd-mint); }
.discovery-item:nth-of-type(4) .discovery-icon { color: #725a3c; background: #f1e7d3; }
.discovery-all { display: flex; justify-content: space-between; padding-top: 17px; color: var(--bd-ink); font-size: .82rem; font-weight: 750; text-decoration: none; }

/* Shared sections */
.discovery-section { padding-top: 62px; padding-bottom: 62px; }
.section-heading { display: flex; align-items: flex-start; flex-direction: column; justify-content: space-between; gap: 14px; margin-bottom: 38px; }
.section-heading h2 { margin: 12px 0 0; font-size: clamp(2rem, 8vw, 3.25rem); line-height: 1.05; }
.section-heading h2 br { display: none; }
.section-heading p { margin: 8px 0 0; color: var(--bd-muted); }
.section-heading.compact h2 { font-size: clamp(1.8rem, 3vw, 2.65rem); }
.section-intro { max-width: none; padding-bottom: 7px; }
.section-link { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; color: var(--bd-ink); font-size: .84rem; font-weight: 750; text-decoration: none; }
.section-link:hover { color: var(--bd-coral-dark); }
.section-action { display: flex; justify-content: flex-end; margin-top: 26px; }
.category-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
a.category-card { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 135px; padding: 21px; color: var(--bd-ink); background: rgba(255, 255, 255, .5); border: 1px solid var(--bd-line); border-radius: 16px; text-decoration: none; transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease; }
.category-card:hover { z-index: 1; color: #fff; background: var(--bd-ink); transform: translateY(-3px); }
.category-card .icon-circle { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: var(--bd-coral-dark); background: #fbe7e0; font-size: 1.25rem; }
.category-card:hover .icon-circle { color: #fff; background: rgba(255, 255, 255, .13); }
.category-card > span:nth-child(2) { display: grid; gap: 3px; }
.category-card strong { font-size: 1rem; }
.category-card small { color: #84908f; font-size: .73rem; }
.category-card:hover small { color: #aebfbd; }
.category-arrow { position: absolute; top: 28px; right: 27px; color: #9ba5a3; }
.category-all { color: #142c2e !important; background: #f0ab91 !important; border-color: #e69d83 !important; }
.category-all .icon-circle { color: #fff; background: #142c2e; }
.category-all small, .category-all .category-arrow { color: #65463d; }
.category-all:hover { color: #fff !important; background: #142c2e !important; border-color: #142c2e !important; box-shadow: 0 14px 28px rgba(20,44,46,.16); }
.category-all:hover small, .category-all:hover .category-arrow { color: #d6e1df; }
.featured-section { padding: 62px 0; background: #e8eee9; }

/* Paid homepage spotlight */
.paid-spotlight-section { padding: 42px 0 50px; color: #fff; background: #102426; }
.paid-spotlight-heading { display: flex; align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.paid-spotlight-heading h2 { margin: 10px 0 6px; color: #fff; font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.02; }
.paid-spotlight-heading p { margin: 0; color: #b8cac7; }
.paid-placement-note { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; color: #f7d5c8; background: rgba(240,165,143,.12); border: 1px solid rgba(240,165,143,.3); border-radius: 999px; font-size: .7rem; font-weight: 750; }
.paid-spotlight-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(86%, 1fr); gap: 16px; overflow-x: auto; padding: 2px 2px 14px; scroll-snap-type: x mandatory; scrollbar-color: #54706f transparent; }
.paid-spotlight-card { overflow: hidden; min-width: 0; color: #142c2e; background: #fff; border: 1px solid rgba(255,255,255,.16); border-radius: 22px; box-shadow: 0 20px 52px rgba(0,0,0,.2); scroll-snap-align: start; }
.paid-spotlight-media { position: relative; overflow: hidden; height: 210px; background: #28575a; }
.paid-spotlight-media > img, .paid-spotlight-placeholder { width: 100%; height: 100%; object-fit: cover; }
.paid-spotlight-placeholder { display: grid; place-items: center; color: rgba(255,255,255,.88); font-size: 3rem; }
.paid-spotlight-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,36,38,.05), rgba(16,36,38,.35)); pointer-events: none; }
.paid-spotlight-badge { position: absolute; z-index: 1; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; color: #142c2e; background: #ffd6c7; border-radius: 999px; box-shadow: 0 8px 20px rgba(0,0,0,.18); font-size: .68rem; font-weight: 850; letter-spacing: .03em; text-transform: uppercase; }
.paid-spotlight-body { padding: 21px; }
.paid-spotlight-meta { display: flex; flex-wrap: wrap; gap: 7px 13px; margin-bottom: 15px; color: #687778; font-size: .68rem; font-weight: 700; text-transform: uppercase; }
.paid-spotlight-identity { display: flex; align-items: center; gap: 12px; }
.paid-spotlight-identity > img, .paid-spotlight-identity > span { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 auto; object-fit: cover; color: #fff; border: 2px solid #fff; border-radius: 14px; box-shadow: 0 7px 18px rgba(20,44,46,.15); font-size: .72rem; font-weight: 850; }
.paid-spotlight-identity h3 { margin: 0; font-size: 1.15rem; }
.paid-spotlight-identity small { color: #27766f; font-size: .7rem; font-weight: 750; }
.paid-spotlight-body > p { min-height: 3.2em; margin: 16px 0; color: #526466; font-size: .82rem; }
.paid-spotlight-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 15px; border-top: 1px solid #e5e9e7; }
.paid-spotlight-actions > div { display: flex; gap: 7px; }
.paid-spotlight-actions > div a { display: grid; place-items: center; width: 38px; height: 38px; color: #315b5e; border: 1px solid #adbcba; border-radius: 11px; text-decoration: none; }
.paid-spotlight-actions > div a:hover { color: #fff; background: #315b5e; }
.paid-spotlight-actions > div a.whatsapp { color: #217647; border-color: #70ad8d; }
.paid-spotlight-cta { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 9px 13px; color: #142c2e; background: #f0a58f; border-radius: 11px; font-size: .74rem; font-weight: 850; text-decoration: none; }
.paid-spotlight-cta:hover { color: #fff; background: #a93b27; }
.paid-spotlight-disclosure { margin: 12px 2px 0; color: #91a7a5; font-size: .66rem; }

/* Live directory activity */
.activity-section { padding: 0 0 72px; }
.activity-layout { display: grid; grid-template-columns: 1fr; gap: 22px; }
.recent-listings, .community-feed { min-width: 0; }
.activity-subheading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.activity-subheading h3 { margin: 0; font-size: 1rem; }
.activity-subheading span { color: var(--bd-muted); font-size: .72rem; }
.recent-business-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.recent-business { position: relative; display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 13px; align-items: center; min-height: 86px; padding: 14px 56px 14px 14px; color: var(--bd-ink); background: rgba(255,255,255,.58); border: 1px solid var(--bd-line); border-radius: 15px; text-decoration: none; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.recent-business:hover { color: var(--bd-ink); background: #fff; border-color: #c6bfb4; transform: translateY(-2px); }
.recent-business > img, .recent-business-avatar { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 13px; object-fit: cover; color: #fff; font-size: .78rem; font-weight: 800; }
.recent-business-copy { display: grid; min-width: 0; }
.recent-business-copy > small { overflow: hidden; color: var(--bd-coral-dark); font-size: .64rem; font-weight: 800; letter-spacing: .04em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.recent-business-copy > strong { overflow: hidden; font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
.recent-business-copy > span { overflow: hidden; color: var(--bd-muted); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.recent-business > time { position: absolute; top: 14px; right: 14px; color: #8c9997; font-size: .64rem; }
.community-feed { padding: 20px; background: #fff; border: 1px solid var(--bd-line); border-radius: 18px; }
.feed-item { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-top: 1px solid var(--bd-line); }
.activity-subheading + .feed-item { padding-top: 6px; border-top: 0; }
.feed-avatar { display: grid; place-items: center; width: 38px; height: 38px; color: #fff; background: #35756f; border-radius: 12px; font-size: .7rem; font-weight: 800; }
.feed-copy { min-width: 0; }
.feed-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.feed-meta strong { overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.feed-meta time { flex-shrink: 0; color: var(--bd-muted); font-size: .62rem; }
.feed-stars { display: flex; gap: 2px; margin: 3px 0 5px; color: #e58d27; font-size: .65rem; }
.feed-copy p { margin: 0 0 5px; color: var(--bd-muted); font-size: .72rem; line-height: 1.5; }
.feed-copy > a { color: var(--bd-ink); font-size: .7rem; font-weight: 750; text-decoration: none; }
.feed-copy > a:hover { color: var(--bd-coral-dark); }
.feed-empty { display: grid; place-items: center; min-height: 230px; padding: 25px; color: var(--bd-muted); text-align: center; }
.feed-empty i { color: #8aa9a5; font-size: 2rem; }
.feed-empty p { max-width: 260px; margin: 10px 0 0; font-size: .78rem; }

/* Business cards */
.card { border-color: var(--bd-line); border-radius: var(--bd-card-radius); }
.business-card { overflow: hidden; background: var(--bs-body-bg); box-shadow: none !important; transition: transform .2s ease, box-shadow .2s ease; }
.business-card:hover { transform: translateY(-5px); box-shadow: 0 20px 42px rgba(20, 44, 46, .10) !important; }
.biz-media { position: relative; overflow: hidden; }
.biz-cover { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.biz-cover-placeholder { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; color: rgba(255, 255, 255, .85); background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,.25), transparent 42%), linear-gradient(135deg, rgba(255,255,255,.1), rgba(0,0,0,.16)); font-size: 2rem; }
.business-card .card-body { display: flex; flex-direction: column; padding: 0 20px 20px; }
.business-card .card-body > p { flex-grow: 1; }
.business-card h3 { font-size: 1.05rem; }
.biz-card-status { position: absolute; top: 14px; left: 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
/* Open / Closed pill (see App\Support\OpenStatus). A coloured dot AND words, so it never relies on colour alone. */
.open-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; color: #14532d; background: rgba(255,255,255,.95); border-radius: 999px; box-shadow: 0 5px 14px rgba(20,44,46,.16); font-size: .72rem; font-weight: 700; line-height: 1.25; white-space: nowrap; }
.open-badge .open-dot { flex: none; width: 8px; height: 8px; background: #1f9d62; border-radius: 50%; }
.open-badge.is-closing { color: #7c4a03; }
.open-badge.is-closing .open-dot { background: #e8a317; }
.open-badge.is-closed { color: #991b1b; }
.open-badge.is-closed .open-dot { background: #c8473d; }
.open-badge-inline { background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); box-shadow: none; font-size: .78rem; }
.open-badge-detail { color: var(--bs-secondary-color); font-weight: 500; }
.open-badge-detail::before { content: "·"; margin-right: 6px; }
.biz-card-status .badge { box-shadow: 0 5px 14px rgba(20,44,46,.16); backdrop-filter: blur(8px); }
.biz-quick-actions { position: absolute; top: 12px; right: 12px; display: flex; gap: 7px; }
.biz-quick-actions form { margin: 0; }
.quick-action { display: inline-flex; align-items: center; justify-content: center; gap: 5px; width: auto; min-width: 38px; height: 38px; padding: 0 9px; color: #142c2e; background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.78); border-radius: 12px; box-shadow: 0 6px 18px rgba(20,44,46,.14); font-size: .78rem; text-decoration: none; backdrop-filter: blur(9px); transition: color .18s ease, background .18s ease, transform .18s ease; }
.quick-action > span { min-width: .65rem; font-size: .64rem; font-weight: 800; font-variant-numeric: tabular-nums; text-align: center; }
.quick-action:hover { color: #fff; background: var(--bd-coral-dark); border-color: var(--bd-coral-dark); transform: translateY(-2px); }
.quick-action.is-copied { color: #fff; background: #23766e; border-color: #23766e; }
.quick-action.is-active { color: #fff; background: #b94730; border-color: #b94730; }
.quick-action[data-helpful-url].is-active { background: #23766e; border-color: #23766e; }
.quick-action:disabled { opacity: .72; transform: none; }
.biz-identity-row { min-height: 33px; }
.verified-mark { flex: 0 0 auto; color: #258078; font-size: 1.08rem; line-height: 1; }
.biz-logo, .biz-logo-placeholder { width: 58px; height: 58px; flex-shrink: 0; margin-top: -31px; border: 4px solid var(--bs-body-bg); border-radius: 16px; background: var(--bs-body-bg); object-fit: cover; }
.biz-logo-placeholder { display: grid; place-items: center; color: #fff; font-weight: 750; }
.biz-cover-lg, .biz-cover-placeholder-lg { height: 300px; }
/* contain, not cover: the large hero banner is full-width and 300px tall, so a photo that
   isn't itself a wide banner shape (a square/portrait logo, common on harvested listings)
   gets cropped to an unrecognizable close-up under cover's fill-and-crop behavior. contain
   always shows the whole image; the img's own background-color (set inline per-business,
   matching its placeholder) fills any letterboxed space instead of showing blank white. */
.biz-cover-lg { object-fit: contain; }
/* The default category artwork is drawn to be cropped around its centred icon, so it always fills
   the frame — unlike a business's own photo, which must never be cropped (see above). */
.biz-cover-default, .biz-cover-lg.biz-cover-default { object-fit: cover; }
.biz-logo-lg, .biz-logo-placeholder-lg { width: 100px; height: 100px; margin-top: -58px; border-width: 5px; border-radius: 22px; font-size: 1.6rem; }
.badge { padding: .45em .68em; border-radius: 7px; font-weight: 700; }
.badge-verified { color: #fff; background: #23766e; }
.badge-featured { color: #81502f; background: #f4dfc4; }
.rating-stars { display: inline-flex; gap: 2px; color: #f0a23a; }
.rating-stars i { font-size: .8rem; }
.rating-stars i.empty { color: #cbd1cf; }
.business-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 15px; border-top: 1px solid var(--bd-line); }
.contact-actions { display: flex; gap: 7px; }
.contact-action { display: inline-flex; align-items: center; justify-content: center; width: auto; min-width: 44px; height: 40px; padding: 0 11px; gap: 6px; color: #496062; border: 1px solid #bdc8c6; border-radius: 11px; text-decoration: none; transition: color .18s ease, border-color .18s ease, background .18s ease; }
.contact-action:hover { color: #fff; background: #385d60; border-color: #385d60; }
.contact-action.whatsapp { color: #267a4b; border-color: #83b99b; }
.contact-action.whatsapp:hover { color: #fff; background: #267a4b; border-color: #267a4b; }
.profile-action { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 8px 12px; color: #142c2e; background: var(--bd-coral); border-radius: 11px; font-size: .73rem; font-weight: 800; text-decoration: none; transition: color .18s ease, background .18s ease, transform .18s ease; }
.profile-action:hover { color: #fff; background: #a93b27; transform: translateY(-1px); }

/* How it works and CTA */
.how-section { padding: 62px 0; color: #fff; background: #1d3e40; }
.how-layout { display: grid; grid-template-columns: 1fr; gap: 42px; }
.how-heading h2 { margin: 16px 0 20px; color: #fff; font-size: clamp(2.5rem, 4.2vw, 4rem); line-height: 1; }
.how-heading p { max-width: 360px; color: #b9ccca; }
.how-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.how-grid article { position: relative; min-height: auto; padding: 26px 22px; border: 1px solid rgba(255,255,255,.2); border-radius: 18px; }
.how-grid article:nth-child(2) { transform: none; }
.step-number { position: absolute; top: 22px; right: 20px; color: #78918f; font-size: .7rem; font-weight: 800; }
.step-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 26px; color: #fff; background: var(--bd-coral); border-radius: 14px; font-size: 1.2rem; }
.how-grid h3 { color: #fff; font-size: 1.05rem; }
.how-grid p { margin: 10px 0 0; color: #aebfbd; font-size: .84rem; }
.community-section { padding-top: 50px; padding-bottom: 50px; }
.community-banner { position: relative; overflow: hidden; padding: 36px 26px; color: #142c2e; background: #f0ab91; border-radius: 22px; }
.community-kicker { font-size: .68rem; font-weight: 800; letter-spacing: .16em; }
.community-banner h2 { margin: 16px 0; font-size: clamp(2.3rem, 4vw, 4rem); line-height: 1; }
.community-banner p { max-width: 470px; margin-bottom: 26px; color: #563d36; }
.community-banner .btn { color: #fff; background: var(--bd-ink); border-color: var(--bd-ink); }
.community-art { position: absolute; right: 5%; bottom: -65px; display: none; color: rgba(20,44,46,.12); font-size: 15rem; line-height: 1; transform: rotate(-7deg); }

/* Search and directory */
.search-page-heading { padding: 30px 0 24px; border-bottom: 1px solid var(--bd-line); margin-bottom: 30px; }
.search-page-heading h1 { font-size: clamp(2rem, 3vw, 2.8rem); }
.search-heading-row { display: flex; align-items: flex-start; flex-direction: column; gap: 20px; }
.search-heading-copy { max-width: 860px; }
.price-guide-strip { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 7px 12px; max-width: 760px; margin-top: 18px; padding: 13px 15px; color: var(--bs-body-color); background: var(--bs-tertiary-bg); border: 1px solid var(--bd-line); border-radius: 14px; font-size: .84rem; }
.price-guide-strip > i { color: var(--bd-coral); }
.price-guide-strip small { width: 100%; padding-left: 28px; color: var(--bd-muted); }
.results-sort { display: flex; align-items: center; gap: 9px; color: var(--bs-body-color); font-size: .82rem; white-space: nowrap; }
.results-sort span { font-weight: 650; }
.results-sort .form-select { width: auto; min-width: 150px; color: var(--bs-body-color); background-color: var(--bs-body-bg); border-color: var(--bd-line); font-weight: 700; }
.filter-card { background: transparent; border: 0; }
.filter-card .card-body { padding: 0; }
.directory-results .business-card { min-height: 100%; }
.ranking-reasons { display: flex; flex-wrap: wrap; gap: 6px; margin: 3px 0 10px; }
.ranking-reasons span { display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px; color: var(--bs-body-color); background: var(--bs-tertiary-bg); border-radius: 999px; font-size: .66rem; font-weight: 700; }
.ranking-reasons i { color: var(--bd-coral-dark); }
.results-empty { width: 100%; }
#searchResults.htmx-request { opacity: .5; }
.page-link { color: var(--bd-ink); }
.active > .page-link { background: var(--bd-coral); border-color: var(--bd-coral); }

/* Offers */
.offer-card { position: relative; display: flex; flex-direction: column; overflow: hidden; height: 100%; background: var(--bs-body-bg); border: 1px solid var(--bd-line); border-radius: var(--bd-card-radius); transition: transform .2s ease, box-shadow .2s ease; }
.offer-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(20,44,46,.1); }
.offer-ribbon { position: absolute; z-index: 2; top: 16px; right: -38px; padding: 6px 42px; color: #fff; background: var(--bd-coral); box-shadow: 0 3px 8px #0003; font-size: .72rem; font-weight: 750; letter-spacing: .03em; text-align: center; transform: rotate(40deg); white-space: nowrap; }
.offer-cover { display: block; width: 100%; height: 140px; object-fit: cover; }
.offer-cover-placeholder { display: flex; align-items: center; justify-content: center; color: #ffffffcc; font-size: 2rem; }
.offer-card-body { display: flex; flex-direction: column; flex-grow: 1; padding: 18px 20px; }
.offer-card-title { margin: 0 0 6px; font-size: 1.05rem; font-weight: 750; }
.offer-card-desc { flex-grow: 1; margin: 0 0 10px; color: var(--bd-muted); font-size: .85rem; }
.offer-card-business { color: var(--bd-coral-dark); font-size: .8rem; font-weight: 700; text-decoration: none; }
.offer-card-expiry { display: flex; align-items: center; gap: 5px; margin-top: 10px; color: #8a6346; font-size: .76rem; font-weight: 600; }
.offer-card-expiry.urgent { color: var(--bd-coral-dark); }

/* Footer and application shells */
.site-footer { margin-top: 30px; padding: 58px 0 26px; color: #cfdbd9; background: #102426; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 34px; }
.footer-brand { color: #fff; }
.footer-brand:hover { color: #fff; }
.footer-intro p { max-width: 310px; margin-top: 18px; color: #91a7a5; font-size: .88rem; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links h2 { margin-bottom: 10px; color: #fff; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-links a { color: #aebfbd; font-size: .84rem; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: flex-start; flex-direction: column; justify-content: space-between; gap: 8px; margin-top: 45px; padding-top: 22px; border-top: 1px solid #294244; color: #9bafad; font-size: .75rem; }
.skeleton { background: linear-gradient(90deg, rgba(127,127,127,.15) 25%, rgba(127,127,127,.25) 37%, rgba(127,127,127,.15) 63%); background-size: 400% 100%; animation: skeleton-loading 1.4s ease infinite; border-radius: 8px; }
@keyframes skeleton-loading { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.stat-tile { border: 1px solid var(--bs-border-color); border-radius: var(--bd-card-radius); }
.stat-tile .stat-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: .7rem; font-size: 1.25rem; }
.admin-shell { min-height: 100vh; flex-direction: column; }
.admin-sidebar { width: 100%; flex-shrink: 0; }
.admin-sidebar .nav { flex-direction: row !important; flex-wrap: nowrap; overflow-x: auto; }
.admin-sidebar .nav-link { white-space: nowrap; }
.admin-content { min-width: 0; padding: 1rem !important; }
.nav-pills { --bs-nav-pills-link-active-bg: var(--bd-coral); }
#categoryHeading, #howHeading { scroll-margin-top: 105px; }
/* The sticky navbar must not cover the top of a section the page jumps to (#claim, #reviews, #enquire ...). */
html { scroll-padding-top: 100px; }

/* Icon-only buttons (no visible label) are otherwise ~31px with Bootstrap's .btn-sm padding —
   too small a touch target on a phone. Text+icon buttons are left alone; their visible label
   already gives a wider, easier-to-hit tap area even at the same height. */
.btn-sm:has(> i.bi:only-child) { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }

.lite-image-placeholder { background: var(--bs-tertiary-bg, #e9ecef); color: var(--bd-muted, #677476); text-align: center; padding: 12px; cursor: pointer; }
.lite-image-placeholder:hover { background: var(--bs-secondary-bg, #dee2e6); }

.ad-slot-wrap { padding: 14px; background: var(--bs-body-bg, #fff); border: 1px solid var(--bd-line, #e5e0d7); border-radius: 18px; }
.ad-slot-label { display: block; margin-bottom: 10px; color: var(--bd-muted, #6c757d); font-size: .63rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.ad-slot { padding: 10px; background: var(--bs-tertiary-bg, #f4f4f4); border: 1px solid var(--bs-border-color, #dee2e6); border-radius: 12px; overflow: hidden; }
.directory-results .ad-slot-col { display: flex; align-items: center; justify-content: center; }

/* Dark theme: explicit contrast for controls, cards and fixed-colour surfaces. */
[data-bs-theme="dark"] {
    --bd-cream: #131d1f;
    --bd-sand: #202d2f;
    --bd-line: #405154;
    --bd-muted: #bac6c5;
    --bd-ink: #f2f6f5;
    --bd-ink-soft: #d9e3e1;
    --bs-link-color: #8fd5ce;
    --bs-link-hover-color: #b7ebe5;
    --bs-secondary-color: #b5c2c1;
}
[data-bs-theme="dark"] body { background: #131d1f; color: #f2f6f5; }
[data-bs-theme="dark"] .hero { color: #fff; background: var(--bd-deep-surface); }
[data-bs-theme="dark"] .site-nav { background: rgba(19,29,31,.96); border-bottom-color: #354649; }
[data-bs-theme="dark"] .navbar-brand, [data-bs-theme="dark"] .footer-brand { color: #fff; }
[data-bs-theme="dark"] .navbar-brand > span:last-child > span, [data-bs-theme="dark"] .text-primary, [data-bs-theme="dark"] .eyebrow { color: #ffad96 !important; }
[data-bs-theme="dark"] .navbar .nav-link { color: #d5dfdd; }
[data-bs-theme="dark"] .navbar .nav-link:hover { color: #ffb59f; }
[data-bs-theme="dark"] .theme-toggle { color: #f4f7f6; border-color: #647577; background: #263638; }
[data-bs-theme="dark"] .navbar-toggler { border-color: #596b6d; }
[data-bs-theme="dark"] .btn-dark { --bs-btn-color: #142c2e; --bs-btn-bg: #f0a58f; --bs-btn-border-color: #f0a58f; --bs-btn-hover-color: #142c2e; --bs-btn-hover-bg: #ffc0ad; --bs-btn-hover-border-color: #ffc0ad; }
[data-bs-theme="dark"] .btn-outline-secondary { --bs-btn-color: #d6e0de; --bs-btn-border-color: #738785; --bs-btn-hover-color: #142c2e; --bs-btn-hover-bg: #d6e0de; --bs-btn-hover-border-color: #d6e0de; }
[data-bs-theme="dark"] .btn-outline-success { --bs-btn-color: #8ee3ae; --bs-btn-border-color: #5fb781; --bs-btn-hover-color: #102118; --bs-btn-hover-bg: #8ee3ae; --bs-btn-hover-border-color: #8ee3ae; }
[data-bs-theme="dark"] .btn-outline-danger { --bs-btn-color: #ffaaa7; --bs-btn-border-color: #db7773; --bs-btn-hover-color: #2c1110; --bs-btn-hover-bg: #ffaaa7; --bs-btn-hover-border-color: #ffaaa7; }
[data-bs-theme="dark"] .btn-outline-primary { --bs-btn-color: #ffae98; --bs-btn-border-color: #e57d63; --bs-btn-hover-color: #261512; --bs-btn-hover-bg: #ffae98; --bs-btn-hover-border-color: #ffae98; }
[data-bs-theme="dark"] .featured-section { background: #1d2a2c; }
[data-bs-theme="dark"] a.category-card { background: #182426; }
[data-bs-theme="dark"] .category-card small, [data-bs-theme="dark"] .category-arrow { color: #adbcba; }
[data-bs-theme="dark"] .category-card:hover { color: #fff; background: #284345; }
[data-bs-theme="dark"] .category-card:hover small { color: #d5e0de; }
[data-bs-theme="dark"] .category-all { color: #142c2e !important; background: #f0ab91 !important; border-color: #f0ab91 !important; }
[data-bs-theme="dark"] .category-all strong { color: #142c2e; }
[data-bs-theme="dark"] .category-all small, [data-bs-theme="dark"] .category-all .category-arrow { color: #56382f; }
[data-bs-theme="dark"] .category-all:hover { color: #fff !important; background: #2b4b4d !important; border-color: #6e8583 !important; }
[data-bs-theme="dark"] .category-all:hover strong { color: #fff; }
[data-bs-theme="dark"] .category-all:hover small, [data-bs-theme="dark"] .category-all:hover .category-arrow { color: #dce7e5; }
[data-bs-theme="dark"] .business-card, [data-bs-theme="dark"] .offer-card, [data-bs-theme="dark"] .card { color: #eef4f2; background: #1d2a2c; border-color: #405154; }
[data-bs-theme="dark"] .biz-logo, [data-bs-theme="dark"] .biz-logo-placeholder { border-color: #1d2a2c; background: #1d2a2c; }
[data-bs-theme="dark"] .badge-featured { color: #ffe3c5; background: #674b31; }
[data-bs-theme="dark"] .open-badge { color: #86e3ae; background: rgba(21,32,33,.94); }
[data-bs-theme="dark"] .open-badge.is-closing { color: #f6c862; }
[data-bs-theme="dark"] .open-badge.is-closed { color: #f4a09a; }
[data-bs-theme="dark"] .open-badge-inline { background: #1d2a2c; border-color: #405154; }
[data-bs-theme="dark"] .badge-verified { color: #fff; background: #2b827a; }
[data-bs-theme="dark"] .verified-mark { color: #75d4ca; }
[data-bs-theme="dark"] .quick-action { color: #142c2e; background: rgba(255,255,255,.94); border-color: rgba(255,255,255,.82); }
[data-bs-theme="dark"] .quick-action:hover { color: #fff; background: #b94730; border-color: #b94730; }
[data-bs-theme="dark"] .contact-action { color: #d4dfdd; background: #223133; border-color: #647775; }
[data-bs-theme="dark"] .contact-action:hover { color: #142c2e; background: #d4dfdd; border-color: #d4dfdd; }
[data-bs-theme="dark"] .contact-action.whatsapp { color: #8ee3ae; border-color: #5fb781; }
[data-bs-theme="dark"] .contact-action.whatsapp:hover { color: #102118; background: #8ee3ae; border-color: #8ee3ae; }
[data-bs-theme="dark"] .profile-action { color: #142c2e; }
[data-bs-theme="dark"] .profile-action:hover { color: #fff; }
[data-bs-theme="dark"] .rating-stars i.empty { color: #71817f; }
[data-bs-theme="dark"] .form-control, [data-bs-theme="dark"] .form-select, [data-bs-theme="dark"] .form-check-input { color: #f3f7f6; background-color: #202e30; border-color: #536568; }
[data-bs-theme="dark"] .form-control::placeholder { color: #96a8a6; opacity: 1; }
[data-bs-theme="dark"] .form-control:focus, [data-bs-theme="dark"] .form-select:focus { color: #fff; background-color: #263638; border-color: #8fd5ce; box-shadow: 0 0 0 .2rem rgba(143,213,206,.18); }
[data-bs-theme="dark"] .form-text { color: #aab9b7; }
[data-bs-theme="dark"] .discovery-search { color: #142c2e; background: #fff; }
[data-bs-theme="dark"] .search-field .form-control, [data-bs-theme="dark"] .search-field .form-select { color: #142c2e; background: #fff; }
[data-bs-theme="dark"] .search-field .form-control::placeholder { color: #687778; }
[data-bs-theme="dark"] .discovery-stack { color: #142c2e; background: #fff; }
[data-bs-theme="dark"] .discovery-item, [data-bs-theme="dark"] .discovery-all { color: #142c2e; }
[data-bs-theme="dark"] .discovery-item:hover, [data-bs-theme="dark"] .discovery-all:hover { color: #b94730; }
[data-bs-theme="dark"] .community-banner { color: #142c2e; }
[data-bs-theme="dark"] .community-banner h2 { color: #142c2e; }
[data-bs-theme="dark"] .community-banner .btn { color: #fff; background: #142c2e; border-color: #142c2e; }
[data-bs-theme="dark"] .community-banner .btn:hover { background: #25484a; border-color: #25484a; }
[data-bs-theme="dark"] .text-bg-light { color: #eef4f2 !important; background: #2c3b3d !important; }
[data-bs-theme="dark"] .bg-secondary-subtle, [data-bs-theme="dark"] .text-bg-secondary-subtle { color: #e3ecea !important; background-color: #344547 !important; }
[data-bs-theme="dark"] code { color: #ffb29f; }
[data-bs-theme="dark"] .alert-secondary { color: #e4eceb; background: #29383a; border-color: #4c5f61; }
[data-bs-theme="dark"] .table { --bs-table-color: #e8efed; --bs-table-bg: transparent; --bs-table-border-color: #405154; }
[data-bs-theme="dark"] .modal-content, [data-bs-theme="dark"] .dropdown-menu { color: #eef4f2; background: #1d2a2c; border-color: #405154; }
[data-bs-theme="dark"] .recent-business { color: #eef4f2; background: #182426; border-color: #405154; }
[data-bs-theme="dark"] .recent-business:hover { color: #fff; background: #223234; border-color: #718481; }
[data-bs-theme="dark"] .recent-business-copy > small { color: #ffad96; }
[data-bs-theme="dark"] .recent-business > time { color: #b3c0be; }
[data-bs-theme="dark"] .community-feed { background: #182426; border-color: #405154; }
[data-bs-theme="dark"] .feed-copy > a { color: #eaf1ef; }
[data-bs-theme="dark"] .feed-copy > a:hover { color: #ffad96; }

/* Mobile-first enhancement: larger layouts are layered on from the phone baseline. */
@media (min-width: 576px) {
    .hero h1 { font-size: clamp(3.4rem, 9vw, 5rem); }
    .hero-intro > p { font-size: 1.04rem; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    a.category-card { min-height: 175px; }
    .community-banner { padding: 46px 42px; }
    .community-art { display: block; font-size: 10rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-intro { grid-column: 1 / -1; }
    .footer-bottom { align-items: center; flex-direction: row; gap: 24px; }
    .paid-spotlight-track { grid-auto-columns: minmax(68%, 1fr); }
}
@media (min-width: 768px) {
    .search-heading-row { align-items: center; justify-content: space-between; flex-direction: row; }
    .discovery-search { grid-template-columns: 1.25fr 1fr auto; gap: 8px; padding: 8px; }
    .search-field { padding: 4px 12px; border-right: 1px solid #e4e7e5; border-bottom: 0; }
    .search-submit { min-height: 0; }
    .section-heading { align-items: end; flex-direction: row; gap: 40px; }
    .section-heading h2 br { display: initial; }
    .section-intro { max-width: 360px; }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .recent-business-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .how-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .how-grid article { min-height: 280px; }
    .step-icon { margin-bottom: 55px; }
    .community-art { font-size: 13rem; }
    .footer-grid { grid-template-columns: 1.5fr repeat(2, 1fr); }
    .footer-links:last-child { grid-column: 2; }
    .paid-spotlight-heading { align-items: end; justify-content: space-between; flex-direction: row; }
    .paid-spotlight-track { grid-auto-columns: minmax(46%, 1fr); }
    .paid-spotlight-track.single { grid-auto-flow: row; grid-template-columns: 1fr; overflow: visible; }
    .paid-spotlight-track.single .paid-spotlight-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); }
    .paid-spotlight-track.single .paid-spotlight-media { height: 100%; min-height: 330px; }
    .paid-spotlight-track.single .paid-spotlight-body { display: flex; flex-direction: column; justify-content: center; padding: 34px; }
}
@media (min-width: 992px) {
    .site-nav { min-height: 80px; }
    .navbar-collapse { padding: 0; }
    .navbar-collapse .navbar-nav { align-items: center !important; }
    .hero-layout { grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); gap: 45px; min-height: 650px; padding-top: 76px; padding-bottom: 78px; }
    .hero h1 { font-size: clamp(4.2rem, 5.5vw, 5.6rem); }
    .hero-intro > p { font-size: 1.08rem; }
    .hero-discovery { display: block; }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    a.category-card { min-height: 165px; }
    .discovery-section { padding-top: 92px; padding-bottom: 92px; }
    .featured-section { padding: 86px 0 92px; }
    .activity-section { padding-bottom: 92px; }
    .activity-layout { grid-template-columns: minmax(0, 1.55fr) minmax(285px, .75fr); gap: 28px; }
    .how-section { padding: 100px 0; }
    .how-layout { grid-template-columns: .85fr 1.6fr; gap: 50px; }
    .how-grid article:nth-child(2) { transform: translateY(24px); }
    .community-section { padding-top: 82px; padding-bottom: 82px; }
    .community-banner { padding: 54px 58px; border-radius: 28px; }
    .community-art { font-size: 15rem; }
    .filter-card { position: sticky; top: 104px; }
    .filter-card .card-body { padding-right: 20px; }
    .footer-grid { grid-template-columns: 2fr repeat(3, 1fr); gap: 50px; }
    .footer-intro, .footer-links:last-child { grid-column: auto; }
    .admin-shell { flex-direction: row; }
    .admin-sidebar { width: 220px; }
    .admin-sidebar .nav { flex-direction: column !important; flex-wrap: nowrap; overflow: visible; }
    .admin-content { padding: 1.5rem !important; }
}
@media (min-width: 1200px) {
    .hero-layout { gap: clamp(55px, 7vw, 100px); }
    .how-layout { gap: clamp(60px, 8vw, 110px); }
    .category-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    a.category-card { min-height: 158px; padding: 18px; }
    .category-card .icon-circle { width: 42px; height: 42px; }
    .category-arrow { top: 21px; right: 20px; }
    .paid-spotlight-track { grid-auto-columns: minmax(31%, 1fr); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
/* Discovery experience: type-ahead, richer cards, comparison and location-aware browsing. */
.predictive-search-wrap { position: relative; z-index: 20; }
.search-suggestions { position: absolute; top: calc(100% + .5rem); left: 0; right: 0; display: none; min-width: min(440px, calc(100vw - 2rem)); } /* the hero's keyword field is narrow; the list must not be */
.search-suggestions.is-open { display: block; }
.search-suggestion-panel { overflow: hidden; max-width: 720px; border: 1px solid var(--bs-border-color); border-radius: 1rem; background: var(--bs-body-bg); box-shadow: 0 20px 50px rgba(9, 30, 34, .18); }
.search-suggestion { display: flex; align-items: center; gap: .75rem; min-height: 62px; padding: .65rem .8rem; color: var(--bs-body-color); text-decoration: none; border-bottom: 1px solid var(--bs-border-color); }
.search-suggestion:hover, .search-suggestion:focus-visible { background: var(--bs-tertiary-bg); }
.search-suggestion img, .suggestion-avatar { width: 42px; height: 42px; flex: 0 0 42px; border-radius: .75rem; object-fit: cover; }
.suggestion-avatar { display: grid; place-items: center; background: var(--brand-soft, #ffe5dd); color: var(--brand-dark, #0d2022); font-weight: 800; }
.suggestion-copy { display: grid; min-width: 0; flex: 1; }
.suggestion-copy strong, .suggestion-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggestion-copy small { color: var(--bs-secondary-color); }
.search-suggestion-all, .search-suggestion-empty { display: block; padding: .8rem; font-size: .875rem; }
.search-suggestion-all { color: var(--bs-primary); font-weight: 700; text-decoration: none; }
.search-suggestion-all i { margin-right: .5rem; }
.search-suggestion-empty { color: var(--bs-secondary-color); }
.search-save-card { max-width: 680px; border-radius: 1rem; background: var(--bs-tertiary-bg); }
.directory-results + nav .pagination { flex-wrap: wrap; gap: .25rem; }
.directory-results + nav .page-link { border-radius: .55rem !important; }

.service-preview { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .55rem .65rem; margin: .2rem 0 .65rem; border-radius: .65rem; background: var(--bs-tertiary-bg); font-size: .78rem; }
.service-preview span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.service-preview i { color: var(--bs-primary); margin-right: .35rem; }
.service-preview strong { flex: none; color: var(--bs-body-color); }
.trust-meta { display: flex; flex-wrap: wrap; gap: .4rem .75rem; margin-bottom: .65rem; color: var(--bs-secondary-color); font-size: .72rem; }
.trust-meta i { color: var(--bs-success); margin-right: .25rem; }
.card-discovery-actions { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.card-icon-action { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--bs-border-color); border-radius: 50%; background: transparent; color: var(--bs-body-color); }
.card-icon-action:hover, .card-icon-action.is-active { border-color: var(--bs-primary); background: color-mix(in srgb, var(--bs-primary) 12%, transparent); color: var(--bs-primary); }

.recently-viewed { padding: .85rem; border: 1px solid var(--bs-border-color); border-radius: 1rem; background: var(--bs-tertiary-bg); }
.recently-viewed-strip { display: flex; gap: .65rem; overflow-x: auto; scroll-snap-type: x mandatory; }
.recently-viewed .recent-business { display: flex; align-items: center; gap: .6rem; min-width: 220px; padding: .45rem; border-radius: .75rem; color: var(--bs-body-color); text-decoration: none; background: var(--bs-body-bg); scroll-snap-align: start; }
.recently-viewed .recent-business img, .recently-viewed .recent-avatar { width: 52px; height: 52px; flex: none; border-radius: .65rem; object-fit: cover; }
.recently-viewed .recent-avatar { display: grid; place-items: center; background: var(--bs-primary); color: #fff; font-weight: 800; }
.recently-viewed .recent-business > span:last-child { display: grid; min-width: 0; }
.recently-viewed .recent-business strong, .recently-viewed .recent-business small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recently-viewed .recent-business small { color: var(--bs-secondary-color); }

.compare-tray { position: fixed; z-index: 1040; left: 50%; bottom: 1.25rem; transform: translateX(-50%); display: flex; align-items: center; gap: 1rem; width: min(760px, calc(100% - 2rem)); padding: .7rem .8rem; color: #f8ffff; border: 1px solid rgba(255,255,255,.15); border-radius: 1rem; background: rgba(13, 32, 34, .96); box-shadow: 0 18px 50px rgba(0,0,0,.3); backdrop-filter: blur(16px); }
.compare-tray[hidden] { display: none; }
.compare-tray.is-full { animation: trayShake .35s ease; }
.compare-tray > div:first-child { display: grid; flex: none; }
.compare-tray small { color: #b8cdcf; }
.compare-tray-items { display: flex; gap: .4rem; min-width: 0; overflow-x: auto; flex: 1; }
.compare-chip { display: flex; align-items: center; gap: .25rem; flex: none; max-width: 150px; padding: .35rem .55rem; overflow: hidden; color: #fff; text-overflow: ellipsis; white-space: nowrap; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(255,255,255,.08); font-size: .75rem; }
.compare-tray .btn-close { filter: invert(1); flex: none; }
@keyframes trayShake { 25% { transform: translateX(calc(-50% - 5px)); } 75% { transform: translateX(calc(-50% + 5px)); } }
.comparison-table th:first-child { width: 130px; color: var(--bs-secondary-color); font-weight: 600; }
.comparison-table th:not(:first-child), .comparison-table td:not(:first-child) { min-width: 170px; }
.preview-modal { overflow: hidden; border: 0; border-radius: 1.25rem; }
.preview-close { position: absolute; z-index: 2; right: .75rem; top: .75rem; padding: .65rem; border-radius: 50%; background-color: rgba(255,255,255,.9); }
.preview-media { display: grid; place-items: center; height: 190px; color: #fff; background: linear-gradient(135deg, #164d50, #0d2022); background-size: cover; background-position: center; font-size: 3rem; }
.preview-media.has-image > i { display: none; }
.preview-category { color: var(--bs-primary); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.preview-rating { flex: none; color: #a85d00; font-weight: 800; }

.review-summary { display: grid; grid-template-columns: 130px 1fr; gap: 1.25rem; border-radius: 1rem; }
.review-summary-score { display: grid; align-content: center; text-align: center; }
.review-summary-score > strong { font-size: 2.5rem; line-height: 1; }
.review-summary-score .rating-stars { color: #ef9b12; }
.review-summary-score small { color: var(--bs-secondary-color); }
.review-distribution { display: grid; gap: .3rem; }
.review-distribution > div { display: grid; grid-template-columns: 35px 1fr 28px; align-items: center; gap: .5rem; font-size: .75rem; }
.review-distribution .progress { height: 6px; }
.review-distribution .progress-bar { background: #ef9b12; }
.review-proof-points { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .65rem; padding-top: .75rem; border-top: 1px solid var(--bs-border-color); }
.review-proof-points span { display: flex; align-items: center; gap: .3rem; padding: .4rem .55rem; border-radius: .6rem; background: var(--bs-tertiary-bg); font-size: .78rem; }
.review-proof-points i { color: var(--bs-success); }

.nearby-split { display: grid; grid-template-columns: minmax(360px, 42%) 1fr; gap: 1.25rem; align-items: start; }
.nearby-list { max-height: calc(100vh - 150px); overflow-y: auto; padding-right: .35rem; }
.nearby-map-panel { position: sticky; top: 88px; overflow: hidden; border: 1px solid var(--bs-border-color); border-radius: 1rem; background: var(--bs-tertiary-bg); }
#nearbyMap { height: min(680px, calc(100vh - 145px)); min-height: 480px; }
.map-legend { display: flex; align-items: center; gap: .35rem; padding: .6rem .8rem; font-size: .75rem; }
.map-legend i:first-child { color: #1570ef; font-size: .55rem; }.map-legend i:last-of-type { color: #e5684c; }.map-legend span { width: 1px; height: 16px; margin: 0 .4rem; background: var(--bs-border-color); }
.distance-pill { display: inline-flex; margin: .4rem 0 0 .5rem; padding: .25rem .5rem; border-radius: 999px; color: var(--bs-primary); background: color-mix(in srgb, var(--bs-primary) 10%, var(--bs-body-bg)); font-size: .75rem; font-weight: 700; }
[data-map-card] { padding: .25rem; border-radius: 1rem; transition: background .2s ease; }
[data-map-card].is-map-active { background: color-mix(in srgb, var(--bs-primary) 13%, transparent); }
.location-permission-card { max-width: 620px; margin-inline: auto; border-radius: 1.25rem; }
.location-orb { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; color: var(--bs-primary); background: color-mix(in srgb, var(--bs-primary) 12%, var(--bs-body-bg)); font-size: 1.8rem; }

.empty-state-compact { display: flex; align-items: center; gap: .75rem; padding: 1rem; color: var(--bs-secondary-color); border: 1px dashed var(--bs-border-color); border-radius: .8rem; }
.empty-state-compact > i { font-size: 1.4rem; color: var(--bs-primary); }
.profile-mobile-actions { position: fixed; z-index: 1035; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: .5rem; padding: .65rem .75rem; border-top: 1px solid var(--bs-border-color); background: color-mix(in srgb, var(--bs-body-bg) 94%, transparent); backdrop-filter: blur(16px); }
.profile-mobile-actions .btn { display: grid; gap: .1rem; padding: .45rem; font-size: .72rem; }
.profile-mobile-actions i { font-size: 1rem; }
.gallery-thumb { width: 100%; padding: 0; overflow: hidden; border: 0; border-radius: .6rem; background: transparent; }

/* business photo gallery: one photo large, or a carousel with a counter and a thumbnail strip */
.business-gallery { border-radius: .9rem; overflow: hidden; background: var(--bs-tertiary-bg); position: relative; }
.business-gallery .carousel-item { background: var(--bs-tertiary-bg); }
/* Every photo sits in the same fixed frame, so the page never moves as the slides change. A photo that fits the frame fills it
   (.is-fit-cover); one that would lose a fifth or more to cropping (a logo, a wide banner, a tall flyer) is shown whole over a blurred
   copy of itself (.is-fit-contain). app.js sets the classes and --fit-bg; without it a photo is simply shown whole. */
.business-gallery-section { --gallery-h: 360px; }
.gallery-slide { position: relative; display: block; width: 100%; height: var(--gallery-h); padding: 0; overflow: hidden; border: 0; background: transparent; cursor: zoom-in; }
.gallery-slide img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; }
.gallery-slide.is-fit-cover img { object-fit: cover; }
.gallery-slide.is-fit-contain::before { content: ''; position: absolute; inset: -18px; background: var(--fit-bg) center / cover no-repeat; filter: blur(18px) saturate(1.1); opacity: .5; pointer-events: none; }
.business-gallery-single .gallery-slide { border-radius: .9rem; background: var(--bs-tertiary-bg); }
.business-gallery-caption { position: absolute; left: .75rem; bottom: .75rem; max-width: calc(100% - 6rem); padding: .2rem .6rem; border-radius: 999px; font-size: .78rem; color: #fff; background: rgba(0, 0, 0, .55); }
.business-gallery-counter { position: absolute; right: .75rem; bottom: .75rem; padding: .2rem .6rem; border-radius: 999px; font-size: .78rem; color: #fff; background: rgba(0, 0, 0, .55); }
.business-gallery .carousel-control-prev, .business-gallery .carousel-control-next { width: 14%; }
.business-gallery .carousel-control-prev-icon, .business-gallery .carousel-control-next-icon { width: 2.4rem; height: 2.4rem; border-radius: 50%; background-color: rgba(0, 0, 0, .45); background-size: 55%; }
.business-gallery-thumbs { position: relative; display: flex; gap: .5rem; margin-top: .6rem; overflow-x: auto; padding-bottom: .25rem; }
.business-gallery-thumb { flex: 0 0 auto; padding: 0; border: 2px solid transparent; border-radius: .6rem; overflow: hidden; background: transparent; opacity: .72; }
.business-gallery-thumb img { display: block; width: 96px; height: 72px; object-fit: cover; }
.business-gallery-thumb.is-active { border-color: var(--bs-primary); opacity: 1; }
@media (max-width: 575.98px) { .business-gallery-section { --gallery-h: 240px; } .business-gallery-thumb img { width: 76px; height: 58px; } }
.gallery-thumb img { height: 130px; object-fit: cover; transition: transform .25s ease; }
.gallery-thumb:hover img, .gallery-thumb:focus-visible img { transform: scale(1.04); }
.gallery-modal-content { overflow: hidden; border: 0; border-radius: 1rem; }
.gallery-modal-content [data-gallery-full] { display: block; width: 100%; max-height: 78vh; object-fit: contain; background: #081516; }
.profile-health-ring { --health: 0; display: grid; place-items: center; width: 92px; height: 92px; flex: none; border-radius: 50%; background: conic-gradient(var(--bs-primary) calc(var(--health) * 1%), var(--bs-tertiary-bg) 0); position: relative; }
.profile-health-ring::before { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: var(--bs-body-bg); }
.profile-health-ring span { position: relative; z-index: 1; font-size: 1.15rem; font-weight: 800; }
.profile-health-card { overflow: hidden; border-radius: 1rem; }
.account-page > .nav-tabs { flex-wrap: wrap; }

@media (max-width: 991.98px) {
    .nearby-split { display: block; }
    .nearby-list { max-height: none; overflow: visible; padding: 0; }
    .nearby-map-panel { display: none; position: static; }
    .nearby-split.show-map .nearby-list { display: none; }
    .nearby-split.show-map .nearby-map-panel { display: block; }
    #nearbyMap { height: calc(100vh - 245px); min-height: 420px; }
    .compare-tray { bottom: calc(72px + env(safe-area-inset-bottom)); gap: .5rem; }
    .compare-tray > div:first-child small { display: none; }
    .compare-tray-items { display: none; }
}
@media (max-width: 575.98px) {
    .search-suggestion-panel { border-radius: .85rem; }
    .review-summary { grid-template-columns: 95px 1fr; gap: .75rem; padding: .8rem; }
    .review-summary-score > strong { font-size: 2rem; }
    .review-proof-points { gap: .4rem; }
    .compare-tray { width: calc(100% - 1rem); padding: .55rem .65rem; }
    .compare-tray .btn { margin-left: auto; }
    .business-card-actions { align-items: flex-end; gap: .5rem; }
    .card-discovery-actions { flex-wrap: wrap; justify-content: flex-end; }
    .profile-action { flex-basis: 100%; text-align: right; }
}
[data-bs-theme="dark"] .search-suggestion-panel, [data-bs-theme="dark"] .preview-modal { box-shadow: 0 24px 60px rgba(0,0,0,.55); }
[data-bs-theme="dark"] .preview-rating { color: #ffc56e; }
[data-bs-theme="dark"] .leaflet-popup-content-wrapper, [data-bs-theme="dark"] .leaflet-popup-tip { background: #173033; color: #f1fbfb; }
[data-bs-theme="dark"] .leaflet-popup-content a { color: #7fd8df; }
@media (prefers-reduced-motion: reduce) { .compare-tray.is-full { animation: none; } }

/* Refined business card controls: one coherent action system with clear hierarchy. */
.business-card {
    border: 1px solid color-mix(in srgb, var(--bd-line) 88%, transparent);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(20, 44, 46, .07) !important;
}
.business-card:hover { transform: translateY(-3px); box-shadow: 0 20px 46px rgba(20, 44, 46, .13) !important; }
.business-card:focus-within { border-color: color-mix(in srgb, var(--bd-coral) 65%, var(--bd-line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bd-coral) 18%, transparent), 0 18px 42px rgba(20, 44, 46, .12) !important; }
.biz-media::after { content: ''; position: absolute; inset: auto 0 0; height: 32%; pointer-events: none; background: linear-gradient(to top, rgba(8, 27, 29, .13), transparent); }
.biz-cover, .biz-cover-placeholder { aspect-ratio: 16 / 10; }
.biz-card-status, .biz-quick-actions { z-index: 2; }
.biz-quick-actions { top: 11px; right: 11px; gap: 3px; padding: 4px; border: 1px solid rgba(255,255,255,.22); border-radius: 16px; background: rgba(12, 34, 36, .68); box-shadow: 0 8px 24px rgba(8,24,26,.2); backdrop-filter: blur(12px) saturate(130%); }
.quick-action { min-width: 36px; height: 36px; padding: 0 8px; color: #fff; background: transparent; border: 0; border-radius: 11px; box-shadow: none; backdrop-filter: none; }
.quick-action > i { font-size: .93rem; }
.quick-action > span { color: currentColor; font-size: .65rem; }
.quick-action:hover { color: #142c2e; background: #fff; border-color: transparent; transform: none; }
.quick-action:focus-visible { color: #142c2e; background: #fff; outline: 3px solid color-mix(in srgb, var(--bd-coral) 55%, transparent); outline-offset: 2px; }
.quick-action.is-active { color: #fff; background: #c9563d; border-color: transparent; }
.quick-action[data-helpful-url].is-active { color: #fff; background: #27877d; border-color: transparent; }
.biz-logo, .biz-logo-placeholder { box-shadow: 0 8px 18px rgba(17,42,44,.13); }
.verified-mark { display: inline-grid; place-items: center; width: 25px; height: 25px; color: #19786f; background: #dcf3ef; border-radius: 50%; font-size: .88rem; }

.business-card-actions { display: grid; gap: 9px; padding-top: 14px; }
.contact-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 8px; }
.contact-action { width: 100%; height: 42px; gap: 7px; color: #314d50; background: #f7faf9; border: 1px solid #c7d3d1; border-radius: 12px; font-size: .75rem; font-weight: 800; }
.contact-action > i { display: inline-grid; place-items: center; width: 24px; height: 24px; color: #305f63; background: #e6efee; border-radius: 8px; font-size: .82rem; }
.contact-action:hover { color: #fff; background: #294e51; border-color: #294e51; transform: translateY(-1px); }
.contact-action:hover > i { color: #294e51; background: #fff; }
.contact-action.whatsapp { color: #176b40; background: #f2fbf5; border-color: #a7d4b8; }
.contact-action.whatsapp > i { color: #177344; background: #dff4e6; }
.contact-action.whatsapp:hover { color: #fff; background: #177344; border-color: #177344; }
.contact-action.whatsapp:hover > i { color: #177344; background: #fff; }

.card-discovery-actions { display: grid; grid-template-columns: minmax(76px, .75fr) minmax(82px, .8fr) minmax(118px, 1.25fr); align-items: stretch; gap: 8px; width: 100%; margin-left: 0; }
.card-icon-action { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 42px; padding: 0 9px; color: #456063; background: var(--bs-tertiary-bg); border: 1px solid transparent; border-radius: 12px; font-size: .72rem; font-weight: 750; }
.card-icon-action > i { font-size: .94rem; }
.card-icon-action:hover { color: var(--bd-coral-dark); background: color-mix(in srgb, var(--bd-coral) 13%, var(--bs-tertiary-bg)); border-color: color-mix(in srgb, var(--bd-coral) 38%, transparent); transform: translateY(-1px); }
.card-icon-action.is-active { color: #176b63; background: #ddf3ef; border-color: #9ccfc7; }
.profile-action { display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; min-height: 42px; padding: 7px 8px 7px 13px; border-radius: 12px; font-size: .74rem; white-space: nowrap; }
.profile-action > i { display: inline-grid; place-items: center; width: 27px; height: 27px; flex: none; color: #142c2e; background: rgba(255,255,255,.34); border-radius: 9px; transition: transform .18s ease, background .18s ease; }
.profile-action:hover > i { color: #a93b27; background: #fff; transform: translate(1px, -1px); }

[data-bs-theme="dark"] .business-card { border-color: #405154; box-shadow: 0 10px 28px rgba(0,0,0,.2) !important; }
[data-bs-theme="dark"] .quick-action { color: #fff; background: transparent; border-color: transparent; }
[data-bs-theme="dark"] .quick-action:hover, [data-bs-theme="dark"] .quick-action:focus-visible { color: #142c2e; background: #fff; }
[data-bs-theme="dark"] .quick-action.is-active { color: #fff; background: #d3664e; }
[data-bs-theme="dark"] .quick-action[data-helpful-url].is-active { color: #fff; background: #2d8e84; }
[data-bs-theme="dark"] .verified-mark { color: #8ee3d8; background: #274441; }
[data-bs-theme="dark"] .contact-action { color: #dce7e5; background: #253537; border-color: #536668; }
[data-bs-theme="dark"] .contact-action > i { color: #b9d7d4; background: #34484a; }
[data-bs-theme="dark"] .contact-action:hover { color: #142c2e; background: #dce7e5; border-color: #dce7e5; }
[data-bs-theme="dark"] .contact-action.whatsapp { color: #94e5b2; background: #203a2c; border-color: #497f5d; }
[data-bs-theme="dark"] .contact-action.whatsapp > i { color: #9be8b7; background: #2b513b; }
[data-bs-theme="dark"] .contact-action.whatsapp:hover { color: #102118; background: #94e5b2; border-color: #94e5b2; }
[data-bs-theme="dark"] .card-icon-action { color: #cfdbd9; background: #273638; border-color: #3c4d4f; }
[data-bs-theme="dark"] .card-icon-action:hover { color: #ffb49f; background: #342f2e; border-color: #815549; }
[data-bs-theme="dark"] .card-icon-action.is-active { color: #9be7dd; background: #21413e; border-color: #3e7770; }
[data-bs-theme="dark"] .profile-action { color: #142c2e; }

@media (max-width: 380px) {
    .business-card .card-body { padding-inline: 15px; }
    .card-discovery-actions { grid-template-columns: 42px 42px minmax(108px, 1fr); }
    .card-icon-action { padding: 0; }
    .card-icon-action > span { display: none; }
}

/* Cookie notice (partials/consent-banner.php). On phones it sits above the floating tab bar. */
.consent-banner { position: fixed; z-index: 1046; right: 12px; bottom: 12px; left: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.25rem; max-width: 980px; margin: 0 auto; padding: .85rem 1rem; color: var(--bs-body-color); background: var(--bs-body-bg); border: 1px solid color-mix(in srgb, var(--bs-body-color) 14%, transparent); border-radius: 16px; box-shadow: 0 18px 50px rgba(8, 24, 25, .22); font-size: .875rem; line-height: 1.45; }
.consent-banner__text { flex: 1 1 360px; }
.consent-banner__actions { display: flex; flex: 0 0 auto; gap: .5rem; }
.consent-banner__actions .btn { min-height: 40px; }
@media (max-width: 991.98px) { .consent-banner { bottom: calc(90px + var(--app-safe-bottom, 0px)); } .consent-banner__actions { width: 100%; } .consent-banner__actions .btn { flex: 1; } }
body:has(.consent-banner) { padding-bottom: 130px; } /* so the notice never covers the end of the page */
@media (max-width: 991.98px) { body:has(.consent-banner) { padding-bottom: 260px; } }

/* Search suggestions: grouped panel (categories, places, businesses) */
.search-suggestion-heading { padding: .55rem .9rem .25rem; color: var(--bs-secondary-color); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.search-suggestion--topic { min-height: 54px; }
.search-suggestion .bi-arrow-right-short { margin-left: auto; font-size: 1.4rem; color: var(--bs-secondary-color); }
.suggestion-avatar--topic { display: inline-grid; place-items: center; color: var(--bd-ink); background: var(--bd-mint); font-size: 1.15rem; }
.search-suggestion mark { padding: 0; color: inherit; background: color-mix(in srgb, var(--bd-coral) 28%, transparent); border-radius: 3px; }
.search-suggestion.is-selected { background: var(--bs-tertiary-bg); }

/* "Be the first to review" prompts (profile header, empty Reviews section, listing cards) */
.first-review-link { display: inline-flex; align-items: center; gap: .35rem; color: var(--bs-secondary-color); text-decoration: none; }
.first-review-link:hover, .first-review-link:focus-visible { color: var(--bd-coral-dark); text-decoration: underline; }
.first-review-link .bi { color: var(--bd-coral); }
.first-review-card { padding: 1.1rem 1.15rem; background: color-mix(in srgb, var(--bd-coral) 7%, var(--bs-body-bg)); border: 1px dashed color-mix(in srgb, var(--bd-coral) 45%, transparent); border-radius: 1rem; }
.first-review-card__stars { color: var(--bd-coral); letter-spacing: .15rem; font-size: .9rem; margin-bottom: .35rem; }

/* Search results map (public/assets/js/results-map.js) */
.results-view-switch .btn { display: inline-flex; align-items: center; gap: .35rem; min-height: 38px; }
.results-map { height: min(72vh, 680px); min-height: 380px; border: 1px solid var(--bs-border-color); border-radius: 1rem; overflow: hidden; z-index: 0; }
.map-pin-wrap { background: transparent; border: 0; }
.map-pin { position: relative; display: block; width: 26px; height: 26px; border-radius: 50% 50% 50% 0; background: var(--bd-coral); border: 2px solid #fff; box-shadow: 0 2px 7px rgba(0, 0, 0, .4); transform: rotate(-45deg); }
.map-pin::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #fff; }
.map-pin--verified { background: #1d6661; }
.map-pin--approx { opacity: .6; border-style: dashed; }
.map-popup { min-width: 180px; font-size: .85rem; line-height: 1.4; }
.map-popup__title { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .15rem; }
.map-popup__meta, .map-popup__rating, .map-popup__approx { color: #555; }
.map-popup__verified { color: #1d6661; font-weight: 600; }
.map-popup__approx { margin-top: .25rem; font-size: .75rem; font-style: italic; }
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background-color: rgba(227, 108, 79, .35); }
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div { background-color: rgba(227, 108, 79, .85); color: #fff; font-weight: 700; }
[data-bs-theme="dark"] .map-popup__meta, [data-bs-theme="dark"] .map-popup__rating, [data-bs-theme="dark"] .map-popup__approx { color: #444; } /* popups stay light, so keep their text dark */

/* Owner onboarding: the "Get started" checklist and the first-visit welcome (dashboard/partials/get-started.php, dashboard/picker.php) */
.get-started-card { border-color: color-mix(in srgb, var(--bd-coral) 40%, transparent); background: color-mix(in srgb, var(--bd-coral) 5%, var(--bs-body-bg)); }
.get-started-list { display: grid; gap: .35rem; }
.get-started-item { display: flex; align-items: center; gap: .75rem; padding: .55rem .65rem; border-radius: .75rem; }
.get-started-item.is-next { background: var(--bs-body-bg); box-shadow: 0 0 0 1px color-mix(in srgb, var(--bd-coral) 55%, transparent); }
.get-started-mark { flex: 0 0 1.6rem; width: 1.6rem; height: 1.6rem; display: inline-grid; place-items: center; border-radius: 50%; color: var(--bs-secondary-color); border: 1px solid var(--bs-border-color); font-size: .9rem; }
.get-started-item--done .get-started-mark { color: #fff; background: #1d6661; border-color: #1d6661; }
.get-started-item--waiting .get-started-mark { color: #8a5a00; background: #ffe9b3; border-color: #ffe9b3; }
.get-started-item--done .fw-semibold { color: var(--bs-secondary-color); text-decoration: line-through; text-decoration-thickness: 1px; }
.get-started-copy { flex: 1 1 auto; min-width: 0; }
.get-started-cta { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 575.98px) { .get-started-item { flex-wrap: wrap; } .get-started-cta { margin-left: 2.35rem; } }
.owner-welcome__option { padding: 1rem; border: 1px solid var(--bs-border-color); border-radius: 1rem; background: var(--bs-body-bg); }
.owner-welcome__step { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; margin-bottom: .5rem; color: #fff; background: var(--bd-coral); border-radius: 50%; font-weight: 800; font-size: .9rem; }

/* The sort control must fit a narrow phone even when a translation of its options is long (Setswana): it may shrink, and its text is clipped with an ellipsis. */
.results-sort { max-width: 100%; min-width: 0; }
.results-sort .form-select { min-width: 0; max-width: 100%; flex: 1 1 auto; text-overflow: ellipsis; }

/* Contrast corrections (WCAG AA, 4.5:1 for small text) */
.eyebrow { color: #b8452b; }
.category-card small { color: #617170; }
.btn-outline-secondary { --bs-btn-color: #565e64; --bs-btn-border-color: #8a9299; }
.footer-bottom a { color: #bfd0ce; text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover, .footer-bottom a:focus-visible { color: #fff; }

/* Navbar fit: every label stays on one line, the three icon buttons sit together, and the spacing tightens before it can wrap. */
.site-nav .nav-link, .site-nav .nav-cta { white-space: nowrap; }
.navbar .nav-tools { display: flex; align-items: center; gap: .35rem; }
.navbar .nav-end > .nav-item + .nav-item { margin-left: .15rem; }
.lang-toggle { width: auto; min-width: 42px; padding-inline: .7rem; border-radius: 999px; gap: .3rem; display: inline-flex; align-items: center; font-size: .76rem; font-weight: 800; letter-spacing: .05em; text-decoration: none; }
.lang-toggle:hover, .lang-toggle:focus-visible { color: var(--bd-coral-dark); border-color: var(--bd-coral); }
@media (min-width: 1200px) and (max-width: 1439.98px) {
    .navbar .nav-link { padding-inline: .5rem !important; font-size: .84rem; }
    .navbar .nav-cta { padding-inline: .85rem; font-size: .82rem; }
    .navbar .nav-tools { gap: .25rem; }
    .navbar .theme-toggle { width: 38px; height: 38px; }
    .lang-toggle { min-width: 38px; padding-inline: .55rem; }
}
@media (max-width: 1199.98px) { .navbar .nav-tools { margin: .35rem 0 .5rem; } }
.navbar .nav-language { align-self: center; }
.navbar .nav-language .lang-toggle { width: auto; flex: 0 0 auto; } /* the language pill lives in the main bar: keep the code from being squeezed to the 38/42px of the other icon buttons */
@media (max-width: 1199.98px) { .site-nav .nav-language { align-self: flex-start; margin-top: 8px; } }
.navbar .nav-tools .lang-toggle { width: auto; flex: 0 0 auto; } /* beats the fixed 38/42px of .navbar .theme-toggle, so the code never gets squeezed under its neighbour */

/* Show / hide password button (public/assets/js/app.js). The field gets room for the eye; Edge's own reveal/clear icon is hidden only on
   fields that carry ours, so without JavaScript Edge still shows its own. */
.pw-field { position: relative; display: block; }
.pw-field > input { padding-right: 2.75rem; }
.pw-field > input::-ms-reveal, .pw-field > input::-ms-clear { display: none; }
.pw-toggle { position: absolute; top: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; width: 2.75rem; padding: 0; color: var(--bs-secondary-color, #6c757d); background: transparent; border: 0; border-radius: 0 var(--bs-border-radius, .375rem) var(--bs-border-radius, .375rem) 0; cursor: pointer; }
.pw-toggle:hover { color: var(--bs-body-color, #212529); }
.pw-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }
.pw-toggle .bi { font-size: 1.05rem; line-height: 1; pointer-events: none; }
