/**
 * Browse Contractors - Mobile-First Design
 * UPDATED: 2025-10-20 - New scrolling categories and mobile optimized
 */

/* PAGE LAYOUT */
.browse-contractors-page {
    padding: 1.5rem 0 3rem;
    background: #f7fafc;
}

.browse-contractors-page .container {
    max-width: 900px;
}

.page-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.page-header h1 {
    font-size: 2rem;
    color: #1a202c;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.page-header .subtitle {
    font-size: 1.125rem;
    color: #4a5568;
    line-height: 1.4;
}

/* FILTERS */
.browse-filters-wrapper {
    margin-bottom: 2rem;
}

.filter-accordion-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 0.5rem;
    min-height: 64px;
}

.filter-accordion-toggle:hover {
    background: #f7fafc;
    border-color: #6b46c1;
}

.filter-accordion-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a202c;
}

.filter-category-count {
    color: #6b46c1;
    font-weight: 500;
    margin-left: 0.5rem;
}

.filter-accordion-icon {
    transition: transform 0.3s;
    color: #6b46c1;
    font-size: 1.5rem;
}

.browse-filters {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    max-height: 2000px;
}

.browse-filters.collapsed {
    max-height: 0;
    padding: 0 1.5rem;
    opacity: 0;
    margin-bottom: 0;
}

/* Mobile accordion styles */
@media (max-width: 768px) {
    .filter-accordion-toggle {
        padding: 1rem 1.25rem;
        min-height: 56px;
    }
    
    .filter-accordion-title {
        font-size: 1.05rem;
    }
}

.filters-top-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.filter-section {
    margin-bottom: 0;
}

.filter-section.search-section {
    margin-bottom: 2rem;
}

.filter-section h3 {
    font-size: 1.125rem;
    color: #1a202c;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* CATEGORY LIST - Scrolling with selectable items */
.category-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 400px;
    overflow-y: auto;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #f7fafc;
}

.category-checkbox {
    display: block;
    padding: 0;
    margin: 0;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.category-checkbox:last-child {
    border-bottom: none;
}

.category-checkbox input[type="checkbox"] {
    display: none;
}

.category-label {
    display: block;
    padding: 1.125rem 1.25rem;
    color: #2d3748;
    font-size: 1.0625rem;
    line-height: 1.4;
    font-weight: 500;
    background: white;
    transition: all 0.2s;
}

.category-checkbox:hover .category-label {
    background: #faf5ff;
    color: #6b46c1;
}

.category-checkbox input[type="checkbox"]:checked + .category-label {
    background: linear-gradient(135deg, #6b46c1 0%, #805ad5 100%);
    color: white;
    font-weight: 600;
}

/* QUALITY TIER - Large checkboxes for mobile */
.tier-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.tier-checkbox {
    display: flex;
    align-items: center;
    padding: 1.125rem 1.25rem;
    background: #f7fafc;
    border: 3px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    min-height: 64px;
}

.tier-checkbox:hover {
    border-color: #f6ad55;
    background: #fffaf0;
    transform: scale(1.02);
}

.tier-checkbox input[type="checkbox"] {
    margin-right: 1rem;
    cursor: pointer;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    accent-color: #f6ad55;
}

.tier-checkbox:has(input:checked) {
    background: linear-gradient(135deg, rgba(246, 173, 85, 0.15) 0%, rgba(237, 137, 54, 0.15) 100%);
    border-color: #f6ad55;
    border-width: 3px;
}

.tier-label {
    color: #2d3748;
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1.4;
}

.tier-checkbox input[type="checkbox"]:checked + .tier-label {
    font-weight: 700;
    color: #c05621;
}

/* SEARCH INPUT */
.search-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 3px solid #cbd5e0;
    border-radius: 10px;
    font-size: 1.0625rem;
    transition: all 0.2s;
    min-height: 56px;
}

.search-input:focus {
    outline: none;
    border-color: #6b46c1;
    box-shadow: 0 0 0 4px rgba(107, 70, 193, 0.15);
}

/* FILTER ACTIONS */
.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.filter-actions .btn {
    width: 100%;
    min-height: 56px;
    font-size: 1.0625rem;
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-radius: 10px;
}

/* RESULTS INFO */
.results-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.results-count {
    font-size: 1.0625rem;
    color: #2d3748;
    font-weight: 600;
}

.results-meta {
    color: #718096;
    font-size: 0.9375rem;
}

.boosted-indicator {
    color: #6b46c1;
    font-weight: 600;
}

/* FEATURED CONTRACTOR */
.featured-contractor-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
    color: white;
    padding: 0.625rem 1.5rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(246, 173, 85, 0.4);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trophy-icon {
    font-size: 1.375rem;
}

.featured-contractor-wrapper .contractor-card {
    border: 3px solid #f6ad55;
    box-shadow: 0 8px 24px rgba(246, 173, 85, 0.3);
    margin-top: 1rem;
}

/* CONTRACTOR CARDS */
.contractors-grid {
    display: grid;
    gap: 1.5rem;
}

.contractor-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

.contractor-card:hover {
    border-color: #6b46c1;
    box-shadow: 0 8px 16px rgba(107, 70, 193, 0.15);
}

.contractor-card.boosted {
    border-color: #9f7aea;
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.02) 0%, rgba(128, 90, 213, 0.02) 100%);
}

