:root {
  --eco-lnm-primary: #26c981;
  --eco-lnm-primary-dark: #18a86a;
  --eco-lnm-blue: #2f9fd4;
  --eco-lnm-blue-soft: #82d5f0;
  --eco-lnm-blue-mid: #5fc2e8;
  --eco-lnm-border: rgba(19, 55, 83, 0.12);
  --eco-lnm-text: #09233a;
  --eco-lnm-muted: #64788d;
  --eco-lnm-card: #ffffff;
}

.eco-lnm {
  color: var(--eco-lnm-text);
  padding: 32px 0 54px;
}

.eco-lnm__intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.eco-lnm__title {
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.05;
  font-weight: 800;
}

.eco-lnm__lead {
  margin: 0;
  max-width: 760px;
  font-size: 17px;
  color: var(--eco-lnm-muted);
}

.eco-lnm__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 18px;
}

.eco-lnm__tab {
  border: 1px solid var(--eco-lnm-border);
  background: rgba(255, 255, 255, 0.86);
  color: var(--eco-lnm-text);
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 700;
  transition: 0.18s ease;
  cursor: pointer;
}

.eco-lnm__tab:hover,
.eco-lnm__tab.is-active {
  background: var(--eco-lnm-primary);
  border-color: var(--eco-lnm-primary);
  color: #fff;
  box-shadow: 0 12px 26px rgba(38, 201, 129, 0.22);
}

.eco-lnm__toolbar {
  margin-bottom: 22px;
  max-width: 640px;
}

.eco-lnm__search-label {
  display: block;
  margin-bottom: 9px;
  font-weight: 800;
}

.eco-lnm__search {
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--eco-lnm-border);
  border-radius: 17px;
  padding: 0 18px;
  background: #fff;
  color: var(--eco-lnm-text);
  font-size: 16px;
  outline: none;
  box-shadow: 0 8px 18px rgba(19, 55, 83, 0.04);
}

.eco-lnm__search:focus {
  border-color: var(--eco-lnm-primary);
  box-shadow: 0 0 0 4px rgba(38, 201, 129, 0.14);
}

.eco-lnm__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 470px;
  gap: 28px;
  align-items: stretch;
}

.eco-lnm__map-card,
.eco-lnm__list-card {
  background: var(--eco-lnm-card);
  border: 1px solid var(--eco-lnm-border);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(38, 72, 96, 0.12);
}

.eco-lnm__map-head,
.eco-lnm__list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--eco-lnm-border);
}

.eco-lnm__map-title,
.eco-lnm__list-title {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 850;
}

.eco-lnm__map-count,
.eco-lnm__list-count {
  color: var(--eco-lnm-muted);
  white-space: nowrap;
}

.eco-lnm__map {
  min-height: 585px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background:
    radial-gradient(circle at 50% 45%, rgba(38, 201, 129, 0.10), transparent 44%),
    linear-gradient(180deg, #f7fcff 0%, #edf8fe 100%);
}

.eco-lnm__svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 640px;
}

.eco-lnm__shape {
  fill: #75cbed;
  stroke: #ffffff;
  stroke-width: 1.55;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  transition: fill 0.16s ease, opacity 0.16s ease, filter 0.16s ease, stroke 0.16s ease;
}

