/* Search Hero Section */
.search-hero {
    background: linear-gradient(135deg, #fff7f7 0%, #fff 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}
.search-hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: var(--web-panel-color, #8C001A);
    opacity: 0.05;
    border-radius: 50%;
}
.search-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 15px;
}
.search-hero p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Search Section */
.search-section {
    background: #fff;
    padding: 60px 0 80px;
}

/* Search Bar */
.search-bar-wrapper {
    max-width: 700px;
    margin: 0 auto 40px;
    position: relative;
    z-index: 500;
}
.search-bar-wrapper .input-group-inner {
    display: flex;
    border-radius: 50px;
    overflow: visible;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 2px solid transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
    position: relative;
    z-index: 2;
}
.search-bar-wrapper .input-group-inner:focus-within {
    border-color: #8C001A;
    box-shadow: 0 8px 32px rgba(140,0,26,0.18);
}
.search-bar-wrapper .form-control {
    border: none;
    padding: 18px 25px;
    font-size: 1rem;
    border-radius: 50px 0 0 50px;
    flex: 1;
    background: #fff;
}
.search-bar-wrapper .form-control:focus {
    box-shadow: none;
    outline: none;
}
.search-bar-wrapper .btn-search {
    background: #8C001A;
    border: none;
    padding: 0 35px;
    border-radius: 0 50px 50px 0;
    font-weight: 600;
    color: #fff;
    transition: all 0.2s;
    cursor: pointer;
    flex-shrink: 0;
}
.search-bar-wrapper .btn-search:hover { background: #700014; }

/* Autocomplete Suggestions */
#search-suggestions {
    position: fixed;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.18);
    z-index: 99999;
    overflow: hidden;
    display: none;
    border: 1px solid #f0e0e4;
    max-height: 360px;
    overflow-y: auto;
}
.suggestion-item {
    padding: 13px 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: #333;
    transition: background 0.15s, color 0.15s;
    border-bottom: 1px solid #faf0f2;
}
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover, .suggestion-item.focused { background: #fff0f3; color: #8C001A; }
.suggestion-item i { color: #8C001A; width: 18px; text-align: center; flex-shrink: 0; }
.suggestion-item .sug-type {
    font-size: 0.75rem; color: #bbb; margin-left: auto;
    white-space: nowrap; background: #f9f9f9; padding: 2px 8px; border-radius: 20px;
}

/* Category Filters */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}
.category-filters .btn-filter {
    border: 2px solid #f0f0f0;
    border-radius: 50px;
    padding: 10px 25px;
    color: #666;
    font-weight: 600;
    background: #fff;
    transition: all 0.2s;
    cursor: pointer;
}
.category-filters .btn-filter:hover {
    border-color: var(--web-panel-color, #8C001A);
    color: var(--web-panel-color, #8C001A);
}
.category-filters .btn-filter.active {
    background: var(--web-panel-color, #8C001A);
    border-color: var(--web-panel-color, #8C001A);
    color: #fff;
}

/* Business Cards */
.business-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    transition: transform 0.25s, box-shadow 0.25s;
    height: 100%;
    border: 2px solid transparent;
}
.business-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    border-color: rgba(140,0,26,0.1);
}
.business-card .card-image { position: relative; height: 200px; overflow: hidden; }
.business-card .card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.business-card:hover .card-image img { transform: scale(1.05); }
.business-card .card-body { padding: 25px; }
.business-card .business-name {
    font-weight: 700; font-size: 1.15rem; color: #1a1a2e;
    margin-bottom: 10px; text-decoration: none; display: block; transition: color 0.2s;
}
.business-card .business-name:hover { color: var(--web-panel-color, #8C001A); }
.business-card .rating-stars { color: #ffc107; font-size: 0.9rem; margin-bottom: 12px; }
.business-card .business-address {
    color: #888; font-size: 0.9rem; margin-bottom: 15px; display: flex; align-items: center; gap: 8px;
}
.business-card .business-meta {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 15px; border-top: 1px solid #f0f0f0;
}
.business-card .business-category { color: var(--web-panel-color, #8C001A); font-size: 0.85rem; font-weight: 600; }
.business-card .btn-view {
    background: var(--web-panel-color, #8C001A); color: #fff; border: none;
    padding: 8px 20px; border-radius: 50px; font-weight: 600; font-size: 0.85rem;
    transition: all 0.2s; text-decoration: none; display: inline-block;
}
.business-card .btn-view:hover { background: #700014; transform: translateY(-2px); color: #fff; }

/* Empty State */
.empty-state { text-align: center; padding: 80px 20px; }
.empty-state .empty-icon { font-size: 5rem; color: #ddd; margin-bottom: 25px; }
.empty-state h5 { color: #1a1a2e; font-weight: 700; font-size: 1.3rem; margin-bottom: 10px; }
.empty-state p { color: #888; margin-bottom: 20px; }

/* Responsive */
@media (max-width: 768px) {
    .search-hero h1 { font-size: 1.8rem; }
    .search-bar-wrapper .form-control { padding: 15px 20px; font-size: 0.95rem; }
    .search-bar-wrapper .btn-search { padding: 0 25px; }
    .category-filters .btn-filter { padding: 8px 18px; font-size: 0.9rem; }
    .business-card .card-body { padding: 20px; }
}

/* Pagination */
.pagination-wrapper { margin-top: 40px; }
.pagination .page-link {
    color: #666; border: 2px solid #f0f0f0; margin: 0 3px;
    border-radius: 8px; padding: 8px 14px; font-weight: 600; transition: all 0.2s;
}
.pagination .page-link:hover {
    color: var(--web-panel-color, #8C001A);
    border-color: var(--web-panel-color, #8C001A);
    background-color: #fff;
}
.pagination .page-item.active .page-link {
    background-color: var(--web-panel-color, #8C001A);
    border-color: var(--web-panel-color, #8C001A);
    color: #fff;
}
.pagination .page-item.disabled .page-link {
    color: #ccc; border-color: #f0f0f0; background-color: #f9f9f9;
}
