:root {
    --brand: #0d6efd;
    --brand-dark: #212529;
    --muted: #6c757d;
    --surface: #ffffff;
    --radius: 1rem;
}

body {
    background: #f6f7f9;
    -webkit-font-smoothing: antialiased;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #101828 0%, #1d2939 55%, #0d6efd 150%);
    color: #ffffff;
    border-radius: 1.25rem;
}

.hero .stat-tile {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 1rem;
    padding: 1rem;
}

.search-bar .input-group-text,
.search-bar .form-control {
    box-shadow: none;
}

/* ---------- Category chips ---------- */
.category-chips {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    padding-bottom: .35rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.category-chips::-webkit-scrollbar {
    display: none;
}

.chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--surface);
    border: 1px solid #e9ecef;
    color: #343a40;
    border-radius: 999px;
    padding: .45rem .9rem;
    font-size: .85rem;
    text-decoration: none;
    transition: all .15s ease;
}

.chip:hover,
.chip.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #ffffff;
}

/* ---------- Business cards ---------- */
.business-card {
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}

.business-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 .75rem 1.5rem rgba(0, 0, 0, .12) !important;
}

.business-card .card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #e9ecef;
}

.mini-logo {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e9ecef;
    background: #ffffff;
    flex: 0 0 auto;
}

/* ---------- Listing detail ---------- */
.listing-hero .listing-cover {
    height: 320px;
    object-fit: cover;
}

.listing-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .68) 100%);
}

.listing-hero-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.5rem;
}

.listing-logo {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    background: #ffffff;
}

.gallery-thumb {
    height: 160px;
    width: 100%;
    object-fit: cover;
    transition: opacity .15s ease;
}

.gallery-thumb:hover {
    opacity: .85;
}

/* ---------- Sticky mobile action bar ---------- */
.mobile-action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, .08);
}

.mobile-action-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: .55rem .25rem;
    text-decoration: none;
    font-size: .72rem;
    color: #495057;
}

.mobile-action-bar a .bi {
    font-size: 1.2rem;
}

.mobile-action-bar a.disabled {
    opacity: .4;
    pointer-events: none;
}

body.has-mobile-bar {
    padding-bottom: 74px;
}

/* ---------- Bottom navigation ---------- */
.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    background: #ffffff;
    border-top: 1px solid #e9ecef;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: .55rem .25rem;
    font-size: .72rem;
    text-decoration: none;
    color: #6c757d;
}

.bottom-nav a.active {
    color: var(--brand);
}

.bottom-nav a .bi {
    font-size: 1.25rem;
}

body.has-bottom-nav {
    padding-bottom: 70px;
}

@media (min-width: 992px) {
    .bottom-nav {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .listing-hero .listing-cover {
        height: 220px;
    }
}