/**
 * Global Styles - Chicago Classifieds LocalAd
 * Main stylesheet for the entire application
 */

/* ============================================
   GOOGLE FONTS IMPORT
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================
   CSS VARIABLES / ROOT STYLES
   ============================================ */
:root {
    /* Primary Colors */
    --primary: #333c51;
    --primary-hover: #252b3d;
    --accent-yellow: #D4AF37;
    
    /* Semantic Colors */
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    
    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;
}

/* ============================================
   GLOBAL RESETS & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: var(--transition-base);
}

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

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

/* ============================================
   HEADER & NAVIGATION STYLES
   ============================================ */

/* Sidebar animations */
.sidebar {
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
}

.sidebar.open {
    transform: translateX(0);
}

/* Overlay */
.overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-slow);
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Hamburger animation */
.hamburger-line {
    transition: all var(--transition-slow);
}

.hamburger.active .line1 {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .line2 {
    opacity: 0;
}

.hamburger.active .line3 {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Search input focus state */
.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(51, 60, 81, 0.1);
}

/* ============================================
   HOMEPAGE SPECIFIC STYLES
   ============================================ */

/* Gradient Background */
.gradient-bg {
    position: relative;
    background:
        linear-gradient(135deg, rgba(31,41,55,0.82) 0%, rgba(52,60,81,0.78) 100%),
        url('https://images.unsplash.com/photo-1449824913935-59a10b8d2000?w=1600&h=700&fit=crop&q=80') center center / cover no-repeat;
    background-attachment: fixed;
}

/* Update/Announcement Bar */
.update-bar {
    background: var(--accent-yellow);
    animation: slide-down 0.5s ease-out;
}

@keyframes slide-down {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slide-up {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

.update-bar.closing {
    animation: slide-up 0.3s ease-out forwards;
}

.close-update {
    transition: all var(--transition-base);
}

.close-update:hover {
    transform: scale(1.1);
}

/* Category Chips */
.category-chip {
    transition: all var(--transition-base);
}

.category-chip:hover {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(51, 60, 81, 0.2);
}

/* Category Scroll - Custom Scrollbar */
.category-scroll {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.category-scroll::-webkit-scrollbar {
    height: 6px;
}

.category-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.category-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.category-scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Hide scrollbar on mobile */
@media (max-width: 768px) {
    .category-scroll {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .category-scroll::-webkit-scrollbar {
        display: none;
    }
}

/* ============================================
   LISTING CARDS
   ============================================ */

.listing-card {
    transition: all var(--transition-slow);
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

@media (max-width: 640px) {
    .listing-card:hover {
        transform: translateY(-2px);
    }
}

/* Featured Badge */
.featured-badge {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    animation: pulse-subtle 2s infinite;
}

@keyframes pulse-subtle {
    0%, 100% { 
        opacity: 1; 
    }
    50% { 
        opacity: 0.8; 
    }
}

/* Loading State for Images */
.listing-card img {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

.listing-card img[src] {
    animation: none;
    background: none;
}

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

/* ============================================
   FORMS & INPUTS
   ============================================ */

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    transition: var(--transition-base);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(51, 60, 81, 0.1);
}

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

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

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    cursor: pointer;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-900);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

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

.btn-success:hover {
    background: #059669;
}

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

.btn-danger:hover {
    background: #dc2626;
}

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

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

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

/* Line Clamp */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.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;
}

/* Display Utilities */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }

/* Animations */
.animate-fadeIn {
    animation: fadeIn 0.3s ease-in;
}

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

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */

/* Mobile First Breakpoints */
@media (max-width: 640px) {
    .sm\:hidden { display: none; }
}

@media (min-width: 640px) {
    .sm\:block { display: block; }
}

@media (min-width: 768px) {
    .md\:block { display: block; }
}

@media (min-width: 1024px) {
    .lg\:hidden { display: none; }
    .lg\:block { display: block; }
}

/* ============================================
   DASHBOARD STYLES
   ============================================ */

.stats-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.stats-card:hover {
    box-shadow: var(--shadow-lg);
}

/* Table Styles */
.data-table {
    width: 100%;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.data-table th {
    background: var(--gray-50);
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.data-table td {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--gray-200);
}

.data-table tbody tr:hover {
    background: var(--gray-50);
}

/* ============================================
   LOGIN/REGISTER STYLES
   ============================================ */

.auth-container {
    min-height: calc(100vh - 16rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    max-width: 28rem;
    width: 100%;
}

.tab-active {
    border-bottom: 3px solid var(--primary);
    color: var(--primary);
}

.form-container {
    animation: fadeIn 0.3s ease-in;
}

/* ============================================
   MODAL STYLES
   ============================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.modal-overlay.active {
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform var(--transition-slow);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

/* ============================================
   ALERTS & NOTIFICATIONS
   ============================================ */

.alert {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--success);
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--danger);
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid var(--warning);
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid var(--info);
}

/* Flash Messages */
.flash-message {
    position: relative;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRightOld {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================
   LOADING STATES
   ============================================ */

.spinner {
    border: 3px solid var(--gray-200);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

/* ============================================
   FOOTER STYLES
   ============================================ */

.footer {
    background: #333c51;
    color: white;
    padding: 2rem 1rem;
    margin-top: 3rem;
}

.footer a:hover {
    text-decoration: underline;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}
/* ============================================
   CATEGORY DROPDOWN STYLES
   ============================================ */

/* Wrapper needs relative positioning */
.category-dropdown-wrapper {
    position: relative;
}

/* Dropdown Menu - Hidden by default */
.category-dropdown-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 0.5rem;
    width: 1000px;
    max-width: calc(100vw - 2rem);
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    z-index: 9999;
    max-height: 600px;
    overflow-y: auto;
    padding: 2rem;
}

/* Show on hover - Desktop only */
@media (min-width: 1024px) {
    .category-dropdown-wrapper:hover .category-dropdown-menu {
        display: block;
    }
    
    .category-dropdown-menu:hover {
        display: block;
    }
}

/* Show when has active class */
.category-dropdown-menu.active {
    display: block;
}

/* Never show on mobile */
@media (max-width: 1023px) {
    .category-dropdown-menu {
        display: none !important;
    }
}
/* ============================================
   WISHLIST / FAVORITES STYLES
   ============================================ */

.favorite-btn {
    position: relative;
    transition: all var(--transition-base);
}

.favorite-btn:hover {
    transform: scale(1.1);
}

.favorite-btn.active svg {
    fill: var(--danger);
    stroke: var(--danger);
}

/* Wishlist - Remove favorite button visibility */

.remove-favorite-btn {
    opacity: 0;
    transition: all var(--transition-base);
}

.listing-card:hover .remove-favorite-btn {
    opacity: 1;
}

@media (max-width: 768px) {
    .remove-favorite-btn {
        opacity: 1;
    }
}


/* ============================================
   MOBILE FILTER MODAL STYLES
   ============================================ */

/* Hide scrollbar but keep functionality */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Filter Modal */
#filterModal {
    z-index: 9999 !important;
    transition: opacity 0.2s ease-out;
}

#filterModal.hidden {
    display: none !important;
}

#filterModal:not(.hidden) {
    display: block !important;
}

#filterModal > div {
    animation: slideInRight 0.3s ease-out;
}

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

/* Dropdown arrow for selects in filter bar */
.relative select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1.25rem;
}

