/* =========================================================
   HOSPITAL DETAILS PAGE
   Sections: Breadcrumb · Hero Gallery · Tabs · About ·
   Doctors · Rooms & Beds · Surgery Packages · Facilities ·
   Specialized Care · Inside Gallery · Enquiry · Similar
   (Header / Newsletter / Footer reused from style.css)
   ========================================================= */

.hd-page {
  --hd-blue: #123684;
  --hd-navy: #0b2e78;
  --hd-pink: #f72559;
  --hd-text: #1f2b45;
  --hd-muted: #6b7688;
  --hd-border: #e6e9f0;
  --hd-light: #f7f9fc;
  --hd-tag: #eef3ff;
  --hd-green: #1a9d5c;

  width: 100%;
  background: #fff;
  font-family: "Plus Jakarta Sans", "Inter", Arial, sans-serif;
  color: var(--hd-text);
}

.hd-page *,
.hd-page *::before,
.hd-page *::after {
  box-sizing: border-box;
}

.hd-container {
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 20px;
}

.hd-section {
  padding: 34px 0;
}

.hd-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.hd-section-head h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--hd-navy);
}

.hd-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--hd-pink);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
}

.hd-eyebrow {
  display: block;
  color: var(--hd-pink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  margin-bottom: 6px;
}

/* =========================================================
   BREADCRUMB
   ========================================================= */
.hd-breadcrumb {
  width: 100%;
  background: #fff;
  padding: 14px 0 6px;
}

.hd-breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #9aa4b2;
}

.hd-breadcrumb a {
  color: #9aa4b2;
  text-decoration: none;
}

.hd-breadcrumb a:hover {
  color: var(--hd-pink);
}

.hd-breadcrumb li[aria-current] {
  color: var(--hd-text);
  font-weight: 600;
}

/* =========================================================
   HERO / GALLERY + INFO PANEL
   ========================================================= */
.hd-hero {
  padding: 12px 0 30px;
}

.hd-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
}

/* ----- gallery ----- */
.hd-gallery-main {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #eef1f6;
}

.hd-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hd-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  color: #1f2b45;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.hd-gallery-nav.prev {
  left: 14px;
}

.hd-gallery-nav.next {
  right: 14px;
}

.hd-gallery-count {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 16px;
  background: rgba(12, 28, 58, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.hd-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.hd-thumb {
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: #eef1f6;
}

.hd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hd-thumb.active {
  border-color: var(--hd-pink);
}

/* ----- info panel ----- */
.hd-info-panel {
  border: 1px solid var(--hd-border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(18, 54, 132, 0.06);
}

.hd-info-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.hd-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 10.5px;
  font-weight: 600;
}

.hd-badge-blue {
  background: var(--hd-tag);
  color: #2f4b86;
}

.hd-badge-green {
  background: #e7f6ee;
  color: var(--hd-green);
}

.hd-info-panel h1 {
  margin: 0 0 8px;
  font-family: "Manrope", sans-serif;
  font-size: 22px;
  line-height: 28px;
  font-weight: 800;
  color: var(--hd-navy);
}

.hd-info-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 12px;
}

.hd-stars {
  color: #f5a623;
  letter-spacing: 1px;
  font-size: 11px;
}

.hd-info-rating .hd-score {
  font-weight: 700;
}

.hd-info-rating .hd-reviews {
  color: #9aa4b2;
}

.hd-info-loc {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 12px;
  color: #7b8698;
  font-size: 12px;
  line-height: 18px;
}

.hd-info-loc i {
  color: #9aa4b2;
  margin-top: 2px;
}

.hd-info-desc {
  margin: 0 0 14px;
  color: var(--hd-muted);
  font-size: 12.5px;
  line-height: 20px;
}

.hd-info-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.hd-info-tags span {
  padding: 4px 9px;
  border-radius: 10px;
  background: var(--hd-tag);
  color: #2f4b86;
  font-size: 10.5px;
  font-weight: 500;
}

.hd-book-btn {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 10px;
  background: var(--hd-pink);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.hd-book-btn:hover {
  background: #df1648;
}

.hd-quick {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--hd-border);
  border-radius: 12px;
  background: var(--hd-light);
}

.hd-quick-title {
  color: var(--hd-navy);
  font-size: 13px;
  font-weight: 700;
}

.hd-quick-title i {
  color: var(--hd-pink);
  margin-right: 4px;
}

.hd-quick-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 10px;
}