.boosted-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #6b46c1 0%, #805ad5 100%);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    box-shadow: 0 4px 8px rgba(107, 70, 193, 0.3);
    z-index: 5;
}

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.card-header {
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.5rem 1rem;
    gap: 1rem;
}

.business-info {
    flex: 1;
    min-width: 0;
}

.business-name {
    font-size: 1.375rem;
    color: #1a202c;
    margin: 0 0 0.75rem 0;
    font-weight: 600;
    line-height: 1.3;
}

.business-category {
    display: inline-block;
    background: #e9d8fd;
    color: #6b46c1;
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 600;
}

.rating-box {
    align-self: flex-start;
    text-align: left;
}

.rating-link {
    text-decoration: none;
    transition: all 0.2s;
    display: block;
}

.rating-link:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.rating-link:hover .rating-stars {
    color: #ed8936;
}

.rating-stars {
    font-size: 1.5rem;
    color: #f6ad55;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.rating-count {
    font-size: 0.9375rem;
    color: #718096;
}

.card-body {
    padding: 0 1.5rem 1rem;
}

.business-description {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 1.0625rem;
}

.business-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: #4a5568;
    font-size: 1rem;
    min-height: 44px;
}

.meta-item.meta-success {
    color: #22543d;
}

.meta-item.meta-success .meta-icon {
    color: #48bb78;
}

.meta-item.meta-warning {
    color: #744210;
}

.meta-item.meta-warning .meta-icon {
    color: #f6ad55;
}

.meta-item.meta-neutral {
    color: #4a5568;
}

.meta-item.meta-neutral .meta-icon {
    color: #718096;
}

