/* ============================================================
   Practitioner Directory — directory.css v1.1
   ============================================================ */

.pd-wrap {
    max-width: 1340px;
    margin: 0 auto;
    padding: 40px 20px;
}

.pd-wrap-2 {

	background: #F7F7F7;
}

.pd-header {
    text-align: center;
    margin-bottom: 32px;
	padding: 50px 20px 0px;
}

.pd-header__title-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 6px;
}

.pd-header__line {
    flex: 1;
    height: 1px;
    background: #E5E5E5;
}

.pd-title {
    font-size: 2rem;
    margin: 0;
    white-space: nowrap;
    color: #3a6b35;
	font-weight: 600;
}

.pd-subtitle {
    color: #666;
    margin: 0;
}
.pd-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pd-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 0;
}


.pd-wrap-2 {

	background: #F7F7F7;
}

.pd-input {
    flex: 1 1 200px;
    width: 250px !important;
    padding: 20px 18px 20px 42px !important;
    border: 1.5px solid #e0e0e0;
    border-radius: 50px !important;
    font-size: 0.95rem;
    background-color: #f9f9f9;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 14px center;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
    outline: none;
}

.pd-input:focus {
    border-color: #3a6b35;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(58, 107, 53, 0.1);
}

.pd-remote-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
}

/* ── Two-column layout ── */
.pd-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

/* ── Left sidebar filters ── */
.pd-sidebar-filters {
    flex: 0 0 200px;
    position: sticky;
    top: 24px;
}

.pd-filter-group {
    margin-bottom: 28px;
}

.pd-filter-heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #4A8046;
    margin-bottom: 10px;
}

.pd-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pd-filter-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid #ccc;
    border-radius: 100px;
    cursor: pointer;
    flex-shrink: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: border-color 0.15s;
}

.pd-filter-label input[type="checkbox"]:checked {
    border-color: #3a6b35;
    background-image: url('https://arapoh.org/wp-content/uploads/2018/11/watermark.png');
    background-color: #fff;
}
.pd-filter-label input[type="checkbox"]:checked + span,
.pd-filter-label:has(input:checked) {
    color: #3a6b35;
    font-weight: 700;
}

#pd-remote {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid #ccc;
    border-radius: 100px;
    cursor: pointer;
    flex-shrink: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: border-color 0.15s;
}

#pd-remote:checked {
    border-color: #3a6b35;
    background-image: url('https://arapoh.org/wp-content/uploads/2018/11/watermark.png');
    background-color: #fff;
}


.pd-remote-label{
    font-weight: 600;
}


.pd-remote-label:has(input:checked) {
    color: #3a6b35;
    font-weight: 700;
}

.pd-filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    cursor: pointer;
    color: #444;
}
.pd-filter-label:hover { color: #000; }
.pd-filter-label input { cursor: pointer; }

/* ── Grid — takes remaining space ── */
.pd-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat( auto-fill, minmax(300px, 1fr) );
    gap: 24px;
    min-width: 0;
}

/* ── Card ── */
.pd-card {
    padding: 22px 24px;
    border: 1px solid white;
    background: #fff;
	box-shadow: -5px 5px 12px 3px rgb(0 0 0 / 12%);
    transition: box-shadow .2s ease, border-color .2s ease;
}
.pd-card:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,.09);
    border-color: #bbb;
}

.pd-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.pd-card__name {
    font-size: 1.1rem;
    margin: 0;
	font-weight: 600;
    line-height: 1.3;
    color: #4A8046;
}

.pd-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}
.pd-badge--remote {
    background: #e6f4ea;
    color: #2d6a4f;
}

.pd-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.pd-meta-item {
    font-size: 0.82rem;
    color: #555;
    background: #f0f0f0;
    padding: 3px 10px;
    border-radius: 20px;
}

.pd-card__description {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.5;
    margin-bottom: 10px;
}

.pd-card__contact {
    font-size: 0.85rem;
    color: #666;
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 8px;
}

.pd-grid.is-loading { opacity: 0.5; pointer-events: none; }

.pd-no-results {
    grid-column: 1 / -1;
    text-align: center;
    color: #888;
    padding: 40px;
}

