:root {
    /* Black & Yellow Theme Colors */
    --color-black: #000000;
    --color-yellow: #ffd000;
    --color-yellow-light: #fff3bf;
    --color-silver: #b0b0b0;
    --color-white: #ffffff;
    
    /* Neutral palette */
    --color-slate-50: #fafafa;
    --color-slate-100: #f5f5f5;
    --color-slate-200: #e5e5e5;
    --color-slate-300: #d4d4d4;
    --color-slate-400: #a3a3a3;
    --color-slate-500: #737373;
    --color-slate-600: #525252;
    --color-slate-700: #404040;
    --color-slate-800: #262626;
    --color-slate-900: #171717;
    
    /* Primary - Yellow */
    --color-primary-50: #fffbeb;
    --color-primary-100: #fff3bf;
    --color-primary-500: #ffd000;
    --color-primary-600: #ffd000;
    --color-primary-700: #d4aa00;
    
    /* Semantic colors */
    --color-success: #10b981;
    --color-warning: #ffd000;
    --color-danger: #ef4444;
    --color-info: #3b82f6;
    
    /* Spacing scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    
    /* Font sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    
    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Focus ring */
    --ring-offset: 2px;
    --ring-color: var(--color-primary-500);

    --dp-light: #ffffff;

    --dp-primary-light: #fff3bf;
    --dp-primary: #ffd000;
    --dp-primary-dark: #d4aa00;
    --dp-primary-darker: #b0b0b0;
}

/* Base styles */
* { box-sizing: border-box; }

body {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: var(--text-base);
    line-height: 1.625;
    color: var(--color-slate-700);
    background: var(--color-slate-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-slate-900);
    margin-top: 0;
}

h1 { font-size: var(--text-4xl); margin-bottom: var(--space-6); }
h2 { font-size: var(--text-3xl); margin-bottom: var(--space-5); }
h3 { font-size: var(--text-2xl); margin-bottom: var(--space-4); }
h4 { font-size: var(--text-xl); margin-bottom: var(--space-4); }
h5 { font-size: var(--text-lg); margin-bottom: var(--space-3); }
h6 { font-size: var(--text-base); margin-bottom: var(--space-3); font-weight: 600; }

p { margin-bottom: var(--space-4); line-height: 1.75; }

a {
    color: var(--color-black);
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover { color: var(--color-yellow); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 500;
    line-height: 1.5;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: all 0.15s ease;
    cursor: pointer;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 208, 0, 0.2);
}

.btn-sm { padding: var(--space-1) var(--space-3); font-size: var(--text-xs); }
.btn-lg { padding: var(--space-3) var(--space-6); font-size: var(--text-base); }

.btn-primary {
    background: var(--color-yellow);
    color: var(--color-black);
    border-color: var(--color-yellow);
    font-weight: 600;
}
.btn-primary:hover {
    background: var(--color-primary-700);
    border-color: var(--color-primary-700);
    color: var(--color-black);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

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

.btn-secondary {
    background: var(--color-slate-100);
    color: var(--color-slate-700);
    border-color: var(--color-slate-200);
}
.btn-secondary:hover {
    background: var(--color-slate-200);
    color: var(--color-slate-900);
}

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

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

.btn-outline-danger {
    color: var(--color-danger);
    border-color: var(--color-slate-300);
    background: white;
}
.btn-outline-danger:hover {
    background: #fef2f2;
    border-color: var(--color-danger);
}

/* Forms */
.form-control, .form-select {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    line-height: 1.5;
    color: var(--color-slate-700);
    background: white;
    border: 1px solid var(--color-slate-300);
    border-radius: var(--radius-md);
    transition: all 0.15s ease;
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--color-yellow);
    box-shadow: 0 0 0 3px rgba(255, 208, 0, 0.15);
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-slate-700);
}

/* Cards */
.card {
    background: white;
    border: 1px solid var(--color-slate-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-slate-300);
}