/* Mobile-specific adjustments */
@media (max-width: 640px) {
    /* Smaller category header on mobile */
    .category-header h1 {
        font-size: 1.25rem !important;
        line-height: 1.75rem !important;
    }
    
    .category-header p {
        font-size: 0.75rem !important;
        line-height: 1rem !important;
    }
}

@media (max-width: 1023px) {
    /* Full width modal on mobile */
    #filterModal > div {
        width: 100% !important;
    }
}


/* Updated Modal Styles - 70% width, no overflow */
#filterModal {
    z-index: 9999 !important;
}

#filterModal > div {
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
    animation: slideInFromRight 0.3s ease-out;
}

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

/* Fix overflow in modal */
#filterModal input,
#filterModal select,
#filterModal button,
#filterModal label {
    max-width: 100%;
    word-wrap: break-word;
}

#filterModal .flex {
    flex-wrap: nowrap;
}

/* Sticky bottom button styles */
.fixed.bottom-0.pointer-events-none {
    background: linear-gradient(to top, rgba(255,255,255,1) 60%, rgba(255,255,255,0) 100%);
}

/* Ensure modal doesn't overflow horizontally */
#filterModal * {
    box-sizing: border-box;
}


/* ============================================
   PREMIUM CENTERED MODAL
   ============================================ */

/* Modal backdrop animation */
#filterModal {
    animation: fadeInBackdrop 0.3s ease-out;
    backdrop-filter: blur(2px);
}

#filterModal.hidden {
    display: none !important;
}

@keyframes fadeInBackdrop {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Modal container animation */
#filterModal > div {
    animation: scaleIn 0.3s ease-out;
    transform-origin: center;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Premium styling for modal content */
#filterModal h3 {
    color: #1f2937;
    font-weight: 700;
    letter-spacing: -0.025em;
}

#filterModal label {
    transition: all 0.2s ease;
}

#filterModal label:hover {
    background-color: #f9fafb;
    padding-left: 0.5rem;
    margin-left: -0.5rem;
    border-radius: 0.5rem;
}

#filterModal input[type="radio"]:checked {
    accent-color: #333c51;
}

#filterModal input[type="number"] {
    transition: all 0.2s ease;
}

#filterModal input[type="number"]:focus {
    border-color: #333c51;
    ring-color: #333c51;
    box-shadow: 0 0 0 3px rgba(51, 60, 81, 0.1);
}

/* Scrollbar styling for modal content */
#filterModal .overflow-y-auto::-webkit-scrollbar {
    width: 8px;
}

#filterModal .overflow-y-auto::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

#filterModal .overflow-y-auto::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

#filterModal .overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Prevent modal from being too small on very small screens */
@media (max-height: 600px) {
    #filterModal > div {
        height: 95vh !important;
    }
}

/* Better spacing on mobile */
@media (max-width: 640px) {
    #filterModal > div {
        width: 95% !important;
        max-width: none !important;
    }
}
/* ====================================================================================
   VOLUSIA MARKET - MOBILE & PACKAGE FIXES
   Added: Complete fixes for mobile messages and package badges
   ==================================================================================== */

/* Mobile messaging - hide panels based on viewport */
@media (max-width: 1023px) {
    .mobile-hidden {
        display: none !important;
    }
}

.messages-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    margin-left: -0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.messages-back-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

@media (min-width: 1024px) {
    .messages-back-btn {
        display: none !important;
    }
}

/* Package card styles */
.package-card {
    transition: all 0.3s ease;
    position: relative;
}

.package-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 
                0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.package-popular {
    position: relative;
    border: 2px solid #333c51;
    margin-top: 24px !important;
}

.package-popular::before {
    content: "MOST POPULAR";
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: #333c51;
    color: white;
    padding: 6px 20px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    letter-spacing: 0.8px;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.package-active {
    border: 3px solid #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
    margin-top: 28px !important;
}

.feature-check {
    color: #10b981;
}

@keyframes pulse-green {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); 
    }
    50% { 
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); 
    }
}

.pulse-green {
    animation: pulse-green 2s infinite;
}

.packages-grid {
    padding-top: 2rem;
}

@media (max-width: 768px) {
    .package-popular::before {
        font-size: 10px;
        padding: 5px 14px;
        top: -14px;
    }
    
    .package-popular,
    .package-active {
        margin-top: 20px !important;
    }
    
    .packages-grid {
        padding-top: 1.5rem;
    }
}
/* Active Package Badge - Fixed padding and positioning */
.package-active {
    border: 3px solid #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
    margin-top: 50px !important; /* More space at top */
    position: relative;
}

.package-active::before {
    content: "ACTIVE PACKAGE";
    position: absolute;
    top: -24px; /* Higher up so it doesn't cut */
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 6px 12px; /* REDUCED left/right padding from 18px to 12px */
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
    z-index: 10;
}

/* REMOVE the cutting off "MOST POPULAR" badge */
.package-popular {
    position: relative;
    border: 2px solid #333c51;
    margin-top: 20px !important; /* Less space since no badge above */
}

/* REMOVE this entirely - it's the one cutting off */
.package-popular::before {
    display: none !important; /* Don't show at all */
}

/* Keep the blue POPULAR badge (this is in the HTML, not CSS) */
/* The blue badge you see is rendered in the HTML, we're keeping that */

.packages-grid {
    padding-top: 3rem;
}

.package-card {
    transition: all 0.3s ease;
    position: relative;
}

.package-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 
                0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.feature-check {
    color: #10b981;
}

@keyframes pulse-green {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); 
    }
    50% { 
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); 
    }
}

.pulse-green {
    animation: pulse-green 2s infinite;
}

@media (max-width: 768px) {
    .package-active::before {
        font-size: 10px;
        padding: 5px 10px;
        top: -20px;
    }
    
    .package-active {
        margin-top: 40px !important;
    }
    
    .packages-grid {
        padding-top: 2rem;
    }
}

/* Mobile messaging styles */
@media (max-width: 1023px) {
    .mobile-hidden {
        display: none !important;
    }
}

.messages-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    margin-left: -0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.messages-back-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

@media (min-width: 1024px) {
    .messages-back-btn {
        display: none !important;
    }
}
/* ================================================================
   MOBILE MESSAGES LAYOUT FIXES
   Add this to style.css
   ================================================================ */

/* Fix chat header on mobile - stack items vertically */
@media (max-width: 768px) {
    /* Chat header - make it wrap on mobile */
    #chatView .p-4.border-b .flex.items-center.justify-between {
        flex-wrap: wrap !important;
    }
    
    /* User info section - take full width on mobile */
    #chatView .p-4.border-b .flex.items-center.gap-3.flex-1 {
        width: 100% !important;
        flex: 1 1 100% !important;
        margin-bottom: 12px;
    }
    
    /* Make Offer button - full width below on mobile */
    #chatView .p-4.border-b button[onclick="openMakeOffer()"] {
        width: 100% !important;
        flex: 1 1 100% !important;
        justify-content: center;
    }
    
    /* User name and listing title - allow proper wrapping */
    #chatView .p-4.border-b .min-w-0 {
        max-width: 100%;
    }
    
    #chatView .p-4.border-b h3,
    #chatView .p-4.border-b .text-sm.text-\[0066cc\] {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }
}

