#cm {
  --cm-accent:  #651d32;
  --cm-default: #7da1c4;
  --cm-text:    #382e2c;
  --cm-thin: #605856;

  --cm-accent-dk:  color-mix(in srgb, var(--cm-accent) 82%, #000);
  --cm-default-dk: color-mix(in srgb, var(--cm-default) 86%, #000);
  --cm-bg:       #f6f9fb;
  --cm-head-bg:  #eef3f7;
  --cm-card:     #ffffff;
  --cm-line:     #e7edf2;
  --cm-shadow:   0 10px 30px rgba(40, 60, 80, .08);
  --cm-font:     "Omnes", "omnes-pro", "Segoe UI", system-ui, sans-serif;
  --cm-radius:   16px;

  font-family: var(--cm-font);
  color: var(--cm-text);
  max-width: 1180px;
  margin: 0 auto;
}
#cm *, #cm .cm-popup * { box-sizing: border-box; }
#cm [hidden], .cm-popup [hidden] { display: none !important; }

#cm .cm__head {border-radius: var(--cm-radius); padding: 34px 30px 26px 0px; margin-bottom: 22px; }
#cm .cm__title { margin: 0; font-size: 46px; font-weight: 400; letter-spacing: -.5px; color: #2f3438; line-height: 1.1; }
#cm .cm__title span { color: var(--cm-accent); font-weight: 600; }

#cm .cm__toolbar { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; flex-wrap: wrap; }
#cm .cm__searchbar { flex: 1 1 340px; min-width: 280px; margin: 0; }

#cm .cm__search {
  position: relative; display: flex; align-items: center; height: 50px;
  background: #fff; border: 1px solid var(--cm-line); border-radius: 999px;
  padding: 0 6px 0 20px; box-shadow: 0 2px 8px rgba(40, 60, 80, .04);
}
#cm .cm__search-input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 15px; background: transparent; color: #3a3a3a; padding: 9px 6px; height: auto; box-shadow: none; margin: 0; }
#cm .cm__search-input::placeholder { color: #9aa6b0; }
#cm .cm__search-clear { display: inline-flex; align-items: center; border: 0; background: transparent; cursor: pointer; padding: 0 8px; width: auto; height: auto; line-height: 0; }
#cm .cm__search-clear-ic { display: block; transition: transform .15s; }
#cm .cm__search-clear:hover .cm__search-clear-ic { transform: scale(1.15); }
#cm .cm__search-go { display: inline-flex; align-items: center; padding: 0; min-width: 0; border: 0; background: transparent; cursor: pointer; flex: none; line-height: 0; transition: opacity .15s; }
#cm .cm__search-go:hover { opacity: .75; }
#cm .cm__search-go img, #cm .cm__search-go svg { display: block; }

#cm .cm__autocomplete { position: absolute; top: calc(100% + 8px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--cm-line); border-radius: 14px; box-shadow: var(--cm-shadow); z-index: 30; max-height: 320px; overflow: auto; }
#cm .cm__ac-item { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 9px; cursor: pointer; margin: 0; text-align: left; }
#cm .cm__ac-item:hover, #cm .cm__ac-item[aria-selected="true"] { background: #f1f5f9; }
#cm .cm__ac-name { color: #2f3438; font-weight: 600; font-size: 14px; }
#cm .cm__ac-name b { color: var(--cm-accent); }
#cm .cm__ac-sub { color: #93a0aa; font-size: 12px; }
#cm .cm__ac-empty { padding: 12px; color: #93a0aa; font-size: 14px; }
#cm .cm__ac-group { padding: 9px 12px 4px; color: #93a0aa; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
#cm .cm__list-empty { padding: 12px 6px; color: #93a0aa; font-size: 14px; }

#cm .cm__geo { display: inline-flex; align-items: center; gap: 9px; height: 50px; border: 0; border-radius: 999px; background: var(--cm-default); color: #fff; font: inherit; font-size: 14px; padding: 0 22px; cursor: pointer; transition: background .15s; white-space: nowrap; }
#cm .cm__geo:hover { background: var(--cm-default-dk); }
#cm .cm__geo.is-active { background: var(--cm-accent); }