.card-body {
    padding: var(--space-6);
}

.card-header {
    padding: var(--space-4) var(--space-6);
    background: var(--color-slate-50);
    border-bottom: 1px solid var(--color-slate-200);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 500;
    border-radius: var(--radius-md);
}

.badge-featured {
    background: var(--color-yellow);
    color: var(--color-black);
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: var(--space-1) var(--space-3);
}

.badge-verified {
    background: var(--color-success);
    color: white;
    border-radius: var(--radius-md);
    padding: var(--space-1) var(--space-3);
}

.bg-success { background: #d1fae5 !important; color: #065f46 !important; }
.bg-warning { background: var(--color-yellow-light) !important; color: var(--color-black) !important; }
.bg-danger { background: #fee2e2 !important; color: #991b1b !important; }
.bg-secondary { background: var(--color-slate-100) !important; color: var(--color-slate-700) !important; }

/* Utilities */
.text-primary { color: var(--color-yellow) !important; }
.text-muted { color: var(--color-slate-500) !important; }
.text-secondary { color: var(--color-slate-600) !important; }

.bg-primary { background-color: var(--color-yellow) !important; color: var(--color-black) !important; }
.bg-light { background-color: var(--color-slate-50) !important; }

.bg-gray { background-color: var(--color-slate-200) !important; }

.border { border: 1px solid var(--color-slate-200) !important; }
.border-0 { border: 0 !important; }

.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }

.rounded { border-radius: var(--radius-md) !important; }
.rounded-circle { border-radius: 50% !important; }

/* Layout components */
.nav-header-classic {
    background: var(--color-black);
    border-bottom: 2px solid var(--color-yellow);
    box-shadow: var(--shadow-md);
}

.nav-header-classic .navbar-brand img {
    max-height: 40px;
}

.navbar-nav .nav-link {
    color: var(--color-white);
    font-weight: 500;
    padding: var(--space-2) var(--space-4);
    transition: all 0.15s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--color-yellow);
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    color: var(--color-yellow);
    font-weight: 600;
}

.footer {
    background: var(--color-black);
    color: var(--color-silver);
    padding: var(--space-12) 0 var(--space-6);
    border-top: 3px solid var(--color-yellow);
}

.footer a {
    color: var(--color-silver);
}

.footer a:hover {
    color: var(--color-yellow);
}

.footer h6 {
    color: var(--color-yellow);
}

/* Star ratings */
.star-rating .mdi-star { color: var(--color-yellow); }
.star-rating .mdi-star-outline { color: var(--color-slate-300); }
.star-rating .mdi-star-half-full { color: var(--color-yellow); }

/* Hero section */
.search-hero {
    background: linear-gradient(135deg, var(--color-black) 0%, var(--color-slate-900) 100%);
    padding: var(--space-12) 0;
    border-bottom: 4px solid var(--color-yellow);
}
.hero-min-h { min-height: 480px; }
.hero-overlay { background: linear-gradient(135deg, rgba(0,0,0,.94) 0%, rgba(23,23,23,.90) 100%); }
.hero-bg-img { background-size: cover; background-position: center; opacity: .15; }

.search-hero h1, .search-hero h2, .search-hero p {
    color: var(--color-white);
}

/* Listing cards */
.listing-card {
    transition: all 0.2s ease;
    border: 1px solid var(--color-slate-200);
}

.listing-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-slate-300);
}

/* Skeleton loader */
.skeleton {
    background: linear-gradient(90deg, var(--color-slate-200) 25%, var(--color-slate-100) 50%, var(--color-slate-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

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

/* Avatar */
.avatar-xs { width: 32px; height: 32px; border-radius: 50%; }
.avatar-sm { width: 40px; height: 40px; border-radius: 50%; }

/* Icon shape */
.icon-shape {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background: var(--color-slate-100);
}

/* Tables */
.table {
    font-size: var(--text-sm);
}

.table thead th {
    font-weight: 600;
    color: var(--color-slate-700);
    background: var(--color-slate-50);
    border-bottom: 1px solid var(--color-slate-200);
    padding: var(--space-3) var(--space-4);
}

.table tbody td {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--color-slate-100);
    color: var(--color-slate-600);
}

.table tbody tr:hover {
    background: var(--color-slate-50);
}

/* Alerts */
.alert {
    padding: var(--space-4);
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    font-size: var(--text-sm);
    line-height: 1.5;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-color: #a7f3d0;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-color: #bfdbfe;
}

/* Modal */
.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--color-slate-200);
}

