/* gp: good practice */

/* Main filter container */

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

/* --- HORIZONTAL FILTER BAR --- */

.gp-filter {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 12px;
}

/* Search field */
.gp-search input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: border 0.2s ease;
}

.gp-search input:focus {
    outline: none;
    border-color: #000;
	
}

/* Controls row (dropdowns + button) */
.gp-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

/* Dropdown wrapper */
.gp-dropdown {
    position: relative;
}

.gp-dropdown label {
    display: block;
    padding: 6px 10px;
    cursor: pointer;
    color: #000;
}

.gp-dropdown label:hover {
    background: #f8f8f8;;
    color: #000 !important;
	border-radius: 8px;
}

/* Dropdown toggle button */
.gp-toggle {
	color: black;
    padding: 10px 14px;
	background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    appearance: none;
    -webkit-appearance: none;
}

.gp-toggle:hover,
.gp-toggle:focus,
.gp-toggle:active {
    color: #fff !important;
    outline: none;
	background: #000;
}


/* Dropdown panel */
.gp-options {
    display: none;
    position: absolute;
    top: 110%;
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    min-width: 240px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    z-index: 100;
}

.gp-options label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

/* Filter button */
.gp-submit {
    padding: 10px 18px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.gp-submit:hover,
.gp-submit:focus,
.gp-submit:active {
    background: #d40000 !important;
    color: #fff !important;
}

/* Active filter pills */
.gp-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.gp-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f2f2f2;
    color: #000 !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    transition: background-color 0.2s ease;
}

.gp-pill:hover {
    background: #e5e5e5;
    color: #000 !important;
}

.gp-pill-close {
    font-size: 16px;
    line-height: 1;
}

.gp-pill-reset {
    background: #d40000;
    color: #fff !important;
}

.gp-pill-reset:hover {
    background: #000;
    color: #fff !important;
}

/* Mobile */
@media (max-width: 768px) {
    .gp-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .gp-dropdown,
    .gp-submit {
        width: 100%;
    }
}