/* ZamRealty — стили публичного поиска */
:root {
  --zr-dark: #004362;
  --zr-accent: #aa1a00;
  --zr-accent-alt: #002d42;
  /* Единая типографика сайта: Montserrat */
  --zr-font-heading: 'Montserrat', sans-serif;
  --zr-font-body: 'Montserrat', sans-serif;
  --font-heading: var(--zr-font-heading);
  --font-body: var(--zr-font-body);

  --bs-primary: #aa1a00;
  --bs-primary-rgb: 170,26,0;
  --bs-body-color: #2f3138;
  --bs-link-color: #aa1a00;
  --bs-link-hover-color: #881500;
  --bs-body-font-family: var(--zr-font-body);
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  font-family: var(--zr-font-body);
}

.btn-primary {
  --bs-btn-bg: #aa1a00;
  --bs-btn-border-color: #aa1a00;
  --bs-btn-hover-bg: #881500;
  --bs-btn-hover-border-color: #771200;
  --bs-btn-active-bg: #771200;
  --bs-btn-active-border-color: #660f00;
}

.btn-outline-primary {
  --bs-btn-color: #aa1a00;
  --bs-btn-border-color: #aa1a00;
  --bs-btn-hover-bg: #aa1a00;
  --bs-btn-hover-border-color: #aa1a00;
  --bs-btn-active-bg: #aa1a00;
  --bs-btn-active-border-color: #aa1a00;
}
.zamrealty-body { font-family: var(--zr-font-body); color: var(--zr-dark); }

/* jQuery UI — тот же шрифт, что и на сайте */
.ui-widget,
.ui-widget input,
.ui-widget select,
.ui-widget textarea,
.ui-widget button {
  font-family: var(--zr-font-body);
}

