.m1-catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .85rem 1.4rem;
  margin-top: clamp(1.2rem, 3vw, 2rem);
  padding: .7rem;
  border: 1px solid rgba(7, 36, 69, .13);
  border-radius: 1.1rem;
  background: rgba(255, 253, 248, .78);
}

.m1-catalog-filters,
#catalog .catalog-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .38rem;
  margin: 0;
  overflow: visible;
}

#catalog [hidden] { display: none !important; }

.m1-catalog-chip,
#catalog .catalog-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  height: auto;
  padding: .45rem .8rem;
  border: 1px solid transparent;
  border-radius: .65rem;
  color: var(--m1-blue-deep);
  background: transparent;
  font: 700 .8rem/1.2 var(--m1-sans);
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.m1-catalog-chip { border-color: rgba(7, 36, 69, .13); }
.m1-catalog-chip:hover { background: #eee9df; }
.m1-catalog-chip[aria-pressed="true"] {
  border-color: #d7bd91;
  background: #f0e4ce;
}

#catalog .catalog-tabs {
  flex-wrap: nowrap;
  padding: .22rem;
  border: 1px solid rgba(7, 36, 69, .13);
  border-radius: .85rem;
  background: #f1eee6;
}

#catalog .catalog-tab.active {
  border-color: var(--m1-blue-deep);
  color: var(--m1-gold-light);
  background: var(--m1-blue-deep);
}

#catalog .catalog-tab:disabled { opacity: .5; cursor: default; }

#catalog .catalog-map:not([hidden]) {
  display: block;
  width: min(100%, 1320px);
  padding: .75rem clamp(1.15rem, 4vw, 3.75rem) clamp(2.2rem, 5vw, 4rem);
  background: transparent;
}

.m1-catalog-map-frame {
  position: relative;
  isolation: isolate;
  height: clamp(27rem, 53vw, 37rem);
  overflow: hidden;
  border: 1px solid rgba(7, 36, 69, .15);
  border-radius: 1.2rem;
  box-shadow: 0 16px 35px rgba(7, 30, 46, .13);
  background: #e6dfd1;
}

.m1-interactive-map,
#contacts_map.m1-interactive-map {
  position: relative;
  inset: auto;
  isolation: isolate;
  z-index: 0;
  width: 100%;
  height: 100%;
  background: #e6dfd1;
  font-family: var(--m1-sans);
}

.m1-catalog-map__message {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: .45rem;
  padding: 1rem;
  background: #f3ede1;
  text-align: center;
}

.m1-catalog-map__message p {
  flex: 0 0 100%;
  margin: 0 0 .35rem;
  color: var(--m1-blue-deep);
  font-weight: 700;
}

#catalog .m1-catalog-map__message .catalog-tab { border-color: rgba(7, 36, 69, .22); }

.m1-catalog-map__note {
  margin: .75rem 0 0;
  color: var(--m1-ink-soft);
  font-size: .82rem;
}

.m1-interactive-map .leaflet-tile-pane {
  filter: saturate(.28) sepia(.16) contrast(.93);
}

.m1-interactive-map .leaflet-control-zoom {
  overflow: hidden;
  border: 1px solid rgba(7, 36, 69, .21);
  border-radius: .75rem;
  box-shadow: 0 6px 18px rgba(7, 30, 46, .13);
}

.m1-interactive-map .leaflet-bar.leaflet-control-zoom a {
  width: 44px;
  height: 44px;
  line-height: 44px;
  color: var(--m1-blue-deep);
  background: #fffdf8;
}

.m1-interactive-map .leaflet-control-zoom a:hover { background: #f0e4ce; }

.m1-interactive-map .leaflet-control-attribution {
  padding: .12rem .35rem;
  border-radius: .35rem 0 0;
  color: var(--m1-ink);
  background: rgba(255, 253, 248, .94);
}

.m1-interactive-map .leaflet-control-attribution a { color: var(--m1-blue); }

.m1-leaflet-pin span {
  position: absolute;
  top: 2px;
  left: 6px;
  width: 32px;
  height: 32px;
  border: 4px solid #fffdf8;
  border-radius: 50% 50% 50% 0;
  background: var(--m1-blue-deep);
  box-shadow: 0 4px 10px rgba(7, 30, 46, .28);
  transform: rotate(-45deg);
}

.m1-leaflet-pin span::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--m1-gold-light);
}