.modal-body {
    padding: var(--space-6);
}

.modal-footer {
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--color-slate-200);
    background: var(--color-slate-50);
}

/* Responsive spacing */
@media (max-width: 767.98px) {
    :root {
        --space-6: 1.25rem;
        --space-8: 1.5rem;
        --space-10: 2rem;
        --space-12: 2.5rem;
    }
    
    .search-form .row > div {
        margin-bottom: var(--space-2);
    }
    
    .card-body {
        padding: var(--space-4);
    }
}

#nav-search-container input {
    height: 44px;
    padding: 10px 16px;
    border-radius: 6px 0 0 6px;
}

#nav-search-container button {
    height: 44px;
    padding: 10px 12px;
    border-radius: 0 6px 6px 0;
    background-color: var(--color-yellow);
    font-size: 24px;
}

.nav-header-classic .nav-link {
    color: var(--color-white)!important;
}

.nav-header-classic.menu-fixed .nav-link{
    color: var(--color-black)!important;
}

#mainNav .nav-item {
    margin-right: 1rem;
    margin-left: 1rem;
}

/* CMS Content (from page.blade.php) */
.cms-content h2 { font-size: 1.5rem; font-weight: 700; margin-top: 2rem; margin-bottom: 1rem; }
.cms-content h3 { font-size: 1.25rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.75rem; }
.cms-content p { margin-bottom: 1rem; line-height: 1.8; color: var(--color-slate-500); }
.cms-content ul, .cms-content ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.cms-content li { margin-bottom: 0.5rem; color: var(--color-slate-500); }
.cms-content a { color: var(--color-yellow); }
.cms-content img { max-width: 100%; border-radius: var(--radius-sm); margin: 1rem 0; }

/* Utility classes replacing inline styles */
.logo-height { max-height: 40px; }
.logo-height-sm { max-height: 44px; }
.logo-invert { filter: brightness(0) invert(1); }
.w-auto { width: auto !important; }
.max-w-form { max-width: 420px; }
.max-w-500 { max-width: 500px; }
.max-w-640 { max-width: 640px; }
.z-dropdown { z-index: 1050; }
.top-sticky { top: 80px; }
.fs-dot6 { font-size: .6rem; }
.fs-dot65 { font-size: .65rem; }
.fs-dot7 { font-size: .7rem; }
.fs-dot875 { font-size: .875rem; }

