.search-layout-main {
    display: flex;
    height: calc(100vh - 64px);
    margin-top: 64px;
}

.results-panel {
    width: 420px;
    flex-shrink: 0;
    padding: 20px;
    overflow-y: auto;
    background: var(--bg);
    border-right: 1px solid var(--border);
}

.map-panel {
    flex: 1;
    position: relative;
}

#map {
    width: 100%;
    height: 100%;
}

.map-toggle {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1000;
    background: rgba(250, 246, 240, .95);
    border: 1px solid var(--border);
    padding: 10px 14px;
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
}

.map-toggle label {
    font-size: .78rem;
    font-weight: 600;
    color: var(--text);
    margin-right: 6px;
}

.map-toggle select {
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 4px 8px;
    font-size: .78rem;
    font-family: var(--font-body);
    outline: none;
    color: var(--text);
}

.search-result-card {
    display: flex;
    gap: 12px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    padding: 14px;
    margin-bottom: 10px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition);
}

.search-result-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.search-result-icon {
    width: 50px;
    height: 50px;
    background: var(--surface-2);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.search-result-icon .material-icons {
    font-size: 24px;
    color: white;
}

/* Category Colors */
.cat-1 { background: #FF4D4D !important; }
.cat-2 { background: #3B82F6 !important; }
.cat-3 { background: #EC4899 !important; }
.cat-4 { background: #10B981 !important; }
.cat-5 { background: #8B5CF6 !important; }
.cat-6 { background: #06B6D4 !important; }
.cat-7 { background: #D97706 !important; }
.cat-8 { background: #475569 !important; }
.cat-9 { background: #EAB308 !important; }
.cat-10 { background: #6366F1 !important; }

.results-count {
    font-size: .82rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 14px;
}

/* Interactive Filter Dropdowns */
.filter-group {
    margin-bottom: 12px;
}

.filter-label {
    display: block;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.filter-dropdown {
    position: relative;
    width: 100%;
}

.filter-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    cursor: pointer;
    font-size: .88rem;
    color: var(--text);
    transition: all .2s;
    height: 44px;
    position: relative;
    gap: 8px;
}

.filter-dropdown-trigger span.trigger-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    font-size: 0.82rem;
}

.filter-dropdown-trigger .selected-count {
    background: var(--primary);
    color: white;
    font-size: .65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
    flex-shrink: 0;
}

.filter-dropdown-trigger:hover {
    border-color: var(--primary);
}

.filter-dropdown.open .filter-dropdown-trigger {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11, 138, 75, 0.1);
}

.filter-dropdown-trigger::after {
    content: 'expand_more';
    font-family: 'Material Icons';
    font-size: 18px;
    color: var(--text-muted);
    transition: transform .3s;
    flex-shrink: 0;
}

.filter-dropdown.open .filter-dropdown-trigger::after {
    transform: rotate(180deg);
}

.btn-clear-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--text-muted);
    transition: all .2s;
    cursor: pointer;
    border: none;
    flex-shrink: 0;
}

.btn-clear-filter:hover {
    background: #fee2e2;
    color: #dc2626;
}

.btn-clear-filter .material-icons {
    font-size: 14px;
    font-weight: bold;
}

.filter-dropdown-content {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    padding: 10px;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.filter-dropdown.open .filter-dropdown-content {
    display: block;
    animation: slideDown .2s ease-out;
}

.dropdown-category-title {
    padding: 8px 10px 4px;
    font-size: .7rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    border-bottom: 1px solid var(--surface-2);
    margin-bottom: 4px;
    pointer-events: none;
    user-select: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    cursor: pointer;
    color: var(--text);
    padding: 8px 10px;
    border-radius: var(--r-sm);
    transition: background .2s;
}

.filter-checkbox:hover {
    background: var(--bg);
}

.filter-checkbox input {
    accent-color: var(--primary);
    width: 17px;
    height: 17px;
    cursor: pointer;
}

.filter-checkbox span {
    flex: 1;
}

.selected-count {
    background: var(--primary);
    color: white;
    font-size: .7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
}

.subcat-count {
    font-size: .58rem;
    font-weight: 800;
    min-width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    padding: 0 3px;
    background: var(--bg-alt);
    color: var(--text-muted);
    flex-shrink: 0;
    margin-left: auto;
}
.subcat-count.has-results {
    background: #DCFCE7 !important;
    color: #166534 !important;
}

.search-filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #E8F5EE;
    border: 1px solid #0B8A4B;
    color: #066B39;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.search-filter-badge .material-icons {
    font-size: 14px;
}

.search-filter-badge a {
    color: #066B39;
    font-weight: 700;
    text-decoration: none;
    margin-left: 4px;
    font-size: 1rem;
    line-height: 1;
}

.search-filter-badge a:hover {
    color: #c0392b;
}

@media (max-width: 768px) {
    .search-layout-main {
        flex-direction: column;
        height: auto;
    }

    .results-panel {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .map-panel {
        height: 300px;
    }
}

/* Keyword Clear Button */
.keyword-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.btn-keyword-clear {
    position: absolute;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--surface-2);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all .2s;
    z-index: 5;
}

.btn-keyword-clear:hover {
    background: #fee2e2;
    color: #dc2626;
}

.btn-keyword-clear .material-icons {
    font-size: 16px;
    font-weight: bold;
}
/* User Location Marker */
.user-location-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-dot {
    width: 12px;
    height: 12px;
    background: #4285F4;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
    z-index: 2;
}

.user-pulse {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(66, 133, 244, 0.3);
    border-radius: 50%;
    animation: pulse 2s infinite ease-out;
    z-index: 1;
}

@keyframes pulse {
    0% {
        transform: scale(0.1);
        opacity: 1;
    }
    70% {
        transform: scale(1);
        opacity: 0.2;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}