/* Хедер как на лендинге: прозрачность + бургер на мобильных */
.zamrealty-header {
  position: sticky; top: 0; z-index: 1000;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
  padding: 0.65rem 0;
  transition: background 0.3s, box-shadow 0.3s;
}
.zamrealty-header--transparent {
  background: #fff;
}
.zamrealty-header--solid {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.zamrealty-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1rem;
}
.zamrealty-header__back {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: none; border: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}
.zamrealty-header__back-icon { font-size: 1.25rem; color: var(--zr-dark); }
.zamrealty-header__back:hover .zamrealty-header__back-icon { color: var(--zr-accent); }
.zamrealty-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
  color: var(--zr-dark);
  min-width: 220px;
}
.zamrealty-logo img {
  display: block;
  max-height: 56px;
  width: auto;
}
.zamrealty-logo__text { display: none; }
.zamrealty-logo:hover { opacity: 0.95; }
/* Плашка вокруг логотипа: компактные поля, чтобы картинка не «терялась»; логотип не жмётся от пунктов меню */
#header.header-inner .container-fluid > #logo,
#header.header-scrolled .container-fluid > #logo {
  flex-shrink: 0;
}
#header.header-inner .navbar,
#header.header-scrolled .navbar {
  flex-shrink: 1;
  min-width: 0;
}
/* Квадратный логотип (logozabig.png) уже с белым полем и серой каймой — снаружи только тень */
#header.header-inner #logo a.zamrealty-logo--framed,
#header.header-scrolled #logo a.zamrealty-logo--framed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border-radius: 12px;
  background: transparent;
  border: none;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.38);
  line-height: 0;
  text-decoration: none;
  transition: box-shadow 0.2s ease;
}
#header.header-inner #logo a.zamrealty-logo--framed:hover,
#header.header-scrolled #logo a.zamrealty-logo--framed:hover {
  box-shadow:
    0 5px 22px rgba(0, 0, 0, 0.45),
    0 0 0 2px rgba(170, 26, 0, 0.35);
}
.zamrealty-header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.zamrealty-header__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--zr-dark);
  transition: transform 0.3s, opacity 0.3s;
}
.zamrealty-header__burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.zamrealty-header__burger.active span:nth-child(2) { opacity: 0; }
.zamrealty-header__burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.zamrealty-nav { display: flex; gap: 1rem; align-items: center; margin-left: auto; }
.zamrealty-nav ul { display: flex; align-items: center; gap: 0.7rem; margin: 0; padding: 0; list-style: none; }
.zamrealty-nav li { display: inline-flex; align-items: center; }
.zamrealty-nav li:not(:last-child)::after { content: "•"; color: #b9b9b9; margin-left: 0.7rem; }
.zamrealty-nav a { color: var(--zr-dark); text-decoration: none; font-weight: 500; font-size: 0.92rem; white-space: nowrap; }
.zamrealty-nav a:hover { color: var(--zr-accent); }
.zamrealty-phone { font-weight: 700; font-size: 0.96rem; }
.zamrealty-header__download {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border: 1px solid #d7d7d7;
  border-radius: 999px;
  font-size: 0.88rem;
}
.zamrealty-main { padding-top: 76px; padding-bottom: 2rem; min-height: 50vh; }
.zamrealty-about-static .zamrealty-about-timeline { margin: 0; padding: 0; max-width: 640px; }
.zamrealty-about-static .zamrealty-about-timeline li { margin-bottom: 0.75rem; padding-left: 0; line-height: 1.5; color: #444; }
.zamrealty-about-static .about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.zamrealty-about-static .about-split__media img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  display: block;
  vertical-align: middle;
}
.zamrealty-about-static .about-split--reverse .about-split__media { order: 2; }
.zamrealty-about-static .about-split--reverse .about-split__text { order: 1; }
@media (max-width: 767px) {
  .zamrealty-about-static .about-split { grid-template-columns: 1fr; }
  .zamrealty-about-static .about-split--reverse .about-split__media,
  .zamrealty-about-static .about-split--reverse .about-split__text { order: 0; }
}
.zamrealty-about-brandband {
  background: linear-gradient(180deg, #f5f5f5 0%, #fff 100%);
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
}
.zamrealty-about-brandband__logo { max-height: 64px; width: auto; height: auto; }
.zamrealty-footer { background: #141414; color: #fff; padding: 2.2rem 1rem; text-align: center; }
.zamrealty-footer__inner { max-width: 1200px; margin: 0 auto; display: grid; gap: 1rem; }
.zamrealty-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.1rem;
  align-items: start;
}
.zamrealty-footer__map iframe { border: 0; border-radius: 6px; background: #222; }
.zamrealty-footer__office h4,
.zamrealty-footer__brand h4 {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.zamrealty-footer__office ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.zamrealty-footer__office li { margin: 0.14rem 0; font-size: 0.87rem; opacity: 0.9; }
.zamrealty-footer__brand p { margin: 0.2rem 0; font-size: 0.88rem; opacity: 0.92; }
.zamrealty-footer__brand img {
  display: block;
  width: 120px;
  height: auto;
  margin: 0 0 0.5rem;
}
.zamrealty-footer a { color: rgba(255,255,255,0.92); text-decoration: none; }
.zamrealty-footer a:hover { color: #fff; text-decoration: underline; }
.zamrealty-footer__copy { text-align: center; font-size: 0.84rem; opacity: 0.78; }
.zamrealty-search-header h1 { font-family: var(--zr-font-heading); font-size: 1.75rem; margin-bottom: 1rem; }
.zamrealty-search-bt { margin-bottom: 1rem; }
.zamrealty-listings { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; margin: 1rem 0; }
.zamrealty-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.08); transition: transform 0.2s, box-shadow 0.2s; display: block; min-height: 200px; }
.zamrealty-card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
.zamrealty-card__link { text-decoration: none; color: inherit; display: block; height: 100%; }
.zamrealty-card__img { aspect-ratio: 16/10; background: #e8e8e8; overflow: hidden; min-height: 140px; position: relative; }
.zamrealty-photo-box { display: block; width: 100%; height: 100%; background-size: cover; background-position: center; background-repeat: no-repeat; }
.zamrealty-photo-box.image-link { cursor: pointer; }
.zamrealty-photo-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zamrealty-card__img .swiper { width: 100%; height: 100%; }
.zamrealty-card__img .swiper-wrapper { align-items: stretch; }
.zamrealty-card__img .swiper-slide { height: auto; }
.zamrealty-card__img .swiper-slide .zamrealty-photo-box { min-height: 140px; }
.zamrealty-card__img .swiper-button-prev, .zamrealty-card__img .swiper-button-next { color: #fff; width: 28px; height: 28px; background: rgba(0,0,0,0.4); border-radius: 50%; }
.zamrealty-card__img .swiper-button-prev::after, .zamrealty-card__img .swiper-button-next::after { font-size: 14px; }
.zamrealty-card__img .zamrealty-card__photo-count { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.5); color: #fff; font-size: 0.75rem; padding: 2px 8px; border-radius: 4px; z-index: 2; }
/* Просмотрено — плашка на карточке (кука zamrealty_viewed) */
.zamrealty-card__viewed-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(0, 116, 159, 0.92);
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1.2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  pointer-events: none;
}
/* Лайтбокс — Swiper для свайпа на мобильных */
#zamrealty-lightbox { display: none; position: fixed; inset: 0; z-index: 9999; align-items: center; justify-content: center; }
#zamrealty-lightbox.active { display: flex; flex-direction: column; }
.zamrealty-lb-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.95); cursor: pointer; }
.zamrealty-lb-swiper-wrap {
  position: relative; flex: 1; width: 100%; max-width: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 3rem 0 4rem;
}
.zamrealty-lb-swiper { width: 100%; height: 100%; max-height: calc(100vh - 6rem); }
.zamrealty-lb-swiper .swiper-slide { display: flex; align-items: center; justify-content: center; }
.zamrealty-lb-swiper .swiper-slide img {
  max-width: 100%; max-height: calc(100vh - 6rem);
  width: auto; height: auto; object-fit: contain;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
}
.zamrealty-lb-close {
  position: absolute; top: env(safe-area-inset-top, 1rem); right: 1rem;
  z-index: 10; width: 48px; height: 48px;
  background: rgba(255,255,255,0.2); border: none; border-radius: 50%;
  color: #fff; font-size: 1.5rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.zamrealty-lb-prev, .zamrealty-lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; width: 48px; height: 48px;
  background: rgba(255,255,255,0.25); border: none; border-radius: 50%;
  color: #fff; cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.zamrealty-lb-prev { left: 0.5rem; }
.zamrealty-lb-next { right: 0.5rem; }
.zamrealty-lb-prev::after, .zamrealty-lb-next::after { font-size: 1.25rem; font-weight: 700; }
.zamrealty-lb-caption {
  position: absolute; bottom: calc(1rem + env(safe-area-inset-bottom));
  left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 0.95rem; z-index: 10;
  background: rgba(0,0,0,0.5); padding: 0.35rem 0.75rem; border-radius: 20px;
}
@media (max-width: 767px) {
  .zamrealty-lb-swiper-wrap { padding: 2.5rem 0 3.5rem; }
  .zamrealty-lb-swiper .swiper-slide img { max-height: calc(100vh - 5rem); }
  .zamrealty-lb-close { top: env(safe-area-inset-top, 0.5rem); right: 0.5rem; width: 44px; height: 44px; }
  .zamrealty-lb-prev, .zamrealty-lb-next { width: 44px; height: 44px; }
}
.zamrealty-card__body { padding: 1rem; }
.zamrealty-card__meta { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.35rem; font-size: 0.8rem; }
.zamrealty-card__type { color: var(--zr-accent); font-weight: 600; text-transform: uppercase; }
.zamrealty-card__square { color: #555; }
/* Параметры объекта (соответствуют фильтру) */
.zamrealty-card__params {
  display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem;
  margin: 0.5rem 0 0.35rem;
  font-size: 0.75rem;
  color: #555;
  line-height: 1.35;
}
.zamrealty-card__param {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.2rem 0.5rem;
  background: linear-gradient(135deg, #f5f5f5 0%, #eee 100%);
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.04);
}
.zamrealty-card__param i {
  font-size: 0.7rem;
  color: var(--zr-accent);
  opacity: 0.9;
}
.zamrealty-card__title { font-family: var(--zr-font-heading); font-size: 1rem; font-weight: 600; margin: 0.25rem 0; }
.zamrealty-card__addr, .zamrealty-card__metro { font-size: 0.85rem; color: #666; margin: 0.25rem 0; }
.zamrealty-card__price { font-weight: 700; margin-top: 0.5rem; }
/* Блок эксперта на странице объекта — отдельная «плитка» в сайдбаре */
.zr-portal__expert--card {
  margin-top: 0.25rem;
  margin-bottom: 1rem;
}
.zr-portal__expert-inner {
  position: relative;
  padding: 1rem 1rem 1.05rem 1.15rem;
  border-radius: 12px;
  background: linear-gradient(145deg, #f8fbfc 0%, #f0f4f6 55%, #eef3f6 100%);
  border: 1px solid rgba(0, 116, 159, 0.18);
  box-shadow: 0 4px 14px rgba(0, 60, 90, 0.08), inset 0 1px 0 rgba(255,255,255,0.85);
}
.zr-portal__expert-inner::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  border-radius: 12px 0 0 12px;
  background: linear-gradient(180deg, var(--zr-accent, #00749f) 0%, #005a7a 100%);
}
.zr-portal__expert-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--zr-accent, #00749f);
  margin-bottom: 0.65rem;
  opacity: 0.95;
}
.zr-portal__expert-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}
.zr-portal__expert-avatar-wrap {
  flex-shrink: 0;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff 0%, #e8eef1 100%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.zr-portal__expert-photo {
  display: block;
  width: 72px; height: 72px; object-fit: cover;
  border-radius: 50%;
  background: #e8ecef;
  border: 2px solid rgba(255,255,255,0.95);
}
.zr-portal__expert-copy { min-width: 0; flex: 1; padding-top: 0.1rem; }
.zr-portal__expert-name {
  font-family: var(--zr-font-heading, inherit);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  color: #1a1a1a;
  margin-bottom: 0.35rem;
}
.zr-portal__expert-hint {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #5c6569;
}
.zamrealty-sort { max-width: 400px; }
.zamrealty-filter { background: #f8f9fa; padding: 1rem; border-radius: 10px; }
.zamrealty-filter .form-label { margin-bottom: 0.25rem; }
/* Пагинатор (Bootstrap 3 markup в Bootstrap 5) */
.zamrealty-main .pagination { display: flex; flex-wrap: wrap; gap: 0.25rem; list-style: none; padding: 1rem 0; margin: 0; }
.zamrealty-main .pagination li { display: inline-block; }
.zamrealty-main .pagination li a, .zamrealty-main .pagination li span { display: block; padding: 0.35rem 0.75rem; border: 1px solid #dee2e6; border-radius: 6px; color: var(--zr-accent); text-decoration: none; cursor: pointer; }
.zamrealty-main .pagination li a:hover { background: #f8f9fa; }
.zamrealty-main .pagination li.active a { background: var(--zr-accent); color: #fff; border-color: var(--zr-accent); }
/* Подсказки адреса — без подчёркивания (переопределяет text-decoration: underline) */
.ui-autocomplete .ui-menu-item a,
.ui-autocomplete .ui-menu-item a:link,
.ui-autocomplete .ui-menu-item a:visited,
.ui-autocomplete .ui-menu-item a:hover,
.ui-autocomplete .ui-menu-item a:focus,
.ui-autocomplete .ui-menu-item a:active {
  text-decoration: none !important;
}

/* Фильтр сворачиваемый */
.zamrealty-filter-wrap { display: block !important; }
.zamrealty-filter-body { background: #f8f9fa; padding: 1rem; border-radius: 10px; }
/* Карта метро — полноэкранный оверлей, как в agent1 */
#zamrealty-metro-block.zamrealty-metro-fullscreen {
  position: fixed !important; inset: 0 !important; z-index: 10001 !important;
  background: #fff !important; overflow: auto !important;
  display: flex !important; flex-direction: column !important;
}
#zamrealty-metro-block.zamrealty-metro-fullscreen .card { flex: 1; display: flex; flex-direction: column; max-width: none; margin: 0; border-radius: 0; position: relative; }
#zamrealty-metro-block.zamrealty-metro-fullscreen .btn-close { position: absolute; top: 1rem; right: 1rem; z-index: 10; }
#zamrealty-metro-block.zamrealty-metro-fullscreen .metro_filter { flex: 1; max-height: none !important; overflow: visible; }
#zamrealty-metro-block.zamrealty-metro-fullscreen .img-overlay-wrap { max-width: 100%; }
body.zamrealty-metro-open #zamrealty-map-container { display: none !important; }
.zamrealty-metro-block .metro_filter { max-height: 500px; overflow: auto; }
.zamrealty-metro-block .img-overlay-wrap { position: relative; display: inline-block; }
.zamrealty-metro-block .img-overlay-wrap img { display: block; max-width: 100%; height: auto; }
.zamrealty-metro-block .img-overlay-wrap svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.zamrealty-metro-block .img-overlay-wrap svg g { pointer-events: auto; cursor: pointer !important; }
.zamrealty-metro-block .img-overlay-wrap svg g.active rect { fill: rgba(196,30,58,0.35); fill-opacity: 1; }
.zamrealty-metro-block .img-overlay-wrap svg g.active text { fill: var(--zr-accent) !important; font-weight: 700; text-decoration: underline; }
.zamrealty-metro-block .img-overlay-wrap svg g.active text tspan { fill: inherit !important; }
.zamrealty-metro-block .js_cntmetro.count { background: var(--zr-accent); color: #fff; padding: 0 6px; border-radius: 10px; font-size: 0.8rem; }
.zamrealty-metro-block .mselect { display: block !important; }
.zamrealty-metro-block .mselect .row { margin-bottom: 0.5rem; }
.zamrealty-metro-block .js-map .row .col-sm-6,
.zamrealty-metro-block .js-map .row .col-md-4 { min-width: 0; }
.zamrealty-metro-block .zamrealty-dropdown-chips { position: relative; }
.zamrealty-metro-block .zamrealty-dropdown-btn {
  text-align: left; cursor: pointer; position: relative;
}
.zamrealty-metro-block .zamrealty-dropdown-btn .fa-chevron-down { font-size: 0.75rem; }
.zamrealty-metro-block .zamrealty-dropdown-list {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 1000;
  margin-top: 2px; padding: 6px;
  background: #fff; border: 1px solid #dee2e6; border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.zamrealty-metro-block .zamrealty-dropdown-search {
  margin-bottom: 6px; width: 100%;
}
.zamrealty-metro-block .zamrealty-dropdown-items {
  max-height: 200px; overflow-y: auto;
}
.zamrealty-metro-block .zamrealty-dropdown-item {
  padding: 6px 10px; cursor: pointer; font-size: 0.9rem;
  border-bottom: 1px solid #f0f0f0;
  display: flex; align-items: center; gap: 8px;
}
.zamrealty-metro-block .zamrealty-dropdown-item:last-child { border-bottom: none; }
.zamrealty-metro-block .zamrealty-dropdown-item:hover { background: #f8f9fa; }
.zamrealty-metro-block .zamrealty-dropdown-item.selected {
  background: #e8f4fd; color: var(--zr-accent);
  border-left: 3px solid var(--zr-accent);
  font-weight: 500;
}
.zamrealty-metro-block .zamrealty-dropdown-item .fa-check {
  display: inline-block; width: 1em; min-width: 1em;
  color: var(--zr-accent); font-weight: bold;
}
.zamrealty-metro-block .zamrealty-dropdown-item:not(.selected) .fa-check { opacity: 0; visibility: hidden; }
.zamrealty-metro-block .zamrealty-chips {
  display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px;
}
.zamrealty-metro-block .zamrealty-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 6px; font-size: 0.8rem; background: #e8f4fd;
  border-radius: 4px; color: var(--zr-dark);
}
.zamrealty-metro-block .zamrealty-chip-remove {
  cursor: pointer; opacity: 0.7; font-size: 0.75rem;
}
.zamrealty-metro-block .zamrealty-chip-remove:hover { opacity: 1; color: var(--zr-accent); }
.zamrealty-metro-block .js-map .row p.mb-1 { margin-bottom: 0.25rem !important; }
.zamrealty-metro-block .metro_dialog { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.zamrealty-metro-block .metro_list { cursor: pointer; padding: 4px 8px; background: #f0f0f0; border-radius: 4px; font-size: 0.9rem; }
.zamrealty-metro-block .metro_list:hover { background: #e0e0e0; }
/* Скрыть окна выбора метро — только строка с чипами */
.zamrealty-metro-block .zamrealty-metro-select-wrap { display: none !important; }
.zamrealty-metro-block .mselect .metro_dialog { margin-top: 0; }
.zamrealty-metro-block .zamrealty-selected-stations {
  margin-top: 0.75rem !important;
  padding: 10px 12px; background: #e8f4fd;
  border-radius: 8px; border-left: 4px solid var(--zr-accent);
}
.zamrealty-metro-block .zamrealty-selected-stations p.mb-1 {
  font-weight: 600; color: var(--zr-accent); margin-bottom: 0.5rem !important;
}
.zamrealty-metro-block .bootstrap-select .dropdown-menu { z-index: 10002 !important; }
.zamrealty-metro-block .js-map .row p.mb-1 + select { margin-top: 0.25rem; }

/* Карта на весь экран */
.zamrealty-map-page { margin: 0; padding: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
.zamrealty-map-page .zamrealty-header { flex-shrink: 0; }
.zamrealty-map-main { padding-top: 76px; flex: 1; display: flex; flex-direction: column; min-height: 0; position: relative; }
.zamrealty-map-filter { flex-shrink: 0; padding: 0.75rem 1rem; background: rgba(255,255,255,0.95); box-shadow: 0 2px 8px rgba(0,0,0,0.1); display: block !important; }
.zamrealty-map-filter .zamrealty-filter-wrap { display: block !important; }
.zamrealty-map-filter #zamrealty-filter-toggle { display: inline-block !important; visibility: visible !important; }
.zamrealty-map-filter .zamrealty-filter { margin: 0; }
.zamrealty-map-fullscreen { flex: 1; min-height: 400px; width: 100%; background: #e8e8e8; }
.zamrealty-balloon-popup .leaflet-popup-content-wrapper { max-height: 400px; overflow-y: auto; }
.zamrealty-map-page #footer { display: none; }
/* Адрес: jQuery UI .ui-front { z-index:100 } — на карте иначе под Leaflet/овереем */
#zamrealty-map-filter-popup ul.ui-autocomplete,
.zamrealty-map-page ul.ui-autocomplete {
  z-index: 200000 !important;
}
/* На странице карты фильтр без «Карта метро» — метро не участвует в API карты */
.zamrealty-map-page .zamrealty-filter-metro-only { display: none !important; }

/* Мобильные: PWA-стиль — хедер, бургер, bottom sheet, нижняя панель */
@media (max-width: 767px) {
  .zamrealty-header__back { display: flex; }
  .zamrealty-header__back.hidden { display: none !important; }
  .zamrealty-header__burger { display: flex; }
  .zamrealty-logo { justify-content: center; min-width: 0; }
  .zamrealty-logo img { max-height: 40px; }
  /* PWA bottom sheet: меню выезжает снизу */
  .zamrealty-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    max-height: 85vh;
    background: #fff;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
    flex-direction: column;
    align-items: stretch;
    padding: 24px 1rem 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    gap: 0;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    z-index: 999;
    overflow-y: auto;
  }
  .zamrealty-nav ul {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.2rem;
  }
  .zamrealty-nav li {
    width: 100%;
    display: block;
  }
  .zamrealty-nav li::after { display: none !important; }
  .zamrealty-nav.open { transform: translateY(0); }
  .zamrealty-nav::before {
    content: '';
    display: block;
    width: 36px; height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin: 0 auto 1rem;
  }
  .zamrealty-nav a {
    padding: 1rem 1rem;
    border-radius: 12px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
  }
  .zamrealty-nav a::after { display: none; }
  .zamrealty-nav a:hover { background: rgba(196,30,58,0.06); }
  .zamrealty-nav .zamrealty-phone {
    margin-top: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    justify-content: center;
  }
  .zamrealty-header__download {
    justify-content: center;
    margin-top: 0.4rem;
  }
  .zamrealty-nav-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.4);
    z-index: 998; opacity: 0; pointer-events: none;
    transition: opacity 0.3s;
  }
  .zamrealty-nav-overlay.open { opacity: 1; pointer-events: auto; }
  .zamrealty-header { padding: 0.75rem 0; padding-top: calc(0.75rem + env(safe-area-inset-top)); }
  .zamrealty-filter-popup-content { max-width: 100% !important; max-height: 100% !important; width: 100% !important; height: 100% !important; border-radius: 0 !important; }
  .zamrealty-metro-fullscreen .img-overlay-wrap img { max-height: 50vh; }
  .zamrealty-metro-block .js-map .row .col-sm-6,
  .zamrealty-metro-block .js-map .row .col-md-4 { width: 100% !important; flex: 0 0 100%; }
  .zamrealty-metro-block .zamrealty-dropdown-list { max-height: 180px; }
  .bootstrap-select .dropdown-menu { max-height: 200px !important; }
}

/* PWA нижняя панель навигации */
.zamrealty-pwa-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
  z-index: 100;
  padding: 0.5rem 0;
  padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
}
.zamrealty-pwa-bar__inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 400px;
  margin: 0 auto;
}
.zamrealty-pwa-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  color: #666;
  text-decoration: none;
  font-size: 0.7rem;
  border-radius: 8px;
  touch-action: manipulation;
}
.zamrealty-pwa-bar a i { font-size: 1.25rem; }
.zamrealty-pwa-bar a:hover, .zamrealty-pwa-bar a.active { color: var(--zr-accent); }
@media (max-width: 767px) {
  /* Нижняя панель навигации скрыта на мобильных — меню в шапке */
  .zamrealty-pwa-bar { display: none !important; }
  .zamrealty-footer__grid { grid-template-columns: 1fr; }
  .zamrealty-footer__brand img { margin: 0 auto 0.5rem; }
}
/* История просмотров: ярлык «просмотрено» (кука zamrealty_viewed) */
.zamrealty-viewed {
  font-size: 0.9rem;
  color: #555;
}
.zamrealty-viewed-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 116, 159, 0.92);
  padding: 4px 10px;
  border-radius: 6px;
  line-height: 1.2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
/* Страница объекта: ярлык в тулбаре */
.zamrealty-object-viewed-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 116, 159, 0.92);
  padding: 4px 10px;
  border-radius: 6px;
  line-height: 1.2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.zamrealty-viewed a {
  color: var(--zr-accent);
  text-decoration: none;
}
.zamrealty-viewed a:hover { text-decoration: underline; }
/* Параметры поиска над карточками */
.zamrealty-filter-summary {
  font-size: 0.9rem;
  color: #555;
  padding: 0.5rem 0.75rem;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 3px solid var(--zr-accent);
}
.zamrealty-filter-summary__label { font-weight: 600; color: var(--zr-dark); }
/* По типу объекта: Квартира · Комната · Склад · Офис */
.zamrealty-unit-types {
  font-size: 0.95rem;
  color: #555;
}
.zamrealty-unit-types__label { font-weight: 600; color: var(--zr-dark); margin-right: 0.35rem; }
.zamrealty-unit-types a.zamrealty-unit-type {
  color: var(--zr-accent);
  text-decoration: none;
}
.zamrealty-unit-types a.zamrealty-unit-type:hover { text-decoration: underline; }
.zamrealty-unit-types span.zamrealty-unit-type.active {
  font-weight: 600;
  color: var(--zr-dark);
}
/* Лендинг объекта (leading.php) */
.zamrealty-leading-hero {
  background: linear-gradient(180deg, #f8f9fb 0%, #fff 100%);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid rgba(0,0,0,0.06);
}
.zamrealty-item-landing .zamrealty-leading-hero {
  margin-bottom: 0;
}
.zamrealty-prose { font-size: 0.95rem; line-height: 1.55; color: #333; }
.zamrealty-prose p:last-child { margin-bottom: 0; }
.zamrealty-item-theme { font-family: var(--zr-font-heading); font-weight: 600; }
@media (min-width: 768px) {
  .zamrealty-leading-similar-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}
@media (min-width: 992px) {
  .zamrealty-leading-similar-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Одна карточка по центру, как на лендинге объекта */
.zamrealty-listings.zamrealty-item-single {
  grid-template-columns: minmax(280px, 440px);
  justify-content: center;
}
/* Портал карточки: на всю ширину колонки (не узкая сетка 440px как у лендинга) */
.zr-portal .zamrealty-listings.zamrealty-item-single {
  display: block;
  width: 100%;
  max-width: none;
  grid-template-columns: none;
  justify-content: stretch;
}

/* Карта и галерея на странице объекта (тот же шаблон, что лендинг) */
.zamrealty-leading-map img {
  max-width: 100%;
  height: auto;
}

/* Карта как на лендинге агента: Yandex JS API + панорама, переключение кнопками */
.zamrealty-leading-map--ymaps .zr-ymaps-wrap {
  position: relative;
  min-height: 400px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  background: #e9ecef;
}
.zamrealty-leading-map--ymaps .zr-ymaps-layer {
  position: absolute;
  inset: 0;
}
.zamrealty-leading-map--ymaps #zr-maps {
  z-index: 2;
}
.zamrealty-leading-map--ymaps #pano {
  z-index: 1;
}
.zamrealty-leading-map--ymaps .zr-ymaps-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
}
.zamrealty-leading-map--ymaps .zr-ymaps-player {
  width: 100%;
  height: 100%;
  min-height: 400px;
}
.zamrealty-leading-map--ymaps .zr-btn-map-pano {
  position: absolute;
  z-index: 12;
  top: 0.75rem;
  left: 0.75rem;
}
.zamrealty-leading-map--ymaps .zr-btn-map-pano__btn {
  border-radius: 50%;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.2);
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.zamrealty-leading-map--ymaps .zr-btn-map-pano__btn:hover {
  background: #f8f9fa;
}
.zamrealty-leading-map--ymaps ymaps {
  box-sizing: content-box !important;
}
.zamrealty-leading-photos .zamrealty-card__img {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.zamrealty-object-detail-spec .zamrealty-detail-table {
  font-size: 0.92rem;
}
.zamrealty-object-detail-spec .zamrealty-detail-table th {
  font-weight: 600;
  color: #555;
  vertical-align: top;
}

/* --- Карточка объекта: макет domclick / ЦИАН (.zr-portal) --- */
.zr-portal {
  --zr-portal-radius: 12px;
  --zr-portal-gallery-bg: #e9ecef;
}
.zr-portal__breadcrumb:empty { display: none; }
.zr-portal__tool-btn { border-radius: 8px; font-weight: 500; }
.zr-portal__toolbar {
  border-color: rgba(0,0,0,0.08) !important;
}
.zr-portal__layout { align-items: flex-start; }
.zr-portal__leading-panel {
  background: #fff;
  border-radius: var(--zr-portal-radius);
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
  padding: 1rem 1.1rem 1.35rem;
}
@media (min-width: 992px) {
  .zr-portal__leading-panel {
    padding: 1.25rem 1.4rem 1.5rem;
  }
}
.zr-portal-lead__facts .zr-portal__facts-dl {
  font-size: 0.95rem;
}
.zr-portal__gallery-wrap {
  border-radius: var(--zr-portal-radius);
  overflow: hidden;
  background: var(--zr-portal-gallery-bg);
  min-height: 200px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
/* Иначе .zamrealty-card__img (aspect-ratio 16/10 + overflow:hidden) обрезает полосу превью */
.zr-portal-gallery-bundle.zamrealty-card__img {
  aspect-ratio: auto;
  overflow: visible;
  min-height: 0;
}
.zr-portal__gallery-wrap .zamrealty-card__img,
.zr-portal__gallery-wrap .swiper {
  border-radius: var(--zr-portal-radius);
}
#zr-leading,
#zr-gallery,
#zr-photo-grid,
#zr-specs,
#zr-map {
  scroll-margin-top: 5.5rem;
}
.zr-portal-lead {
  margin-top: 0;
  margin-bottom: 1rem;
  padding: 0 0.15rem;
}
.zr-portal-lead__chips .zr-portal__chip {
  font-weight: 500;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: #f1f3f5;
  color: #343a40;
  border: 1px solid rgba(0,0,0,0.06);
  font-size: 0.875rem;
}
.zr-portal__photo-grid {
  scroll-margin-top: 5.5rem;
}
.zr-portal-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem 0.65rem;
}
.zr-portal-gallery-grid__cell {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  background: #f8f9fa;
  line-height: 0;
}
.zr-portal-gallery-grid__cell img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.zr-portal-gallery-grid__cell:focus {
  outline: 2px solid var(--zr-accent, #aa1a00);
  outline-offset: 2px;
}
.zr-portal-lead__title {
  font-family: var(--zr-font-heading);
  font-weight: 600;
  color: var(--zr-dark);
  line-height: 1.3;
}
.zr-portal-lead__meta-row {
  font-size: 0.95rem;
  color: #495057;
  margin-bottom: 0.5rem;
}
.zr-portal-lead__type { font-weight: 600; }
.zr-portal-lead__params {
  margin-bottom: 0.65rem;
}
.zr-portal-lead .zamrealty-card__params {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  font-size: 0.9rem;
}
.zr-portal-lead .zamrealty-card__param {
  color: #495057;
}
.zr-portal-gallery {
  background: #111;
  border-radius: var(--zr-portal-radius);
  overflow: hidden;
}
.zr-portal__gallery-wrap .zr-portal-gallery {
  background: #fff;
  box-shadow: none;
}
.zr-portal__gallery-wrap .zr-portal-gallery__main {
  background: #eceff1;
}
.zr-portal-gallery__main {
  position: relative;
  aspect-ratio: 16 / 10;
  max-height: 520px;
  background: #1a1a1a;
}
.zr-portal-gallery__main-link {
  display: block;
  width: 100%;
  height: 100%;
}
.zr-portal-gallery__main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.zr-portal-gallery__count {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
}
.zr-portal-gallery__thumbs {
  display: flex;
  gap: 0.45rem;
  padding: 0.6rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #f8f9fa;
  scrollbar-width: thin;
}
.zr-portal-gallery__thumb {
  flex: 0 0 auto;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  opacity: 0.82;
  transition: border-color 0.15s, opacity 0.15s;
  position: relative;
}
.zr-portal-gallery__video-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 1.5rem;
  z-index: 2;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  pointer-events: none;
}
.zr-portal-gallery__thumb--video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 1;
}
.zr-portal-gallery__thumb:hover,
.zr-portal-gallery__thumb.is-active {
  opacity: 1;
  border-color: var(--zr-accent);
}
.zr-portal-gallery__thumb img {
  display: block;
  width: 88px;
  height: 66px;
  object-fit: cover;
}
.zr-portal-gallery__placeholder {
  padding: 3rem 1rem;
  text-align: center;
}
.zr-portal-gallery__main--nophoto {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eceff1;
}
.zr-portal-gallery__nophoto-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 0.75rem;
  box-sizing: border-box;
}
.zr-api-debug__pre {
  max-height: 70vh;
  white-space: pre-wrap;
  word-break: break-word;
}
.zr-portal-map__frame iframe {
  min-height: 320px;
}
.zr-portal-map__tools .btn {
  border-radius: 8px;
  font-weight: 500;
}
.zr-portal__specs .table {
  margin-bottom: 0;
}
.zr-portal__title {
  font-family: var(--zr-font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--zr-dark);
}
.zr-portal__lot:empty { display: none !important; }
.zr-portal__addr-icon { margin-right: 0.35rem; opacity: 0.7; }
.zr-portal__price-big {
  font-family: var(--zr-font-heading);
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--zr-dark);
}
.zr-portal__price-sub { min-height: 1.25em; }
.zr-portal__price-sub:empty { display: none; }
.zr-portal__chips:empty { display: none; }
.zr-portal__chips .badge,
.zr-portal__chip {
  font-weight: 500;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  background: #f1f3f5;
  color: #343a40;
  border: 1px solid rgba(0,0,0,0.06);
  font-size: 0.875rem;
}
.zr-portal__anchors {
  border-bottom: 1px solid rgba(0,0,0,0.08);
  scrollbar-width: thin;
}
.zr-portal__anchor {
  border-radius: 999px !important;
  color: #495057 !important;
  white-space: nowrap;
  padding: 0.35rem 0.85rem !important;
}
.zr-portal__anchor:hover { background: rgba(196, 30, 58, 0.08) !important; color: var(--zr-accent) !important; }
.zr-portal__section .zr-portal__h2 {
  font-family: var(--zr-font-heading);
  font-weight: 600;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--zr-accent);
  display: inline-block;
}
.zr-portal__section-lead {
  max-width: 42rem;
}
/* Параметры: одна сетка как у карточки портала (без второго «синего» акцента) */
.zr-portal__section--specs .zr-specs-table {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: var(--zr-portal-radius);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
.zr-specs-table .zr-specs-table__label {
  width: 38%;
  font-weight: 500;
  font-size: 0.8125rem;
  color: #6c757d !important;
  vertical-align: top;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  background: #f8f9fa;
}
.zr-specs-table .zr-specs-table__value {
  font-size: 0.9375rem;
  color: var(--zr-dark);
  vertical-align: top;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}
.zr-specs-table tbody tr:last-child .zr-specs-table__label,
.zr-specs-table tbody tr:last-child .zr-specs-table__value {
  border-bottom: none;
}
.zr-portal__specs .table-responsive {
  margin-bottom: 0;
}
/* --- Расположение: визуал в духе ЦИАН (карточка, вкладки-линии, оранжевый акцент) --- */
.zr-loc {
  --zr-loc-accent: #f82249;
  --zr-loc-text: #112363;
  --zr-loc-muted: #757575;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.zr-loc__head {
  margin-bottom: 0.75rem;
}
.zr-loc__title {
  font-family: var(--zr-font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--zr-loc-text);
  margin: 0 0 0.35rem;
  padding: 0;
  border: none;
  display: block;
}
.zr-loc__addr {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--zr-loc-muted);
}
.zr-loc__hint {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--zr-loc-muted);
}
.zr-loc__fallback {
  padding: 1rem 1.1rem;
  background: #fafafa;
  border: 1px solid #ececec;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}
.zr-loc__extlink {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--zr-loc-accent);
  text-decoration: none;
}
.zr-loc__extlink:hover {
  color: #e5640a;
  text-decoration: underline;
}
.zr-loc__extlink-ico {
  font-size: 1rem;
  line-height: 1;
  opacity: 0.85;
}
.zr-loc-tabs {
  margin-bottom: 0.75rem;
}
.zr-loc-tabs__strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid #e0e0e0;
}
.zr-loc .zr-map-mode-tab,
.zr-loc .zr-loc-tab {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.65rem 1rem 0.55rem;
  margin-bottom: -1px;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--zr-loc-muted);
  cursor: pointer;
  border-radius: 0;
  transition: color 0.15s, border-color 0.15s;
}
.zr-loc .zr-map-mode-tab:hover,
.zr-loc .zr-loc-tab:hover {
  color: var(--zr-loc-text);
}
.zr-loc .zr-map-mode-tab.active,
.zr-loc .zr-loc-tab.active {
  color: var(--zr-loc-text);
  font-weight: 600;
  border-bottom-color: var(--zr-loc-accent);
}
.zr-loc__mapouter {
  border-radius: 8px;
  border: 1px solid #e8e8e8;
  background: #f4f4f4;
  box-shadow: none;
}
.zr-loc .zr-loc__legal {
  font-size: 0.75rem;
  color: #9e9e9e;
  margin: 0.75rem 0 0;
  padding: 0.65rem 0 0;
  border-top: 1px solid #f0f0f0;
}
.zr-loc.zamrealty-leading-map--ymaps .zr-ymaps-wrap {
  border-radius: 0;
  border: none;
  min-height: 420px;
}
.zr-portal__section--location:not(.zr-loc) .zr-ymaps-card {
  border-radius: var(--zr-portal-radius);
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
}
.zr-portal__prose {
  font-size: 0.98rem;
  line-height: 1.65;
  color: #333;
}
.zr-portal__prose:empty { display: none; }
.zr-portal__specs:empty { display: none; }
.zr-portal__map:empty { display: none; }
.zr-portal__photos-extra:empty { display: none; }
.zr-portal__sidebar-sticky {
  position: sticky;
  top: 5.5rem;
  z-index: 10;
}
.zr-portal__price-card .card-body { padding: 1.15rem 1.25rem; }
.zr-portal__price-card .btn {
  font-weight: 600;
  border-radius: 8px;
}
.zr-portal__sidebar-note:empty { display: none; }
.zr-portal__facts-dl dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #6c757d;
  margin-bottom: 0.1rem;
  font-weight: 600;
}
.zr-portal__facts-dl dd {
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
  margin-left: 0;
}
.zr-portal__facts-dl dd:last-child { margin-bottom: 0; }
.zr-portal__similar:empty { display: none; }
.letter-spacing-1 { letter-spacing: 0.04em; }
html.zr-portal-scroll { scroll-behavior: smooth; }
@media (max-width: 991.98px) {
  .zr-portal__sidebar-sticky { position: static; }
}


