/* ============================================================
   clinic-card.css — стили карточек и каталога
   Подключить в functions.php: wp_enqueue_style('clinic-catalog', .../clinic-card.css');
   ============================================================ */

/* ─── Каталог: макет ─── */
.catalog-city { padding: 2rem 0 4rem; }
.catalog-header { margin-bottom: 1rem; }
.catalog-header h1 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
.catalog-meta { color: #666; margin-top: .25rem; }

.trust-banner {
  background: #f0faf5; border: 1px solid #c3e8d4;
  border-radius: 8px; padding: .75rem 1rem;
  font-size: .9rem; color: #1a6640; margin-bottom: 1.5rem;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 768px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-filters { order: 2; }
  .catalog-list { order: 1; }
}

/* ─── Фильтры ─── */
.catalog-filters {
  position: sticky; top: 80px;
  background: #fff; border: 1px solid #e8e8e8;
  border-radius: 12px; padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.filter-group { margin-bottom: 1.25rem; }
.filter-group h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: #888; margin-bottom: .5rem; }
.filter-radio, .filter-check {
  display: flex; align-items: center; gap: .4rem;
  padding: .35rem .5rem; border-radius: 6px;
  cursor: pointer; font-size: .875rem;
  transition: background .15s;
}
.filter-radio:hover, .filter-check:hover { background: #f5f5f5; }
.filter-radio.active { background: #e8f5ee; color: #1a6640; font-weight: 600; }
.filter-count { margin-left: auto; color: #aaa; font-size: .8rem; }
.filter-group select { width: 100%; padding: .4rem; border: 1px solid #ddd; border-radius: 6px; }
.btn-filter { width: 100%; margin-top: .5rem; }
.btn-outline { display: block; text-align: center; margin-top: .4rem; font-size: .85rem; color: #666; }

/* ─── Карточка клиники ─── */
.clinic-card {
  background: #fff; border: 1px solid #e8e8e8;
  border-radius: 12px; margin-bottom: 1rem;
  display: grid; grid-template-columns: 1fr auto;
  gap: 0; overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
  transition: box-shadow .2s, transform .2s;
  position: relative;
}
.clinic-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); transform: translateY(-1px); }

.clinic-card--partner {
  border-color: #01696f;
  border-top: 3px solid #01696f;
}
.clinic-card--germes  { border-top-color: #2e7d32; }
.clinic-card--verimed { border-top-color: #1565c0; }
.clinic-card--lazareva{ border-top-color: #6a1b9a; }

.partner-ribbon {
  position: absolute; top: 10px; right: -1px;
  background: #01696f; color: #fff;
  font-size: .75rem; font-weight: 700; padding: .2rem .6rem;
  border-radius: 4px 0 0 4px;
}

.card-body { padding: 1rem 1.25rem; }
.card-title { font-size: 1.05rem; margin-bottom: .3rem; }
.card-title a { color: #1a1a1a; text-decoration: none; }
.card-title a:hover { color: #01696f; }
.card-address { font-size: .85rem; color: #666; margin-bottom: .4rem; }

.card-rating { display: flex; align-items: center; gap: .25rem; margin-bottom: .4rem; font-size: .9rem; }
.star.full { color: #f59e0b; }
.star.empty { color: #ddd; }
.rev-count { color: #888; font-size: .8rem; margin-left: .25rem; }

.card-badges { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .5rem; }
.badge {
  font-size: .72rem; font-weight: 600; padding: .2rem .5rem;
  border-radius: 4px; white-space: nowrap;
}
.badge.green  { background: #e8f5ee; color: #1a6640; }
.badge.blue   { background: #e3f0ff; color: #1565c0; }
.badge.teal   { background: #e0f5f5; color: #01696f; }
.badge.purple { background: #f3e8ff; color: #6a1b9a; }
.badge.gray   { background: #f3f3f3; color: #555; }

.card-services { font-size: .82rem; color: #666; margin-bottom: .35rem; }
.card-price { font-size: .9rem; color: #333; }

.card-actions {
  display: flex; flex-direction: column; gap: .4rem;
  padding: 1rem; background: #fafafa;
  border-left: 1px solid #f0f0f0; min-width: 145px;
  justify-content: center;
}

/* ─── Кнопки ─── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .3rem;
  padding: .5rem 1rem; border-radius: 8px; font-size: .875rem; font-weight: 600;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary  { background: #01696f; color: #fff; }
.btn-primary:hover { background: #0c4e54; }
.btn-secondary{ background: #e8f5ee; color: #1a6640; border-color: #c3e8d4; }
.btn-secondary:hover { background: #d4eedc; }
.btn-outline  { background: transparent; border-color: #ddd; color: #555; }
.btn-outline:hover { border-color: #01696f; color: #01696f; }
.btn-sm  { padding: .35rem .7rem; font-size: .8rem; }
.btn-lg  { padding: .65rem 1.25rem; font-size: 1rem; }

/* ─── Карточка одиночная (single) ─── */
.clinic-layout {
  display: grid; grid-template-columns: 1fr 300px; gap: 2rem; align-items: start;
}
@media (max-width: 768px) { .clinic-layout { grid-template-columns: 1fr; } }

.clinic-header { margin-bottom: 1.5rem; }
.partner-badge { display: inline-block; background: #01696f; color: #fff; font-size: .8rem; padding: .2rem .6rem; border-radius: 4px; margin-bottom: .5rem; }
.clinic-rating { display: flex; align-items: center; gap: .3rem; font-size: 1rem; margin: .5rem 0; }
.clinic-badges { display: flex; flex-wrap: wrap; gap: .4rem; }

.clinic-cta-box {
  background: #f8f8f8; border: 1px solid #e8e8e8;
  border-radius: 12px; padding: 1.25rem; margin: 1.5rem 0;
}
.clinic-cta-box.cta-box--partner { background: #f0faf5; border-color: #c3e8d4; }
.cta-price { font-size: 1.1rem; margin-bottom: .75rem; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: .5rem; }
.cta-note { font-size: .8rem; color: #666; margin-top: .75rem; }

.clinic-services h2, .clinic-photos h2 { font-size: 1.1rem; margin-bottom: .75rem; margin-top: 1.5rem; }
.services-list { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; }
.services-list li {
  background: #f0f0f0; border-radius: 6px;
  padding: .3rem .7rem; font-size: .875rem;
}

.info-card {
  background: #fff; border: 1px solid #e8e8e8;
  border-radius: 12px; padding: 1.25rem; margin-bottom: 1rem;
}
.info-card h3 { font-size: .9rem; margin-bottom: .75rem; }
.info-card p  { font-size: .875rem; margin-bottom: .6rem; color: #333; line-height: 1.5; }
.license { background: #fffbe6; border-radius: 6px; padding: .5rem; }

.clinic-map { height: 200px; border-radius: 8px; overflow: hidden; margin-bottom: 1rem; background: #eee; }
.back-link { display: block; font-size: .875rem; color: #01696f; text-decoration: none; }
.back-link:hover { text-decoration: underline; }

/* ─── SEO-блок города ─── */
.city-seo-text {
  max-width: 800px; margin: 3rem auto 0;
  font-size: .9rem; color: #444; line-height: 1.7;
}
.city-seo-text h2 { font-size: 1.1rem; margin-bottom: .75rem; }

/* ─── Мобильная sticky-панель ─── */
.mobile-cta-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: #fff; border-top: 1px solid #e8e8e8;
  padding: .75rem 1rem; gap: .5rem;
  box-shadow: 0 -4px 12px rgba(0,0,0,.1);
}
@media (max-width: 768px) {
  .mobile-cta-bar { display: flex; }
  .mobile-cta-bar .btn { flex: 1; }
  body { padding-bottom: 80px; }
}

/* ─── Хлебные крошки ─── */
.breadcrumbs { font-size: .85rem; color: #888; margin-bottom: 1rem; }
.breadcrumbs a { color: #666; text-decoration: none; }
.breadcrumbs a:hover { color: #01696f; }

/* ─── Пагинация ─── */
.catalog-pagination { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.catalog-pagination .page-numbers {
  padding: .4rem .75rem; border: 1px solid #ddd; border-radius: 6px;
  text-decoration: none; color: #333; font-size: .875rem;
}
.catalog-pagination .current { background: #01696f; color: #fff; border-color: #01696f; }

.clinic-single .container {
  max-width: 1100px;   /* при желании расширить карточку */
}

.clinic-single .clinic-layout {
  margin-top: 20px;
}

.clinic-single .breadcrumbs {
  margin: 15px 0 20px;
  font-size: 0.85rem;
}

.clinic-reviews {
  margin-top: 2rem;
}

.clinic-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.clinic-reviews__widget {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 1rem 1.25rem;
}
.clinic-main__inner {
  min-height: 500px;
}
/* Фикс сдвига сайдбара */
.clinic-layout {
  display: grid !important;
  grid-template-columns: 1fr 300px !important;
  gap: 2rem !important;
  align-items: start !important;
}

.clinic-main {
  min-height: 400px;
}

.clinic-header {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.clinic-main__inner {
  padding-top: 0 !important;
}

.partner-badge {
  margin-top: 0 !important;
  margin-bottom: .5rem !important;
}

