/*
Theme Name: BaharView
Theme URI: https://www.baharview.com
Author: Mostofa Shahria
Author URI: https://www.baharview.com
Description: Professional classified ads marketplace theme for Bangladesh - App-style mobile-first design
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: baharview
Tags: classified, marketplace, bangladesh, e-commerce, woocommerce
*/

/* ============================================
   1. CSS VARIABLES
   ============================================ */
:root {
    /* Primary Green - Vibrant #2ECC71 Family */
    --bv-primary: #2ECC71;
    --bv-primary-hover: #27AE60;
    --bv-primary-dark: #219A52;
    --bv-primary-light: #E8F8F0;
    --bv-primary-50: #E8F8F0;
    --bv-primary-100: #D0F0DE;
    --bv-primary-200: #A3E4C1;
    --bv-primary-500: #2ECC71;
    --bv-primary-600: #27AE60;
    --bv-primary-700: #219A52;
    --bv-secondary: #1ABC9C;
    --bv-accent: #F39C12;

    /* Category Colors */
    --bv-cat-sale: #2ECC71;
    --bv-cat-service: #3498DB;
    --bv-cat-realestate: #F39C12;
    --bv-cat-mobile: #2ECC71;
    --bv-cat-electronics: #3498DB;
    --bv-cat-vehicles: #F39C12;
    --bv-cat-property: #9B59B6;
    --bv-cat-homeliving: #E74C3C;
    --bv-cat-fashion: #E91E8C;
    --bv-cat-books: #2ECC71;
    --bv-cat-jobs: #F1C40F;

    /* Neutrals */
    --bv-white: #FFFFFF;
    --bv-black: #1A1A2E;
    --bv-gray-50: #F8F9FA;
    --bv-gray-100: #F0F0F0;
    --bv-gray-200: #E0E0E0;
    --bv-gray-300: #CCCCCC;
    --bv-gray-400: #999999;
    --bv-gray-500: #666666;
    --bv-gray-600: #555555;
    --bv-gray-700: #444444;
    --bv-gray-800: #333333;
    --bv-gray-900: #1A1A2E;

    /* Semantic Colors */
    --bv-danger: #E74C3C;
    --bv-danger-light: #FDE8E8;
    --bv-warning: #F39C12;
    --bv-warning-light: #FEF5E7;
    --bv-info: #3498DB;
    --bv-info-light: #EBF5FB;
    --bv-success: #2ECC71;
    --bv-success-light: #E8F8F0;
    --bv-notification: #E74C3C;

    /* Shadows - App-style softer */
    --bv-shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --bv-shadow: 0 2px 6px rgba(0,0,0,0.06);
    --bv-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --bv-shadow-lg: 0 8px 24px rgba(0,0,0,0.10);
    --bv-shadow-xl: 0 16px 40px rgba(0,0,0,0.12);
    --bv-card-shadow: 0 2px 10px rgba(0,0,0,0.07);
    --bv-bottom-shadow: 0 -2px 12px rgba(0,0,0,0.06);
    --bv-fab-shadow: 0 4px 14px rgba(46,204,113,0.4);

    /* Border Radius */
    --bv-radius-sm: 6px;
    --bv-radius: 8px;
    --bv-radius-md: 12px;
    --bv-radius-lg: 16px;
    --bv-radius-xl: 24px;
    --bv-radius-full: 9999px;

    /* Transitions */
    --bv-transition: all 0.2s ease;
    --bv-transition-fast: all 0.15s ease;
    --bv-transition-slow: all 0.3s ease;

    /* Typography */
    --bv-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --bv-font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --bv-space-1: 0.25rem;
    --bv-space-2: 0.5rem;
    --bv-space-3: 0.75rem;
    --bv-space-4: 1rem;
    --bv-space-5: 1.25rem;
    --bv-space-6: 1.5rem;
    --bv-space-8: 2rem;
    --bv-space-10: 2.5rem;
    --bv-space-12: 3rem;
    --bv-space-16: 4rem;

    /* Layout */
    --bv-header-height: 56px;
    --bv-bottom-nav-height: 60px;
    --bv-container-max: 480px;
    --bv-container-desktop: 1200px;
}

@media (min-width: 768px) {
    :root {
        --bv-header-height: 64px;
        --bv-container-max: 720px;
    }
}

@media (min-width: 1024px) {
    :root {
        --bv-container-max: var(--bv-container-desktop);
    }
}

/* ============================================
   2. CSS RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--bv-font-sans);
    color: var(--bv-gray-800);
    background: var(--bv-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    padding-bottom: calc(var(--bv-bottom-nav-height) + 10px);
}

@media (min-width: 768px) {
    body {
        background: var(--bv-gray-50);
        padding-bottom: 0;
    }
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--bv-primary);
    text-decoration: none;
    transition: var(--bv-transition);
}

a:hover {
    color: var(--bv-primary-hover);
}

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

table {
    border-collapse: collapse;
    width: 100%;
}

fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

legend {
    padding: 0;
}

::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: var(--bv-gray-50);
}

::-webkit-scrollbar-thumb {
    background: var(--bv-gray-300);
    border-radius: var(--bv-radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bv-gray-400);
}

::selection {
    background: var(--bv-primary-100);
    color: var(--bv-primary-700);
}

/* ============================================
   3. TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--bv-font-heading);
    color: var(--bv-gray-900);
    line-height: 1.25;
    font-weight: 700;
}

h1 { font-size: 1.625rem; }
h2 { font-size: 1.375rem; }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }
h5 { font-size: 0.9375rem; }
h6 { font-size: 0.875rem; }

p {
    margin-bottom: 0.875rem;
    color: var(--bv-gray-500);
}

.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-primary { color: var(--bv-primary); }
.text-muted { color: var(--bv-gray-400); }
.text-danger { color: var(--bv-danger); }
.text-success { color: var(--bv-success); }
.text-white { color: var(--bv-white); }
.text-dark { color: var(--bv-gray-900); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-normal { font-weight: 400; }
.uppercase { text-transform: uppercase; }
.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 480px) {
    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.5rem; }
}

@media (min-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }
    h3 { font-size: 1.25rem; }
}

@media (min-width: 1024px) {
    h1 { font-size: 2.75rem; }
    h2 { font-size: 2.125rem; }
}

@media (min-width: 1280px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }
}

/* ============================================
   4. LAYOUT & GRID SYSTEM
   ============================================ */
.bv-container {
    width: 100%;
    max-width: var(--bv-container-max);
    margin: 0 auto;
    padding: 0 1rem;
}

.bv-section {
    padding: 1.5rem 0;
}

.bv-grid {
    display: grid;
    gap: 1rem;
}

.bv-grid-2 { grid-template-columns: 1fr; }
.bv-grid-3 { grid-template-columns: 1fr; }
.bv-grid-4 { grid-template-columns: repeat(2, 1fr); }
.bv-grid-6 { grid-template-columns: repeat(2, 1fr); }

.bv-flex { display: flex; }
.bv-flex-center { display: flex; align-items: center; justify-content: center; }
.bv-flex-between { display: flex; align-items: center; justify-content: space-between; }
.bv-flex-start { display: flex; align-items: center; justify-content: flex-start; }
.bv-flex-end { display: flex; align-items: center; justify-content: flex-end; }
.bv-flex-col { flex-direction: column; }
.bv-flex-wrap { flex-wrap: wrap; }
.bv-flex-1 { flex: 1; }
.bv-items-center { align-items: center; }
.bv-justify-center { justify-content: center; }
.bv-justify-between { justify-content: space-between; }
.bv-gap-1 { gap: 0.25rem; }
.bv-gap-2 { gap: 0.5rem; }
.bv-gap-3 { gap: 0.75rem; }
.bv-gap-4 { gap: 1rem; }
.bv-gap-5 { gap: 1.25rem; }
.bv-gap-6 { gap: 1.5rem; }
.bv-gap-8 { gap: 2rem; }

.bv-w-full { width: 100%; }
.bv-h-full { height: 100%; }
.bv-min-h-screen { min-height: 100vh; }
.bv-overflow-hidden { overflow: hidden; }
.bv-overflow-auto { overflow: auto; }
.bv-relative { position: relative; }
.bv-absolute { position: absolute; }
.bv-sticky { position: sticky; }
.bv-hidden { display: none !important; }
.bv-block { display: block; }
.bv-inline-block { display: inline-block; }
.bv-inline-flex { display: inline-flex; }
.bv-mb-0 { margin-bottom: 0; }
.bv-mb-2 { margin-bottom: 0.5rem; }
.bv-mb-4 { margin-bottom: 1rem; }
.bv-mb-6 { margin-bottom: 1.5rem; }
.bv-mb-8 { margin-bottom: 2rem; }
.bv-mt-4 { margin-top: 1rem; }
.bv-mt-8 { margin-top: 2rem; }
.bv-mx-auto { margin-left: auto; margin-right: auto; }
.bv-p-4 { padding: 1rem; }
.bv-p-6 { padding: 1.5rem; }
.bv-p-8 { padding: 2rem; }
.bv-rounded { border-radius: var(--bv-radius); }
.bv-rounded-md { border-radius: var(--bv-radius-md); }
.bv-rounded-lg { border-radius: var(--bv-radius-lg); }
.bv-rounded-full { border-radius: var(--bv-radius-full); }
.bv-bg-white { background: var(--bv-white); }
.bv-bg-gray { background: var(--bv-gray-50); }
.bv-bg-primary { background: var(--bv-primary); }
.bv-shadow { box-shadow: var(--bv-shadow); }
.bv-shadow-md { box-shadow: var(--bv-shadow-md); }
.bv-shadow-lg { box-shadow: var(--bv-shadow-lg); }

@media (min-width: 480px) {
    .bv-container { padding: 0 1.125rem; }
    .bv-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 640px) {
    .bv-container { padding: 0 1.25rem; }
    .bv-grid-2 { grid-template-columns: repeat(2, 1fr); }
    .bv-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
    .bv-container { padding: 0 1.5rem; }
    .bv-section { padding: 2.5rem 0; }
    .bv-grid-4 { grid-template-columns: repeat(3, 1fr); }
    .bv-grid-6 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
    .bv-container { padding: 0 2rem; }
    .bv-grid-4 { grid-template-columns: repeat(4, 1fr); }
    .bv-grid-6 { grid-template-columns: repeat(6, 1fr); }
}

