/* HealthcareHop — Frontend Styles */

/* Material Symbols (Google Fonts) */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined', sans-serif;
    font-weight: normal;
    font-style: normal;
    font-size: 1.25rem;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}
.hh-icon {
    vertical-align: -0.15em;
    flex-shrink: 0;
}
.hh-icon--sm { font-size: 1.05rem; }
.hh-icon--inline { font-size: 1.1rem; margin-right: 2px; }
.hh-icon--featured { font-size: 1rem; vertical-align: -0.2em; margin-right: 2px; }
.hh-icon--join { font-size: 2.75rem; line-height: 1; color: var(--hh-primary); margin-bottom: .25rem; }
.hh-icon--teaser { font-size: 2.75rem; line-height: 1; color: var(--hh-primary); }
.hh-page-title--with-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.hh-page-title__icon {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--hh-primary);
}
.hh-label-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.hh-nav-btn .hh-icon { font-size: 1.15rem; vertical-align: -0.18em; }
.hh-nav-btn--icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.hh-nav-btn--icon .hh-icon { margin-right: 0; }
.hh-btn .hh-icon { font-size: 1.15rem; vertical-align: -0.18em; margin-right: 4px; }
.hh-btn--icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.hh-btn--icon .hh-icon { margin-right: 0; }
.hh-blog-card__read--icon {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.hh-blog-card__read--icon .hh-icon { margin-right: 0; }
.hh-sidebar-card h3 {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   NAV BUTTONS (Log In / Join)
   ========================================================================== */

.menu-bar-items { display: flex; align-items: center; gap: 8px; }
.hh-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0;
    transition: background .2s, color .2s, border-color .2s;
    white-space: nowrap;
    line-height: 1.2;
}
.hh-nav-btn--ghost {
    background: transparent;
    color: var(--hh-primary);
    border: 1.5px solid var(--hh-primary);
}
.hh-nav-btn--ghost:hover {
    background: var(--hh-primary);
    color: #fff !important;
}
.hh-nav-btn--solid {
    background: transparent;
    color: var(--hh-primary);
    border: 1.5px solid var(--hh-primary);
}
.hh-nav-btn--solid:hover {
    background: var(--hh-primary);
    color: #fff !important;
}

/* Desktop: hide mobile-only menu items */
.hh-mobile-auth-item { display: none; }

@media (max-width: 768px) {
    /* Hide the menu-bar-items slot entirely on mobile */
    .menu-bar-items { display: none !important; }

    /* Show the auth items inside the hamburger menu */
    .hh-mobile-auth-item { display: list-item; }
    .hh-mobile-auth-item a {
        display: block;
        padding: 12px 20px;
        font-weight: 600;
        color: var(--hh-primary);
        text-decoration: none;
        border-top: 1px solid var(--hh-border);
    }
    .hh-mobile-auth-item a:hover { background: var(--hh-light); }
}

:root {
    --hh-primary: #498f91;
    --hh-primary-dark: #3a7375;
    --hh-success: #198754;
    --hh-warning: #ffc107;
    --hh-danger: #dc3545;
    --hh-muted: #6c757d;
    --hh-light: #f8f9fa;
    --hh-border: #dee2e6;
    --hh-text: #212529;
    --hh-star-color: #f5a623;
    --hh-radius: 8px;
    --hh-shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --hh-shadow-hover: 0 4px 12px rgba(0,0,0,.12);
}

/* Container */
.hh-container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Facility directory (Page with [hh_facility_search] or CPT archive): relax GP inner width, widen shell */
body.hh-facility-directory.no-sidebar .site-main,
body.hh-facility-directory.one-container .site-main {
    max-width: none;
    width: 100%;
}
body.hh-facility-directory.page .inside-article {
    padding-left: 0;
    padding-right: 0;
}
body.hh-facility-directory.page .site-main .entry-content {
    max-width: none;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}
body.hh-facility-directory .hh-container {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
}

/* Remove GP “content card” fill on this view only (avoids empty white frame around shortcode) */
body.hh-facility-directory.separate-containers .inside-article,
body.hh-facility-directory.separate-containers .site-main .entry-content,
body.hh-facility-directory.one-container .inside-article,
body.hh-facility-directory.one-container .site-main .entry-content,
body.hh-facility-directory .site-main > article {
    background-color: transparent;
    box-shadow: none;
}

/* Page Titles */
.hh-page-title { font-size: 2rem; font-weight: 700; margin-bottom: .25rem; }
.hh-subtitle { color: var(--hh-muted); margin-bottom: 2rem; }

/* Buttons */
.hh-btn {
    display: inline-block; padding: 10px 24px; border: none; border-radius: var(--hh-radius);
    font-size: .95rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: all .2s;
}
.hh-btn-primary { background: var(--hh-primary); color: #fff; }
.hh-btn-primary:hover { background: var(--hh-primary-dark); }

/* Home — blog teasers */
.hh-blog-teasers {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 0 0 2rem;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}
.hh-blog-card {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--hh-shadow);
    transition: box-shadow .2s, transform .2s;
    display: flex;
    flex-direction: column;
}
.hh-blog-card:hover {
    box-shadow: var(--hh-shadow-hover);
    transform: translateY(-2px);
}
.hh-blog-card__image-link { display: block; text-decoration: none; }
.hh-blog-card__image {
    display: block;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: var(--hh-light);
}
.hh-blog-card__body { padding: 1.1rem 1.25rem 1.25rem; flex: 1; display: flex; flex-direction: column; }
.hh-blog-card__title {
    margin: 0 0 .5rem;
    font-size: 1.1rem;
    line-height: 1.35;
}
.hh-blog-card__title a { color: var(--hh-text); text-decoration: none; }
.hh-blog-card__title a:hover { color: var(--hh-primary); }
.hh-blog-card__excerpt {
    margin: 0 0 .75rem;
    font-size: .9rem;
    color: var(--hh-muted);
    line-height: 1.5;
    flex: 1;
}
.hh-blog-card__read {
    font-size: .875rem;
    font-weight: 600;
    color: var(--hh-primary);
    text-decoration: none;
}
.hh-blog-card__read:hover { text-decoration: underline; }
.hh-home-blog-cta-wrap {
    text-align: center;
    margin: 0 0 2rem;
    padding: 0 20px;
}
.hh-btn-blog-cta { padding: 12px 28px; font-size: 1rem; }
.hh-blog-teasers-empty {
    text-align: center;
    color: var(--hh-muted);
    margin: 1rem 0 1.5rem;
    padding: 0 20px;
}

/* =========================================================================
   HOMEPAGE
   ========================================================================= */

/* --- Hero --- */
.hh-hero {
    position: relative;
    overflow: hidden;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hh-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hh-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        168deg,
        rgba(91,141,144,.62) 0%,
        rgba(42,83,85,.78) 100%
    );
    mix-blend-mode: multiply;
}
.hh-hero__inner {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem 1.5rem;
    max-width: 720px;
}
.hh-hero__kicker {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255,255,255,.7);
    margin-bottom: 1rem;
}
.hh-hero__title {
    color: #fff;
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    font-weight: 800;
    line-height: 1.08;
    margin: 0 0 1.1rem;
    letter-spacing: -.02em;
}
.hh-hero__subtitle {
    color: rgba(255,255,255,.85);
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    line-height: 1.55;
    max-width: 560px;
    margin: 0 auto 2.2rem;
    font-weight: 400;
}
.hh-hero__actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.hh-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 36px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0;
    transition: background .2s, color .2s, box-shadow .2s, transform .15s;
    letter-spacing: .01em;
}
.hh-hero__btn--solid {
    background: #fff;
    color: #3a7375;
    box-shadow: 0 2px 16px rgba(0,0,0,.18);
}
.hh-hero__btn--solid:hover {
    background: #f0fdfd;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(0,0,0,.22);
}
.hh-hero__btn--ghost {
    background: rgba(255,255,255,.08);
    color: #fff;
    border: 2px solid rgba(255,255,255,.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.hh-hero__btn--ghost:hover {
    background: rgba(255,255,255,.18);
    border-color: #fff;
}

/* --- Section scaffold --- */
.hh-section {
    max-width: 1140px;
    margin: 0 auto;
    padding: 5rem 24px;
}
.hh-section--full {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}
.hh-section-wrap--grey {
    background: #f5f7f8;
}
.hh-section-wrap--white {
    background: #fff;
}
.hh-section__eyebrow {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--hh-primary);
    text-align: center;
    margin-bottom: .6rem;
}
.hh-section__heading {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    text-align: center;
    margin: 0 0 .5rem;
    letter-spacing: -.015em;
    color: var(--hh-text);
}
.hh-section__lead {
    text-align: center;
    color: var(--hh-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 620px;
    margin: 0 auto 2.5rem;
}

/* --- How It Works --- */
.hh-steps-illustration {
    display: block;
    max-width: 520px;
    width: 100%;
    margin: 0 auto 2.5rem;
}
.hh-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 960px;
    margin: 0 auto;
}
.hh-step {
    text-align: center;
    padding: 2rem 1.5rem;
}
.hh-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--hh-primary);
    border: 2px solid var(--hh-primary);
    margin-bottom: 1.2rem;
}
.hh-step__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 .5rem;
    color: var(--hh-text);
}
.hh-step__desc {
    color: var(--hh-muted);
    font-size: .93rem;
    line-height: 1.6;
    margin: 0;
}