.hd-quick-field {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.hd-quick-field > span {
  color: var(--hd-muted);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.hd-quick-field input,
.hd-quick-field select {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #dfe3ea;
  border-radius: 9px;
  background: #fff;
  color: var(--hd-text);
  font-family: inherit;
  font-size: 12.5px;
}

.hd-quick-field input:focus,
.hd-quick-field select:focus {
  outline: none;
  border-color: var(--hd-blue);
}

[x-cloak] {
  display: none !important;
}

.hd-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 0 4px;
  border: 1px solid #dfe3ea;
  border-radius: 9px;
  background: #fff;
}

.hd-stepper strong {
  color: var(--hd-text);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.hd-stepper button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 7px;
  background: var(--hd-tag);
  color: var(--hd-blue);
  font-size: 11px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.hd-stepper button:hover:not(:disabled) {
  background: var(--hd-blue);
  color: #fff;
}

.hd-stepper button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.hd-select {
  position: relative;
}

.hd-select-btn,
.hd-select-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  font-family: inherit;
  text-align: left;
}

.hd-select-btn {
  min-height: 52px;
  padding: 8px 12px;
  border: 1px solid #dfe3ea;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hd-select-btn:hover,
.hd-select-btn.is-open {
  border-color: var(--hd-blue);
  box-shadow: 0 0 0 3px rgba(18, 54, 132, 0.08);
}

.hd-select-main {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 2px;
}

.hd-select-main strong {
  overflow: hidden;
  color: var(--hd-navy);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hd-select-main small {
  color: var(--hd-muted);
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0;
}

.hd-select-main small b {
  color: var(--hd-text);
  font-weight: 700;
}

.hd-select-pill {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.hd-select-pill.ok {
  background: #e8f7ef;
  color: var(--hd-green);
}

.hd-select-pill.few {
  background: #fff4e0;
  color: #b26a00;
}

.hd-select-pill.full {
  background: #fde8ee;
  color: var(--hd-pink);
}

.hd-select-caret {
  color: var(--hd-muted);
  font-size: 11px;
  transition: transform 0.2s ease;
}

.hd-select-btn.is-open .hd-select-caret {
  transform: rotate(180deg);
}

.hd-select-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 60;
  max-height: 280px;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  list-style: none;
  border: 1px solid var(--hd-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.hd-select-list li {
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s ease;
}

.hd-select-list li:hover {
  background: var(--hd-light);
}

.hd-select-list li.is-active {
  background: var(--hd-tag);
}

.hd-select-tick {
  width: 12px;
  color: var(--hd-blue);
  font-size: 11px;
  visibility: hidden;
}

.hd-select-list li.is-active .hd-select-tick {
  visibility: visible;
}

.hd-quick-note {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff7e6;
  color: #8a5a00;
  font-size: 11.5px;
  line-height: 17px;
}

.hd-quick-other {
  border: 0;
  background: none;
  color: var(--hd-muted);
  font-family: inherit;
  font-size: 11.5px;
  cursor: pointer;
}

.hd-quick-other:hover {
  color: var(--hd-pink);
}

.hd-info-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.hd-info-actions button {
  height: 40px;
  border: 1px solid #dfe3ea;
  border-radius: 10px;
  background: #fff;
  color: #33415f;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.hd-info-actions button:hover {
  border-color: var(--hd-pink);
  color: var(--hd-pink);
}

/* =========================================================
   TABS
   ========================================================= */
.hd-tabs {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-top: 1px solid var(--hd-border);
  border-bottom: 1px solid var(--hd-border);
}

.hd-tabs-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}

.hd-tab {
  position: relative;
  height: 46px;
  border: 0;
  background: none;
  padding: 0;
  color: #55617a;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.hd-tab:hover {
  color: var(--hd-pink);
}

.hd-tab.active {
  color: var(--hd-pink);
}

.hd-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--hd-pink);
}

/* =========================================================
   ABOUT SECTION
   ========================================================= */
.hd-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.hd-about-text h2 {
  margin: 0 0 14px;
  font-family: "Manrope", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--hd-navy);
}

.hd-about-text p {
  margin: 0 0 12px;
  color: var(--hd-muted);
  font-size: 13px;
  line-height: 22px;
}

.hd-about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hd-about-tags span {
  padding: 5px 11px;
  border-radius: 12px;
  background: #f2f5fb;
  border: 1px solid #e6ebf3;
  color: #3f5170;
  font-size: 11px;
  font-weight: 500;
}

.hd-info-card {
  border: 1px solid var(--hd-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(18, 54, 132, 0.05);
}

.hd-info-card h3 {
  margin: 0;
  padding: 14px 18px;
  background: var(--hd-light);
  border-bottom: 1px solid var(--hd-border);
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--hd-navy);
}

.hd-info-card dl {
  margin: 0;
  padding: 6px 18px 12px;
}

.hd-info-card .hd-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid #eef0f4;
  font-size: 12.5px;
}

