/* ============================================
   providers.css — Find Providers page styles
   ============================================ */

/* ── HERO BANNER ─────────────────────────── */
.prov-hero {
    position: relative;
    height: 340px;
    margin-top: var(--nav-height);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.prov-hero-bg {
    display: none;
}

.prov-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        100deg,
        rgba(16, 45, 96, 0.90) 0%,
        rgba(16, 45, 96, 0.80) 45%,
        rgba(11, 165, 203, 0.65) 100%
    );
}

.prov-hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.prov-hero-content h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
    color: #ffffff;
}

.prov-hero-content p {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: #48cae4;
    font-weight: 400;
}

/* ── MAIN CONTENT SECTION ────────────────── */
.prov-main {
    background: #ffffff;
    padding: 32px 0 72px;
}

/* ── SEARCH + FILTER TOGGLE ROW ──────────── */
.prov-bar-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.prov-search-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.prov-search-icon {
    position: absolute;
    left: 16px;
    color: #94a3b8;
    font-size: 0.95rem;
    pointer-events: none;
}

.prov-search {
    width: 100%;
    height: 48px;
    padding: 0 18px 0 44px;
    border: 1px solid #d1d9e6;
    border-radius: 8px;
    background: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.92rem;
    color: #1e293b;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.prov-search:focus {
    border-color: #102D60;
    box-shadow: 0 0 0 3px rgba(16, 45, 96, 0.10);
}

.prov-search::placeholder { color: #94a3b8; }

/* Filters button */
.prov-filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 20px;
    border: 1.5px solid #d1d9e6;
    border-radius: 8px;
    background: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.25s, background 0.25s;
    flex-shrink: 0;
}

.prov-filter-btn:hover,
.prov-filter-btn.active {
    border-color: #102D60;
    color: #102D60;
}

.prov-filter-chevron {
    font-size: 0.72rem;
    transition: transform 0.25s;
}

.prov-filter-btn.active .prov-filter-chevron {
    transform: rotate(180deg);
}

/* ── FILTER PANEL BOX ────────────────────── */
.prov-filter-panel {
    display: none;
    border: 1px solid #d1d9e6;
    border-radius: 10px;
    padding: 24px 28px 28px;
    margin-bottom: 18px;
    background: #ffffff;
    animation: fadeDown 0.2s ease;
}

.prov-filter-panel.open {
    display: block;
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Filter section rows */
.prov-filter-section {
    margin-bottom: 24px;
}

.prov-filter-section--last {
    margin-bottom: 0;
}

.prov-filter-label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 14px;
}

/* ── SERVICE TYPE BUTTONS ────────────────── */
.prov-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.prov-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 40px;
    padding: 8px 20px;
    border: 1.5px solid #c8d3e3;
    border-radius: 6px;
    background: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.83rem;
    font-weight: 400;
    color: #374151;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
    user-select: none;
}

.prov-pill:hover {
    border-color: #102D60;
    color: #102D60;
}

/* ── SERVICE TYPE — Single select, navy fill on active ── */
#filterService .prov-pill.active {
    border-color: #102D60;
    background: #102D60;
    color: #ffffff;
    font-weight: 600;
}

#filterService .prov-pill:hover:not(.active) {
    border-color: #102D60;
    background: #f0f4ff;
    color: #102D60;
}

/* ── SERVICE AREA — Multi-select, navy outline on active ── */
#filterArea .prov-pill.active {
    border-color: #102D60;
    background: #ffffff;
    color: #102D60;
    font-weight: 600;
}

#filterArea .prov-pill:hover:not(.active) {
    border-color: #102D60;
    background: #f0f4ff;
    color: #102D60;
}

/* ── RATING PILLS ────────────────────────── */
.prov-pill-star {
    min-width: 70px;
    gap: 6px;
}

.prov-pill-star i {
    color: #f59e0b;
    font-size: 0.82rem;
}

#filterRating .prov-pill.active {
    border-color: #f59e0b;
    background: #fffbf0;
    color: #92400e;
    font-weight: 600;
}

