.bem-app,
.bem-app * {
  box-sizing: border-box;
}
.gm-style-iw-chr {
  height:10px!important;
}
.gm-style-iw-chr button{
  top:-10px!important;
}
.hidden{
  display:none;
}
.bem-app {
  --bem-bg: #f2f6f7;
  --bem-panel: #ffffff;
  --bem-ink: #19333a;
  --bem-muted: #61727a;
  --bem-line: #d4e0e3;
  --bem-accent: #0f6d6e;
  --bem-accent-dark: #0b5051;
  --bem-badge: #e6f3f1;
  --bem-panel-map-height: clamp(100px, calc(100vh - 300px), 100vh);
  --bem-panel-height: clamp(320px, calc(100vh - 240px), 100vh);
  color: var(--bem-ink);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
/*  background:
    radial-gradient(circle at top left, rgba(15, 109, 110, 0.12), transparent 28%),
    linear-gradient(180deg, #f8fbfb 0%, var(--bem-bg) 100%);*/
  background: radial-gradient(circle at top left, rgba(15, 109, 110, 0.12), transparent 28%), 
              linear-gradient(180deg, #f8fbfbc7, var(--bem-bg) 100%);
  border: 1px solid var(--bem-line);
  border-radius: 24px;
  padding: 20px;
}

.bem-toolbar {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.bem-toolbar__main {
  display: grid;
  grid-template-columns: minmax(200px, .6fr) minmax(180px, 0.4fr) minmax(180px, 0.8fr);
  gap: 12px;
  width: 100%;
  margin: 0 auto;
}

.bem-toolbar__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bem-count {
  font-size: 15px;
  color: #0b5051;
}

.bem-field {
  display: grid;
  gap: 6px;
}

.bem-field__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0b5051;
}

.bem-field input,
.bem-field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--bem-line);
  border-radius: 14px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--bem-ink);
  font-size: 15px;
}

.bem-layout {
  display: grid;
  grid-template-columns: minmax(320px, 500px) minmax(0, 1fr);
  gap: 18px;
  min-height: var(--bem-panel-height);
}

.bem-list-column,
.bem-map-column {
  min-height: 0;
}

.bem-list-column {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
}

.bem-list-header {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--bem-line);
  border-radius: 18px;
  padding: 8px;
}

.bem-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.bem-tab {
  appearance: none;
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  background: transparent;
  color: var(--bem-muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.bem-tab:hover {
  background: rgba(15, 109, 110, 0.08);
  color: var(--bem-accent-dark);
}

.bem-tab.is-active {
  background: var(--bem-accent);
  color: #ffffff;
  box-shadow: 0 16px 26px -20px rgba(11, 80, 81, 0.9);
}

.bem-list {
  display: grid;
  gap: 12px;
  max-height: var(--bem-panel-height);
  overflow: auto;
  padding-right: 6px;
}

.bem-card {
  background: var(--bem-panel);
  border: 1px solid var(--bem-line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 22px 38px -32px rgba(12, 54, 61, 0.5);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.bem-card:hover {
  transform: translateY(-1px);
  border-color: #b8ced2;
  box-shadow: 0 28px 42px -34px rgba(12, 54, 61, 0.55);
}

.bem-card.is-unmapped {
  border-style: dashed;
}

.bem-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.bem-card__title {
  margin: 0;
  font-size: 18px!important;
  line-height: 1.2;
}

.bem-card__parent {
  margin-top: 4px;
  font-size: 13px;
  color: var(--bem-muted);
}

.bem-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--bem-badge);
  color: var(--bem-accent-dark);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.bem-card__body {
  display: grid;
  gap: 5px;
  margin-top: 12px;
}

.bem-card__line {
  font-size: 14px;
  color: var(--bem-ink);
  line-height: 1.2;
}

.bem-card__hint {
  margin-top: 4px;
  font-size: 12px;
  color: var(--bem-muted);
}

.bem-card__actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.bem-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--bem-accent);
  font-weight: 700;
  text-decoration: none;
  background-color: #e6f3f1;
  padding: 2px 12px;
  border-radius: 15px;
}

.bem-card__link:hover {
  text-decoration: underline;
}

.bem-map-frame {
  position: relative;
  overflow: hidden;
  height: var(--bem-panel-map-height);
  min-height: var(--bem-panel-height);
  background: var(--bem-panel);
  border: 1px solid var(--bem-line);
  border-radius: 24px;
}

.bem-map {
  width: 100%;
  height: 100%;
  min-height: var(--bem-panel-map-height);
}

.bem-map-message,
.bem-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px dashed var(--bem-line);
  border-radius: 18px;
  padding: 20px;
  text-align: center;
  color: var(--bem-muted);
}

.bem-map-message {
  position: absolute;
  inset: 24px;
  pointer-events: none;
}

.bem-map-message[hidden] {
  display: none;
}

.bem-info-window {
  min-width: 240px;
  line-height: 1.45;
  padding-right:20px;
}

.bem-title {
  font-size:16px;
  font-weight: 800;
}
.bem-info-window__parent {
  margin-bottom: 4px;
  color: var(--bem-muted);
  font-size: 12px;
}

.bem-info-window__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 10px;
}

.bem-info-window__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--bem-accent);
  font-weight: 700;
  text-decoration: none;
}

.bem-link-icon {
  font-size: 13px;
  line-height: 1;
}

.bem-info-window__link:hover {
  text-decoration: underline;
}

@media (max-width: 1100px) {
  .bem-toolbar__main {
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .bem-field--search {
    grid-column: 1 / -1;
  }

  .bem-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .bem-map-column {
    order: -1;
  }

  .bem-list {
    max-height: none;
  }

  .bem-map-frame,
  .bem-map {
    height: clamp(320px, 50dvh, 520px);
    min-height: clamp(320px, 50dvh, 520px);
  }
}

@media (max-width: 680px) {
  .bem-app {
    padding: 16px;
    border-radius: 18px;
  }

  .bem-toolbar__main {
    grid-template-columns: 1fr;
  }

  .bem-card {
    padding: 14px;
  }

  .bem-tabs {
    grid-template-columns: 1fr;
  }

  .bem-map-frame,
  .bem-map {
    height: clamp(280px, 45dvh, 420px);
    min-height: clamp(280px, 45dvh, 420px);
  }
}
