
/* ===============================
   WRAPPERS
================================= */
.provider-search-wrapper,
.provider-results-wrapper {
    max-width: 520px;
    margin: 50px auto;
    padding: 25px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* ===============================
   TITLES
================================= */
.form-title,
.results-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 700;
    color: #222;
}

/* ===============================
   SEARCH FORM
================================= */
.provider-search-form .form-group {
    margin-bottom: 18px;
}

.provider-search-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
}

.provider-search-form input,
.provider-search-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 18px;
    background: #fafafa;
    transition: 0.2s ease;
}

.provider-search-form input:focus,
.provider-search-form select:focus {
    border-color: #0073aa;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.1);
}

/* ===============================
   SEARCH BUTTON
================================= */
.search-btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #0073aa, #005f8d);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,115,170,0.25);
}

/* ===============================
   FILTER BUTTON
================================= */
.filter-toggle-btn {
    width: 100%;
    padding: 12px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 10px;
    transition: 0.2s ease;
}

.filter-toggle-btn:hover {
    background: #005f8d;
}

/* ===============================
   FILTER PANEL
================================= */
.filter-panel {
    display: none;
    padding: 15px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 20px;
}

.filter-panel.active {
    display: block;
}

/* ===============================
   PILL FILTERS (NEW UI)
================================= */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
    user-select: none;
}

.filter-pill input {
    display: none;
}

.filter-pill:hover {
    border-color: #0073aa;
    color: #0073aa;
}

.filter-pill.active {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
}

/* ===============================
   RESULT CARDS
================================= */
.provider-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.provider-result-card {
    padding: 18px;
    margin-bottom: 15px;
    border-radius: 14px;
    background: #fafafa;
    border: 1px solid #eee;
    transition: 0.2s ease;
}

.provider-card-link:hover .provider-result-card {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(0,0,0,0.12);
    background: #fff;
}

/* ===============================
   CARD HEADER
================================= */
.provider-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.provider-result-card h4 {
    margin: 0;
    font-size: 18px;
    color: #222;
}

/* ===============================
   DISTANCE BADGE
================================= */
.distance {
    font-size: 13px;
    font-weight: 700;
    color: #0073aa;
    background: rgba(0,115,170,0.08);
    padding: 4px 8px;
    border-radius: 8px;
}

/* ===============================
   META TEXT
================================= */
.provider-meta {
    margin: 6px 0;
    font-size: 14px;
    color: #666;
}

.provider-meta + .provider-meta {
    border-top: 1px solid #eee;
    padding-top: 6px;
}

/* ===============================
   RATING
================================= */
.provider-rating {
    font-size: 13px;
    margin: 8px 0;
    font-weight: 700;
    color: #333;
    background: #f5f5f5;
    padding: 6px 10px;
    border-radius: 8px;
    display: inline-block;
}

/* ===============================
   ACTIONS
================================= */
.provider-actions {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-btn {
    font-weight: 700;
    color: #0073aa;
}

.map-link {
    font-size: 13px;
    color: #555;
    text-decoration: underline;
}

/* ===============================
   SINGLE PAGE
================================= */
.provider-single-wrapper {
    max-width: 800px;
    margin: 40px auto;
    padding: 25px;
}

.provider-title {
    font-size: 32px;
    margin-bottom: 15px;
}

.provider-details {
    margin-top: 20px;
    padding: 18px;
    background: #f9f9f9;
    border-radius: 12px;
}

.provider-details p {
    margin: 8px 0;
}

.provider-map {
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
}

/* ===============================
   LINKS
================================= */
.provider-link {
    text-decoration: none;
    color: #0073aa;
    font-weight: 600;
}

.provider-link:hover {
    text-decoration: underline;
    color: #005f8d;
}

/* ===============================
   MESSAGES
================================= */
.provider-results-wrapper p {
    text-align: center;
    color: #777;
}

/* ===============================
   MOBILE
================================= */
@media (max-width: 600px) {

    .provider-search-wrapper,
    .provider-results-wrapper {
        margin: 20px;
        padding: 20px;
    }

    .form-title,
    .results-title {
        font-size: 20px;
    }

    .provider-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}