
/* This sets up the main row and handles spacing */
.filter-controls-row {
    display: flex;
    align-items: center;
    max-width: 900px;
    margin: 1.5rem auto;
    padding: 0 1rem;
    gap: 2rem;
}

/* This tells the gender buttons to never wrap to a new line */
.filter-controls-row .gender-selector {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
}

/* This pushes the Compare button all the way to the right */
.filter-controls-row .compare-button {
    margin-left: auto;
}

/*
 * This is the SINGLE SOURCE OF TRUTH for all button-like elements in the row.
 * It creates a consistent look for every button.
*/
.filter-controls-row .gender-option,
.filter-controls-row .compare-button,
.filter-controls-row .region-selector label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0px 16px;
    height: 44px;
    box-sizing: border-box;
    border: 1px solid #444;
    border-radius: 8px;
    background-color: #282828;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
}

/* A single, unified style for the ACTIVE state */
.filter-controls-row .gender-option.active,
.filter-controls-row input[type="radio"]:checked + label {
    background-color: #58d68d; /* Green accent */
    border-color: #58d68d;
    color: #1a1a1a;
    font-weight: bold;
}

/* A single, unified style for HOVER states */
.filter-controls-row .gender-option:hover,
.filter-controls-row .compare-button:hover,
.filter-controls-row .region-selector label:hover {
    border-color: #aaa;
    background-color: #3a3a3a;
}

/*
 * This rule targets all filter buttons and reduces their size for a more compact look.
 * The '!important' declaration helps ensure these styles apply over any conflicting rules.
*/
.filter-controls-row .gender-option,
.filter-controls-row .region-selector label,
.filter-controls-row .compare-button {
    height: 36px !important;           /* Original was 44px */
    padding: 0 14px !important;        /* Reduces the button width */
    font-size: 13px !important;          /* Makes the text slightly smaller */
}

/* The container no longer needs margin or unique font settings */
.region-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Hide the actual radio input */
.region-selector input[type="radio"] {
    display: none;
}