.meta-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.meta-item a {
    color: #6b46c1;
    text-decoration: none;
    font-weight: 500;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.meta-item a:hover {
    text-decoration: underline;
}

/* PERFORMANCE STATS */
.performance-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.stat-item {
    text-align: center;
    padding: 0.75rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.375rem;
}

.stat-label {
    font-size: 0.9375rem;
    color: #718096;
}

.card-footer {
    padding: 1.25rem 1.5rem;
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
}

.view-profile-btn {
    color: #6b46c1;
    font-weight: 600;
    font-size: 1.0625rem;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.contractor-card:hover .view-profile-btn {
    text-decoration: underline;
}

/* PAGINATION */
.browse-pagination {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 2rem 0;
}

.browse-pagination .btn {
    min-height: 56px;
    font-size: 1.0625rem;
    font-weight: 600;
}

.page-numbers {
    display: flex;
    gap: 0.625rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.page-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 1rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    color: #4a5568;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.0625rem;
    transition: all 0.2s;
}

.page-number:hover {
    border-color: #6b46c1;
    background: #faf5ff;
    color: #6b46c1;
}

.page-number.active {
    background: linear-gradient(135deg, #6b46c1 0%, #805ad5 100%);
    color: white;
    border-color: transparent;
}

.page-ellipsis {
    color: #cbd5e0;
    font-weight: 600;
    padding: 0 0.5rem;
}

/* EMPTY STATE - unique elements only (base in components.css) */
.empty-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #4a5568;
    font-weight: 500;
    font-size: 1rem;
}

.feature-icon {
    color: #48bb78;
    font-weight: 700;
    font-size: 1.25rem;
}

/* NO RESULTS */
.no-results {
    background: white;
    border-radius: 12px;
    padding: 3rem 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.no-results h3 {
    font-size: 1.5rem;
    color: #1a202c;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.no-results p {
    font-size: 1.0625rem;
    color: #718096;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.notice {
    background: #fff9e6;
    border: 2px solid #f6ad55;
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.notice p {
    margin: 0;
    color: #744210;
    font-size: 1rem;
    line-height: 1.5;
}

/* DESKTOP OVERRIDES */
@media (min-width: 769px) {
    .browse-contractors-page {
        padding: 2rem 0 4rem;
    }
    
    .page-header {
        margin-bottom: 3rem;
        padding: 2rem 0;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .browse-filters {
        padding: 2.5rem;
        margin-bottom: 3rem;
    }
    
    .filters-top-row {
        grid-template-columns: 2fr 1fr;
    }
    
    .category-grid {
        max-height: 320px;
    }
    
    .tier-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        flex-direction: row;
    }
    
    .filter-actions .btn {
        width: auto;
    }
    
    .results-info {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2rem;
    }
    
    .card-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: start;
    }
    
    .rating-box {
        text-align: right;
        align-self: auto;
    }
    
    .business-meta {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .performance-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .browse-pagination {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 1rem;
    }
    
    .empty-state,
    .no-results {
        padding: 4rem 2rem;
    }
    
    .empty-features {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }
    
    /* Hide modal system on desktop */
    .filter-modal {
        display: none !important;
    }
    
    .floating-filter-btn {
        display: none !important;
    }
    
    .browse-filters {
        display: block !important;
    }
}

/* MODAL FILTER SYSTEM (Mobile Only) */
.filter-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    overflow: hidden;
}

.filter-modal.active {
    display: flex;
    flex-direction: column;
}

.filter-modal-content {
    background: #f7fafc;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.filter-modal-header {
    flex-shrink: 0;
    background: white;
    padding: 1.25rem 1.5rem;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.filter-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #1a202c;
    font-weight: 700;
}

.close-modal-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7fafc;
    border: 2px solid #cbd5e0;
    border-radius: 10px;
    color: #4a5568;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.close-modal-btn:hover,
.close-modal-btn:active {
    background: #fef2f2;
    border-color: #fc8181;
    color: #c53030;
}

/* Modal body scrolls, contains the form on mobile */
.filter-modal-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Form styling adjustments for modal */
.filter-modal-body .browse-filters {
    padding: 1.5rem;
    background: #f7fafc;
    box-shadow: none;
    border-radius: 0;
    margin-bottom: 0;
}

/* Category lists maintain their own scrolling */
.filter-modal .selector-list,
.filter-modal .category-grid {
    max-height: 320px;
    overflow-y: scroll;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

/* Hide modal system on desktop */
@media (min-width: 769px) {
    .filter-modal {
        display: none !important;
    }
    
    .floating-filter-btn {
        display: none !important;
    }
}

/* FLOATING FILTER BUTTON */
.floating-filter-btn {
    position: fixed;
    bottom: 2rem;
    right: 1.5rem;
    background: linear-gradient(135deg, #6b46c1 0%, #805ad5 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: none;
    box-shadow: 0 8px 24px rgba(107, 70, 193, 0.4);
    cursor: pointer;
    z-index: 9998;
    display: none;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.125rem;
    font-weight: 700;
    transition: all 0.3s;
    min-height: 60px;
}

.floating-filter-btn:hover,
.floating-filter-btn:active {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(107, 70, 193, 0.5);
}

.floating-filter-btn svg {
    width: 24px;
    height: 24px;
}

.filter-count {
    background: white;
    color: #6b46c1;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
}

/* RESULTS TOAST NOTIFICATION */
.results-toast {
    position: fixed;
    top: 5rem;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(72, 187, 120, 0.4);
    z-index: 9999;
    display: none;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    opacity: 0;
    transition: all 0.3s ease-out;
}

.results-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.results-toast svg {
    width: 24px;
    height: 24px;
}


/* ========================================== */
/* CONTRACTOR NAME AUTOCOMPLETE */
/* ========================================== */ */

.autocomplete-wrapper {
    position: relative;
    width: 100%;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #cbd5e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: -1px;
}

.autocomplete-item {
    padding: 1rem;
    cursor: pointer;
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.2s;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background-color: #f7fafc;
}

.autocomplete-business-name {
    font-weight: 600;
    color: #1a202c;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.autocomplete-business-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #718096;
}

.autocomplete-business-meta .rating-small {
    color: #f6ad55;
    font-weight: 500;
}

.tier-badge.boosted {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    background: linear-gradient(135deg, #805ad5 0%, #9f7aea 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.helper-text {
    font-size: 0.875rem;
    color: #718096;
    margin-top: 0.5rem;
}

/* Mobile adjustments for autocomplete */
@media (max-width: 768px) {
    .autocomplete-dropdown {
        max-height: 300px;
    }
    
    .autocomplete-item {
        padding: 0.875rem;
        min-height: 64px;
    }
    
    .autocomplete-business-name {
        font-size: 0.95rem;
    }
    
    .autocomplete-business-meta {
        font-size: 0.8rem;
        flex-wrap: wrap;
    }
}

/* ============================================
   SEARCH MODE SELECTOR
   ============================================ */

.search-mode-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.search-mode-section h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: #2d3748;
}

.search-mode-options {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.search-mode-option {
    display: flex;
    cursor: pointer;
    position: relative;
}

.search-mode-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.search-mode-option .mode-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-weight: 500;
    color: #4a5568;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.search-mode-option input[type="radio"]:checked + .mode-label {
    background: linear-gradient(135deg, #6b46c1 0%, #805ad5 100%);
    border-color: #6b46c1;
    color: white;
}

.search-mode-option:hover .mode-label {
    border-color: #6b46c1;
}

.search-mode-option input[type="radio"]:checked + .mode-label svg {
    color: white;
}

.search-mode-option .mode-label svg {
    width: 20px;
    height: 20px;
    color: #6b46c1;
    transition: color 0.2s ease;
}

.tier-section h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tier-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.tier-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.75rem;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    transition: all 0.2s;
}

.tier-checkbox:hover {
    border-color: #f6ad55;
    background: #fffaf0;
}

.tier-checkbox input[type="checkbox"] {
    margin-right: 0.5rem;
}

.tier-checkbox input[type="checkbox"]:checked + .tier-label {
    font-weight: 600;
    color: #c05621;
}

.tier-label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.95rem;
}

.tier-label svg {
    width: 16px;
    height: 16px;
    color: #f6ad55;
}

/* ============================================
   UNCLAIMED BUSINESS STYLING
   ============================================ */

.contractor-card.unclaimed {
    position: relative;
}

.unclaimed-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #78350f;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(251, 191, 36, 0.3);
    z-index: 10;
}

.unclaimed-icon {
    display: flex;
    align-items: center;
}

.unclaimed-icon svg {
    width: 14px;
    height: 14px;
    color: #78350f;
}

.unclaimed-text {
    font-weight: 600;
    letter-spacing: 0.3px;
}

.contractor-card.unclaimed {
    border: 2px solid #fbbf24;
    background: linear-gradient(to bottom, #fffbeb 0%, #ffffff 40px);
}

.contractor-card.unclaimed:hover {
    border-color: #f59e0b;
    box-shadow: 0 8px 16px rgba(251, 191, 36, 0.2);
}

.view-profile-btn.unclaimed-action {
    background: #fbbf24;
    color: #78350f;
}

.view-profile-btn.unclaimed-action:hover {
    background: #f59e0b;
    color: #78350f;
}

.contractor-card.boosted.unclaimed .boosted-badge {
    top: 12px;
    left: 12px;
    right: auto;
}

.contractor-card.boosted.unclaimed .unclaimed-badge {
    top: 12px;
    right: 12px;
}

.contractor-card.unclaimed .card-body {
    background: rgba(251, 191, 36, 0.03);
}

/* Responsive */
@media (max-width: 768px) {
    .search-mode-options {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }
    
    .search-mode-option .mode-label {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .tier-checkboxes {
        grid-template-columns: 1fr 1fr;
    }
    
    .unclaimed-badge {
        top: 8px;
        right: 8px;
        padding: 4px 8px;
        font-size: 0.75rem;
        gap: 4px;
    }
    
    .unclaimed-icon svg {
        width: 12px;
        height: 12px;
    }
    
    .contractor-card.boosted.unclaimed .boosted-badge {
        top: 8px;
        left: 8px;
    }
    
    .contractor-card.boosted.unclaimed .unclaimed-badge {
        top: 40px;
        right: 8px;
    }
}

/* Rating box "No Data" style for unclaimed businesses */
.rating-box.no-data {
    cursor: default;
    opacity: 0.7;
}

.rating-box.no-data .rating-stars svg {
    color: #6c757d;
    width: 16px;
    height: 16px;
}

.rating-box.no-data .rating-count {
    color: #6c757d;
}