/* ── Ad sidebar (future) ── */
.pd-ad-sidebar {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

/* ── Single profile ── */
.pd-single-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 20px;
}
.pd-back {
    display: inline-block;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: #555;
    text-decoration: none;
}
.pd-back:hover { color: #000; }

.pd-single__header { margin-bottom: 28px; }
.pd-single__header h1 { font-size: 1.8rem; margin-bottom: 12px; }
.pd-single__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.pd-single__meta span {
    font-size: 0.85rem;
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 20px;
    color: #444;
}

.pd-single__bio,
.pd-single__contact {
    margin-bottom: 28px;
    line-height: 1.7;
    color: #333;
}
.pd-single__contact h2 { font-size: 1rem; margin-bottom: 8px; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .pd-layout {
        flex-direction: column;
    }
    .pd-sidebar-filters {
        position: static;
        flex: none;
        width: 100%;
    }
}
@media (max-width: 600px) {
    .pd-grid { grid-template-columns: 1fr; }
    .pd-filters {         
		justify-content: space-between;
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
	}
	
    .pd-input { flex: 1 1 100%; }
}

/* ============================================================
   Single Practitioner — updated styles
   ============================================================ */

.pd-single-wrap {
    max-width: 780px;
    margin: 0 auto;
    padding: 32px 20px 60px;
}

.pd-back {
    display: inline-block;
    margin-bottom: 28px;
    font-size: 0.85rem;
    color: #666;
    text-decoration: none;
    letter-spacing: 0.01em;
}
.pd-back:hover { color: #2d5a27; }

/* Hero header */
.pd-single__hero {
    display: flex;
    align-items: center;
    gap: 24px;
    background: #3a6b35;
    padding: 28px 32px;
    margin-bottom: 0;
}

.pd-single__avatar {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.05em;
}

.pd-single__hero-info { flex: 1; }

.pd-single__name {
    font-size: 1.6rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.2;
}

.pd-single__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pd-single__tag {
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255,255,255,0.18);
    color: #fff;
}

.pd-single__tag--modality {
    background: rgba(255,255,255,0.28);
    font-weight: 500;
}

.pd-single__tag--remote {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.4);
}

/* Body sections */
.pd-single__body {
    border: 1px solid #e4e4e4;
    border-top: none;
    overflow: hidden;
}

.pd-single__section {
    padding: 28px 32px;
    border-bottom: 1px solid #eee;
}
.pd-single__section:last-child { border-bottom: none; }

.pd-single__section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #3a6b35;
    margin: 0 0 12px;
}

.pd-single__bio {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.75;
    margin: 0;
}

.pd-single__section--contact {
    background: #f9f9f9;
}

.pd-single__contact-info {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.8;
}


/* Responsive */
@media (max-width: 560px) {
    .pd-single__hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px 20px;
        gap: 16px;
    }
    .pd-single__section { padding: 22px 20px; }
}

/* ── Mobile filter toggle button ── */
.pd-filter-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: #fff;
    border: 1px solid #4A8046;
    font-size: 0.9rem;
	color: #4A8046;
    cursor: pointer;
    margin-bottom: 16px;
}
.pd-filter-toggle .pd-filter-count {
    background: #3a6b35;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 20px;
    display: none;
}
.pd-filter-toggle .pd-filter-count.is-visible {
    display: inline-block;
}

/* ── Sidebar drawer ── */
.pd-sidebar-filters {
    flex: 0 0 200px;
    position: sticky;
    top: 24px;
}

   @media (min-width: 769px) {
    .pd-filter-toggle {
        display: none !important;
    }
}

/* ── Header responsive ── */
@media (max-width: 600px) {
    .pd-header__title-row {
        gap: 12px;
    }
    .pd-title {
        font-size: 1.4rem;
    }
    .pd-header__line {
        min-width: 20px;
    }
    .pd-subtitle {
        font-size: 0.85rem;
    }
}

/* ── Mobile layout ── */
@media (max-width: 768px) {
    .pd-layout {
        flex-direction: column;
    }

    .pd-filter-toggle {
        display: contents;
    }

    .pd-sidebar-filters {
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        max-width: 300px;
        height: 100%;
        background: #fff;
        z-index: 9999;
        padding: 24px 20px;
        overflow-y: auto;
        box-shadow: 4px 0 20px rgba(0,0,0,0.15);
        transform: translateX(-110%);
        transition: transform 0.25s ease;
    }
    .pd-sidebar-filters.is-open {
        transform: translateX(0);
    }

    .pd-sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.35);
        z-index: 9998;
    }
    .pd-sidebar-overlay.is-open {
        display: block;
    }

    .pd-sidebar-close {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }
    .pd-sidebar-close span {
        font-size: 0.95rem;
        font-weight: 500;
    }
    .pd-sidebar-close button {
        background: none;
        border: none;
        font-size: 1.3rem;
        cursor: pointer;
        color: #666;
        padding: 0;
        line-height: 1;
    }

    .pd-grid {
        grid-template-columns: 1fr;
    }

    

    .pd-input {
        width: 100% !important;
    }
}