/* ============================================
   5. HEADER
   ============================================ */
.bv-header {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bv-white);
    border-bottom: 1px solid var(--bv-gray-100);
    height: var(--bv-header-height);
    transition: var(--bv-transition);
}

.bv-header.scrolled,
.bv-header.bv-header--scrolled {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border-bottom-color: transparent;
}

.bv-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--bv-container-max);
    margin: 0 auto;
    padding: 0 1rem;
}

.bv-logo-area {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.bv-logo {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--bv-primary);
    text-decoration: none;
    line-height: 1.2;
}

.bv-logo span {
    color: var(--bv-gray-900);
}

.bv-logo img {
    height: 32px;
    width: auto;
}

.bv-logo:hover {
    color: var(--bv-primary);
}

.bv-header-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6875rem;
    color: var(--bv-gray-400);
    margin-top: -1px;
}

.bv-header-location svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.bv-nav {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

.bv-nav a {
    padding: 0.5rem 0.875rem;
    color: var(--bv-gray-600);
    font-weight: 500;
    font-size: 0.9375rem;
    border-radius: var(--bv-radius);
    transition: var(--bv-transition);
}

.bv-nav a:hover,
.bv-nav a.active {
    color: var(--bv-primary);
    background: var(--bv-primary-light);
}

.bv-nav .sub-menu {
    display: none;
}

.bv-header-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.bv-header-bell {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--bv-radius);
    color: var(--bv-gray-500);
    transition: var(--bv-transition);
    position: relative;
}

.bv-header-bell:hover {
    background: var(--bv-gray-50);
    color: var(--bv-primary);
}

.bv-header-bell svg {
    width: 22px;
    height: 22px;
}

.bv-header-bell .notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--bv-notification);
    border-radius: 50%;
    border: 2px solid var(--bv-white);
}

.bv-header-search-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--bv-radius);
    color: var(--bv-gray-500);
    transition: var(--bv-transition);
}

.bv-header-search-btn:hover {
    background: var(--bv-gray-50);
    color: var(--bv-primary);
}

.bv-header-search-btn svg {
    width: 20px;
    height: 20px;
}

/* User Dropdown Menu */
.bv-user-menu {
    position: relative;
}

.bv-user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--bv-radius);
    transition: var(--bv-transition);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--bv-gray-700);
}

.bv-user-menu-toggle:hover {
    background: var(--bv-gray-50);
}

.bv-user-avatar {
    border-radius: 50%;
    object-fit: cover;
    width: 32px;
    height: 32px;
}

.bv-user-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--bv-gray-700);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bv-user-chevron {
    color: var(--bv-gray-400);
    transition: var(--bv-transition);
}

.bv-user-menu-toggle[aria-expanded="true"] .bv-user-chevron {
    transform: rotate(180deg);
}

/* Dropdown Menu Panel */
.bv-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--bv-white);
    border: 1px solid var(--bv-gray-200);
    border-radius: var(--bv-radius-md);
    box-shadow: var(--bv-shadow-lg);
    min-width: 220px;
    z-index: 100;
    overflow: hidden;
}

.bv-dropdown-menu.show {
    display: block;
}

/* Dropdown Header */
.bv-dropdown-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid var(--bv-gray-100);
}

.bv-dropdown-avatar {
    border-radius: 50%;
    object-fit: cover;
    width: 40px;
    height: 40px;
}

.bv-dropdown-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.bv-dropdown-user-info strong {
    display: block;
    font-size: 0.9375rem;
    color: var(--bv-gray-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bv-dropdown-user-info span {
    font-size: 0.8125rem;
    color: var(--bv-gray-400);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Dropdown Body */
.bv-dropdown-body {
    padding: 0.25rem 0;
}

.bv-dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    color: var(--bv-gray-600);
    transition: var(--bv-transition);
    text-decoration: none;
}

.bv-dropdown-link:hover {
    background: var(--bv-gray-50);
    color: var(--bv-primary);
    padding-left: 1.25rem;
}

.bv-dropdown-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Dropdown Footer */
.bv-dropdown-footer {
    border-top: 1px solid var(--bv-gray-100);
    padding: 0.25rem 0;
}

.bv-dropdown-logout {
    color: var(--bv-danger);
}

.bv-dropdown-logout:hover {
    color: var(--bv-danger);
    background: var(--bv-danger-light);
}

/* Legacy dropdown-menu descendant selectors (backward compat) */
.bv-dropdown-menu .dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid var(--bv-gray-100);
}

.bv-dropdown-menu .dropdown-header strong {
    display: block;
    font-size: 0.9375rem;
    color: var(--bv-gray-900);
}

.bv-dropdown-menu .dropdown-header span {
    font-size: 0.8125rem;
    color: var(--bv-gray-400);
}

.bv-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    color: var(--bv-gray-600);
    transition: var(--bv-transition);
}

.bv-dropdown-menu a:hover {
    background: var(--bv-gray-50);
    color: var(--bv-primary);
    padding-left: 1.25rem;
}

.bv-dropdown-menu a svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.bv-dropdown-menu .dropdown-divider {
    border-top: 1px solid var(--bv-gray-100);
}

.bv-dropdown-menu .logout-link {
    color: var(--bv-danger);
}

.bv-dropdown-menu .logout-link:hover {
    color: var(--bv-danger);
    background: var(--bv-danger-light);
}

/* Mobile User Info (Slide-in Menu) */
.bv-mobile-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--bv-gray-100);
}

.bv-mobile-avatar {
    border-radius: 50%;
    object-fit: cover;
    width: 48px;
    height: 48px;
}

.bv-mobile-user-info div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.bv-mobile-user-info strong {
    font-size: 0.9375rem;
    color: var(--bv-gray-900);
}

.bv-mobile-user-info span {
    font-size: 0.8125rem;
    color: var(--bv-gray-400);
}

/* Mobile Action Links */
.bv-mobile-action-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--bv-gray-600);
    text-decoration: none;
    transition: var(--bv-transition);
}

.bv-mobile-action-link:hover {
    color: var(--bv-primary);
    background: var(--bv-primary-light);
}

.bv-mobile-logout {
    color: var(--bv-danger);
}

.bv-mobile-logout:hover {
    color: var(--bv-danger);
    background: var(--bv-danger-light);
}

.bv-mobile-post-ad-btn {
    margin-top: 0.75rem;
}

/* Hamburger */
.bv-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    gap: 5px;
}

.bv-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--bv-gray-700);
    transition: var(--bv-transition);
    border-radius: 2px;
}

.bv-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.bv-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.bv-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Desktop-only / Mobile-only utility classes */
.bv-desktop-only { display: none !important; }
.bv-mobile-only  { display: flex !important; }

@media (min-width: 768px) {
    .bv-desktop-only { display: flex !important; }
    .bv-mobile-only  { display: none !important; }

    .bv-header {
        position: sticky;
        top: 0;
    }

    .bv-nav {
        display: flex;
    }

    .bv-hamburger {
        display: none;
    }

    .bv-header-bell {
        display: none !important;
    }

    .bv-header-actions {
        gap: 0.5rem;
    }

    .bv-logo img {
        height: 36px;
    }

    .bv-logo {
        font-size: 1.5rem;
    }

    .bv-post-ad-btn.bv-desktop-only {
        display: inline-flex !important;
    }
}

/* ============================================
   6. BOTTOM NAVIGATION BAR (FAB-style Post Ad)
   ============================================ */
.bv-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--bv-white);
    box-shadow: var(--bv-bottom-shadow);
    height: var(--bv-bottom-nav-height);
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.bv-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 0.25rem 0.5rem 0.375rem;
    color: var(--bv-gray-400);
    font-size: 0.625rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--bv-transition-fast);
    flex: 1;
    position: relative;
    min-width: 0;
}

.bv-bottom-nav-item:hover {
    color: var(--bv-gray-600);
}

.bv-bottom-nav-item.active {
    color: var(--bv-primary);
    font-weight: 600;
}

.bv-bottom-nav-item svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    transition: var(--bv-transition-fast);
}

.bv-bottom-nav-item.active svg {
    color: var(--bv-primary);
}

.bv-bottom-nav-item span,
.bv-bottom-nav-item .nav-label {
    line-height: 1;
    font-size: 0.625rem;
}

/* Post Ad — Raised Green Circle (FAB) */
.bv-bottom-nav-post {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    padding: 0 0.5rem 0.375rem;
    color: var(--bv-primary);
    font-size: 0.625rem;
    font-weight: 600;
    text-decoration: none;
    flex: 1;
    position: relative;
    min-width: 0;
}

.bv-bottom-nav-post-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bv-primary);
    color: var(--bv-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--bv-fab-shadow);
    margin-top: -22px;
    transition: var(--bv-transition);
}

.bv-bottom-nav-post:hover .bv-bottom-nav-post-circle,
.bv-bottom-nav-post.active .bv-bottom-nav-post-circle {
    background: var(--bv-primary-hover);
    box-shadow: 0 6px 18px rgba(46,204,113,0.45);
    transform: scale(1.05);
}

.bv-bottom-nav-post-circle svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--bv-white);
    stroke: var(--bv-white);
}

.bv-bottom-nav-post span:not(.bv-bottom-nav-post-circle) {
    color: var(--bv-primary);
    font-weight: 600;
    line-height: 1;
    font-size: 0.625rem;
}

/* Legacy Post Ad nav without circle (backward compat) */
.bv-bottom-nav-post svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: var(--bv-primary);
}

.bv-bottom-nav-post .nav-label {
    line-height: 1;
    font-size: 0.625rem;
}

.bv-bottom-nav-post:hover {
    color: var(--bv-primary-hover);
}

/* Hide bottom nav on desktop */
@media (min-width: 768px) {
    .bv-bottom-nav {
        display: none;
    }
}

/* ============================================
   7. MOBILE MENU (Slide-in from Right)
   ============================================ */
.bv-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.bv-mobile-menu.active {
    visibility: visible;
    opacity: 1;
}

.bv-mobile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.bv-mobile-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 360px;
    height: 100%;
    background: var(--bv-white);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.bv-mobile-menu.active .bv-mobile-panel {
    transform: translateX(0);
}

.bv-mobile-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    border-bottom: 1px solid var(--bv-gray-100);
}

.bv-mobile-panel-header .bv-logo {
    font-size: 1.25rem;
}

