/*!
 * findhospital.css — redesigned /find-hospital page
 * Mirrors finddoctors.css so the two listing pages feel identical.
 * Every icon rule sets BOTH color and stroke with !important — the theme sets a
 * muted colour on spans which would otherwise grey out the glyphs.
 */

.fh-section {
    /* theme colours come from the admin Basic Settings pickers */
    --fh-teal: var(--site-base, #09a9b7);
    --fh-teal-dark: var(--site-base-dark, #087e8b);
    --fh-navy: var(--site-secondary, #0d1c51);
    --fh-text: #24355e;
    --fh-muted: #6b7897;
    --fh-line: #dfeaf0;
    --fh-bg: var(--site-base-bg, #f5fbfd);
    --fh-soft: var(--site-base-tint, #eaf9fb);
    --fh-pink: #f34d98;
    --fh-radius: 16px;
    --fh-shadow: 0 8px 26px rgba(20, 70, 100, .08);
}

.fh-section h1, .fh-section h2, .fh-section h3, .fh-section h4, .fh-section p {
    margin: 0;
}
.fh-section a { text-decoration: none; }

/* mirrors the theme container so the page lines up with header/footer */
.fh-wrap {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding-right: var(--bs-gutter-x, 12px);
    padding-left: var(--bs-gutter-x, 12px);
}
@media (min-width: 576px)  { .fh-wrap { max-width: 540px; } }
@media (min-width: 768px)  { .fh-wrap { max-width: 720px; } }
@media (min-width: 992px)  { .fh-wrap { max-width: 960px; } }
@media (min-width: 1200px) { .fh-wrap { max-width: 1140px; } }
@media (min-width: 1500px) { .fh-wrap { max-width: 1440px; } }

/* ------------------------------------------------------------- breadcrumb */
.fh-crumb {
    padding: 14px 0;
    background: #fff;
    border-bottom: 1px solid var(--fh-line);
}
.fh-crumb ol {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0; padding: 0;
    list-style: none;
    font-size: 13px;
}
.fh-crumb li { color: var(--fh-muted); }
.fh-crumb li + li::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "Font Awesome 5 Pro";
    font-weight: 900;
    margin-right: 8px;
    color: #b6c2d6;
    font-size: 11px;
}
.fh-crumb a { color: var(--fh-muted); }
.fh-crumb a:hover { color: var(--fh-teal-dark); }
.fh-crumb [aria-current] { color: var(--fh-teal-dark); font-weight: 600; }

/* ------------------------------------------------------------------- hero */
.fh-hero {
    position: relative;
    background: linear-gradient(180deg, #f6fcfd 0%, #e9f7fa 60%, #fff 100%);
    overflow: hidden;
}
.fh-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 36px;
    align-items: center;
    padding: 30px 0 46px;
}
.fh-hero__title {
    font-size: 42px;
    line-height: 1.14;
    font-weight: 700;
    letter-spacing: -.8px;
    color: var(--fh-navy);
}
.fh-hero__sub {
    margin-top: 14px;
    max-width: 600px;
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--fh-muted);
}

.fh-trust {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    padding: 0; list-style: none;
}
.fh-trust li {
    display: flex; align-items: center; gap: 8px;
    font-size: 13.5px; font-weight: 600; color: var(--fh-text);
}
.fh-trust svg {
    width: 18px; height: 18px; flex: 0 0 auto;
    color: var(--fh-teal-dark) !important;
    stroke: var(--fh-teal-dark) !important;
}

.fh-hero__aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}
.fh-hero__photo {
    width: 100%;
    max-width: 460px;
    aspect-ratio: 16 / 8.4;
    object-fit: contain;
    object-position: center;
}

.fh-pills { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 460px; }
.fh-pill {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 16px;
    background: #fff;
    border: 1px solid var(--fh-line);
    border-radius: 11px;
    box-shadow: 0 6px 18px rgba(20, 70, 100, .06);
    font-size: 13.5px; font-weight: 600; color: var(--fh-text);
}
.fh-pill svg {
    width: 18px; height: 18px; flex: 0 0 auto;
    color: var(--fh-teal-dark) !important;
    stroke: var(--fh-teal-dark) !important;
}

/* --------------------------------------------------------- search (float) */
.fh-search { position: relative; z-index: 5; margin-top: -50px; }
.fh-search__bar {
    display: flex; align-items: stretch; gap: 10px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--fh-line);
    border-radius: 16px;
    box-shadow: 0 14px 34px color-mix(in srgb, var(--site-base) 12%, transparent);
}
.fh-field {
    display: flex; align-items: center; gap: 9px;
    flex: 1 1 0; min-width: 0;
    padding: 0 12px;
    border-right: 1px solid var(--fh-line);
}
.fh-field--keyword { flex: 2.4 1 0; }
.fh-field:last-of-type { border-right: 0; }
.fh-field svg {
    width: 18px; height: 18px; flex: 0 0 auto;
    color: var(--fh-teal) !important;
    stroke: var(--fh-teal) !important;
}
.fh-field input, .fh-field select {
    width: 100%; min-width: 0; height: 42px;
    border: 0; outline: 0; background: transparent;
    font-family: inherit; font-size: 14.5px; color: var(--fh-text);
    appearance: none; -webkit-appearance: none; cursor: pointer;
}
.fh-field input::placeholder { color: #a9b4c9; }

.fh-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; padding: 0 24px;
    border: 0; border-radius: 10px;
    background: var(--fh-teal-dark); color: #fff;
    font-family: inherit; font-size: 15px; font-weight: 600;
    cursor: pointer; white-space: nowrap;
    transition: background .2s ease, transform .2s ease;
}
.fh-btn:hover { background: var(--fh-teal); transform: translateY(-2px); }
.fh-btn svg {
    width: 17px; height: 17px;
    color: #fff !important; stroke: #fff !important;
}
.fh-btn--outline {
    background: #fff; color: var(--fh-teal-dark);
    border: 1px solid color-mix(in srgb, var(--site-base) 55%, transparent);
}
.fh-btn--outline:hover { background: var(--fh-soft); color: var(--fh-teal-dark); }

/* ------------------------------------------------------- facility strip */
.fh-facilities { padding: 24px 0 6px; background: #fff; }
.fh-facilities__head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; margin-bottom: 13px;
}
.fh-facilities__title { font-size: 19px; font-weight: 700; color: var(--fh-navy); }

.fh-facilities__track {
    display: flex; gap: 11px;
    overflow-x: auto;
    /* overflow-x:auto makes overflow-y auto too, so this clips the -4px
       hover lift; the top padding is that headroom, pulled back with a
       negative margin so the row keeps its heading alignment. */
    padding: 6px 0 10px;
    margin-top: -6px;
    scrollbar-width: none; -ms-overflow-style: none;
    cursor: grab; user-select: none; -webkit-user-select: none;
}
.fh-facilities__track::-webkit-scrollbar { display: none; }
.fh-facilities__track.is-dragging { cursor: grabbing; }

.fh-fac {
    flex: 0 0 100px;
    display: flex; flex-direction: column; align-items: center; gap: 9px;
    padding: 14px 8px;
    background: var(--fh-soft);
    border: 1px solid var(--site-base-tint-3, #d9edf2);
    border-radius: 14px;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.fh-fac:hover {
    transform: translateY(-4px);
    background: var(--site-base-tint-2, #e4f4f8);
    box-shadow: 0 12px 26px color-mix(in srgb, var(--site-base) 16%, transparent);
}
.fh-fac svg {
    width: 26px; height: 26px;
    color: var(--fh-teal-dark) !important;
    stroke: var(--fh-teal-dark) !important;
    stroke-width: 1.8;
}
.fh-fac span {
    font-size: 11.5px; font-weight: 600; line-height: 1.35; color: var(--site-secondary-dark, #1b2b4d);
}

/* ------------------------------------------------------------- main grid */
.fh-main { padding: 20px 0 50px; background: var(--fh-bg); }
.fh-layout {
    display: grid;
    grid-template-columns: 296px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

/* ------------------------------------------------------------ sidebar */
.fh-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 20px; }
.fh-panel {
    padding: 18px;
    background: #fff;
    border: 1px solid var(--fh-line);
    border-radius: var(--fh-radius);
    box-shadow: var(--fh-shadow);
}
.fh-panel__head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; margin-bottom: 14px;
}
.fh-panel__title { font-size: 16px; font-weight: 700; color: var(--fh-navy); }
.fh-panel__clear { font-size: 12.5px; font-weight: 600; color: var(--fh-teal-dark); }
.fh-panel__clear:hover { color: var(--fh-pink); }

/* On mobile the drawer header carries the title and the Clear All link, so
   the panel's own header would repeat them. */
@media (max-width: 991px) {
    .fh-side .fh-panel__head { display: none; }
    .fh-side .fh-panel { padding: 0; border: 0; box-shadow: none; background: none; }
}

.fh-group + .fh-group { margin-top: 14px; }
.fh-group__label {
    display: block; margin-bottom: 7px;
    font-size: 13px; font-weight: 700; color: var(--fh-text);
}
.fh-group select {
    width: 100%; height: 40px;
    padding: 0 32px 0 12px;
    background: #fff
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7897' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
        no-repeat right 10px center / 16px;
    border: 1px solid var(--fh-line); border-radius: 9px;
    font-family: inherit; font-size: 13.5px; color: var(--fh-text);
    appearance: none; -webkit-appearance: none; cursor: pointer;
}
.fh-group select:focus { border-color: var(--fh-teal); }

.fh-checks { display: flex; flex-direction: column; gap: 9px; }
.fh-check {
    display: flex; align-items: center; gap: 8px;
    font-size: 12.5px; color: var(--fh-text); cursor: pointer;
}
.fh-check input { width: 16px; height: 16px; accent-color: var(--fh-teal-dark); cursor: pointer; }

.fh-rating { display: flex; flex-direction: column; gap: 8px; }
.fh-rating label {
    display: flex; align-items: center; gap: 7px;
    font-size: 12.5px; color: var(--fh-text); cursor: pointer;
}
.fh-rating input { width: 15px; height: 15px; accent-color: var(--fh-teal-dark); cursor: pointer; }
.fh-stars { display: inline-flex; gap: 1px; }
.fh-stars svg { width: 13px; height: 13px; color: #f5a623 !important; stroke: #f5a623 !important; }
.fh-stars svg.is-empty { color: #dbe4ee !important; stroke: #dbe4ee !important; }
.fh-rating em { font-style: normal; color: var(--fh-muted); }

.fh-panel .fh-btn { width: 100%; margin-top: 16px; }

/* ------------------------------------------------------------- results */
.fh-bar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.fh-bar__count { font-size: 17px; font-weight: 700; color: var(--fh-navy); }
.fh-bar__count span { color: var(--fh-teal-dark); }
.fh-bar__right { display: flex; align-items: center; gap: 8px; }
.fh-bar__right label { font-size: 13.5px; color: var(--fh-muted); white-space: nowrap; }
.fh-bar__right select {
    height: 38px; padding: 0 34px 0 12px;
    background: #fff
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7897' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
        no-repeat right 10px center / 16px;
    border: 1px solid var(--fh-line); border-radius: 8px;
    font-family: inherit; font-size: 13.5px; color: var(--fh-text);
    appearance: none; -webkit-appearance: none; cursor: pointer;
}

/* list / map toggle */
.fh-views { display: flex; align-items: center; gap: 8px; }
.fh-view {
    display: inline-flex; align-items: center; gap: 6px;
    height: 38px; padding: 0 13px;
    background: #fff;
    border: 1px solid var(--fh-line); border-radius: 8px;
    font-size: 13px; font-weight: 600; color: var(--fh-text);
    font-family: inherit;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.fh-view svg {
    width: 15px; height: 15px;
    color: var(--fh-teal) !important; stroke: var(--fh-teal) !important;
}
.fh-view:hover:not(:disabled) { border-color: var(--fh-teal); color: var(--fh-teal-dark); }
.fh-view.is-active { background: var(--fh-teal-dark); border-color: var(--fh-teal-dark); color: #fff; }
.fh-view.is-active svg { color: #fff !important; stroke: #fff !important; }
.fh-view:focus-visible { outline: 2px solid var(--fh-teal); outline-offset: 2px; }
.fh-view:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* the toggle was an <a> before, so it needs its text colour forced back */
a.fh-view { text-decoration: none; }

/* ------------------------------------------------------------- map view */
.fh-mapwrap {
    position: relative;
    border: 1px solid var(--fh-line);
    border-radius: var(--fh-radius);
    overflow: hidden;
    background: var(--fh-soft);
}
.fh-mapwrap[hidden] { display: none; }

/* Leaflet needs an explicit height; the container is a block otherwise. */
.fh-map {
    height: 620px;
    width: 100%;
    z-index: 1;
}
@media (max-width: 991px) {
    .fh-map { height: 460px; }
}

.fh-map__note {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 500;
    padding: 10px 14px;
    background: rgba(255, 255, 255, .95);
    border-top: 1px solid var(--fh-line);
    font-size: 13px;
    color: var(--fh-muted);
}

.fh-map__note--warn {
    background: rgba(255, 248, 235, .97);
    border-top-color: #f0d9a8;
    color: #8a6318;
}

/* Leaflet renders its own focus/selection colours that clash with the theme */
.fh-map .leaflet-container { font-family: inherit; background: var(--site-base-tint-2, #e8f3f6); }
.fh-map .leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(20, 70, 100, .18);
}
.fh-map .leaflet-popup-content { margin: 0; width: auto !important; }
.fh-map .leaflet-popup-tip { box-shadow: none; }
.fh-map .leaflet-control-attribution {
    font-size: 10px;
    background: rgba(255, 255, 255, .85);
}

/* mini card inside the map popup */
.fh-mappopup .leaflet-popup-content { margin: 0; }
.fh-mapcard {
    display: flex; gap: 10px; align-items: center;
    width: 240px; padding: 9px;
    color: inherit; text-decoration: none;
}
.fh-mapcard img {
    width: 62px; height: 62px; flex: 0 0 auto;
    object-fit: contain;
    background: var(--fh-soft);
    border: 1px solid var(--fh-line);
    border-radius: 10px;
}
.fh-mapcard__body { min-width: 0; }
.fh-mapcard__body b {
    display: block;
    font-size: 13.5px; font-weight: 700; line-height: 1.3;
    color: var(--fh-navy);
}
.fh-mapcard__body em {
    display: block; margin-top: 2px;
    font-size: 11.5px; font-style: normal;
    color: var(--fh-teal-dark);
}
.fh-mapcard__body small {
    display: block; margin-top: 3px;
    font-size: 11.5px; color: var(--fh-muted);
}
.fh-mapcard:hover .fh-mapcard__body b { color: var(--fh-teal-dark); }

/* ------------------------------------------------------------ card */
.fh-list { display: flex; flex-direction: column; gap: 14px; }

.fh-card {
    display: grid;
    grid-template-columns: 208px minmax(0, 1fr) 176px;
    gap: 18px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--fh-line);
    border-radius: var(--fh-radius);
    /* chips must never paint outside the card */
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.fh-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--site-base) 40%, transparent);
    box-shadow: 0 14px 32px color-mix(in srgb, var(--site-base) 12%, transparent);
}

.fh-card__media {
    position: relative;
    width: 208px;
    height: 168px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--fh-soft);
}
.fh-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fh-card__badge {
    position: absolute; top: 9px; left: 9px;
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 20px;
    background: rgba(255, 255, 255, .95);
    color: var(--fh-teal-dark);
    font-size: 11px; font-weight: 700;
}
.fh-card__badge svg {
    width: 12px; height: 12px;
    color: var(--fh-teal-dark) !important; stroke: var(--fh-teal-dark) !important;
}

.fh-card__main { min-width: 0; }

.fh-card__name {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-size: 18px; font-weight: 700; color: var(--fh-navy); line-height: 1.3;
}
.fh-verified {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 9px; border-radius: 20px;
    background: var(--site-base-tint-2, #e6f7fa); color: var(--fh-teal-dark);
    font-size: 11px; font-weight: 700;
}
.fh-verified svg {
    width: 12px; height: 12px;
    color: var(--fh-teal-dark) !important; stroke: var(--fh-teal-dark) !important;
}

.fh-card__addr {
    margin-top: 5px;
    display: flex; align-items: center; gap: 5px;
    font-size: 12.5px; color: var(--fh-muted);
}
.fh-card__addr svg {
    width: 13px; height: 13px; flex: 0 0 auto;
    color: var(--fh-teal) !important; stroke: var(--fh-teal) !important;
}

.fh-card__rating {
    margin-top: 7px;
    display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
    font-size: 12.5px; color: var(--fh-muted);
}
.fh-card__rating b { color: var(--fh-navy); }
.fh-rating-stars { display: inline-flex; gap: 1px; }
.fh-rating-stars svg { width: 14px; height: 14px; }
.fh-rating-stars .is-on { color: #f5a623 !important; stroke: #f5a623 !important; }
.fh-rating-stars .is-off { color: #dbe4ee !important; stroke: #dbe4ee !important; }

.fh-card__desc {
    margin-top: 8px;
    font-size: 13px; line-height: 1.6; color: var(--fh-text);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}

.fh-card__tags {
    margin: 10px 0 0; padding: 0;
    display: flex; flex-wrap: wrap; gap: 6px;
    list-style: none;
}
.fh-card__tags li {
    padding: 4px 10px;
    background: var(--fh-soft);
    border: 1px solid var(--site-base-tint-3, #d9edf2);
    border-radius: 20px;
    font-size: 11px; font-weight: 600; color: var(--fh-text);
}

.fh-follow {
    margin-top: 11px;
    display: flex; align-items: center; gap: 9px;
}
.fh-follow span {
    font-size: 11.5px; font-weight: 700; color: var(--fh-muted);
    margin-right: 2px;
}
.fh-follow__socials { display: flex; gap: 6px; }
.fh-follow__socials a {
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--fh-teal-dark); color: #fff;
    transition: transform .18s ease, background .18s ease;
}
.fh-follow__socials a:hover { transform: translateY(-2px); background: var(--fh-pink); }
.fh-follow__socials svg {
    width: 13px; height: 13px;
    color: #fff !important; stroke: #fff !important;
}

.fh-card__side {
    display: flex; flex-direction: column; gap: 10px;
    align-items: stretch; justify-content: space-between;
}
.fh-stats {
    /* one chip per row: a 2-column grid inside the 176px rail made labels
       like "24/7 Emergency" wider than their cell, so they spilled past the
       card edge */
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}
.fh-stat {
    display: flex; align-items: center; gap: 7px;
    min-width: 0;
    flex-wrap: wrap;
    padding: 8px 10px;
    background: var(--fh-bg);
    border-radius: 9px;
    font-size: 11.5px; font-weight: 600; color: var(--fh-text);
    line-height: 1.35;
}
.fh-stat svg {
    width: 15px; height: 15px; flex: 0 0 auto;
    color: var(--fh-teal-dark) !important; stroke: var(--fh-teal-dark) !important;
}
.fh-card__cta { display: flex; flex-direction: column; gap: 8px; }
.fh-card__cta .fh-btn { width: 100%; height: 38px; font-size: 13px; padding: 0 12px; }

/* --------------------------------------------------------------- help strip */
.fh-help {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 26px;
    align-items: center;
    padding: 24px 26px;
    margin-top: 26px;
    background: linear-gradient(120deg, #eefafb 0%, #e2f5f8 100%);
    border: 1px solid var(--site-base-tint-4, #cfeaf0);
    border-radius: var(--fh-radius);
}
.fh-help__title { font-size: 20px; font-weight: 700; color: var(--fh-navy); }
.fh-help__text { margin-top: 6px; font-size: 13.5px; color: var(--fh-muted); }
.fh-help__items { display: flex; gap: 22px; flex-wrap: wrap; }
.fh-help__item { display: flex; align-items: center; gap: 10px; }
.fh-help__ico {
    flex: 0 0 auto;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--fh-teal-dark); color: #fff;
}
.fh-help__ico svg {
    width: 19px; height: 19px;
    color: #fff !important; stroke: #fff !important;
}
.fh-help__item b { display: block; font-size: 13.5px; font-weight: 700; color: var(--fh-navy); }
.fh-help__item span { display: block; margin-top: 1px; font-size: 11.5px; color: var(--fh-muted); }
.fh-help__photo {
    width: 100%;
    max-width: 180px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

/* --------------------------------------------------------------- empty */
.fh-empty {
    padding: 46px 24px; text-align: center;
    background: #fff;
    border: 1px dashed var(--fh-line); border-radius: var(--fh-radius);
}
.fh-empty__ico {
    width: 54px; height: 54px; margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--fh-soft);
}
.fh-empty__ico svg {
    width: 26px; height: 26px;
    color: var(--fh-teal-dark) !important; stroke: var(--fh-teal-dark) !important;
}
.fh-empty h4 { font-size: 17px; font-weight: 700; color: var(--fh-navy); }
.fh-empty p { margin-top: 6px; font-size: 13.5px; color: var(--fh-muted); }

/* ------------------------------------------------------------ pagination */
.fh-pager {
    margin-top: 20px;
    display: flex; align-items: center; justify-content: center;
    gap: 6px; flex-wrap: wrap;
}
.fh-pager a, .fh-pager span {
    min-width: 38px; height: 38px; padding: 0 12px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--fh-line); border-radius: 9px;
    background: #fff;
    font-size: 13.5px; font-weight: 600; color: var(--fh-text);
}
.fh-pager a:hover { border-color: var(--fh-teal); color: var(--fh-teal-dark); }
.fh-pager .is-current { background: var(--fh-teal-dark); border-color: var(--fh-teal-dark); color: #fff; }
.fh-pager .is-disabled { opacity: .45; pointer-events: none; }
.fh-pager .is-dots { border: 0; background: none; }

/* ================================================================ RESPONSIVE */
@media (max-width: 1199px) {
    .fh-layout { grid-template-columns: 264px minmax(0, 1fr); }
    .fh-hero__title { font-size: 34px; }
    .fh-card { grid-template-columns: 180px minmax(0, 1fr) 164px; }
    .fh-card__media { width: 180px; height: 150px; }
}

@media (max-width: 991px) {
    .fh-hero__inner { grid-template-columns: 1fr; gap: 24px; padding: 26px 0 36px; }
    .fh-hero__title { font-size: 29px; }
    .fh-hero__aside { align-items: flex-start; }
    .fh-hero__photo { max-width: 380px; }
    .fh-pills { max-width: 380px; }

    .fh-layout { grid-template-columns: 1fr; }
    .fh-side { position: static; }

    .fh-card { grid-template-columns: 168px minmax(0, 1fr); }
    .fh-card__media { width: 168px; height: 148px; }
    .fh-card__side {
        grid-column: 1 / -1;
        flex-direction: row; align-items: center; gap: 12px;
    }
    .fh-stats { flex: 1 1 auto; }
    .fh-card__cta { flex: 0 0 168px; }

    .fh-help { grid-template-columns: 1fr; }
    .fh-help__photo { display: none; }
}

@media (max-width: 767px) {
    .fh-search { margin-top: -30px; }
    .fh-search__bar { flex-wrap: wrap; }
    .fh-field { flex: 1 1 100%; border-right: 0; border-bottom: 1px solid var(--fh-line); padding: 0 4px 8px; }
    .fh-field:last-of-type { border-bottom: 0; padding-bottom: 0; }
    .fh-search__bar .fh-btn { flex: 1 1 100%; margin-top: 6px; }

    .fh-hero__title { font-size: 25px; }
    .fh-hero__sub { font-size: 14px; }
    .fh-facilities__title { font-size: 17px; }
    .fh-fac { flex: 0 0 90px; }

    .fh-bar { flex-direction: column; align-items: stretch; }
    .fh-bar__right { justify-content: space-between; flex-wrap: wrap; }
    .fh-bar__right select { flex: 1 1 auto; }

    .fh-card { grid-template-columns: 1fr; gap: 12px; padding: 14px; }
    .fh-card__media { width: 100%; height: 172px; }
    .fh-card__name { font-size: 16px; }
    .fh-card__side { flex-direction: column; align-items: stretch; }
    .fh-card__cta { flex: 1 1 auto; }
    .fh-stats { grid-template-columns: 1fr 1fr; }

    .fh-help { padding: 20px 18px; }
    .fh-help__title { font-size: 18px; }
    .fh-help__items { gap: 14px; }

    .fh-pager { gap: 4px; }
    .fh-pager a, .fh-pager span { min-width: 34px; height: 34px; padding: 0 9px; }
}

/* ------------------------------------------------------------- sort control */
/* Standalone control: give it a width so the trigger label and the opened
   menu never collapse into one word per line. */
.fh-sortbox {
    display: block;
    flex: 0 0 auto;
    width: 210px;
    max-width: 100%;
    position: relative;
}

.fh-sortbox .hcdd { width: 100%; }