/**
 * Palvelut (service directory) design layer. Loads after app.css.
 * Uses only BeerCSS theme tokens + the theme's layout tokens, so light/dark
 * flips automatically. No hardcoded colours.
 *
 * @package Elementa_Tassutori
 */

/* Result-count line under the finder bar. */
.et-result-count {
  max-width: var(--et-max);
  margin: 1.25rem auto 0.25rem;
  font-weight: 600;
}

/* ---- Single service: details panel ---- */
.et-palvelu {
  max-width: var(--et-max);
  margin: 1.25rem auto 1.5rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--et-radius);
  border: 1px solid var(--outline-variant);
  background: var(--surface-container);
  color: var(--on-surface);
  box-shadow: var(--et-sh-1);
}

.et-palvelu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.et-palvelu__row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  line-height: 1.5;
}

.et-palvelu__row > .et-ico {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--et-radius);
  background: var(--primary-container);
  color: var(--on-primary-container);
}

.et-palvelu__row > .et-ico .et-i {
  width: 1.4rem;
  height: 1.4rem;
}

.et-palvelu__row a {
  color: var(--primary);
  text-decoration: none;
}
.et-palvelu__row a:hover { text-decoration: underline; }

.et-palvelu__hours { white-space: pre-line; color: var(--on-surface-variant); }

/* ---- Map link button ---- */
.et-palvelu__map {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--et-radius);
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--et-sh-1);
  transition: box-shadow var(--et-dur) var(--et-ease), transform var(--et-dur) var(--et-ease);
}
.et-palvelu__map:hover { box-shadow: var(--et-sh-2); transform: translateY(-2px); }
.et-palvelu__map .et-i { width: 1.25rem; height: 1.25rem; }
