/* Circuitos — formato limpio, sin chips ni cajas de meta */
.tm-circuitos {
  padding: 2.75rem 0 1.5rem;
  margin-top: 2rem;
  background: linear-gradient(180deg, #f3f7f4 0%, #fff 42%);
  border-top: 1px solid rgba(20, 70, 45, 0.1);
}

.tm-circuitos .container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.tm-circuitos-head {
  margin: 0 auto 1.75rem;
  max-width: 36rem;
  text-align: center;
}

.tm-circuitos-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2f6b4a;
}

.tm-circuitos-head h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.55rem, 3.2vw, 2.05rem);
  color: #143528;
  font-family: var(--f-heading, Georgia, "Times New Roman", serif);
  font-weight: 600;
  line-height: 1.15;
}

.tm-circuitos-head p {
  margin: 0;
  color: #4a5c52;
  line-height: 1.55;
  font-size: 1rem;
}

.tm-circuito-card {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.tm-circuito-media {
  position: relative;
  margin: 0 auto 1.35rem;
  overflow: hidden;
  background: #1d3a2c;
  aspect-ratio: 16 / 9;
  max-height: 420px;
  width: min(100%, calc(420px * 16 / 9));
  display: block;
}

.tm-circuito-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tm-circuito-media-dots {
  position: absolute;
  left: 50%;
  bottom: 0.85rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
}

.tm-circuito-media-dots button {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.tm-circuito-media-dots button.is-active {
  background: #fff;
}

.tm-circuito-body {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  text-align: left;
}

.tm-circuito-body h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
  color: #143528;
  font-family: var(--f-heading, Georgia, "Times New Roman", serif);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.tm-circuito-meta {
  margin: 0;
  padding: 0;
  list-style: none;
  display: block;
  text-align: center;
  color: #3d5548;
  font-size: 0.92rem;
  line-height: 1.5;
  font-weight: 500;
}

.tm-circuito-desc {
  margin: 0;
  color: #2f3f37;
  line-height: 1.65;
  font-size: 1.02rem;
  text-align: center;
}

.tm-circuito-recs-label {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2f6b4a;
  text-align: center;
}

.tm-circuito-recs {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
  color: #45584e;
  font-size: 0.94rem;
  line-height: 1.55;
}

.tm-circuito-recs li {
  display: inline;
  padding: 0;
}

.tm-circuito-recs li::before {
  content: none;
}

.tm-circuito-recs li:not(:last-child)::after {
  content: " · ";
  color: #8aa094;
}

.tm-circuito-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.35rem;
  padding-top: 0.15rem;
}

.tm-circuito-actions .tm-btn-primary,
.tm-circuito-actions .tm-btn-ghost {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  font-size: 0.95rem;
  padding: 0.85rem 1.25rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.tm-circuito-actions .tm-btn-primary {
  background: #1a5c3c;
  color: #fff;
}

.tm-circuito-actions .tm-btn-primary:hover {
  background: #144a30;
}

.tm-circuito-map-wrap {
  margin-top: 2rem;
  display: none;
  grid-template-columns: minmax(0, 1.2fr) minmax(270px, 0.8fr);
  gap: 1rem;
  align-items: stretch;
}

.tm-circuito-map-wrap.is-open {
  display: grid;
}

@media (max-width: 900px) {
  .tm-circuito-map-wrap.is-open {
    grid-template-columns: 1fr;
  }
}

.tm-circuito-map {
  min-height: 400px;
  height: min(62vh, 560px);
  border: 0;
  outline: 1px solid rgba(20, 70, 45, 0.14);
  background: #e7eee9;
  z-index: 1;
}

.tm-circuito-panel {
  border: 0;
  outline: 1px solid rgba(20, 70, 45, 0.14);
  background: #fff;
  padding: 1.1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 400px;
}

.tm-circuito-panel-empty {
  margin: auto;
  text-align: center;
  color: #5a6b62;
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 1rem;
}

.tm-circuito-stops {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tm-circuito-stop-btn {
  appearance: none;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #3d5548;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.2rem;
  cursor: pointer;
}

.tm-circuito-stop-btn.is-active {
  color: #1a5c3c;
  border-bottom-color: #1a5c3c;
  background: transparent;
}

.tm-parada-fig {
  margin: 0;
  overflow: hidden;
}

.tm-parada-fig img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.tm-parada-title {
  margin: 0;
  font-size: 1.2rem;
  color: #143528;
  font-family: var(--f-heading, Georgia, serif);
  font-weight: 600;
}

.tm-parada-meta {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: #2f6b4a;
}

.tm-parada-tip {
  margin: 0;
  font-size: 0.88rem;
  color: #55685e;
  line-height: 1.45;
}

.tm-parada-texto {
  margin: 0;
  font-size: 0.93rem;
  color: #2a3832;
  line-height: 1.58;
  white-space: pre-line;
  max-height: 230px;
  overflow: auto;
}

.tm-parada-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.tm-parada-actions button,
.tm-parada-actions a {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  font-size: 0.86rem;
  padding: 0.65rem 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.tm-btn-listen {
  background: #1a5c3c;
  color: #fff;
}

.tm-btn-listen.is-playing {
  background: #8a4f14;
}

.tm-btn-maps {
  background: transparent;
  color: #1a5c3c;
  outline: 1px solid rgba(26, 92, 60, 0.35);
}

.tm-circuito-marker {
  background: #1a5c3c;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  font-family: system-ui, sans-serif;
}

.tm-circuito-route-note {
  margin: 0.65rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: #5a6b62;
}