/* LANDING LAYOUT CSS */
/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
    height: 90px;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    transition: all 0.5s;
    z-index: 997;
}
#header.header-scrolled,
#header.header-inner {
    background: #004362;
    height: 76px;
}
#header #logo h1 {
    font-size: 36px;
    margin: 0;
    font-family: var(--zr-font-heading);
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}
#header #logo h1 span {
    color: #aa1a00;
}
#header #logo h1 a,
#header #logo h1 a:hover {
    color: #fff;
}
#header #logo img.zamrealty-logo__img {
    padding: 0;
    margin: 0;
    /* квадратный ассет: одна сторона задаёт масштаб */
    width: 58px;
    height: 58px;
    max-width: 58px;
    max-height: 58px;
    object-fit: contain;
    display: block;
    border-radius: 10px;
    filter: contrast(1.06) saturate(1.04);
    image-rendering: auto;
}
#header.header-inner #logo a.zamrealty-logo--framed:hover img.zamrealty-logo__img,
#header.header-scrolled #logo a.zamrealty-logo--framed:hover img.zamrealty-logo__img {
    filter: contrast(1.12) saturate(1.06) brightness(1.02);
}
@media (max-width: 992px) {
  #header #logo img.zamrealty-logo__img {
        width: 48px;
        height: 48px;
        max-width: 48px;
        max-height: 48px;
    }
}
.pdf_download {
    color: #fff;
    background: #aa1a00;
    padding: 7px 22px;
    margin: 0 0 0 15px;
    border-radius: 50px;
    border: 2px solid #aa1a00;
    transition: all ease-in-out 0.3s;
    font-weight: 500;
    line-height: 1;
    font-size: 13px;
    white-space: nowrap;
}
.pdf_download:hover {
    background: none;
    color: #fff;
}
.pdf_download:focus {
    color: #fff;
}
@media (max-width: 992px) {
  .pdf_download {
        margin: 0 15px 0 0;
    }
}
/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/**
* Desktop Navigation
*/
.navbar {
    padding: 0;
}
.navbar ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
}
.navbar li {
    position: relative;
}
.navbar>ul>li {
    white-space: nowrap;
    padding: 10px 0 10px 12px;
}
@media (max-width: 1199px) {
    .navbar>ul>li {
        padding-left: 8px;
    }
}
.navbar a,
.navbar a:focus {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(202, 206, 221, 0.8);
    font-family: var(--zr-font-heading);
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    transition: 0.3s;
    position: relative;
    padding: 6px 4px;
}
.navbar a i,
.navbar a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
}
.navbar>ul>li>a:before {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -6px;
    left: 0;
    background-color: #aa1a00;
    visibility: hidden;
    transition: all 0.3s ease-in-out 0s;
}
.navbar a:hover:before,
.navbar li:hover>a:before,
.navbar .active:before {
    visibility: visible;
    width: 100%;
}
.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover>a {
    color: #aa1a00;
}
.navbar .dropdown ul {
    display: block;
    position: absolute;
    left: 12px;
    top: calc(100% + 30px);
    margin: 0;
    padding: 10px 0;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    background: #fff;
    box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
    transition: 0.3s;
}
.navbar .dropdown ul li {
    min-width: 200px;
}
.navbar .dropdown ul a {
    padding: 10px 20px;
    font-size: 14px;
    text-transform: none;
    color: #060c22;
}
.navbar .dropdown ul a i {
    font-size: 12px;
}
.navbar .dropdown ul a:hover,
.navbar .dropdown ul .active:hover,
.navbar .dropdown ul li:hover>a {
    color: #aa1a00;
}
.navbar .dropdown:hover>ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
}
.navbar .dropdown .dropdown ul {
    top: 0;
    left: calc(100% - 30px);
    visibility: hidden;
}
.navbar .dropdown .dropdown:hover>ul {
    opacity: 1;
    top: 0;
    left: 100%;
    visibility: visible;
}
@media (max-width: 1366px) {
  .navbar .dropdown .dropdown ul {
        left: -90%;
    }
}
@media (max-width: 1366px) {
  .navbar .dropdown .dropdown:hover>ul {
        left: -100%;
    }
}
/**
* Mobile Navigation
*/
.mobile-nav-toggle {
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    display: none;
    line-height: 0;
    transition: 0.5s;
}
@media (max-width: 991px) {
  .mobile-nav-toggle {
        display: block;
    }
}
@media (max-width: 991px) {
  .navbar ul {
        display: none;
    }
}
.navbar-mobile {
    position: fixed;
    overflow: hidden;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(17, 35, 99, 0.95);
    transition: 0.3s;
    z-index: 999;
}
.navbar-mobile .mobile-nav-toggle {
    position: absolute;
    top: 15px;
    right: 15px;
}
.navbar-mobile ul {
    display: block;
    position: absolute;
    top: 55px;
    right: 15px;
    bottom: 15px;
    left: 15px;
    padding: 10px 0;
    background-color: #fff;
    overflow-y: auto;
    transition: 0.3s;
}
.navbar-mobile>ul>li {
    padding: 0;
}
.navbar-mobile a:hover:before,
.navbar-mobile li:hover>a:before,
.navbar-mobile .active:before {
    visibility: hidden;
}
.navbar-mobile a {
    padding: 10px 20px;
    font-size: 15px;
    color: #060c22;
}
.navbar-mobile a:hover,
.navbar-mobile .active,
.navbar-mobile li:hover>a {
    color: #aa1a00;
}
.navbar-mobile .getstarted {
    margin: 15px;
}
.navbar-mobile .dropdown ul {
    position: static;
    display: none;
    margin: 10px 20px;
    padding: 10px 0;
    z-index: 99;
    opacity: 1;
    visibility: visible;
    background: #fff;
    box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
}
.navbar-mobile .dropdown ul li {
    min-width: 200px;
}
.navbar-mobile .dropdown ul a {
    padding: 10px 20px;
}
.navbar-mobile .dropdown ul a i {
    font-size: 12px;
}
.navbar-mobile .dropdown ul a:hover,
.navbar-mobile .dropdown ul .active:hover,
.navbar-mobile .dropdown ul li:hover>a {
    color: #aa1a00;
}
.navbar-mobile .dropdown>.dropdown-active {
    display: block;
}
/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
    background: #002d42;
    padding: 0 0 25px 0;
    color: #eee;
    font-size: 14px;
}
#footer .footer-top {
    background: #004362;
    padding: 60px 0 30px 0;
}
#footer .footer-top .footer-info {
    margin-bottom: 30px;
}
#footer .footer-top .footer-info h3 {
    font-size: 26px;
    margin: 0 0 20px 0;
    padding: 2px 0 2px 0;
    line-height: 1;
    font-family: var(--zr-font-heading);
    font-weight: 700;
    color: #fff;
}
#footer .footer-top .footer-info img {
    height: 40px;
    margin-bottom: 10px;
}
#footer .footer-top .footer-info p {
    font-size: 14px;
    line-height: 24px;
    margin-bottom: 0;
    font-family: var(--zr-font-body);
    color: #fff;
}
#footer .footer-top .social-links a {
    display: inline-block;
    background: #00354f;
    color: #eee;
    line-height: 1;
    margin-right: 4px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