/* Fix chat container height - prevent scrolling to footer */
#chatView {
    max-height: calc(100vh - 180px) !important;
    display: flex !important;
    flex-direction: column !important;
}

@media (max-width: 1023px) {
    #chatView {
        max-height: 100vh !important;
        height: 100vh !important;
    }
}

/* Messages container - proper scrolling */
#messagesContainer {
    flex: 1 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

/* Message form - stick to bottom */
#chatView form[id="messageForm"] {
    flex-shrink: 0 !important;
}
/* ============================================================
   VOLUSIA MARKET — NEW HEADER & HOMEPAGE STYLES
   Appended to style.css — all vm- prefixed, non-breaking
   ============================================================ */

/* ---- Design tokens ---- */
:root {
  --vmb: #333c51; --vmb-hov: #252d3f; --vmb-ink: #1e2435;
  --vmb-soft: #eef0f5; --vmb-softer: #f5f6fa; --vm-accent: #c9a96a;
  --vm-ink: #1a1f2e; --vm-ink2: #4a5068; --vm-ink3: #8b91a7;
  --vm-line: #e8eaf0; --vm-line2: #f0f2f7; --vm-sur: #fff; --vm-bg: #f7f8fa;
  --t-rose:#fef0ee; --t-peach:#fef3ec; --t-butter:#fefaec;
  --t-sage:#edf7f0; --t-mint:#edf7f5; --t-sky:#edf4fe;
  --t-iris:#f0effe; --t-plum:#f7eefe;
}