.hd-info-card .hd-info-row:last-child {
  border-bottom: 0;
}

.hd-info-card dt {
  color: var(--hd-muted);
}

.hd-info-card dd {
  margin: 0;
  font-weight: 700;
  color: var(--hd-text);
}

.hd-info-card dd.ok {
  color: var(--hd-green);
}

/* =========================================================
   DOCTORS
   ========================================================= */
.hd-doctors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.hd-doctor-card {
  border: 1px solid #e8ebf1;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 16px rgba(18, 54, 132, 0.05);
  display: flex;
  flex-direction: column;
}

.hd-doctor-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #eef1f6;
}

.hd-doctor-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hd-doctor-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 9px;
  border-radius: 12px;
  background: rgba(12, 28, 58, 0.72);
  color: #fff;
  font-size: 9.5px;
  font-weight: 600;
}

.hd-doctor-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hd-doctor-body h3 {
  margin: 0 0 3px;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--hd-text);
}

.hd-doctor-body .hd-doc-spec {
  color: var(--hd-pink);
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 6px;
}

.hd-doctor-body .hd-doc-exp {
  color: var(--hd-muted);
  font-size: 11.5px;
  margin-bottom: 8px;
}

.hd-doctor-body .hd-doc-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  margin-bottom: 12px;
}

.hd-doctor-body .hd-doc-rating .hd-reviews {
  color: #9aa4b2;
}

.hd-doc-book {
  margin-top: auto;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: var(--hd-pink);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.hd-doc-book:hover {
  background: #df1648;
}

/* =========================================================
   ROOMS & BEDS
   ========================================================= */
.hd-rooms-wrap {
  border: 1px solid var(--hd-border);
  border-radius: 12px;
  overflow-x: auto;
}

.hd-rooms-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 12.5px;
}

.hd-rooms-table thead th {
  background: var(--hd-light);
  text-align: left;
  padding: 12px 16px;
  color: var(--hd-navy);
  font-weight: 700;
  border-bottom: 1px solid var(--hd-border);
  white-space: nowrap;
}

.hd-rooms-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid #eef0f4;
  color: var(--hd-muted);
  vertical-align: middle;
}

.hd-rooms-table tbody tr:last-child td {
  border-bottom: 0;
}

.hd-rooms-table .hd-room-name {
  color: var(--hd-text);
  font-weight: 700;
}

.hd-rooms-table .hd-room-price {
  color: var(--hd-navy);
  font-weight: 700;
  white-space: nowrap;
}

.hd-avail {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--hd-green);
  font-weight: 600;
  font-size: 11.5px;
}

.hd-avail.low {
  color: #e8890c;
}

.hd-room-btn {
  padding: 5px 16px;
  border: 1px solid var(--hd-pink);
  border-radius: 8px;
  background: #fff;
  color: var(--hd-pink);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.hd-room-btn:hover {
  background: var(--hd-pink);
  color: #fff;
}

/* =========================================================
   SURGERY PACKAGES
   ========================================================= */
.hd-packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.hd-package-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid #e8ebf1;
  border-radius: 14px;
  padding: 20px 18px 18px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(18, 54, 132, 0.05);
}

.hd-package-card.featured {
  border-color: var(--hd-pink);
  box-shadow: 0 10px 26px rgba(247, 37, 89, 0.14);
}

.hd-package-badge {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--hd-tag);
  color: #2f4b86;
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 10px;
}

.hd-package-card.featured .hd-package-badge {
  background: #fdeef2;
  color: var(--hd-pink);
}

.hd-package-card h3 {
  margin: 0 0 6px;
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--hd-text);
}

.hd-package-price {
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--hd-navy);
  margin-bottom: 12px;
}