#cm .cm__radius { position: relative; min-width: 230px; }
#cm .cm__radius-btn {
  display: flex; align-items: center; gap: 8px; width: 100%; height: 50px; font-weight: 500;
  background: #fff; border: 1px solid var(--cm-line); border-radius: 999px;
  padding: 0 20px; font: inherit; font-size: 16px; color: #605856; cursor: pointer; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(40, 60, 80, .04); transition: border-color .15s;
}
#cm .cm__radius-btn:hover { border-color: var(--cm-accent); }
#cm .cm__radius-label::after { content: ":"; }
#cm .cm__radius-value { color: #382E2C; font-weight: 500; }
#cm .cm__radius-chev { color: #605856; margin-left: auto; transition: transform .2s; }
#cm .cm__radius.is-open .cm__radius-chev { transform: rotate(180deg); }
/* open: pill becomes top of one continuous card */
#cm .cm__radius.is-open .cm__radius-btn {
  border-radius: 28px 28px 0 0; border-bottom: 0; box-shadow: none; position: relative; z-index: 31;
}
#cm .cm__radius-list {
  position: absolute; top: 100%; left: 0; right: 0;
  margin: 0; padding: 4px 20px 18px; list-style: none;
  background: #fff; border: 1px solid var(--cm-line); border-top: 0;
  border-radius: 0 0 28px 28px; box-shadow: var(--cm-shadow);
  z-index: 30; transition: border-color .15s;
}
#cm .cm__radius.is-open:hover .cm__radius-btn,
#cm .cm__radius.is-open:hover .cm__radius-list { border-color: var(--cm-accent); }
#cm .cm__radius-opt { padding: 10px 0; border-radius: 9px; font-size: 16px; color: #605856; cursor: pointer; transition: background .12s, color .12s; margin: 0; }
#cm .cm__radius-opt:hover { color: #2f3438; }
#cm .cm__radius-opt.is-selected { color: #382E2C; font-weight: 600; }

#cm .cm__body { display: grid; grid-template-columns: minmax(320px, 420px) 1fr; gap: 22px; align-items: stretch; height: 520px; }
#cm .cm__panel { background: var(--cm-card); border: 1px solid var(--cm-line); border-radius: 60px 10px 60px 10px; box-shadow: var(--cm-shadow); overflow: hidden; display: flex; flex-direction: column; }

#cm .cm__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 28px; }
#cm .cm__empty-badge { margin-bottom: 26px; width: 84px; height: 84px; display: block; }
#cm .cm__empty-title { margin: 0 0 14px; font-size: 28px; font-weight: 600; text-wrap: balance; color: rgba(56, 46, 44, 1); line-height: 1.3; }
#cm .cm__empty-title span { color:rgba(101, 29, 50, 1); }
#cm .cm__empty-text { margin: 0; font-size: 14px; line-height: 1.6; color: rgba(96, 88, 86, 1); }

#cm .cm__results { display: flex; flex-direction: column; min-height: 0; flex: 1; }
#cm .cm__results-title { margin: 0; padding: 22px 24px 14px; font-size: 19px; font-weight: 600; color: #2f3438; }
#cm .cm__list { list-style: none; margin: 0; padding: 6px 18px 18px; overflow: auto; }
#cm .cm__item {
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
  padding: 16px;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 30px 2px 30px 2px;
  box-shadow: 0 6px 18px rgba(40, 60, 80, .08);
  cursor: pointer;
  list-style: none;
  transition: box-shadow .15s, border-color .15s, transform .15s;
  opacity: 0; transform: translateY(8px); animation: cm-row-in .35s forwards;
}
#cm .cm__item:hover { box-shadow: 0 10px 26px rgba(40, 60, 80, .14); transform: translateY(-1px); }
#cm .cm__item.is-active { border-color: var(--cm-accent); }
#cm .cm__item + .cm__item { margin-top: 14px; }
#cm .cm__item-info { min-width: 0; }
#cm .cm__item-name { font-weight: 600; font-size: 18px; line-height: 1; color: var(--cm-text); margin: 0 0 8px; }
#cm .cm__item-addr { display: flex; align-items: center; gap: 6px; font-weight: 400; font-size: 14px; line-height: 1.35; color: #93a0aa; margin: 0; min-width: 0; }
#cm .cm__item-addr svg, #cm .cm__item-addr img { flex: none; color: var(--cm-accent); opacity: .8; }
#cm .cm__item-addr-ic { width: 18px; height: 18px; }
#cm .cm__item-addr-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(96, 88, 86, 1); }
#cm .cm__item-view { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; font-family: inherit; font-weight: 500; font-size: 16px; line-height: 1; text-transform: uppercase; color: var(--cm-default); cursor: pointer; white-space: nowrap; }
#cm .cm__item-view-ic { width: 20px; height: 20px; display: block; transition: transform .15s; }
#cm .cm__item:hover .cm__item-view-ic { transform: translateX(3px); }
@keyframes cm-row-in { to { opacity: 1; transform: none; } }

#cm .cm__mapwrap { position: relative; border-radius: var(--cm-radius); overflow: hidden; box-shadow: var(--cm-shadow); min-height: 480px; }
#cm .cm__map { position: absolute; inset: 0; }
#cm .cm__ctrl--expand {
  position: absolute; top: 16px; right: 10px; z-index: 5;
  display: inline-flex; padding: 0; border: 0; background: transparent;
  box-shadow: none; cursor: pointer; line-height: 0; transition: transform .15s;
}
#cm .cm__ctrl--expand:hover { transform: scale(1.02); }
#cm .cm__ctrl--expand img, #cm .cm__ctrl--expand svg { display: block; }