/* Avatar / icon circle utilities */
.circle-28 { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.circle-32 { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.circle-36 { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.circle-40 { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.circle-44 { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.circle-56 { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.circle-60 { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.circle-64 { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.circle-80 { width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.square-36 { width: 36px; height: 36px; }
.square-60 { width: 60px; height: 60px; }
.square-120 { width: 120px; height: 90px; }
.obj-cover { object-fit: cover; }

/* Icon shape sizes */
.icon-shape-56 { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.icon-shape-64 { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }

/* Image height utilities */
.img-h-120 { height: 120px; object-fit: cover; }
.img-h-150 { height: 150px; object-fit: cover; }
.img-h-160 { height: 160px; object-fit: cover; }
.img-h-180 { height: 180px; object-fit: cover; }
.img-h-200 { height: 200px; object-fit: cover; }
.img-h-250 { height: 250px; object-fit: cover; }
.img-h-280 { height: 280px; overflow: hidden; }
.img-h-400 { height: 400px; }

/* Skeleton height utilities */
.skel-60 { height: 60px; }
.skel-80 { height: 80px; }
.skel-100 { height: 100px; }
.skel-120 { height: 120px; }
.skel-150 { height: 150px; }
.skel-160 { height: 160px; }
.skel-200 { height: 200px; }
.skel-220 { height: 220px; }
.skel-280 { height: 280px; }
.skel-300 { height: 300px; }
.skel-320 { height: 320px; }
.skel-400 { height: 400px; }

/* Notification dropdown */
.notif-dropdown { width: 320px; max-height: 360px; overflow-y: auto; }

/* Nav autocomplete */
.nav-autocomplete { display: none; z-index: 1050; width: 400px; top: 100%; }

/* How-it-works cards */
.how-it-works-card { border-radius: 16px; background: var(--color-black); height: 240px; }

/* Featured section background */
.section-bg-primary { background: var(--color-yellow); }
.section-bg-light { background: var(--color-white); }
.section-bg-dark { background: linear-gradient(135deg, var(--color-black) 0%, #334155 100%); }

/* Category icon box */
.cat-icon-box { width: 56px; height: 56px; border-radius: 14px; background: var(--color-primary-100); display: flex; align-items: center; justify-content: center; }

/* AI tools icon */
.ai-tool-icon { width: 40px; height: 40px; background: var(--color-yellow-light); display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.ai-tool-icon i { color: var(--color-black); font-size: 1.2rem; }

/* Dashboard sidebar */
.sidebar-avatar-circle { width: 64px; height: 64px; font-size: 1.4rem; font-weight: 700; background: var(--color-yellow); color: var(--color-black); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.sidebar-nav-active { background: var(--color-yellow); color: var(--color-black) !important; font-weight: 600; }
.sidebar-nav-link { color: var(--color-slate-700); }

/* Admin stat card background utilities */
.bg-primary-light { background: var(--dp-primary-light) !important; }
.bg-success-light { background: #d1fae5 !important; }
.bg-warning-light { background: #fef3c7 !important; }
.bg-purple-light { background: #ede9fe !important; }
.text-purple { color: #8b5cf6 !important; }
.w-200 { width: 200px; }

/* Admin stat cards (legacy) */
.admin-stat-green { background: #d1fae5; }
.admin-stat-green i { color: #10b981; }
.admin-stat-yellow { background: #fef3c7; }
.admin-stat-yellow i { color: #f59e0b; }
.admin-stat-purple { background: #ede9fe; }
.admin-stat-purple i { color: #8b5cf6; }

/* Banner gradient */
.biz-banner-gradient { height: 280px; overflow: hidden; background: linear-gradient(135deg, var(--color-yellow), var(--color-slate-600)); }
.biz-detail-offset { margin-top: -60px; position: relative; z-index: 2; }

/* Map container */
.map-container { height: 400px; border-radius: var(--radius-lg); overflow: hidden; }
.map-sm { height: 250px; border-radius: var(--radius-sm); }

/* Daily chart container */
.daily-chart { height: 200px; display: flex; align-items: flex-end; gap: 2px; }

/* AI summary box */
.ai-summary-box { background: var(--color-yellow-light); border: 1px solid var(--color-yellow); }

/* Star picker */
.star-picker, .star-picker i { cursor: pointer; }

/* Min-width utilities */
.min-w-30 { min-width: 30px; }

/* Gallery image clickable */
.gallery-img { cursor: pointer; }

/* AI summary button style */
.btn-ai-summary-style { border-color: var(--color-yellow); color: var(--color-black); }
.btn-ai-summary-style:hover { background: var(--color-yellow-light); }

/* Explicit bg-white */
.bg-white { background: #fff !important; }

/* Progress bar container */
.progress-h8 { height: 8px; }

/* Toast notification */
.dp-toast {
    z-index: 9999;
    animation: fadeIn .3s ease;
    min-width: 280px;
    max-width: 420px;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
