/* ===== Provider Finder — scoped styles ===== */

/* Screen-reader-only text (labels for accessibility) */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    word-wrap: normal !important;
}

/* Design tokens */
:root {
    --pchp-purple-600: #7C3AED;
    --pchp-purple-700: #6D28D9;
    --pchp-indigo-600: #4F46E5;
    --pchp-blue-500: #3B82F6;
    --pchp-slate-900: #1e293b;
    --pchp-slate-600: #4B5563;
    --pchp-gray-200: #E5E7EB;
    --pchp-gray-400: #9CA3AF;
    --pchp-bg: #f9f6fe;
}

/* Scoped box-sizing */
#pchp-provider-finder,
#pchp-provider-finder *,
#pchp-provider-finder *::before,
#pchp-provider-finder *::after {
    box-sizing: border-box;
}
#pchp-provider-finder {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--pchp-slate-900);
    -webkit-font-smoothing: antialiased;
}

/* --- Astra full-width overrides for this page --- */
/* Force content wrappers to be full-width — scoped to #content to not affect header/footer */
body.pchp-provider-finder-page {
    background: var(--pchp-bg);
}
body.pchp-provider-finder-page #content,
body.pchp-provider-finder-page #content > .ast-container,
body.pchp-provider-finder-page #content .content-area,
body.pchp-provider-finder-page #content #primary,
body.pchp-provider-finder-page #content .site-main,
body.pchp-provider-finder-page #content .ast-article-single,
body.pchp-provider-finder-page #content .entry-content,
body.pchp-provider-finder-page #content article {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}
/* Header gradient matching pen design (hdr2: 90° #7C3AED→#6D28D9→#4F46E5) */
body.pchp-provider-finder-page .ast-primary-header-bar,
body.pchp-provider-finder-page .ast-primary-header,
body.pchp-provider-finder-page .main-header-bar {
    --ast-global-color-0: #7C3AED !important;
    background-color: #7C3AED !important;
    background-image: linear-gradient(90deg, #7C3AED, #6D28D9 50%, #4F46E5) !important;
}
/* Hide Astra's page header / breadcrumbs */
body.pchp-provider-finder-page .ast-breadcrumbs-wrapper,
body.pchp-provider-finder-page .entry-header,
body.pchp-provider-finder-page .ast-archive-description {
    display: none;
}
#pchp-provider-finder {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* ===== Hero (design: gradient 160° #7C3AED→#6D28D9→#4F46E5→#3B82F6) ===== */
.pchp-hero {
    background: var(--pchp-purple-700);
    position: relative;
    overflow: hidden;
    padding: 44px 80px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    width: 100%;
}
.pchp-hero-content {
    text-align: center;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}
.pchp-hero-content h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 600;
    color: #fff;
    margin: 0 0 12px 0;
    line-height: 1.2;
}
.pchp-hero-content p {
    font-size: 18px;
    font-weight: 400;
    color: rgba(255,255,255,0.85);
    margin: 0;
}

/* ===== Search Card (design: 1280px, radius 16, shadow, padding 28 32, gap 20) ===== */
.pchp-search-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 8px 32px -4px rgba(0,0,0,0.12);
    width: 100%;
    max-width: 1280px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 2;
}
.pchp-search-row {
    display: flex;
    gap: 12px;
}
.pchp-search-row-2 {
    align-items: center;
    flex-wrap: wrap;
}

/* Fields */
.pchp-field {
    display: flex;
    align-items: center;
    background: #F9FAFB;
    border: 1px solid var(--pchp-gray-200);
    border-radius: 10px;
    padding: 0 14px;
    height: 48px;
    flex: 1;
    gap: 8px;
}
.pchp-field-icon { width: 18px; height: 18px; flex-shrink: 0; }
.pchp-field-icon.gray { color: var(--pchp-gray-400); }
.pchp-field-icon.purple { color: var(--pchp-purple-600); }
.pchp-field input,
.pchp-field select {
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--pchp-slate-600);
    width: 100%;
    outline: none;
    padding: 1px;
    margin: 0;
    line-height: 1.4;
    height: auto;
    min-height: 0;
}
.pchp-field input::placeholder { color: var(--pchp-gray-400); }
.pchp-field select {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    padding-right: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right center;
}
.pchp-field-zip { max-width: 200px; flex: 0 0 200px; }
.pchp-field-radius { max-width: 200px; flex: 0 0 200px; }

