/* Additional specific styles */

/* Bottom pane for parcel info */
.bottom-pane {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--gray-200);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform var(--transition-slow);
    z-index: var(--z-panels);
    max-height: 60vh;
    overflow-y: auto;
}

.bottom-pane.active {
    transform: translateY(0);
}

/* Advanced filters specific styling */
.multiselect-filter {
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 4px;
    background: white;
}

.multiselect-search {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 12px;
    margin-bottom: 8px;
    background: white;
    transition: all var(--transition-fast);
    outline: none;
}

.multiselect-search:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(34, 119, 181, 0.1);
}

.multiselect-search::placeholder {
    color: var(--gray-400);
}

.checkbox-option {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    cursor: pointer;
    font-size: 13px;
    gap: 10px; /* Space between checkbox and text */
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast);
    margin-bottom: 4px;
}

/* Ensure gap works for flex children */
.checkbox-option input[type="checkbox"] {
    margin-right: 10px; /* Fallback for browsers that don't support gap */
}

.checkbox-option:hover {
    background: rgba(34, 119, 181, 0.08);
}

/* Modern checkbox styling */
.checkbox-option input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--gray-300);
    border-radius: 4px;
    background: white;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all var(--transition-fast);
    margin: 0; /* Reset default margin */
    margin-right: 10px; /* Explicit spacing to text */
}

.checkbox-option input[type="checkbox"]:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-option input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-option input[type="checkbox"]:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(34, 119, 181, 0.1);
}

.checkbox-option span {
    user-select: none;
    color: var(--gray-700);
    line-height: 1.4;
}

.range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.range-inputs input {
    width: calc(50% - 4px);
    padding: 6px 10px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 12px;
}

.range-inputs span {
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 500;
}

@media (max-width: 767px) {
    .range-inputs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .range-inputs input {
        width: 100%;
    }
}

/* Modern reset button */
.reset-advanced-filters {
    width: 100%;
    padding: 10px 16px;
    margin-top: 12px;
    background: linear-gradient(135deg, var(--primary-color), #1a5f8a);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 4px rgba(34, 119, 181, 0.2);
}

.reset-advanced-filters:hover {
    background: linear-gradient(135deg, var(--primary-hover), #15507a);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(34, 119, 181, 0.3);
}

.reset-advanced-filters:active {
    transform: translateY(0);
}

/* Modern select/dropdown styling */
.boolean-filter,
select {
    width: 100%;
    padding: 8px 12px;
    padding-right: 32px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: white;
    font-size: 13px;
    color: var(--gray-700);
    cursor: pointer;
    transition: all var(--transition-fast);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
}

.boolean-filter:hover,
select:hover {
    border-color: var(--primary-color);
}

.boolean-filter:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(34, 119, 181, 0.1);
}

/* Modern text input styling */
.text-filter,
input[type="text"]:not(.search-input),
input[type="number"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: white;
    font-size: 13px;
    color: var(--gray-700);
    transition: all var(--transition-fast);
}

.text-filter:hover,
input[type="text"]:not(.search-input):hover,
input[type="number"]:hover {
    border-color: var(--gray-300);
}

.text-filter:focus,
input[type="text"]:not(.search-input):focus,
input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(34, 119, 181, 0.1);
}

.text-filter::placeholder,
input[type="text"]:not(.search-input)::placeholder,
input[type="number"]::placeholder {
    color: var(--gray-400);
}

/* Project badge */
.project-badge {
    background-color: var(--secondary-color);
    color: white;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    margin-top: var(--spacing-xs);
    display: inline-block;
}