#cm .cm__zoom {
  position: absolute; top: 76px; right: 16px; z-index: 5;
  display: flex; flex-direction: column; width: 40px;
  background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 6px 18px rgba(20, 30, 45, .16);
}
#cm .cm__zoom-btn {
  display: grid; place-items: center; width: 40px; height: 38px;
  border: 0; background: transparent; cursor: pointer; padding: 0; transition: background .15s;
}
#cm .cm__zoom-btn:hover { background: #f5f7f9; }
#cm .cm__zoom-out { border-top: 1px solid var(--cm-line); }
#cm .cm__zoom-btn img, #cm .cm__zoom-btn svg { width: 18px; height: 18px; display: block; }
#cm .cm__loader { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(246, 249, 251, .55); z-index: 4; }
#cm .cm__loader span { width: 34px; height: 34px; border: 3px solid var(--cm-line); border-top-color: var(--cm-accent); border-radius: 50%; animation: cm-spin .8s linear infinite; }
@keyframes cm-spin { to { transform: rotate(360deg); } }

#cm .cm__body.is-fullscreen { grid-template-columns: 1fr; height: 620px; }
#cm .cm__body.is-fullscreen .cm__panel { display: none; }

#cm .cm-popup {
  position: relative; width: 290px; font-family: var(--cm-font);
  border-radius: 65px 2px 65px 2px;
  overflow: hidden !important; background: #fff;
  box-shadow: 0 18px 44px rgba(20, 30, 45, .26);
  animation: cm-pop-in .26s cubic-bezier(.2, .9, .25, 1.2); transform-origin: bottom center;
}
@keyframes cm-pop-in { from { opacity: 0; transform: translateY(8px) scale(.92); } to { opacity: 1; transform: none; } }
#cm .cm-popup__close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 8px rgba(20, 30, 45, .22);
  display: grid; place-items: center; cursor: pointer;
}
#cm .cm-popup__close img, #cm .cm-popup__close svg { width: 28px; height: 28px; display: block; }
#cm .cm-popup__img { width: 100%; height: 150px; object-fit: cover; display: block; background: #e9eef3; }
#cm .cm-popup__body { padding: 16px 18px 18px; }
#cm .cm-popup__name { margin: 0 0 12px; font-weight: 600; font-size: 16px; line-height: 1; color: var(--cm-text); }
#cm .cm-popup__addr { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 12px; font-weight: 400; font-size: 14px; line-height: 1.4; color: #605856; }
#cm .cm-popup__addr span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-width: 0; }
#cm .cm-popup__pin { flex: none; margin-top: 1px; color: var(--cm-accent); }
#cm .cm-popup__pin, #cm .cm-popup__phone-ic { width: 18px; height: 18px; flex: none; }
#cm .cm-popup__phone { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--cm-accent); font-weight: 400; text-decoration: none; margin-bottom: 6px; margin-top: 0px; }
#cm .cm-popup__phone a {color: var(--cm-thin); font-weight: 400;}
#cm .cm-popup__phone a:hover {color: var(--cm-accent);}
#cm .cm-popup__socials { display: flex; gap: 10px; }
#cm .cm-popup__socials a { display: grid; place-items: center; text-decoration: none; transition: transform .15s; }
#cm .cm-popup__socials a:hover { transform: translateY(-2px); }
#cm .cm-popup__socials img, #cm .cm-popup__socials svg { width: 24px; height: 24px; }

#cm .gm-style .gm-style-iw,
#cm .gm-style .gm-style-iw-c {
  padding: 0 !important; background: transparent !important; box-shadow: none !important;
  outline: none !important; border: 0 !important;
  border-radius: 0 !important; max-width: none !important; max-height: none !important; overflow: visible !important;
}
#cm .cm-popup, #cm .cm-popup__close { outline: none !important; }
#cm .gm-style .gm-style-iw-d { overflow: visible !important; padding: 0 !important; max-width: none !important; max-height: none !important; }
#cm .gm-style .gm-style-iw-c button.gm-ui-hover-effect { display: none !important; }
#cm .gm-style .gm-style-iw-tc { display: none !important; }

@media (max-width: 1024px) {
  #cm .cm__searchbar { flex: 1 1 100%; min-width: 0; }
  #cm .cm__toolbar { justify-content: center; }
  #cm .cm__body { grid-template-columns: 1fr; height: auto; }
  #cm .cm__panel { order: 2; max-height: 420px; }
  #cm .cm__mapwrap { order: 1; min-height: 360px; }
  #cm .cm__empty-title br { display: none; }
}

@media (max-width: 860px) {
  #cm .cm__title { font-size: 34px; }
  #cm .cm__toolbar { gap: 12px; }
  #cm .cm-popup__body { text-align: left; }
  #cm .cm-popup__name, #cm .cm-popup__addr, #cm .cm-popup__phone, #cm .cm-popup__socials { justify-content: flex-start; text-align: left; }
}

@media(max-width: 460px) {
  #cm .cm__empty-text{text-wrap: balance;}
}