/* Nidara provider profile — Nidare Forest tokens */

.nidara-np-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #e3ece7;
  margin: 0 0 28px;
}

.nidara-np-tab {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 12px 18px;
  margin-bottom: -1px;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #637772;
  cursor: pointer;
  transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nidara-np-tab:hover {
  color: #0e3b32;
}

.nidara-np-tab.is-active {
  color: #0e3b32;
  border-bottom-color: #0e3b32;
}

.nidara-np-tab:focus-visible {
  outline: 2px solid #0e3b32;
  outline-offset: 2px;
}

.nidara-np-tab__count {
  display: inline-block;
  min-width: 20px;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #eaf4ee;
  color: #0e3b32;
  font-size: 12px;
  line-height: 18px;
}

.nidara-np-panel[hidden] {
  display: none;
}

.nidara-np-services {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.nidara-np-service__link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid #e3ece7;
  border-radius: 18px;
  background: #ffffff;
  text-decoration: none;
  color: #0a1f1a;
  transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nidara-np-service__link:hover {
  border-color: #14b89a;
  background: #f6fbf8;
}

.nidara-np-service__icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #eaf4ee;
  color: #0e3b32;
}

.nidara-np-service__body {
  flex: 1 1 auto;
  min-width: 0;
}

.nidara-np-service__title {
  display: block;
  font-weight: 600;
  line-height: 1.3;
}

.nidara-np-service__desc {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.5;
  color: #637772;
}

.nidara-np-service__price {
  flex: 0 0 auto;
  text-align: right;
  line-height: 1.3;
}

.nidara-np-service__price small {
  display: block;
  font-size: 12px;
  color: #637772;
}

.nidara-np-service__price strong {
  display: block;
  font-size: 18px;
  color: #0e3b32;
}

.nidara-np-subhead {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 12px;
  color: #0a1f1a;
}

.nidara-np-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.nidara-np-chip {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: #eaf4ee;
  color: #2a3a35;
  font-size: 14px;
  text-decoration: none;
}

.nidara-np-chip--link:hover {
  background: #cfece1;
  color: #0e3b32;
}

.nidara-np-rating-summary {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border: 1px solid #e3ece7;
  border-radius: 18px;
  background: #ffffff;
  margin-bottom: 24px;
}

.nidara-np-rating-summary__score strong {
  font-size: 40px;
  line-height: 1;
  color: #0e3b32;
}

.nidara-np-rating-summary__score span {
  font-size: 14px;
  color: #637772;
  margin-left: 4px;
}

.nidara-np-rating-summary__meta p {
  margin: 4px 0 0;
  font-size: 14px;
  color: #637772;
}

.nidara-np-stars {
  color: #d2a55a;
  letter-spacing: 2px;
}

.nidara-np-stars--sm {
  font-size: 13px;
}

.nidara-np-reviews {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nidara-np-review {
  display: flex;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid #e3ece7;
}

.nidara-np-review:last-child {
  border-bottom: 0;
}

.nidara-np-review__avatar img {
  border-radius: 999px;
  display: block;
}

.nidara-np-review__body {
  flex: 1 1 auto;
  min-width: 0;
}

.nidara-np-review__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nidara-np-review__date {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: #8a9b95;
}

.nidara-np-review__text {
  margin: 8px 0 0;
  line-height: 1.6;
  color: #2a3a35;
  max-width: 65ch;
}

.nidara-np-review__listing {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #0e3b32;
}

.nidara-np-empty {
  padding: 28px;
  border: 1px dashed #e3ece7;
  border-radius: 18px;
  color: #637772;
  text-align: center;
}

.nidara-np-empty--reviews i {
  font-size: 26px;
  color: #d2a55a;
}

.nidara-np-empty--reviews p {
  margin: 10px 0 2px;
  font-weight: 600;
  color: #0a1f1a;
}

.nidara-np-empty--reviews small {
  color: #637772;
}

.nidara-np-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: #0e3b32;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nidara-np-btn:hover {
  background: #06231d;
  color: #ffffff;
}

.nidara-np-btn--ghost {
  background: transparent;
  color: #0e3b32;
  border: 1px solid #0e3b32;
}

.nidara-np-btn--ghost:hover {
  background: #eaf4ee;
  color: #0e3b32;
}

.nidara-author-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.nidara-author-hero__bio--empty {
  color: #8a9b95;
  font-style: italic;
}

.nidara-author-hero__rating--empty {
  color: #8a9b95;
}

.nidara-author-hero__reviews-link {
  color: inherit;
  text-decoration: underline;
}

.nidara-np-fields {
  margin: 28px 0;
  padding-top: 24px;
  border-top: 1px solid #e3ece7;
}

.nidara-np-fields__title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
}

.nidara-np-fields__lead {
  margin: 0 0 18px;
  color: #637772;
  font-size: 14px;
}