/* ===== TOPBAR ===== */
.vm-topbar {
  background: #fff; border-bottom: 1px solid var(--vm-line);
  position: sticky; top: 0; z-index: 500; font-family: 'Poppins', sans-serif;
}
.vm-topbar-inner {
  width: 100%; padding: 0 28px;
  display: grid; grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center; gap: 20px; height: 64px;
}
.vm-brand { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.vm-brand img { height: 54px; width: auto; object-fit: contain; display: block; }
.vm-brand-fallback {
  width: 36px; height: 36px; border-radius: 9px; background: var(--vmb);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 16px;
  flex-shrink: 0; font-family: 'Poppins', sans-serif;
}

/* ===== SEARCH ===== */
.vm-search {
  display: flex; align-items: center; background: var(--vm-bg);
  border: 1.5px solid var(--vm-line); border-radius: 12px;
  padding: 7px 7px 7px 14px; gap: 8px; width: 100%; max-width: 640px; margin: 0 auto;
  transition: border-color .15s, background .15s; position: relative;
}
.vm-search:focus-within { border-color: var(--vmb); background: #fff; box-shadow: 0 0 0 3px rgba(51,60,81,.08); }
.vm-search-icon { color: var(--vm-ink3); flex-shrink: 0; }
.vm-search input {
  border: none; background: transparent; font-family: 'Poppins', sans-serif;
  font-size: 13.5px; color: var(--vm-ink); width: 100%; min-width: 0; outline: none;
}
.vm-search input::placeholder { color: var(--vm-ink3); }
.vm-voice-btn {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  color: var(--vm-ink3); background: none; border: none; cursor: pointer;
  transition: color .15s, background .15s;
}
.vm-voice-btn:hover { color: var(--vmb); background: var(--vm-bg); }
.vm-voice-btn.listening { color: #ef4444; animation: vmVoicePulse 1s ease infinite; }
.vm-search-btn {
  background: var(--vmb); color: #fff; padding: 8px 18px; border-radius: 8px;
  font-weight: 600; font-size: 13px; white-space: nowrap; flex-shrink: 0;
  transition: background .15s; font-family: 'Poppins', sans-serif; border: none; cursor: pointer;
}
.vm-search-btn:hover { background: var(--vmb-hov); }

/* ===== NAV ===== */
.vm-nav { display: flex; align-items: center; gap: 6px; flex-shrink: 0; font-family: 'Poppins', sans-serif; }
.vm-nav-link {
  color: var(--vm-ink2); font-size: 13px; font-weight: 500; padding: 8px 12px;
  border-radius: 8px; transition: background .12s, color .12s; white-space: nowrap; text-decoration: none;
}
.vm-nav-link:hover { background: var(--vm-bg); color: var(--vm-ink); }
.vm-btn-post {
  background: var(--vmb); color: #fff; font-weight: 600; font-size: 13px;
  padding: 9px 16px; border-radius: 8px; white-space: nowrap;
  transition: background .15s; font-family: 'Poppins', sans-serif; text-decoration: none; border: none;
  cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
}
.vm-btn-post:hover { background: var(--vmb-hov); }

/* Gradient animated Post Ad button */
.vm-btn-post-grad {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(270deg, #ff6a00, #ee0979, #7f00ff, #2196f3, #00c6ff);
  background-size: 300% 300%;
  animation: vmGradientShift 4s ease infinite;
  box-shadow: 0 4px 18px rgba(238,9,121,.35);
  transition: transform .2s ease, box-shadow .2s ease;
  font-weight: 600; font-size: 13px; padding: 9px 16px; border-radius: 8px;
  white-space: nowrap; font-family: 'Poppins', sans-serif; text-decoration: none;
  border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
}
.vm-btn-post-grad::after {
  content: ''; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: skewX(-20deg);
}
.vm-btn-post-grad:hover::after { animation: vmShimmer .65s ease forwards; }
.vm-btn-post-grad:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(127,0,255,.4); }
.vm-btn-post-grad:active { transform: translateY(0); }
.vm-btn-post-grad span { position: relative; z-index: 1; }

/* ===== MESSAGES ICON ===== */
.vm-msg-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 9px; color: var(--vm-ink2);
  transition: background .12s; flex-shrink: 0; text-decoration: none;
}
.vm-msg-btn:hover { background: var(--vm-bg); color: var(--vm-ink); }
.vm-msg-badge {
  position: absolute; top: 2px; right: 2px; min-width: 17px; height: 17px;
  background: #ef4444; color: #fff; font-size: 10px; font-weight: 700;
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
  padding: 0 4px; box-shadow: 0 0 0 2px #fff; line-height: 1;
}

/* ===== ACCOUNT DROPDOWN (click-toggled) ===== */
.vm-account-wrap { position: relative; }
.vm-btn-account {
  display: flex; align-items: center; gap: 7px; background: var(--vmb-soft);
  color: var(--vmb-ink); font-weight: 600; font-size: 13px; padding: 8px 14px;
  border-radius: 8px; white-space: nowrap; border: 1.5px solid transparent;
  transition: background .15s, border-color .15s; font-family: 'Poppins', sans-serif; cursor: pointer;
}
.vm-btn-account:hover { background: var(--vmb-softer); border-color: var(--vm-line); }
.vm-acct-chevron { transition: transform .2s; flex-shrink: 0; }
.vm-account-wrap.open .vm-acct-chevron { transform: rotate(180deg); }
.vm-account-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.vm-account-initials {
  width: 24px; height: 24px; border-radius: 50%; background: var(--vmb); color: #fff;
  font-size: 11px; font-weight: 700; display: grid; place-items: center; flex-shrink: 0;
}
.vm-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; background: #fff;
  border: 1px solid var(--vm-line); border-radius: 14px; padding: 8px; min-width: 224px;
  box-shadow: 0 16px 40px -8px rgba(16,24,40,.18), 0 4px 12px -4px rgba(16,24,40,.08);
  opacity: 0; pointer-events: none; transform: translateY(6px);
  transition: opacity .18s, transform .18s; z-index: 600;
}
.vm-account-wrap.open .vm-dropdown { opacity: 1; pointer-events: auto; transform: translateY(0); }
.vm-dd-user { padding: 10px 12px 12px; border-bottom: 1px solid var(--vm-line); margin-bottom: 6px; }
.vm-dd-user-name { font-weight: 600; font-size: 14px; color: var(--vm-ink); font-family: 'Poppins', sans-serif; }
.vm-dd-user-email { font-size: 12px; color: var(--vm-ink3); margin-top: 1px; font-family: 'Poppins', sans-serif; }
.vm-dd-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--vm-ink2); transition: background .12s, color .12s;
  text-decoration: none; font-family: 'Poppins', sans-serif;
}
.vm-dd-item:hover { background: var(--vm-bg); color: var(--vm-ink); }
.vm-dd-item svg { color: var(--vm-ink3); flex-shrink: 0; }
.vm-dd-divider { height: 1px; background: var(--vm-line); margin: 6px 0; }
.vm-dd-item.vm-danger { color: #c94040; }
.vm-dd-item.vm-danger svg { color: #c94040; }
.vm-dd-item.vm-danger:hover { background: #fef2f2; }

/* ===== CATEGORY RAIL — hidden, removed from design ===== */
.vm-cat-rail { display: none !important; }
.vm-cat-chip {
  display: inline-flex; align-items: center; white-space: nowrap; padding: 10px 13px;
  font-size: 13px; font-weight: 500; color: var(--vm-ink2); border-bottom: 2px solid transparent;
  transition: color .12s, border-color .12s; text-decoration: none;
}
.vm-cat-chip:hover { color: var(--vm-ink); }
.vm-cat-chip.active { color: var(--vmb-ink); border-bottom-color: var(--vmb); font-weight: 600; }

/* ===== MOBILE HEADER ===== */
.vm-mobile-hdr { display: none; font-family: 'Poppins', sans-serif; }
.vm-mob-wrap {
  background: #fff; border-bottom: 1px solid var(--vm-line);
  position: sticky; top: 0; z-index: 500; padding: 0 14px;
}
.vm-mob-r1 { display: flex; align-items: center; height: 56px; gap: 10px; }
.vm-mob-r1 .vm-mob-logo { flex: 1; display: flex; justify-content: center; }
.vm-mob-r1 .vm-mob-logo img { height: 48px; width: auto; }
.vm-mob-r2 { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; }
.vm-mob-search {
  flex: 1; display: flex; align-items: center; gap: 8px; background: var(--vm-bg);
  border: 1.5px solid var(--vm-line); border-radius: 10px; padding: 8px 10px 8px 12px;
  position: relative;
}
.vm-mob-search input {
  border: none; background: transparent; font-family: 'Poppins', sans-serif;
  font-size: 13px; color: var(--vm-ink); width: 100%; min-width: 0; outline: none;
}
.vm-mob-search input::placeholder { color: var(--vm-ink3); }
.vm-mob-search:focus-within { border-color: var(--vmb); background: #fff; }
.vm-mob-fav {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 8px; border: 1.5px solid var(--vm-line); color: var(--vm-ink2);
  text-decoration: none;
}
.vm-hamburger {
  display: flex; flex-direction: column; justify-content: space-between;
  width: 22px; height: 18px; background: none; border: none; cursor: pointer; flex-shrink: 0; padding: 0;
}
.vm-hamburger span { display: block; width: 100%; height: 2px; background: var(--vm-ink); border-radius: 2px; }
.vm-mob-icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; color: var(--vm-ink2); flex-shrink: 0;
  text-decoration: none; position: relative;
}

/* ===== SIDEBAR ===== */
.vm-sidebar {
  position: fixed; top: 0; left: -100%; width: 300px; height: 100%; height: 100dvh; background: #fff;
  z-index: 700; overflow: hidden; transition: left .3s cubic-bezier(.4,0,.2,1);
  box-shadow: 4px 0 24px rgba(0,0,0,.12); display: flex; flex-direction: column;
}
.vm-sidebar.open { left: 0; }
.vm-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 699; opacity: 0; pointer-events: none; transition: opacity .3s; }
.vm-overlay.open { opacity: 1; pointer-events: auto; }
.vm-sb-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--vm-line); flex-shrink: 0;
}
.vm-sb-close {
  width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center;
  color: var(--vm-ink3); background: none; border: none; cursor: pointer;
}
.vm-sb-close:hover { background: var(--vm-bg); color: var(--vm-ink); }
.vm-sb-body { flex: 1; min-height: 0; padding: 8px 10px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.vm-sb-footer {
  flex-shrink: 0;
  padding: 8px 10px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--vm-line);
  background: #fff;
}
.vm-sb-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  font-size: 14px; font-weight: 500; color: var(--vm-ink2); text-decoration: none;
  margin-bottom: 2px; font-family: 'Poppins', sans-serif;
}
.vm-sb-item:hover { background: var(--vm-bg); color: var(--vm-ink); }
.vm-sb-item svg { color: var(--vm-ink3); flex-shrink: 0; }
.vm-sb-item.active { background: var(--vmb-soft); color: var(--vmb-ink); }
.vm-sb-item.active svg { color: var(--vmb); }
.vm-sb-divider { height: 1px; background: var(--vm-line); margin: 6px 0; }
.vm-sb-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--vm-ink3); padding: 8px 12px 3px; font-family: 'Poppins', sans-serif;
}
.vm-sb-badge {
  margin-left: auto; min-width: 20px; height: 20px; background: #ef4444; color: #fff;
  font-size: 10px; font-weight: 700; border-radius: 10px; display: flex;
  align-items: center; justify-content: center; padding: 0 5px;
}
.vm-sb-tag {
  margin-left: auto; font-size: 10px; font-weight: 600; padding: 2px 7px;
  border-radius: 6px; background: #fef9c3; color: #92400e; font-family: 'Poppins', sans-serif;
}
.vm-sb-user { display: flex; align-items: center; gap: 12px; padding: 12px; border-bottom: 1px solid var(--vm-line); flex-shrink: 0; }
.vm-sb-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.vm-sb-initials {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--vmb), var(--vmb-hov));
  color: #fff; font-size: 16px; font-weight: 700; display: grid; place-items: center;
  flex-shrink: 0; font-family: 'Poppins', sans-serif;
}