.bv-mobile-panel-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--bv-radius);
    color: var(--bv-gray-500);
    font-size: 1.5rem;
}

.bv-mobile-panel-close:hover {
    background: var(--bv-gray-50);
}

.bv-mobile-nav {
    padding: 0.75rem 0;
}

.bv-mobile-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: var(--bv-gray-600);
    font-weight: 500;
    font-size: 0.9375rem;
    border-bottom: 1px solid var(--bv-gray-50);
}

.bv-mobile-nav a:hover,
.bv-mobile-nav a.active {
    color: var(--bv-primary);
    background: var(--bv-primary-light);
}

.bv-mobile-nav .sub-menu {
    padding-left: 1.5rem;
}

.bv-mobile-nav .sub-menu a {
    font-size: 0.875rem;
    padding: 0.625rem 1.5rem;
}

.bv-mobile-panel-footer {
    padding: 1.25rem;
    border-top: 1px solid var(--bv-gray-200);
    margin-top: auto;
}

.bv-mobile-panel-footer .bv-btn {
    width: 100%;
    margin-bottom: 0.75rem;
}

.bv-mobile-panel-footer .bv-btn:last-child {
    margin-bottom: 0;
}

/* ============================================
   8. HERO SECTION
   ============================================ */
.bv-hero {
    position: relative;
    background: var(--bv-white);
    padding: 2rem 0 1.5rem;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 0;
}

.bv-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.bv-hero h1,
.bv-hero .bv-hero-title {
    color: var(--bv-gray-900);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.bv-hero .hero-subtitle,
.bv-hero .bv-hero-subtitle {
    color: var(--bv-gray-500);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.bv-hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.75rem;
}

.bv-hero-stat {
    text-align: center;
}

.bv-hero-stat strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bv-primary);
}

.bv-hero-stat span {
    font-size: 0.75rem;
    color: var(--bv-gray-400);
}

.bv-hero-stat-divider {
    width: 1px;
    height: 32px;
    background: var(--bv-gray-200);
}

/* Hero Category Action Buttons */
.bv-hero-category-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.bv-hero-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--bv-radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bv-white);
    text-decoration: none;
    white-space: nowrap;
    transition: var(--bv-transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bv-hero-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: var(--bv-white);
}

.bv-hero-action-btn svg {
    flex-shrink: 0;
}

.bv-hero-action-btn--sale {
    background: var(--bv-cat-sale);
}

.bv-hero-action-btn--sale:hover {
    background: var(--bv-primary-hover);
}

.bv-hero-action-btn--services {
    background: var(--bv-cat-service);
}

.bv-hero-action-btn--services:hover {
    background: #2980B9;
}

.bv-hero-action-btn--realestate {
    background: var(--bv-cat-realestate);
}

.bv-hero-action-btn--realestate:hover {
    background: #E67E22;
}

/* Hero Popular Tags */
.bv-hero-popular-tags {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    justify-content: center;
}

.bv-hero-tags-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--bv-gray-400);
    flex-shrink: 0;
}

.bv-hero-tags-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 0.125rem;
}

.bv-hero-tags-scroll::-webkit-scrollbar {
    display: none;
}

.bv-hero-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    background: var(--bv-gray-50);
    border-radius: var(--bv-radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--bv-gray-600);
    text-decoration: none;
    white-space: nowrap;
    transition: var(--bv-transition);
    flex-shrink: 0;
}

.bv-hero-tag:hover {
    background: var(--bv-primary-light);
    color: var(--bv-primary);
}

@media (min-width: 480px) {
    .bv-hero h1,
    .bv-hero .bv-hero-title {
        font-size: 2rem;
    }
}

@media (min-width: 768px) {
    .bv-hero {
        padding: 3rem 0 2.5rem;
        margin-top: 0;
    }

    .bv-hero h1,
    .bv-hero .bv-hero-title {
        font-size: 2.75rem;
    }

    .bv-hero .hero-subtitle,
    .bv-hero .bv-hero-subtitle {
        font-size: 1.0625rem;
        margin-bottom: 2rem;
    }

    .bv-hero-category-actions {
        gap: 1rem;
    }

    .bv-hero-action-btn {
        padding: 0.75rem 1.75rem;
        font-size: 0.9375rem;
    }

    .bv-hero-stats {
        gap: 2.5rem;
    }

    .bv-hero-stat strong {
        font-size: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .bv-hero {
        padding: 4rem 0 3rem;
    }

    .bv-hero h1,
    .bv-hero .bv-hero-title {
        font-size: 3.25rem;
    }

    .bv-hero-stat strong {
        font-size: 1.75rem;
    }
}

/* ============================================
   9. SEARCH BAR
   ============================================ */
.bv-search-bar {
    background: var(--bv-white);
    border-radius: var(--bv-radius-md);
    padding: 0.75rem;
    border: 1px solid var(--bv-gray-200);
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

.bv-search-bar .bv-search-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bv-search-bar .bv-search-input-wrap {
    display: flex;
    align-items: center;
    background: var(--bv-gray-50);
    border: 1.5px solid var(--bv-gray-200);
    border-radius: var(--bv-radius);
    overflow: hidden;
    transition: var(--bv-transition);
}

.bv-search-bar .bv-search-input-wrap:focus-within {
    border-color: var(--bv-primary);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.12);
}

.bv-search-bar .bv-search-input-wrap svg {
    margin-left: 0.875rem;
    color: var(--bv-primary);
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.bv-search-bar input[type="text"] {
    flex: 1;
    border: none;
    background: none;
    padding: 0.6875rem 0.75rem;
    font-size: 0.9375rem;
    color: var(--bv-gray-800);
    outline: none;
}

.bv-search-bar input[type="text"]::placeholder {
    color: var(--bv-gray-400);
}

.bv-search-bar select {
    background: var(--bv-gray-50);
    border: 1.5px solid var(--bv-gray-200);
    border-radius: var(--bv-radius);
    padding: 0.6875rem 2rem 0.6875rem 0.75rem;
    font-size: 0.9375rem;
    color: var(--bv-gray-800);
    outline: none;
    width: 100%;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    transition: var(--bv-transition);
}

.bv-search-bar select:focus {
    border-color: var(--bv-primary);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.12);
}

.bv-search-bar .bv-search-btn {
    width: 100%;
}

@media (min-width: 768px) {
    .bv-search-bar {
        padding: 1rem;
    }

    .bv-search-bar .bv-search-row {
        flex-direction: row;
        gap: 0.625rem;
    }

    .bv-search-bar .bv-search-input-wrap {
        flex: 2;
    }

    .bv-search-bar select {
        flex: 1;
    }

    .bv-search-bar .bv-search-btn {
        width: auto;
        flex-shrink: 0;
    }
}

/* ============================================
   10. CATEGORY ACTION BUTTONS
   ============================================ */
.bv-category-actions {
    display: flex;
    gap: 0.75rem;
    padding: 0 1rem;
    max-width: var(--bv-container-max);
    margin: 0 auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.bv-category-actions::-webkit-scrollbar {
    display: none;
}

.bv-category-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6875rem 1.25rem;
    border-radius: var(--bv-radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bv-white);
    text-decoration: none;
    white-space: nowrap;
    transition: var(--bv-transition);
    flex-shrink: 0;
}

.bv-category-action-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.bv-category-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--bv-shadow-md);
    color: var(--bv-white);
}

.bv-category-action-btn--sale {
    background: var(--bv-cat-sale);
}

.bv-category-action-btn--sale:hover {
    background: var(--bv-primary-hover);
}

.bv-category-action-btn--services {
    background: var(--bv-cat-service);
}

.bv-category-action-btn--services:hover {
    background: #2980B9;
}

.bv-category-action-btn--realestate {
    background: var(--bv-cat-realestate);
}

.bv-category-action-btn--realestate:hover {
    background: #E67E22;
}

@media (min-width: 768px) {
    .bv-category-actions {
        padding: 0 1.5rem;
        justify-content: center;
        overflow: visible;
    }

    .bv-category-action-btn {
        padding: 0.75rem 1.75rem;
        font-size: 0.9375rem;
    }
}

/* ============================================
   11. POPULAR SEARCH TAGS
   ============================================ */
.bv-popular-tags {
    padding: 1rem 0;
}

.bv-popular-tags-row {
    display: flex;
    gap: 0.5rem;
    padding: 0 1rem;
    max-width: var(--bv-container-max);
    margin: 0 auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 0.25rem;
}

.bv-popular-tags-row::-webkit-scrollbar {
    display: none;
}

.bv-popular-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4375rem 1rem;
    background: var(--bv-gray-50);
    border: 1px solid var(--bv-gray-200);
    border-radius: var(--bv-radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--bv-gray-600);
    text-decoration: none;
    white-space: nowrap;
    transition: var(--bv-transition);
    flex-shrink: 0;
}

.bv-popular-tag:hover {
    background: var(--bv-primary-light);
    border-color: var(--bv-primary);
    color: var(--bv-primary);
}

.bv-popular-tag svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .bv-popular-tags-row {
        padding: 0 1.5rem;
        flex-wrap: wrap;
        overflow: visible;
        justify-content: center;
    }

    .bv-popular-tag {
        font-size: 0.875rem;
    }
}

/* ============================================
   12. CATEGORY GRID
   ============================================ */
.bv-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.bv-section-title h2 {
    font-size: 1.125rem;
    font-weight: 700;
}

.bv-section-title .see-all {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bv-primary);
}

.bv-section-title .see-all:hover {
    color: var(--bv-primary-hover);
}

.bv-section-title--center {
    text-align: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.25rem;
}

.bv-section-title--center p {
    color: var(--bv-gray-400);
    max-width: 600px;
    margin: 0 auto;
    font-size: 0.875rem;
}

/* Section header for category grid */
.bv-section-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.bv-section-header .bv-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bv-gray-900);
    margin-bottom: 0.25rem;
}

.bv-section-header .bv-section-subtitle {
    font-size: 0.875rem;
    color: var(--bv-gray-400);
    margin-bottom: 0;
}

.bv-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.bv-category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.375rem;
    padding: 0.75rem 0.5rem;
    background: var(--bv-white);
    border: 1px solid var(--bv-gray-100);
    border-radius: var(--bv-radius-md);
    transition: var(--bv-transition);
    cursor: pointer;
    text-decoration: none;
}

.bv-category-item:hover {
    border-color: var(--bv-primary);
    box-shadow: var(--bv-card-shadow);
    transform: translateY(-2px);
}