/* Buttons */
.pchp-btn-location {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    height: 44px;
    background: #F0EBFF;
    color: var(--pchp-purple-600);
    border: 1px solid rgba(124,58,237,0.27);
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all .2s ease;
    flex-shrink: 0;
}
.pchp-btn-location:hover {
    background: #E0D4FF;
    border-color: rgba(124,58,237,0.45);
    box-shadow: 0 2px 8px rgba(124,58,237,0.15);
}
.pchp-btn-location:active {
    background: #D4C4FF;
    transform: scale(0.97);
    box-shadow: none;
}
.pchp-btn-location:focus-visible {
    outline: 2px solid var(--pchp-purple-600);
    outline-offset: 2px;
}
.pchp-btn-location:focus {
    background: #D4C4FF;
    border-color: rgba(124,58,237,0.45);
}

.pchp-btn-location:disabled { opacity: 0.5; cursor: not-allowed; }
.pchp-btn-location svg { width: 16px; height: 16px; }

.pchp-btn-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 24px;
    height: 48px;
    background: var(--pchp-purple-700);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s ease;
    flex-shrink: 0;
}
.pchp-btn-search:hover {
    background: #5B21B6;
    color: #fff;
}
.pchp-btn-search:active {
    background: #4C1D95;
}
.pchp-btn-search:focus-visible {
    outline: 2px solid var(--pchp-purple-600);
    outline-offset: 2px;
}
.pchp-btn-search:focus {
    background: #5B21B6;
    color: #fff;
}
.pchp-btn-search svg { width: 16px; height: 16px; }

.pchp-btn-clear {
    background: none;
    border: none;
    color: var(--pchp-gray-400);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all .2s ease;
}
.pchp-btn-clear:hover {
    color: var(--pchp-purple-600);
    background: #F5F3FF;
}
.pchp-btn-clear:active {
    color: #5B21B6;
    background: #EDE9FE;
}
.pchp-btn-clear:focus-visible {
    outline: 2px solid var(--pchp-purple-600);
    outline-offset: 2px;
}
.pchp-btn-clear:focus {
    color: #5B21B6;
    background: #EDE9FE;
}

/* ===== Results Section (design: full-width #f9f6fe, padding 24 48 32 48, gap 16) ===== */
.pchp-results {
    background: var(--pchp-bg);
    padding: 16px 48px 32px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}
.pchp-results > * {
    width: 100%;
    max-width: 1344px; /* 1440 - 48*2 padding */
}

/* Results bar (design: radius 10, white, border 1px #E5E7EB, padding 12 18) */
.pchp-results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: 1px solid var(--pchp-gray-200);
    border-radius: 10px;
    padding: 12px 18px;
}
.pchp-results-count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--pchp-slate-900);
}
.pchp-results-count svg { width: 18px; height: 18px; color: var(--pchp-gray-400); }
.pchp-sort { display: flex; align-items: center; gap: 8px; }
.pchp-sort label { font-size: 14px; color: #67768e; margin: 0; white-space: nowrap; }
.pchp-sort select {
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--pchp-slate-900);
    cursor: pointer;
    outline: none;
}

/* ===== Card Grid (design: 3 columns, 16px gap) ===== */
.pchp-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* ===== Provider Card ===== */
.pchp-card {
    background: #fff;
    border: 1px solid #F2F5F7;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 560px;
}