.nidara-np-group {
  border: 0;
  padding: 0;
  margin: 0 0 18px;
}

.nidara-np-group legend {
  font-weight: 600;
  margin-bottom: 10px;
  padding: 0;
}

.nidara-np-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nidara-np-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid #e3ece7;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nidara-np-check:has(input:checked) {
  border-color: #0e3b32;
  background: #eaf4ee;
}

.nidara-np-multi {
  width: 100%;
  border: 1px solid #e3ece7;
  border-radius: 12px;
  padding: 8px;
  font-family: "Poppins", sans-serif;
}

.nidara-np-hint {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #637772;
}

/* Experience block on the public profile ------------------------------- */

.nidara-np-expbox {
  margin: 18px 0 0;
  padding: 18px 20px;
  border: 1px solid #e3ece7;
  border-radius: 18px;
  background: #ffffff;
  max-width: 65ch;
}

.nidara-np-expbox__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
  color: #0a1f1a;
}

.nidara-np-expbox__title i {
  color: #14b89a;
}

.nidara-np-expbox__years {
  display: inline-block;
  margin: 0 0 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: #eaf4ee;
  color: #0e3b32;
  font-size: 14px;
  font-weight: 600;
}

.nidara-np-expbox__text {
  margin: 0;
  line-height: 1.6;
  color: #2a3a35;
}

.nidara-np-expbox__text--empty {
  color: #8a9b95;
}

.nidara-np-expbox__text a {
  color: #0e3b32;
  font-weight: 600;
}

.nidara-author-hero__exp {
  color: #2a3a35;
}

.nidara-np-actions-note {
  align-self: center;
  font-size: 13px;
  color: #637772;
}

/* Service areas grouped by region -------------------------------------- */

.nidara-np-zones {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
}

.nidara-np-zone__region {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #0e3b32;
}

.nidara-np-zone__region i {
  color: #14b89a;
}

.nidara-np-zone .nidara-np-chips {
  margin-bottom: 0;
}

/* Dashboard: región → comuna picker ------------------------------------ */

.nidara-np-textarea {
  width: 100%;
  border: 1px solid #e3ece7;
  border-radius: 12px;
  padding: 12px 14px;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #0a1f1a;
  resize: vertical;
}

.nidara-np-textarea:focus {
  outline: 2px solid #0e3b32;
  outline-offset: 1px;
  border-color: #0e3b32;
}

.nidara-np-hint--lead {
  margin: 0 0 12px;
}

.nidara-np-checks--regions {
  margin-bottom: 18px;
}

.nidara-np-comunas {
  display: grid;
  gap: 14px;
}

.nidara-np-comunas.is-loading {
  opacity: 0.6;
}

.nidara-np-comuna-group {
  border: 1px solid #e3ece7;
  border-radius: 18px;
  padding: 16px 18px;
  margin: 0;
  background: #fdfaf5;
}

.nidara-np-comuna-group legend {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0;
  font-weight: 700;
  color: #0e3b32;
}

.nidara-np-linkbtn {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #14b89a;
  cursor: pointer;
  text-decoration: underline;
}

.nidara-np-linkbtn:hover {
  color: #0e3b32;
}

.nidara-np-check--sm {
  padding: 6px 12px;
  font-size: 13px;
  background: #ffffff;
}

/* Contact modal --------------------------------------------------------- */

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

.nidara-np-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 16px;
}

.nidara-np-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 31, 26, 0.55);
}

.nidara-np-modal__panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(10, 31, 26, 0.22);
}

.nidara-np-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #eaf4ee;
  color: #0e3b32;
  cursor: pointer;
}

.nidara-np-modal__close:hover {
  background: #cfece1;
}

.nidara-np-modal__title {
  margin: 0 0 14px;
  padding-right: 40px;
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
  color: #0a1f1a;
}

.nidara-np-modal__label {
  display: block;
  margin: 14px 0 6px;
  font-weight: 600;
  color: #2a3a35;
}

.nidara-np-modal__feedback {
  margin: 10px 0 0;
  min-height: 20px;
  font-size: 14px;
  color: #637772;
}

.nidara-np-modal__feedback--ok {
  color: #0e3b32;
  font-weight: 600;
}

/* Matches the error tone already used by .nidara-btn--danger in dashboard.css
   rather than introducing a new red into the palette. */
.nidara-np-modal__feedback--error {
  color: #b91c1c;
}

.nidara-np-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

body.nidara-np-modal-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .nidara-np-modal__panel {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .nidara-np-modal__actions .nidara-np-btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .nidara-author-hero__actions .nidara-np-contact-btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .nidara-np-service__link {
    align-items: flex-start;
  }

  .nidara-np-service__price {
    text-align: left;
  }

  .nidara-np-rating-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nidara-np-tab,
  .nidara-np-service__link,
  .nidara-np-btn,
  .nidara-np-check {
    transition: none;
  }
}