/* ===== FLOATING MODE SWITCHER — positioned higher ===== */
.vm-switcher {
  position: fixed; bottom: 80px; right: 24px; z-index: 400; background: #fff;
  border: 1px solid var(--vm-line); border-radius: 999px; padding: 5px; display: flex; gap: 4px;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.15); font-family: 'Poppins', sans-serif;
}
.vm-switcher a {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px;
  border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--vm-ink2); text-decoration: none; transition: color .15s;
}
.vm-switcher a:hover { color: var(--vm-ink); }
.vm-switcher a.active { background: var(--vmb); color: #fff; }

/* ===== MOBILE GREETING (index.php only, mobile only) ===== */
.vm-greeting { display: none; padding: 0px 0px 0; }
.vm-greeting-card {
  background: #fff; border: 1px solid var(--vm-line); border-radius: 14px; padding: 14px 18px;
  box-shadow: 0 1px 3px rgba(16,24,40,.06);
}
.vm-greeting-title {
  font-size: 18px; font-weight: 700; color: var(--vm-ink); letter-spacing: -.025em;
  font-family: 'Poppins', sans-serif; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.vm-greeting-title em { font-style: normal; color: var(--vmb); }
.vm-greeting-wave {
  display: inline-flex; align-items: center; flex-shrink: 0; width: 28px; height: 28px;
}
.vm-greeting-sub { font-size: 12.5px; color: var(--vm-ink3); margin-top: 4px; font-family: 'Poppins', sans-serif; }
.vm-greeting-btns { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.vm-gbtn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 8px;
  font-size: 12.5px; font-weight: 600; font-family: 'Poppins', sans-serif; text-decoration: none;
}
.vm-gbtn-p { background: var(--vmb); color: #fff; }
.vm-gbtn-p:hover { background: var(--vmb-hov); }
.vm-gbtn-g { background: var(--vm-bg); color: var(--vm-ink2); border: 1px solid var(--vm-line); }
.vm-gbtn-g:hover { background: var(--vm-line2); }

/* ===== HOMEPAGE PAGE CONTAINER ===== */
.vm-page {
  max-width: 1360px; margin: 0 auto; padding: 28px 28px 48px;
}

/* ===== HERO BANNER (carousel) ===== */
.vm-hero-row { display: grid; grid-template-columns: minmax(0,2.7fr) repeat(4, minmax(0,1fr)); gap: 14px; }

.vm-hero-carousel { position: relative; border-radius: 20px; overflow: hidden; min-height: 310px; grid-column: 1; }
.vm-hero-slide {
  position: absolute; inset: 0; padding: 36px 48px 36px 40px;
  display: flex; flex-direction: column; justify-content: space-between; color: #fff;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity .7s ease;
}
.vm-hero-slide.active { opacity: 1; position: relative; }
.vm-hero-slide::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(140deg, rgba(30,36,53,.82) 0%, rgba(45,54,76,.68) 60%, rgba(74,85,112,.5) 100%);
  pointer-events: none;
}
.vm-hero-slide > * { position: relative; z-index: 1; }
.vm-hero-eyebrow {
  font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--vm-accent);
}
.vm-hero-slide h1 {
  font-size: 36px; line-height: 1.1; letter-spacing: -.025em; font-weight: 700;
  margin: 10px 0 14px; max-width: 16ch; color: #fff; font-family: 'Poppins', sans-serif;
}
.vm-hero-slide h1 em { font-style: normal; color: var(--vm-accent); }
.vm-hero-slide p { font-size: 13.5px; color: rgba(255,255,255,.72); max-width: 38ch; margin: 0 0 22px; }
.vm-hero-actions { display: flex; gap: 10px; align-items: center; }
.vm-hero-btn-p {
  background: #fff; color: var(--vmb-ink); padding: 11px 20px; border-radius: 10px;
  font-weight: 600; font-size: 13.5px; display: inline-flex; align-items: center; gap: 8px;
  transition: transform .15s, box-shadow .15s; font-family: 'Poppins', sans-serif; text-decoration: none;
}
.vm-hero-btn-p:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -6px rgba(0,0,0,.2); }
.vm-hero-btn-g {
  padding: 11px 16px; border-radius: 10px; font-weight: 500; font-size: 13.5px;
  color: rgba(255,255,255,.85); display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,.2); transition: background .15s, border-color .15s;
  font-family: 'Poppins', sans-serif; text-decoration: none;
}
.vm-hero-btn-g:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.35); }
.vm-hero-meta { display: flex; align-items: center; justify-content: space-between; }
.vm-hero-dots { display: flex; gap: 6px; }
.vm-hero-dots span { width: 20px; height: 3px; background: rgba(255,255,255,.3); border-radius: 2px; cursor: pointer; transition: all .3s; }
.vm-hero-dots span.active { background: #fff; width: 28px; }
.vm-hero-stat { font-size: 11.5px; color: rgba(255,255,255,.5); }

/* Promo tiles */
.vm-promo {
  border-radius: 18px; padding: 22px 20px; min-height: 310px;
  display: flex; flex-direction: column; justify-content: space-between; color: #fff;
  position: relative; overflow: hidden; transition: transform .2s; text-decoration: none;
  background-size: cover; background-position: center;
}
.vm-promo:hover { transform: translateY(-2px); }
.vm-promo::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(160deg, rgba(30,36,53,.75) 0%, rgba(45,54,76,.6) 100%);
}
.vm-promo::after {
  content: ''; position: absolute; right: -24px; bottom: -24px; width: 120px; height: 120px;
  border-radius: 50%; background: rgba(255,255,255,.06); pointer-events: none;
}
.vm-promo > * { position: relative; z-index: 1; }
.vm-promo-label { font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.vm-promo h3 { font-size: 17px; line-height: 1.2; font-weight: 600; margin: 8px 0 4px; letter-spacing: -.01em; font-family: 'Poppins', sans-serif; }
.vm-promo-arrow { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.15); display: grid; place-items: center; align-self: flex-start; }

/* ===== SECTION HEAD ===== */
.vm-sec-head { display: flex; align-items: flex-end; justify-content: space-between; margin: 36px 0 18px; }
.vm-sec-head h2 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; margin: 0; color: var(--vm-ink); font-family: 'Poppins', sans-serif; }
.vm-sec-head p { color: var(--vm-ink3); font-size: 13px; margin: 4px 0 0; font-family: 'Poppins', sans-serif; }
.vm-see-all {
  font-size: 13px; font-weight: 600; color: var(--vmb); display: inline-flex; align-items: center;
  gap: 5px; transition: gap .15s; white-space: nowrap; text-decoration: none;
}
.vm-see-all:hover { gap: 8px; }

/* ===== BUSINESS CATEGORY GRID ===== */
.vm-cat-grid {
  display: grid; grid-template-columns: repeat(9,1fr); gap: 8px;
  background: #fff; border: 1px solid var(--vm-line); border-radius: 18px; padding: 18px;
}
.vm-cat-extra { display: none; }
.vm-cat-item {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 14px 6px 12px; border-radius: 12px; text-align: center;
  transition: background .12s; text-decoration: none;
}
.vm-cat-item:hover { background: var(--vm-line2); }
.vm-cat-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; }
.vm-cat-icon svg { width: 24px; height: 24px; }
.vm-cat-label { font-size: 11.5px; font-weight: 500; color: var(--vm-ink); line-height: 1.3; max-width: 9ch; font-family: 'Poppins', sans-serif; }
.vm-cat-more {
  display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 14px 6px 12px;
  border-radius: 12px; text-align: center; transition: background .12s; cursor: pointer; border: none; background: none;
  width: 100%;
}
.vm-cat-more:hover { background: var(--vm-line2); }
.vm-cat-more-icon { width: 54px; height: 54px; border-radius: 14px; background: var(--vmb-soft); color: var(--vmb); display: grid; place-items: center; }
.vm-cat-more-label { font-size: 11.5px; font-weight: 600; color: var(--vmb); font-family: 'Poppins', sans-serif; }