.bv-category-icon-circle {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bv-primary-light);
    border-radius: 50%;
    color: var(--bv-primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.bv-category-icon-circle svg {
    width: 24px;
    height: 24px;
}

.bv-category-item-name {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--bv-gray-600);
    line-height: 1.2;
}

.bv-category-item-count {
    font-size: 0.625rem;
    color: var(--bv-gray-400);
}

/* Category Circle Grid (template-parts version) */
.bv-category-circle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem 0.5rem;
}

.bv-category-circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: var(--bv-transition);
}

.bv-category-circle-item:hover {
    transform: translateY(-2px);
}

.bv-category-circle-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--cat-color, var(--bv-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    transition: var(--bv-transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.bv-category-circle-item:hover .bv-category-circle-icon {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: scale(1.08);
}

.bv-category-circle-icon span {
    line-height: 1;
    filter: saturate(1);
}

.bv-category-circle-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--bv-gray-600);
    text-align: center;
    line-height: 1.3;
    transition: var(--bv-transition);
}

.bv-category-circle-item:hover .bv-category-circle-label {
    color: var(--cat-color, var(--bv-primary));
}

.bv-category-view-all {
    text-align: center;
    margin-top: 1.5rem;
}

.bv-category-view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bv-primary);
    text-decoration: none;
    transition: var(--bv-transition);
}

.bv-category-view-all-link:hover {
    color: var(--bv-primary-hover);
    gap: 0.5rem;
}

/* Legacy category card */
.bv-category-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bv-white);
    border: 1px solid var(--bv-gray-200);
    border-radius: var(--bv-radius-md);
    transition: var(--bv-transition);
    cursor: pointer;
}

.bv-category-card:hover {
    border-color: var(--bv-primary);
    box-shadow: var(--bv-card-shadow);
    transform: translateY(-2px);
}

.bv-category-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bv-primary-light);
    border-radius: 50%;
    color: var(--bv-primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.bv-category-card h3 {
    font-size: 0.875rem;
    margin-bottom: 0.125rem;
}

.bv-category-card .count {
    font-size: 0.75rem;
    color: var(--bv-gray-400);
}

/* BEM-style category card (post-ad form) */
.bv-category-card__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.bv-category-card__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 1rem;
    width: 100%;
}

.bv-category-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bv-primary-light);
    border-radius: 50%;
    color: var(--bv-primary);
}

.bv-category-card__icon svg {
    width: 24px;
    height: 24px;
}

.bv-category-card__name {
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--bv-gray-800);
}

.bv-category-card__count {
    font-size: 0.75rem;
    color: var(--bv-gray-400);
}

.bv-category-card:has(.bv-category-card__input:checked) {
    border-color: var(--bv-primary);
    background: var(--bv-primary-light);
}

.bv-category-card:has(.bv-category-card__input:checked) .bv-category-card__icon {
    background: var(--bv-primary);
    color: var(--bv-white);
}

@media (min-width: 480px) {
    .bv-categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .bv-category-circle-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 640px) {
    .bv-categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .bv-category-circle-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 1.25rem 0.75rem;
    }
}

@media (min-width: 768px) {
    .bv-categories-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    .bv-category-circle-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 1.5rem 1rem;
    }

    .bv-category-icon-circle {
        width: 56px;
        height: 56px;
    }

    .bv-category-icon-circle svg {
        width: 28px;
        height: 28px;
    }

    .bv-category-item-name {
        font-size: 0.75rem;
    }

    .bv-category-circle-icon {
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
    }

    .bv-category-circle-label {
        font-size: 0.8125rem;
    }

    .bv-category-card h3 {
        font-size: 0.9375rem;
    }
}

@media (min-width: 1024px) {
    .bv-categories-grid {
        grid-template-columns: repeat(8, 1fr);
    }
    .bv-category-circle-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 1.5rem 1.25rem;
    }

    .bv-category-circle-icon {
        width: 56px;
        height: 56px;
        font-size: 1.625rem;
    }
}

/* ============================================
   13. LISTING CARDS
   ============================================ */

/* --- Grid Layouts --- */
.bv-listings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .bv-listings-grid,
    .listings-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 1024px) {
    .bv-listings-grid,
    .listings-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1280px) {
    .bv-listings-grid,
    .listings-grid {
        gap: 1.25rem;
    }
}

/* --- BEM-style Listing Card (template-parts) --- */
.bv-listing-card {
    background: var(--bv-white);
    border-radius: var(--bv-radius-md);
    overflow: hidden;
    transition: var(--bv-transition);
    position: relative;
    box-shadow: var(--bv-card-shadow);
}

.bv-listing-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.bv-listing-card--featured {
    box-shadow: 0 2px 8px rgba(46,204,113,0.12), 0 2px 8px rgba(0,0,0,0.07);
}

.bv-listing-card--featured:hover {
    box-shadow: 0 6px 20px rgba(46,204,113,0.18), 0 6px 20px rgba(0,0,0,0.12);
}

.bv-listing-card__image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--bv-gray-50);
}

.bv-listing-card__image-link {
    display: block;
}

.bv-listing-card__image-wrapper {
    display: block;
    position: relative;
    padding-top: 100%; /* 1:1 square */
    overflow: hidden;
    background: var(--bv-gray-50);
}

.bv-listing-card__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bv-listing-card:hover .bv-listing-card__img {
    transform: scale(1.04);
}

.bv-listing-card__img--placeholder {
    opacity: 0.6;
}

/* Badges on listing cards */
.listing-badge,
.bv-listing-card__badges .bv-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.1875rem 0.5rem;
    border-radius: var(--bv-radius-sm);
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.bv-listing-card__badges {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    z-index: 2;
}

.bv-badge {
    display: inline-block;
    padding: 0.1875rem 0.5rem;
    border-radius: var(--bv-radius-sm);
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.badge-featured,
.bv-badge--featured {
    background: var(--bv-primary);
    color: var(--bv-white);
}

.badge-urgent,
.bv-badge--urgent {
    background: var(--bv-warning);
    color: var(--bv-white);
}

.badge-condition {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    top: auto;
    background: rgba(0, 0, 0, 0.55);
    color: var(--bv-white);
    padding: 0.125rem 0.5rem;
    border-radius: var(--bv-radius-sm);
    font-size: 0.625rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.badge-condition--new {
    background: var(--bv-primary);
}

.badge-condition--used {
    background: rgba(0, 0, 0, 0.55);
}

.badge-condition--refurbished {
    background: var(--bv-info);
}

/* Heart / Wishlist button on card */
.listing-card__wishlist,
.bv-wishlist-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 50%;
    box-shadow: var(--bv-shadow-sm);
    color: var(--bv-gray-500);
    transition: var(--bv-transition);
    cursor: pointer;
    z-index: 2;
    border: none;
    padding: 0;
}

.listing-card__wishlist:hover,
.bv-wishlist-btn:hover {
    color: var(--bv-danger);
    background: var(--bv-white);
    box-shadow: var(--bv-shadow-md);
    transform: scale(1.05);
}

.listing-card__wishlist--active,
.bv-wishlist-btn.active {
    color: var(--bv-danger);
}

.listing-card__wishlist--active svg,
.bv-wishlist-btn.active svg {
    fill: var(--bv-danger);
    stroke: var(--bv-danger);
}

.listing-card__wishlist svg,
.bv-wishlist-btn svg {
    width: 16px;
    height: 16px;
}

/* Content section */
.listing-card__content,
.bv-listing-card__content {
    padding: 0.75rem 0.875rem 0.875rem;
}

.listing-card__category,
.bv-listing-card__category {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 500;
    color: var(--bv-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.bv-listing-card__category a {
    color: var(--bv-primary);
}

.bv-listing-card__category a:hover {
    color: var(--bv-primary-hover);
}

.listing-card__title,
.bv-listing-card__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bv-gray-900);
    margin-bottom: 0.375rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bv-listing-card__title {
    margin: 0 0 0.375rem;
}

.listing-card__title a,
.bv-listing-card__title a {
    color: var(--bv-gray-900);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.listing-card__title a:hover,
.bv-listing-card__title a:hover {
    color: var(--bv-primary);
}

.listing-card__price,
.bv-listing-card__price {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
    margin-bottom: 0.375rem;
}

.listing-card__price-value,
.bv-listing-card__price-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--bv-primary);
}

.bv-listing-card__negotiable {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--bv-primary);
    background: var(--bv-primary-light);
    padding: 0.125rem 0.375rem;
    border-radius: var(--bv-radius-sm);
}

.listing-card__price-type {
    font-size: 0.625rem;
    font-weight: 500;
    color: var(--bv-gray-400);
    background: var(--bv-gray-50);
    padding: 0.0625rem 0.375rem;
    border-radius: var(--bv-radius-sm);
}

/* Category tag on listing card */
.bv-listing-card__category-tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--cat-color, var(--bv-primary));
    background: var(--bv-gray-50);
    padding: 0.125rem 0.5rem;
    border-radius: var(--bv-radius-full);
    text-decoration: none;
    margin-bottom: 0.375rem;
    transition: var(--bv-transition-fast);
}

.bv-listing-card__category-tag:hover {
    background: var(--cat-color, var(--bv-primary));
    color: var(--bv-white);
}

.listing-card__meta,
.bv-listing-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.6875rem;
    color: var(--bv-gray-400);
}

.listing-card__meta span,
.bv-listing-card__meta span {
    display: flex;
    align-items: center;
    gap: 0.1875rem;
}

.bv-listing-card__location,
.bv-listing-card__date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--bv-gray-400);
}

.bv-listing-card__location svg,
.bv-listing-card__date svg {
    flex-shrink: 0;
}

.listing-card__meta svg,
.bv-listing-card__meta svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.listing-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    border-top: 1px solid var(--bv-gray-100);
}

.listing-card__author {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.listing-card__author-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

.listing-card__author-name {
    font-size: 0.6875rem;
    color: var(--bv-gray-400);
}

.listing-card__type {
    font-size: 0.5625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.125rem 0.4375rem;
    border-radius: var(--bv-radius-full);
    background: var(--bv-primary-light);
    color: var(--bv-primary-hover);
}

.listing-card__type--for_sale {
    background: var(--bv-primary-light);
    color: var(--bv-primary-hover);
}

.listing-card__type--service {
    background: var(--bv-info-light);
    color: var(--bv-info);
}

.listing-card__type--wanted {
    background: var(--bv-warning-light);
    color: #92400E;
}

.listing-card__type--rent {
    background: #EDE9FE;
    color: #6D28D9;
}

/* --- Legacy bv- prefixed listing card --- */
.bv-listing-card-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--bv-gray-50);
}