#filterRating .prov-pill.active i {
    color: #f59e0b;
}

#filterRating .prov-pill:hover:not(.active) {
    border-color: #f59e0b;
    background: #fffdf5;
    color: #92400e;
}

/* ── PRICE RANGE SLIDER ──────────────────── */
.prov-price-range {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 400px;
}

.prov-range-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: #d1d9e6;
    outline: none;
    cursor: pointer;
}

.prov-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #1e293b;
    cursor: pointer;
    border: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

.prov-range-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #1e293b;
    cursor: pointer;
    border: none;
}

.prov-price-label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.80rem;
    color: #64748b;
    margin-top: 4px;
}

/* ── RESULT COUNT ────────────────────────── */
.prov-count {
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    color: #374151;
    font-weight: 400;
    margin: 0 0 20px 0;
}

/* ── PROVIDER CARDS GRID ─────────────────── */
.prov-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ── PROVIDER CARD ──────────────────────── */
.prov-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1.5px solid #0a2d5e;
    border-radius: 18px;
    padding: 22px 22px 20px;
    transition: box-shadow 0.25s, transform 0.25s;
}

.prov-card:hover {
    box-shadow: 0 8px 24px rgba(10, 45, 94, 0.14);
    transform: translateY(-2px);
}

/* top row: photo + name/verified/rating */
.prov-card-toprow {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
}

.prov-card-photo {
    width: 96px;
    height: 96px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e8edf5;
}

.prov-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.prov-card:hover .prov-card-photo img {
    transform: scale(1.06);
}

.prov-card-headinfo {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding-top: 2px;
}

.prov-card-name {
    font-family: 'Baloo 2', 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0a0a0a;
    line-height: 1.25;
    margin-bottom: 6px;
}

.prov-verified {
    display: inline-flex;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    font-size: 0.84rem;
    font-weight: 500;
    color: #017B6E;
    margin-bottom: 8px;
    width: fit-content;
}

.prov-card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.84rem;
    font-weight: 600;
    color: #0a0a0a;
}

.prov-card-rating i { color: #f59e0b; font-size: 0.85rem; }
.prov-card-rating span { font-size: 0.88rem; font-weight: 400; color: #333333; }

.prov-card-divider {
    height: 1px;
    background: #d9d9d9;
    margin: 14px 0 14px 0;
}

.prov-card-tags {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 18px;
    overflow: hidden;
}

.prov-tag {
    font-family: 'Poppins', sans-serif;
    font-size: 0.80rem;
    font-weight: 400;
    color: #1a1a1a;
    white-space: nowrap;
}

.prov-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.prov-card-area {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.77rem;
    font-weight: 500;
    color: #1a1a1a;
}

.prov-card-area i { color: #1a1a1a; font-size: 0.8rem; }

.prov-view-btn {
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: #02061b;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.2s;
    flex-shrink: 0;
}

.prov-view-btn:hover { color: #0a2d5e; }

/* ── EMPTY STATE ─────────────────────────── */
.prov-empty {
    text-align: center;
    padding: 72px 24px;
    color: #64748b;
}

.prov-empty i {
    font-size: 2.4rem;
    color: #c8d3e3;
    margin-bottom: 16px;
    display: block;
}

.prov-empty p {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    margin-bottom: 20px;
}

.prov-clear-btn {
    height: 38px;
    padding: 0 20px;
    border: 1px solid #d1d9e6;
    border-radius: 6px;
    background: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.prov-clear-btn:hover { border-color: #102D60; color: #102D60; }

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 1024px) {
    .prov-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .prov-hero { height: 240px; }
    .prov-hero-content h1 { font-size: 1.6rem; }
    .prov-bar-inner { flex-wrap: wrap; }
    .prov-search-wrap { min-width: 100%; }
    .prov-filter-btn { width: 100%; justify-content: center; }
    .prov-grid { grid-template-columns: 1fr; }
    .prov-filter-panel { padding: 18px 16px; }
}

@media (max-width: 480px) {
    .prov-card-photo { width: 76px; height: 76px; }
    .prov-hero { height: 200px; }
}