/* ===== COLLECTIONS ===== */
.vm-collections { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.vm-collection { background: #fff; border: 1px solid var(--vm-line); border-radius: 18px; padding: 22px; }
.vm-collection-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.vm-collection-head-l { display: flex; align-items: center; gap: 12px; }
.vm-coll-tag { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.vm-collection h3 { font-size: 15px; font-weight: 600; margin: 0; letter-spacing: -.01em; font-family: 'Poppins', sans-serif; }
.vm-collection-meta { font-size: 11.5px; color: var(--vm-ink3); font-family: 'Poppins', sans-serif; }
.vm-coll-link { font-size: 12px; font-weight: 600; color: var(--vm-ink2); display: inline-flex; align-items: center; gap: 4px; transition: color .12s; text-decoration: none; }
.vm-coll-link:hover { color: var(--vmb); }
.vm-col-items { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.vm-col-item { text-align: left; text-decoration: none; }
.vm-col-thumb { aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; position: relative; display: grid; place-items: center; }
.vm-col-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vm-col-title { font-size: 13px; font-weight: 500; color: var(--vm-ink); margin-top: 10px; font-family: 'Poppins', sans-serif; }
.vm-col-sub { display: none; }
.vm-pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 500; background: var(--vm-line2); color: var(--vm-ink2); }
.vm-pill-brand { background: var(--vmb-soft); color: var(--vmb-ink); }

/* ===== CLASSIFIEDS BANNER ===== */
.vm-cls-banner {
  margin-top: 44px; position: relative; border-radius: 22px; overflow: hidden;
  color: #fff; padding: 44px 50px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
  background: linear-gradient(120deg, #2d3549 0%, #3c4761 55%, #4a5570 100%);
  background-size: cover; background-position: center;
}
.vm-cls-banner::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(30,36,53,.88) 0%, rgba(45,54,76,.75) 55%, rgba(60,71,97,.6) 100%);
  pointer-events: none; z-index: 0;
}
.vm-cls-banner > * { position: relative; z-index: 1; }
.vm-cls-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px;
  background: rgba(201,169,106,.15); color: var(--vm-accent); font-size: 10.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; font-family: 'Poppins', sans-serif;
}
.vm-cls-eyebrow-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--vm-accent); }
.vm-cls-banner h2 { font-size: 34px; line-height: 1.08; letter-spacing: -.025em; font-weight: 700; margin: 16px 0 10px; max-width: 14ch; color: #fff; font-family: 'Poppins', sans-serif; }
.vm-cls-banner h2 em { font-style: normal; color: var(--vm-accent); }
.vm-cls-banner-p { font-size: 14px; color: rgba(255,255,255,.7); margin: 0 0 22px; max-width: 42ch; line-height: 1.55; font-family: 'Poppins', sans-serif; }
.vm-cls-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.vm-btn-gold {
  background: var(--vm-accent); color: #2a2312; padding: 12px 20px; border-radius: 10px;
  font-weight: 700; font-size: 13.5px; display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap; transition: transform .15s, box-shadow .15s; font-family: 'Poppins', sans-serif; text-decoration: none;
}
.vm-btn-gold:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -6px rgba(201,169,106,.4); }
.vm-btn-outline-light {
  background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.25);
  padding: 12px 20px; border-radius: 10px; font-weight: 500; font-size: 13.5px;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  transition: border-color .15s, background .15s; font-family: 'Poppins', sans-serif; text-decoration: none;
}
.vm-btn-outline-light:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.06); }
.vm-cls-stats { display: none; }
.vm-cls-stat-n { font-size: 22px; font-weight: 700; color: #fff; letter-spacing: -.02em; font-family: 'Poppins', sans-serif; }
.vm-cls-stat-l { font-size: 11.5px; color: rgba(255,255,255,.5); margin-top: 1px; font-family: 'Poppins', sans-serif; }
.vm-cls-preview { position: relative; z-index: 1; height: 280px; }
.vm-cls-card {
  position: absolute; background: #fff; color: var(--vm-ink); border-radius: 14px; padding: 14px;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,.35);
  display: grid; grid-template-columns: 62px 1fr; gap: 12px; align-items: center; width: 275px;
}
.vm-cls-card .vm-thumb { width: 62px; height: 62px; border-radius: 10px; overflow: hidden; background: var(--t-peach); }
.vm-cls-card .vm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vm-thumb-2 { background: var(--t-sky) !important; }
.vm-thumb-3 { background: var(--t-sage) !important; }
.vm-cls-card-title { font-size: 13px; font-weight: 600; margin: 0; font-family: 'Poppins', sans-serif; }
.vm-cls-card-meta { font-size: 11px; color: var(--vm-ink3); margin-top: 3px; font-family: 'Poppins', sans-serif; }
.vm-cls-card-price { font-size: 13px; font-weight: 700; color: var(--vmb); margin-top: 4px; font-family: 'Poppins', sans-serif; }
.vm-cls-card:nth-child(1) { top: 0; right: 0; transform: rotate(3deg); }
.vm-cls-card:nth-child(2) { top: 90px; right: 40px; transform: rotate(-2deg); z-index: 2; }
.vm-cls-card:nth-child(3) { top: 180px; right: 10px; transform: rotate(2deg); }

/* ===== CLASSIFIEDS CATEGORY TILES — 4-col grid ===== */
.vm-cls-cats {
  margin-top: 18px; display: grid; grid-template-columns: repeat(4,1fr); gap: 10px;
}
.vm-cls-cat {
  background: #fff; border: 1px solid var(--vm-line); border-radius: 14px; padding: 16px 14px;
  display: flex; flex-direction: column; gap: 8px; transition: border-color .15s, transform .15s; text-decoration: none;
}
.vm-cls-cat:hover { border-color: var(--vmb); transform: translateY(-2px); }
.vm-cls-cat-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--vmb-softer); color: var(--vmb); display: grid; place-items: center; }
.vm-cls-cat-title { font-size: 13px; font-weight: 600; color: var(--vm-ink); font-family: 'Poppins', sans-serif; }

/* Cls-cat view more button */
.vm-cls-cat-more {
  background: var(--vm-bg); border: 1px dashed var(--vm-line); border-radius: 14px; padding: 16px 14px;
  display: flex; flex-direction: column; gap: 8px; cursor: pointer; align-items: flex-start;
  transition: border-color .15s;
}
.vm-cls-cat-more:hover { border-color: var(--vmb); }
.vm-cls-cat-more-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--vmb-soft); color: var(--vmb); display: grid; place-items: center; }
.vm-cls-cat-more-label { font-size: 13px; font-weight: 600; color: var(--vmb); font-family: 'Poppins', sans-serif; }