/* Card Header */
.pchp-card-header {
    background: #fff;
    padding: 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
/* Avatar */
.pchp-avatar {
    width: 54px;
    height: 54px;
    border-radius: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}
.pchp-card-info { flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
/* Provider name */
.pchp-card-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--pchp-slate-900);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pchp-card-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
/* Specialty badge */
.pchp-badge-specialty {
    background: #EDE9FE;
    color: var(--pchp-purple-600);
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
}
/* Language badge */
.pchp-badge-lang {
    background: #e8f5e9;
    color: #16A34A;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
}
/* NPI */
.pchp-npi { font-size: 13px; color: #67768e; white-space: nowrap; }
/* Practice */
.pchp-practice {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #67768e;
}
.pchp-practice svg { width: 14px; height: 14px; color: var(--pchp-gray-400); flex-shrink: 0; }
.pchp-card-badges { display: flex; gap: 6px; flex-wrap: wrap; }
/* Telehealth badge */
.pchp-badge-telehealth {
    display: flex; align-items: center; gap: 4px;
    background: #EDE9FE; color: var(--pchp-purple-600);
    font-size: 12px; font-weight: 700;
    padding: 4px 8px; border-radius: 4px;
}
/* Accessible badge */
.pchp-badge-accessible {
    display: flex; align-items: center; gap: 4px;
    background: #DBEAFE; color: #2563EB;
    font-size: 12px; font-weight: 700;
    padding: 4px 8px; border-radius: 4px;
}
.pchp-badge-telehealth svg, .pchp-badge-accessible svg { width: 13px; height: 13px; }
/* Distance badge */
.pchp-badge-distance {
    background: #FEF3C7; color: #D97706;
    font-size: 12px; font-weight: 700;
    padding: 4px 8px; border-radius: 4px;
}

/* Card divider */
.pchp-card-divider { height: 1px; background: #F2F5F7; flex-shrink: 0; }

/* Card Location */
.pchp-card-location {
    padding: 16px 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    overflow: hidden;
}
.pchp-card-addr { display: flex; flex-direction: column; gap: 5px; }
.pchp-card-addr-line {
    display: flex; align-items: flex-start; gap: 6px;
    font-size: 14px; color: var(--pchp-slate-900); line-height: 1.4;
}
.pchp-card-addr-line svg { width: 15px; height: 15px; color: var(--pchp-gray-400); flex-shrink: 0; margin-top: 2px; }
.pchp-card-addr-line a { color: inherit; text-decoration: none; }
.pchp-card-addr-line a:hover { color: var(--pchp-purple-600); text-decoration: underline; }

.pchp-hours-hosp { display: flex; gap: 14px; flex: 1; overflow: hidden; }

/* Hours */
.pchp-hours { width: 190px; flex-shrink: 0; }
.pchp-hours-title {
    display: flex; align-items: center; gap: 5px;
    font-size: 13px; font-weight: 700; color: var(--pchp-purple-600);
    margin-bottom: 6px;
}
.pchp-hours-title svg { width: 15px; height: 15px; }
.pchp-hours-grid { display: flex; flex-direction: column; gap: 3px; }
.pchp-hours-row {
    display: flex;
    font-size: 13px; line-height: 1.6;
}
.pchp-hours-day { font-weight: 600; color: var(--pchp-slate-900); width: 36px; }
.pchp-hours-time { color: #67768e; }

/* Hospitals */
.pchp-hospitals { flex: 1; min-width: 0; }
.pchp-hospitals-title {
    display: flex; align-items: center; gap: 5px;
    font-size: 13px; font-weight: 700; color: var(--pchp-purple-600);
    margin-bottom: 6px;
}
.pchp-hospitals-title svg { width: 15px; height: 15px; }
.pchp-hospital-item { font-size: 13px; color: #67768e; line-height: 1.6; }

/* ViewAllBar (pen design: white bg, top border #E5E7EB, bottom radius 12) */
.pchp-card-viewall {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    background: #FFFFFF;
    border-top: 1px solid var(--pchp-gray-200);
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
}
.pchp-card-viewall:hover { background: #F5F3FF; }
.pchp-card-viewall:focus-visible { outline: 2px solid var(--pchp-purple-600); outline-offset: 2px; }
.pchp-card-viewall svg { width: 15px; height: 15px; color: var(--pchp-purple-600); }
.pchp-card-viewall span {
    font-size: 14px; font-weight: 600; color: var(--pchp-purple-600);
}

/* ===== Pagination (design: centered, gap 8, buttons 34x34 radius 8) ===== */
.pchp-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 8px 0 0;
}
button.pchp-page-btn,
button.pchp-page-btn:hover,
button.pchp-page-btn:focus {
    min-width: 34px; height: 34px;
    padding: 0 6px;
    border-radius: 8px;
    border: 1px solid var(--pchp-gray-200);
    background: #fff;
    color: #374151;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; margin: 0; line-height: 1;
    transition: all .15s;
}
button.pchp-page-btn:hover { background: #F9FAFB; }
button.pchp-page-btn:focus-visible { outline: 2px solid var(--pchp-purple-600); outline-offset: 2px; }
/* Active page (design: #7C3AED bg, white text, font-weight 600) */
button.pchp-page-btn.active,
button.pchp-page-btn.active:hover {
    background: var(--pchp-purple-600);
    color: #fff;
    border-color: var(--pchp-purple-600);
    font-weight: 600;
}
button.pchp-page-btn:disabled { opacity: 0.4; cursor: default; }
/* Prev/Next arrow icons */
button.pchp-page-btn svg { width: 14px; height: 14px; }
button.pchp-page-btn.pchp-pg-prev svg { color: var(--pchp-gray-400); }
button.pchp-page-btn.pchp-pg-next svg { color: var(--pchp-purple-600); }
.pchp-page-ellipsis {
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; color: var(--pchp-gray-400);
}

/* ===== Modal (fixed overlay, page-level) ===== */
.pchp-modal {
    position: fixed; inset: 0; z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Inter', -apple-system, sans-serif;
}
.pchp-modal[hidden] { display: none; }
/* Overlay (design: #00000055) */
.pchp-modal-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.33);
}
/* Modal content (design: width 720, radius 16, shadow) */
.pchp-modal-content {
    position: relative;
    width: 720px;
    max-height: 90vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.19);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
/* Modal header (design: gradient 90° #7C3AED→#6D28D9, padding 14 20, gap 10) */
.pchp-modal-header {
    background: var(--pchp-purple-700);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.pchp-modal-avatar {
    width: 36px; height: 36px; border-radius: 18px;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    color: var(--pchp-purple-700); font-size: 14px; font-weight: 700;
}
.pchp-modal-info { flex: 1; }
.pchp-modal-name { color: #fff; font-size: 15px; font-weight: 600; }
.pchp-modal-meta { color: rgba(255,255,255,0.8); font-size: 11px; }
button.pchp-modal-close,
button.pchp-modal-close:hover,
button.pchp-modal-close:focus {
    background: rgba(255,255,255,0.25);
    border: none; border-radius: 14px;
    width: 28px; height: 28px;
    min-width: 28px; min-height: 28px;
    max-width: 28px; max-height: 28px;
    padding: 0; margin: 0; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #fff;
    transition: background .15s;
    flex-shrink: 0;
}
button.pchp-modal-close:hover { background: rgba(255,255,255,0.4); }
button.pchp-modal-close svg { width: 14px; height: 14px; stroke: currentColor; }
/* Badge bar (design: #F5F3FF bg, gap 6, padding 8 20) */
.pchp-modal-badges {
    background: #F5F3FF;
    padding: 8px 20px;
    display: flex;
    gap: 6px;
    align-items: center;
}
/* Modal badge overrides — location count badge (design: 9px/500, icon 10px, gap 3) */
.pchp-modal-badges .pchp-badge-distance {
    display: flex; align-items: center; gap: 3px;
    font-size: 9px; font-weight: 500;
    padding: 3px 8px; border-radius: 8px;
}
.pchp-modal-badges .pchp-badge-distance svg { width: 10px; height: 10px; }
/* Modal body (design: gap 10, padding 14 20, scrollable) */
.pchp-modal-body {
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

/* Modal location card */
.pchp-modal-loc {
    background: #F9FAFB;
    border: 1px solid var(--pchp-gray-200);
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}
.pchp-modal-loc-header {
    padding: 10px 14px;
    background: #fff;
    border-bottom: 1px solid #F2F5F7;
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 600; color: var(--pchp-slate-900);
}
.pchp-modal-loc-header svg { width: 14px; height: 14px; color: var(--pchp-purple-600); }
.pchp-modal-loc-body {
    padding: 12px 14px;
    display: flex;
    gap: 16px;
}
.pchp-modal-loc-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.pchp-modal-loc-info .pchp-card-addr-line { font-size: 12px; }
.pchp-modal-loc-hours {
    background: #fff;
    border: 1px solid #F2F5F7;
    border-radius: 8px;
    padding: 10px 12px;
    flex: 1;
    min-width: 180px;
}
/* Hospital footer (design: #F9FAFB bg, top border #E5E7EB, padding 12 20 14 20, gap 8) */
.pchp-modal-hospitals {
    background: #F9FAFB;
    border-top: 1px solid var(--pchp-gray-200);
    padding: 12px 20px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pchp-modal-hospitals-title {
    display: flex; align-items: center; gap: 5px;
    font-size: 11px; font-weight: 700; color: var(--pchp-purple-600);
}
.pchp-modal-hospitals-title svg { width: 14px; height: 14px; }
.pchp-modal-hospital-item { font-size: 11px; color: #67768e; line-height: 1.6; }

/* ===== Loading / Empty states ===== */
.pchp-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
    color: var(--pchp-gray-400);
    font-size: 14px;
}
.pchp-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
    color: #67768e;
    font-size: 15px;
}

/* ===== Responsive — Tablet (640–1023px) ===== */
@media (max-width: 1023px) {
    /* Hero */
    .pchp-hero { padding: 36px 24px 32px; min-height: 320px; }
    .pchp-hero-content p { font-size: 16px; }

    /* Search card */
    .pchp-search-card { padding: 20px 24px; max-width: 100%; }
    .pchp-search-row { flex-wrap: wrap; }
    .pchp-field-search { flex: 1 1 100%; }
    .pchp-field-zip,
    .pchp-field-radius { max-width: none; flex: 1 1 auto; }

    /* Results */
    .pchp-results { padding: 16px 24px 24px; }
    .pchp-results > * { max-width: 100%; }

    /* Card grid — 2 columns */
    .pchp-card-grid { grid-template-columns: repeat(2, 1fr); }

    /* Card — auto height */
    .pchp-card { height: auto; min-height: 480px; }
    .pchp-card-name { white-space: normal; }

    /* Modal — constrained width */
    .pchp-modal-content { width: min(720px, calc(100% - 48px)); }
}

/* ===== Responsive — Mobile (≤639px) ===== */
@media (max-width: 639px) {
    /* Hero */
    .pchp-hero { padding: 28px 16px 24px; min-height: auto; }
    .pchp-hero-content { margin-bottom: 20px; }
    .pchp-hero-content p { font-size: 15px; }

    /* Search card */
    .pchp-search-card { padding: 16px; border-radius: 12px; gap: 14px; }
    .pchp-search-row,
    .pchp-search-row-2 { flex-direction: column; gap: 10px; }
    .pchp-field { width: 100%; flex: 1 1 100%; }
    .pchp-field-zip,
    .pchp-field-radius { max-width: 100%; flex: 1 1 100%; }
    .pchp-btn-location,
    .pchp-btn-search { width: 100%; justify-content: center; }
    .pchp-btn-clear { align-self: center; }

    /* Results */
    .pchp-results { padding: 12px 16px 20px; }
    .pchp-results > * { max-width: 100%; }

    /* Results bar — stack count + sort */
    .pchp-results-bar { flex-direction: column; gap: 8px; align-items: flex-start; }

    /* Card grid — 1 column */
    .pchp-card-grid { grid-template-columns: 1fr; }

    /* Card — auto height, no min */
    .pchp-card { height: auto; min-height: 0; }

    /* Loading/empty states — reduce vertical padding */
    .pchp-loading,
    .pchp-no-results { padding: 32px 0; }
    .pchp-card-name { white-space: normal; font-size: 18px; }
    .pchp-card-header { padding: 16px; gap: 12px; }
    .pchp-avatar { width: 46px; height: 46px; font-size: 18px; border-radius: 23px; }
    .pchp-card-location { padding: 14px 16px 16px; }

    /* Hours + hospitals — stack vertically */
    .pchp-hours-hosp { flex-direction: column; gap: 12px; }
    .pchp-hours { width: 100%; }

    /* Pagination — wrap if many pages, enlarge for touch */
    .pchp-pagination { flex-wrap: wrap; gap: 6px; }
    button.pchp-page-btn,
    button.pchp-page-btn:hover,
    button.pchp-page-btn:focus {
        width: 44px; height: 44px;
        min-width: 44px; min-height: 44px;
        max-width: 44px; max-height: 44px;
        font-size: 14px;
    }
    .pchp-page-ellipsis { width: 44px; height: 44px; }

    /* Modal — full-screen sheet */
    .pchp-modal-content {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
    }
    /* Larger close button for touch */
    button.pchp-modal-close,
    button.pchp-modal-close:hover,
    button.pchp-modal-close:focus {
        width: 36px; height: 36px;
        min-width: 36px; min-height: 36px;
        max-width: 36px; max-height: 36px;
        border-radius: 18px;
    }
    button.pchp-modal-close svg { width: 16px; height: 16px; }
    /* Modal location cards — stack address + hours */
    .pchp-modal-loc-body { flex-direction: column; }
    .pchp-modal-loc-hours { min-width: 0; }
}
