/*!
 * hospitaldetails.css — redesigned /hospital-details/{slug} page
 * Follows the same conventions as findhospital.css: `.hd-` prefix, teal/navy
 * token set on `.hd-section`, and every icon rule setting BOTH color and
 * stroke with !important (the theme greys out bare <span> glyphs otherwise).
 */

.hd-section {
    /* theme colours come from the admin Basic Settings pickers */
    --hd-teal: var(--site-base, #09a9b7);
    --hd-teal-dark: var(--site-base-dark, #087e8b);
    --hd-navy: var(--site-secondary, #0d1c51);
    --hd-text: #24355e;
    --hd-muted: #6b7897;
    --hd-line: #dfeaf0;
    --hd-bg: var(--site-base-bg, #f5fbfd);
    --hd-soft: var(--site-base-tint, #eaf9fb);
    --hd-amber: #f5a623;
    --hd-pink: #f34d98;
    --hd-radius: 16px;
    --hd-shadow: 0 8px 26px rgba(20, 70, 100, .08);
}

.hd-section h1, .hd-section h2, .hd-section h3, .hd-section h4, .hd-section p { margin: 0; }
.hd-section a { text-decoration: none; }

/* mirrors the theme container so the page lines up with header/footer */
.hd-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)  { .hd-wrap { max-width: 540px; } }
@media (min-width: 768px)  { .hd-wrap { max-width: 720px; } }
@media (min-width: 992px)  { .hd-wrap { max-width: 960px; } }
@media (min-width: 1200px) { .hd-wrap { max-width: 1140px; } }
@media (min-width: 1500px) { .hd-wrap { max-width: 1440px; } }

/* ------------------------------------------------------------- breadcrumb */
.hd-crumb {
    padding: 12px 0;
    background: #fff;
    border-bottom: 1px solid var(--hd-line);
}
.hd-crumb ol {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 8px; margin: 0; padding: 0; list-style: none;
    font-size: 13px;
}
.hd-crumb li { color: var(--hd-muted); }
.hd-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;
}
.hd-crumb a { color: var(--hd-muted); }
.hd-crumb a:hover { color: var(--hd-teal-dark); }
.hd-crumb [aria-current] { color: var(--hd-teal-dark); font-weight: 600; }

/* =========================================================== top layout */
.hd-top {
    background: var(--hd-bg);
    padding: 22px 0 26px;
}
.hd-top__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 348px;
    gap: 22px;
    align-items: start;
}
@media (max-width: 1199px) {
    .hd-top__grid { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 991px) {
    .hd-top__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ========================================================== header card */
.hd-card {
    background: #fff;
    border: 1px solid var(--hd-line);
    border-radius: var(--hd-radius);
    box-shadow: var(--hd-shadow);
    overflow: hidden;
}

/* ------------------------------------------------------------- gallery */
.hd-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 14px 14px 0;
}
.hd-gallery__main {
    grid-column: span 4;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--site-base-tint-2, #eef4f7);
    aspect-ratio: 16 / 8.4;
}
.hd-gallery__main img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hd-gallery__thumbs {
    grid-column: span 4;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding-bottom: 14px;
}
.hd-thumb {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: var(--site-base-tint-2, #eef4f7);
    aspect-ratio: 4 / 3;
    display: block;
    padding: 0; border: 0; cursor: pointer;
}
.hd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.hd-thumb:hover img { transform: scale(1.06); }

.hd-thumb__more {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 2px;
    background: rgba(13, 28, 81, .68);
    color: #fff !important;
    font-size: 15px; font-weight: 700; line-height: 1.2;
}
.hd-thumb__more span { font-size: 11px; font-weight: 500; opacity: .85; }

/* ------------------------------------------------------------- identity */
.hd-id { padding: 18px 20px 20px; }

.hd-id__top {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
}
.hd-id__name {
    font-size: 27px; line-height: 1.24; font-weight: 700;
    letter-spacing: -.4px; color: var(--hd-navy);
}
.hd-verified {
    display: inline-flex; align-items: center; gap: 5px;
    margin-top: 8px; padding: 3px 10px 3px 7px;
    border-radius: 999px;
    background: #e7f7f9; color: var(--hd-teal-dark) !important;
    border: 1px solid #c8ecf1;
    font-size: 12px; font-weight: 600;
}
.hd-verified svg {
    width: 13px; height: 13px;
    color: var(--hd-teal) !important;
    stroke: var(--hd-teal) !important;
}

.hd-id__addr {
    display: flex; align-items: flex-start; gap: 6px;
    margin-top: 10px;
    font-size: 13.5px; color: var(--hd-muted); line-height: 1.5;
}
.hd-id__addr svg {
    width: 15px; height: 15px; flex: 0 0 auto; margin-top: 1px;
    color: #9aa6bd !important;
    stroke: #9aa6bd !important;
}
.hd-id__map {
    margin-left: 6px; font-weight: 600;
    color: var(--hd-teal-dark) !important;
    white-space: nowrap;
}
.hd-id__map:hover { text-decoration: underline; }

.hd-id__rating {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 8px; margin-top: 10px;
    font-size: 13.5px; color: var(--hd-muted);
}
.hd-stars { display: inline-flex; gap: 2px; }
.hd-stars svg {
    width: 15px; height: 15px;
    color: var(--hd-amber) !important;
    stroke: var(--hd-amber) !important;
}
.hd-stars svg.is-off { color: #d5dceb !important; stroke: #d5dceb !important; }
.hd-id__rating b { color: var(--hd-text); font-size: 14px; }

.hd-id__desc {
    margin-top: 10px;
    font-size: 13.5px; line-height: 1.66; color: var(--hd-muted);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --------------------------------------------------------------- social */
.hd-social { margin-top: 14px; }
.hd-social__title {
    display: flex; align-items: center; gap: 7px;
    font-size: 13px; font-weight: 600; color: var(--hd-text);
}
.hd-social__title svg {
    width: 15px; height: 15px;
    color: var(--hd-teal) !important;
    stroke: var(--hd-teal) !important;
}
.hd-social__row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.hd-social__btn {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    min-width: 74px; padding: 10px 8px 8px;
    border: 1px solid var(--hd-line); border-radius: 12px;
    background: #fff; transition: all .22s ease;
}
.hd-social__btn span {
    font-size: 11px; font-weight: 600; color: var(--hd-muted);
    text-transform: capitalize; white-space: nowrap;
}
.hd-social__ico {
    width: 32px; height: 32px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative;
    background: var(--hd-soft); color: #fff !important;
}
.hd-social__ico svg {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: #fff !important; stroke: #fff !important;
}
.hd-social__btn:hover { border-color: var(--hd-teal); transform: translateY(-3px); box-shadow: var(--hd-shadow); }

.hd-social__btn[data-net="facebook"]  .hd-social__ico { background: #1877f2; }
.hd-social__btn[data-net="instagram"] .hd-social__ico { background: linear-gradient(45deg,#f09433,#dc2743,#bc1888); }
.hd-social__btn[data-net="youtube"]   .hd-social__ico { background: #ff0000; }
.hd-social__btn[data-net="linkedin"]  .hd-social__ico { background: #0a66c2; }
.hd-social__btn[data-net="website"]   .hd-social__ico { background: var(--hd-teal-dark); }
.hd-social__btn[data-net="whatsapp"]  .hd-social__ico { background: #25d366; }

/* ----------------------------------------------------------- stat strip */
.hd-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 18px; padding-top: 16px;
    border-top: 1px dashed var(--hd-line);
}
.hd-stat { text-align: center; }
.hd-stat svg {
    width: 21px; height: 21px;
    color: var(--hd-teal) !important;
    stroke: var(--hd-teal) !important;
}
.hd-stat b { display: block; font-size: 12.5px; font-weight: 700; color: var(--hd-text); margin-top: 4px; }
.hd-stat span { display: block; font-size: 11px; color: var(--hd-muted); margin-top: 1px; line-height: 1.35; }
@media (max-width: 575px) { .hd-stats { grid-template-columns: repeat(2, 1fr); gap: 16px 8px; } }

/* ================================================================== tabs */
/* Sticky lives on the wrapper, NOT on .hd-tabs. An element that scrolls on any
   axis becomes its own scroll container, and `position:sticky` on itself is
   then measured against that container — which pins it to a strip only 50px
   tall and lets it scroll away. The wrapper never scrolls, so it sticks. */
.hd-tabs-wrap {
    position: sticky;
    top: 0;
    z-index: 40;
    background: #fff;
    border-bottom: 1px solid var(--hd-line);
    box-shadow: 0 2px 8px rgba(20, 70, 100, .06);
}
.hd-tabs {
    display: flex; align-items: stretch; gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.hd-tabs::-webkit-scrollbar { display: none; }
.hd-tab {
    position: relative;
    flex: 0 0 auto;
    display: flex; align-items: center; gap: 7px;
    padding: 14px 16px;
    font-size: 14px; font-weight: 600; color: var(--hd-muted);
    background: none; border: 0; cursor: pointer;
    white-space: nowrap;
}
.hd-tab svg {
    width: 16px; height: 16px;
    color: #9fb0c9 !important;
    stroke: #9fb0c9 !important;
}
.hd-tab::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px;
    height: 3px; border-radius: 3px 3px 0 0;
    background: transparent; transition: background .2s ease;
}
.hd-tab:hover { color: var(--hd-teal-dark); }
.hd-tab.is-active { color: var(--hd-teal-dark); }
.hd-tab.is-active svg { color: var(--hd-teal) !important; stroke: var(--hd-teal) !important; }
.hd-tab.is-active::after { background: var(--hd-teal); }

/* =========================================================== body layout */
.hd-body { padding: 22px 0 30px; }
.hd-body > .hd-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 348px;
    gap: 22px;
    align-items: start;
}
@media (max-width: 1199px) { .hd-body > .hd-wrap { grid-template-columns: minmax(0, 1fr) 320px; } }
@media (max-width: 991px)  { .hd-body > .hd-wrap { grid-template-columns: minmax(0, 1fr); } }

.hd-main { min-width: 0; }

/* -------------------------------------------------------- panel + cards */
.hd-panel {
    background: #fff;
    border: 1px solid var(--hd-line);
    border-radius: var(--hd-radius);
    box-shadow: var(--hd-shadow);
    padding: 18px 20px;
    margin-bottom: 18px;
}
.hd-panel__title {
    font-size: 19px; font-weight: 700; color: var(--hd-navy);
    letter-spacing: -.2px;
}
.hd-panel__sub { font-size: 13.5px; line-height: 1.7; color: var(--hd-muted); margin-top: 8px; }

.hd-block { margin-bottom: 18px; }
.hd-block:last-child { margin-bottom: 0; }

.hd-block__head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 14px;
}
.hd-block__title {
    font-size: 19px; font-weight: 700; color: var(--hd-navy);
    letter-spacing: -.2px;
}
.hd-more {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600; color: var(--hd-teal-dark) !important;
    white-space: nowrap;
}
.hd-more svg {
    width: 15px; height: 15px;
    color: var(--hd-teal-dark) !important;
    stroke: var(--hd-teal-dark) !important;
    transition: transform .2s ease;
}
.hd-more:hover svg { transform: translateX(3px); }

/* ------------------------------------------------------------ highlights */
.hd-hls {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 16px;
}
@media (max-width: 1199px) { .hd-hls { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px)  { .hd-hls { grid-template-columns: 1fr; } }

.hd-hl {
    display: flex; gap: 11px; align-items: flex-start;
    padding: 14px 14px;
    border: 1px solid transparent; border-radius: 13px;
    background: var(--hd-bg);
    transition: all .22s ease;
}
.hd-hl:hover { border-color: var(--site-base-tint-4, #bfe7ed); background: #fff; box-shadow: var(--hd-shadow); transform: translateY(-3px); }
.hd-hl__ico {
    flex: 0 0 auto;
    width: 30px; height: 30px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative;
    background: #fff; color: var(--hd-teal) !important;
    box-shadow: 0 2px 6px rgba(20,70,100,.08);
}
.hd-hl__ico svg {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    color: var(--hd-teal-dark) !important;
    stroke: var(--hd-teal-dark) !important;
}
.hd-hl b { display: block; font-size: 13.5px; font-weight: 700; color: var(--hd-text); line-height: 1.35; }
.hd-hl span { display: block; font-size: 12px; line-height: 1.5; color: var(--hd-muted); margin-top: 3px; }

/* ---------------------------------------------------------- key info grid */
.hd-ki {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
@media (max-width: 1199px) { .hd-ki { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px)  { .hd-ki { grid-template-columns: repeat(2, 1fr); } }

.hd-ki__item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 13px 14px;
    border: 1px solid transparent; border-radius: 13px;
    background: var(--hd-bg);
}
.hd-ki__ico {
    flex: 0 0 auto;
    width: 32px; height: 32px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative;
    background: var(--hd-soft);
}
.hd-ki__ico svg {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    color: var(--hd-teal-dark) !important;
    stroke: var(--hd-teal-dark) !important;
}
.hd-ki__item span { display: block; font-size: 11.5px; color: var(--hd-muted); }
.hd-ki__item b { display: block; font-size: 13px; font-weight: 700; color: var(--hd-text); margin-top: 2px; line-height: 1.4; }

/* -------------------------------------------------------------- chips */
.hd-chips {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}
@media (max-width: 1199px) { .hd-chips { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 767px)  { .hd-chips { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575px)  { .hd-chips { grid-template-columns: repeat(2, 1fr); } }

.hd-chip {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 15px 8px;
    border: 1px solid transparent; border-radius: 13px;
    background: var(--hd-bg); text-align: center;
    transition: all .22s ease;
}
.hd-chip svg {
    width: 24px; height: 24px;
    color: var(--hd-teal) !important;
    stroke: var(--hd-teal) !important;
}
.hd-chip b { font-size: 12.5px; font-weight: 600; color: var(--hd-text); line-height: 1.3; }
.hd-chip span { font-size: 11px; color: var(--hd-muted); line-height: 1.35; }
.hd-chip:hover { border-color: var(--site-base-tint-4, #bfe7ed); background: #fff; transform: translateY(-3px); }

/* --------------------------------------------------------- doctor cards */
.hd-docs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
@media (max-width: 1199px) { .hd-docs { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px)  { .hd-docs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479px)  { .hd-docs { grid-template-columns: 1fr; } }

.hd-doc {
    border: 1px solid var(--hd-line); border-radius: 14px;
    background: #fff; overflow: hidden;
    display: flex; flex-direction: column;
    transition: all .22s ease;
}
.hd-doc:hover { box-shadow: var(--hd-shadow); transform: translateY(-4px); border-color: var(--site-base-tint-4, #c7e6ec); }
.hd-doc__media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--site-base-tint-2, #eef4f7);
    overflow: hidden;
}
.hd-doc__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.hd-doc__tag {
    position: absolute; left: 8px; top: 8px;
    padding: 3px 9px; border-radius: 999px;
    background: color-mix(in srgb, var(--site-base) 94%, transparent); color: #fff !important;
    font-size: 10.5px; font-weight: 600;
}
.hd-doc__body { padding: 12px 13px 14px; display: flex; flex-direction: column; flex: 1; }
.hd-doc__name { font-size: 14.5px; font-weight: 700; color: var(--hd-navy); line-height: 1.3; }
.hd-doc__role { font-size: 12px; color: var(--hd-teal-dark); font-weight: 600; margin-top: 3px; }
.hd-doc__rating {
    display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
    margin-top: 6px; font-size: 11.5px; color: var(--hd-muted);
}
.hd-doc__rating .hd-stars svg { width: 12px; height: 12px; }
.hd-doc__rating b { color: var(--hd-text); }
.hd-doc__cta { margin-top: 11px; }

/* ----------------------------------------------------------------- btn */
.hd-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 10px 18px;
    border: 1px solid var(--hd-teal); border-radius: 10px;
    background: var(--hd-teal); color: #fff !important;
    font-size: 13.5px; font-weight: 600; line-height: 1.2;
    cursor: pointer; transition: all .2s ease;
    text-align: center;
}
.hd-btn:hover { background: var(--hd-teal-dark); border-color: var(--hd-teal-dark); color: #fff !important; }
.hd-btn svg { width: 16px; height: 16px; color: #fff !important; stroke: #fff !important; }
.hd-btn--block { display: flex; width: 100%; }
.hd-btn--outline {
    background: #fff; color: var(--hd-teal-dark) !important;
    border-color: var(--site-base-tint-4, #b9e3e9);
}
.hd-btn--outline:hover { background: var(--hd-soft); color: var(--hd-teal-dark) !important; border-color: var(--hd-teal); }
.hd-btn--sm { padding: 8px 14px; font-size: 12.5px; }
.hd-btn--ghost {
    background: transparent; border-color: var(--hd-line);
    color: var(--hd-text) !important;
}
.hd-btn--ghost:hover { background: var(--hd-bg); border-color: var(--hd-teal); color: var(--hd-teal-dark) !important; }

/* -------------------------------------------------------------- reviews */
.hd-revs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
@media (max-width: 991px) { .hd-revs { grid-template-columns: 1fr; } }

.hd-rev {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 16px;
    border: 1px solid var(--hd-line); border-radius: 14px;
    background: #fff;
}
.hd-rev__ava {
    flex: 0 0 auto;
    width: 42px; height: 42px; border-radius: 50%;
    overflow: hidden; position: relative;
    background: var(--hd-soft);
    display: flex; align-items: center; justify-content: center;
}
.hd-rev__ava img { width: 100%; height: 100%; object-fit: cover; }
.hd-rev__ava span {
    font-size: 15px; font-weight: 700; color: var(--hd-teal-dark) !important;
    text-transform: uppercase;
}
.hd-rev__body { min-width: 0; }
.hd-rev__name { font-size: 14px; font-weight: 700; color: var(--hd-navy); }
.hd-rev__when { font-size: 11.5px; color: var(--hd-muted); margin-top: 1px; }
.hd-rev__rating { display: flex; align-items: center; gap: 6px; margin-top: 5px; }
.hd-rev__rating .hd-stars svg { width: 13px; height: 13px; }
.hd-rev__rating b { font-size: 12px; color: var(--hd-text); }
.hd-rev__text { font-size: 13px; line-height: 1.62; color: var(--hd-muted); margin-top: 6px; }

.hd-empty {
    text-align: center; padding: 26px 14px;
    border: 1px dashed var(--hd-line); border-radius: 14px;
    background: var(--hd-bg);
}
.hd-empty__ico {
    width: 46px; height: 46px; margin: 0 auto 10px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative; background: #fff;
}
.hd-empty__ico svg {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    color: #a9bdd0 !important; stroke: #a9bdd0 !important;
}
.hd-empty h4 { font-size: 15px; font-weight: 700; color: var(--hd-text); }
.hd-empty p { font-size: 13px; color: var(--hd-muted); margin-top: 4px; }

/* ------------------------------------------------------ similar hospitals */
.hd-similar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
@media (max-width: 1199px) { .hd-similar { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px)  { .hd-similar { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479px)  { .hd-similar { grid-template-columns: 1fr; } }

.hd-sim {
    border: 1px solid var(--hd-line); border-radius: 14px;
    background: #fff; overflow: hidden;
    display: flex; flex-direction: column;
    transition: all .22s ease;
}
.hd-sim:hover { box-shadow: var(--hd-shadow); transform: translateY(-4px); border-color: var(--site-base-tint-4, #c7e6ec); }
.hd-sim__media { aspect-ratio: 16 / 10; background: var(--site-base-tint-2, #eef4f7); overflow: hidden; }
.hd-sim__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.hd-sim:hover .hd-sim__media img { transform: scale(1.05); }
.hd-sim__body { padding: 12px 13px 14px; display: flex; flex-direction: column; flex: 1; }
.hd-sim__name { font-size: 14px; font-weight: 700; color: var(--hd-navy); line-height: 1.32; }
.hd-sim__addr {
    display: flex; align-items: center; gap: 4px;
    font-size: 11.5px; color: var(--hd-muted); margin-top: 4px;
}
.hd-sim__addr svg {
    width: 12px; height: 12px; flex: 0 0 auto;
    color: #9aa6bd !important; stroke: #9aa6bd !important;
}
.hd-sim__rating {
    display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
    margin-top: 6px; font-size: 11.5px; color: var(--hd-muted);
}
.hd-sim__rating .hd-stars svg { width: 12px; height: 12px; }
.hd-sim__rating b { color: var(--hd-text); }
.hd-sim__cta { margin-top: 11px; }

/* ================================================================ sidebar */
.hd-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 991px) { .hd-side { position: static; } }

.hd-box {
    background: #fff;
    border: 1px solid var(--hd-line);
    border-radius: var(--hd-radius);
    box-shadow: var(--hd-shadow);
    padding: 16px 17px;
}
.hd-box__head {
    display: flex; align-items: center; gap: 9px; margin-bottom: 13px;
}
.hd-box__ico {
    flex: 0 0 auto;
    width: 32px; height: 32px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative;
    background: var(--hd-soft);
}
.hd-box__ico svg {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    color: var(--hd-teal-dark) !important;
    stroke: var(--hd-teal-dark) !important;
}
.hd-box__title { font-size: 16px; font-weight: 700; color: var(--hd-navy); }

/* -------------------------------------------------------- booking card */
.hd-modes {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
    padding: 4px; margin-bottom: 14px;
    background: var(--hd-bg); border-radius: 11px;
}
.hd-mode {
    padding: 9px 6px; border: 0; border-radius: 8px;
    background: transparent; cursor: pointer;
    font-size: 12.5px; font-weight: 600; color: var(--hd-muted);
    transition: all .2s ease; text-align: center;
}
.hd-mode.is-active {
    background: var(--hd-teal); color: #fff !important;
    box-shadow: 0 3px 10px color-mix(in srgb, var(--site-base) 30%, transparent);
}

.hd-form { display: flex; flex-direction: column; gap: 11px; }
.hd-lab { display: block; }
.hd-lab > span {
    display: block; font-size: 12px; font-weight: 600;
    color: var(--hd-text); margin-bottom: 5px;
}
.hd-lab__in {
    display: flex; align-items: center; gap: 8px;
    padding: 0 12px;
    border: 1px solid var(--hd-line); border-radius: 10px;
    background: #fff; transition: border-color .2s ease, box-shadow .2s ease;
}
.hd-lab__in:focus-within { border-color: var(--hd-teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--site-base) 12%, transparent); }
.hd-lab__in svg {
    width: 17px; height: 17px; flex: 0 0 auto;
    color: var(--site-base-dark, #087e8b) !important; stroke: var(--site-base-dark, #087e8b) !important;
}
.hd-lab__in input,
.hd-lab__in select {
    flex: 1 1 auto; min-width: 0;
    border: 0; outline: 0; background: transparent;
    padding: 11px 0; font-size: 13px; color: var(--hd-text);
    font-family: inherit;
}
.hd-lab__in select { appearance: none; cursor: pointer; }
.hd-lab__in input::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .55; }

/* ------------------------------------------------------- quick contact */
.hd-contact { display: flex; flex-direction: column; }
.hd-contact__row {
    display: flex; align-items: center; gap: 11px;
    padding: 9px 0;
}
.hd-contact__row + .hd-contact__row { border-top: 1px dashed var(--hd-line); }
.hd-contact__ico {
    flex: 0 0 auto;
    width: 34px; height: 34px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative;
    background: var(--hd-soft);
}
.hd-contact__ico svg {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    color: var(--hd-teal-dark) !important;
    stroke: var(--hd-teal-dark) !important;
}
.hd-contact__txt { min-width: 0; flex: 1 1 auto; }
.hd-contact__val {
    font-size: 13px; font-weight: 600; color: var(--hd-text);
    word-break: break-word; line-height: 1.35;
}
.hd-contact__note { font-size: 11px; color: #e2564f; font-weight: 600; margin-top: 1px; }
.hd-contact__act {
    flex: 0 0 auto;
    padding: 6px 13px; border-radius: 8px;
    border: 1px solid var(--site-base-tint-4, #b9e3e9); background: #fff;
    font-size: 12px; font-weight: 600; color: var(--hd-teal-dark) !important;
    white-space: nowrap; transition: all .2s ease;
}
.hd-contact__act:hover { background: var(--hd-teal); border-color: var(--hd-teal); color: #fff !important; }

/* ----------------------------------------------------------- open hours */
.hd-hours { display: flex; flex-direction: column; gap: 1px; }
.hd-hours__row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; padding: 7px 0;
    border-bottom: 1px dashed var(--hd-line);
    font-size: 12.5px;
}
.hd-hours__row:last-child { border-bottom: 0; }
.hd-hours__day { color: var(--hd-muted); }
.hd-hours__val { color: var(--hd-text); font-weight: 600; text-align: right; }
.hd-hours__pill {
    display: inline-block; padding: 3px 10px; border-radius: 999px;
    background: #e7f9ec; color: #1f9254 !important;
    font-size: 11px; font-weight: 600;
}

/* -------------------------------------------------------------- insurers */
.hd-ins {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.hd-ins__item {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 11px 5px;
    border: 1px solid transparent; border-radius: 11px;
    background: var(--hd-bg); text-align: center;
}
.hd-ins__badge {
    width: 34px; height: 34px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800; letter-spacing: .2px;
    color: #fff !important; text-transform: uppercase;
}
.hd-ins__name {
    font-size: 10.5px; font-weight: 600; color: var(--hd-muted);
    line-height: 1.3; word-break: break-word;
}
.hd-ins__note { font-size: 11.5px; line-height: 1.55; color: var(--hd-muted); margin-top: 11px; }

/* --------------------------------------------------------------- map */
.hd-map {
    position: relative;
    border-radius: 12px; overflow: hidden;
    border: 1px solid var(--hd-line);
    aspect-ratio: 16 / 10;
    background: var(--hd-bg);
}
.hd-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.hd-map__addr {
    display: flex; align-items: flex-start; gap: 7px;
    margin-top: 11px;
    font-size: 12.5px; line-height: 1.55; color: var(--hd-muted);
}
.hd-map__addr svg {
    width: 15px; height: 15px; flex: 0 0 auto; margin-top: 1px;
    color: var(--hd-teal) !important; stroke: var(--hd-teal) !important;
}
.hd-map__cta { margin-top: 11px; }

/* ================================================== services / facilities */
.hd-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
@media (max-width: 767px) { .hd-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479px) { .hd-list { grid-template-columns: 1fr; } }

.hd-list__item {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--hd-line); border-radius: 12px;
    background: #fff;
    font-size: 13px; font-weight: 600; color: var(--hd-text);
}
.hd-list__item svg {
    width: 18px; height: 18px; flex: 0 0 auto;
    color: var(--hd-teal) !important; stroke: var(--hd-teal) !important;
}

/* ================================================== photos / lightcase */
.hd-photos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
@media (max-width: 767px) { .hd-photos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 479px) { .hd-photos { grid-template-columns: repeat(2, 1fr); } }

.hd-photo {
    position: relative; display: block;
    border-radius: 12px; overflow: hidden;
    aspect-ratio: 4 / 3; background: var(--site-base-tint-2, #eef4f7);
    border: 0; padding: 0; cursor: pointer;
}
.hd-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.hd-photo:hover img { transform: scale(1.07); }
.hd-photo__cap {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 16px 10px 8px;
    background: linear-gradient(180deg, transparent, rgba(13,28,81,.82));
    color: #fff !important; font-size: 11.5px; font-weight: 500;
    text-align: left;
}

/* =========================================================== lightbox */
.hd-lightbox {
    position: fixed; inset: 0; z-index: 9999;
    display: none; align-items: center; justify-content: center;
    background: rgba(9, 16, 38, .93);
    padding: 24px;
}
.hd-lightbox.is-open { display: flex; }
.hd-lightbox img {
    max-width: min(1000px, 92vw); max-height: 82vh;
    border-radius: 12px; display: block;
    box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.hd-lightbox__cap {
    margin-top: 14px; text-align: center;
    color: rgba(255,255,255,.85) !important; font-size: 13px;
}
.hd-lightbox__close {
    position: absolute; top: 20px; right: 22px;
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.28);
    background: rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
}
.hd-lightbox__close svg {
    width: 20px; height: 20px;
    color: #fff !important; stroke: #fff !important;
}
.hd-lightbox__nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.28);
    background: rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
}
.hd-lightbox__nav svg { width: 22px; height: 22px; color: #fff !important; stroke: #fff !important; }
.hd-lightbox__nav--prev { left: 20px; }
.hd-lightbox__nav--next { right: 20px; }
.hd-lightbox__nav:hover, .hd-lightbox__close:hover { background: rgba(255,255,255,.2); }
@media (max-width: 575px) {
    .hd-lightbox__nav { display: none; }
}

/* ============================================================== ratings */
.hd-score {
    display: flex; align-items: center; gap: 22px;
    padding: 16px 18px; margin-bottom: 14px;
    border: 1px solid var(--hd-line); border-radius: 14px;
    background: var(--hd-bg);
}
@media (max-width: 575px) { .hd-score { flex-direction: column; gap: 12px; text-align: center; } }
.hd-score__num { text-align: center; flex: 0 0 auto; }
.hd-score__num b { display: block; font-size: 34px; font-weight: 800; color: var(--hd-navy); line-height: 1; }
.hd-score__num span { display: flex; justify-content: center; gap: 2px; margin-top: 6px; }
.hd-score__num span svg { width: 14px; height: 14px; color: var(--hd-amber) !important; stroke: var(--hd-amber) !important; }
.hd-score__num small { display: block; font-size: 11.5px; color: var(--hd-muted); margin-top: 5px; }
.hd-score__bars { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.hd-score__bar { display: flex; align-items: center; gap: 9px; font-size: 11.5px; color: var(--hd-muted); }
.hd-score__bar i { flex: 0 0 auto; font-style: normal; width: 34px; }
.hd-score__bar u {
    flex: 1 1 auto; height: 7px; border-radius: 4px;
    background: #e3edf2; overflow: hidden; text-decoration: none;
}
.hd-score__bar u s {
    display: block; height: 100%; border-radius: 4px;
    background: var(--hd-teal); text-decoration: none;
}
.hd-score__bar b { flex: 0 0 auto; width: 26px; text-align: right; color: var(--hd-text); }

/* ============================================================== reviews */
.hd-review-form { margin-top: 16px; }
.hd-review-form__row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.hd-review-form__row > * { flex: 1 1 180px; }
.hd-review-form textarea {
    width: 100%; min-height: 90px; padding: 11px 13px;
    border: 1px solid var(--hd-line); border-radius: 10px;
    font-family: inherit; font-size: 13px; color: var(--hd-text);
    outline: 0; resize: vertical;
}
.hd-review-form textarea:focus { border-color: var(--hd-teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--site-base) 12%, transparent); }
.hd-review-form input {
    width: 100%; padding: 11px 13px;
    border: 1px solid var(--hd-line); border-radius: 10px;
    font-family: inherit; font-size: 13px; color: var(--hd-text); outline: 0;
}
.hd-review-form input:focus { border-color: var(--hd-teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--site-base) 12%, transparent); }

/* ========================================================== breadcrumb */
.hd-section .hd-crumb ol { margin: 0; }

/* ============================================================ responsive */
@media (max-width: 767px) {
    .hd-card { border-radius: 14px; }
    .hd-id { padding: 15px 15px 17px; }
    .hd-id__name { font-size: 22px; }
    .hd-gallery { padding: 12px 12px 0; gap: 8px; }
    .hd-gallery__thumbs { grid-template-columns: repeat(4, 1fr); }
    .hd-panel { padding: 15px 15px; }
    .hd-box { padding: 14px 15px; }
    .hd-block__title, .hd-panel__title { font-size: 17px; }
    .hd-social__btn { min-width: 0; flex: 1 1 60px; }
    .hd-tab { padding: 12px 13px; font-size: 13px; }
}

/* touch devices — never leave the hover lift stuck */
@media (hover: none), (pointer: coarse) {
    .hd-hl:hover, .hd-chip:hover, .hd-doc:hover, .hd-sim:hover,
    .hd-social__btn:hover { transform: none; }
}


.hd-lab > .hd-in,
.hd-lab > .hd-phone {
    display: flex;
    align-items: center;
}
/* ---------------------------------------------------------------------------
 * Form control wrappers must stay flex rows.
 *
 * `.xx-lab > span { display: block }` (used for the field label text) also
 * matches the `.xx-in` wrapper, because that wrapper is a direct span child of
 * the label. Its specificity (0,1,1) beat `.xx-in` (0,1,0), so the wrapper
 * collapsed to a block and the icon was pushed onto its own line above the
 * input. Re-declaring the wrapper as `.xx-lab > .xx-in` (0,2,0) wins and puts
 * the icon, the control and the optional trailing button on one line again.
 * --------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------
 * Keep the BEM input wrapper a flex row.
 *
 * `.hd-lab > span { display: block }` styles the field label text, but
 * the `.xx-lab__in` wrapper is also a direct span child of that label, so
 * the higher-specificity block rule collapsed it and pushed the icon onto
 * its own line. Re-declare it through the label so it wins.
 * ------------------------------------------------------------------------- */
.hd-lab > .hd-lab__in {
    display: flex;
    align-items: center;
}