/* ===== CLASSIFIEDS LISTINGS ===== */
.vm-cls-listings { margin-top: 20px; display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.vm-cls-listing {
  background: #fff; border: 1px solid var(--vm-line); border-radius: 16px; overflow: hidden;
  transition: transform .15s, box-shadow .15s; text-decoration: none; display: block;
}
.vm-cls-listing:hover { transform: translateY(-2px); box-shadow: 0 8px 24px -6px rgba(16,24,40,.12); }
.vm-cls-img { aspect-ratio: 4/3; position: relative; display: grid; place-items: center; }
.vm-cls-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vm-cls-img-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.vm-cls-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: rgba(255,255,255,.95); color: var(--vmb); font-size: 10.5px; font-weight: 600;
  padding: 3px 8px; border-radius: 6px;
}
.vm-cls-save {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 28px; height: 28px;
  border-radius: 50%; background: rgba(255,255,255,.95); display: grid; place-items: center;
  color: var(--vm-ink2); transition: color .12s;
}
.vm-cls-save:hover { color: var(--vmb); }
.vm-cls-body { padding: 14px 16px 16px; }
.vm-cls-price { font-size: 18px; font-weight: 700; color: var(--vm-ink); letter-spacing: -.02em; display: flex; align-items: baseline; gap: 8px; font-family: 'Poppins', sans-serif; }
.vm-cls-price-unit { font-size: 12px; font-weight: 400; color: var(--vm-ink3); }
.vm-cls-title {
  font-size: 13.5px; font-weight: 500; color: var(--vm-ink); margin: 4px 0 6px; line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.7em; font-family: 'Poppins', sans-serif;
}
.vm-cls-meta { font-size: 11.5px; color: var(--vm-ink3); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-family: 'Poppins', sans-serif; }
.vm-cls-dot { width: 3px; height: 3px; background: currentColor; border-radius: 50%; opacity: .5; }

/* ===== TRUST STRIP ===== */
.vm-trust {
  margin-top: 40px; background: #fff; border: 1px solid var(--vm-line); border-radius: 18px;
  padding: 28px; display: grid; grid-template-columns: repeat(4,1fr); gap: 24px;
}
.vm-trust-item { display: flex; gap: 14px; align-items: flex-start; }
.vm-trust-icon { width: 42px; height: 42px; border-radius: 11px; background: var(--vmb-soft); color: var(--vmb-ink); display: grid; place-items: center; flex-shrink: 0; }
.vm-trust-item h4 { font-size: 13.5px; font-weight: 600; margin: 0 0 3px; font-family: 'Poppins', sans-serif; }
.vm-trust-item p { font-size: 12px; color: var(--vm-ink3); margin: 0; line-height: 1.45; font-family: 'Poppins', sans-serif; }