#footer .footer-top .social-links a i {
    line-height: 0;
    font-size: 16px;
}
#footer .footer-top .social-links a:hover {
    background: #aa1a00;
    color: #fff;
}
#footer .footer-top h4 {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 12px;
    border-bottom: 2px solid #aa1a00;
}
#footer .footer-top .footer-links {
    margin-bottom: 30px;
}
#footer .footer-top .footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
#footer .footer-top .footer-links ul i {
    padding-right: 5px;
    color: #aa1a00;
    font-size: 18px;
}
#footer .footer-top .footer-links ul li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 10px 0;
}
#footer .footer-top .footer-links ul li:first-child {
    padding-top: 0;
}
#footer .footer-top .footer-links ul a {
    color: #eee;
}
#footer .footer-top .footer-links ul a:hover {
    color: #aa1a00;
}
#footer .footer-top .footer-contact {
    margin-bottom: 30px;
}
#footer .footer-top .footer-contact p {
    line-height: 26px;
}
#footer .footer-top .footer-newsletter {
    margin-bottom: 30px;
}
#footer .footer-top .footer-newsletter input[type="email"] {
    border: 0;
    padding: 6px 8px;
    width: 65%;
}
#footer .footer-top .footer-newsletter input[type="submit"] {
    background: #aa1a00;
    border: 0;
    width: 35%;
    padding: 6px 0;
    text-align: center;
    color: #fff;
    transition: 0.3s;
    cursor: pointer;
}
#footer .footer-top .footer-newsletter input[type="submit"]:hover {
    background: #881500;
}
#footer .copyright {
    text-align: center;
    padding-top: 30px;
}
#footer .credits {
    text-align: center;
    font-size: 13px;
    color: #ddd;
}

