/* ============================================================
   EthosMedi — Hospitals Listing Page CSS
   Mirrors doctors.css structure exactly
   ============================================================ */

/* ============================================================
   PAGE HERO
   ============================================================ */
.hs-hero {
  background: #ffffff;
  padding: 48px 0 20px;
}

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

/* Hero heading */
.hs-hero-title {
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 800;
  color: var(--cp-text, #1a1a2e);
  line-height: 1.18;
  margin-bottom: 14px;
}
.hs-hero-sub {
  font-size: 15px;
  color: var(--cp-muted, #6b7280);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.75;
}

/* Search bar */
.hs-search-wrap {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}
.hs-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cp-muted, #6b7280);
  font-size: 16px;
  pointer-events: none;
}
.hs-search-input {
  width: 100%;
  border: 1.5px solid var(--cp-border, #e5e7eb);
  border-radius: 100px;
  padding: 13px 20px 13px 46px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: var(--cp-text, #1a1a2e);
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.hs-search-input:focus {
  border-color: var(--cp-teal, #1B4DB8);
  box-shadow: 0 0 0 3px rgba(0,150,136, 0.10);
}
.hs-search-input::placeholder { color: #b0b7c0; }

/* Filter pills */
.hs-filter-pill {
  border: 1.5px solid var(--cp-border, #e5e7eb);
  border-radius: 100px;
  padding: 8px 18px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--cp-teal, #1B4DB8);
  background: #ffffff;
  transition: border-color 0.2s, background 0.2s;
}
.hs-filter-pill:hover,
.hs-filter-pill:focus,
.hs-filter-pill.show {
  border-color: var(--cp-teal, #1B4DB8);
  background: var(--cp-bg, #F0FBF9);
  color: var(--cp-teal, #1B4DB8);
}
.hs-clear-pill {
  border: 1.5px solid var(--cp-border, #e5e7eb);
  border-radius: 100px;
  padding: 8px 18px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--cp-muted, #6b7280);
  background: #ffffff;
  transition: all 0.2s;
}
.hs-clear-pill:hover {
  border-color: var(--cp-red, #C0392B);
  color: var(--cp-red, #C0392B);
  background: var(--cp-red-lt, #FDECEA);
}

/* Dropdown */
.hs-dropdown {
  border-radius: 12px;
  border: 1px solid var(--cp-border, #e5e7eb);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  padding: 6px;
  min-width: 180px;
}
.hs-dd-item {
  font-size: 13px;
  font-weight: 500;
  color: var(--cp-teal, #1B4DB8);
  border-radius: 8px;
  padding: 10px 14px;
  transition: background 0.15s;
}
.hs-dd-item:hover { background: var(--cp-bg, #F0FBF9); color: var(--cp-teal, #1B4DB8); }

/* ============================================================
   HOSPITALS GRID
   ============================================================ */
.hs-grid-section {
  background: #ffffff;
  padding: 20px 0 64px;
}

/* Hospital card */
.hs-card {
  background: var(--cp-bg, #F0FBF9);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid transparent;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
}
.hs-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,150,136, 0.12);
  border-color: var(--cp-teal-lt, #E0F5F3);
}

/* Card image */
.hs-card-img {
  height: 200px;
  overflow: hidden;
  background: #d4e8d4;
  flex-shrink: 0;
  position: relative;
}
.hs-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.hs-card:hover .hs-card-img img { transform: scale(1.04); }

/* Type badge on image */
.hs-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--cp-blue, #009688);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 100px;
  padding: 4px 12px;
  letter-spacing: 0.3px;
}
.hs-badge-blue   { background: var(--cp-teal, #1B4DB8) !important; }
.hs-badge-purple { background: #7c3aed !important; }

/* Card body */
.hs-card-body {
  padding: 20px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.hs-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.hs-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--cp-text, #1a1a2e);
  line-height: 1.3;
}
.hs-accred-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #f59e0b;
  border-radius: 50%;
  color: #ffffff;
  font-size: 11px;
  flex-shrink: 0;
}

.hs-location {
  font-size: 13px;
  color: var(--cp-muted, #6b7280);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}
.hs-location i { color: var(--cp-red, #1B4DB8); }

/* Tags */
.hs-tag-spec {
  background: rgba(255,255,255,0.9);
  color: var(--cp-teal, #1B4DB8);
  border: 1px solid var(--cp-border, #e5e7eb);
  border-radius: 100px;
  padding: 3px 11px;
  font-size: 12px;
  font-weight: 500;
}
.hs-tag-beds {
  display: inline-flex;
  align-items: center;
  background: var(--cp-red-bg, #f0f4fa);
  color: var(--cp-red, #1B4DB8);
  border-radius: 100px;
  padding: 3px 11px;
  font-size: 12px;
  font-weight: 500;
}

.hs-bio {
  font-size: 13px;
  color: var(--cp-muted, #6b7280);
  line-height: 1.6;
  margin-bottom: 14px;
  flex: 1;
}

/* View Hospital button */
.hs-view-btn {
  display: block;
  text-align: center;
  padding: 11px 0 0;
  border-top: 1px solid var(--cp-border, #e5e7eb);
  font-size: 13px;
  font-weight: 600;
  color: var(--cp-teal, #1B4DB8);
  text-decoration: none;
  transition: color 0.2s;
}
.hs-view-btn:hover { color: var(--cp-red, #1B4DB8); }

/* No results */
.hs-no-results { text-align: center; }

/* ============================================================
   PAGINATION
   ============================================================ */
.hs-pagination { margin-top: 40px; }

.hs-pg-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--cp-border, #e5e7eb);
  background: #ffffff;
  color: var(--cp-teal, #1B4DB8);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hs-pg-num:hover {
  border-color: var(--cp-teal, #1B4DB8);
  background: var(--cp-bg, #F0FBF9);
}
.hs-pg-num.hs-pg-active {
  background: var(--cp-teal, #1B4DB8);
  border-color: var(--cp-teal, #1B4DB8);
  color: #ffffff;
}
.hs-pg-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--cp-border, #e5e7eb);
  background: #ffffff;
  color: var(--cp-teal, #1B4DB8);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.hs-pg-arrow:hover:not(:disabled) {
  border-color: var(--cp-teal, #1B4DB8);
  background: var(--cp-bg, #F0FBF9);
}
.hs-pg-arrow:disabled { opacity: 0.35; cursor: not-allowed; }
.hs-pg-ellipsis { font-size: 16px; color: var(--cp-muted); padding: 0 4px; }

/* ============================================================
   INSIGHTS SECTION
   ============================================================ */
.hs-insights-section { background: var(--cp-bg, #F0FBF9); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767.98px) {
  .hs-hero { padding: 36px 0 16px; }
  .hs-hero-title { font-size: 26px; }
  .hs-hero-sub { font-size: 14px; }
  .hs-card-img { height: 180px; }
}