/* ===== AD SECTIONS (from old design) ===== */
.vm-ad-section { background: #fff; padding: 40px 0; border-top: 1px solid var(--vm-line); }
.vm-ad-inner { max-width: 1360px; margin: 0 auto; padding: 0 28px; }
.vm-carousel-outer { position: relative; }
.vm-carousel-inner { overflow: hidden; }
.vm-carousel-track { display: flex; gap: 12px; transition: transform .4s ease; }
.vm-carousel-slide { flex: 0 0 calc(20% - 10px); min-width: 0; }
.vm-carousel-btn {
  position: absolute; top: 38%; transform: translateY(-50%); z-index: 10;
  width: 32px; height: 32px; background: rgba(255,255,255,.92); border: 1px solid var(--vm-line);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15); transition: all .15s; color: var(--vm-ink2);
}
.vm-carousel-btn:hover { background: var(--vmb); color: #fff; border-color: var(--vmb); }
.vm-carousel-btn.prev { left: 4px; }
.vm-carousel-btn.next { right: 4px; }
.vm-carousel-card {
  background: #fff; border: 2px solid var(--vm-line); border-radius: 16px; overflow: hidden;
  transition: border-color .2s, box-shadow .2s; display: block; text-decoration: none;
}
.vm-carousel-card:hover { border-color: var(--vmb); box-shadow: 0 8px 24px rgba(51,60,81,.12); }
.vm-carousel-img { aspect-ratio: 1; overflow: hidden; }
.vm-carousel-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.vm-carousel-card:hover .vm-carousel-img img { transform: scale(1.07); }
.vm-carousel-body { padding: 10px; text-align: center; }
.vm-carousel-name { font-size: 12px; font-weight: 700; color: var(--vm-ink); font-family: 'Poppins', sans-serif; }

/* Messages page: hide header on mobile */
body.vm-messages-mobile .vm-topbar,
body.vm-messages-mobile .vm-mobile-hdr,
body.vm-messages-mobile .vm-cat-rail,
body.vm-messages-mobile .vm-greeting,
body.vm-messages-mobile .vm-switcher {
  display: none !important;
}

/* ===== ANIMATIONS ===== */
@keyframes vmGradientShift {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}
@keyframes vmShimmer {
  0%   { left: -75%; }
  100% { left: 125%; }
}
@keyframes vmPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.25); } }
@keyframes vmBounce { 0%,100% { transform: translateY(0); } 40% { transform: translateY(-4px); } }
@keyframes vmVoicePulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .vm-page { padding: 20px 20px 40px; }
  .vm-hero-row { grid-template-columns: 1fr 1fr; }
  .vm-hero-carousel { grid-column: 1 / -1; min-height: 260px; }
  .vm-hero-slide h1 { font-size: 30px; }
  .vm-cat-grid { grid-template-columns: repeat(5,1fr); }
  .vm-collections { grid-template-columns: 1fr; }
  .vm-trust { grid-template-columns: 1fr 1fr; }
  .vm-cls-banner { grid-template-columns: 1fr; padding: 34px 34px; }
  .vm-cls-preview { display: none; }
  .vm-cls-cats { grid-template-columns: repeat(4,1fr); }
  .vm-cls-listings { grid-template-columns: repeat(3,1fr); }
  .vm-sec-head h2 { font-size: 19px; }
  .vm-carousel-slide { flex: 0 0 calc(25% - 9px); }
}
@media (max-width: 1023px) {
  .vm-topbar-inner { display: none; }
  .vm-mobile-hdr { display: block; }
  /* Greeting shown on index only (via .vm-page-index class) */
  .vm-page-index .vm-greeting { display: block; }
  /* Mobile switcher — centered, higher up to avoid page bottom buttons */
  .vm-switcher { bottom: 72px; left: 50%; right: auto; transform: translateX(-50%); padding: 4px; }
  .vm-switcher a { padding: 7px 13px; font-size: 11.5px; gap: 5px; }
}
@media (min-width: 1024px) { .vm-mobile-hdr { display: none; } .vm-greeting { display: none !important; } }
@media (max-width: 768px) {
  .vm-page { padding: 16px 16px 80px; }
  .vm-hero-row { display: none; }
  .vm-cls-banner { display: none; }
  .vm-sec-head { margin: 26px 0 14px; }
  .vm-sec-head h2 { font-size: 17px; }
  .vm-sec-head p { display: none; }
  .vm-cat-grid { grid-template-columns: repeat(4,1fr); gap: 4px; padding: 12px 8px; border-radius: 16px; }
  .vm-cat-item { padding: 10px 4px 8px; gap: 6px; }
  .vm-cat-icon { width: 48px; height: 48px; border-radius: 12px; }
  .vm-cat-icon svg { width: 20px; height: 20px; }
  .vm-cat-label { font-size: 11px; max-width: 8ch; }
  .vm-cat-more { padding: 10px 4px 8px; gap: 6px; }
  .vm-cat-more-icon { width: 48px; height: 48px; border-radius: 12px; }
  .vm-cat-more-label { font-size: 11px; }
  .vm-collections { gap: 14px; }
  .vm-collection { padding: 16px; border-radius: 16px; }
  .vm-collection h3 { font-size: 14px; }
  .vm-col-items { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 44%; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0px; padding: 0 16px 4px; scrollbar-width: none; }
  .vm-col-items::-webkit-scrollbar { display: none; }
  .vm-col-item { scroll-snap-align: start; }
  .vm-cls-cats { grid-template-columns: repeat(2,1fr); gap: 8px; }
  .vm-cls-cat { padding: 12px 10px; border-radius: 12px; gap: 6px; }
  .vm-cls-cat-icon { width: 30px; height: 30px; border-radius: 8px; }
  .vm-cls-cat-title { font-size: 12px; }
  .vm-cls-listings { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .vm-cls-body { padding: 10px 12px 12px; }
  .vm-cls-price { font-size: 15px; }
  .vm-cls-title { font-size: 12px; min-height: 2.4em; }
  .vm-cls-meta { font-size: 10.5px; }
  .vm-trust { grid-template-columns: 1fr; gap: 16px; padding: 20px; margin-top: 28px; border-radius: 16px; }
  .vm-carousel-slide { flex: 0 0 calc(50% - 6px); }
  .vm-ad-inner { padding: 0 16px; }
  .vm-ad-section { padding: 28px 0; }
}
@media (max-width: 400px) {
  .vm-cat-grid { grid-template-columns: repeat(4,1fr); padding: 10px 6px; }
  .vm-cat-icon { width: 44px; height: 44px; }
  .vm-cls-cats { grid-template-columns: repeat(2,1fr); }
  .vm-cls-listings { grid-template-columns: repeat(2,1fr); gap: 10px; }
}

/* ===== RECENT BUSINESSES SECTION ===== */
.vm-biz-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-top: 4px;
}
.vm-biz-card {
  background: #fff; border: 1px solid var(--vm-line); border-radius: 16px; overflow: hidden;
  transition: transform .15s, box-shadow .15s; text-decoration: none; display: block;
}
.vm-biz-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px -6px rgba(16,24,40,.12); }
.vm-biz-hero {
  height: 120px; background: var(--vmb-soft); position: relative; overflow: hidden;
}
.vm-biz-hero img { width: 100%; height: 100%; object-fit: cover; }
.vm-biz-hero-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.vm-biz-logo-wrap {
  position: absolute; bottom: -20px; left: 16px;
  width: 42px; height: 42px; border-radius: 10px; border: 2px solid #fff;
  background: #fff; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.vm-biz-logo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.vm-biz-logo-ph { width: 100%; height: 100%; background: var(--vmb-soft); display: grid; place-items: center; color: var(--vmb); }
.vm-biz-body { padding: 28px 14px 14px; }
.vm-biz-name { font-size: 13.5px; font-weight: 600; color: var(--vm-ink); font-family: 'Poppins', sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vm-biz-cat { font-size: 11.5px; color: var(--vm-ink3); margin-top: 2px; font-family: 'Poppins', sans-serif; }
.vm-biz-meta { display: flex; align-items: center; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.vm-biz-rating { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--vm-ink); font-family: 'Poppins', sans-serif; }
.vm-biz-rating-star { color: #f59e0b; }
.vm-biz-badge { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: var(--vmb-soft); color: var(--vmb); font-family: 'Poppins', sans-serif; }

@media (max-width: 1100px) { .vm-biz-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 768px) { .vm-biz-grid { grid-template-columns: repeat(2,1fr); gap: 12px; } }

/* ============================================================
   GLOBAL FONT NORMALIZATION — Poppins everywhere, sizes
   consistent with index page. Tailwind's default rem-based
   sizes are too large when body is 16px; we normalize here.
   ============================================================ */

/* Force Poppins on everything including Tailwind-generated elements */
html, body, *, *::before, *::after {
  font-family: 'Poppins', sans-serif !important;
}

/* Heading sizes */
h1 { font-size: 2rem;   font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h2 { font-size: 1.5rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 1.1rem;  font-weight: 600; line-height: 1.35; }
h5 { font-size: 1rem;   font-weight: 600; }
h6 { font-size: 0.875rem; font-weight: 600; }

/* Business profile name */
.biz-name-h1 { font-size: 2rem !important; }

/* Paragraph and general text */
p, li, td, th, label, span, div {
  font-size: inherit;
}

/* Form elements */
input, textarea, select, button {
  font-family: 'Poppins', sans-serif !important;
  font-size: 0.875rem;
}

/* Responsive — slightly larger on desktop */
@media (min-width: 1024px) {
  html, body { font-size: 16px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.2rem; }
}

/* ============================================================
   TARGETED FIXES — appended, do not modify above
   ============================================================ */

/* sidebar layout — defined above */

/* 2. Mobile search — scroll page up when keyboard opens so results visible */
@media (max-width: 1023px) {
  .vm-mob-search input:focus {
    /* Trigger scroll via scroll-margin so results stay above keyboard */
    scroll-margin-bottom: 320px;
  }
  /* Unified search dropdown — ensure it doesn't go behind keyboard */
  .vm-search-dropdown,
  .unified-search-results,
  #searchSuggestions,
  #searchSuggestionsMobile {
    max-height: 40vh !important;
    overflow-y: auto;
    bottom: auto !important;
  }
}

/* 3. Business profile — fix shine animation on mobile (iOS needs -webkit) */
@keyframes shine {
  0%   { transform: translateX(-100%) skewX(-20deg); }
  100% { transform: translateX(250%) skewX(-20deg); }
}
@-webkit-keyframes shine {
  0%   { -webkit-transform: translateX(-100%) skewX(-20deg); }
  100% { -webkit-transform: translateX(250%) skewX(-20deg); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@-webkit-keyframes spin-slow {
  from { -webkit-transform: rotate(0deg); }
  to   { -webkit-transform: rotate(360deg); }
}
/* Enquire button shine */
.btn-shine {
  position: relative;
  overflow: hidden;
  -webkit-transform: translateZ(0); /* force GPU layer on iOS */
}
.btn-shine::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
  animation: shine 2.4s ease-in-out infinite;
  -webkit-animation: shine 2.4s ease-in-out infinite;
  will-change: transform;
}
/* Discount badge spin */
.offer-icon-spin {
  display: inline-block;
  animation: spin-slow 4s linear infinite;
  -webkit-animation: spin-slow 4s linear infinite;
  will-change: transform;
  -webkit-transform: translateZ(0);
}
/* Badge shine sweep */
@keyframes badge-shine {
  0%   { opacity: 0; transform: translateX(-100%) rotate(-30deg); }
  40%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(200%) rotate(-30deg); }
}
@-webkit-keyframes badge-shine {
  0%   { opacity: 0; -webkit-transform: translateX(-100%) rotate(-30deg); }
  40%  { opacity: 1; }
  100% { opacity: 0; -webkit-transform: translateX(200%) rotate(-30deg); }
}

/* 4. Business profile tab nav — more spacing on mobile */
@media (max-width: 640px) {
  .tab-btn {
    font-size: 12px !important;
    padding: 10px 10px !important;
    min-width: fit-content !important;
  }
}