@media (max-width: 991px) {
    .zamrealty-main, .zamrealty-map-main { padding-top: 76px; margin-top: 0; }
}

/* Страница контактов (router act=contacts) */
.zamrealty-contacts { padding-bottom: 2rem; }
.zamrealty-contacts__title { font-size: clamp(1.5rem, 4vw, 2rem); color: var(--zr-dark, #1a1a1a); }
.zamrealty-contacts__legal { font-size: 1.05rem; }
.zamrealty-contacts__subtitle { font-size: 1rem; color: #444; }
.zamrealty-contacts__addr { font-style: normal; line-height: 1.6; }
.zamrealty-contacts__phone a { color: var(--zr-accent, #c41e3a); font-weight: 600; text-decoration: none; }
.zamrealty-contacts__phone a:hover { text-decoration: underline; }
.zamrealty-contacts__map {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  min-height: 380px;
  background: #e8eef2;
}

.zamrealty-application-cta { margin-top: 1.75rem; padding-top: 1.75rem; border-top: 1px solid rgba(0, 0, 0, 0.08); }
.zamrealty-application { margin-top: 1.75rem; padding-top: 1.75rem; border-top: 1px solid rgba(0, 0, 0, 0.08); }
.zamrealty-application__title { font-size: 1.2rem; font-family: var(--zr-font-heading, inherit); color: var(--zr-dark, #1a1a1a); margin-bottom: 0.35rem; }
.zamrealty-application__lead { font-size: 0.95rem; }
.zamrealty-application__form { max-width: 100%; }
.zamrealty-application__captcha-img { display: block; }
.zamrealty-application__msg { min-height: 1.25rem; margin-bottom: 0.75rem; font-size: 0.95rem; }
.zamrealty-application__msg--ok { color: #0a6b2f; font-weight: 600; }
.zamrealty-application__msg--err { color: #b00020; font-weight: 600; }

.zamrealty-application-page { padding-bottom: 2rem; }
.zamrealty-application-page__back { color: var(--zr-accent, #c41e3a); text-decoration: none; font-size: 0.95rem; }
.zamrealty-application-page__back:hover { text-decoration: underline; }
.zamrealty-application__title--page { font-size: clamp(1.35rem, 3vw, 1.75rem); }

/* Модальное окно заявки */
.zamrealty-app-modal {
  --zr-modal-accent: var(--zr-accent, #c41e3a);
  --zr-modal-radius: 16px;
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.zamrealty-app-modal[aria-hidden="false"] {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}
.zamrealty-app-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 22, 28, 0.52);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}
.zamrealty-app-modal__wrap {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: min(92vh, 900px);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.zamrealty-app-modal__panel {
  position: relative;
  width: 100%;
  max-height: min(92vh, 900px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--zr-modal-radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.06);
  pointer-events: auto;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.zamrealty-app-modal[aria-hidden="false"] .zamrealty-app-modal__panel {
  transform: translateY(0) scale(1);
}
.zamrealty-app-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: var(--zr-dark, #1a1a1a);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.zamrealty-app-modal__close:hover { background: rgba(0, 0, 0, 0.1); }
.zamrealty-app-modal__close-x { display: block; margin-top: -2px; }
.zamrealty-app-modal__header {
  flex-shrink: 0;
  padding: 1.35rem 1.5rem 0.75rem;
  padding-right: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: linear-gradient(180deg, rgba(196, 30, 58, 0.04) 0%, transparent 100%);
}
.zamrealty-app-modal__title {
  font-size: clamp(1.2rem, 2.8vw, 1.45rem);
  font-family: var(--zr-font-heading, inherit);
  color: var(--zr-dark, #1a1a1a);
  margin: 0 0 0.35rem;
  padding-right: 2rem;
}
.zamrealty-app-modal__lead {
  margin: 0;
  font-size: 0.95rem;
  color: #5c636a;
  line-height: 1.45;
}
.zamrealty-app-modal__form-area {
  overflow-y: auto;
  padding: 1rem 1.5rem 1.5rem;
  -webkit-overflow-scrolling: touch;
}
.zamrealty-app-modal__form-area .zamrealty-application__form { max-width: none; }
.zamrealty-app-modal__success {
  display: none;
  text-align: center;
  padding: 2rem 1.5rem 2.25rem;
}
.zamrealty-app-modal__panel--success .zamrealty-app-modal__header,
.zamrealty-app-modal__panel--success .zamrealty-app-modal__form-area {
  display: none !important;
}
.zamrealty-app-modal__panel--success .zamrealty-app-modal__success {
  display: block !important;
}
.zamrealty-app-modal__success-icon {
  color: #1a7f4a;
  margin: 0 auto 1rem;
}
.zamrealty-app-modal__success-title {
  font-size: 1.35rem;
  font-weight: 700;
  font-family: var(--zr-font-heading, inherit);
  color: var(--zr-dark, #1a1a1a);
  margin: 0 0 0.5rem;
}
.zamrealty-app-modal__success-text {
  font-size: 1rem;
  color: #5c636a;
  margin: 0 0 1.25rem;
  line-height: 1.5;
}
.zamrealty-app-modal__success-btn { min-width: 160px; }

/* Страница «заявка» — та же карточка без оверлея */
.zamrealty-app-modal--page {
  position: static;
  inset: auto;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  display: block;
  padding: 0;
  z-index: auto;
}
.zamrealty-app-modal--page .zamrealty-app-modal__backdrop { display: none; }
.zamrealty-app-modal--page .zamrealty-app-modal__wrap {
  max-width: none;
  max-height: none;
  pointer-events: auto;
}
.zamrealty-app-modal--page .zamrealty-app-modal__panel {
  max-height: none;
  transform: none;
  transition: none;
}
body.zamrealty-app-modal-open {
  overflow: hidden;
  touch-action: none;
}
@media (prefers-reduced-motion: reduce) {
  .zamrealty-app-modal,
  .zamrealty-app-modal__panel {
    transition: none;
  }
}

/* Honeypot для форм (без Bootstrap .visually-hidden — видно на части серверов) */
.zr-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  opacity: 0 !important;
}

/* Запрос по лоту в сайдбаре карточки */
.zr-object-inquiry-details { margin: 0; }
.zr-object-inquiry-details > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.zr-object-inquiry-details > summary::-webkit-details-marker {
  display: none;
}
.zr-object-inquiry__form .form-label {
  font-size: 0.8rem;
}

/* jQuery UI — наследовать шрифт сайта (иначе Arial из темы) */
.ui-widget,
.ui-widget input,
.ui-widget select,
.ui-widget textarea,
.ui-widget button {
  font-family: inherit !important;
}