.hd-package-price span {
  font-size: 11px;
  font-weight: 500;
  color: var(--hd-muted);
}

.hd-package-feats {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hd-package-feats li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--hd-muted);
  font-size: 12px;
  line-height: 16px;
}

.hd-package-feats i {
  color: var(--hd-green);
  font-size: 11px;
  margin-top: 2px;
}

.hd-package-btn {
  margin-top: auto;
  height: 40px;
  border-radius: 9px;
  border: 1px solid var(--hd-pink);
  background: #fff;
  color: var(--hd-pink);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hd-package-btn:hover {
  background: var(--hd-pink);
  color: #fff;
}

.hd-package-card.featured .hd-package-btn {
  background: var(--hd-pink);
  color: #fff;
}

.hd-package-card.featured .hd-package-btn:hover {
  background: #df1648;
}

/* =========================================================
   FACILITIES & AMENITIES
   ========================================================= */
.hd-facilities-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.hd-facility {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 10px;
  border: 1px solid #e6ebf3;
  border-radius: 12px;
  background: var(--hd-light);
  text-align: center;
}

.hd-facility i {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fff;
  color: var(--hd-pink);
  font-size: 15px;
  box-shadow: 0 3px 8px rgba(18, 54, 132, 0.06);
}

.hd-facility span {
  font-size: 11.5px;
  font-weight: 600;
  color: #3f5170;
}

/* =========================================================
   SPECIALIZED CARE (Dialysis & Chemotherapy)
   ========================================================= */
.hd-care-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.hd-care-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  border: 1px solid #e8ebf1;
  border-radius: 14px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(18, 54, 132, 0.05);
}

.hd-care-card img {
  width: 100%;
  height: 100%;
  min-height: 130px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.hd-care-body {
  display: flex;
  flex-direction: column;
}

.hd-care-body h3 {
  margin: 0 0 6px;
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--hd-text);
}

.hd-care-body p {
  margin: 0 0 12px;
  color: var(--hd-muted);
  font-size: 12px;
  line-height: 18px;
}

.hd-care-body .hd-care-meta {
  color: var(--hd-navy);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.hd-care-btn {
  align-self: flex-start;
  margin-top: auto;
  height: 34px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--hd-pink);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.hd-care-btn:hover {
  background: #df1648;
}

/* =========================================================
   INSIDE APOLLO GALLERY
   ========================================================= */
.hd-inside-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 150px;
  gap: 12px;
}

.hd-inside-grid figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #eef1f6;
}

.hd-inside-grid figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hd-inside-grid figure.big {
  grid-column: span 2;
  grid-row: span 2;
}

.hd-inside-more {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 28, 58, 0.6);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

/* =========================================================
   ENQUIRY
   ========================================================= */
.hd-enquiry-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 30px;
  align-items: start;
}

.hd-enquiry-text h2 {
  margin: 0 0 12px;
  font-family: "Manrope", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--hd-navy);
}

.hd-enquiry-text>p {
  margin: 0 0 20px;
  color: var(--hd-muted);
  font-size: 13px;
  line-height: 22px;
}

.hd-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.hd-contact-row i {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #fdeef2;
  color: var(--hd-pink);
  font-size: 13px;
}

.hd-contact-row strong {
  display: block;
  font-size: 12.5px;
  color: var(--hd-text);
}

.hd-contact-row span {
  font-size: 12px;
  color: var(--hd-muted);
}

.hd-enquiry-form {
  border: 1px solid var(--hd-border);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 6px 20px rgba(18, 54, 132, 0.06);
}

.hd-field {
  margin-bottom: 14px;
}

.hd-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--hd-text);
  margin-bottom: 6px;
}

.hd-field input,
.hd-field select,
.hd-field textarea {
  width: 100%;
  border: 1px solid #dfe3ea;
  border-radius: 9px;
  padding: 0 12px;
  height: 42px;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--hd-text);
  outline: 0;
  background: #fff;
}

.hd-field textarea {
  height: 92px;
  padding: 10px 12px;
  resize: vertical;
}

.hd-field input:focus,
.hd-field select:focus,
.hd-field textarea:focus {
  border-color: var(--hd-pink);
}

.hd-field .hd-error {
  display: none;
  margin-top: 4px;
  color: var(--hd-pink);
  font-size: 11px;
}

.hd-field.invalid input,
.hd-field.invalid select,
.hd-field.invalid textarea {
  border-color: var(--hd-pink);
}