.bv-listing-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.bv-listing-card:hover .bv-listing-card-image img {
    transform: scale(1.05);
}

.bv-listing-card-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.1875rem 0.5rem;
    border-radius: var(--bv-radius-full);
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bv-badge-featured { background: var(--bv-primary); color: var(--bv-white); }
.bv-badge-urgent { background: var(--bv-warning); color: var(--bv-white); }
.bv-badge-new { background: var(--bv-primary); color: var(--bv-white); }
.bv-badge-sold { background: var(--bv-gray-500); color: var(--bv-white); }

.bv-listing-card-wishlist {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    box-shadow: var(--bv-shadow-sm);
    color: var(--bv-gray-400);
    transition: var(--bv-transition);
    cursor: pointer;
}

.bv-listing-card-wishlist:hover,
.bv-listing-card-wishlist.active {
    color: var(--bv-danger);
}

.bv-listing-card-wishlist.active svg {
    fill: var(--bv-danger);
}

.bv-listing-card-body {
    padding: 0.75rem;
}

.bv-listing-card-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--bv-primary);
    margin-bottom: 0.25rem;
}

.bv-listing-card-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--bv-gray-900);
    margin-bottom: 0.375rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bv-listing-card-title a {
    color: inherit;
}

.bv-listing-card-title a:hover {
    color: var(--bv-primary);
}

.bv-listing-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.6875rem;
    color: var(--bv-gray-400);
}

.bv-listing-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.1875rem;
}

.bv-listing-card-meta svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.bv-listing-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    border-top: 1px solid var(--bv-gray-100);
}

.bv-listing-card-author {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.bv-listing-card-author img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

.bv-listing-card-author span {
    font-size: 0.6875rem;
    color: var(--bv-gray-400);
}

.bv-listing-card-time {
    font-size: 0.6875rem;
    color: var(--bv-gray-400);
}

@media (min-width: 768px) {
    .listing-card__content,
    .bv-listing-card__content,
    .bv-listing-card-body {
        padding: 0.875rem 1rem 1rem;
    }

    .listing-card__title,
    .bv-listing-card__title {
        font-size: 0.9375rem;
    }

    .listing-card__price-value,
    .bv-listing-card-price {
        font-size: 1.125rem;
    }

    .listing-card__wishlist,
    .bv-wishlist-btn {
        width: 36px;
        height: 36px;
    }

    .listing-card__wishlist svg,
    .bv-wishlist-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* ============================================
   14. FEATURED LISTINGS (Horizontal Scroll)
   ============================================ */
.bv-featured-scroll {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.25rem 0;
    scroll-snap-type: x mandatory;
}

.bv-featured-scroll::-webkit-scrollbar {
    display: none;
}

.bv-featured-scroll .listing-card,
.bv-featured-scroll .bv-listing-card {
    min-width: 240px;
    max-width: 260px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

@media (min-width: 768px) {
    .bv-featured-scroll .listing-card,
    .bv-featured-scroll .bv-listing-card {
        min-width: 280px;
        max-width: 300px;
    }
}

/* ============================================
   15. FILTER SIDEBAR
   ============================================ */
.bv-filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 998;
}

.bv-filter-overlay.active {
    display: block;
}

.bv-filter-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 85%;
    max-width: 360px;
    background: var(--bv-white);
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.bv-filter-sidebar.active {
    transform: translateX(0);
}

.bv-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--bv-gray-100);
    position: sticky;
    top: 0;
    background: var(--bv-white);
    z-index: 1;
}

.bv-filter-header h3 {
    font-size: 1.0625rem;
    font-weight: 700;
}

.bv-filter-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--bv-radius);
    color: var(--bv-gray-400);
}

.bv-filter-close:hover {
    background: var(--bv-gray-50);
}

.bv-filter-body {
    padding: 1.25rem;
}

.bv-filter-group {
    margin-bottom: 1.5rem;
}

.bv-filter-group:last-child {
    margin-bottom: 0;
}

.bv-filter-group h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--bv-gray-700);
}

.bv-filter-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--bv-gray-600);
    cursor: pointer;
}

.bv-filter-group input[type="checkbox"],
.bv-filter-group input[type="radio"] {
    accent-color: var(--bv-primary);
    width: 16px;
    height: 16px;
}

.bv-filter-footer {
    display: flex;
    gap: 0.75rem;
    padding: 1.25rem;
    border-top: 1px solid var(--bv-gray-100);
    position: sticky;
    bottom: 0;
    background: var(--bv-white);
}

.bv-filter-footer .bv-btn {
    flex: 1;
}

/* Desktop filter sidebar */
@media (min-width: 768px) {
    .bv-filter-overlay {
        display: none !important;
    }

    .bv-filter-sidebar {
        position: static;
        transform: none;
        width: 100%;
        max-width: none;
        background: var(--bv-white);
        border-radius: var(--bv-radius-md);
        box-shadow: var(--bv-card-shadow);
        overflow: visible;
        z-index: auto;
    }

    .bv-filter-header {
        position: static;
    }

    .bv-filter-footer {
        position: static;
    }
}

.bv-filter-sort-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bv-white);
    border-radius: var(--bv-radius-md);
    box-shadow: var(--bv-card-shadow);
    margin-bottom: 1rem;
}

.bv-filter-sort-bar .results-count {
    font-size: 0.875rem;
    color: var(--bv-gray-500);
}

.bv-filter-sort-bar .results-count strong {
    color: var(--bv-gray-900);
}

.bv-filter-sort-bar select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid var(--bv-gray-200);
    border-radius: var(--bv-radius);
    font-size: 0.8125rem;
    color: var(--bv-gray-600);
    background: var(--bv-white);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23999999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    outline: none;
    cursor: pointer;
}

.bv-filter-sort-bar .view-toggle {
    display: flex;
    gap: 0.25rem;
}

.bv-filter-sort-bar .view-toggle button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--bv-radius);
    color: var(--bv-gray-400);
    transition: var(--bv-transition);
}

.bv-filter-sort-bar .view-toggle button:hover,
.bv-filter-sort-bar .view-toggle button.active {
    background: var(--bv-primary-light);
    color: var(--bv-primary);
}

.bv-filter-sort-bar .view-toggle button svg {
    width: 18px;
    height: 18px;
}

.bv-filter-sort-bar .filter-btn-mobile {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    background: var(--bv-gray-50);
    border: 1px solid var(--bv-gray-200);
    border-radius: var(--bv-radius);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--bv-gray-600);
    transition: var(--bv-transition);
}

.bv-filter-sort-bar .filter-btn-mobile:hover {
    border-color: var(--bv-primary);
    color: var(--bv-primary);
}

.bv-filter-sort-bar .filter-btn-mobile svg {
    width: 16px;
    height: 16px;
}

@media (min-width: 768px) {
    .bv-filter-sort-bar .filter-btn-mobile {
        display: none;
    }
}

/* ============================================
   16. SINGLE LISTING
   ============================================ */
.bv-single-listing {
    padding-top: 0;
    padding-bottom: calc(var(--bv-bottom-nav-height) + 1rem);
}

@media (min-width: 768px) {
    .bv-single-listing {
        padding-top: 0;
        padding-bottom: 2rem;
    }
}

.bv-single-gallery {
    position: relative;
    margin-bottom: 1rem;
}

.bv-single-gallery-main {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 0;
    overflow: hidden;
    background: var(--bv-gray-50);
}

@media (min-width: 768px) {
    .bv-single-gallery-main {
        aspect-ratio: 16 / 9;
        border-radius: var(--bv-radius-md);
    }
}

.bv-single-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bv-single-gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.bv-single-gallery-thumbs::-webkit-scrollbar {
    display: none;
}

.bv-single-gallery-thumb {
    width: 64px;
    height: 64px;
    border-radius: var(--bv-radius);
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--bv-transition);
    opacity: 0.6;
}

.bv-single-gallery-thumb.active,
.bv-single-gallery-thumb:hover {
    border-color: var(--bv-primary);
    opacity: 1;
}

.bv-single-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bv-single-detail {
    padding: 1rem;
}

.bv-single-detail .listing-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bv-gray-900);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.bv-single-detail .listing-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bv-primary);
    margin-bottom: 1rem;
}

.bv-single-detail .listing-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    color: var(--bv-gray-400);
}

.bv-single-detail .listing-meta-row span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.bv-single-detail .listing-meta-row svg {
    width: 14px;
    height: 14px;
}

.bv-single-detail .listing-description {
    font-size: 0.9375rem;
    color: var(--bv-gray-600);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.bv-single-detail .listing-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.bv-single-detail .spec-item {
    padding: 0.75rem;
    background: var(--bv-gray-50);
    border-radius: var(--bv-radius);
}

.bv-single-detail .spec-item .spec-label {
    font-size: 0.6875rem;
    color: var(--bv-gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.bv-single-detail .spec-item .spec-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bv-gray-800);
}

/* Seller info */
.bv-seller-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bv-white);
    border-radius: var(--bv-radius-md);
    box-shadow: var(--bv-card-shadow);
    margin-bottom: 1rem;
}

.bv-seller-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.bv-seller-info {
    flex: 1;
}

.bv-seller-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--bv-gray-900);
}

.bv-seller-joined {
    font-size: 0.75rem;
    color: var(--bv-gray-400);
}

.bv-seller-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--bv-primary);
    margin-top: 0.125rem;
}

.bv-seller-verified svg {
    width: 14px;
    height: 14px;
}

/* Action buttons - Chat/Call/WhatsApp */
.bv-listing-actions {
    display: flex;
    gap: 0.625rem;
    margin-bottom: 1.5rem;
}

.bv-listing-actions .bv-btn {
    flex: 1;
    justify-content: center;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
}

.bv-btn-chat {
    background: var(--bv-primary);
    color: var(--bv-white);
    border-radius: var(--bv-radius);
    font-weight: 600;
}

.bv-btn-chat:hover {
    background: var(--bv-primary-hover);
    color: var(--bv-white);
}

