/* ============================================================
   EthosMedi — Hospital Detail Page CSS
   ============================================================ */

/* ============================================================
   BREADCRUMB
   ============================================================ */
.hd-breadcrumb-wrap {
  background: #ffffff;
  padding: 14px 0;
  border-bottom: 1px solid var(--cp-border, #e5e7eb);
}
.hd-breadcrumb {
  font-size: 13px;
  margin: 0; padding: 0; background: none;
}
.hd-breadcrumb .breadcrumb-item a {
  color: var(--cp-muted, #6b7280);
  text-decoration: none;
  transition: color 0.2s;
}
.hd-breadcrumb .breadcrumb-item a:hover { color: var(--cp-red, #1B4DB8); }
.hd-breadcrumb .breadcrumb-item.active { color: var(--cp-teal, #1B4DB8); font-weight: 600; }
.hd-breadcrumb .breadcrumb-item + .breadcrumb-item::before { content: '›'; color: var(--cp-muted); }

/* ============================================================
   HOSPITAL PROFILE CARD
   ============================================================ */
.hd-profile-wrap {
  background: #ffffff;
  padding: 28px 0 36px;
}
.hd-profile-card {
  display: flex;
  gap: 36px;
  background: var(--cp-bg, #F0FBF9);
  border-radius: 20px;
  padding: 28px 32px;
  border: 1px solid var(--cp-border, #e5e7eb);
  align-items: flex-start;
  overflow: hidden;
}

/* Hospital image */
.hd-profile-img-wrap {
  flex: 0 0 340px;
  height: 240px;
  border-radius: 16px;
  overflow: hidden;
  background: #d4e8d4;
  flex-shrink: 0;
}
.hd-profile-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hospital info */
.hd-profile-info { flex: 1; min-width: 0; }
.hd-name {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 800;
  color: var(--cp-text, #1a1a2e);
  line-height: 1.15;
  margin-bottom: 12px;
}
.hd-desc {
  font-size: 14px;
  color: var(--cp-muted, #6b7280);
  line-height: 1.75;
  margin-bottom: 14px;
}
.hd-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.hd-location {
  font-size: 14px;
  font-weight: 500;
  color: var(--cp-muted);
  display: flex;
  align-items: center;
}
.hd-location i { color: var(--cp-red, #1B4DB8); }

.hd-badges-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 8px;
}
.hd-badge {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  border-radius: 100px;
  padding: 6px 14px;
}
.hd-badge-green { background: var(--cp-blue-lt, #E8EEFB); color: var(--cp-blue-dk, #00796B); border: 1px solid var(--cp-blue-lt, #E8EEFB); }
.hd-badge-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--cp-teal, #1B4DB8);
  text-decoration: underline;
  cursor: pointer;
}

/* Buttons */
.hd-btn-consult {
  background: var(--cp-teal, #1B4DB8) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 100px !important;
  padding: 12px 24px !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  transition: all 0.25s !important;
  box-shadow: 0 4px 14px rgba(0,150,136,0.25) !important;
}
.hd-btn-consult:hover { background: var(--cp-teal-dk, #153A8E) !important; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,150,136,0.35) !important; }

.hd-btn-msg {
  background: transparent !important;
  color: var(--cp-teal, #1B4DB8) !important;
  border: 1.5px solid var(--cp-teal, #1B4DB8) !important;
  border-radius: 100px !important;
  padding: 12px 24px !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  transition: all 0.2s !important;
}
.hd-btn-msg:hover {
  background: var(--cp-teal, #1B4DB8) !important;
  color: #ffffff !important;
}

/* ============================================================
   TAB NAVIGATION
   ============================================================ */
.hd-tabs-wrap {
  background: #ffffff;
  border-bottom: 2px solid var(--cp-border, #e5e7eb);
  z-index: 100;
  top: 64px;
}
.hd-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.hd-tabs::-webkit-scrollbar { display: none; }
.hd-tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 16px 18px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: var(--cp-muted, #6b7280);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.hd-tab:hover { color: var(--cp-teal, #1B4DB8); }
.hd-tab.active {
  color: var(--cp-teal, #1B4DB8);
  font-weight: 700;
  border-bottom-color: var(--cp-teal, #1B4DB8);
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.hd-content-section {
  background: #ffffff;
  padding: 32px 0 60px;
}

/* Section blocks */
.hd-section-block {
  background: #ffffff;
  border: 1px solid var(--cp-border, #e5e7eb);
  border-radius: 16px;
  padding: 28px 28px;
  margin-bottom: 20px;
}

.hd-block-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--cp-text, #1a1a2e);
  border-left: 4px solid var(--cp-teal, #1B4DB8);
  padding-left: 14px;
  margin-bottom: 16px;
  line-height: 1.3;
}
.hd-sub-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--cp-text, #1a1a2e);
  border-left: 4px solid var(--cp-blue, #009688);
  padding-left: 14px;
  margin-bottom: 14px;
}
.hd-block-text {
  font-size: 14px;
  color: var(--cp-muted, #6b7280);
  line-height: 1.8;
  margin-bottom: 12px;
}
.hd-block-text:last-child { margin-bottom: 0; }

/* ============================================================
   FACILITIES GRID
   ============================================================ */
.hd-facilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 16px;
}
.hd-facility-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--cp-muted, #6b7280);
  padding: 8px 12px;
  background: var(--cp-bg, #F0FBF9);
  border-radius: 10px;
}
.hd-facility-item i {
  font-size: 15px;
  color: var(--cp-teal, #1B4DB8);
  flex-shrink: 0;
}

/* ============================================================
   COST TABLE
   ============================================================ */
.hd-cost-table-wrap { overflow-x: auto; }
.hd-cost-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--cp-border);
}
.hd-cost-table thead tr {
  background: linear-gradient(135deg, var(--cp-teal, #1B4DB8) 0%, var(--cp-blue, #009688) 100%);
  color: #ffffff;
}
.hd-cost-table thead th {
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hd-cost-table tbody tr:nth-child(odd) { background: #f9f9f9; }
.hd-cost-table tbody tr:nth-child(even) { background: #ffffff; }
.hd-cost-table tbody tr:hover { background: var(--cp-bg, #F0FBF9); }
.hd-cost-table tbody td {
  padding: 14px 20px;
  font-size: 14px;
  color: var(--cp-muted, #6b7280);
  border-top: 1px solid var(--cp-border, #e5e7eb);
}
.hd-cost-table tbody td:first-child { font-weight: 500; color: var(--cp-text); }
.hd-table-note {
  font-size: 12px;
  color: var(--cp-muted);
  margin-top: 10px;
  font-style: italic;
}

/* ============================================================
   MAP WRAP
   ============================================================ */
.hd-map-wrap {
  margin-top: 14px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--cp-border);
}

/* ============================================================
   AWARDS LIST
   ============================================================ */
.hd-awards-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hd-awards-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--cp-muted, #6b7280);
}
.hd-awards-list li i { color: #f59e0b; font-size: 15px; flex-shrink: 0; }

/* ============================================================
   SPECIALITIES TAGS
   ============================================================ */
.hd-spec-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hd-spec-tag {
  border: 1.5px solid var(--cp-border, #e5e7eb);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--cp-teal, #1B4DB8);
  background: #ffffff;
  transition: border-color 0.2s, background 0.2s;
  cursor: default;
}
.hd-spec-tag:hover {
  background: var(--cp-bg);
  border-color: var(--cp-dark);
}

/* ============================================================
   PRIORITY RESPONSE BANNER
   ============================================================ */
.hd-priority-banner {
  background: var(--cp-bg, #F0FBF9);
  border: 1px solid var(--cp-border);
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.hd-priority-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--cp-text, #1a1a2e);
  margin-bottom: 16px;
  line-height: 1.4;
}
.hd-priority-btn {
  background: var(--cp-teal, #1B4DB8) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 100px !important;
  padding: 10px 22px !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  transition: all 0.2s !important;
  box-shadow: 0 4px 12px rgba(0,150,136,0.25) !important;
}
.hd-priority-btn:hover { background: var(--cp-teal-dk, #153A8E) !important; transform: translateY(-1px); }
.hd-priority-img {
  flex: 0 0 160px;
  height: 110px;
  border-radius: 12px;
  overflow: hidden;
}
.hd-priority-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   DOCTORS ACCORDION (specialty dropdown)
   ============================================================ */
.hd-spec-accordion { display: flex; flex-direction: column; gap: 8px; }
.hd-spec-acc-item {
  border: 1px solid var(--cp-border, #e5e7eb) !important;
  border-radius: 12px !important;
  overflow: hidden;
}
.hd-spec-acc-btn {
  font-family: 'Poppins', sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--cp-text, #1a1a2e) !important;
  background: var(--cp-bg, #F0FBF9) !important;
  padding: 16px 20px !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hd-spec-acc-btn:not(.collapsed) {
  background: var(--cp-teal, #1B4DB8) !important;
  color: #ffffff !important;
}
.hd-spec-acc-btn::after { display: none; }
.hd-spec-count {
  font-size: 12px;
  font-weight: 500;
  background: rgba(78,68,69,0.1);
  border-radius: 100px;
  padding: 2px 10px;
  margin-left: 6px;
}
.hd-spec-acc-btn:not(.collapsed) .hd-spec-count {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
}
/* Plus/minus icon via pseudo */
.hd-spec-acc-btn::before {
  content: '+';
  font-size: 20px;
  line-height: 1;
  font-weight: 300;
  margin-left: auto;
  transition: transform 0.2s;
}
.hd-spec-acc-btn:not(.collapsed)::before { content: '−'; }
.hd-spec-acc-body { padding: 0; background: #ffffff; }

/* Doctor row inside spec accordion */
.hd-doctor-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--cp-border);
}
.hd-doctor-row:last-child { border-bottom: none; }
.hd-dr-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--cp-border);
}
.hd-dr-info { flex: 1; min-width: 0; }
.hd-dr-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--cp-text, #1a1a2e);
  text-decoration: none;
  display: block;
  margin-bottom: 3px;
}
.hd-dr-name:hover { color: var(--cp-red, #1B4DB8); }
.hd-dr-spec {
  font-size: 13px;
  color: var(--cp-muted);
  margin-bottom: 4px;
}
.hd-dr-meta {
  font-size: 12px;
  color: var(--cp-muted);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
}
.hd-dr-meta i { color: var(--cp-dark); }
.hd-dr-visit-btn {
  flex-shrink: 0;
  background: var(--cp-teal, #1B4DB8) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 100px !important;
  padding: 8px 18px !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  white-space: nowrap;
  transition: all 0.2s !important;
  text-decoration: none !important;
  display: inline-flex !important;
  box-shadow: 0 3px 10px rgba(0,150,136,0.2) !important;
}
.hd-dr-visit-btn:hover { background: var(--cp-teal-dk, #153A8E) !important; transform: translateY(-1px); }

/* ============================================================
   FAQs ACCORDION
   ============================================================ */
.hd-faq-accordion { display: flex; flex-direction: column; gap: 8px; }
.hd-faq-item {
  border: 1px solid var(--cp-border, #e5e7eb) !important;
  border-radius: 10px !important;
  overflow: hidden;
}
.hd-faq-btn {
  font-family: 'Poppins', sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--cp-text, #1a1a2e) !important;
  background: #ffffff !important;
  padding: 16px 20px !important;
  box-shadow: none !important;
}
.hd-faq-btn:not(.collapsed) {
  background: #ffffff !important;
  color: var(--cp-teal, #1B4DB8) !important;
}
.hd-faq-btn::after { display: none; }
.hd-faq-body {
  font-size: 14px;
  color: var(--cp-muted, #6b7280);
  line-height: 1.75;
  padding: 4px 20px 18px;
}

/* ============================================================
   OFFERS TAB CARDS
   ============================================================ */
.hd-offer-card {
  background: var(--cp-bg, #F0FBF9);
  border: 1px solid var(--cp-border);
  border-radius: 14px;
  padding: 24px 22px;
  position: relative;
  height: 100%;
}
.hd-offer-badge {
  display: inline-block;
  background: var(--cp-teal, #1B4DB8);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 12px;
}
.hd-badge-blue { background: var(--cp-teal, #1B4DB8) !important; }
.hd-offer-title { font-size: 16px; font-weight: 700; color: var(--cp-text); margin-bottom: 8px; }
.hd-offer-desc { font-size: 13px; color: var(--cp-muted); line-height: 1.65; margin-bottom: 18px; }
.hd-offer-btn {
  background: var(--cp-teal, #1B4DB8) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 100px !important;
  padding: 9px 22px !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  box-shadow: 0 3px 10px rgba(0,150,136,0.2) !important;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.hd-sidebar-sticky {
  position: sticky;
  top: 110px;
}

/* Sidebar cards */
.hd-sidebar-card {
  background: #ffffff;
  border: 1px solid var(--cp-border);
  border-radius: 16px;
  padding: 20px;
}
.hd-sidebar-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--cp-text, #1a1a2e);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cp-border);
}

/* Related hospitals */
.hd-related-list { display: flex; flex-direction: column; gap: 0; }
.hd-related-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--cp-border);
  text-decoration: none;
  transition: background 0.15s;
}
.hd-related-item:last-child { border-bottom: none; }
.hd-related-item:hover .hd-related-name { color: var(--cp-red, #1B4DB8); }
.hd-related-img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--cp-border);
}
.hd-related-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--cp-text, #1a1a2e);
  margin-bottom: 3px;
  transition: color 0.2s;
}
.hd-related-loc {
  font-size: 12px;
  color: var(--cp-muted);
  display: flex;
  align-items: center;
  margin: 0;
}

/* Patient Stories */
.hd-stories-card { }
.hd-story-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.hd-story-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.hd-story-name { font-size: 14px; font-weight: 700; color: var(--cp-text); margin-bottom: 2px; }
.hd-story-meta { font-size: 12px; color: var(--cp-muted); margin-bottom: 3px; display: flex; align-items: center; }
.hd-story-tag { font-size: 12px; color: var(--cp-muted); margin: 0; }
.hd-story-btn {
  background: var(--cp-teal, #1B4DB8) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 11px !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

/* Enquiry Form Card */
.hd-enquiry-card {
  background: #ffffff;
  border: 1px solid var(--cp-border);
  border-radius: 16px;
  padding: 22px 20px;
}
.hd-enquiry-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--cp-text, #1a1a2e);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cp-border);
}
.hd-form-input {
  width: 100%;
  border: 1.5px solid var(--cp-border, #e5e7eb) !important;
  border-radius: 10px !important;
  padding: 11px 14px !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 13px !important;
  color: var(--cp-text) !important;
  background: var(--cp-bg, #F0FBF9) !important;
  transition: border-color 0.2s, background 0.2s !important;
  outline: none !important;
  box-shadow: none !important;
}
.hd-form-input:focus {
  border-color: var(--cp-teal, #1B4DB8) !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(0,150,136,0.10) !important;
}
.hd-form-input::placeholder { color: #b0b7c0 !important; }
.hd-phone-row { display: flex; gap: 8px; }
.hd-country-sel { flex: 0 0 90px !important; cursor: pointer; }
.hd-form-textarea { resize: vertical; min-height: 90px; }

.hd-enquiry-submit {
  background: var(--cp-teal, #1B4DB8) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 13px !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  transition: all 0.25s !important;
  box-shadow: 0 4px 14px rgba(0,150,136,0.25) !important;
}
.hd-enquiry-submit:hover { background: var(--cp-teal-dk, #153A8E) !important; transform: translateY(-1px); }

.hd-form-note {
  font-size: 11px;
  color: var(--cp-muted);
  line-height: 1.5;
}
.hd-form-note a { color: var(--cp-dark); }

.hd-enquiry-success {
  margin-top: 12px;
  background: #e5f5ef;
  border: 1px solid #b5dece;
  color: #1a7a52;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
  .hd-profile-card { flex-direction: column; gap: 20px; padding: 20px; }
  .hd-profile-img-wrap { flex: none; width: 100%; height: 220px; }
  .hd-sidebar-sticky { position: static; }
  .hd-facilities-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767.98px) {
  .hd-profile-card { padding: 16px; }
  .hd-profile-img-wrap { height: 180px; }
  .hd-name { font-size: 26px; }
  .hd-facilities-grid { grid-template-columns: 1fr 1fr; }
  .hd-section-block { padding: 20px 16px; }
  .hd-tabs-wrap { top: 60px; }
  .hd-tab { padding: 14px 12px; font-size: 12px; }
  .hd-doctor-row { flex-wrap: wrap; gap: 12px; }
  .hd-dr-visit-btn { width: 100%; justify-content: center; }
  .hd-priority-banner { flex-direction: column; }
  .hd-priority-img { width: 100%; height: 140px; flex: none; }
}

@media (max-width: 480px) {
  .hd-facilities-grid { grid-template-columns: 1fr; }
}
