/* ══════════════════════════════════════════════════════════
   HDLISTING — PUBLIC STYLES
══════════════════════════════════════════════════════════ */
:root {
    --hd-primary: #00838f;
    --hd-primary-dark: #006064;
    --hd-teal-light: #e0f2f1;
    --hd-bg: #f7f9fa;
    --hd-text: #263238;
    --hd-text-muted: #78909c;
    --hd-border: #e0e0e0;
}

.hd-wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ── Hero + search bar ── */
.hd-hero { background: linear-gradient(135deg, var(--hd-primary), var(--hd-primary-dark)); color: #fff; text-align: center; padding: 56px 24px 56px; margin-bottom: 40px; border-radius: 0 0 24px 24px; }
.hd-hero__title { font-size: 32px; font-weight: 800; margin: 0 0 10px; }
.hd-hero__sub { font-size: 17px; opacity: .92; margin: 0 0 32px; }

.hd-search-bar { display: flex; gap: 10px; background: #fff; border-radius: 14px; padding: 10px; max-width: 900px; margin: 0 auto; box-shadow: 0 8px 24px rgba(0,0,0,.15); flex-wrap: wrap; }
.hd-search-bar__field { flex: 1; min-width: 160px; border: none; padding: 12px 14px; font-size: 14px; border-radius: 8px; background: var(--hd-bg); color: var(--hd-text); }
.hd-search-bar__field--keyword { flex: 2; min-width: 220px; }
.hd-search-bar__field:focus { outline: 2px solid var(--hd-primary); }

/* ── Buttons ── */
.hd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--hd-primary); color: #fff; border: none; border-radius: 8px; padding: 12px 22px; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; min-height: 44px; }
.hd-btn:hover { background: var(--hd-primary-dark); color: #fff; }
.hd-btn--lg { padding: 14px 28px; font-size: 15px; }

/* ── Section header ── */
.hd-section__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 8px; }
.hd-section__title { font-size: 22px; font-weight: 800; color: var(--hd-text); margin: 0; }
.hd-results-count { color: var(--hd-text-muted); font-size: 14px; margin-left: auto; }

/* ── Grid + cards ── */
.hd-grid, .hd-grid--featured { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-bottom: 40px; }

.hd-card { display: block; background: #fff; border: 1px solid var(--hd-border); border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.hd-card:hover, .hd-card.hovered { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.hd-card__image { width: 100%; height: 160px; object-fit: cover; background: var(--hd-teal-light); }
.hd-card__body { padding: 16px; }
.hd-card__title { font-size: 16px; font-weight: 700; margin: 0 0 6px; color: var(--hd-text); }
.hd-card__type { display: inline-block; background: var(--hd-teal-light); color: var(--hd-primary); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 3px 10px; border-radius: 20px; margin-bottom: 8px; }
.hd-card__spec, .hd-card__region, .hd-card__phone, .hd-card__hours { font-size: 13px; color: var(--hd-text-muted); margin: 4px 0; overflow-wrap: anywhere; }

/* ── Pagination ── */
.hd-pagination { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 20px 0 40px; }
.hd-page-btn { min-width: 40px; height: 40px; border: 1px solid var(--hd-border); background: #fff; border-radius: 8px; cursor: pointer; font-size: 14px; }
.hd-page-btn.active { background: var(--hd-primary); color: #fff; border-color: var(--hd-primary); }

/* ── Badges ── */
.hd-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.hd-badge--featured { background: #fff3cd; color: #8a6d00; }
.hd-badge--verified { background: #d1f2eb; color: #0e6251; }

/* ── "Coming Soon" placeholder ── */
.hd-coming-soon, .hd-field-value.hd-coming-soon {
    color: var(--hd-text-muted);
    font-style: italic;
    font-weight: 500;
    opacity: .8;
}

/* ══════════════════════════════════════════════════════════
   PROVIDER DETAIL CARD
══════════════════════════════════════════════════════════ */
.hd-provider-card { background: #fff; border: 1px solid var(--hd-border); border-radius: 16px; overflow: hidden; margin: 20px 0; }
.hd-provider-card--featured { border-color: var(--hd-primary); }

.hd-provider-card__header { display: flex; gap: 20px; padding: 24px; }
.hd-provider-card__photo img { width: 100px; height: 100px; border-radius: 14px; object-fit: cover; }
.hd-provider-card__initials { width: 100px; height: 100px; border-radius: 14px; background: var(--hd-teal-light); color: var(--hd-primary); display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 800; }
.hd-provider-card__info { flex: 1; min-width: 0; }
.hd-provider-card__name { font-size: 22px; font-weight: 800; margin: 0 0 8px; color: var(--hd-text); }
.hd-provider-card__meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.hd-tag { display: inline-block; background: var(--hd-teal-light); color: var(--hd-primary); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px; }
.hd-provider-card__specs, .hd-provider-card__region { font-size: 14px; color: var(--hd-text-muted); margin: 4px 0; overflow-wrap: anywhere; }

.hd-provider-card__desc { padding: 20px 24px; color: var(--hd-text-muted); border-bottom: 1px solid var(--hd-border); line-height: 1.6; }

/* Contact pills — wrap freely, shrink gracefully on small screens */
.hd-provider-card__contacts { padding: 16px 24px; display: flex; gap: 10px; flex-wrap: wrap; }
.hd-contact-pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--hd-teal-light); color: var(--hd-primary);
    border-radius: 20px; padding: 8px 14px; font-size: 13px; font-weight: 600;
    text-decoration: none; transition: background .15s;
    min-height: 36px; max-width: 100%; overflow-wrap: anywhere;
}
.hd-contact-pill:hover { background: #c0e0e0; color: var(--hd-primary-dark); }
.hd-contact-pill--empty { background: var(--hd-bg); color: var(--hd-text-muted); cursor: default; }

/* Address / hours / manager info grid */
.hd-provider-card__details {
    padding: 20px 24px; border-top: 1px solid var(--hd-border);
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 16px 24px;
}
.hd-detail-item { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hd-detail-item__label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--hd-text-muted); }
.hd-detail-item__value { font-size: 14px; color: var(--hd-text); overflow-wrap: anywhere; }
.hd-detail-item__value--pre { white-space: pre-wrap; font-family: inherit; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   Two breakpoints: tablet/small-laptop (≤768px) and phones (≤480px).
   Every interactive element keeps a comfortable ~44px tap target on
   touch screens, and text/layout reflow to a single column so
   nothing requires horizontal scrolling.
══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .hd-wrap { padding: 0 16px; }

    .hd-hero { padding: 40px 16px 40px; margin-bottom: 32px; }
    .hd-hero__sub { font-size: 16px; margin-bottom: 28px; }
    .hd-search-bar { flex-direction: column; }
    .hd-search-bar__field { min-width: auto; width: 100%; }
    .hd-search-bar__field--keyword { min-width: auto; }
    .hd-search-bar .hd-btn { width: 100%; }

    .hd-grid, .hd-grid--featured { grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 16px; }

    .hd-section__header { flex-wrap: wrap; }
    .hd-results-count { margin-left: 0; }

    .hd-provider-card__header { flex-direction: column; text-align: center; }
    .hd-provider-card__meta, .hd-provider-card__specs, .hd-provider-card__region { justify-content: center; }
    .hd-provider-card__contacts { padding: 14px 16px; }
    .hd-provider-card__desc { padding: 16px; }
    .hd-provider-card__details { padding: 16px; grid-template-columns: 1fr; gap: 14px; }

    .hd-page-btn { min-width: 44px; height: 44px; }
}

@media (max-width: 480px) {
    .hd-wrap { padding: 0 12px; }

    .hd-hero { padding: 32px 12px 32px; }
    .hd-hero__title { letter-spacing: -0.5px; font-size: 26px; }
    .hd-hero__sub { font-size: 15px; margin-bottom: 24px; }

    .hd-grid, .hd-grid--featured { grid-template-columns: 1fr; gap: 14px; }

    .hd-card__image { height: 150px; }
    .hd-card__body { padding: 14px; }

    .hd-provider-card__contacts { flex-direction: column; align-items: stretch; }
    .hd-contact-pill { justify-content: center; width: 100%; }

    .hd-provider-card__photo img, .hd-provider-card__initials { width: 84px; height: 84px; }
    .hd-provider-card__name { font-size: 19px; }

    .hd-btn--lg { padding: 12px 24px; font-size: 15px; width: 100%; justify-content: center; }

    .hd-pagination { gap: 6px; }
    .hd-page-btn { min-width: 40px; height: 40px; font-size: 13px; }
}