.eco-lnm__shape:nth-child(3n) { fill: #64c4e9; }
.eco-lnm__shape:nth-child(3n + 1) { fill: #8bd8f2; }
.eco-lnm__shape:nth-child(3n + 2) { fill: #54b9df; }

.eco-lnm__svg.is-grouped-map .eco-lnm__shape {
  fill: #7fd2ef;
  stroke-width: 1.05;
}

.eco-lnm__shape:hover,
.eco-lnm__shape:focus,
.eco-lnm__shape.is-group-hover,
.eco-lnm__list-item.is-group-hover {
  outline: none;
}

.eco-lnm__shape:hover,
.eco-lnm__shape:focus,
.eco-lnm__shape.is-group-hover {
  fill: var(--eco-lnm-primary);
  stroke: #ffffff;
  filter: drop-shadow(0 8px 10px rgba(38, 201, 129, 0.35));
}

.eco-lnm__shape.is-disabled {
  opacity: 0.72;
  cursor: default;
}

.eco-lnm__shape.is-disabled:hover,
.eco-lnm__shape.is-disabled:focus {
  fill: #75cbed;
  filter: none;
}

.eco-lnm__point {
  fill: var(--eco-lnm-primary);
  stroke: #ffffff;
  stroke-width: 2.2;
  cursor: pointer;
  filter: drop-shadow(0 7px 12px rgba(38, 201, 129, 0.28));
}

.eco-lnm__point:hover,
.eco-lnm__point:focus,
.eco-lnm__point.is-group-hover {
  fill: var(--eco-lnm-primary-dark);
  outline: none;
}

.eco-lnm__point.is-disabled {
  fill: #9bb1c3;
  opacity: 0.65;
  cursor: default;
}

.eco-lnm__hint {
  padding: 14px 22px 18px;
  border-top: 1px solid var(--eco-lnm-border);
  color: var(--eco-lnm-muted);
  font-size: 14px;
}

.eco-lnm__list-card {
  align-self: stretch;
}

.eco-lnm__list {
  max-height: 628px;
  overflow: auto;
  padding: 8px 0 14px;
}

.eco-lnm__group-title {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 12px 22px 8px;
  background: rgba(255, 255, 255, 0.96);
  font-size: 12px;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--eco-lnm-muted);
  font-weight: 850;
}

.eco-lnm__list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 22px;
  color: var(--eco-lnm-text);
  text-decoration: none;
  transition: 0.16s ease;
}

.eco-lnm__list-item:hover,
.eco-lnm__list-item:focus,
.eco-lnm__list-item.is-group-hover {
  background: rgba(38, 201, 129, 0.11);
  color: var(--eco-lnm-primary-dark);
  outline: none;
}

.eco-lnm__list-item em {
  flex: 0 0 auto;
  max-width: 250px;
  color: var(--eco-lnm-muted);
  font-size: 13px;
  font-style: normal;
  text-align: right;
}

.eco-lnm__list-item.is-disabled {
  opacity: .64;
  cursor: default;
}

.eco-lnm__list-item.is-disabled:hover,
.eco-lnm__list-item.is-disabled:focus {
  background: transparent;
  color: var(--eco-lnm-text);
}

.eco-lnm__empty,
.eco-lnm__empty-map,
.eco-lnm__loading {
  margin: auto;
  max-width: 560px;
  padding: 18px 20px;
  border-radius: 18px;
  background: #fff7e8;
  border: 1px solid #f4d6a3;
  color: #7c4b00;
  line-height: 1.45;
}

@media (max-width: 1299px) {
  .eco-lnm__layout {
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 22px;
  }
}

@media (max-width: 1199px) {
  .eco-lnm__layout {
    grid-template-columns: 1fr;
  }

  .eco-lnm__map {
    min-height: 470px;
  }

  .eco-lnm__list {
    max-height: none;
  }
}

@media (max-width: 767px) {
  .eco-lnm {
    padding: 24px 0 42px;
  }

  .eco-lnm__tabs {
    gap: 8px;
  }

  .eco-lnm__tab {
    flex: 1 1 calc(50% - 8px);
    padding: 10px 12px;
    font-size: 14px;
  }

  .eco-lnm__map-head,
  .eco-lnm__list-head {
    padding: 16px 18px;
  }

  .eco-lnm__map {
    min-height: 340px;
    padding: 10px;
  }

  .eco-lnm__list-item {
    padding: 12px 18px;
  }

  .eco-lnm__list-item em {
    max-width: 160px;
  }
}


/* Hotfix v6: не гасим всю карту при наведении, только ярко подсвечиваем выбранное */
.eco-lnm.is-location-hover .eco-lnm__shape:not(.is-group-hover):not(.is-disabled) {
  fill: #75cbed !important;
  stroke: #ffffff !important;
  stroke-width: 1.55 !important;
  opacity: 0.95 !important;
  filter: none !important;
}

.eco-lnm.is-location-hover .eco-lnm__svg.is-grouped-map .eco-lnm__shape:not(.is-group-hover):not(.is-disabled) {
  fill: #7fd2ef !important;
  stroke: #ffffff !important;
  stroke-width: 1.05 !important;
  opacity: 0.95 !important;
  filter: none !important;
}

.eco-lnm.is-location-hover .eco-lnm__point:not(.is-group-hover):not(.is-disabled) {
  opacity: 1 !important;
  filter: drop-shadow(0 7px 12px rgba(38, 201, 129, 0.28)) !important;
}

.eco-lnm .eco-lnm__shape.is-group-hover,
.eco-lnm .eco-lnm__shape:hover,
.eco-lnm .eco-lnm__shape:focus {
  fill: #24c86f !important;
  stroke: #075f36 !important;
  stroke-width: 3.2 !important;
  opacity: 1 !important;
  filter: drop-shadow(0 0 8px rgba(36, 200, 111, 0.55)) drop-shadow(0 6px 12px rgba(7, 95, 54, 0.22)) !important;
}

.eco-lnm .eco-lnm__svg.is-grouped-map .eco-lnm__shape.is-group-hover,
.eco-lnm .eco-lnm__svg.is-grouped-map .eco-lnm__shape:hover,
.eco-lnm .eco-lnm__svg.is-grouped-map .eco-lnm__shape:focus {
  stroke-width: 3.4 !important;
}

.eco-lnm .eco-lnm__point.is-group-hover,
.eco-lnm .eco-lnm__point:hover,
.eco-lnm .eco-lnm__point:focus {
  fill: #24c86f !important;
  stroke: #075f36 !important;
  stroke-width: 3 !important;
  opacity: 1 !important;
  filter: drop-shadow(0 0 8px rgba(36, 200, 111, 0.55)) drop-shadow(0 6px 12px rgba(7, 95, 54, 0.22)) !important;
}

.eco-lnm .eco-lnm__list-item.is-group-hover,
.eco-lnm .eco-lnm__list-item:hover,
.eco-lnm .eco-lnm__list-item:focus {
  background: rgba(36, 200, 111, 0.16) !important;
  color: #075f36 !important;
}

.eco-lnm .eco-lnm__list-item.is-group-hover em,
.eco-lnm .eco-lnm__list-item:hover em,
.eco-lnm .eco-lnm__list-item:focus em {
  color: #075f36 !important;
}


/* Hotfix v7: точки станций метро */
.eco-lnm__point {
  fill: #24c86f;
  stroke: #ffffff;
  stroke-width: 2.4;
  cursor: pointer;
  filter: drop-shadow(0 5px 10px rgba(7, 95, 54, 0.25));
}

.eco-lnm__point.is-disabled {
  fill: #3ab7df;
  stroke: #ffffff;
  opacity: 0.9;
  cursor: default;
}

.eco-lnm__point:hover,
.eco-lnm__point:focus,
.eco-lnm__point.is-group-hover {
  fill: #24c86f !important;
  stroke: #075f36 !important;
  stroke-width: 3.2 !important;
  opacity: 1 !important;
  filter: drop-shadow(0 0 8px rgba(36, 200, 111, 0.55)) drop-shadow(0 6px 12px rgba(7, 95, 54, 0.22)) !important;
}

/* Hotfix v8: карта на локационных страницах с активным сегментом */
.eco-lnm--compact {
  padding-top: 0;
  padding-bottom: 0;
}

.eco-lnm--compact .eco-lnm__toolbar {
  margin-top: 18px;
}

.eco-lnm--compact .eco-lnm__map {
  min-height: 420px;
}

.eco-lnm .eco-lnm__shape.is-current-location,
.eco-lnm .eco-lnm__point.is-current-location {
  fill: #24c86f !important;
  stroke: #075f36 !important;
  stroke-width: 3.2 !important;
  opacity: 1 !important;
  filter: drop-shadow(0 0 8px rgba(36, 200, 111, 0.55)) drop-shadow(0 6px 12px rgba(7, 95, 54, 0.22)) !important;
}

.eco-lnm .eco-lnm__svg.is-grouped-map .eco-lnm__shape.is-current-location {
  stroke-width: 3.4 !important;
}

.eco-lnm .eco-lnm__list-item.is-current-location {
  background: rgba(36, 200, 111, 0.16) !important;
  color: #075f36 !important;
}

.eco-lnm .eco-lnm__list-item.is-current-location em {
  color: #075f36 !important;
}
