/**
 * Filter Section Styles
 */

.filter-wrapper {
    margin: 0;
   
}

.filter-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.filter-item {
    margin-bottom: 1rem;
    width: 100%;
}

.filter-item label {
    display: block;
    font-family: var(--font-heading-primary);
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 8px;
    text-transform: uppercase;
    color: #fff;
}

.filter-item .select-wrapper {
    position: relative;
    display: flex;
    width: 100%;
    border-radius: var(--border-radius-primary);
    overflow: hidden;
}

.county-select,
.year-select {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 2px solid var(--color-yellow);
    border-right: none;
    border-radius: var(--border-radius-primary) 0 0 var(--border-radius-primary);
    font-size: 16px;
    background-color: #000;
    color: #fff;
    font-family: var(--font-heading-primary);
    font-weight: bold;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.county-select:focus,
.year-select:focus {
    outline: none;
    box-shadow: 0 0 8px 2px var(--color-pink);
}

.filter-item .select-wrapper::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 40px;
    height: 100%;
    background-color: var(--color-yellow);
    border-radius: 0 var(--border-radius-primary) var(--border-radius-primary) 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.filter-item .select-wrapper::before {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    width: 10px;
    height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 7 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.4615 9.512V7.528L4.6535 5.192L0.4615 2.84V0.856L6.7335 4.312V6.072L0.4615 9.512Z' fill='%23000000'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    transform: translateY(-50%) rotate(90deg);
    z-index: 1;
}

/* Reset button styling */
.reset-filters-btn {
    padding: 7px;
    text-transform: uppercase;
    font-family: var(--font-heading-primary);
    white-space: nowrap;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    background-color: var(--color-yellow);
    color: #000;
    border: 2px solid var(--color-yellow);
    transition: all 0.2s ease;
    height: 100%;
    min-height: 46px; /* Match the height of the dropdowns */
}

.reset-filters-btn:hover {
    background-color: #fff;
    border-color: var(--color-yellow);
}

.reset-filters-btn:focus {
    outline: none;
    box-shadow: 0 0 8px 2px var(--color-pink);
}

@media (min-width: 768px) {
    .filter-container {
        flex-direction: row;
        align-items: flex-end;
        gap: 1.5rem;
        width: 100%;
        justify-content: flex-start;
    }
    
    .filter-item {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .filter-item:first-child {
        width: 250px;
    }
    
    .filter-item:nth-child(2) {
        width: 150px;
    }
    
    .reset-button-container {
        width: auto;
        display: flex;
        align-items: flex-end;
    }
}
