.lpwp-finder {
    --lpwp-finder-border: #dfe3e7;
    --lpwp-finder-surface: #f7f8f9;
    --lpwp-finder-text: #27323b;
    --lpwp-finder-accent: #177a42;
    margin-block: 2rem;
    color: var(--lpwp-finder-text);
}

.lpwp-finder-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid #b9d9c7;
    border-radius: 8px;
    background: #f1faf5;
}

.lpwp-finder-submit h2,
.lpwp-finder-submit p {
    margin: 0;
}

.lpwp-finder-submit h2 {
    font-size: 1.15rem;
}

.lpwp-finder-submit p {
    margin-top: 0.25rem;
}

.lpwp-finder-submit a {
    flex: 0 0 auto;
    padding: 0.7rem 1.1rem;
    border-radius: 5px;
    background: var(--lpwp-finder-accent);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.lpwp-finder-form {
    padding: clamp(1rem, 3vw, 1.5rem);
    border: 1px solid var(--lpwp-finder-border);
    border-radius: 8px;
    background: var(--lpwp-finder-surface);
}

.lpwp-finder-primary,
.lpwp-finder-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.lpwp-finder-form label > span,
.lpwp-finder-requirements legend {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 650;
}

.lpwp-finder-form input[type="search"],
.lpwp-finder-form select {
    width: 100%;
    min-height: 2.75rem;
}

.lpwp-finder-more {
    margin-top: 1rem;
}

.lpwp-finder-more summary {
    cursor: pointer;
    font-weight: 700;
}

.lpwp-finder-more[open] summary {
    margin-bottom: 1rem;
}

.lpwp-finder-requirements {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin: 1rem 0 0;
    padding: 0;
    border: 0;
}

.lpwp-finder-requirements legend {
    width: 100%;
}

.lpwp-finder-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.25rem;
}

.lpwp-finder-actions button {
    padding: 0.7rem 1.1rem;
    border: 0;
    border-radius: 5px;
    background: var(--lpwp-finder-accent);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.lpwp-finder-count {
    margin-block: 1.5rem 1rem;
}

.lpwp-finder-results {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.lpwp-route-card {
    overflow: hidden;
    border: 1px solid var(--lpwp-finder-border);
    border-radius: 8px;
    background: #fff;
}

.lpwp-route-card--closed {
    border-color: #e8a29c;
    background: #fff4f3;
}

.lpwp-route-card--closed .lpwp-status--closed {
    border-color: #b42318;
    background: #b42318;
    color: #fff;
}

.lpwp-route-card--closed .lpwp-route-card-link {
    color: #8f1c13;
}

.lpwp-route-card-image {
    display: block;
    aspect-ratio: 16 / 10;
    background: var(--lpwp-finder-surface);
}

.lpwp-route-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lpwp-route-card-body {
    padding: 1rem;
}

.lpwp-route-card h2 {
    margin: 0;
    font-size: 1.25rem;
}

.lpwp-route-card .lpwp-route-summary {
    margin-block: 0.8rem;
}

.lpwp-route-card-link {
    font-weight: 700;
}

.lpwp-finder-empty {
    padding: 2rem;
    border: 1px dashed var(--lpwp-finder-border);
    text-align: center;
}

.lpwp-finder-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.lpwp-finder-pagination a,
.lpwp-finder-pagination .current {
    display: inline-flex;
    min-width: 2.4rem;
    min-height: 2.4rem;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.65rem;
    border: 1px solid var(--lpwp-finder-border);
    border-radius: 4px;
}

.lpwp-finder-pagination .current {
    border-color: var(--lpwp-finder-accent);
    background: var(--lpwp-finder-accent);
    color: #fff;
}

@media (max-width: 900px) {
    .lpwp-finder-results,
    .lpwp-finder-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .lpwp-finder-submit {
        align-items: stretch;
        flex-direction: column;
    }

    .lpwp-finder-submit a {
        text-align: center;
    }

    .lpwp-finder-primary,
    .lpwp-finder-grid,
    .lpwp-finder-results {
        grid-template-columns: 1fr;
    }
}
