/* VIB3S carpool section (templates/_carpool_widget.twig) */
.carpool-section {
  width: 95%;
  max-width: 1080px;
  margin: 2rem auto 3rem;
  padding: 2rem 1.25rem;
  background: var(--primary-bg);
  color: var(--text-inner);
  border-radius: 8px;
  border-left: 6px solid var(--secondary);
  display: grid;
  gap: 2rem;
  align-items: start;
  scroll-margin-top: 6rem;
}

.carpool-section--location {
  width: 100%;
}

.carpool-kicker {
  margin: 0 0 0.5rem;
  color: var(--secondary);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.carpool-title {
  margin: 0 0 1rem;
  font-size: 2.2rem;
  line-height: 1.15;
  font-weight: 700;
  color: var(--white);
}

.carpool-intro {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.carpool-perks {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.carpool-perks li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.05rem;
  line-height: 1.4;
}

.carpool-perk-icon {
  flex: 0 0 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--secondary);
  color: var(--secondary);
  font-weight: 700;
}

.carpool-powered {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.75;
}

.carpool-widget {
  width: 100%;
  max-width: 440px;
  justify-self: center;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
}

.carpool-iframe {
  display: block;
  width: 100%;
  /* Placeholder until the widget reports its own height (avoids layout jump). */
  height: 220px;
  border: 0;
  transition: height 0.2s ease;
}

@media (min-width: 900px) {
  .carpool-section {
    grid-template-columns: 1fr minmax(360px, 440px);
    padding: 2.5rem;
    gap: 3rem;
  }

  .carpool-title {
    font-size: 2.8rem;
  }
}