.bv-btn-call {
    background: var(--bv-white);
    color: var(--bv-primary);
    border: 2px solid var(--bv-primary);
    border-radius: var(--bv-radius);
    font-weight: 600;
}

.bv-btn-call:hover {
    background: var(--bv-primary-light);
    color: var(--bv-primary-hover);
}

.bv-btn-whatsapp {
    background: #25D366;
    color: var(--bv-white);
    border-radius: var(--bv-radius);
    font-weight: 600;
}

.bv-btn-whatsapp:hover {
    background: #1DA851;
    color: var(--bv-white);
}

.bv-single-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
    border-top: 1px solid var(--bv-gray-100);
}

.bv-single-share span {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--bv-gray-400);
}

.bv-single-share button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--bv-gray-400);
    background: var(--bv-gray-50);
    transition: var(--bv-transition);
}

.bv-single-share button:hover {
    background: var(--bv-primary-light);
    color: var(--bv-primary);
}

.bv-single-share button svg {
    width: 16px;
    height: 16px;
}

@media (min-width: 768px) {
    .bv-single-detail .listing-title {
        font-size: 1.5rem;
    }

    .bv-single-detail .listing-price {
        font-size: 1.75rem;
    }

    .bv-single-detail .listing-specs {
        grid-template-columns: repeat(3, 1fr);
    }

    .bv-listing-actions {
        gap: 0.75rem;
    }
}

@media (min-width: 1024px) {
    .bv-single-detail .listing-specs {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================
   17. POST AD FORM (Multi-step)
   ============================================ */
.bv-post-ad {
    padding-top: 0;
    padding-bottom: calc(var(--bv-bottom-nav-height) + 2rem);
}

@media (min-width: 768px) {
    .bv-post-ad {
        padding-bottom: 2rem;
    }
}

.bv-post-ad-header {
    text-align: center;
    padding: 1.5rem 1rem;
}

.bv-post-ad-header h1 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.bv-post-ad-header p {
    font-size: 0.875rem;
    color: var(--bv-gray-400);
}

/* Progress Steps */
.bv-progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.bv-progress-step {
    display: flex;
    align-items: center;
    gap: 0;
}

.bv-progress-step-dot {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bv-gray-200);
    color: var(--bv-gray-400);
    font-size: 0.8125rem;
    font-weight: 600;
    transition: var(--bv-transition);
    flex-shrink: 0;
}

.bv-progress-step.active .bv-progress-step-dot {
    background: var(--bv-primary);
    color: var(--bv-white);
}

.bv-progress-step.completed .bv-progress-step-dot {
    background: var(--bv-primary);
    color: var(--bv-white);
}

.bv-progress-step-line {
    width: 40px;
    height: 2px;
    background: var(--bv-gray-200);
    transition: var(--bv-transition);
}

.bv-progress-step.completed + .bv-progress-step .bv-progress-step-line,
.bv-progress-step.active .bv-progress-step-line {
    background: var(--bv-primary);
}

.bv-progress-step-label {
    display: none;
}

@media (min-width: 768px) {
    .bv-progress-step-label {
        display: block;
        font-size: 0.75rem;
        font-weight: 500;
        color: var(--bv-gray-400);
        margin-top: 0.375rem;
        text-align: center;
        white-space: nowrap;
    }

    .bv-progress-step.active .bv-progress-step-label {
        color: var(--bv-primary);
    }

    .bv-progress-step.completed .bv-progress-step-label {
        color: var(--bv-primary);
    }

    .bv-progress-step {
        flex-direction: column;
        gap: 0;
    }

    .bv-progress-step-line {
        width: 80px;
        margin: 0 0.25rem;
        margin-bottom: 1.25rem;
    }
}

/* Form Steps */
.bv-form-step {
    display: none;
}

.bv-form-step.active {
    display: block;
}

.bv-form-card {
    background: var(--bv-white);
    border-radius: var(--bv-radius-md);
    box-shadow: var(--bv-card-shadow);
    padding: 1.25rem;
}

.bv-form-card h2 {
    font-size: 1.0625rem;
    margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
    .bv-form-card {
        padding: 2rem;
    }
}

/* Image upload area */
.bv-image-upload {
    border: 2px dashed var(--bv-gray-300);
    border-radius: var(--bv-radius-md);
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--bv-transition);
}

.bv-image-upload:hover {
    border-color: var(--bv-primary);
    background: var(--bv-primary-light);
}

.bv-image-upload svg {
    width: 40px;
    height: 40px;
    color: var(--bv-gray-400);
    margin: 0 auto 0.75rem;
}

.bv-image-upload p {
    font-size: 0.875rem;
    color: var(--bv-gray-500);
    margin-bottom: 0;
}

.bv-image-upload span {
    font-size: 0.75rem;
    color: var(--bv-gray-400);
}

.bv-image-previews {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.bv-image-preview {
    width: 72px;
    height: 72px;
    border-radius: var(--bv-radius);
    overflow: hidden;
    position: relative;
}

.bv-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bv-image-preview .remove-image {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background: var(--bv-danger);
    color: var(--bv-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
}

/* Form navigation */
.bv-form-nav {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* ============================================
   18. DASHBOARD
   ============================================ */
.bv-dashboard {
    padding-top: 0;
    padding-bottom: calc(var(--bv-bottom-nav-height) + 1.5rem);
}

@media (min-width: 768px) {
    .bv-dashboard {
        padding-bottom: 1.5rem;
    }
}

.bv-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    margin-bottom: 1rem;
}

.bv-dashboard-header h1 {
    font-size: 1.25rem;
}

/* Dashboard Profile Header - Green */
.bv-dashboard-profile {
    background: linear-gradient(135deg, var(--bv-primary), var(--bv-primary-hover));
    border-radius: var(--bv-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--bv-white);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bv-dashboard-profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.3);
    object-fit: cover;
}

.bv-dashboard-profile-info h3 {
    color: var(--bv-white);
    font-size: 1.125rem;
    font-weight: 700;
}

.bv-dashboard-profile-info p {
    color: rgba(255,255,255,0.8);
    font-size: 0.8125rem;
    margin-bottom: 0;
}

.bv-dashboard-profile-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.75rem;
}

.bv-dashboard-profile-stat {
    text-align: center;
}

.bv-dashboard-profile-stat strong {
    display: block;
    font-size: 1.25rem;
    color: var(--bv-white);
}

.bv-dashboard-profile-stat span {
    font-size: 0.6875rem;
    color: rgba(255,255,255,0.7);
}

.bv-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.bv-stat-card {
    background: var(--bv-white);
    border-radius: var(--bv-radius-md);
    padding: 1rem;
    box-shadow: var(--bv-card-shadow);
}

.bv-stat-card .stat-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--bv-radius);
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.bv-stat-card .stat-icon svg {
    width: 20px;
    height: 20px;
}

.bv-stat-card .stat-icon--primary {
    background: var(--bv-primary-light);
    color: var(--bv-primary);
}

.bv-stat-card .stat-icon--info {
    background: var(--bv-info-light);
    color: var(--bv-info);
}

.bv-stat-card .stat-icon--warning {
    background: var(--bv-warning-light);
    color: var(--bv-warning);
}

.bv-stat-card .stat-icon--success {
    background: var(--bv-success-light);
    color: var(--bv-success);
}

.bv-stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bv-gray-900);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.bv-stat-card .stat-label {
    font-size: 0.75rem;
    color: var(--bv-gray-400);
}

.bv-dashboard-tabs {
    display: flex;
    gap: 0.25rem;
    padding: 0.25rem;
    background: var(--bv-gray-50);
    border-radius: var(--bv-radius);
    margin-bottom: 1rem;
    overflow-x: auto;
}

.bv-dashboard-tab {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--bv-gray-400);
    border-radius: var(--bv-radius-sm);
    transition: var(--bv-transition);
    white-space: nowrap;
}

.bv-dashboard-tab:hover {
    color: var(--bv-gray-600);
}

.bv-dashboard-tab.active {
    background: var(--bv-white);
    color: var(--bv-primary);
    font-weight: 600;
    box-shadow: var(--bv-shadow-sm);
}

@media (min-width: 768px) {
    .bv-dashboard-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================
   19. FOOTER
   ============================================ */
.bv-footer {
    background: var(--bv-primary);
    color: rgba(255,255,255,0.8);
    padding: 2.5rem 0 1.5rem;
}

@media (min-width: 768px) {
    .bv-footer {
        background: var(--bv-gray-900);
    }
}

.bv-footer-top,
.bv-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.bv-footer-col h4,
.bv-footer-col-title {
    color: var(--bv-white);
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.bv-footer-col p,
.bv-footer-tagline,
.bv-footer-about-text {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

.bv-footer-col a,
.bv-footer-link-list a {
    display: block;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.7);
    padding: 0.25rem 0;
    transition: var(--bv-transition);
}

.bv-footer-col a:hover,
.bv-footer-link-list a:hover {
    color: var(--bv-white);
    padding-left: 0.25rem;
}

.bv-footer-brand .bv-logo,
.bv-footer-logo {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--bv-white);
}

.bv-footer-logo span {
    color: var(--bv-white);
}

.bv-footer-social {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.bv-footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    color: rgba(255,255,255,0.8);
    transition: var(--bv-transition);
    padding: 0;
}

.bv-footer-social a:hover {
    background: var(--bv-white);
    color: var(--bv-primary);
    padding-left: 0;
}

.bv-footer-social a svg {
    width: 16px;
    height: 16px;
}

/* Newsletter */
.bv-footer-newsletter-text {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 1rem;
}

.bv-newsletter-input-wrap {
    display: flex;
    gap: 0.5rem;
}

.bv-newsletter-input-wrap input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--bv-radius);
    background: rgba(255,255,255,0.1);
    color: var(--bv-white);
    font-size: 0.875rem;
    outline: none;
}

.bv-newsletter-input-wrap input::placeholder {
    color: rgba(255,255,255,0.5);
}

.bv-newsletter-input-wrap input:focus {
    border-color: var(--bv-white);
    background: rgba(255,255,255,0.15);
}

/* Footer Contact Info */
.bv-footer-contact-info {
    margin-top: 1rem;
}

.bv-footer-contact-title {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.bv-footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.7);
    padding: 0.25rem 0;
    text-decoration: none;
}

.bv-footer-contact-item:hover {
    color: var(--bv-white);
    padding-left: 0;
}