.hd-field.invalid .hd-error {
  display: block;
}

.hd-submit-btn {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 10px;
  background: var(--hd-pink);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.hd-submit-btn:hover {
  background: #df1648;
}

/* =========================================================
   SIMILAR HOSPITALS  (reuses .fh-card styles from find-hospitals.css)
   ========================================================= */
.hd-similar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* =========================================================
   APPOINTMENT MODAL
   ========================================================= */
.hd-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.hd-modal[hidden] {
  display: none;
}

.hd-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 24, 52, 0.55);
}

.hd-modal-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 14px;
  padding: 26px 24px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.hd-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: #f2f4f8;
  color: #55617a;
  cursor: pointer;
  font-size: 13px;
}

.hd-modal-card h3 {
  margin: 0 0 4px;
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--hd-navy);
}

.hd-modal-card>p {
  margin: 0 0 16px;
  color: var(--hd-muted);
  font-size: 12.5px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media screen and (max-width: 1024px) {

  .hd-hero-grid,
  .hd-about-grid,
  .hd-enquiry-grid {
    grid-template-columns: 1fr;
  }

  .hd-doctors-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hd-facilities-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hd-packages-grid,
  .hd-similar-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hd-care-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 680px) {
  .hd-thumbs {
    grid-template-columns: repeat(4, 1fr);
  }

  .hd-doctors-grid,
  .hd-facilities-grid,
  .hd-packages-grid,
  .hd-similar-grid {
    grid-template-columns: 1fr;
  }

  .hd-inside-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hd-care-card {
    grid-template-columns: 1fr;
  }

  .hd-section-head {
    flex-wrap: wrap;
    gap: 8px;
  }
}
/* =========================================================
   Detail page: real-data states (no photo, empty fields, live units)
   ========================================================= */
.hd-preview-note { margin:12px 0 0; padding:10px 14px; border-radius:10px; background:#FFFBEB; border:1px solid #FDE68A; color:#92400E; font-size:13px; }
.hd-no-photo { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; background:linear-gradient(135deg,#EEF2FF,#FDF2F8); min-height:320px; color:#64748B; }
.hd-no-photo-mark { width:96px; height:96px; border-radius:50%; display:grid; place-items:center; background:#fff; color:#123684; font-size:34px; font-weight:800; box-shadow:0 8px 24px rgba(18,54,132,.12); }
.hd-no-photo small { font-size:12.5px; }
.hd-metrics { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:16px; padding:12px; background:#F8FAFC; border:1px solid #EEF2F6; border-radius:12px; }
.hd-metrics > div { text-align:center; } .hd-metrics > .mid { border-left:1px solid #E2E8F0; border-right:1px solid #E2E8F0; }
.hd-metrics strong { display:block; font-size:18px; font-weight:800; color:#0B2E78; } .hd-metrics strong.ok { color:#10B981; } .hd-metrics strong.pink { color:#F72559; }
.hd-metrics span { font-size:10px; font-weight:600; color:#64748B; text-transform:uppercase; }
.hd-book-link { display:flex; align-items:center; justify-content:center; gap:8px; text-decoration:none; }
.hd-info-actions { display:flex; gap:10px; margin-top:10px; }
.hd-action-link { flex:1; text-decoration:none; display:flex; align-items:center; justify-content:center; gap:6px; height:40px; border:1px solid #dfe3ea; border-radius:8px; font-size:13px; font-weight:600; color:#0F172A; background:#fff; }
.hd-muted-note { color:#64748B; background:#F8FAFC; border:1px dashed #CBD5E1; border-radius:12px; padding:16px; }
.hd-info-row dd.hd-break, .hd-break { word-break:break-word; }
.hd-info-row dd a { color:inherit; }

.hd-doc-filter { display:flex; gap:8px; flex-wrap:wrap; margin:0 0 18px; }
.hd-doc-filter button { border:1px solid #DFE3EA; background:#fff; border-radius:999px; padding:7px 14px; font-size:13px; font-weight:600; color:#334155; cursor:pointer; }
.hd-doc-filter button em { font-style:normal; font-size:11px; color:#94A3B8; margin-left:4px; }
.hd-doc-filter button.is-on { background:#123684; border-color:#123684; color:#fff; } .hd-doc-filter button.is-on em { color:#CBD5E1; }
.hd-doctor-initials { display:grid; place-items:center; background:linear-gradient(135deg,#E0E7FF,#FCE7F3); }
.hd-doctor-initials > span:first-child { width:84px; height:84px; border-radius:50%; display:grid; place-items:center; background:#fff; color:#123684; font-size:28px; font-weight:800; box-shadow:0 6px 18px rgba(18,54,132,.12); position:static; }
.hd-doc-fee { font-size:13px; font-weight:700; color:#0F172A; margin:6px 0 2px; } .hd-doc-fee span { font-weight:500; color:#64748B; font-size:11.5px; }
.hd-doc-time { font-size:11.5px; color:#059669; font-weight:600; margin:4px 0 12px; }

.hd-live-pill { display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:600; color:#059669; }
.hd-live-pill span { width:8px; height:8px; border-radius:50%; background:#10B981; display:inline-block; animation:hdPulse 1.6s infinite; }
@keyframes hdPulse { 0% { box-shadow:0 0 0 0 rgba(16,185,129,.5); } 70% { box-shadow:0 0 0 8px rgba(16,185,129,0); } 100% { box-shadow:0 0 0 0 rgba(16,185,129,0); } }
.hd-room-sub { font-size:11px; color:#64748B; font-weight:normal; }
.hd-avail.full { color:#B91C1C; } .hd-room-btn.disabled { opacity:.5; cursor:not-allowed; pointer-events:none; }

.hd-package-price s { font-size:14px; color:#94A3B8; font-weight:400; margin-left:6px; }
.hd-package-save { display:inline-block; margin:2px 0 10px; padding:2px 10px; border-radius:999px; background:#DCFCE7; color:#166534; font-size:11.5px; font-weight:700; }
.hd-package-link { display:flex; align-items:center; justify-content:center; text-decoration:none; }

.hd-care-live { display:flex; flex-direction:column; }
.hd-care-icon { height:84px; display:grid; place-items:center; background:linear-gradient(135deg,#E0E7FF,#FCE7F3); color:#123684; font-size:34px; }
.hd-care-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:12px 0; }
.hd-care-stats > div { text-align:center; background:#F8FAFC; border-radius:10px; padding:10px 6px; }
.hd-care-stats strong { display:block; font-size:20px; color:#0B2E78; } .hd-care-stats strong.ok { color:#059669; } .hd-care-stats strong.low { color:#B91C1C; }
.hd-care-stats span { font-size:11px; color:#64748B; text-transform:uppercase; font-weight:600; }
.hd-care-list { list-style:none; margin:0 0 14px; padding:0; }
.hd-care-list li { display:flex; justify-content:space-between; gap:10px; padding:8px 0; border-bottom:1px solid #F1F5F9; font-size:13px; color:#334155; }
.hd-care-list li small { display:block; color:#94A3B8; font-size:11.5px; }
.hd-care-list em { font-style:normal; font-weight:700; font-size:12px; white-space:nowrap; } .hd-care-list em.ok { color:#059669; } .hd-care-list em.low { color:#B91C1C; }
.hd-care-link { text-decoration:none; display:inline-flex; align-items:center; justify-content:center; gap:8px; }

.hd-flash-ok { background:#ECFDF5; border:1px solid #A7F3D0; color:#065F46; padding:12px 16px; border-radius:8px; font-size:13px; margin-bottom:16px; display:flex; align-items:center; gap:8px; }
.hd-signin-box { text-align:center; padding:18px 0; }
.hd-signin-box > i { font-size:36px; color:#94A3B8; margin-bottom:12px; }
.hd-signin-box h4 { font-size:16px; font-weight:700; color:#0F172A; margin:0 0 6px; } .hd-signin-box p { color:#64748B; font-size:13px; line-height:1.6; margin:0 0 18px; }
.hd-signin-actions { display:flex; justify-content:center; gap:10px; flex-wrap:wrap; }
.hd-signin-btn { display:inline-block; padding:10px 22px; background:#F72559; color:#fff; border-radius:8px; font-weight:600; text-decoration:none; font-size:13.5px; border:1px solid #F72559; }
.hd-signin-btn.alt { background:#fff; color:#0F172A; border-color:#CBD5E1; }

.hd-sim-card { border:1px solid #E2E8F0; border-radius:14px; overflow:hidden; background:#fff; box-shadow:0 4px 16px rgba(0,0,0,.04); display:flex; flex-direction:column; }
.hd-sim-media { position:relative; aspect-ratio:16/9; overflow:hidden; background:#EEF2F6; }
.hd-sim-media img { width:100%; height:100%; object-fit:cover; display:block; }
.hd-sim-media.hd-no-photo { min-height:0; } .hd-sim-media .hd-no-photo-mark { width:64px; height:64px; font-size:22px; }
.hd-sim-type { position:absolute; top:10px; left:10px; background:rgba(12,28,58,.78); color:#fff; font-size:10px; font-weight:700; padding:4px 10px; border-radius:999px; }
.hd-sim-body { padding:16px; display:flex; flex-direction:column; flex:1; }
.hd-sim-meta { display:flex; justify-content:space-between; align-items:center; margin-bottom:6px; font-size:11.5px; }
.hd-sim-rating { color:#F59E0B; font-weight:700; } .hd-sim-rating.muted { color:#94A3B8; } .hd-sim-beds { color:#10B981; font-weight:700; } .hd-sim-beds i { font-size:7px; }
.hd-sim-body h3 { font-size:16px; font-weight:700; color:#0F172A; margin:0 0 6px; }
.hd-sim-loc { color:#64748B; font-size:12px; margin-bottom:12px; } .hd-sim-loc i { color:#EF4444; margin-right:4px; }
.hd-sim-btn { margin-top:auto; height:36px; border:1px solid #123684; color:#123684; border-radius:8px; display:flex; align-items:center; justify-content:center; text-decoration:none; font-size:13px; font-weight:600; }
@media (max-width: 640px) { .hd-metrics strong { font-size:16px; } .hd-info-actions { flex-direction:column; } }
.hd-room-btn { text-decoration: none; display: inline-block; }
.hd-more-wrap { text-align: center; margin-top: 26px; }
.hd-more-btn { border: 1.5px solid #123684; background: #fff; color: #123684; border-radius: 999px; padding: 11px 26px; font-weight: 700; font-size: 14px; cursor: pointer; }
.hd-more-btn:hover { background: #F5F8FF; } .hd-more-btn i { font-size: 11px; margin-left: 6px; }

/* booking entry points on the detail page */
.hd-link-btn { background: none; border: 0; cursor: pointer; font: inherit; color: inherit; }
.hd-doc-book { width: 100%; margin-top: 4px; padding: 9px; border: 1.5px solid #123684; background: #fff; color: #123684; border-radius: 10px; font-weight: 700; font-size: 12.5px; cursor: pointer; }
.hd-doc-book:hover { background: #123684; color: #fff; }
.hd-avail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-bottom: 22px; }
.hd-avail-card { background: #fff; border: 1.5px solid #E2E8F0; border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.hd-avail-card.is-booked { background: #F8FAFC; border-style: dashed; } .hd-avail-card.is-booked strong, .hd-avail-card.is-booked .hd-avail-rate { color: #94A3B8; }
.hd-avail-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; } .hd-avail-top strong { font-size: 15px; color: #0F172A; }
.hd-avail-card p { margin: 0; font-size: 12.5px; color: #64748B; line-height: 1.5; }
.hd-avail-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 6px; }
.hd-avail-rate { font-weight: 800; color: #123684; font-size: 17px; } .hd-avail-rate small { font-weight: 500; color: #64748B; font-size: 11.5px; }
.hd-room-btn { cursor: pointer; background: #fff; } button.hd-room-btn { font-family: inherit; }
.hd-book-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 26px; }
.hd-book-card { text-align: left; background: #fff; border: 1.5px solid #E2E8F0; border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; font-family: inherit; transition: .15s; }
.hd-book-card:hover { border-color: #123684; box-shadow: 0 10px 28px rgba(18,54,132,.12); transform: translateY(-2px); }
.hd-book-card strong { font-size: 17px; color: #0F172A; } .hd-book-card small { font-size: 13px; color: #64748B; line-height: 1.5; }
.hd-book-card em { margin-top: 6px; font-style: normal; font-weight: 700; font-size: 13px; color: #123684; }
.hd-book-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #E8EEFB; color: #123684; font-size: 20px; }
.hd-book-card.is-emergency .hd-book-icon { background: #FEE2E2; color: #DC2626; } .hd-book-card.is-emergency:hover { border-color: #DC2626; } .hd-book-card.is-emergency em { color: #DC2626; }
.hd-book-contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 6px 24px; }