/* --- Facilities section on home (shortcode wrapper) --- */
.hh-home-facilities { padding-bottom: 1rem; }
.hh-home-facilities-wrap .hh-facility-grid { max-width: 1140px; margin-left: auto; margin-right: auto; padding: 0 24px; }
.hh-home-browse {
    text-align: center;
    padding: 1.5rem 24px 4rem;
}
.hh-home-browse .hh-btn {
    border-radius: 0;
    padding: 14px 36px;
    font-size: 1rem;
}

/* --- Blog section on home --- */
.hh-home-blog-wrap .hh-blog-teasers { padding: 0 24px; }
.hh-home-blog-wrap .hh-home-blog-cta-wrap { padding: 0 24px 4rem; }
.hh-home-blog-wrap .hh-btn-blog-cta { border-radius: 0; }

/* --- Bottom CTA banner --- */
.hh-cta-banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #5b8d90 0%, #3a7375 100%);
    padding: 5rem 2rem;
    text-align: center;
}
.hh-cta-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30h60M30 0v60' stroke='rgba(255,255,255,.04)' fill='none'/%3E%3C/svg%3E");
    pointer-events: none;
}
.hh-cta-banner__inner {
    position: relative;
    max-width: 580px;
    margin: 0 auto;
}
.hh-cta-banner__heading {
    color: #fff;
    font-size: clamp(1.6rem, 3.5vw, 2.1rem);
    font-weight: 800;
    margin: 0 0 .85rem;
    letter-spacing: -.01em;
}
.hh-cta-banner__text {
    color: rgba(255,255,255,.78);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 0 2rem;
}
.hh-cta-banner__actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.hh-cta-banner__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 36px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0;
    transition: background .2s, color .2s, box-shadow .2s, transform .15s;
}
.hh-cta-banner__btn--solid {
    background: #fff;
    color: #3a7375;
    box-shadow: 0 2px 16px rgba(0,0,0,.15);
}
.hh-cta-banner__btn--solid:hover {
    background: #f0fdfd;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(0,0,0,.2);
}
.hh-cta-banner__btn--ghost {
    background: rgba(255,255,255,.08);
    color: #fff;
    border: 2px solid rgba(255,255,255,.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.hh-cta-banner__btn--ghost:hover {
    background: rgba(255,255,255,.18);
    border-color: #fff;
}

/* --- Home-page responsive --- */
@media (max-width: 768px) {
    .hh-hero { min-height: 75vh; }
    .hh-hero__actions { flex-direction: column; align-items: center; }
    .hh-hero__btn { width: 260px; text-align: center; }
    .hh-steps { grid-template-columns: 1fr; gap: 0; }
    .hh-step { padding: 1.5rem 1rem; }
    .hh-section { padding: 3.5rem 16px; }
    .hh-cta-banner { padding: 3.5rem 1.25rem; }
    .hh-cta-banner__actions { flex-direction: column; align-items: center; }
    .hh-cta-banner__btn { width: 260px; text-align: center; }
}
@media (max-width: 480px) {
    .hh-hero { min-height: 85vh; min-height: 85svh; }
    .hh-hero__btn, .hh-cta-banner__btn { width: 100%; max-width: 320px; padding: 14px 24px; }
    .hh-section { padding: 3rem 12px; }
}

/* Badges */
.hh-badge {
    display: inline-block; padding: 3px 10px; border-radius: 20px;
    background: var(--hh-light); border: 1px solid var(--hh-border);
    font-size: .8rem; color: var(--hh-muted); white-space: nowrap;
}
.hh-badge--small { font-size: .75rem; padding: 2px 8px; }
.hh-badge--magnet { background: #e8f5e9; color: #2e7d32; border-color: #a5d6a7; }
.hh-badge--compact { background: #e3f2fd; color: #1565c0; border-color: #90caf9; }
.hh-card-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.hh-facility-hero-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: .5rem; }

.hh-tag {
    display: inline-block; padding: 2px 10px; border-radius: 4px;
    background: #e9ecef; font-size: .8rem; margin: 2px 4px 2px 0;
}

/* Stars */
.hh-stars { white-space: nowrap; }
.hh-stars--small { font-size: 1rem; }
.hh-stars--medium { font-size: 1.3rem; }
.hh-stars--large { font-size: 1.8rem; }
.hh-star { color: #ddd; }
.hh-star--full, .hh-star--half { color: var(--hh-star-color); }
.hh-stars-value { font-size: .85em; color: var(--hh-muted); margin-left: 4px; }

/* Facility Card Grid */
.hh-facility-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px; margin: 2rem 0;
}

.hh-facility-card {
    background: #fff; border-radius: 0; overflow: hidden;
    box-shadow: var(--hh-shadow); transition: box-shadow .2s, transform .2s;
}
.hh-facility-card:hover { box-shadow: var(--hh-shadow-hover); transform: translateY(-2px); }

.hh-card-image img { width: 100%; height: 180px; object-fit: cover; display: block; }
.hh-card-body { padding: 16px; }
.hh-card-title { margin: 0 0 4px; font-size: 1.1rem; }
.hh-card-title a { color: var(--hh-text); text-decoration: none; }
.hh-card-title a:hover { color: var(--hh-primary); }
.hh-card-location {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    color: var(--hh-muted);
    font-size: .9rem;
    margin: 0 0 8px;
}
.hh-card-rating { margin-top: 10px; }
.hh-card-review-count { color: var(--hh-muted); font-size: .85rem; }
.hh-no-rating { color: var(--hh-muted); font-size: .85rem; font-style: italic; }

/* Search Filters */
.hh-search-filters { margin-bottom: 2rem; }
.hh-filter-row {
    display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end;
}
.hh-filter-group { flex: 1; min-width: 140px; }
.hh-filter-keyword { flex: 2; }
.hh-filter-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 4px; color: var(--hh-text); }
.hh-filter-group select,
.hh-filter-group input[type="text"] {
    width: 100%; padding: 8px 12px; border: 1px solid var(--hh-border); border-radius: var(--hh-radius);
    font-size: .9rem; background: #fff;
}
.hh-filter-btn { flex: 0 0 auto; }

/* Pagination */
.hh-pagination { text-align: center; margin: 2rem 0; }
.hh-page-link {
    display: inline-block; padding: 8px 14px; margin: 0 2px; border-radius: var(--hh-radius);
    text-decoration: none; color: var(--hh-text); border: 1px solid var(--hh-border);
}
.hh-page-link:hover, .hh-page-active { background: var(--hh-primary); color: #fff; border-color: var(--hh-primary); }

/* Single Facility */
.hh-facility-hero {
    background: linear-gradient(135deg, rgba(91,141,144,.06) 0%, rgba(42,83,85,.03) 100%);
    padding: 3rem 0 2.5rem;
    border-bottom: 1px solid var(--hh-border);
}
.hh-facility-name {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    margin-bottom: .3rem;
    letter-spacing: -.01em;
    color: var(--hh-text);
}
.hh-facility-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--hh-muted);
    font-size: 1.05rem;
    margin-bottom: 0;
}
.hh-facility-main section > h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.hh-overall-badge { margin-top: 1rem; display: flex; align-items: center; gap: 10px; }
.hh-review-count { color: var(--hh-muted); }
.hh-no-reviews-yet { margin-top: .75rem; color: var(--hh-muted); }
.hh-no-reviews-yet a { color: var(--hh-primary); font-weight: 600; }

.hh-facility-body { display: grid; grid-template-columns: 1fr 300px; gap: 40px; padding: 2.5rem 0 3rem; }
.hh-facility-main { min-width: 0; }

/* Ratings Breakdown */
.hh-ratings-breakdown { margin-bottom: 2rem; }
.hh-ratings-breakdown h2 { font-size: 1.3rem; margin-bottom: 1rem; }
.hh-ratings-grid { display: flex; flex-direction: column; gap: 10px; }
.hh-rating-row { display: flex; align-items: center; gap: 12px; }
.hh-rating-label { width: 180px; font-size: .9rem; color: var(--hh-text); }
.hh-rating-bar-wrap {
    flex: 1; height: 10px; background: #e9ecef; border-radius: 5px; overflow: hidden;
}
.hh-rating-bar {
    height: 100%; background: var(--hh-star-color); border-radius: 5px; transition: width .3s;
}
.hh-rating-value { width: 32px; text-align: right; font-weight: 600; font-size: .9rem; }

/* Facility Details */
.hh-facility-details { margin-bottom: 2rem; }
.hh-detail-list { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; margin-top: 1rem; }
.hh-detail-list dt { font-weight: 600; color: var(--hh-muted); font-size: .9rem; }
.hh-detail-list dd { margin: 0; }

/* Sidebar */
.hh-facility-sidebar { position: sticky; top: 100px; align-self: start; }
.hh-sidebar-card {
    background: #fff; border: 1px solid var(--hh-border); border-radius: var(--hh-radius);
    padding: 16px; margin-bottom: 16px;
}
.hh-sidebar-card h3 { font-size: 1rem; margin: 0 0 8px; }
.hh-sidebar-card p { margin: 0; font-size: .9rem; }

/* Reviews Section */
.hh-reviews-section { margin-bottom: 2rem; }
.hh-review-list { display: flex; flex-direction: column; gap: 20px; }

.hh-review-item {
    background: #fff; border: 1px solid var(--hh-border); border-radius: var(--hh-radius);
    padding: 20px; transition: box-shadow .2s;
}
.hh-review-item:hover { box-shadow: var(--hh-shadow); }
.hh-review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.hh-review-author strong { font-size: 1rem; }
.hh-review-specialty { color: var(--hh-muted); font-size: .85rem; margin-left: 8px; }
.hh-review-assignment { font-size: .85rem; color: var(--hh-muted); margin-bottom: 10px; }

.hh-review-ratings-mini {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px;
}
.hh-mini-rating {
    font-size: .8rem; padding: 3px 8px; background: var(--hh-light);
    border-radius: 4px; white-space: nowrap;
}

.hh-review-area-safety { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.hh-area-safety-badge { font-size: .8rem; padding: 3px 8px; border-radius: 4px; background: var(--hh-light); white-space: nowrap; }
.hh-area-safety-1, .hh-area-safety-2 { background: #f8d7da; color: #842029; }
.hh-area-safety-3 { background: #fff3cd; color: #664d03; }
.hh-area-safety-4, .hh-area-safety-5 { background: #d1e7dd; color: #0f5132; }
.hh-area-neighborhood { font-size: .8rem; color: var(--hh-muted); }

.hh-review-section { margin-bottom: 10px; }
.hh-review-section h4 { font-size: .9rem; margin: 0 0 4px; }
.hh-pros h4 { color: var(--hh-success); }
.hh-cons h4 { color: var(--hh-danger); }
.hh-tips h4 { color: var(--hh-primary); }
.hh-review-section p { margin: 0; font-size: .9rem; line-height: 1.5; }

.hh-comp-fieldset { background: #fafbfc; border: 1px solid var(--hh-border); border-radius: var(--hh-radius); padding: 1.25rem 1.25rem 1rem; }
.hh-comp-fieldset legend { font-size: 1rem; }
.hh-optional-label { font-weight: 400; color: var(--hh-muted); font-size: .9em; }
.hh-comp-hint { font-size: .85rem; color: var(--hh-muted); margin: 0 0 1rem; line-height: 1.45; }

.hh-review-compensation {
    margin: 1rem 0 1.25rem;
    padding: 12px 14px;
    background: #f8fafb;
    border-left: 3px solid var(--hh-primary);
}
.hh-review-compensation__title {
    font-size: .85rem;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--hh-primary-dark);
}
.hh-review-compensation__note { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--hh-muted); font-size: .75rem; }
.hh-review-compensation__list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: .88rem;
}
.hh-review-compensation__row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    justify-content: space-between;
    align-items: baseline;
    padding: 4px 0;
    border-bottom: 1px solid var(--hh-border);
}
.hh-review-compensation__row:last-child { border-bottom: none; }
.hh-review-compensation__label { color: var(--hh-muted); font-weight: 600; }
.hh-review-compensation__value { font-weight: 500; color: var(--hh-text); text-align: right; }
.hh-review-compensation__row--block {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
}
.hh-review-compensation__row--block .hh-review-compensation__value {
    text-align: left;
    font-weight: 400;
}

/* Staffing details and red flags on reviews */
.hh-review-staffing-details {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: .75rem;
}
.hh-staffing-detail {
    display: inline-block;
    padding: 3px 10px;
    background: #eef6f6;
    border: 1px solid #c8e0e1;
    font-size: .8rem;
    color: var(--hh-primary-dark);
}
.hh-review-red-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: .75rem;
}
.hh-red-flag-badge {
    display: inline-block;
    padding: 3px 10px;
    background: #fef0f0;
    border: 1px solid #f5c6c6;
    color: #842029;
    font-size: .78rem;
    font-weight: 600;
}

/* Red flag checkboxes on review form */
.hh-red-flag-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}
.hh-red-flag-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .9rem;
    font-weight: 400;
    cursor: pointer;
    padding: 6px 10px;
    background: #fef8f8;
    border: 1px solid #f0dede;
    transition: background .15s;
}
.hh-red-flag-option:hover { background: #fef0f0; }
.hh-red-flag-option input[type="checkbox"] { margin: 0; }

.hh-would-return { font-size: .9rem; margin-top: 8px; }
.hh-would-return-yes { color: var(--hh-success); font-weight: 600; }
.hh-would-return-no { color: var(--hh-danger); font-weight: 600; }
.hh-would-return-maybe { color: var(--hh-warning); font-weight: 600; }

.hh-review-date { font-size: .8rem; color: var(--hh-muted); display: block; margin-top: 8px; }

/* Safety Map */
.hh-safety-map-section { margin-bottom: 2rem; }
.hh-safety-map-section h2 { margin-bottom: .75rem; }
.hh-safety-score-summary { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; }
.hh-safety-score-badge {
    display: inline-block; padding: 4px 12px; border-radius: var(--hh-radius);
    font-weight: 700; font-size: 1rem;
}
.hh-safety-level-high { background: #d1e7dd; color: #0f5132; }
.hh-safety-level-mid  { background: #fff3cd; color: #664d03; }
.hh-safety-level-low  { background: #f8d7da; color: #842029; }
.hh-safety-score-label { font-size: .9rem; color: var(--hh-muted); }
.hh-safety-no-data { font-size: .9rem; color: var(--hh-muted); margin-bottom: 1rem; }
.hh-safety-map-wrap { border-radius: var(--hh-radius); overflow: hidden; border: 1px solid var(--hh-border); }
#hh-safety-map { width: 100%; height: 380px; }
.hh-safety-map-legend { display: flex; gap: 16px; align-items: center; margin-top: .75rem; font-size: .8rem; color: var(--hh-muted); }
.hh-legend-dot {
    display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 3px;
}
.hh-legend-green  { background: #198754; }
.hh-legend-yellow { background: #ffc107; }
.hh-legend-red    { background: #dc3545; }

.hh-map-facility-icon { background: none; border: none; }
.hh-map-pin {
    display: block; width: 28px; height: 36px;
    background: var(--hh-primary, #0d6efd); border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg); position: relative;
}
.hh-map-pin::after {
    content: ''; position: absolute; top: 7px; left: 7px;
    width: 14px; height: 14px; background: #fff; border-radius: 50%;
}

/* Review Form */
.hh-review-form-wrap { margin: 2rem 0; padding: 2rem; background: var(--hh-light); border-radius: var(--hh-radius); }
.hh-review-form fieldset { border: none; padding: 0; margin: 0 0 1.5rem; }
.hh-review-form legend { font-size: 1.1rem; font-weight: 700; margin-bottom: .75rem; }
.hh-form-section-title { font-size: 1.15rem; font-weight: 700; margin: 0 0 .75rem; color: var(--hh-text); }
.hh-form-divider { border: none; border-top: 1px solid var(--hh-border); margin: 1.75rem 0; }
.hh-section-intro { font-size: .9rem; color: var(--hh-muted); line-height: 1.55; margin: 0 0 1.25rem; }
.hh-section-hint { font-size: .85rem; color: var(--hh-muted); margin: 0 0 1rem; line-height: 1.45; }

.hh-form-group { margin-bottom: 1rem; }
.hh-form-group label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 4px; }
.hh-form-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 1rem; }
.hh-form-col { flex: 1; min-width: 200px; }

.hh-review-form input[type="text"],
.hh-review-form input[type="date"],
.hh-review-form input[type="number"],
.hh-review-form select,
.hh-review-form textarea {
    width: 100%; padding: 8px 12px; border: 1px solid var(--hh-border);
    border-radius: var(--hh-radius); font-size: .9rem; font-family: inherit;
}
.hh-review-form textarea { resize: vertical; }

.hh-star-picker { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.hh-star-picker label { width: 180px; margin: 0; }
.hh-star-input { display: flex; gap: 4px; }
.hh-pick-star { font-size: 1.5rem; cursor: pointer; color: #ddd; transition: color .15s; user-select: none; }
.hh-pick-star:hover, .hh-star-selected { color: var(--hh-star-color); }

.hh-form-error { color: var(--hh-danger); font-weight: 600; padding: 10px; background: #f8d7da; border-radius: var(--hh-radius); margin-bottom: 1rem; }
.hh-review-success { padding: 16px; background: #d1e7dd; border-radius: var(--hh-radius); color: #0f5132; font-weight: 600; }

/* Suggestions Dropdown */
.hh-suggestions {
    position: absolute; z-index: 100; background: #fff; border: 1px solid var(--hh-border);
    border-radius: var(--hh-radius); max-height: 240px; overflow-y: auto; box-shadow: var(--hh-shadow-hover);
}
.hh-suggestion-item {
    padding: 10px 14px; cursor: pointer; font-size: .9rem; border-bottom: 1px solid var(--hh-light);
}
.hh-suggestion-item:hover { background: var(--hh-light); }
.hh-suggestion-item small { color: var(--hh-muted); }
.hh-suggestion-empty { padding: 10px 14px; color: var(--hh-muted); font-style: italic; }
.hh-suggestion-add { background: #f0faf4; border-top: 1px solid var(--hh-border); color: var(--hh-primary-dark); }
.hh-suggestion-add:hover { background: #e0f5eb; }
.hh-address-autocomplete-wrap { position: relative; }

/* Dashboard */
.hh-dashboard { margin: 2rem 0; }
.hh-dashboard-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--hh-border); margin-bottom: 1.5rem; }
.hh-tab {
    padding: 10px 24px; background: none; border: none; font-size: 1rem; font-weight: 600;
    cursor: pointer; color: var(--hh-muted); border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.hh-tab:hover { color: var(--hh-text); }
.hh-tab-active { color: var(--hh-primary); border-bottom-color: var(--hh-primary); }

.hh-dashboard-table { width: 100%; border-collapse: collapse; }
.hh-dashboard-table th { text-align: left; padding: 10px 12px; border-bottom: 2px solid var(--hh-border); font-size: .85rem; color: var(--hh-muted); }
.hh-dashboard-table td { padding: 10px 12px; border-bottom: 1px solid var(--hh-light); }

.hh-status { font-size: .8rem; padding: 3px 10px; border-radius: 20px; font-weight: 600; }
.hh-status-approved { background: #d1e7dd; color: #0f5132; }
.hh-status-pending { background: #fff3cd; color: #664d03; }
.hh-status-flagged { background: #f8d7da; color: #842029; }
.hh-status-rejected { background: #e9ecef; color: var(--hh-muted); }

/* Notices */
.hh-notice { padding: 16px; background: #cff4fc; border-radius: var(--hh-radius); color: #055160; }
.hh-no-results { color: var(--hh-muted); font-style: italic; grid-column: 1 / -1; text-align: center; padding: 3rem 0; }

/* Profile form */
.hh-profile-form .hh-form-group { margin-bottom: 1rem; }
.hh-profile-saved { color: var(--hh-success); font-weight: 600; margin-left: 12px; }

/* Provider Response (inside review-item) */
.hh-provider-response {
    margin-top: 12px; padding: 14px 16px; background: #f0faf4; border-left: 3px solid var(--hh-primary);
    border-radius: 0 var(--hh-radius) var(--hh-radius) 0;
}
.hh-provider-response-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.hh-provider-response-header strong { font-size: .9rem; color: var(--hh-primary-dark); }
.hh-provider-response p { margin: 0; font-size: .9rem; line-height: 1.5; }

/* Claim Section */
.hh-claim-section-wrap { margin-top: 2rem; }
.hh-claimed-badge { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #d1e7dd; border-radius: var(--hh-radius); }
.hh-badge-claimed { background: var(--hh-primary); color: #fff; font-weight: 600; }
.hh-claimed-badge p { margin: 0; font-size: .9rem; }

.hh-claim-cta { padding: 20px; background: var(--hh-light); border-radius: var(--hh-radius); margin-bottom: 1rem; }
.hh-claim-cta h3 { margin: 0 0 6px; font-size: 1.1rem; }
.hh-claim-cta p { margin: 0 0 12px; font-size: .9rem; color: var(--hh-muted); }

.hh-claim-form { padding: 20px; background: #fff; border: 1px solid var(--hh-border); border-radius: var(--hh-radius); }
.hh-claim-form h3 { margin: 0 0 16px; font-size: 1.1rem; }
.hh-claim-form label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 4px; }
.hh-claim-form input[type="text"],
.hh-claim-form input[type="email"],
.hh-claim-form input[type="tel"],
.hh-claim-form textarea {
    width: 100%; padding: 8px 12px; border: 1px solid var(--hh-border);
    border-radius: var(--hh-radius); font-size: .9rem; font-family: inherit;
}
.hh-claim-form .required { color: var(--hh-danger); }
.hh-claim-success { padding: 14px; background: #d1e7dd; border-radius: var(--hh-radius); color: #0f5132; font-weight: 600; margin-top: 1rem; }

.hh-form-actions { display: flex; gap: 10px; margin-top: 1rem; }
.hh-btn-secondary { background: var(--hh-light); color: var(--hh-text); border: 1px solid var(--hh-border); }
.hh-btn-secondary:hover { background: #e9ecef; }
.hh-btn-small { padding: 6px 14px; font-size: .85rem; }

/* Provider Dashboard */
.hh-provider-facility-card {
    background: #fff; border: 1px solid var(--hh-border); border-radius: var(--hh-radius);
    padding: 20px; margin-bottom: 20px;
}
.hh-provider-facility-card h3 { margin: 0 0 4px; }
.hh-provider-facility-card h4 { margin: 16px 0 10px; font-size: 1rem; }
.hh-provider-reviews { display: flex; flex-direction: column; gap: 12px; }
.hh-provider-review-row {
    padding: 12px; border: 1px solid var(--hh-border); border-radius: var(--hh-radius);
}
.hh-needs-response { border-left: 3px solid var(--hh-warning); }
.hh-responded { border-left: 3px solid var(--hh-success); }
.hh-provider-review-summary { font-size: .9rem; margin-bottom: 8px; }
.hh-response-preview { font-size: .85rem; color: var(--hh-muted); margin-bottom: 8px; }
.hh-provider-response-form textarea {
    width: 100%; padding: 8px 12px; border: 1px solid var(--hh-border);
    border-radius: var(--hh-radius); font-size: .9rem; font-family: inherit; resize: vertical;
    margin-bottom: 8px;
}
.hh-response-saved { color: var(--hh-success); font-weight: 600; margin-left: 8px; }
.hh-muted { color: var(--hh-muted); font-style: italic; }

/* Facility Edit / Add */
.hh-facility-edit-wrap { margin-top: 2rem; }
.hh-edit-form { margin-top: 1rem; }
.hh-edit-form h3 { margin: 0 0 16px; }
.hh-add-facility-wrap { margin: 2rem 0; }
.hh-add-facility-wrap .hh-subtitle { color: var(--hh-muted); margin-bottom: 1.5rem; }
.hh-cant-find { color: var(--hh-muted); }
.hh-cant-find a { color: var(--hh-primary); }

/* Needs Review badge on facility card */
.hh-needs-review-badge {
    display: inline-block; padding: 2px 8px; border-radius: 4px;
    background: #fff3cd; color: #664d03; font-size: .75rem; font-weight: 600;
}

/* Featured facility card + badge */
.hh-facility-card { position: relative; }
.hh-featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--hh-primary);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.hh-featured-badge .hh-icon {
    color: #fff;
    font-size: 0.95rem;
}
.hh-facility-card--featured { box-shadow: 0 0 0 2px var(--hh-primary), var(--hh-shadow); }
.hh-featured-grid { max-width: 1140px; margin-left: auto; margin-right: auto; padding: 0 24px; }
.hh-home-featured-wrap { padding-bottom: 0; }
.hh-home-featured-browse { text-align: center; padding: 1.5rem 24px 4rem; }
.hh-home-featured-browse .hh-btn { border-radius: 0; padding: 14px 36px; font-size: 1rem; }

/* Terms Consent */
.hh-consent-group { margin: 1rem 0; padding: 12px; background: var(--hh-light); border-radius: var(--hh-radius); }
.hh-consent-group label { font-size: .85rem; font-weight: 400; display: flex; align-items: flex-start; gap: 8px; }
.hh-consent-group input[type="checkbox"] { margin-top: 3px; }

/* --- Agency CTA banner (homepage) --- */
.hh-agency-cta-banner {
    background: linear-gradient(135deg, #5b8d90 0%, #3a7375 100%);
    padding: 4rem 2rem;
    text-align: center;
}
.hh-agency-cta-banner__inner {
    max-width: 620px;
    margin: 0 auto;
}
.hh-agency-cta-banner__heading {
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin: 0 0 .75rem;
    letter-spacing: -.01em;
}
.hh-agency-cta-banner__text {
    color: rgba(255,255,255,.78);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 0 2rem;
}
.hh-agency-cta-banner__actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
@media (max-width: 480px) {
    .hh-agency-cta-banner { padding: 3rem 1.25rem; }
    .hh-agency-cta-banner__actions { flex-direction: column; align-items: center; }
    .hh-agency-cta-banner__actions .hh-cta-banner__btn { width: 100%; max-width: 320px; }
}

/* ==========================================================================
   AGENCY CARDS
   ========================================================================== */

.hh-agency-card {
    background: #fff;
    border: 1px solid var(--hh-border);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}
.hh-agency-card:hover { box-shadow: var(--hh-shadow-hover); transform: translateY(-2px); }
.hh-agency-card .hh-card-body { padding: 1.1rem 1.25rem; }

/* ==========================================================================
   FOOTER COLUMNS
   ========================================================================== */

.hh-footer-columns {
    background: #fff;
    border-top: 1px solid var(--hh-border);
    padding: 4rem 24px 3rem;
}
.hh-footer-columns__inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.5rem;
    max-width: 1140px;
    margin: 0 auto;
}
.hh-footer-col__brand {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--hh-text);
    margin-bottom: .5rem;
}
.hh-footer-col__tagline {
    font-size: .9rem;
    color: var(--hh-muted);
    line-height: 1.55;
    margin: 0;
    max-width: 260px;
}
.hh-footer-col__heading {
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--hh-text);
    margin: 0 0 .75rem;
}
.hh-footer-col__links {
    list-style: none;
    margin: 0;
    padding: 0;
}
.hh-footer-col__links li { margin-bottom: .45rem; }
.hh-footer-col__links a {
    color: var(--hh-muted);
    text-decoration: none;
    font-size: .9rem;
    transition: color .15s;
}
.hh-footer-col__links a:hover { color: var(--hh-primary); }

@media (max-width: 768px) {
    .hh-footer-columns__inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
    .hh-footer-columns { padding: 2.5rem 16px 2rem; }
    .hh-footer-columns__inner { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ==========================================================================
   JOB BOARD
   ========================================================================== */

.hh-job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 0 0 2rem;
}

.hh-job-card {
    background: #fff;
    border: 1px solid var(--hh-border);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}
.hh-job-card:hover { box-shadow: var(--hh-shadow-hover); transform: translateY(-2px); }
.hh-job-card__body { padding: 1.1rem 1.25rem; }
.hh-job-card__title { margin: 0 0 .35rem; font-size: 1.05rem; line-height: 1.3; }
.hh-job-card__title a { color: var(--hh-text); text-decoration: none; }
.hh-job-card__title a:hover { color: var(--hh-primary); }
.hh-job-card__facility {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    flex-wrap: wrap;
    margin: 0 0 .6rem;
    font-size: .9rem;
    color: var(--hh-muted);
}
.hh-job-card__facility a { color: var(--hh-primary); text-decoration: none; }
.hh-job-card__facility a:hover { text-decoration: underline; }
.hh-job-card__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: .5rem; }
.hh-job-card__start {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: .85rem;
    color: var(--hh-muted);
    margin: 0;
}

/* Single job page */
.hh-job-single__breadcrumb { font-size: .85rem; color: var(--hh-muted); margin-bottom: 1rem; }
.hh-job-single__breadcrumb a { color: var(--hh-primary); text-decoration: none; }
.hh-job-single__facility { font-size: 1.05rem; margin: -.5rem 0 2rem; color: var(--hh-muted); }
.hh-job-single__facility a { color: var(--hh-primary); text-decoration: none; }
.hh-job-single__details { margin-bottom: 2rem; }
.hh-job-single__description { margin-bottom: 2rem; }
.hh-job-single__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 1.5rem; }
.hh-job-single__posted { font-size: .85rem; color: var(--hh-muted); }

/* Facility page job list */
.hh-facility-jobs { margin-top: 2.5rem; }
.hh-facility-jobs h2 { font-size: 1.3rem; margin-bottom: 1rem; }
.hh-job-list { display: flex; flex-direction: column; gap: 12px; }
.hh-job-list .hh-job-card { border-left: 3px solid var(--hh-primary); }

/* ==========================================================================
   RESPONSIVE — Mobile-First Overhaul
   Three breakpoints: 480px (phone), 768px (tablet), 1024px (small desktop)
   ========================================================================== */

/* --- Global touch-friendly baseline --- */
@media (pointer: coarse) {
    .hh-btn,
    .hh-page-link,
    .hh-suggestion-item,
    .hh-tab {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .hh-pick-star {
        font-size: 2rem;
        padding: 4px;
    }
    .hh-filter-group select,
    .hh-filter-group input[type="text"],
    .hh-review-form input,
    .hh-review-form select,
    .hh-review-form textarea,
    .hh-claim-form input,
    .hh-claim-form textarea,
    .hh-claim-form select,
    .hh-edit-form input,
    .hh-edit-form select,
    .hh-edit-form textarea {
        min-height: 44px;
        font-size: 16px;
    }
}

/* --- Tablet: 768px and below --- */
@media (max-width: 768px) {
    .hh-container { padding: 0 16px; }

    /* Layout */
    .hh-facility-body { grid-template-columns: 1fr; gap: 24px; }
    .hh-facility-sidebar { position: static; }

    /* Typography */
    .hh-page-title { font-size: 1.6rem; }
    .hh-facility-name { font-size: 1.7rem; }
    .hh-facility-hero { padding: 2rem 0 1.5rem; }

    /* Search filters — 2-column grid on tablet */
    .hh-filter-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .hh-filter-keyword { grid-column: 1 / -1; }
    .hh-filter-btn { grid-column: 1 / -1; }
    .hh-filter-btn .hh-btn { width: 100%; }

    /* Facility card grid — 2 columns on tablet */
    .hh-facility-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }

    /* Star picker */
    .hh-star-picker { flex-direction: column; align-items: flex-start; gap: 4px; }
    .hh-star-picker label { width: auto; }

    /* Rating breakdown */
    .hh-rating-label { width: 120px; font-size: .85rem; }

    /* Dashboard table — horizontal scroll */
    .hh-dashboard-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -16px;
        padding: 0 16px;
    }
    .hh-dashboard-table { min-width: 520px; }

    /* Review header — stack on tablet */
    .hh-review-header { flex-direction: column; align-items: flex-start; gap: 4px; }

    /* Review item — tighter padding */
    .hh-review-item { padding: 16px; }

    /* Claim form */
    .hh-claim-form { padding: 16px; }

    /* Detail list — tighter */
    .hh-detail-list { grid-template-columns: 120px 1fr; gap: 6px 12px; }

    /* Tabs — scroll horizontally if many */
    .hh-dashboard-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .hh-tab { white-space: nowrap; padding: 10px 16px; font-size: .9rem; }

    /* Provider dashboard */
    .hh-provider-facility-card { padding: 16px; }
    .hh-provider-review-row { padding: 10px; }

    /* Forms */
    .hh-review-form-wrap { padding: 1.25rem; }
    .hh-form-col { min-width: 160px; }

    /* Card badges — wrap tighter */
    .hh-card-badges { gap: 3px; }
    .hh-facility-hero-badges { gap: 4px; }

    /* Red flag grid — 2 columns */
    .hh-red-flag-grid { grid-template-columns: 1fr 1fr; gap: 6px; }

    /* Staffing details — wrap tighter */
    .hh-review-staffing-details { gap: 4px; }
    .hh-staffing-detail { font-size: .75rem; padding: 2px 8px; }

    /* Job grid — 2 columns */
    .hh-job-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }

    /* Footer columns — already 2x2, tighten gap */
    .hh-footer-columns__inner { gap: 1.5rem; }
}

/* --- Phone: 480px and below --- */
@media (max-width: 480px) {
    .hh-container { padding: 0 12px; }

    /* Typography */
    .hh-page-title { font-size: 1.35rem; }
    .hh-facility-name { font-size: 1.4rem; line-height: 1.25; }
    .hh-facility-location { font-size: .95rem; }
    .hh-facility-hero { padding: 1.5rem 0 1.25rem; }
    .hh-ratings-breakdown h2,
    .hh-facility-details h2,
    .hh-reviews-section h2 { font-size: 1.15rem; }

    /* Search filters — single column */
    .hh-filter-row { grid-template-columns: 1fr; }
    .hh-filter-keyword { grid-column: auto; }
    .hh-filter-btn { grid-column: auto; }

    /* Card grid — single column, full width */
    .hh-facility-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 1rem 0;
    }
    .hh-card-image img { height: 160px; }
    .hh-card-body { padding: 12px; }

    /* All buttons full-width on phone */
    .hh-btn { width: 100%; text-align: center; padding: 12px 20px; }
    .hh-btn-small { width: auto; }
    .hh-form-actions { flex-direction: column; }
    .hh-form-actions .hh-btn { width: 100%; }

    /* Rating bars — compact */
    .hh-rating-row { gap: 8px; }
    .hh-rating-label { width: 90px; font-size: .8rem; }
    .hh-rating-value { width: 28px; font-size: .8rem; }

    /* Review mini-ratings — 2-column grid instead of wrapping flex */
    .hh-review-ratings-mini {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    .hh-mini-rating { font-size: .75rem; padding: 4px 6px; text-align: center; }

    /* Review form — minimal padding */
    .hh-review-form-wrap { padding: 1rem; margin: 1rem 0; }
    .hh-review-form legend { font-size: 1rem; }

    /* Form rows — full stack */
    .hh-form-row { flex-direction: column; gap: 0; }
    .hh-form-col { min-width: 100%; }

    /* Star picker — bigger touch targets */
    .hh-star-picker { margin-bottom: 12px; }
    .hh-star-input { gap: 8px; }
    .hh-pick-star { font-size: 2.2rem; padding: 2px 4px; }

    /* Pagination — larger touch targets */
    .hh-page-link { padding: 10px 16px; margin: 2px; font-size: .9rem; }

    /* Detail list — stack vertically */
    .hh-detail-list { grid-template-columns: 1fr; gap: 4px; }
    .hh-detail-list dt { margin-top: 8px; }

    /* Sidebar cards — tighter */
    .hh-sidebar-card { padding: 12px; }

    /* Dashboard */
    .hh-dashboard-table { min-width: 440px; }
    .hh-tab { padding: 10px 12px; font-size: .85rem; }

    /* Suggestions — full width, larger items */
    .hh-suggestions { max-height: 200px; }
    .hh-suggestion-item { padding: 12px 14px; min-height: 44px; }

    /* Provider response — tighter */
    .hh-provider-response { padding: 10px 12px; }
    .hh-provider-response-header { flex-direction: column; align-items: flex-start; gap: 2px; }

    /* Claim section */
    .hh-claim-form { padding: 14px; }
    .hh-claimed-badge { flex-direction: column; text-align: center; }

    /* Edit form */
    .hh-edit-form { padding: 14px; }

    /* Consent */
    .hh-consent-group { padding: 10px; }
    .hh-consent-group label { font-size: .8rem; }

    /* Notices */
    .hh-notice { padding: 12px; font-size: .9rem; }
    .hh-review-success { padding: 12px; }
    .hh-form-error { padding: 8px; font-size: .85rem; }

    /* Overall badge */
    .hh-overall-badge { flex-wrap: wrap; }

    /* Status badges inline */
    .hh-status { font-size: .75rem; padding: 2px 8px; }

    /* Card badges — stack */
    .hh-card-badges { gap: 3px; }
    .hh-badge--small { font-size: .7rem; padding: 2px 6px; }
    .hh-facility-hero-badges { gap: 4px; flex-wrap: wrap; }

    /* Red flags — single column */
    .hh-red-flag-grid { grid-template-columns: 1fr; gap: 5px; }
    .hh-red-flag-option { font-size: .82rem; padding: 5px 8px; }
    .hh-review-red-flags { gap: 4px; }
    .hh-red-flag-badge { font-size: .72rem; padding: 2px 8px; }

    /* Staffing details */
    .hh-review-staffing-details { gap: 4px; }
    .hh-staffing-detail { font-size: .72rem; padding: 2px 6px; }

    /* Compensation block */
    .hh-review-compensation { padding: 10px 12px; }
    .hh-comp-fieldset { padding: 1rem; }

    /* License toggle */
    .hh-filter-license-toggle { grid-column: auto; }

    /* Job grid — single column */
    .hh-job-grid { grid-template-columns: 1fr; gap: 12px; }

    /* Agency cards */
    .hh-agency-card .hh-card-body { padding: 12px; }

    /* Footer columns — single column */
    .hh-footer-columns { padding: 2rem 12px 1.5rem; }
    .hh-footer-columns__inner { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* --- Small phone: 360px and below --- */
@media (max-width: 360px) {
    .hh-facility-name { font-size: 1.25rem; }
    .hh-rating-label { width: 75px; font-size: .75rem; }
    .hh-mini-rating { font-size: .7rem; }
    .hh-pick-star { font-size: 1.8rem; }
    .hh-card-image img { height: 140px; }
    .hh-badge--small { font-size: .65rem; }
    .hh-red-flag-badge { font-size: .68rem; }
    .hh-staffing-detail { font-size: .68rem; }
    .hh-footer-col__heading { font-size: .75rem; }
    .hh-footer-col__links a { font-size: .82rem; }
}

/* --- Job Board Teaser (logged-out) --- */
.hh-job-teaser {
    text-align: center;
    max-width: 540px;
    margin: 2rem auto;
    padding: 2.5rem 2rem;
    background: var(--hh-surface, #f8f9fa);
    border: 1px solid var(--hh-border, #dee2e6);
    border-radius: 12px;
}
.hh-job-teaser__icon { font-size: 2.5rem; margin-bottom: .75rem; }
.hh-job-teaser__title { font-size: 1.5rem; margin: 0 0 .75rem; }
.hh-job-teaser__count { font-size: 1.05rem; color: var(--hh-primary, #0d6efd); margin: 0 0 .5rem; }
.hh-job-teaser__desc { font-size: .95rem; color: #555; margin: 0 0 1.5rem; }
.hh-job-teaser__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* --- Join Page --- */
.hh-join-page { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin: 2rem 0; }
.hh-join-section {
    background: var(--hh-surface, #f8f9fa);
    border: 1px solid var(--hh-border, #dee2e6);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}
.hh-join-section__icon { font-size: 2.5rem; margin-bottom: .5rem; }
.hh-join-section h2 { margin: 0 0 .75rem; font-size: 1.3rem; }
.hh-join-section p { font-size: .95rem; color: #555; margin: 0 0 1rem; }
.hh-join-perks {
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    font-size: .9rem;
}
.hh-join-perks li { padding: 4px 0 4px 20px; position: relative; }
.hh-join-perks li::before { content: '\2713'; position: absolute; left: 0; color: var(--hh-primary, #0d6efd); font-weight: bold; }
.hh-join-section__actions { display: flex; flex-direction: column; gap: 8px; align-items: center; }

/* --- Modal --- */
.hh-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(2px);
    overflow-y: auto;
    padding: 2rem 1rem;
}
.hh-modal-backdrop.hh-modal-open { display: flex; justify-content: center; align-items: flex-start; }
.hh-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 580px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 8px 30px rgba(0,0,0,.25);
    margin: auto;
}
.hh-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 4px;
}
.hh-modal__close:hover { color: #000; }
.hh-modal h3 { margin: 0 0 1rem; font-size: 1.25rem; }
.hh-modal .hh-form-error { margin-top: .75rem; }
.hh-modal .hh-modal-success { color: var(--hh-primary, #0d6efd); font-weight: 600; margin-top: .75rem; }

/* --- Inline Review Response (owner on facility/agency page) --- */
.hh-inline-response-form {
    margin-top: 12px;
    padding: 12px;
    background: var(--hh-surface, #f8f9fa);
    border: 1px solid var(--hh-border, #dee2e6);
    border-radius: 8px;
}
.hh-inline-response-form textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: .9rem;
    resize: vertical;
    font-family: inherit;
}
.hh-inline-response-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}
.hh-inline-response-result { font-size: .85rem; }
.hh-inline-upgrade-cta {
    margin-top: 10px;
    padding: 10px 14px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    font-size: .88rem;
}

/* --- Identity toggle on review forms --- */
.hh-identity-group { font-size: .9rem; color: #555; }
.hh-identity-group label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.hh-identity-group input[type="checkbox"] { width: 16px; height: 16px; flex-shrink: 0; }

/* --- Landscape phone helper --- */
@media (max-width: 768px) and (orientation: landscape) {
    .hh-facility-grid { grid-template-columns: 1fr 1fr; }
    .hh-filter-row { grid-template-columns: 1fr 1fr 1fr; }
    .hh-form-row { flex-direction: row; gap: 12px; }
    .hh-form-col { min-width: 0; flex: 1; }
    .hh-btn { width: auto; }
}
