/* Installations map + chronology */

.eet-install-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.eet-install-stats li {
  padding: 6px 12px;
  border-radius: var(--eet-radius-pill);
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 700;
}

.eet-install-map-section {
  padding: 24px 0 8px;
  background: var(--eet-bg-soft);
  border-bottom: 1px solid var(--eet-line);
}

.eet-install-section-head {
  margin-bottom: 16px;
}

.eet-install-map {
  width: 100%;
  height: min(62vh, 520px);
  min-height: 320px;
  border-radius: var(--eet-radius-lg);
  border: 1px solid var(--eet-line);
  overflow: hidden;
  box-shadow: var(--eet-shadow-md);
  background: #e8efe9;
}

.eet-install-map-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 320px;
  padding: 24px;
  text-align: center;
  background: var(--eet-bg-soft);
}

.eet-install-map-fallback p {
  margin: 0;
  max-width: 28rem;
  font-size: 15px;
  color: var(--eet-ink-500);
}

.eet-gmaps-info {
  font-family: var(--eet-font);
  font-size: 14px;
  line-height: 1.45;
  color: var(--eet-ink-900);
  padding: 4px 2px;
}

.eet-gmaps-info strong {
  font-size: 15px;
}

.eet-gmaps-info__types {
  color: var(--eet-ink-500);
  font-size: 12px;
}

.eet-install-timeline-section {
  padding: 28px 0 40px;
}

.eet-install-layout {
  display: grid;
  gap: 24px;
}

.eet-install-sidebar__title {
  margin: 0 0 12px;
  font-size: 18px;
}

.eet-install-year-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.eet-chip {
  border: 1px solid var(--eet-line);
  background: #fff;
  color: var(--eet-ink-700);
  border-radius: var(--eet-radius-pill);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s var(--eet-ease), border-color 0.2s var(--eet-ease), color 0.2s var(--eet-ease);
}

.eet-chip:hover,
.eet-chip.is-active {
  border-color: var(--eet-green);
  background: var(--eet-green-50);
  color: var(--eet-green-dark);
}

.eet-chip__count {
  font-weight: 600;
  opacity: 0.75;
}

.eet-install-loading,
.eet-install-error {
  margin: 0;
  padding: 24px 0;
  font-size: 15px;
  color: var(--eet-ink-500);
}

.eet-install-load-more {
  margin-top: 16px;
}

.eet-install-type-filter__label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--eet-ink-500);
}

.eet-install-type-filter__select {
  width: 100%;
  min-height: var(--eet-tap);
  border: 1px solid var(--eet-line);
  border-radius: var(--eet-radius-sm);
  padding: 10px 12px;
  font-family: var(--eet-font);
  font-size: 15px;
  background: #fff;
}

.eet-install-year-group {
  margin-bottom: 32px;
  content-visibility: auto;
  contain-intrinsic-size: auto 400px;
}

.eet-install-year-group__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
}

.eet-install-year-group__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 8px 14px;
  border-radius: var(--eet-radius-pill);
  background: var(--eet-header-bg);
  color: #e8efe9;
  font-size: 20px;
  font-weight: 800;
}

.eet-install-year-group__badge--city {
  min-width: 0;
  max-width: min(100%, 280px);
  font-size: 16px;
  line-height: 1.2;
  text-align: center;
}

.eet-install-year-group__scope {
  font-size: 13px;
  font-weight: 700;
  color: var(--eet-ink-500);
}

.eet-install-city-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: var(--eet-radius);
  background: var(--eet-green-50);
  border: 1px solid rgba(75, 162, 72, 0.25);
}

.eet-install-city-filter__label {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--eet-green-dark);
}

.eet-install-city-filter__clear {
  margin-left: auto;
}

.eet-gmaps-info__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 8px 12px;
  border: 0;
  border-radius: var(--eet-radius-pill);
  background: var(--eet-green);
  color: #fff;
  font-family: var(--eet-font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.eet-gmaps-info__btn:hover {
  background: var(--eet-green-dark);
}

.eet-install-year-group__count {
  font-size: 14px;
  font-weight: 600;
  color: var(--eet-ink-500);
}

.eet-install-grid {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: stretch;
}

.eet-install-card-wrap {
  display: flex;
  min-width: 0;
  min-height: 0;
}

.eet-install-card {
  flex: 1;
  width: 100%;
  min-height: 220px;
  padding: 14px;
  border-radius: var(--eet-radius);
  border: 1px solid var(--eet-line);
  background: #fff;
  box-shadow: var(--eet-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
}

.eet-install-card__brand {
  height: 52px;
  min-height: 52px;
  max-height: 52px;
}

.eet-install-card__brand-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border-radius: var(--eet-radius-sm);
  background: var(--eet-bg-soft);
  border: 1px solid var(--eet-line);
  box-sizing: border-box;
  overflow: hidden;
}

.eet-install-card__brand-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-width: 136px;
  max-height: 32px;
  margin: 0 auto;
  text-decoration: none;
  transition: opacity 0.2s var(--eet-ease);
}

a.eet-install-card__brand-link:hover {
  opacity: 0.82;
}

.eet-install-card__brand-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 136px;
  max-height: 32px;
  object-fit: contain;
  object-position: center center;
}

.eet-install-card__brand-fallback {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  color: var(--eet-green-dark);
  line-height: 1.25;
  word-break: break-word;
}

.eet-install-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.eet-install-card__city {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--eet-green-dark);
}

.eet-install-card__year {
  font-size: 12px;
  font-weight: 700;
  color: var(--eet-ink-500);
}

.eet-install-card__model {
  margin: 0;
  flex: 1 1 auto;
  font-size: 16px;
  line-height: 1.35;
  color: var(--eet-ink-900);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  min-height: 4.05em;
}

.eet-install-card__cta {
  align-self: flex-start;
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 4px;
}

.eet-install-card.is-highlight {
  outline: 3px solid var(--eet-yellow);
  outline-offset: 2px;
  box-shadow: var(--eet-shadow-lg);
}

.eet-install-card-wrap.is-hidden {
  display: none;
}

.eet-install-year-group.is-hidden {
  display: none;
}

.eet-install-cta {
  padding: 0 0 48px;
}

.eet-install-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--eet-radius-lg);
  background: var(--eet-green-50);
  border: 1px solid rgba(75, 162, 72, 0.25);
}

.eet-install-cta__inner p {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

@media (min-width: 768px) {
  .eet-install-layout {
    grid-template-columns: 220px 1fr;
    align-items: start;
  }

  .eet-install-sidebar {
    position: sticky;
    top: 96px;
  }

  .eet-install-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .eet-install-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