.bv-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.bv-footer-copyright {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0;
}

.bv-footer-copyright strong {
    color: rgba(255,255,255,0.8);
}

.bv-footer-bottom-links {
    display: flex;
    gap: 1rem;
}

.bv-footer-bottom-links a {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}

.bv-footer-bottom-links a:hover {
    color: var(--bv-white);
}

.bv-footer-divider {
    color: rgba(255,255,255,0.3);
}

/* Footer version number */
.bv-footer-version {
    font-size: 0.6875rem;
    color: rgba(255,255,255,0.3);
    margin-top: 0.5rem;
}

@media (min-width: 768px) {
    .bv-footer-top,
    .bv-footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }

    .bv-footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Mobile: hide footer sections, bottom nav replaces */
@media (max-width: 767px) {
    .bv-footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .bv-footer-col:nth-child(n+3) {
        display: none;
    }
    .bv-footer-newsletter-col {
        display: none;
    }
}

/* ============================================
   20. AUTH MODAL (Login/Register Tabs)
   ============================================ */
.bv-auth-overlay,
.bv-auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}

@media (min-width: 768px) {
    .bv-auth-overlay,
    .bv-auth-modal {
        align-items: center;
        padding: 1rem;
    }
}

.bv-auth-overlay.active,
.bv-auth-modal.active,
.bv-auth-modal[style*="display: flex"],
.bv-auth-modal[style*="display:flex"] {
    display: flex !important;
}

.bv-auth-modal-content,
.bv-auth-modal .bv-auth-modal-content {
    background: var(--bv-white);
    border-radius: var(--bv-radius-lg) var(--bv-radius-lg) 0 0;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    animation: bvSlideUp 0.3s ease;
    position: relative;
}

@media (min-width: 768px) {
    .bv-auth-modal-content,
    .bv-auth-modal .bv-auth-modal-content {
        border-radius: var(--bv-radius-lg);
    }
}

.bv-auth-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

@keyframes bvSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bv-auth-header {
    text-align: center;
    padding: 1.5rem 1.5rem 0;
}

.bv-auth-header .bv-logo {
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.bv-auth-header p {
    font-size: 0.8125rem;
    color: var(--bv-gray-400);
}

.bv-auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--bv-gray-100);
    margin: 1rem 1.5rem 0;
}

.bv-auth-tab {
    flex: 1;
    padding: 0.75rem;
    text-align: center;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--bv-gray-400);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--bv-transition);
}

.bv-auth-tab:hover {
    color: var(--bv-gray-600);
}

.bv-auth-tab.active {
    color: var(--bv-primary);
    border-bottom-color: var(--bv-primary);
    font-weight: 600;
}

.bv-auth-body {
    padding: 1.5rem;
}

.bv-auth-content {
    display: none;
}

.bv-auth-content.active {
    display: block;
}

.bv-auth-footer {
    text-align: center;
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid var(--bv-gray-100);
}

.bv-auth-footer p {
    font-size: 0.8125rem;
    color: var(--bv-gray-400);
    margin-bottom: 0;
}

.bv-auth-close,
.bv-auth-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--bv-gray-400);
    transition: var(--bv-transition);
    z-index: 1;
}

.bv-auth-close:hover,
.bv-auth-modal-close:hover {
    background: var(--bv-gray-50);
}

/* Auth form fields */
.bv-auth-field {
    margin-bottom: 1rem;
}

.bv-auth-field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--bv-gray-700);
    margin-bottom: 0.375rem;
}

.bv-auth-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.75rem;
    border: 1.5px solid var(--bv-gray-200);
    border-radius: var(--bv-radius);
    transition: var(--bv-transition);
    background: var(--bv-white);
}

.bv-auth-input-wrap:focus-within {
    border-color: var(--bv-primary);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.12);
}

.bv-auth-input-wrap svg {
    width: 16px;
    height: 16px;
    color: var(--bv-gray-400);
    flex-shrink: 0;
}

.bv-auth-input-wrap input {
    flex: 1;
    border: none;
    background: none;
    padding: 0.6875rem 0;
    font-size: 0.9375rem;
    color: var(--bv-gray-800);
    outline: none;
}

.bv-auth-input-wrap input::placeholder {
    color: var(--bv-gray-400);
}

.bv-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.bv-auth-checkbox {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--bv-gray-600);
}

.bv-auth-checkbox input {
    accent-color: var(--bv-primary);
    width: 16px;
    height: 16px;
}

.bv-auth-forgot {
    font-size: 0.8125rem;
    color: var(--bv-primary);
    text-decoration: none;
}

.bv-auth-forgot:hover {
    color: var(--bv-primary-hover);
}

.bv-auth-submit {
    margin-top: 0.5rem;
}

.bv-auth-switch {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--bv-gray-400);
    margin-top: 1rem;
    margin-bottom: 0;
}

.bv-auth-switch-btn {
    color: var(--bv-primary);
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.8125rem;
}

.bv-auth-switch-btn:hover {
    color: var(--bv-primary-hover);
}

.bv-auth-terms {
    margin-bottom: 1rem;
}

.bv-auth-terms a {
    color: var(--bv-primary);
}

.bv-auth-message {
    padding: 0.75rem 1rem;
    border-radius: var(--bv-radius);
    font-size: 0.875rem;
    margin-top: 1rem;
}

.bv-auth-message.success {
    background: var(--bv-success-light);
    color: var(--bv-primary-hover);
}

.bv-auth-message.error {
    background: var(--bv-danger-light);
    color: var(--bv-danger);
}

/* Social login buttons */
.bv-social-login {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
}

.bv-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.6875rem;
    border-radius: var(--bv-radius);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--bv-transition);
    cursor: pointer;
}

.bv-social-btn svg {
    width: 18px;
    height: 18px;
}

.bv-social-btn--google {
    background: var(--bv-white);
    border: 1px solid var(--bv-gray-300);
    color: var(--bv-gray-700);
}

.bv-social-btn--google:hover {
    background: var(--bv-gray-50);
    border-color: var(--bv-gray-400);
}

.bv-social-btn--facebook {
    background: #1877F2;
    color: var(--bv-white);
    border: 1px solid #1877F2;
}

.bv-social-btn--facebook:hover {
    background: #1565C0;
}

.bv-auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.bv-auth-divider span {
    font-size: 0.75rem;
    color: var(--bv-gray-400);
    white-space: nowrap;
}

.bv-auth-divider::before,
.bv-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--bv-gray-200);
}

/* ============================================
   21. BUTTONS
   ============================================ */
.bv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--bv-radius-full);
    border: none;
    cursor: pointer;
    transition: var(--bv-transition);
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
    min-height: 48px;
}

.bv-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.bv-btn-primary {
    background: var(--bv-primary);
    color: var(--bv-white);
}

.bv-btn-primary:hover {
    background: var(--bv-primary-hover);
    color: var(--bv-white);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.35);
}

.bv-btn-secondary {
    background: var(--bv-gray-50);
    color: var(--bv-gray-600);
}

.bv-btn-secondary:hover {
    background: var(--bv-gray-100);
    color: var(--bv-gray-800);
}

.bv-btn-outline {
    background: var(--bv-white);
    color: var(--bv-primary);
    border: 2px solid var(--bv-primary);
}

.bv-btn-outline:hover {
    background: var(--bv-primary-light);
    color: var(--bv-primary-hover);
}

.bv-btn-danger {
    background: var(--bv-danger);
    color: var(--bv-white);
}

.bv-btn-danger:hover {
    background: #C0392B;
    color: var(--bv-white);
}

.bv-btn-ghost {
    background: transparent;
    color: var(--bv-gray-500);
}

.bv-btn-ghost:hover {
    background: var(--bv-gray-50);
    color: var(--bv-gray-800);
}

.bv-btn-sm {
    padding: 0.4375rem 1rem;
    font-size: 0.8125rem;
    min-height: 36px;
}

.bv-btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    min-height: 52px;
}

.bv-btn-xl {
    padding: 1rem 2rem;
    font-size: 1.0625rem;
    min-height: 56px;
}

.bv-btn-block {
    display: flex;
    width: 100%;
}

.bv-btn-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: var(--bv-radius);
}

.bv-btn-icon.bv-btn-sm {
    width: 36px;
    height: 36px;
}

.bv-btn-icon.bv-btn-lg {
    width: 52px;
    height: 52px;
}

.bv-btn:disabled,
.bv-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================
   22. FORM ELEMENTS
   ============================================ */
.bv-form-group {
    margin-bottom: 1rem;
}

.bv-form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--bv-gray-700);
    margin-bottom: 0.375rem;
}

.bv-form-label .required {
    color: var(--bv-danger);
}

.bv-form-hint {
    font-size: 0.75rem;
    color: var(--bv-gray-400);
    margin-top: 0.25rem;
}

.bv-input {
    width: 100%;
    padding: 0.75rem 0.875rem;
    border: 1.5px solid var(--bv-gray-200);
    border-radius: var(--bv-radius);
    font-size: 0.9375rem;
    color: var(--bv-gray-800);
    background: var(--bv-white);
    transition: var(--bv-transition);
    outline: none;
    min-height: 48px;
}

.bv-input:hover {
    border-color: var(--bv-gray-300);
}

.bv-input:focus {
    border-color: var(--bv-primary);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.12);
}

.bv-input::placeholder {
    color: var(--bv-gray-400);
}

.bv-input--error {
    border-color: var(--bv-danger);
}

.bv-input--error:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.12);
}

.bv-form-error {
    font-size: 0.75rem;
    color: var(--bv-danger);
    margin-top: 0.25rem;
}

textarea.bv-input {
    min-height: 120px;
    resize: vertical;
}

select.bv-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.bv-input-group {
    display: flex;
    gap: 0;
}

.bv-input-group .bv-input {
    border-radius: var(--bv-radius) 0 0 var(--bv-radius);
}

.bv-input-group .bv-btn {
    border-radius: 0 var(--bv-radius) var(--bv-radius) 0;
    flex-shrink: 0;
}

.bv-input-group .bv-input:focus {
    z-index: 1;
}

/* Checkbox & Radio */
.bv-checkbox,
.bv-radio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--bv-gray-600);
}

.bv-checkbox input,
.bv-radio input {
    accent-color: var(--bv-primary);
    width: 18px;
    height: 18px;
}