.m1-leaflet-pin:hover span,
.m1-leaflet-pin:focus-visible span { background: #1a527e; }

.m1-map-popup .leaflet-popup-content-wrapper,
.m1-map-popup .leaflet-popup-tip {
  color: #fffdf8;
  background: var(--m1-blue-deep);
}

.m1-map-popup .leaflet-popup-content-wrapper { border-radius: .8rem; }
.m1-map-popup .leaflet-popup-content { margin: .75rem 1.8rem .8rem .9rem; }
.m1-map-popup .leaflet-popup-content strong,
.m1-map-popup .leaflet-popup-content span,
.m1-map-popup .leaflet-popup-content a { display: block; }
.m1-map-popup .leaflet-popup-content strong { font-size: .92rem; }
.m1-map-popup .leaflet-popup-content span { margin-top: .25rem; color: #dbe1e7; }
.m1-map-popup .leaflet-popup-content a { margin-top: .5rem; font-weight: 700; text-decoration: underline; }
.m1-map-popup .leaflet-popup-content a,
.m1-interactive-map .m1-map-popup .leaflet-popup-close-button { color: var(--m1-gold-light); }

#catalog .building-catalog-table-item img:not([src]) { visibility: hidden; }

#catalog button.js-catalog-show-more { display: block; margin-inline: auto; }

#deal-support {
  padding-block: clamp(2.8rem, 6vw, 5rem);
  background: #f6f2e9;
}

#contacts {
  padding-block: clamp(2.5rem, 5.5vw, 4.75rem);
  border-top: 1px solid rgba(7, 36, 69, .16);
  background: #e9edf0;
}
#contacts > .wrapper { padding-inline: clamp(1.15rem, 4vw, 3.75rem); }

#contacts .we-on-connect { height: auto; min-height: 0; }
#contacts .woc-side {
  display: flex;
  min-height: 0;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.2rem, 3.5vw, 3.25rem);
}
#contacts .woc-map {
  height: auto;
  min-height: clamp(23rem, 40vw, 32.5rem);
}
#contacts .contacts-map-wrapper { position: absolute; inset: 0; }

.m1-office-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .25rem;
  min-width: 0;
}

#contacts .m1-office-links a {
  margin: 0;
  color: var(--m1-gold-light);
  font-family: var(--m1-sans);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 700;
  line-height: 1.4;
  text-underline-offset: .18em;
  overflow-wrap: anywhere;
}
.m1-office-links a:hover { text-decoration: underline; }

.m1-office-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  align-items: center;
  margin-top: 1.4rem;
}
#contacts .m1-office-actions a { margin: 0; }
#contacts .m1-office-actions .m1-header-social {
  display: inline-flex;
  width: 46px;
  height: 46px;
  line-height: 0;
}
#contacts .m1-office-route {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  gap: .55rem;
  padding: .35rem .85rem;
  border: 1px solid rgba(234, 216, 181, .36);
  border-radius: .65rem;
  color: var(--m1-gold-light);
  font-family: var(--m1-sans);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}
.m1-office-route:hover { background: rgba(220,193,152,.1); }

@media (max-width: 980px) {
  #contacts .woc-side { height: auto; }
  #contacts .woc-map { min-height: clamp(19rem, 65vw, 24rem); }
}

@media (max-width: 700px) {
  .m1-catalog-toolbar { gap: .65rem; }
  .m1-catalog-filters { gap: .25rem; }
  .m1-catalog-chip { padding-inline: .55rem; }
  .m1-catalog-map-frame { height: clamp(25rem, 116vw, 31rem); border-radius: .95rem; }
  #deal-support { padding-inline: 0; }
  #deal-support .fast-leasing { border-radius: 1.2rem; }
  #deal-support .fl-side { padding: clamp(1rem, 5vw, 1.55rem); }
  #deal-support .fast-leasing-form input:not([type="checkbox"]):not([type="submit"]) { font-size: 1rem; }
  #deal-support .fast-leasing-form input.sendform { width: 100%; max-width: none; }
  #contacts .m1-office-actions { margin-top: 1rem; }
}
