/* ================================================
   HA ACF Tabs — Stiluri
   ================================================ */

/* ── Stare de loading / eroare ── */
.ha-tabs-root .ha-loading,
.ha-tabs-root .ha-error {
  padding: 20px;
  color: #888;
  font-size: 14px;
}
.ha-tabs-root .ha-error { color: #c0392b; }

/* ================================================
   DESKTOP: layout tabs cu nav stânga
   ================================================ */
.ha-tabs-wrap {
  display: flex;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  overflow: hidden;
}

/* ── Coloana navigare stânga — normală, cât e lista ── */
.ha-nav {
  flex-shrink: 0;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e2e2e2;
}

.ha-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid #e2e2e2;
  padding: 14px 18px;
  font-size: 14px;
  color: #555;
  cursor: pointer;
  text-align: left;
  transition: background .15s, color .15s;
  position: relative;
  font-family: inherit;
  line-height: 1.4;
}
.ha-nav-btn:last-child { border-bottom: none; }
.ha-nav-btn:hover {
  background: #fff;
  color: #222;
}
.ha-nav-btn.ha-active {
  background: #fff;
  color: #222;
  font-weight: 600;
}
/* Bara de accent — culoarea vine inline din JS */
.ha-nav-btn.ha-active::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  /* background setat din JS via CSS variable */
  background: var(--ha-accent, #1a7a5e);
}

/* Iconița tab (dacă există) */
.ha-nav-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 4px;
}

/* ── Zona de conținut dreapta — fără sticky, scroll automat din JS ── */
.ha-content {
  flex: 1;
  padding: 28px 32px;
  background: #fff;
}

.ha-panel { display: none; }
.ha-panel.ha-active {
  display: block;
  animation: haFadeIn .2s ease;
}

@keyframes haFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Conținut panel ── */
.ha-panel-title {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
}
.ha-panel-text {
  font-size: 15px;
  line-height: 1.7;
  color: #444;
  margin: 0 0 20px;
}
.ha-panel-text:empty { display: none; }

.ha-panel-image {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 20px;
  display: block;
}

/* Tabel cu extras (nested repeater) */
.ha-extras-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 16px;
}
.ha-extras-table th,
.ha-extras-table td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid #efefef;
}
.ha-extras-table th {
  color: #888;
  font-weight: 500;
  width: 40%;
}
.ha-extras-table td { color: #333; }
.ha-extras-table tr:last-child th,
.ha-extras-table tr:last-child td { border-bottom: none; }


/* ================================================
   MOBIL: Accordion
   ================================================ */
.ha-mobile { display: none; }

/* clasa .ha-is-mobile se adaugă pe .ha-tabs-root din JS */
.ha-tabs-root.ha-is-mobile .ha-tabs-wrap { display: none; }
.ha-tabs-root.ha-is-mobile .ha-mobile   { display: block; }

.ha-mob-item {
  border: 1px solid #e2e2e2;
  border-bottom: none;
  background: #fff;
}
.ha-mob-item:first-child { border-radius: 8px 8px 0 0; }
.ha-mob-item:last-child  {
  border-bottom: 1px solid #e2e2e2;
  border-radius: 0 0 8px 8px;
}

.ha-mob-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: #f5f5f5;
  border: none;
  padding: 14px 18px;
  font-size: 15px;
  color: #333;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background .15s;
  gap: 10px;
}
.ha-mob-btn.ha-active {
  background: #fff;
  font-weight: 600;
  color: #1a1a1a;
}
.ha-mob-btn-left { display: flex; align-items: center; gap: 10px; flex: 1; }

.ha-mob-arr {
  flex-shrink: 0;
  font-size: 11px;
  color: #999;
  transition: transform .25s;
  margin-left: auto;
}
.ha-mob-btn.ha-active .ha-mob-arr { transform: rotate(180deg); }

.ha-mob-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.ha-mob-body.ha-open { max-height: 1200px; }

.ha-mob-inner {
  padding: 16px 18px 22px;
  border-top: 1px solid #efefef;
}


/* ================================================
   PANEL MEDIC — stiluri specifice structurii
   ================================================ */

.ha-panel-name {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.25;
}

.ha-panel-titulatura {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 500;
  color: #666;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: .01em;
}

.ha-panel-sep {
  border: none;
  border-top: 1px solid #e8e8e8;
  margin: 16px 0;
}

.ha-panel-descriere {
  font-size: 15px;
  line-height: 1.75;
  color: #444;
  margin-bottom: 24px;
}
.ha-panel-descriere p { margin: 0 0 12px; }
.ha-panel-descriere p:last-child { margin-bottom: 0; }

/* — Bloc contact — */
.ha-panel-contact {
  background: #f7f9f8;
  border: 1px solid #e0ebe6;
  border-radius: 8px;
  padding: 16px 20px;
}

.ha-contact-heading {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #888;
}

.ha-contact-list {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 6px 12px;
  margin: 0;
  font-size: 14px;
}
.ha-contact-list dt {
  color: #888;
  font-weight: 500;
  align-self: start;
  padding-top: 1px;
}
.ha-contact-list dd {
  margin: 0;
  color: #222;
  line-height: 1.5;
}
.ha-contact-list dd a {
  color: var(--ha-accent, #1a7a5e);
  text-decoration: none;
}
.ha-contact-list dd a:hover { text-decoration: underline; }