/* Toggle switch */
.bv-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.bv-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.bv-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bv-gray-300);
    border-radius: var(--bv-radius-full);
    transition: var(--bv-transition);
}

.bv-toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: var(--bv-white);
    border-radius: 50%;
    transition: var(--bv-transition);
}

.bv-toggle input:checked + .bv-toggle-slider {
    background: var(--bv-primary);
}

.bv-toggle input:checked + .bv-toggle-slider::before {
    transform: translateX(20px);
}

/* ============================================
   23. BADGES
   ============================================ */
.bv-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.1875rem 0.5625rem;
    border-radius: var(--bv-radius-full);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.bv-badge svg {
    width: 12px;
    height: 12px;
}

.bv-badge--featured {
    background: var(--bv-primary-light);
    color: var(--bv-primary-hover);
}

.bv-badge--urgent {
    background: var(--bv-danger-light);
    color: var(--bv-danger);
}

.bv-badge--new {
    background: var(--bv-primary-light);
    color: var(--bv-primary);
}

.bv-badge--used {
    background: var(--bv-gray-50);
    color: var(--bv-gray-500);
}

.bv-badge--refurbished {
    background: var(--bv-info-light);
    color: var(--bv-info);
}

.bv-badge--sold {
    background: var(--bv-gray-50);
    color: var(--bv-gray-400);
}

.bv-badge--sale {
    background: var(--bv-primary-light);
    color: var(--bv-primary-hover);
}

.bv-badge--service {
    background: var(--bv-info-light);
    color: var(--bv-info);
}

.bv-badge--rental {
    background: #EDE9FE;
    color: #6D28D9;
}

.bv-badge--property {
    background: var(--bv-warning-light);
    color: #E67E22;
}

/* ============================================
   24. TAGS / CHIPS
   ============================================ */
.bv-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    border-radius: var(--bv-radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    background: var(--bv-gray-50);
    color: var(--bv-gray-600);
    border: 1px solid var(--bv-gray-200);
    transition: var(--bv-transition);
    cursor: pointer;
    white-space: nowrap;
}

.bv-chip:hover {
    background: var(--bv-primary-light);
    border-color: var(--bv-primary);
    color: var(--bv-primary);
}

.bv-chip--active {
    background: var(--bv-primary);
    color: var(--bv-white);
    border-color: var(--bv-primary);
}

.bv-chip--active:hover {
    background: var(--bv-primary-hover);
    color: var(--bv-white);
}

.bv-chip svg {
    width: 14px;
    height: 14px;
}

.bv-chip .bv-chip-remove {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0,0,0,0.1);
    margin-left: 0.25rem;
}

.bv-chip--active .bv-chip-remove {
    background: rgba(255,255,255,0.3);
}

/* ============================================
   25. PAGINATION
   ============================================ */
.bv-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    margin-top: 2rem;
}

.bv-pagination a,
.bv-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    border-radius: var(--bv-radius);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--bv-gray-500);
    transition: var(--bv-transition);
    text-decoration: none;
}

.bv-pagination a:hover {
    background: var(--bv-gray-50);
    color: var(--bv-gray-900);
}

.bv-pagination .current {
    background: var(--bv-primary);
    color: var(--bv-white);
    font-weight: 600;
}

.bv-pagination .dots {
    color: var(--bv-gray-400);
    min-width: auto;
    padding: 0;
}

.bv-pagination .prev,
.bv-pagination .next {
    font-weight: 600;
}

.bv-pagination .prev:hover,
.bv-pagination .next:hover {
    background: var(--bv-primary-light);
    color: var(--bv-primary);
}

.bv-pagination svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   26. MODAL
   ============================================ */
.bv-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    align-items: flex-end;
    justify-content: center;
}

@media (min-width: 768px) {
    .bv-modal-overlay {
        align-items: center;
    }
}

.bv-modal-overlay.active {
    display: flex;
}

.bv-modal {
    background: var(--bv-white);
    border-radius: var(--bv-radius-lg) var(--bv-radius-lg) 0 0;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    animation: bvSlideUp 0.3s ease;
}

@media (min-width: 768px) {
    .bv-modal {
        border-radius: var(--bv-radius-lg);
    }
}

.bv-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--bv-gray-100);
}

.bv-modal-header h3 {
    font-size: 1.0625rem;
    font-weight: 700;
}

.bv-modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--bv-gray-400);
    transition: var(--bv-transition);
}

.bv-modal-close:hover {
    background: var(--bv-gray-50);
    color: var(--bv-gray-700);
}

.bv-modal-body {
    padding: 1.5rem;
}

.bv-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--bv-gray-100);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* ============================================
   27. TOAST / NOTIFICATION
   ============================================ */
.bv-toast-container {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 400px;
    width: calc(100% - 2rem);
}

.bv-toast {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--bv-white);
    border-radius: var(--bv-radius-md);
    box-shadow: var(--bv-shadow-lg);
    animation: bvToastIn 0.3s ease;
    border-left: 4px solid var(--bv-primary);
}

.bv-toast--success {
    border-left-color: var(--bv-primary);
}

.bv-toast--error {
    border-left-color: var(--bv-danger);
}

.bv-toast--warning {
    border-left-color: var(--bv-warning);
}

.bv-toast--info {
    border-left-color: var(--bv-info);
}

.bv-toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.bv-toast--success .bv-toast-icon {
    color: var(--bv-primary);
}

.bv-toast--error .bv-toast-icon {
    color: var(--bv-danger);
}

.bv-toast--warning .bv-toast-icon {
    color: var(--bv-warning);
}

.bv-toast--info .bv-toast-icon {
    color: var(--bv-info);
}

.bv-toast-body {
    flex: 1;
}

.bv-toast-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bv-gray-900);
    margin-bottom: 0.125rem;
}

.bv-toast-message {
    font-size: 0.8125rem;
    color: var(--bv-gray-500);
    line-height: 1.4;
}

.bv-toast-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--bv-radius-sm);
    color: var(--bv-gray-400);
    cursor: pointer;
    transition: var(--bv-transition);
}

.bv-toast-close:hover {
    background: var(--bv-gray-50);
    color: var(--bv-gray-700);
}

.bv-toast-close svg {
    width: 14px;
    height: 14px;
}

@keyframes bvToastIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bvToastOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.bv-toast.removing {
    animation: bvToastOut 0.3s ease forwards;
}

/* ============================================
   28. LOADING / SKELETON
   ============================================ */
.bv-skeleton {
    background: linear-gradient(90deg, var(--bv-gray-100) 25%, var(--bv-gray-50) 50%, var(--bv-gray-100) 75%);
    background-size: 200% 100%;
    animation: bvSkeletonShimmer 1.5s infinite;
    border-radius: var(--bv-radius);
}

.bv-skeleton--circle {
    border-radius: 50%;
}

.bv-skeleton--text {
    height: 14px;
    margin-bottom: 0.5rem;
}

.bv-skeleton--title {
    height: 20px;
    width: 70%;
    margin-bottom: 0.75rem;
}

.bv-skeleton--image {
    aspect-ratio: 1 / 1;
    border-radius: var(--bv-radius-md);
}

@keyframes bvSkeletonShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Loading spinner */
.bv-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--bv-gray-200);
    border-top-color: var(--bv-primary);
    border-radius: 50%;
    animation: bvSpin 0.6s linear infinite;
}

.bv-spinner--white {
    border-color: rgba(255,255,255,0.3);
    border-top-color: var(--bv-white);
}

.bv-spinner--lg {
    width: 40px;
    height: 40px;
    border-width: 4px;
}

/* ============================================
   29. BACK TO TOP
   ============================================ */
.bv-back-to-top {
    position: fixed;
    bottom: calc(var(--bv-bottom-nav-height) + 1rem);
    right: 1rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bv-primary);
    color: var(--bv-white);
    border-radius: 50%;
    box-shadow: var(--bv-shadow-md);
    z-index: 999;
    transition: var(--bv-transition);
    border: none;
    cursor: pointer;
}

.bv-back-to-top:hover {
    background: var(--bv-primary-hover);
    box-shadow: var(--bv-shadow-lg);
    transform: translateY(-2px);
}

@media (min-width: 768px) {
    .bv-back-to-top {
        bottom: 2rem;
        right: 2rem;
    }
}

/* ============================================
   30. RESPONSIVE BREAKPOINTS
   ============================================ */

/* --- 480px Small Mobile Landscape --- */
@media (min-width: 480px) {
    .bv-listings-grid,
    .listings-grid {
        gap: 1rem;
    }

    .bv-featured-scroll .listing-card,
    .bv-featured-scroll .bv-listing-card {
        min-width: 240px;
    }
}

/* --- 768px Tablet --- */
@media (min-width: 768px) {
    body {
        background: var(--bv-gray-50);
    }

    .bv-hero {
        background: var(--bv-white);
    }

    .bv-section-title h2 {
        font-size: 1.375rem;
    }

    .bv-section {
        padding: 2.5rem 0;
    }
}

/* --- 1024px Desktop --- */
@media (min-width: 1024px) {
    .bv-section {
        padding: 3.5rem 0;
    }
}

/* --- 1280px Large Desktop --- */
@media (min-width: 1280px) {
    .bv-section {
        padding: 4rem 0;
    }

    .bv-listings-grid,
    .listings-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
    }
}

/* ============================================
   UTILITY ANIMATIONS
   ============================================ */
@keyframes bvFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bvSlideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes bvSlideInLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes bvSlideInUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes bvPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes bvSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.bv-animate-fade { animation: bvFadeIn 0.3s ease; }
.bv-animate-slide-up { animation: bvSlideInUp 0.3s ease; }
.bv-animate-pulse { animation: bvPulse 0.3s ease; }

/* ============================================
   WORDPRESS ALIGNMENT & CAPTION CLASSES
   ============================================ */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}

.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.8125rem;
    color: var(--bv-gray-400);
    text-align: center;
    padding: 0.5rem 0;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ============================================
   WOOCOMMERCE OVERRIDES (minimal)
   ============================================ */
.woocommerce .bv-container {
    max-width: var(--bv-container-desktop);
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .bv-header,
    .bv-bottom-nav,
    .bv-back-to-top,
    .bv-mobile-menu,
    .bv-filter-sidebar,
    .bv-auth-modal,
    .bv-toast-container {
        display: none !important;
    }

    body {
        background: white;
        color: black;
        padding: 0;
    }

    .bv-container {
        max-width: 100%;
    }
}
