
* {
  box-sizing: border-box;
}

:root {
  --bg: var(--tg-theme-bg-color, #000);
  --text: var(--tg-theme-text-color, #fff);
  --hint: var(--tg-theme-hint-color, #9ca3af);
  --surface: var(--tg-theme-secondary-bg-color, #171717);
  --button: var(--tg-theme-button-color, #2f80ed);
  --button-text: var(--tg-theme-button-text-color, #fff);
  --border: rgba(255,255,255,.10);
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
}

button {
  font: inherit;
}

.app {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hidden {
  display: none !important;
}

/* ==========================================================
   HEADER
   ========================================================== */

.topbar {
  flex: none;
  min-height: 88px;
  padding:
    max(12px, env(safe-area-inset-top))
    14px
    12px;

  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 10px;

  background: var(--bg);
  border-bottom: 1px solid var(--border);

  position: relative;
  z-index: 20;
}

.eyebrow {
  font-size: 12px;
  color: var(--hint);
}

h1 {
  margin: 4px 0 0;
  font-size: 25px;
  line-height: 1.08;
}

.top-actions {
  display: flex;
  gap: 8px;
}

.top-button {
  border: 0;
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  padding: 10px 13px;
  white-space: nowrap;
}

/* ==========================================================
   MAP
   ========================================================== */

.map-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
}

#map {
  width: 100%;
  height: 100%;
}

.status {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;

  background: rgba(0,0,0,.75);
  color: white;

  padding: 8px 12px;
  border-radius: 12px;

  font-size: 13px;
}

/* ==========================================================
   MAP MARKERS
   ========================================================== */

.map-marker {
  width: 36px;
  height: 36px;

  display: grid;
  place-items: center;

  border: 2px solid #111;
  border-radius: 50% 50% 50% 10%;

  background: white;

  transform: translate(-50%, -100%) rotate(-45deg);
  transform-origin: center center;

  box-shadow: 0 3px 9px rgba(0,0,0,.30);

  cursor: pointer;
}

.map-marker span {
  transform: rotate(45deg);
  font-size: 17px;
}

/* cluster */

.cluster-marker {
  min-width: 40px;
  height: 40px;

  padding: 0 10px;

  border-radius: 20px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;

  background: #111;
  color: #fff;

  border: 2px solid white;

  font-weight: 700;
  font-size: 14px;

  box-shadow: 0 4px 14px rgba(0,0,0,.35);

  cursor: pointer;
}

.cluster-type-icon {
  font-size: 13px;
  line-height: 1;
}

.cluster-count {
  font-size: 14px;
  line-height: 1;
}

/* user */

.user-marker {
  width: 22px;
  height: 22px;

  border-radius: 50%;

  background: #2f80ed;
  border: 4px solid white;

  box-shadow:
    0 0 0 5px rgba(47,128,237,.25),
    0 3px 12px rgba(0,0,0,.25);
}

/* ==========================================================
   COMPACT CARD
   ========================================================== */

.object-card {
  position: absolute;

  left: 10px;
  right: 10px;
  bottom: max(10px, env(safe-area-inset-bottom));

  z-index: 60;

  max-height: 62vh;

  overflow: hidden;

  background: var(--bg);

  border-radius: 22px;
  border: 1px solid var(--border);

  box-shadow: 0 18px 55px rgba(0,0,0,.38);
}

.card-close {
  position: absolute;
  right: 10px;
  top: 10px;

  z-index: 10;

  width: 36px;
  height: 36px;

  border: 0;
  border-radius: 50%;

  background: rgba(0,0,0,.68);
  color: white;

  font-size: 26px;
}

.compact-gallery {
  position: relative;
  height: 190px;
  background: #111;
}

.compact-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-counter {
  position: absolute;
  right: 10px;
  bottom: 10px;

  padding: 5px 8px;

  background: rgba(0,0,0,.65);
  color: white;

  border-radius: 10px;

  font-size: 12px;
}

.card-body {
  padding: 15px;
  overflow-y: auto;
  max-height: 34vh;
  overscroll-behavior: contain;
}

.card-type,
.card-area,
.detail-type,
.detail-area {
  color: var(--hint);
  font-size: 14px;
}

.card-body h2,
.detail-content h2 {
  margin: 5px 0;
  line-height: 1.17;
}

.card-body p {
  line-height: 1.45;
}

.card-actions,
.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 14px;
}

.primary-button,
.secondary-button {
  min-height: 48px;

  border: 0;
  border-radius: 14px;

  padding: 10px 12px;
}

.primary-button {
  background: var(--button);
  color: var(--button-text);
}

.secondary-button {
  background: var(--surface);
  color: var(--text);
}

/* ==========================================================
   FULL DETAIL SCREEN
   ========================================================== */

.detail-screen {
  position: fixed;
  inset: 0;

  z-index: 300;

  background: var(--bg);

  display: flex;
  flex-direction: column;

  overflow: hidden;
}

.detail-header {
  flex: none;

  min-height: 56px;

  padding:
    max(8px, env(safe-area-inset-top))
    10px
    8px;

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;

  gap: 8px;

  background: var(--bg);

  border-bottom: 1px solid var(--border);

  position: relative;
  z-index: 20;
}

.detail-back,
.detail-close {
  border: 0;

  background: var(--surface);
  color: var(--text);

  border-radius: 11px;

  min-height: 38px;
}

.detail-back {
  padding: 8px 12px;
}

.detail-close {
  width: 38px;
  font-size: 24px;
}

.detail-header-title {
  min-width: 0;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  text-align: center;
  font-weight: 600;
}

.detail-scroll {
  flex: 1;

  overflow-y: auto;
  overflow-x: hidden;

  -webkit-overflow-scrolling: touch;

  overscroll-behavior-y: contain;
}

/* ==========================================================
   GALLERY
   ========================================================== */

.gallery-block {
  background: #111;
}

.main-photo-wrap {
  position: relative;
  background: #111;
}

.main-gallery-image {
  display: block;

  width: 100%;
  height: min(54vh, 430px);

  object-fit: contain;

  background: #111;
}

.photo-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  z-index: 10;

  width: 38px;
  height: 48px;

  border: 0;
  border-radius: 11px;

  background: rgba(0,0,0,.52);
  color: white;

  font-size: 30px;
}

.photo-arrow-left {
  left: 8px;
}

.photo-arrow-right {
  right: 8px;
}

/* THUMBNAILS */

.thumbnail-strip {
  display: flex;

  gap: 7px;

  padding: 8px;

  overflow-x: auto;
  overflow-y: hidden;

  -webkit-overflow-scrolling: touch;

  scrollbar-width: none;

  background: #111;
}

.thumbnail-strip::-webkit-scrollbar {
  display: none;
}

.thumbnail {
  flex: 0 0 auto;

  width: 76px;
  height: 58px;

  border-radius: 8px;

  object-fit: cover;

  border: 2px solid transparent;

  opacity: .68;

  cursor: pointer;
}

.thumbnail.active {
  border-color: #2f80ed;
  opacity: 1;
}

.detail-content {
  padding: 18px 16px 42px;
  font-size: 16px;
  line-height: 1.55;
}

.detail-content p {
  margin: 14px 0;
}

/* ==========================================================
   PHOTO VIEWER
   ========================================================== */

.photo-viewer {
  position: fixed;
  inset: 0;

  z-index: 10000;

  background: #000;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}

.viewer-image {
  width: 100%;
  max-height: 100vh;

  object-fit: contain;

  user-select: none;
}

.viewer-close {
  position: absolute;

  right: 14px;
  top: max(14px, env(safe-area-inset-top));

  z-index: 10;

  width: 44px;
  height: 44px;

  border: 0;
  border-radius: 50%;

  background: rgba(255,255,255,.18);
  color: white;

  font-size: 30px;
}

.viewer-arrow {
  position: absolute;

  top: 50%;
  transform: translateY(-50%);

  z-index: 10;

  width: 44px;
  height: 58px;

  border: 0;
  border-radius: 11px;

  background: rgba(255,255,255,.15);
  color: white;

  font-size: 36px;
}

.viewer-left {
  left: 10px;
}

.viewer-right {
  right: 10px;
}

.viewer-counter {
  position: absolute;

  bottom: max(20px, env(safe-area-inset-bottom));
  left: 50%;

  transform: translateX(-50%);

  padding: 6px 10px;

  border-radius: 12px;

  background: rgba(0,0,0,.60);
  color: white;
}

/* ==========================================================
   LIST
   ========================================================== */

.list-panel {
  position: fixed;
  inset: 0;

  z-index: 250;

  background: var(--bg);

  overflow-y: auto;
}

.list-header {
  position: sticky;
  top: 0;

  z-index: 5;

  padding:
    max(12px, env(safe-area-inset-top))
    14px
    12px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: var(--bg);

  border-bottom: 1px solid var(--border);
}

.object-list {
  display: grid;
  gap: 9px;

  padding: 12px;
}

.list-item {
  padding: 13px;

  border: 1px solid var(--border);
  border-radius: 14px;

  background: var(--surface);
  color: var(--text);

  text-align: left;
}

.list-item-title {
  font-weight: 700;
}

.list-item-meta {
  margin-top: 4px;
  color: var(--hint);
  font-size: 13px;
}


/* ==========================================================
   APARTMENT GROUP MARKER
   ========================================================== */

.apartment-group-marker {
  min-width: 48px;
  height: 42px;

  padding: 0 11px;

  border: 2px solid rgba(255,255,255,.96);
  border-radius: 22px;

  background: rgba(20,20,20,.94);
  color: white;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  box-shadow:
    0 4px 12px rgba(0,0,0,.26);

  cursor: pointer;
}

.apartment-group-bed {
  width: 18px;
  height: 18px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.apartment-group-bed svg {
  width: 18px;
  height: 18px;

  fill: white;
}

.apartment-group-count {
  min-width: 13px;

  color: white;

  font-size: 15px;
  line-height: 1;
  font-weight: 700;

  text-align: center;
}

.apartment-list-item {
  padding-top: 14px;
  padding-bottom: 14px;
}
/* ===== Светлый стиль маркеров апартаментов ===== */

.cluster-badge,
.cluster-pin,
.apartment-cluster,
.apartment-pin {
  background: #ffffff !important;
  border: 2px solid #4A7DFF !important;
  color: #1F2D3D !important;
  box-shadow: 0 6px 18px rgba(31, 45, 61, 0.18) !important;
}

.cluster-type-icon,
.pin-type-icon,
.apartment-type-icon {
  color: #4A7DFF !important;
  font-size: 18px !important;
  line-height: 1 !important;
}

.cluster-count,
.pin-count,
.apartment-count {
  color: #1F2D3D !important;
  font-weight: 700 !important;
  font-size: 16px !important;
}

.cluster-badge {
  border-radius: 999px !important;
  padding: 8px 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 42px !important;
}

.cluster-pin,
.apartment-pin {
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* ==========================================================
   FINAL LIGHT APARTMENT GROUP MARKER
   ========================================================== */

.apartment-group-marker {
  min-width: 52px !important;
  height: 44px !important;

  padding: 0 12px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;

  background: rgba(255, 255, 255, 0.96) !important;

  border: 2px solid #4A7DFF !important;
  border-radius: 22px !important;

  color: #1F2D3D !important;

  box-shadow:
    0 4px 12px rgba(31, 45, 61, 0.20) !important;

  cursor: pointer !important;
}

.apartment-group-bed {
  width: 19px !important;
  height: 19px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.apartment-group-bed svg {
  width: 19px !important;
  height: 19px !important;

  fill: #4A7DFF !important;
}

.apartment-group-count {
  min-width: 14px !important;

  color: #1F2D3D !important;

  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1 !important;

  text-align: center !important;
}



/* ==========================================================
   FINAL APARTMENT GROUP MARKERS
   ========================================================== */

.apartment-group-marker {
  min-width: 58px !important;
  height: 48px !important;

  padding: 0 12px !important;

  border-radius: 999px !important;

  border:
    1.5px solid
    rgba(94, 110, 128, 0.45)
    !important;

  background:
    rgba(255, 255, 255, 0.97)
    !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  gap: 7px !important;

  color: #283442 !important;

  box-shadow:
    0 5px 16px
    rgba(26, 39, 54, 0.18)
    !important;

  cursor: pointer !important;

  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease
    !important;
}


.apartment-group-marker:hover {
  transform:
    translateY(-1px)
    !important;

  box-shadow:
    0 7px 20px
    rgba(26, 39, 54, 0.22)
    !important;
}


.apartment-group-marker--active {
  border-color:
    #4A7DFF
    !important;

  transform:
    scale(1.06)
    !important;

  box-shadow:
    0 0 0 4px
    rgba(74, 125, 255, 0.16),

    0 8px 22px
    rgba(26, 39, 54, 0.24)
    !important;
}


.apartment-group-bed {
  width: 26px !important;
  height: 26px !important;

  display:
    inline-flex
    !important;

  align-items:
    center
    !important;

  justify-content:
    center
    !important;

  flex:
    0 0 auto
    !important;

  line-height:
    0
    !important;
}


.apartment-group-bed svg {
  width: 26px !important;
  height: 26px !important;

  display:
    block
    !important;
}


.apartment-group-count {
  min-width: 14px !important;

  color:
    #283442
    !important;

  font-size:
    17px
    !important;

  font-weight:
    800
    !important;

  line-height:
    1
    !important;

  text-align:
    center
    !important;

  letter-spacing:
    -0.02em
    !important;
}


/* На телефоне делаем чуть компактнее */

@media (max-width: 768px) {

  .apartment-group-marker {
    min-width:
      54px
      !important;

    height:
      44px
      !important;

    padding:
      0 10px
      !important;

    gap:
      6px
      !important;
  }

  .apartment-group-bed {
    width:
      24px
      !important;

    height:
      24px
      !important;
  }

  .apartment-group-bed svg {
    width:
      24px
      !important;

    height:
      24px
      !important;
  }

  .apartment-group-count {
    font-size:
      16px
      !important;
  }
}

/* === CIRCLE APARTMENT MARKERS OVERRIDE START === */

.apartment-group-marker {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  min-height: 52px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,0.97) !important;
  border: 1.5px solid rgba(94,110,128,0.35) !important;
  box-shadow: 0 5px 14px rgba(26,39,54,0.18) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  position: relative !important;
  overflow: visible !important;
  cursor: pointer !important;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease !important;
}

.apartment-group-marker:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 18px rgba(26,39,54,0.22) !important;
}

.apartment-group-marker--active {
  border-color: #4A7DFF !important;
  box-shadow:
    0 0 0 4px rgba(74,125,255,0.14),
    0 8px 20px rgba(26,39,54,0.24) !important;
  transform: scale(1.05) !important;
}

.apartment-group-bed {
  width: 22px !important;
  height: 22px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 0 !important;
  flex: 0 0 auto !important;
}

.apartment-group-bed svg {
  width: 22px !important;
  height: 22px !important;
  display: block !important;
}

.apartment-group-count {
  position: absolute !important;
  top: -4px !important;
  right: -4px !important;
  min-width: 19px !important;
  height: 19px !important;
  padding: 0 4px !important;
  border-radius: 999px !important;
  background: #2F4156 !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.16) !important;
}

@media (max-width: 768px) {
  .apartment-group-marker {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
  }

  .apartment-group-bed {
    width: 20px !important;
    height: 20px !important;
  }

  .apartment-group-bed svg {
    width: 20px !important;
    height: 20px !important;
  }

  .apartment-group-count {
    min-width: 18px !important;
    height: 18px !important;
    font-size: 10px !important;
    top: -3px !important;
    right: -3px !important;
  }
}

/* === CIRCLE APARTMENT MARKERS OVERRIDE END === */

/* === DETAIL GALLERY FINAL OVERRIDE START === */

/* ----------------------------------------------------------
   Экран подробной карточки
   ---------------------------------------------------------- */

.detail-screen {
  position: fixed !important;
  inset: 0 !important;

  width: 100% !important;
  height: 100vh !important;
  height: 100dvh !important;

  z-index: 5000 !important;

  background:
    var(--tg-theme-bg-color, #000)
    !important;

  color:
    var(--tg-theme-text-color, #fff)
    !important;

  display: flex !important;
  flex-direction: column !important;

  overflow: hidden !important;

  overscroll-behavior:
    none
    !important;
}


/* ----------------------------------------------------------
   Верхняя панель — всегда остаётся на месте
   ---------------------------------------------------------- */

.detail-header {
  position: relative !important;
  top: auto !important;

  flex:
    0 0 auto
    !important;

  width:
    100%
    !important;

  min-height:
    58px
    !important;

  padding:
    max(8px, env(safe-area-inset-top))
    10px
    8px
    !important;

  display:
    grid
    !important;

  grid-template-columns:
    auto minmax(0, 1fr) auto
    !important;

  align-items:
    center
    !important;

  gap:
    8px
    !important;

  background:
    var(--tg-theme-bg-color, #000)
    !important;

  border-bottom:
    1px solid
    rgba(255,255,255,.10)
    !important;

  z-index:
    30
    !important;
}


.detail-back {
  min-height:
    40px
    !important;

  padding:
    8px 13px
    !important;

  border:
    0
    !important;

  border-radius:
    12px
    !important;

  background:
    var(--tg-theme-secondary-bg-color, #1c1c1e)
    !important;

  color:
    var(--tg-theme-text-color, #fff)
    !important;

  font-size:
    15px
    !important;

  font-weight:
    600
    !important;
}


.detail-close {
  width:
    40px
    !important;

  height:
    40px
    !important;

  min-width:
    40px
    !important;

  border:
    0
    !important;

  border-radius:
    50%
    !important;

  background:
    var(--tg-theme-secondary-bg-color, #1c1c1e)
    !important;

  color:
    var(--tg-theme-text-color, #fff)
    !important;

  font-size:
    25px
    !important;

  line-height:
    1
    !important;
}


.detail-header-title {
  overflow:
    hidden
    !important;

  text-overflow:
    ellipsis
    !important;

  white-space:
    nowrap
    !important;

  text-align:
    center
    !important;

  font-size:
    15px
    !important;

  font-weight:
    600
    !important;
}


/* ----------------------------------------------------------
   Единственный скролл внутри карточки
   ---------------------------------------------------------- */

.detail-scroll {
  position:
    relative
    !important;

  flex:
    1 1 auto
    !important;

  min-height:
    0
    !important;

  width:
    100%
    !important;

  overflow-x:
    hidden
    !important;

  overflow-y:
    auto
    !important;

  -webkit-overflow-scrolling:
    touch
    !important;

  overscroll-behavior-y:
    contain
    !important;

  touch-action:
    pan-y
    !important;
}


/* ----------------------------------------------------------
   Основная фотография
   ---------------------------------------------------------- */

.gallery-block {
  position:
    relative
    !important;

  width:
    100%
    !important;

  background:
    #111
    !important;
}


.main-photo-wrap {
  position:
    relative
    !important;

  width:
    100%
    !important;

  min-height:
    260px
    !important;

  background:
    #111
    !important;

  overflow:
    hidden
    !important;
}


.main-gallery-image {
  display:
    block
    !important;

  width:
    100%
    !important;

  height:
    min(52vh, 430px)
    !important;

  object-fit:
    contain
    !important;

  background:
    #111
    !important;

  cursor:
    zoom-in
    !important;

  user-select:
    none
    !important;

  -webkit-user-drag:
    none
    !important;

  touch-action:
    pan-y
    !important;
}


/* ----------------------------------------------------------
   Стрелки фотографий
   ---------------------------------------------------------- */

.photo-arrow {
  position:
    absolute
    !important;

  top:
    50%
    !important;

  transform:
    translateY(-50%)
    !important;

  z-index:
    10
    !important;

  width:
    38px
    !important;

  height:
    48px
    !important;

  border:
    0
    !important;

  border-radius:
    12px
    !important;

  background:
    rgba(0,0,0,.48)
    !important;

  color:
    #fff
    !important;

  font-size:
    30px
    !important;
}


.photo-arrow-left {
  left:
    8px
    !important;
}


.photo-arrow-right {
  right:
    8px
    !important;
}


/* ----------------------------------------------------------
   Счётчик фото
   ---------------------------------------------------------- */

.photo-counter {
  position:
    absolute
    !important;

  right:
    10px
    !important;

  bottom:
    10px
    !important;

  z-index:
    12
    !important;

  padding:
    5px 9px
    !important;

  border-radius:
    999px
    !important;

  background:
    rgba(0,0,0,.62)
    !important;

  color:
    white
    !important;

  font-size:
    12px
    !important;

  font-weight:
    600
    !important;
}


/* ----------------------------------------------------------
   Миниатюры
   ---------------------------------------------------------- */

.thumbnail-strip {
  width:
    100%
    !important;

  display:
    flex
    !important;

  gap:
    7px
    !important;

  padding:
    9px 9px 10px
    !important;

  overflow-x:
    auto
    !important;

  overflow-y:
    hidden
    !important;

  -webkit-overflow-scrolling:
    touch
    !important;

  overscroll-behavior-x:
    contain
    !important;

  scroll-snap-type:
    x proximity
    !important;

  scrollbar-width:
    none
    !important;

  background:
    #111
    !important;
}


.thumbnail-strip::-webkit-scrollbar {
  display:
    none
    !important;
}


.thumbnail {
  flex:
    0 0 auto
    !important;

  width:
    74px
    !important;

  height:
    56px
    !important;

  object-fit:
    cover
    !important;

  border-radius:
    9px
    !important;

  border:
    2px solid transparent
    !important;

  opacity:
    .63
    !important;

  scroll-snap-align:
    center
    !important;

  transition:
    opacity .15s ease,
    border-color .15s ease,
    transform .15s ease
    !important;
}


.thumbnail.active {
  opacity:
    1
    !important;

  border-color:
    #4A7DFF
    !important;

  transform:
    scale(1.04)
    !important;
}


/* ----------------------------------------------------------
   Текст карточки
   ---------------------------------------------------------- */

.detail-content {
  width:
    100%
    !important;

  padding:
    18px 16px
    calc(48px + env(safe-area-inset-bottom))
    !important;

  font-size:
    16px
    !important;

  line-height:
    1.55
    !important;

  background:
    var(--tg-theme-bg-color, #000)
    !important;
}


.detail-content h2 {
  margin:
    5px 0 7px
    !important;

  font-size:
    25px
    !important;

  line-height:
    1.18
    !important;
}


.detail-content p {
  margin:
    14px 0
    !important;
}


.detail-actions {
  display:
    grid
    !important;

  grid-template-columns:
    1fr 1fr
    !important;

  gap:
    9px
    !important;

  margin:
    16px 0
    !important;
}


/* ----------------------------------------------------------
   FULLSCREEN PHOTO — выше абсолютно всего
   ---------------------------------------------------------- */

.photo-viewer {
  position:
    fixed
    !important;

  inset:
    0
    !important;

  width:
    100vw
    !important;

  height:
    100vh
    !important;

  height:
    100dvh
    !important;

  z-index:
    999999
    !important;

  background:
    #000
    !important;

  display:
    flex
    !important;

  align-items:
    center
    !important;

  justify-content:
    center
    !important;

  overflow:
    hidden
    !important;

  touch-action:
    pan-y
    !important;
}


.photo-viewer.hidden {
  display:
    none
    !important;
}


.viewer-image {
  display:
    block
    !important;

  width:
    100%
    !important;

  height:
    100%
    !important;

  object-fit:
    contain
    !important;

  background:
    #000
    !important;

  user-select:
    none
    !important;

  -webkit-user-drag:
    none
    !important;
}


.viewer-close {
  position:
    absolute
    !important;

  top:
    max(14px, env(safe-area-inset-top))
    !important;

  right:
    14px
    !important;

  z-index:
    1000001
    !important;

  width:
    44px
    !important;

  height:
    44px
    !important;

  border:
    0
    !important;

  border-radius:
    50%
    !important;

  background:
    rgba(255,255,255,.18)
    !important;

  color:
    white
    !important;

  font-size:
    30px
    !important;

  backdrop-filter:
    blur(8px)
    !important;
}


.viewer-arrow {
  position:
    absolute
    !important;

  top:
    50%
    !important;

  transform:
    translateY(-50%)
    !important;

  z-index:
    1000001
    !important;

  width:
    44px
    !important;

  height:
    58px
    !important;

  border:
    0
    !important;

  border-radius:
    12px
    !important;

  background:
    rgba(255,255,255,.14)
    !important;

  color:
    white
    !important;

  font-size:
    36px
    !important;
}


.viewer-left {
  left:
    10px
    !important;
}


.viewer-right {
  right:
    10px
    !important;
}


.viewer-counter {
  position:
    absolute
    !important;

  bottom:
    max(20px, env(safe-area-inset-bottom))
    !important;

  left:
    50%
    !important;

  transform:
    translateX(-50%)
    !important;

  z-index:
    1000001
    !important;

  padding:
    6px 11px
    !important;

  border-radius:
    999px
    !important;

  background:
    rgba(0,0,0,.60)
    !important;

  color:
    white
    !important;

  font-size:
    13px
    !important;
}


/* Пока fullscreen открыт,
   нижняя карточка не перехватывает жесты */

html.photo-viewer-open .detail-screen {
  pointer-events:
    none
    !important;
}


html.photo-viewer-open .photo-viewer {
  pointer-events:
    auto
    !important;
}


/* ----------------------------------------------------------
   MOBILE
   ---------------------------------------------------------- */

@media (max-width: 768px) {

  .main-gallery-image {
    height:
      min(45vh, 360px)
      !important;
  }

  .thumbnail {
    width:
      68px
      !important;

    height:
      52px
      !important;
  }

  .detail-content {
    padding-left:
      14px
      !important;

    padding-right:
      14px
      !important;
  }

  .detail-content h2 {
    font-size:
      23px
      !important;
  }

}

/* === DETAIL GALLERY FINAL OVERRIDE END === */

/* === FIX: скрываем подробную карточку, пока она не открыта === */

.detail-screen.hidden {
  display: none !important;
}

/* === CATALOG GROUP CHEVRON FINAL START === */

.catalog-group-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.catalog-group-text {
  min-width: 0;
  flex: 1 1 auto;
}

.catalog-group-chevron {
  flex: 0 0 auto;

  width: 32px;
  height: 32px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #a7b0bf;

  font-size: 25px;
  font-weight: 500;
  line-height: 1;

  opacity: .85;

  margin-right: 3px;
}

/* === CATALOG GROUP CHEVRON FINAL END === */


.group-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  color: #9fb0c7;
  opacity: 0.95;
  transform: translateY(-1px);
}

/* === CATEGORY CATALOG FINAL START === */

.catalog-category-item {
  min-height: 72px;
}

.catalog-category-main {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.catalog-category-icon {
  flex: 0 0 auto;

  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 11px;

  background: rgba(255,255,255,.06);

  font-size: 22px;
}

.catalog-group-chevron {
  flex: 0 0 auto;

  width: 30px;
  height: 30px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #9aa8bb;

  font-size: 24px;
  font-weight: 600;
  line-height: 1;
}

.catalog-empty {
  margin: 12px 2px;

  padding: 18px;

  border-radius: 14px;

  background:
    var(--tg-theme-secondary-bg-color, #181818);

  color:
    var(--tg-theme-hint-color, #9ca3af);

  font-size: 14px;
  line-height: 1.45;
}

.catalog-back-item {
  border-color: rgba(74,125,255,.26) !important;
}

.catalog-show-all-item {
  background: rgba(74,125,255,.10) !important;
  border-color: rgba(74,125,255,.28) !important;
}

/* === CATEGORY CATALOG FINAL END === */

/* === BOOKING FORM FINAL START === */

.booking-main-button {
  width: 100%;
  min-height: 52px;

  margin: 14px 0 18px;

  border: 0;
  border-radius: 15px;

  background: #2f80ed;
  color: #fff;

  font-size: 17px;
  font-weight: 700;

  box-shadow:
    0 7px 18px rgba(47,128,237,.22);
}


.booking-screen {
  position: fixed;
  inset: 0;

  z-index: 8000;

  width: 100%;
  height: 100vh;
  height: 100dvh;

  display: flex;
  flex-direction: column;

  background:
    var(--tg-theme-bg-color, #000);

  color:
    var(--tg-theme-text-color, #fff);

  overflow: hidden;
}


.booking-screen.hidden {
  display: none !important;
}


.booking-header {
  flex: 0 0 auto;

  min-height: 58px;

  padding:
    max(8px, env(safe-area-inset-top))
    10px
    8px;

  display: grid;
  grid-template-columns:
    auto minmax(0, 1fr) auto;

  align-items: center;
  gap: 8px;

  border-bottom:
    1px solid rgba(255,255,255,.10);

  background:
    var(--tg-theme-bg-color, #000);
}


.booking-header-title {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
}


.booking-back,
.booking-close {
  min-height: 40px;

  border: 0;
  border-radius: 12px;

  background:
    var(--tg-theme-secondary-bg-color, #1c1c1e);

  color:
    var(--tg-theme-text-color, #fff);
}


.booking-back {
  padding: 8px 13px;

  font-size: 15px;
  font-weight: 600;
}


.booking-close {
  width: 40px;

  font-size: 25px;
  line-height: 1;
}


.booking-scroll {
  flex: 1 1 auto;
  min-height: 0;

  overflow-y: auto;
  overflow-x: hidden;

  -webkit-overflow-scrolling: touch;

  overscroll-behavior-y: contain;
}


.booking-content {
  max-width: 680px;

  margin: 0 auto;

  padding:
    22px 16px
    calc(42px + env(safe-area-inset-bottom));
}


.booking-content h2 {
  margin: 0 0 8px;

  font-size: 26px;
}


.booking-intro {
  margin: 0 0 25px;

  color:
    var(--tg-theme-hint-color, #9ca3af);

  line-height: 1.48;
}


.booking-section-title {
  margin:
    26px 0 12px;

  font-size: 15px;
  font-weight: 800;
}


.booking-date-grid {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 10px;
}


.booking-field {
  display: block;

  margin-bottom: 14px;
}


.booking-field > span {
  display: block;

  margin: 0 0 7px;

  color:
    var(--tg-theme-hint-color, #9ca3af);

  font-size: 13px;
}


.booking-field input,
.booking-field textarea {
  width: 100%;

  border:
    1px solid rgba(255,255,255,.13);

  border-radius: 13px;

  background:
    var(--tg-theme-secondary-bg-color, #181818);

  color:
    var(--tg-theme-text-color, #fff);

  font: inherit;

  outline: none;
}


.booking-field input {
  height: 50px;

  padding: 0 13px;
}


.booking-field textarea {
  min-height: 100px;

  padding: 13px;

  resize: vertical;

  line-height: 1.45;
}


.booking-field input:focus,
.booking-field textarea:focus {
  border-color: #4a7dff;
}


.booking-stay-summary {
  margin-top: 4px;

  padding: 13px 14px;

  border-radius: 13px;

  background:
    rgba(74,125,255,.10);

  border:
    1px solid rgba(74,125,255,.24);
}


.booking-stay-summary > div {
  display: flex;

  justify-content: space-between;

  gap: 20px;

  padding: 4px 0;
}


.booking-counter-row {
  min-height: 60px;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 15px;

  padding: 10px 0;

  border-bottom:
    1px solid rgba(255,255,255,.08);
}


.booking-counter-title {
  font-size: 16px;
  font-weight: 600;
}


.booking-counter {
  display: flex;

  align-items: center;

  gap: 14px;
}


.booking-counter button {
  width: 38px;
  height: 38px;

  border: 0;
  border-radius: 50%;

  background:
    var(--tg-theme-secondary-bg-color, #222);

  color:
    var(--tg-theme-text-color, #fff);

  font-size: 24px;
  line-height: 1;
}


.booking-counter span {
  min-width: 20px;

  text-align: center;

  font-size: 17px;
  font-weight: 700;
}


.booking-error {
  margin: 15px 0;

  padding: 12px 13px;

  border-radius: 12px;

  background:
    rgba(220,53,69,.14);

  color: #ff8a96;

  line-height: 1.4;
}


.booking-submit {
  width: 100%;

  min-height: 54px;

  margin-top: 12px;

  border: 0;
  border-radius: 15px;

  background: #2f80ed;
  color: white;

  font-size: 17px;
  font-weight: 800;

  box-shadow:
    0 8px 20px rgba(47,128,237,.24);
}


.booking-note {
  margin-top: 14px;

  color:
    var(--tg-theme-hint-color, #9ca3af);

  font-size: 12px;
  line-height: 1.45;

  text-align: center;
}


@media (max-width: 420px) {

  .booking-date-grid {
    grid-template-columns: 1fr;
  }

}

/* === BOOKING FORM FINAL END === */

/* === BOOKING HEADER CLOSE ONLY START === */

.booking-header {
  display: grid;
  grid-template-columns: 1fr auto !important;
  align-items: center;
}

.booking-header-title {
  text-align: left !important;
  padding-left: 6px;
}

.booking-back {
  display: none !important;
}

/* === BOOKING HEADER CLOSE ONLY END === */

/* === BOOKING DATES MOBILE FINAL START === */

.booking-date-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.booking-date-grid .booking-field {
  min-width: 0;
  margin-bottom: 0;
}

.booking-date-grid .booking-field > span {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--tg-theme-hint-color, #a8a8ad);
}

.booking-date-grid input[type="date"] {
  width: 100%;
  min-width: 0;
  height: 56px;
  box-sizing: border-box;

  padding: 0 14px;

  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;

  background:
    var(--tg-theme-secondary-bg-color, #1c1c1e);

  color:
    var(--tg-theme-text-color, #ffffff);

  font-size: 16px;
  font-weight: 500;

  color-scheme: dark;

  -webkit-appearance: auto;
  appearance: auto;
}

.booking-date-grid input[type="date"]:focus {
  border-color: #4a8cff;
  outline: none;

  box-shadow:
    0 0 0 3px rgba(74,140,255,.12);
}

@media (max-width: 560px) {

  .booking-date-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .booking-date-grid input[type="date"] {
    height: 58px;
    font-size: 17px;
    border-radius: 15px;
  }

}

/* === BOOKING DATES MOBILE FINAL END === */

/* === BOOKING DATE WIDTH FIX IOS START === */

.booking-content,
.booking-date-grid,
.booking-date-grid .booking-field {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.booking-date-grid {
  overflow: hidden;
}

.booking-date-grid input[type="date"] {
  display: block;

  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;

  box-sizing: border-box !important;

  margin: 0;

  overflow: hidden;
}

@media (max-width: 560px) {

  .booking-date-grid {
    display: block !important;
    width: 100%;
  }

  .booking-date-grid .booking-field {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-bottom: 16px;
  }

  .booking-date-grid input[type="date"] {
    width: 100% !important;
    max-width: 100% !important;

    -webkit-appearance: none;
    appearance: none;
  }

}

/* === BOOKING DATE WIDTH FIX IOS END === */

/* ==========================================================
   DESKTOP FULL APARTMENT CARD
   Только экраны от 900px
   ========================================================== */

@media (min-width: 900px) {

  /* Вся область полной карточки */
  .detail-screen {
    background: #000;
  }

  /* Верхняя панель */
  .detail-header {
    min-height: 58px;
    padding: 8px 18px;

    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;

    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .detail-back {
    min-height: 40px;
    padding: 8px 15px;

    border-radius: 11px;

    font-size: 14px;
    font-weight: 600;
  }

  .detail-header-title {
    text-align: center;
    font-size: 15px;
    font-weight: 650;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .detail-close {
    width: 40px;
    height: 40px;

    border-radius: 12px;

    font-size: 22px;
  }


  /* Главная desktop-сетка */
  .detail-scroll {
    width: 100%;
    max-width: 1240px;

    margin: 0 auto;

    padding: 28px 28px 50px;

    box-sizing: border-box;

    display: grid;
    grid-template-columns:
      minmax(0, 1.18fr)
      minmax(360px, .82fr);

    gap: 34px;

    align-items: start;

    overflow-y: auto;
    overflow-x: hidden;
  }


  /* Левая колонка — фотографии */
  .gallery-block {
    min-width: 0;

    position: sticky;
    top: 0;

    align-self: start;

    border-radius: 18px;

    overflow: hidden;

    background: #111;
  }

  .main-photo-wrap {
    width: 100%;

    height: min(62vh, 620px);
    min-height: 420px;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    background: #111;

    overflow: hidden;
  }

  .main-gallery-image {
    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;

    background: #111;
  }


  /* Стрелки фото */
  .photo-arrow {
    width: 44px;
    height: 44px;

    border-radius: 50%;

    background: rgba(0,0,0,.62);

    backdrop-filter: blur(6px);

    font-size: 30px;
  }


  /* Счётчик фото */
  .photo-counter {
    right: 14px;
    bottom: 14px;

    padding: 5px 10px;

    border-radius: 20px;

    background: rgba(0,0,0,.68);

    font-size: 13px;
  }


  /* Миниатюры */
  .thumbnail-strip {
    padding: 12px;

    display: flex;
    gap: 9px;

    overflow-x: auto;

    background: #111;
  }

  .thumbnail {
    flex: 0 0 82px;

    width: 82px;
    height: 62px;

    border-radius: 9px;

    object-fit: cover;

    cursor: pointer;
  }


  /* Правая колонка */
  .detail-content {
    min-width: 0;

    padding: 4px 0 30px;

    box-sizing: border-box;
  }

  .detail-type {
    margin-bottom: 8px;

    font-size: 13px;
  }

  .detail-content h2 {
    margin: 0 0 7px;

    font-size: clamp(28px, 2.2vw, 38px);
    line-height: 1.12;
  }

  .detail-area {
    margin-bottom: 22px;

    font-size: 15px;
  }


  /* Маршрут + такси */
  .detail-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 10px;

    margin-top: 20px;
  }

  .detail-actions button {
    min-height: 48px;

    padding: 10px 14px;

    border-radius: 13px;

    font-size: 14px;
  }


  /* Главная кнопка бронирования */
  .booking-main-button {
    min-height: 54px;

    margin: 14px 0 26px;

    border-radius: 14px;

    font-size: 17px;
    font-weight: 750;
  }


  /* Текст характеристик */
  #detailContent {
    font-size: 15px;
    line-height: 1.55;
  }

}


/* Более широкие мониторы */
@media (min-width: 1300px) {

  .detail-scroll {
    max-width: 1320px;

    grid-template-columns:
      minmax(0, 1.25fr)
      minmax(400px, .75fr);

    gap: 42px;
  }

}


/* ==========================================================
   END DESKTOP FULL APARTMENT CARD
   ========================================================== */

/* === DETAIL DESKTOP NEARBY MAP START === */

.detail-nearby-map-block {
  display: none;
}


@media (min-width: 900px) {

  .detail-nearby-map-block {
    display: block;

    padding: 14px;

    border-top:
      1px solid rgba(255,255,255,.08);

    background: #111;
  }


  .detail-nearby-map-head {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 16px;

    margin-bottom: 12px;
  }


  .detail-nearby-map-title {
    color: #fff;

    font-size: 16px;
    font-weight: 750;
  }


  .detail-nearby-map-subtitle {
    margin-top: 3px;

    color: rgba(255,255,255,.55);

    font-size: 12px;
  }


  .detail-show-main-map {
    flex: 0 0 auto;

    min-height: 38px;

    padding: 8px 12px;

    border:
      1px solid rgba(74,140,255,.35);

    border-radius: 11px;

    background:
      rgba(74,140,255,.10);

    color: #8bb8ff;

    font-size: 12px;
    font-weight: 650;

    cursor: pointer;
  }


  .detail-nearby-map {
    width: 100%;

    height: 350px;

    overflow: hidden;

    border-radius: 14px;

    background: #171717;
  }


  .detail-map-marker {
    position: relative;

    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border:
      2px solid rgba(255,255,255,.88);

    border-radius: 50%;

    background: #fff;

    box-shadow:
      0 5px 15px rgba(0,0,0,.30);

    cursor: pointer;

    transform:
      translate(-50%, -50%);
  }


  .detail-map-marker--active {
    border-color: #3186ef;

    box-shadow:
      0 0 0 4px rgba(49,134,239,.25),
      0 6px 16px rgba(0,0,0,.35);
  }


  .detail-map-marker-bed {
    font-size: 21px;
    line-height: 1;
  }


  .detail-map-marker-count {
    position: absolute;

    top: -6px;
    right: -6px;

    min-width: 19px;
    height: 19px;

    padding: 0 5px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    border:
      2px solid #fff;

    border-radius: 10px;

    background: #252a31;

    color: #fff;

    font-size: 10px;
    font-weight: 800;
    line-height: 1;
  }

}

/* === DETAIL DESKTOP NEARBY MAP END === */

/* ==========================================================
   DESKTOP CATALOG SIDE PANEL
   Только для экранов от 900px
   ========================================================== */

@media (min-width: 900px) {

  /* Сам каталог превращаем в плавающую панель */
  #listPanel {
    position: fixed !important;

    top: 96px !important;
    left: 20px !important;
    right: auto !important;
    bottom: 20px !important;

    width: 410px !important;
    max-width: calc(100vw - 40px) !important;

    height: auto !important;
    max-height: calc(100dvh - 116px) !important;

    display: flex;
    flex-direction: column;

    overflow: hidden !important;

    border:
      1px solid rgba(255,255,255,.10);

    border-radius: 20px;

    background:
      rgba(13,13,14,.96);

    box-shadow:
      0 18px 55px rgba(0,0,0,.45);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    z-index: 7000;
  }


  /* hidden продолжает полностью скрывать каталог */
  #listPanel.hidden {
    display: none !important;
  }


  /* Верхняя панель каталога */
  #listPanel .list-header {
    flex: 0 0 auto;

    min-height: 62px;

    padding: 12px 14px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    box-sizing: border-box;

    border-bottom:
      1px solid rgba(255,255,255,.08);

    background:
      rgba(17,17,18,.98);
  }


  #listPanel .list-header h2 {
    margin: 0;

    font-size: 21px;
    line-height: 1.2;
  }


  /* Кнопка закрытия */
  #listPanel .list-header button {
    flex: 0 0 auto;

    min-height: 38px;

    padding: 7px 12px;

    border-radius: 11px;
  }


  /* Список становится независимо прокручиваемым */
  #objectList {
    flex: 1 1 auto;

    min-height: 0;

    overflow-y: auto !important;
    overflow-x: hidden !important;

    padding: 10px;

    box-sizing: border-box;

    scrollbar-width: thin;
  }


  /* Карточки внутри панели компактнее */
  #objectList .list-item {
    width: 100%;

    min-height: 68px;

    margin: 0 0 9px;

    padding: 12px 14px;

    border-radius: 14px;

    box-sizing: border-box;

    text-align: left;
  }


  #objectList .list-item-title {
    font-size: 15px;
    line-height: 1.3;
  }


  #objectList .list-item-meta {
    margin-top: 5px;

    font-size: 12px;
    line-height: 1.35;
  }


  /* Категории каталога */
  #objectList .catalog-category-item {
    min-height: 72px;
  }


  /* Кнопка возврата */
  #objectList .catalog-back-item {
    position: sticky;
    top: 0;

    z-index: 3;

    background:
      rgba(26,26,28,.98);

    backdrop-filter: blur(12px);
  }


  /* Показать все */
  #objectList .catalog-show-all-item {
    min-height: 54px;

    background:
      rgba(42,105,220,.10) !important;
  }


  /* Стрелочки справа */
  #objectList .catalog-group-chevron {
    width: 26px;
    height: 26px;

    font-size: 21px;
  }

}


/* Немного шире на больших мониторах */
@media (min-width: 1400px) {

  #listPanel {
    width: 430px !important;
  }

}

/* ==========================================================
   END DESKTOP CATALOG SIDE PANEL
   ========================================================== */

/* === DESKTOP CATALOG POSITION FIX START === */

@media (min-width: 900px) {

  #listPanel {
    top: 126px !important;
    bottom: 18px !important;

    max-height: calc(100dvh - 144px) !important;

    width: 395px !important;
  }

}

@media (min-width: 1400px) {

  #listPanel {
    width: 410px !important;
  }

}

/* === DESKTOP CATALOG POSITION FIX END === */

/* === BRAND HEADER FINAL START === */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;

  min-width: 0;
}

.brand-logo {
  flex: 0 0 auto;

  width: 44px;
  height: 44px;

  object-fit: contain;

  border-radius: 12px;

  filter:
    drop-shadow(0 4px 10px rgba(0,0,0,.28));
}

.brand-text {
  min-width: 0;
}

.brand-eyebrow {
  margin-bottom: 2px;

  color:
    var(--tg-theme-hint-color, #9aa0a6);

  font-size: 12px;
  line-height: 1.15;
}

.brand-title {
  margin: 0;

  color:
    var(--tg-theme-text-color, #fff);

  font-size: 26px;
  line-height: 1.05;
  font-weight: 800;

  letter-spacing: -.02em;

  white-space: nowrap;
}

@media (max-width: 700px) {

  .topbar {
    gap: 10px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .brand {
    gap: 9px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;

    border-radius: 10px;
  }

  .brand-eyebrow {
    font-size: 10px;
  }

  .brand-title {
    font-size: 20px;
  }

  .top-actions {
    gap: 6px;
  }

  .top-actions .top-button {
    padding-left: 10px;
    padding-right: 10px;

    font-size: 12px;
  }

}

@media (max-width: 430px) {

  .brand-logo {
    width: 34px;
    height: 34px;
  }

  .brand-eyebrow {
    display: none;
  }

  .brand-title {
    font-size: 18px;
  }

}

/* === BRAND HEADER FINAL END === */

/* ==========================================================
   GRAPHITE DARK THEME
   ========================================================== */

:root {
  --app-bg: #0F1115;
  --panel-bg: #181B20;
  --panel-bg-soft: #14171C;
  --panel-border: rgba(255,255,255,.08);
  --text-main: #FFFFFF;
  --text-muted: #9AA3B0;
}

html,
body,
.app {
  background: var(--app-bg) !important;
  color: var(--text-main);
}

.topbar {
  background: var(--app-bg) !important;
  border-bottom-color: var(--panel-border) !important;
}

.detail-screen,
.booking-screen {
  background: var(--app-bg) !important;
}

.detail-header,
.booking-header {
  background: var(--app-bg) !important;
  border-bottom-color: var(--panel-border) !important;
}

#listPanel {
  background: rgba(24,27,32,.97) !important;
  border-color: var(--panel-border) !important;
}

#listPanel .list-header {
  background: rgba(20,23,28,.98) !important;
  border-bottom-color: var(--panel-border) !important;
}

.list-item,
.object-card,
.booking-field input,
.booking-field textarea,
.booking-counter button {
  background: var(--panel-bg) !important;
  border-color: var(--panel-border) !important;
}

.catalog-back-item,
.catalog-show-all-item {
  background: var(--panel-bg-soft) !important;
}

.gallery-block,
.main-photo-wrap,
.thumbnail-strip {
  background: var(--panel-bg-soft) !important;
}

.detail-content,
.booking-content {
  color: var(--text-main);
}

.detail-type,
.detail-area,
.booking-intro,
.booking-field > span,
.list-item-meta,
.brand-eyebrow {
  color: var(--text-muted) !important;
}

/* ==========================================================
   END GRAPHITE DARK THEME
   ========================================================== */

/* ==========================================================
   DESKTOP WEBSITE LAYOUT
   Только компьютер, mobile не меняем
   ========================================================== */

@media (min-width: 900px) {

  :root {
    --desktop-header-height: 82px;
    --desktop-gap: 16px;
    --desktop-sidebar-width: 395px;
  }


  /* ----------------------------------------------------------
     ВЕСЬ САЙТ
     ---------------------------------------------------------- */

  html,
  body {
    width: 100%;
    height: 100%;

    margin: 0;

    overflow: hidden;

    background: #0F1115 !important;
  }


  .app {
    width: 100%;
    height: 100dvh;

    display: grid;

    grid-template-rows:
      var(--desktop-header-height)
      minmax(0, 1fr);

    background: #0F1115 !important;

    overflow: hidden;
  }


  /* ----------------------------------------------------------
     ШАПКА
     ---------------------------------------------------------- */

  .topbar {
    position: relative;

    z-index: 8000;

    width: 100%;
    height: var(--desktop-header-height);
    min-height: var(--desktop-header-height);

    box-sizing: border-box;

    padding: 12px 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom:
      1px solid rgba(255,255,255,.07);

    background:
      rgba(15,17,21,.98) !important;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }


  /* Логотип + название */
  .brand {
    display: flex;

    align-items: center;

    gap: 12px;

    min-width: 0;
  }


  .brand-logo {
    width: 46px;
    height: 46px;

    flex: 0 0 46px;

    border-radius: 13px;

    object-fit: contain;

    filter:
      drop-shadow(
        0 5px 12px rgba(0,0,0,.30)
      );
  }


  .brand-eyebrow {
    margin-bottom: 3px;

    font-size: 12px;
    line-height: 1;

    color: #929BA8 !important;
  }


  .brand-title {
    margin: 0;

    font-size: 25px;
    line-height: 1.05;
    font-weight: 800;

    letter-spacing: -.025em;

    color: #fff;
  }


  /* ----------------------------------------------------------
     КНОПКИ В ШАПКЕ
     ---------------------------------------------------------- */

  .top-actions {
    display: flex;

    align-items: center;

    gap: 9px;
  }


  .top-button {
    min-height: 40px;

    padding: 8px 15px;

    border:
      1px solid rgba(255,255,255,.10);

    border-radius: 12px;

    background:
      #1A1E24;

    color: #fff;

    font-size: 13px;
    font-weight: 650;

    cursor: pointer;

    transition:
      background .15s ease,
      border-color .15s ease,
      transform .15s ease;
  }


  .top-button:hover {
    background: #20252D;

    border-color:
      rgba(255,255,255,.16);
  }


  .top-button:active {
    transform: scale(.98);
  }


  /*
    На компьютере каталог уже открыт постоянно,
    поэтому эта кнопка больше не нужна.
  */
  #listButton {
    display: none !important;
  }


  /* ----------------------------------------------------------
     ОСНОВНАЯ КАРТА
     ---------------------------------------------------------- */

  .map-wrap {
    position: relative;

    width: auto;
    height: auto;
    min-height: 0;

    margin:
      0
      var(--desktop-gap)
      var(--desktop-gap);

    overflow: hidden;

    border-radius: 20px;

    border:
      1px solid rgba(255,255,255,.07);

    background: #181B20;

    box-shadow:
      0 10px 35px rgba(0,0,0,.22);
  }


  #map {
    width: 100% !important;
    height: 100% !important;

    min-height: 0;
  }


  /* ----------------------------------------------------------
     БОКОВОЙ КАТАЛОГ
     ---------------------------------------------------------- */

  #listPanel {
    position: fixed !important;

    top:
      calc(
        var(--desktop-header-height)
        + var(--desktop-gap)
      ) !important;

    left:
      calc(
        var(--desktop-gap)
        + 8px
      ) !important;

    right: auto !important;

    bottom:
      calc(
        var(--desktop-gap)
        + 8px
      ) !important;

    width:
      var(--desktop-sidebar-width) !important;

    height: auto !important;

    max-height:
      calc(
        100dvh
        - var(--desktop-header-height)
        - var(--desktop-gap) * 2
        - 16px
      ) !important;

    display: flex;

    flex-direction: column;

    overflow: hidden !important;

    border:
      1px solid rgba(255,255,255,.10);

    border-radius: 18px;

    background:
      rgba(24,27,32,.96) !important;

    box-shadow:
      0 18px 50px rgba(0,0,0,.38);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    z-index: 7000;
  }


  #listPanel.hidden {
    display: none !important;
  }


  #listPanel .list-header {
    flex: 0 0 auto;

    min-height: 60px;

    padding: 11px 14px;

    box-sizing: border-box;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 10px;

    border-bottom:
      1px solid rgba(255,255,255,.07);

    background:
      rgba(20,23,28,.98) !important;
  }


  #listPanel .list-header h2 {
    margin: 0;

    font-size: 20px;
    line-height: 1.15;
    font-weight: 750;
  }


  #objectList {
    flex: 1 1 auto;

    min-height: 0;

    padding: 10px;

    overflow-y: auto !important;
    overflow-x: hidden !important;

    box-sizing: border-box;

    scrollbar-width: thin;
  }


  #objectList .list-item {
    width: 100%;

    min-height: 66px;

    margin: 0 0 8px;

    padding: 11px 13px;

    box-sizing: border-box;

    border-radius: 13px;

    background:
      #181B20 !important;

    transition:
      background .15s ease,
      border-color .15s ease,
      transform .15s ease;
  }


  #objectList .list-item:hover {
    background:
      #20242B !important;

    border-color:
      rgba(255,255,255,.14) !important;
  }


  #objectList .list-item:active {
    transform: scale(.995);
  }


  #objectList .list-item-title {
    font-size: 15px;
    line-height: 1.3;
  }


  #objectList .list-item-meta {
    margin-top: 4px;

    font-size: 12px;
    line-height: 1.35;

    color: #949EAB !important;
  }


  /* ----------------------------------------------------------
     СТАТУС ЗАГРУЗКИ
     ---------------------------------------------------------- */

  .status {
    border-radius: 12px;

    background:
      rgba(15,17,21,.90);

    backdrop-filter: blur(12px);
  }


  /* ----------------------------------------------------------
     ПОЛНАЯ КАРТОЧКА
     ---------------------------------------------------------- */

  .detail-screen {
    background:
      #0F1115 !important;
  }


  .detail-header {
    min-height: 62px;

    padding: 10px 22px;

    background:
      #0F1115 !important;

    border-bottom:
      1px solid rgba(255,255,255,.07);
  }


  .detail-scroll {
    width: calc(100% - 40px);

    max-width: 1320px;

    margin: 0 auto;

    padding:
      26px 0
      50px;

    box-sizing: border-box;
  }


  /* ----------------------------------------------------------
     ФОРМА БРОНИРОВАНИЯ НА DESKTOP
     ---------------------------------------------------------- */

  .booking-screen {
    background:
      rgba(8,10,13,.86) !important;

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }


  .booking-header {
    width: min(680px, calc(100% - 40px));

    margin: 22px auto 0;

    box-sizing: border-box;

    border:
      1px solid rgba(255,255,255,.08);

    border-bottom: 0;

    border-radius:
      18px 18px 0 0;

    background:
      #181B20 !important;
  }


  .booking-scroll {
    width: min(680px, calc(100% - 40px));

    height: auto;

    max-height:
      calc(100dvh - 110px);

    margin:
      0 auto
      22px;

    flex: 0 1 auto;

    border:
      1px solid rgba(255,255,255,.08);

    border-top: 0;

    border-radius:
      0 0 18px 18px;

    background:
      #181B20;

    box-shadow:
      0 24px 70px rgba(0,0,0,.48);
  }


  .booking-content {
    max-width: none;

    padding:
      20px
      26px
      32px;
  }

}


/* На больших мониторах даём панели чуть больше места */
@media (min-width: 1450px) {

  :root {
    --desktop-sidebar-width: 420px;
  }

}


/* ==========================================================
   END DESKTOP WEBSITE LAYOUT
   ========================================================== */

/* === BOOKING DATE VISUAL FINAL START === */

.booking-date-grid {
  gap: 14px;
}

.booking-date-control {
  position: relative;

  width: 100%;
  min-width: 0;
}

.booking-date-control input[type="date"] {
  position: relative;

  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;

  height: 56px;

  box-sizing: border-box;

  padding:
    0 15px;

  border:
    1px solid
    rgba(255,255,255,.11);

  border-radius: 14px;

  background:
    #181B20 !important;

  color:
    #FFFFFF !important;

  font-size: 16px;
  font-weight: 600;

  text-align: left;

  color-scheme: dark;

  cursor: pointer;
}

.booking-date-control input[type="date"]:focus {
  border-color:
    rgba(74,140,255,.75);

  outline: none;

  box-shadow:
    0 0 0 3px
    rgba(74,140,255,.12);
}

.booking-date-placeholder {
  position: absolute;

  inset: 0;

  z-index: 2;

  display: flex;
  align-items: center;

  gap: 9px;

  padding:
    0 15px;

  box-sizing: border-box;

  pointer-events: none;

  color: #8F98A6;

  font-size: 15px;
  font-weight: 500;
}

.booking-date-placeholder.hidden {
  display: none !important;
}

.booking-date-icon {
  font-size: 17px;
  opacity: .9;
}


/*
  Safari/iPhone иногда добавляет
  слишком большой внутренний отступ.
*/
.booking-date-control
input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
  margin: 0;
}

.booking-date-control
input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: .72;

  cursor: pointer;
}


@media (max-width: 560px) {

  .booking-date-grid {
    display: grid !important;

    grid-template-columns: 1fr !important;

    gap: 14px;
  }

  .booking-date-grid .booking-field {
    margin-bottom: 0 !important;
  }

  .booking-date-grid
  .booking-field > span {
    margin-bottom: 7px;

    font-size: 13px;
    font-weight: 600;
  }

  .booking-date-control
  input[type="date"] {
    height: 54px;

    padding:
      0 14px;

    border-radius: 13px;

    font-size: 16px;

    -webkit-appearance: none;
    appearance: none;
  }

  .booking-date-placeholder {
    padding:
      0 14px;

    font-size: 15px;
  }

}

/* === BOOKING DATE VISUAL FINAL END === */

/* === BOOKING DATE VERTICAL CENTER FIX START === */

.booking-date-control input[type="date"] {
  display: flex !important;
  align-items: center !important;

  height: 54px !important;

  padding-top: 0 !important;
  padding-bottom: 0 !important;

  line-height: 54px !important;
}

.booking-date-control
input[type="date"]::-webkit-date-and-time-value {
  display: flex !important;
  align-items: center !important;

  height: 100% !important;

  line-height: normal !important;

  padding: 0 !important;
  margin: 0 !important;

  text-align: left !important;
}

.booking-date-control
input[type="date"]::-webkit-datetime-edit {
  display: flex !important;
  align-items: center !important;

  height: 100% !important;

  padding: 0 !important;
}

.booking-date-control
input[type="date"]::-webkit-datetime-edit-fields-wrapper {
  display: flex !important;
  align-items: center !important;

  height: 100% !important;
}

@media (max-width: 560px) {

  .booking-date-control input[type="date"] {
    height: 54px !important;
    line-height: 54px !important;
  }

}

/* === BOOKING DATE VERTICAL CENTER FIX END === */

/* === DATE EMPTY PLACEHOLDER FIX START === */

/*
  Когда дата ещё не выбрана,
  скрываем системные день/месяц/год браузера.
  Наша подсказка остаётся видимой поверх поля.
*/

.booking-date-control.is-empty
input[type="date"] {
  color: transparent !important;
}

.booking-date-control.is-empty
input[type="date"]::-webkit-datetime-edit {
  color: transparent !important;
}

.booking-date-control.is-empty
input[type="date"]::-webkit-datetime-edit-fields-wrapper {
  color: transparent !important;
}

.booking-date-control.is-empty
input[type="date"]::-webkit-datetime-edit-text,
.booking-date-control.is-empty
input[type="date"]::-webkit-datetime-edit-day-field,
.booking-date-control.is-empty
input[type="date"]::-webkit-datetime-edit-month-field,
.booking-date-control.is-empty
input[type="date"]::-webkit-datetime-edit-year-field {
  color: transparent !important;
}


/*
  После выбора даты возвращаем нормальный текст.
*/

.booking-date-control:not(.is-empty)
input[type="date"] {
  color: #ffffff !important;
}

.booking-date-control:not(.is-empty)
input[type="date"]::-webkit-datetime-edit {
  color: #ffffff !important;
}


/*
  Подсказка поверх пустого поля.
*/

.booking-date-placeholder {
  z-index: 3 !important;

  display: flex;
  align-items: center;

  height: 100%;

  white-space: nowrap;
}


/*
  На компьютере поля чуть компактнее.
*/

@media (min-width: 900px) {

  .booking-date-control
  input[type="date"] {
    height: 54px !important;
  }

  .booking-date-placeholder {
    font-size: 14px;
  }

}

/* === DATE EMPTY PLACEHOLDER FIX END === */

/* === HIDE DESKTOP DATE PICKER ICON START === */

@media (min-width: 900px) {

  .booking-date-control
  input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

}

/* === HIDE DESKTOP DATE PICKER ICON END === */

/* === DATE PICKER CLICK FIX START === */

.booking-date-control {
  cursor: pointer;
}

.booking-date-control input[type="date"] {
  cursor: pointer !important;
}

/*
  Индикатор оставляем невидимым,
  но не обнуляем его размеры полностью.
*/
@media (min-width: 900px) {

  .booking-date-control
  input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0 !important;
    width: 32px !important;
    height: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer !important;
  }

}

/* === DATE PICKER CLICK FIX END === */



/* === EXCURSION DETAILS START === */

.excursion-detail-intro {
  margin: 0 0 22px;
  padding: 16px 18px;

  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;

  background: rgba(255,255,255,.035);

  font-size: 15px;
  line-height: 1.55;
}

.excursion-detail-section {
  margin-top: 26px;
}

.excursion-detail-section h3 {
  margin: 0 0 14px;

  font-size: 17px;
  line-height: 1.3;
}

.excursion-detail-block {
  padding: 12px 0;

  border-bottom:
    1px solid rgba(255,255,255,.07);
}

.excursion-detail-block:last-child {
  border-bottom: 0;
}

.excursion-detail-label {
  margin-bottom: 5px;

  color: var(--hint, #9AA3B0);

  font-size: 13px;
}

.excursion-detail-value {
  font-size: 15px;
  line-height: 1.45;
}

.excursion-detail-description {
  font-size: 15px;
  line-height: 1.65;
}

#excursionBookButton {
  margin-bottom: 18px;
}

/* === EXCURSION DETAILS END === */


/* === DETAIL ACTIONS HIDDEN FIX === */

#detailActions.hidden {
  display: none !important;
}

/* === END DETAIL ACTIONS HIDDEN FIX === */



/* === DESKTOP DETAIL HEADER VISIBLE FIX START === */

@media (min-width: 900px) {

  /*
    Основная шапка сайта занимает 82px.
    Полную карточку начинаем под ней,
    чтобы detail-header не прятался
    за верхней панелью сайта.
  */

  #detailScreen {
    top: var(--desktop-header-height, 82px) !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;

    width: 100% !important;

    height:
      calc(
        100dvh - var(--desktop-header-height, 82px)
      )
      !important;
  }


  #detailScreen .detail-header {
    display: grid !important;

    flex: 0 0 auto !important;

    min-height: 58px !important;

    box-sizing: border-box !important;

    position: relative !important;
    z-index: 50 !important;

    background: #0F1115 !important;

    border-bottom:
      1px solid rgba(255,255,255,.08)
      !important;
  }


  #detailScreen .detail-back {
    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    min-height: 40px !important;

    padding: 8px 15px !important;

    border:
      1px solid rgba(255,255,255,.10)
      !important;

    border-radius: 11px !important;

    background: #181B20 !important;
    color: #fff !important;

    font-size: 14px !important;
    font-weight: 650 !important;

    cursor: pointer !important;
  }


  #detailScreen .detail-back:hover {
    background: #20242B !important;
  }


  #detailScreen .detail-close {
    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    cursor: pointer !important;
  }

}

/* === DESKTOP DETAIL HEADER VISIBLE FIX END === */




/* === EXCURSION BOOKING FORM START === */

.excursion-booking-object {
  margin: 0 0 18px;
  padding: 14px 16px;

  border:
    1px solid rgba(255,255,255,.08);

  border-radius: 14px;

  background:
    rgba(255,255,255,.035);

  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}


.booking-field select {
  width: 100%;
  min-height: 48px;

  box-sizing: border-box;

  padding: 0 14px;

  border:
    1px solid rgba(255,255,255,.10);

  border-radius: 12px;

  outline: none;

  background: #181B20;
  color: #fff;

  font: inherit;
}


.booking-field select:focus {
  border-color:
    rgba(49,134,239,.75);

  box-shadow:
    0 0 0 3px
    rgba(49,134,239,.12);
}


.excursion-booking-hint {
  margin-top: 7px;

  color:
    rgba(255,255,255,.55);

  font-size: 12px;
  line-height: 1.4;
}


#excursionBookingScreen
.booking-screen {
  z-index: 9100;
}


@media (min-width: 900px) {

  #excursionBookingScreen
  .booking-content {

    width: 100%;
    max-width: 660px;

    margin-left: auto;
    margin-right: auto;
  }

}

/* === EXCURSION BOOKING FORM END === */



/* === EXCURSION DATE VISUAL FIX START === */

#excursionDate {
  color: transparent !important;
}

#excursionDate::-webkit-datetime-edit {
  color: transparent !important;
}

#excursionDate.excursion-date-has-value {
  color: #fff !important;
}

#excursionDate.excursion-date-has-value::-webkit-datetime-edit {
  color: #fff !important;
}

#excursionDate::-webkit-calendar-picker-indicator {
  cursor: pointer;
}

/* === EXCURSION DATE VISUAL FIX END === */




/* === EXCURSION PRICE ESTIMATE START === */

.excursion-price-estimate {
  margin: 22px 0 26px;
  padding: 16px 18px;

  border:
    1px solid rgba(49,134,239,.28);

  border-radius: 15px;

  background:
    rgba(49,134,239,.08);
}


.excursion-price-title {
  margin-bottom: 10px;

  font-size: 16px;
  font-weight: 750;
}


.excursion-price-details {
  display: grid;
  gap: 6px;

  color:
    rgba(255,255,255,.72);

  font-size: 13px;
  line-height: 1.45;
}


.excursion-price-total {
  margin-top: 12px;

  font-size: 18px;
  font-weight: 800;
}


.excursion-price-note {
  margin-top: 8px;

  color:
    rgba(255,255,255,.48);

  font-size: 11px;
  line-height: 1.4;
}

/* === EXCURSION PRICE ESTIMATE END === */




/* ==========================================================
   DESKTOP RELATED CARDS START
   Мобильная версия полностью скрыта
   ========================================================== */

.desktop-related-section {
  display: none;
}


@media (min-width: 900px) {

  .desktop-related-section {
    grid-column: 1 / -1;

    min-width: 0;

    margin-top: 8px;
    padding-top: 26px;

    border-top:
      1px solid rgba(255,255,255,.08);
  }


  .desktop-related-section.hidden {
    display: none !important;
  }


  .desktop-related-section:not(.hidden) {
    display: block;
  }


  .desktop-related-head {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 16px;
  }


  .desktop-related-head h3 {
    margin: 0;

    color: #fff;

    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
  }


  .desktop-related-subtitle {
    margin-top: 6px;

    color:
      rgba(255,255,255,.50);

    font-size: 13px;
  }


  .desktop-related-arrows {
    display: flex;
    gap: 8px;

    flex: 0 0 auto;
  }


  .desktop-related-arrows button {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border:
      1px solid rgba(255,255,255,.10);

    border-radius: 12px;

    background: #181B20;
    color: #fff;

    font-size: 27px;
    line-height: 1;

    cursor: pointer;

    transition:
      background .15s ease,
      border-color .15s ease,
      transform .15s ease;
  }


  .desktop-related-arrows button:hover {
    background: #232831;

    border-color:
      rgba(255,255,255,.18);
  }


  .desktop-related-arrows button:active {
    transform: scale(.96);
  }


  .desktop-related-track {
    width: 100%;
    min-width: 0;

    display: flex;
    gap: 14px;

    overflow-x: auto;
    overflow-y: hidden;

    padding:
      2px 2px 12px;

    scroll-behavior: smooth;

    overscroll-behavior-x: contain;

    scrollbar-width: thin;

    scroll-snap-type:
      x proximity;
  }


  .desktop-related-card {
    flex:
      0 0 245px;

    width: 245px;

    padding: 0;

    overflow: hidden;

    border:
      1px solid rgba(255,255,255,.09);

    border-radius: 16px;

    background: #171A1F;

    color: #fff;

    text-align: left;

    cursor: pointer;

    scroll-snap-align: start;

    box-shadow:
      0 8px 24px rgba(0,0,0,.16);

    transition:
      transform .16s ease,
      border-color .16s ease,
      background .16s ease;
  }


  .desktop-related-card:hover {
    transform:
      translateY(-3px);

    border-color:
      rgba(74,140,255,.42);

    background: #1C2026;
  }


  .desktop-related-photo {
    width: 100%;
    height: 145px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #101216;

    font-size: 40px;
  }


  .desktop-related-photo img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
  }


  .desktop-related-photo-empty {
    color:
      rgba(255,255,255,.45);
  }


  .desktop-related-card-body {
    padding: 13px 14px 15px;
  }


  .desktop-related-card-title {
    min-height: 42px;

    display: -webkit-box;

    overflow: hidden;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    font-size: 14px;
    line-height: 1.45;
    font-weight: 750;
  }


  .desktop-related-card-price {
    margin-top: 9px;

    color: #8BB8FF;

    font-size: 13px;
    font-weight: 650;
  }

}

/* ==========================================================
   DESKTOP RELATED CARDS END
   ========================================================== */




/* === RELATED APARTMENT META START === */

@media (min-width: 900px) {

  .desktop-related-apartment-meta {
    margin-top: 7px;

    color:
      rgba(255,255,255,.55);

    font-size: 12px;
    line-height: 1.4;
  }

}

/* === RELATED APARTMENT META END === */

/* === MAP MARKER GEO ANCHOR FIX START === */

.apartment-group-marker {
  transform: translate(-50%, -50%) !important;
  transform-origin: center center !important;
}

.apartment-group-marker:hover {
  transform: translate(-50%, calc(-50% - 1px)) !important;
}

.apartment-group-marker--active {
  transform: translate(-50%, -50%) scale(1.05) !important;
}

/* === MAP MARKER GEO ANCHOR FIX END === */

/* === APARTMENT MARKER ANCHOR FIX START === */

/*
  Координата апартаментов привязана к центру HTML-маркера.
  Благодаря этому метка не должна визуально смещаться при изменении zoom.
*/
.apartment-group-marker {
  transform: translate(-50%, -50%) !important;
  transform-origin: center center !important;
}

.apartment-group-marker:hover {
  transform: translate(-50%, -50%) !important;
}

.apartment-group-marker--active {
  transform: translate(-50%, -50%) scale(1.05) !important;
}

/* === APARTMENT MARKER ANCHOR FIX END === */

/* === UNIFIED APARTMENT MAP PIN START === */

.apartment-map-marker {
  padding: 0 !important;
}

.apartment-map-marker .apartment-map-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  transform: rotate(45deg);
}

.apartment-map-marker .apartment-map-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.apartment-map-marker--active {
  box-shadow:
    0 0 0 4px rgba(0,0,0,.15),
    0 3px 9px rgba(0,0,0,.30);
}

/* === UNIFIED APARTMENT MAP PIN END === */

/* === MAP FILTERS START === */

.map-filters {
  position: fixed;
  z-index: 500;

  background: rgba(255,255,255,.98);
  color: #111;

  box-shadow:
    0 12px 40px rgba(0,0,0,.25);

  overflow: hidden;
}

.map-filters.hidden {
  display: none;
}

.catalog-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  padding: 16px 18px 12px;

  border-bottom:
    1px solid rgba(0,0,0,.08);
}

.catalog-filter-title {
  font-size: 22px;
  font-weight: 800;
}

.catalog-filter-close {
  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  border: 0;
  border-radius: 50%;

  background: #f1f1f1;
  color: #222;

  font-size: 25px;
  line-height: 1;

  cursor: pointer;
}

.catalog-filter-grid {
  display: grid;
  gap: 14px;
}

.map-filter-chip {
  border: 0;
  background: transparent;
  color: #222;

  cursor: pointer;
}

.filter-icon {
  display: grid;
  place-items: center;

  background: #f0f1f3;
}


/* ==========================================================
   DESKTOP
   ========================================================== */

@media (min-width: 900px) {

  .map-filters {
    top: 88px;
    left: 18px;

    width: 390px;
    max-height: calc(100vh - 110px);

    border-radius: 22px;

    overflow-y: auto;
  }

  .catalog-filter-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));

    padding: 18px;
  }

  .map-filter-chip {
    min-height: 112px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    gap: 9px;

    padding: 8px 4px;

    text-align: center;

    font-size: 13px;
    font-weight: 650;

    border-radius: 16px;
  }

  .map-filter-chip:hover {
    background: #f6f6f6;
  }

  .filter-icon {
    width: 58px;
    height: 58px;

    border-radius: 50%;

    font-size: 26px;
  }

  .map-filter-chip.active .filter-icon {
    background: #111;
    color: #fff;
  }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 899px) {

  .map-filters {
    left: 0;
    right: 0;
    bottom: 0;

    top: auto;

    width: 100%;
    max-height: 72vh;

    border-radius:
      24px 24px 0 0;

    padding-bottom:
      max(12px, env(safe-area-inset-bottom));

    overflow-y: auto;
  }

  .catalog-filter-header {
    position: sticky;
    top: 0;

    background: rgba(255,255,255,.98);

    z-index: 2;
  }

  .catalog-filter-grid {
    grid-template-columns:
      repeat(4, minmax(0, 1fr));

    padding:
      18px 12px 22px;
  }

  .map-filter-chip {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 8px;

    min-width: 0;

    padding: 6px 2px;

    text-align: center;

    font-size: 12px;
    font-weight: 600;

    line-height: 1.15;
  }

  .filter-icon {
    width: 56px;
    height: 56px;

    border-radius: 50%;

    font-size: 25px;
  }

  .map-filter-chip.active .filter-icon {
    background: #111;
    color: #fff;
  }

}

/* === MAP FILTERS END === */

/* === DESKTOP LIST PANEL MATCH CATALOG START === */

@media (min-width: 900px) {

  .list-panel {
    top: 88px !important;
    left: 18px !important;
    right: auto !important;
    bottom: auto !important;

    width: 390px !important;
    height: calc(100vh - 110px) !important;
    max-height: calc(100vh - 110px) !important;

    border-radius: 22px !important;

    overflow-y: auto !important;

    box-shadow:
      0 12px 40px rgba(0,0,0,.25) !important;
  }

  .list-header {
    border-radius:
      22px 22px 0 0;
  }

}

/* === DESKTOP LIST PANEL MATCH CATALOG END === */


/* === EXCURSION DESKTOP PANEL POLISH START === */

@media (min-width: 900px) {

  .list-panel .object-list {
    padding: 12px 14px 16px !important;
    gap: 10px !important;
  }

  .list-panel .catalog-back-item {
    min-height: 48px;

    display: flex;
    align-items: center;

    padding: 10px 12px !important;

    background: transparent !important;

    border: 0 !important;
    border-bottom: 1px solid var(--border) !important;

    border-radius: 0 !important;

    font-weight: 700;
  }

  .list-panel .catalog-back-item:hover {
    background: rgba(255,255,255,.04) !important;
  }

  .list-panel .list-header {
    min-height: 64px;
    padding: 12px 14px !important;
  }

}

/* === EXCURSION DESKTOP PANEL POLISH END === */


/* === MAP ZOOM DOTS START === */

/*
  На дальнем масштабе обычные объекты становятся
  маленькими точками. Featured-объекты остаются pin-маркерами.
*/

.guide-map-marker.map-dot-mode {
  width: 11px !important;
  height: 11px !important;
  min-width: 11px !important;
  min-height: 11px !important;

  padding: 0 !important;

  border: 2px solid #fff !important;
  border-radius: 50% !important;

  background: #2478ff !important;

  box-shadow:
    0 1px 4px rgba(0,0,0,.28) !important;

  transform:
    translate(-50%, -50%) !important;

  cursor: pointer;
}

.guide-map-marker.map-dot-mode > * {
  display: none !important;
}

/* === MAP ZOOM DOTS END === */


/* === MAP MARKER LAYERS START === */

.guide-map-marker {
  z-index: 20;
}

.guide-map-marker.map-dot-mode {
  z-index: 10 !important;
}

.guide-map-marker.map-featured-marker {
  z-index: 100 !important;
}

/* === MAP MARKER LAYERS END === */


/* === DESKTOP MAP HOVER CARD START === */

.map-hover-card {
  position: absolute;

  z-index: 900;

  width: 290px;

  overflow: hidden;

  border-radius: 16px;

  background: var(--bg);
  color: var(--text);

  border:
    1px solid var(--border);

  box-shadow:
    0 14px 40px rgba(0,0,0,.34);

  pointer-events: none;

  opacity: 1;

  transform:
    translateY(0);

  transition:
    opacity .12s ease,
    transform .12s ease;
}

.map-hover-card.hidden {
  display: none;
}

.map-hover-photo-wrap {
  width: 100%;
  height: 145px;

  overflow: hidden;

  background: #111;
}

.map-hover-photo-wrap.hidden {
  display: none;
}

.map-hover-photo {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}

.map-hover-body {
  padding: 13px 14px 14px;
}

.map-hover-title {
  font-size: 16px;
  font-weight: 800;

  line-height: 1.25;
}

.map-hover-meta {
  margin-top: 6px;

  color: var(--hint);

  font-size: 13px;
  line-height: 1.35;
}


/* Обычная метка при наведении */

.guide-map-marker.map-marker-hovered:not(.map-dot-mode) {
  transform:
    translate(-50%, -100%)
    rotate(-45deg)
    scale(1.14);

  transition:
    transform .12s ease;
}


/* Маленькая точка при наведении */

.guide-map-marker.map-dot-mode.map-marker-hovered {
  transform:
    translate(-50%, -50%)
    scale(1.55)
    !important;
}


/* На телефоне hover-карточки вообще нет */

@media (max-width: 899px) {

  .map-hover-card {
    display: none !important;
  }

}

/* === DESKTOP MAP HOVER CARD END === */


/* === HOVER CARD GRAPHITE THEME START === */

.map-hover-card {
  background: rgba(32, 36, 42, .98) !important;
  color: #fff !important;

  border:
    1px solid rgba(255,255,255,.10) !important;

  box-shadow:
    0 14px 42px rgba(0,0,0,.32) !important;
}

.map-hover-title {
  color: #fff;
}

.map-hover-meta {
  color: rgba(255,255,255,.68) !important;
}

.map-hover-photo-wrap {
  background: #2a2f36 !important;
}

/* === HOVER CARD GRAPHITE THEME END === */


/* === MAP HOVER EXTRA START === */

.map-hover-extra {
  margin-top: 8px;

  color: rgba(255,255,255,.88);

  font-size: 13px;
  line-height: 1.38;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;

  overflow: hidden;
}

.map-hover-extra.hidden {
  display: none;
}

/* === MAP HOVER EXTRA END === */


/* === DOT TO PIN ON HOVER START === */

@media (min-width: 900px) {

  .guide-map-marker.map-dot-mode.map-marker-hover-pin {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;

    padding: 0 !important;

    border: 2px solid #111 !important;
    border-radius: 50% 50% 50% 10% !important;

    background: #fff !important;

    transform:
      translate(-50%, -100%)
      rotate(-45deg)
      scale(1.08)
      !important;

    box-shadow:
      0 4px 12px rgba(0,0,0,.34) !important;
  }

  .guide-map-marker.map-dot-mode.map-marker-hover-pin > * {
    display: block !important;
  }

}

/* === DOT TO PIN ON HOVER END === */


/* === MAP HOVER INTERACTION FINAL === */

@media (min-width: 900px) {

  .map-hover-card {
    pointer-events: auto !important;
    cursor: pointer;
  }

  .map-hover-card:hover {
    box-shadow:
      0 18px 48px rgba(0,0,0,.40) !important;
  }

}

/* === MAP HOVER INTERACTION FINAL END === */


/* === DESKTOP COMPACT OBJECT CARD START === */

@media (min-width: 900px) {

  .object-card {
    left: 24px !important;
    right: auto !important;
    bottom: 24px !important;

    width: 420px !important;
    max-width: calc(100vw - 48px) !important;

    max-height: calc(100vh - 140px) !important;

    border-radius: 20px !important;

    overflow: hidden !important;

    z-index: 700 !important;
  }

  .object-card .compact-gallery {
    height: 215px !important;
  }

  .object-card .card-body {
    padding: 16px !important;

    max-height: 340px !important;
    overflow-y: auto !important;
  }

  .object-card .card-body h2 {
    font-size: 22px !important;
    line-height: 1.15 !important;

    margin:
      6px 42px 6px 0 !important;
  }

  .object-card .card-type,
  .object-card .card-area {
    font-size: 13px !important;
  }

  .object-card .card-body p {
    font-size: 14px !important;
    line-height: 1.45 !important;

    margin:
      12px 0 0 !important;
  }

  .object-card .card-actions {
    grid-template-columns:
      1fr 1fr !important;

    gap: 8px !important;
    margin-top: 14px !important;
  }

  .object-card .primary-button,
  .object-card .secondary-button {
    min-height: 44px !important;
  }

  .object-card .card-close {
    top: 10px !important;
    right: 10px !important;
  }

}

/* === DESKTOP COMPACT OBJECT CARD END === */


/* === HIDE OPEN YANDEX MAPS BUTTON === */

.ymaps3--open-maps-button {
  display: none !important;
}

/* === HIDE OPEN YANDEX MAPS BUTTON END === */


/* === HIDE FULL OPEN YANDEX MAPS CONTROL === */

button.ymaps3--control-button:has(.ymaps3--open-maps-button) {
  display: none !important;
}

/* === HIDE FULL OPEN YANDEX MAPS CONTROL END === */


/* === COMPACT + HOVER GALLERY START === */

.compact-gallery {
  position: relative;
}

.compact-photo-arrow {
  position: absolute;
  top: 50%;
  z-index: 12;

  width: 38px;
  height: 38px;

  transform: translateY(-50%);

  border: 0;
  border-radius: 50%;

  background: rgba(0,0,0,.58);
  color: #fff;

  font-size: 30px;
  line-height: 1;

  display: grid;
  place-items: center;

  cursor: pointer;

  backdrop-filter: blur(4px);
}

.compact-photo-arrow-left {
  left: 10px;
}

.compact-photo-arrow-right {
  right: 10px;
}

.compact-photo-arrow:hover {
  background: rgba(0,0,0,.78);
}

.compact-photo-arrow.hidden {
  display: none !important;
}

.map-hover-photo {
  opacity: 1;

  transition:
    opacity .18s ease;
}

.map-hover-photo.map-hover-photo-changing {
  opacity: .18;
}

/* === COMPACT + HOVER GALLERY END === */


/* === HOVER PHOTO INDICATORS START === */

.map-hover-photo-wrap {
  position: relative;
}

.map-hover-indicators {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  z-index: 6;
  pointer-events: none;
}

.map-hover-indicators.hidden {
  display: none;
}

.map-hover-indicator {
  width: 18px;
  height: 3px;

  border-radius: 999px;
  background: rgba(255,255,255,.35);

  transition:
    background .18s ease,
    transform .18s ease,
    opacity .18s ease;
}

.map-hover-indicator--active {
  background: rgba(255,255,255,.98);
  transform: scaleX(1.15);
}

.map-hover-card:hover .map-hover-indicator {
  opacity: 1;
}

/* === HOVER PHOTO INDICATORS END === */


/* === ACTIVE MAP MARKER START === */

.guide-map-marker.map-marker-selected {
  transform:
    translate(-50%, -100%)
    rotate(-45deg)
    scale(1.16) !important;

  box-shadow:
    0 0 0 5px rgba(47,128,237,.30),
    0 5px 16px rgba(0,0,0,.38) !important;

  border-color: #2f80ed !important;
}

/*
  Если метка ещё находится в dot-mode,
  selected всё равно отображаем как полноценный pin.
*/
.guide-map-marker.map-dot-mode.map-marker-selected {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;

  border-radius:
    50% 50% 50% 10% !important;

  background: #fff !important;

  transform:
    translate(-50%, -100%)
    rotate(-45deg)
    scale(1.16) !important;
}

.guide-map-marker.map-dot-mode.map-marker-selected > * {
  display: block !important;
}

/* === ACTIVE MAP MARKER END === */


/* === COMPACT GALLERY SWIPE START === */

.compact-gallery {
  touch-action: pan-y;
  user-select: none;
}

.compact-image {
  -webkit-user-drag: none;
  user-select: none;
}

/* === COMPACT GALLERY SWIPE END === */


/* === COMPACT PHOTO SWIPE ANIMATION START === */

.compact-image {
  transition:
    transform .14s ease,
    opacity .14s ease;
  will-change: transform, opacity;
}

.compact-image.compact-photo-exit-left {
  transform: translateX(-18px);
  opacity: 0;
}

.compact-image.compact-photo-exit-right {
  transform: translateX(18px);
  opacity: 0;
}

.compact-image.compact-photo-enter-right {
  transform: translateX(18px);
  opacity: 0;
}

.compact-image.compact-photo-enter-left {
  transform: translateX(-18px);
  opacity: 0;
}

/* === COMPACT PHOTO SWIPE ANIMATION END === */


/* === FILM STRIP COMPACT GALLERY START === */

.compact-gallery-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;

  touch-action: pan-y;
}

.compact-gallery-track {
  height: 100%;
  display: flex;

  transition:
    transform .28s cubic-bezier(.22,.61,.36,1);

  will-change: transform;
}

.compact-gallery-track.is-dragging {
  transition: none;
}

.compact-gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.compact-gallery-slide-image {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  user-select: none;
  -webkit-user-drag: none;
}

/* Старые анимации одного img больше не нужны */
.compact-image.compact-photo-exit-left,
.compact-image.compact-photo-exit-right,
.compact-image.compact-photo-enter-left,
.compact-image.compact-photo-enter-right {
  transform: none !important;
  opacity: 1 !important;
}

/* === FILM STRIP COMPACT GALLERY END === */


/* === DETAIL FILM GALLERY START === */

.main-photo-wrap {
  position: relative;
  overflow: hidden;
}

.detail-gallery-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: pan-y;
}

.detail-gallery-track {
  display: flex;
  width: 100%;
  height: 100%;

  transition:
    transform .28s cubic-bezier(.22,.61,.36,1);

  will-change: transform;
}

.detail-gallery-track.is-dragging {
  transition: none;
}

.detail-gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.detail-gallery-slide-image {
  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;

  user-select: none;
  -webkit-user-drag: none;
}

/* === DETAIL FILM GALLERY END === */


/* === DETAIL GALLERY SMOOTH SNAP START === */

.detail-gallery-track {
  transition:
    transform .34s cubic-bezier(.22,.72,.28,1);
}

/* === DETAIL GALLERY SMOOTH SNAP END === */


/* === THUMBNAIL AUTO SCROLL === */

.thumbnail-strip {
  scroll-behavior: smooth !important;
}

/* === THUMBNAIL AUTO SCROLL END === */


/* === MOBILE THUMBNAIL FOLLOW FIX === */

@media (max-width: 899px) {

  .thumbnail-strip {
    scroll-snap-type: none !important;
  }

}

/* === MOBILE THUMBNAIL FOLLOW FIX END === */


/* === THUMBNAIL TRACK SLIDER START === */

.thumbnail-strip {
  display: block !important;
  overflow: hidden !important;
  box-sizing: border-box;
}

.thumbnail-track {
  display: flex;
  align-items: center;
  gap: 7px;

  width: max-content;

  transition:
    transform .30s cubic-bezier(.22,.72,.28,1);

  will-change: transform;
}

.thumbnail-track .thumbnail {
  flex: 0 0 auto !important;
}

/* === THUMBNAIL TRACK SLIDER END === */


/* === THUMBNAIL SOFT FOLLOW START === */

.thumbnail-track {
  transition:
    transform .42s cubic-bezier(.22,.68,.28,1) !important;
}

/* === THUMBNAIL SOFT FOLLOW END === */


/* ==========================================================
   APARTMENT CARD THEME
   ========================================================== */

.apartment-card-theme {
  background:
    linear-gradient(
      160deg,
      #20262e 0%,
      #171b21 58%,
      #12161b 100%
    ) !important;

  border:
    1px solid rgba(255,255,255,.10) !important;

  box-shadow:
    0 18px 50px rgba(0,0,0,.40) !important;
}

.apartment-card-theme .card-body {
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.025),
      rgba(255,255,255,0)
    );
}

.apartment-card-theme .card-type {
  display: inline-flex;
  align-items: center;

  width: max-content;

  padding: 5px 9px;
  margin-bottom: 7px;

  border:
    1px solid rgba(80,155,255,.26);

  border-radius: 999px;

  background:
    rgba(47,128,237,.12);

  color:
    #9fc8ff !important;

  font-size: 12px !important;
  font-weight: 600;
}

.apartment-card-theme #cardTitle {
  color: #fff;

  letter-spacing: -.2px;
}

.apartment-card-theme .card-area {
  display: inline-flex;
  align-items: center;

  margin-top: 3px;

  color:
    rgba(255,255,255,.62) !important;

  font-size: 13px;
}

.apartment-card-theme #cardDescription {
  padding-top: 13px;

  border-top:
    1px solid rgba(255,255,255,.08);

  color:
    rgba(255,255,255,.88);

  line-height: 1.5;
}

.apartment-card-theme .compact-gallery {
  background: #111820;
}

.apartment-card-theme .photo-counter {
  background:
    rgba(15,19,24,.78) !important;

  border:
    1px solid rgba(255,255,255,.10);

  backdrop-filter:
    blur(6px);
}

.apartment-card-theme .primary-button {
  box-shadow:
    0 8px 22px rgba(47,128,237,.22);
}


/* ==========================================================
   APARTMENT FULL DETAIL THEME
   ========================================================== */

.apartment-detail-theme {
  background:
    #11151a !important;
}

.apartment-detail-theme .detail-content {
  background:
    linear-gradient(
      155deg,
      #1d232a 0%,
      #15191f 52%,
      #101318 100%
    );

  border:
    1px solid rgba(255,255,255,.08);

  border-radius: 20px;

  padding: 18px !important;

  box-shadow:
    0 14px 38px rgba(0,0,0,.24);
}

.apartment-detail-theme .detail-type {
  display: inline-flex;

  width: max-content;

  padding: 5px 10px;

  border-radius: 999px;

  background:
    rgba(47,128,237,.13);

  border:
    1px solid rgba(73,151,255,.24);

  color:
    #9fc8ff !important;
}

.apartment-detail-theme .detail-area {
  color:
    rgba(255,255,255,.62) !important;
}

.apartment-detail-theme .detail-content h2 {
  color: #fff;
}

.apartment-detail-theme .gallery-block {
  border:
    1px solid rgba(255,255,255,.08);

  border-radius: 20px;

  overflow: hidden;

  box-shadow:
    0 14px 38px rgba(0,0,0,.22);
}

.apartment-detail-theme .thumbnail-strip {
  background:
    #151a20 !important;

  border-top:
    1px solid rgba(255,255,255,.07);
}

.apartment-detail-theme .thumbnail {
  opacity: .72;
}

.apartment-detail-theme .thumbnail.active {
  opacity: 1;

  border-color:
    #3f91ff !important;

  box-shadow:
    0 0 0 2px rgba(63,145,255,.15);
}

.apartment-detail-theme .detail-content strong {
  color: #fff;
}

/* ==========================================================
   APARTMENT CARD THEME END
   ========================================================== */


/* === DETAIL NEARBY MAP ALL DEVICES === */

.detail-nearby-map-block {
  display: block !important;
}

@media (max-width: 899px) {

  .detail-nearby-map-block {
    padding: 10px !important;
  }

  .detail-nearby-map-head {
    gap: 10px;
  }

  .detail-nearby-map {
    height: 260px !important;
    border-radius: 14px;
  }

  .detail-show-main-map {
    font-size: 11px;
    padding: 7px 9px;
  }
}

/* === DETAIL NEARBY MAP ALL DEVICES END === */


/* === MOBILE DETAIL MAP POSITION === */

@media (max-width: 899px) {

  .detail-content .detail-nearby-map-block {
    margin-top: 26px;

    padding:
      16px 0 4px
      !important;

    border-top:
      1px solid rgba(255,255,255,.10);

    background:
      transparent !important;
  }

  .detail-content .detail-nearby-map-head {
    padding:
      0 2px;
  }

  .detail-content .detail-nearby-map {
    margin-top: 12px;

    height:
      260px !important;
  }

}

/* === MOBILE DETAIL MAP POSITION END === */


/* === DETAIL MAP CLICKABLE MARKERS === */

.detail-map-marker {
  cursor: pointer;
  transition:
    transform .18s ease,
    box-shadow .18s ease;
}

@media (hover: hover) {

  .detail-map-marker:hover {
    transform:
      translate(-50%, -50%)
      scale(1.08);

    box-shadow:
      0 8px 20px rgba(0,0,0,.38);
  }

}

/* === DETAIL MAP CLICKABLE MARKERS END === */


/* === DETAIL MAP APARTMENT PREVIEW === */

.detail-nearby-map-block {
  position: relative;
}

.detail-map-apartment-preview {
  position: absolute;

  left: 24px;
  right: 24px;
  bottom: 24px;

  z-index: 50;

  padding: 14px 48px 14px 15px;

  border:
    1px solid rgba(255,255,255,.14);

  border-radius: 16px;

  background:
    rgba(18,22,28,.94);

  box-shadow:
    0 12px 34px rgba(0,0,0,.42);

  backdrop-filter:
    blur(12px);

  color: #fff;
}

.detail-map-preview-title {
  font-size: 15px;
  font-weight: 750;
  line-height: 1.25;
}

.detail-map-preview-area {
  margin-top: 5px;

  color:
    rgba(255,255,255,.62);

  font-size: 13px;
}

.detail-map-preview-price {
  margin-top: 7px;

  font-size: 14px;
  font-weight: 700;
}

.detail-map-preview-open {
  margin-top: 11px;

  min-height: 38px;

  padding: 8px 13px;

  border: 0;
  border-radius: 10px;

  background: #3186ef;
  color: #fff;

  font-weight: 700;

  cursor: pointer;
}

.detail-map-preview-close {
  position: absolute;

  top: 8px;
  right: 9px;

  width: 30px;
  height: 30px;

  border: 0;
  border-radius: 50%;

  background:
    rgba(255,255,255,.08);

  color: #fff;

  font-size: 21px;
  line-height: 1;

  cursor: pointer;
}

@media (max-width: 899px) {

  .detail-map-apartment-preview {
    left: 16px;
    right: 16px;
    bottom: 16px;

    padding:
      13px 44px 13px 14px;
  }

  .detail-map-preview-open {
    width: 100%;
  }
}

/* === DETAIL MAP APARTMENT PREVIEW END === */


/* ==========================================================
   COMPACT MAP APARTMENT PREVIEW
   ========================================================== */

.detail-map-apartment-preview {
  left: 12px !important;
  right: auto !important;
  bottom: 12px !important;

  width: min(360px, calc(100% - 24px)) !important;
  min-height: 94px;

  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 11px;

  padding: 9px 38px 9px 9px !important;

  box-sizing: border-box;

  border-radius: 15px !important;

  background:
    rgba(24,29,36,.96) !important;

  box-shadow:
    0 10px 28px rgba(0,0,0,.38) !important;

  backdrop-filter:
    blur(12px);
}

.detail-map-preview-photo {
  width: 96px;
  height: 82px;

  display: block;

  object-fit: cover;

  border-radius: 11px;

  background: #252b33;
}

.detail-map-preview-photo--empty {
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 27px;
}

.detail-map-preview-info {
  min-width: 0;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.detail-map-preview-title {
  max-width: 100%;

  overflow: hidden;

  font-size: 14px !important;
  font-weight: 750;
  line-height: 1.25;

  white-space: nowrap;
  text-overflow: ellipsis;
}

.detail-map-preview-area {
  margin-top: 3px !important;

  font-size: 12px !important;
}

.detail-map-preview-price {
  margin-top: 4px !important;

  font-size: 12px !important;
  font-weight: 700;
}

.detail-map-preview-open {
  width: auto !important;
  min-height: 0 !important;

  margin-top: 6px !important;

  padding: 5px 9px !important;

  border-radius: 8px !important;

  font-size: 12px;
  font-weight: 700;
}

.detail-map-preview-close {
  top: 7px !important;
  right: 7px !important;

  width: 26px !important;
  height: 26px !important;

  font-size: 18px !important;
}


/* Телефон */

@media (max-width: 899px) {

  .detail-map-apartment-preview {
    left: 8px !important;
    right: auto !important;
    bottom: 8px !important;

    width:
      min(340px, calc(100% - 16px))
      !important;

    min-height: 88px;

    grid-template-columns:
      88px minmax(0, 1fr);

    gap: 9px;

    padding:
      8px 34px 8px 8px
      !important;

    border-radius:
      14px !important;
  }

  .detail-map-preview-photo {
    width: 88px;
    height: 76px;

    border-radius: 10px;
  }

  .detail-map-preview-title {
    font-size:
      13px !important;
  }

  .detail-map-preview-area,
  .detail-map-preview-price {
    font-size:
      11px !important;
  }

  .detail-map-preview-open {
    margin-top:
      5px !important;

    padding:
      4px 8px !important;

    font-size: 11px;
  }

}

/* ==========================================================
   END COMPACT MAP APARTMENT PREVIEW
   ========================================================== */


/* ==========================================================
   MOBILE PERSISTENT MAIN HEADER
   ========================================================== */

.brand {
  cursor: pointer;
  user-select: none;
}

.brand:active {
  opacity: .82;
}

@media (max-width: 899px) {

  :root {
    --mobile-main-header-height: 64px;
  }

  .topbar {
    position: relative !important;

    z-index: 6001 !important;

    min-height:
      var(--mobile-main-header-height);

    box-sizing: border-box;

    background:
      var(--app-bg, #0F1115)
      !important;
  }

  /*
    Полная карточка теперь начинается
    после фирменного хедера.
  */
  .detail-screen {
    top:
      var(--mobile-main-header-height)
      !important;

    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;

    width: 100% !important;

    height:
      calc(
        100dvh -
        var(--mobile-main-header-height)
      )
      !important;

    inset:
      var(--mobile-main-header-height)
      0
      0
      0
      !important;
  }

  /*
    Аналогично экран бронирования,
    чтобы хедер не исчезал и там.
  */
  .booking-screen {
    top:
      var(--mobile-main-header-height)
      !important;

    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;

    height:
      calc(
        100dvh -
        var(--mobile-main-header-height)
      )
      !important;
  }

}

/* ==========================================================
   END MOBILE PERSISTENT MAIN HEADER
   ========================================================== */


/* ==========================================================
   APARTMENT DETAIL POLISH
   ========================================================== */

.apartment-price-card {
  margin: 18px 0 14px;

  padding: 15px 16px;

  border:
    1px solid rgba(64,145,255,.22);

  border-radius: 16px;

  background:
    linear-gradient(
      135deg,
      rgba(47,128,237,.15),
      rgba(47,128,237,.055)
    );
}

.apartment-price-label {
  color: #9aa8ba;

  font-size: 12px;
}

.apartment-price-value {
  margin-top: 3px;

  color: #fff;

  font-size: 23px;
  line-height: 1.1;
  font-weight: 800;
}

.apartment-price-note {
  margin-top: 4px;

  color: #aeb7c4;

  font-size: 12px;
}

.apartment-spec-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 9px;

  margin: 12px 0;
}

.apartment-spec-item {
  min-width: 0;

  padding: 11px 12px;

  border:
    1px solid rgba(255,255,255,.08);

  border-radius: 13px;

  background:
    rgba(255,255,255,.035);
}

.apartment-spec-item span {
  display: block;

  margin-bottom: 3px;

  color: #8f99a8;

  font-size: 11px;
}

.apartment-spec-item strong {
  display: block;

  color: #fff;

  font-size: 14px;
  line-height: 1.25;
}

.apartment-feature-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 9px;

  margin: 12px 0 18px;
}

.apartment-feature-item {
  display: flex;
  align-items: center;

  gap: 9px;

  padding: 11px 12px;

  border:
    1px solid rgba(255,255,255,.08);

  border-radius: 13px;

  background:
    rgba(255,255,255,.03);
}

.apartment-feature-icon {
  flex: 0 0 auto;

  font-size: 20px;
}

.apartment-feature-item small {
  display: block;

  color: #8f99a8;

  font-size: 11px;
}

.apartment-feature-item strong {
  display: block;

  margin-top: 2px;

  color: #fff;

  font-size: 13px;
}

.apartment-info-section {
  margin-top: 22px;

  padding-top: 20px;

  border-top:
    1px solid rgba(255,255,255,.09);
}

.apartment-info-section h3 {
  margin: 0 0 10px;

  color: #fff;

  font-size: 17px;
}

.apartment-info-section p {
  margin: 0;

  color:
    rgba(255,255,255,.82);

  line-height: 1.62;
}

.apartment-address-row {
  display: flex;

  gap: 10px;

  padding: 11px 0;
}

.apartment-address-row + .apartment-address-row {
  border-top:
    1px solid rgba(255,255,255,.07);
}

.apartment-address-row > span {
  flex: 0 0 auto;

  font-size: 18px;
}

.apartment-address-row small {
  display: block;

  margin-bottom: 3px;

  color: #8f99a8;

  font-size: 11px;
}


/* ---------------- MOBILE ---------------- */

@media (max-width: 899px) {

  .apartment-detail-theme .detail-header {
    min-height:
      50px !important;

    padding:
      6px 8px !important;
  }

  .apartment-detail-theme .detail-back {
    min-height:
      36px !important;

    padding:
      7px 10px !important;

    font-size:
      13px !important;
  }

  .apartment-detail-theme .detail-close {
    width:
      36px !important;

    height:
      36px !important;

    min-height:
      36px !important;
  }

  .apartment-detail-theme .detail-header-title {
    font-size:
      13px !important;
  }

  /*
    Главное фото чуть ниже,
    чтобы быстрее увидеть информацию.
  */
  .apartment-detail-theme .detail-gallery-viewport {
    height:
      min(46vh, 390px)
      !important;
  }

  .apartment-detail-theme
  .detail-gallery-slide-image {
    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;
  }

  .apartment-detail-theme .detail-content {
    margin:
      10px 8px 0 !important;

    padding:
      16px !important;

    border-radius:
      18px !important;
  }

  .apartment-detail-theme .detail-type {
    padding:
      4px 9px !important;

    font-size:
      12px !important;
  }

  .apartment-detail-theme .detail-content h2 {
    margin:
      11px 0 6px !important;

    font-size:
      clamp(24px, 7vw, 31px)
      !important;

    line-height:
      1.12 !important;
  }

  .apartment-detail-theme .detail-area {
    margin-bottom:
      14px !important;
  }

  .apartment-detail-theme .detail-actions {
    gap:
      8px !important;
  }

  .apartment-detail-theme
  .detail-actions button {
    min-height:
      48px !important;

    padding:
      10px !important;

    font-size:
      14px !important;
  }

  .apartment-detail-theme
  .booking-main-button {
    min-height:
      52px !important;

    margin-top:
      14px !important;

    border-radius:
      14px !important;

    font-size:
      17px !important;
  }

  .apartment-price-card {
    margin:
      17px 0 12px;

    padding:
      13px 14px;
  }

  .apartment-price-value {
    font-size:
      21px;
  }

  .apartment-spec-grid,
  .apartment-feature-grid {
    gap:
      7px;
  }

  .apartment-spec-item,
  .apartment-feature-item {
    padding:
      10px;
  }

  .apartment-info-section {
    margin-top:
      18px;

    padding-top:
      17px;
  }

}

/* ==========================================================
   END APARTMENT DETAIL POLISH
   ========================================================== */


/* ==========================================================
   SHOPPING CENTER CARDS
   ========================================================== */

.shopping-center-card-theme {
  background:
    linear-gradient(
      155deg,
      #201c28 0%,
      #18171d 55%,
      #111318 100%
    ) !important;

  border:
    1px solid rgba(208,150,255,.16) !important;
}

.shopping-center-card-theme .card-type {
  display: inline-flex;

  width: max-content;

  padding: 5px 10px;

  border-radius: 999px;

  background:
    rgba(178,104,255,.13);

  border:
    1px solid rgba(196,132,255,.22);

  color:
    #d5afff !important;
}

.shopping-center-card-theme h2 {
  color: #fff;
}

.shopping-center-card-theme .card-area {
  color:
    rgba(255,255,255,.62);
}

.shopping-center-card-theme .primary-button {
  background:
    linear-gradient(
      135deg,
      #7f56d9,
      #6840c0
    ) !important;

  box-shadow:
    0 8px 22px rgba(127,86,217,.22);
}


/* FULL CARD */

.shopping-center-detail-theme {
  background:
    #111318 !important;
}

.shopping-center-detail-theme .detail-content {
  background:
    linear-gradient(
      155deg,
      #211c29 0%,
      #18171e 52%,
      #111318 100%
    );

  border:
    1px solid rgba(208,150,255,.13);

  border-radius: 20px;

  padding:
    18px !important;

  box-shadow:
    0 14px 38px rgba(0,0,0,.24);
}

.shopping-center-detail-theme .detail-type {
  display: inline-flex;

  width: max-content;

  padding:
    5px 10px;

  border-radius:
    999px;

  background:
    rgba(178,104,255,.13);

  border:
    1px solid rgba(196,132,255,.22);

  color:
    #d5afff !important;
}

.shopping-center-detail-theme .detail-area {
  color:
    rgba(255,255,255,.62) !important;
}

.shopping-center-detail-theme .detail-content h2 {
  color: #fff;
}


/* CONTENT */

.shopping-info-section {
  margin-top: 20px;

  padding-top: 18px;

  border-top:
    1px solid rgba(255,255,255,.08);
}

.shopping-info-section:first-child {
  margin-top: 12px;
  padding-top: 0;
  border-top: 0;
}

.shopping-info-section h3 {
  margin:
    0 0 10px;

  color: #fff;

  font-size: 18px;
}

.shopping-info-section p {
  margin: 0;

  color:
    rgba(255,255,255,.82);

  line-height: 1.62;
}

.shopping-facts-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0,1fr));

  gap: 9px;

  margin-top: 15px;
}

.shopping-fact {
  display: flex;
  align-items: center;

  gap: 9px;

  padding: 12px;

  border:
    1px solid rgba(255,255,255,.08);

  border-radius: 13px;

  background:
    rgba(255,255,255,.035);
}

.shopping-fact-icon {
  font-size: 20px;
}

.shopping-fact small {
  display: block;

  margin-bottom: 2px;

  color: #929cab;

  font-size: 11px;
}

.shopping-fact strong {
  color: #fff;

  font-size: 13px;
}

.shopping-feature-list {
  display: flex;
  flex-wrap: wrap;

  gap: 7px;
}

.shopping-feature-chip {
  padding:
    7px 10px;

  border-radius:
    999px;

  background:
    rgba(178,104,255,.10);

  border:
    1px solid rgba(196,132,255,.18);

  color:
    #e0c5ff;

  font-size:
    12px;
}


/* MOBILE */

@media (max-width: 899px) {

  .shopping-center-detail-theme .detail-content {
    margin:
      10px 8px 0 !important;

    padding:
      16px !important;

    border-radius:
      18px !important;
  }

  .shopping-center-detail-theme .detail-content h2 {
    margin:
      11px 0 6px !important;

    font-size:
      clamp(24px, 7vw, 31px)
      !important;

    line-height:
      1.12 !important;
  }

  .shopping-center-detail-theme .detail-header {
    min-height:
      50px !important;

    padding:
      6px 8px !important;
  }

  .shopping-facts-grid {
    grid-template-columns:
      1fr;
  }

}

/* ==========================================================
   END SHOPPING CENTER CARDS
   ========================================================== */


/* У обычных объектов не показываем карту соседних апартаментов */
.detail-screen:not(.apartment-detail-theme)
.detail-nearby-map-block {
  display: none !important;
}


/* ==========================================================
   SHOPPING CENTER = SAME VISUAL SYSTEM AS APARTMENTS
   ========================================================== */

.shopping-center-detail-theme {
  background:
    #11151a !important;
}

.shopping-center-detail-theme .detail-content {
  background:
    linear-gradient(
      155deg,
      #1d232a 0%,
      #15191f 52%,
      #101318 100%
    ) !important;

  border:
    1px solid rgba(255,255,255,.08) !important;

  border-radius:
    20px !important;

  padding:
    18px !important;

  box-shadow:
    0 14px 38px rgba(0,0,0,.24) !important;
}

.shopping-center-detail-theme .detail-type {
  display: inline-flex;

  width: max-content;

  padding:
    5px 10px;

  border-radius:
    999px;

  background:
    rgba(47,128,237,.13) !important;

  border:
    1px solid rgba(73,151,255,.24) !important;

  color:
    #9fc8ff !important;
}

.shopping-center-detail-theme .detail-area {
  color:
    rgba(255,255,255,.62) !important;
}

.shopping-center-detail-theme .detail-content h2,
.shopping-center-detail-theme .detail-content h3 {
  color: #fff !important;
}

.shopping-center-detail-theme .gallery-block {
  border:
    1px solid rgba(255,255,255,.08);

  border-radius:
    20px;

  overflow: hidden;

  box-shadow:
    0 14px 38px rgba(0,0,0,.22);
}

.shopping-center-detail-theme .thumbnail-strip {
  background:
    #151a20 !important;

  border-top:
    1px solid rgba(255,255,255,.07);
}

.shopping-center-detail-theme .thumbnail {
  opacity: .72;
}

.shopping-center-detail-theme .thumbnail.active {
  opacity: 1;

  border-color:
    #3f91ff !important;

  box-shadow:
    0 0 0 2px rgba(63,145,255,.15);
}

.shopping-center-detail-theme .shopping-feature-chip {
  background:
    rgba(47,128,237,.10) !important;

  border-color:
    rgba(73,151,255,.20) !important;

  color:
    #b9d8ff !important;
}


/* MOBILE */

@media (max-width: 899px) {

  .shopping-center-detail-theme .detail-header {
    min-height:
      50px !important;

    padding:
      6px 8px !important;
  }

  .shopping-center-detail-theme .detail-back {
    min-height:
      36px !important;

    padding:
      7px 10px !important;

    font-size:
      13px !important;
  }

  .shopping-center-detail-theme .detail-close {
    width:
      36px !important;

    height:
      36px !important;

    min-height:
      36px !important;
  }

  .shopping-center-detail-theme .detail-header-title {
    font-size:
      13px !important;
  }

  .shopping-center-detail-theme .detail-gallery-viewport {
    height:
      min(46vh, 390px)
      !important;
  }

  .shopping-center-detail-theme
  .detail-gallery-slide-image {
    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;
  }

  .shopping-center-detail-theme .detail-content {
    margin:
      10px 8px 0 !important;

    padding:
      16px !important;

    border-radius:
      18px !important;
  }

  .shopping-center-detail-theme .detail-content h2 {
    margin:
      11px 0 6px !important;

    font-size:
      clamp(24px, 7vw, 31px)
      !important;

    line-height:
      1.12 !important;
  }

}

/* ==========================================================
   END SHOPPING CENTER APARTMENT STYLE
   ========================================================== */


/* ==========================================================
   GENERIC OBJECT MINI MAP
   ========================================================== */

.generic-detail-map-block {
  margin: 18px;

  padding: 16px;

  border:
    1px solid rgba(255,255,255,.08);

  border-radius: 20px;

  background:
    linear-gradient(
      155deg,
      #1d232a 0%,
      #15191f 100%
    );

  box-shadow:
    0 14px 38px rgba(0,0,0,.22);
}

.generic-detail-map-head {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 14px;

  margin-bottom: 12px;
}

.generic-detail-map-title {
  color: #fff;

  font-size: 18px;
  font-weight: 800;
}

.generic-detail-map-subtitle {
  margin-top: 3px;

  color:
    rgba(255,255,255,.58);

  font-size: 12px;
}

.generic-detail-map {
  position: relative;

  width: 100%;
  height: 300px;

  overflow: hidden;

  border-radius: 15px;

  background: #20242a;
}

.generic-detail-map-marker {
  width: 46px;
  height: 46px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border:
    3px solid #3186ef;

  border-radius: 50%;

  background: #fff;

  box-shadow:
    0 0 0 4px rgba(49,134,239,.20),
    0 7px 18px rgba(0,0,0,.34);

  transform:
    translate(-50%, -50%);

  font-size: 21px;
  line-height: 1;
}


/* ==========================================================
   GENERIC RELATED CARDS
   ========================================================== */

.generic-related-area {
  margin-top: 5px;

  color:
    rgba(255,255,255,.62);

  font-size: 12px;
}

.generic-related-description {
  margin-top: 7px;

  color:
    rgba(255,255,255,.76);

  font-size: 12px;
  line-height: 1.4;

  display: -webkit-box;

  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;

  overflow: hidden;
}


/* MOBILE */

@media (max-width: 899px) {

  .generic-detail-map-block {
    margin:
      18px 8px 10px;

    padding:
      14px;

    border-radius:
      18px;
  }

  .generic-detail-map-head {
    gap:
      8px;
  }

  .generic-detail-map-title {
    font-size:
      17px;
  }

  .generic-detail-map {
    height:
      260px;
  }

  .generic-detail-map-head
  .detail-show-main-map {
    padding:
      7px 9px;

    font-size:
      11px;
  }

}


/*
  Нижняя лента обычных объектов —
  только desktop.
*/
@media (max-width: 899px) {

  #desktopRelatedSection {
    display:
      none !important;
  }

}

/* ==========================================================
   END GENERIC OBJECT DETAIL
   ========================================================== */


/* ==========================================================
   GENERIC MAP: DESKTOP ONLY
   ========================================================== */

@media (max-width: 899px) {

  .generic-detail-map-block {
    display: none !important;
  }

}

/* ==========================================================
   END GENERIC MAP: DESKTOP ONLY
   ========================================================== */


@media (min-width: 900px) {

  .generic-detail-map-block {
    margin:
      16px 0 0 !important;

    border-radius:
      18px;
  }

  .generic-detail-map {
    height:
      300px;
  }

}


.generic-detail-map-marker svg {
  display: block;

  width: 24px;
  height: 24px;

  pointer-events: none;
}

.generic-detail-map-marker {
  color: #1f2937;
  font-family:
    "Segoe UI Emoji",
    "Apple Color Emoji",
    sans-serif;
}


/* ==========================================================
   UNIFIED MAP TYPE ICONS
   ========================================================== */

.map-type-icon,
.apartment-map-icon {
  display: grid;
  place-items: center;
}

.map-type-icon {
  width: 22px;
  height: 22px;

  transform:
    rotate(45deg);
}

.map-type-icon svg,
.apartment-map-icon svg {
  display: block;

  width: 20px;
  height: 20px;
}

.generic-detail-map-marker svg {
  display: block;

  width: 24px;
  height: 24px;
}


/*
  Все SVG используют одинаковый
  визуальный цвет внутри маркера.
*/
.map-type-icon svg,
.apartment-map-icon svg,
.generic-detail-map-marker svg {
  overflow: visible;
}


/* Выбранная метка */
.guide-map-marker.map-marker-selected {
  border-color:
    #3186ef !important;

  box-shadow:
    0 0 0 4px rgba(49,134,239,.22),
    0 5px 16px rgba(0,0,0,.34)
    !important;
}

/* ==========================================================
   END UNIFIED MAP TYPE ICONS
   ========================================================== */







/* ==========================================================
   PNG MAP MARKERS
   ========================================================== */

.png-map-marker {
  width: 52px !important;
  height: 62px !important;

  min-width: 52px !important;
  min-height: 62px !important;

  padding: 0 !important;

  border: 0 !important;
  border-radius: 0 !important;

  background: transparent !important;

  box-shadow: none !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  overflow: visible !important;

  transform:
    translate(-50%, -100%) !important;

  transform-origin:
    50% 100% !important;
}


.png-map-marker-image {
  display: block;

  width: 52px;
  height: 62px;

  object-fit: contain;

  pointer-events: none;

  user-select: none;
  -webkit-user-drag: none;

  filter:
    drop-shadow(
      0 5px 5px
      rgba(0,0,0,.26)
    );
}


.png-map-marker:hover {
  transform:
    translate(-50%, -100%)
    scale(1.08)
    !important;
}


/*
  Выбранный объект
*/
.png-map-marker.map-marker-selected {
  transform:
    translate(-50%, -100%)
    scale(1.13)
    !important;

  border: 0 !important;

  box-shadow:
    none !important;
}


.png-map-marker.map-marker-selected
.png-map-marker-image {
  filter:
    drop-shadow(
      0 0 4px
      rgba(255,255,255,.95)
    )
    drop-shadow(
      0 6px 7px
      rgba(0,95,255,.38)
    );
}


/*
  На отдалённом масштабе
  не превращаем картинку в старый белый dot.
  Просто делаем маркер меньше.
*/
.png-map-marker.map-dot-mode {
  width: 34px !important;
  height: 41px !important;

  min-width: 34px !important;
  min-height: 41px !important;

  border: 0 !important;
  border-radius: 0 !important;

  background:
    transparent !important;

  transform:
    translate(-50%, -100%)
    !important;
}


.png-map-marker.map-dot-mode
.png-map-marker-image {
  display: block !important;

  width: 34px;
  height: 41px;

  opacity: 1 !important;
}


/*
  Мини-карта карточки
*/
.png-map-marker--mini {
  width: 44px !important;
  height: 53px !important;

  min-width: 44px !important;
  min-height: 53px !important;
}


.png-map-marker-image--mini {
  width: 44px;
  height: 53px;
}


/*
  Квартирная карта рядом
*/
.detail-map-marker {
  width: 44px !important;
  height: 53px !important;

  padding: 0 !important;

  border: 0 !important;

  border-radius: 0 !important;

  background:
    transparent !important;

  box-shadow:
    none !important;

  overflow:
    visible !important;

  transform:
    translate(-50%, -50%)
    !important;
}


.detail-map-marker
.png-map-marker-image {
  width: 44px;
  height: 53px;
}


.detail-map-marker--active
.png-map-marker-image {
  filter:
    drop-shadow(
      0 0 4px
      rgba(255,255,255,.95)
    )
    drop-shadow(
      0 6px 7px
      rgba(0,95,255,.42)
    );
}


/*
  Телефон и компьютер используют
  те же изображения.
*/
@media (max-width: 899px) {

  .png-map-marker {
    width: 48px !important;
    height: 58px !important;

    min-width: 48px !important;
    min-height: 58px !important;
  }

  .png-map-marker-image {
    width: 48px;
    height: 58px;
  }

  .png-map-marker.map-dot-mode {
    width: 32px !important;
    height: 38px !important;

    min-width: 32px !important;
    min-height: 38px !important;
  }

  .png-map-marker.map-dot-mode
  .png-map-marker-image {
    width: 32px;
    height: 38px;
  }
}


/*
  Fallback только для места,
  которому ещё не назначили
  индивидуальную картинку.
*/
.png-map-marker-fallback {
  width: 36px;
  height: 36px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: #fff;

  font-size: 20px;

  box-shadow:
    0 4px 12px
    rgba(0,0,0,.28);
}

/* ==========================================================
   END PNG MAP MARKERS
   ========================================================== */


/* ==========================================================
   PNG MARKER ZOOM MODE
   ========================================================== */

/*
  На дальнем масштабе сохраняем
  настоящую форму картинки.
  Меняется только размер.
*/
.png-map-marker.png-map-marker-small {
  width: 34px !important;
  height: 41px !important;

  min-width: 34px !important;
  min-height: 41px !important;

  padding: 0 !important;

  border: 0 !important;
  border-radius: 0 !important;

  background: transparent !important;
  box-shadow: none !important;

  transform:
    translate(-50%, -100%)
    !important;
}


.png-map-marker.png-map-marker-small
.png-map-marker-image {
  display: block !important;

  width: 34px !important;
  height: 41px !important;

  opacity: 1 !important;

  object-fit: contain !important;
}


/*
  На desktop при наведении
  маленький PNG немного увеличиваем,
  но не превращаем в старый pin.
*/
@media (min-width: 900px) {

  .png-map-marker.png-map-marker-small:hover {
    transform:
      translate(-50%, -100%)
      scale(1.16)
      !important;
  }

}


/*
  Телефон: чуть компактнее.
*/
@media (max-width: 899px) {

  .png-map-marker.png-map-marker-small {
    width: 30px !important;
    height: 36px !important;

    min-width: 30px !important;
    min-height: 36px !important;
  }

  .png-map-marker.png-map-marker-small
  .png-map-marker-image {
    width: 30px !important;
    height: 36px !important;
  }

}

/* ==========================================================
   END PNG MARKER ZOOM MODE
   ========================================================== */


/* ==========================================================
   SANYA WEATHER WIDGET
   ========================================================== */

.map-wrap {
  position: relative;
}

.weather-widget {
  position: absolute;

  top: 16px;
  right: 16px;

  z-index: 650;

  width: 250px;

  padding: 0;

  border:
    1px solid rgba(255,255,255,.12);

  border-radius: 18px;

  background:
    rgba(30,34,40,.90);

  color: #fff;

  box-shadow:
    0 10px 30px rgba(0,0,0,.28);

  backdrop-filter:
    blur(14px);

  -webkit-backdrop-filter:
    blur(14px);

  text-align: left;

  cursor: pointer;

  overflow: hidden;

  transition:
    width .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
}


.weather-widget:hover {
  box-shadow:
    0 14px 34px rgba(0,0,0,.34);
}


.weather-widget-main {
  display: grid;

  grid-template-columns:
    46px 1fr 22px;

  align-items: center;

  gap: 10px;

  padding:
    12px 13px;
}


.weather-widget-icon {
  width: 46px;
  height: 46px;

  display: grid;
  place-items: center;

  border-radius: 14px;

  background:
    rgba(255,255,255,.08);

  font-size: 28px;

  line-height: 1;
}


.weather-widget-current {
  min-width: 0;
}


.weather-widget-title {
  color:
    rgba(255,255,255,.68);

  font-size: 12px;
  font-weight: 700;
}


.weather-widget-temp-row {
  margin-top: 1px;

  display: flex;
  align-items: baseline;

  gap: 8px;
}


#weatherTemp {
  font-size: 25px;
  font-weight: 800;

  line-height: 1;
}


.weather-widget-condition {
  min-width: 0;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  color:
    rgba(255,255,255,.90);

  font-size: 12px;
  font-weight: 700;
}


.weather-widget-meta {
  margin-top: 5px;

  color:
    rgba(255,255,255,.56);

  font-size: 11px;

  white-space: nowrap;
}


.weather-widget-chevron {
  color:
    rgba(255,255,255,.55);

  font-size: 26px;

  transition:
    transform .18s ease;
}


.weather-widget[aria-expanded="true"]
.weather-widget-chevron {
  transform:
    rotate(90deg);
}


.weather-widget-forecast {
  display: none;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 6px;

  padding:
    0 10px 10px;
}


.weather-widget[aria-expanded="true"]
.weather-widget-forecast {
  display: grid;
}


.weather-day {
  padding:
    9px 5px;

  border-radius: 12px;

  background:
    rgba(255,255,255,.065);

  text-align: center;
}


.weather-day-name {
  color:
    rgba(255,255,255,.64);

  font-size: 10px;
  font-weight: 700;
}


.weather-day-icon {
  margin-top: 4px;

  font-size: 20px;
}


.weather-day-temp {
  margin-top: 3px;

  font-size: 12px;
  font-weight: 800;
}


.weather-day-rain {
  margin-top: 3px;

  color:
    rgba(255,255,255,.52);

  font-size: 9px;
}


/*
  MOBILE
*/
@media (max-width: 899px) {

  .weather-widget {
    top: 10px;
    right: 10px;

    width: 205px;

    border-radius: 16px;
  }

  .weather-widget-main {
    grid-template-columns:
      38px 1fr 18px;

    gap: 8px;

    padding:
      9px 10px;
  }

  .weather-widget-icon {
    width: 38px;
    height: 38px;

    border-radius: 11px;

    font-size: 23px;
  }

  #weatherTemp {
    font-size: 21px;
  }

  .weather-widget-condition {
    font-size: 11px;
  }

  .weather-widget-meta {
    margin-top: 3px;

    font-size: 10px;
  }

  .weather-widget[aria-expanded="true"] {
    width:
      min(
        310px,
        calc(100vw - 20px)
      );
  }

}

/* ==========================================================
   END SANYA WEATHER WIDGET
   ========================================================== */


/* ==========================================================
   WEATHER WIDGET DESIGN V2
   ========================================================== */

.weather-widget {
  isolation: isolate;

  top: 14px;
  right: 14px;

  width: 205px;

  border:
    1px solid rgba(255,255,255,.14);

  border-radius: 17px;

  /*
    Основной фон:
    графит + лёгкий холодный оттенок.
    Карта через него немного просматривается,
    но текст остаётся хорошо читаемым.
  */
  background:
    linear-gradient(
      145deg,
      rgba(28,34,42,.95) 0%,
      rgba(24,31,39,.92) 58%,
      rgba(22,34,43,.94) 100%
    ) !important;

  box-shadow:
    0 10px 28px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.055);

  backdrop-filter:
    blur(16px)
    saturate(1.15);

  -webkit-backdrop-filter:
    blur(16px)
    saturate(1.15);

  transition:
    width .22s ease,
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease;
}


/*
  Мягкое синее свечение внутри фона.
*/
.weather-widget::before {
  content: "";

  position: absolute;

  top: -42px;
  right: -30px;

  width: 130px;
  height: 130px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(46,147,255,.23) 0%,
      rgba(43,151,255,.09) 46%,
      transparent 72%
    );

  pointer-events: none;

  z-index: -1;
}


/*
  Едва заметное бирюзовое свечение снизу.
*/
.weather-widget::after {
  content: "";

  position: absolute;

  left: -38px;
  bottom: -58px;

  width: 140px;
  height: 140px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(46,196,182,.11) 0%,
      transparent 68%
    );

  pointer-events: none;

  z-index: -1;
}


.weather-widget:hover {
  border-color:
    rgba(255,255,255,.21);

  box-shadow:
    0 14px 34px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.07);
}


/*
  В раскрытом состоянии делаем карточку шире.
*/
.weather-widget[aria-expanded="true"] {
  width: 300px;
}


.weather-widget-main {
  grid-template-columns:
    38px 1fr 16px;

  gap: 9px;

  padding:
    9px 10px;
}


/*
  Иконка больше не выглядит
  как отдельная тяжёлая кнопка.
*/
.weather-widget-icon {
  width: 38px;
  height: 38px;

  border-radius: 12px;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.11),
      rgba(255,255,255,.045)
    );

  border:
    1px solid rgba(255,255,255,.08);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08);

  font-size: 23px;
}


.weather-widget-title {
  font-size: 11px;

  font-weight: 700;

  letter-spacing:
    .15px;

  color:
    rgba(255,255,255,.58);
}


.weather-widget-temp-row {
  gap: 7px;
}


#weatherTemp {
  font-size: 22px;
  font-weight: 850;

  letter-spacing:
    -.5px;
}


.weather-widget-condition {
  font-size: 11px;

  color:
    rgba(255,255,255,.88);
}


.weather-widget-meta {
  margin-top: 3px;

  font-size: 10px;

  color:
    rgba(255,255,255,.52);
}


.weather-widget-chevron {
  font-size: 21px;

  color:
    rgba(255,255,255,.45);
}


/*
  Разделительная линия появляется
  только после раскрытия.
*/
.weather-widget[aria-expanded="true"]
.weather-widget-forecast {
  position: relative;

  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 7px;

  padding:
    9px 9px 10px;
}


.weather-widget[aria-expanded="true"]
.weather-widget-forecast::before {
  content: "";

  position: absolute;

  top: 0;
  left: 10px;
  right: 10px;

  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,.11),
      transparent
    );
}


/*
  Карточки дней.
*/
.weather-day {
  padding:
    8px 4px 7px;

  border:
    1px solid rgba(255,255,255,.055);

  border-radius: 12px;

  background:
    linear-gradient(
      160deg,
      rgba(255,255,255,.075),
      rgba(255,255,255,.035)
    );

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.035);
}


.weather-day-name {
  font-size: 9px;

  color:
    rgba(255,255,255,.54);
}


.weather-day-icon {
  margin-top: 3px;

  font-size: 18px;
}


.weather-day-temp {
  margin-top: 2px;

  font-size: 11px;
  font-weight: 800;
}


.weather-day-rain {
  margin-top: 2px;

  font-size: 9px;

  color:
    rgba(134,196,255,.75);
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 899px) {

  .weather-widget {
    top: 8px;
    right: 8px;

    width: 178px;

    border-radius: 15px;
  }


  .weather-widget[aria-expanded="true"] {
    width:
      min(
        294px,
        calc(100vw - 16px)
      );
  }


  .weather-widget-main {
    grid-template-columns:
      34px 1fr 14px;

    gap: 7px;

    padding:
      8px 9px;
  }


  .weather-widget-icon {
    width: 34px;
    height: 34px;

    border-radius: 10px;

    font-size: 20px;
  }


  .weather-widget-title {
    font-size: 10px;
  }


  #weatherTemp {
    font-size: 19px;
  }


  .weather-widget-condition {
    font-size: 10px;
  }


  .weather-widget-meta {
    font-size: 9px;
  }


  .weather-widget-chevron {
    font-size: 18px;
  }


  .weather-day {
    padding:
      7px 3px;
  }

}

/* ==========================================================
   END WEATHER WIDGET DESIGN V2
   ========================================================== */


/* ==========================================================
   MAP MARKER LABELS — BOTTOM ALIGNMENT
   ========================================================== */

/*
  Маркер остаётся на прежних координатах.
  Меняем только расположение подписи.
*/

.png-map-marker {
  position: relative;
  overflow: visible !important;
}


/*
  Подпись располагается справа,
  ближе к нижней части PNG-маркера.
*/

.png-map-marker .map-marker-label {
  position: absolute;

  left: calc(100% - 5px);

  top: auto;
  bottom: 7px;

  width: max-content;
  max-width: 190px;

  padding: 6px 11px;

  border:
    1px solid rgba(255,255,255,.14);

  border-radius: 11px;

  background:
    linear-gradient(
      145deg,
      rgba(31,37,45,.97),
      rgba(20,26,34,.97)
    );

  color: #fff;

  font-family:
    Arial,
    sans-serif;

  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;

  text-align: left;

  white-space: normal;
  overflow-wrap: break-word;

  box-shadow:
    0 6px 17px rgba(0,0,0,.28);

  backdrop-filter: blur(8px);

  -webkit-backdrop-filter: blur(8px);

  opacity: 0;
  visibility: hidden;

  pointer-events: none;

  transform:
    translateX(-5px);

  transition:
    opacity .18s ease,
    transform .18s ease,
    visibility .18s ease;
}


/*
  Маленький указатель от подписи
  в сторону маркера.
*/

.png-map-marker .map-marker-label::before {
  content: "";

  position: absolute;

  left: -5px;
  bottom: 8px;

  width: 9px;
  height: 9px;

  background:
    rgba(25,31,39,.97);

  border-left:
    1px solid rgba(255,255,255,.12);

  border-bottom:
    1px solid rgba(255,255,255,.12);

  transform:
    rotate(45deg);

  border-bottom-left-radius: 2px;
}


/*
  Плавное появление при приближении.
*/

.png-map-marker.map-label-visible
.map-marker-label {
  opacity: 1;
  visibility: visible;

  transform:
    translateX(0);
}


/*
  Подсветка выбранного объекта.
*/

.png-map-marker.map-marker-selected
.map-marker-label {
  border-color:
    rgba(86,174,255,.65);

  background:
    linear-gradient(
      145deg,
      rgba(38,58,79,.98),
      rgba(23,35,50,.98)
    );

  box-shadow:
    0 7px 19px rgba(0,0,0,.30),
    0 0 0 1px rgba(86,174,255,.12);
}


.png-map-marker.map-marker-selected
.map-marker-label::before {
  background:
    rgba(30,45,63,.98);
}


/*
  Короткие номера апартаментов.
*/

.png-map-marker[data-map-type="apartment"]
.map-marker-label {
  max-width: 118px;

  padding: 5px 9px;

  font-size: 11px;

  border-radius: 10px;

  white-space: nowrap;
}


/*
  На мобильной карте оставляем
  только PNG-маркеры без подписей.
*/

@media (max-width: 899px) {

  /*
    Подписи появляются по масштабу карты.
    Скрываем только через map-label-visible.
  */

  .png-map-marker .map-marker-label {
    display: block !important;

    max-width: 125px;

    padding: 4px 7px;

    font-size: 10px;

    line-height: 1.25;

    border-radius: 8px;

    bottom: 5px;

    left: calc(100% - 5px);
  }

  /*
    Номера квартир делаем ещё компактнее.
  */

  .png-map-marker[data-map-type="apartment"]
  .map-marker-label {
    max-width: 95px;

    padding: 4px 6px;

    font-size: 9px;

    white-space: nowrap;
  }

}

/* ==========================================================
   END MAP MARKER LABELS — BOTTOM ALIGNMENT
   ========================================================== */



/* ==========================================================
   MAP LABEL TUNE — softer corners + unified color
   ========================================================== */

.png-map-marker .map-marker-label {
  background:
    linear-gradient(180deg, #222b36 0%, #161d26 100%) !important;

  color: #ffffff !important;

  border: 1px solid rgba(255,255,255,.08) !important;

  border-radius: 11px !important;

  box-shadow:
    0 8px 18px rgba(0,0,0,.28),
    0 2px 6px rgba(0,0,0,.18) !important;
}

/*
  Если хвостик у подписи рисуется псевдоэлементом,
  принудительно выравниваем его по тому же цвету.
*/

.png-map-marker .map-marker-label::before {
  background:
    linear-gradient(180deg, #222b36 0%, #161d26 100%) !important;

  border-left: 1px solid rgba(255,255,255,.08) !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;

  box-shadow:
    -2px 2px 6px rgba(0,0,0,.14) !important;
}

/*
  Если у тебя используется второй псевдоэлемент
  для внутреннего слоя/маски хвостика — тоже выравниваем.
*/

.png-map-marker .map-marker-label::after {
  background:
    linear-gradient(180deg, #222b36 0%, #161d26 100%) !important;
}

/* Чуть компактнее на телефоне */
@media (max-width: 899px) {
  .png-map-marker .map-marker-label {
    border-radius: 10px !important;
  }
}






/* ==========================================================
   PREMIUM MAP LABEL TAIL V1
   ========================================================== */

/*
  Одинаковый графитовый цвет
  плашки и хвостика.
*/

.png-map-marker .map-marker-label {

  position: absolute !important;

  --map-label-bg: #202833;

  background:
    var(--map-label-bg) !important;

  border:
    1px solid rgba(255,255,255,.10)
    !important;

  border-radius:
    11px !important;

  box-shadow:
    0 5px 15px rgba(0,0,0,.25)
    !important;

  overflow:
    visible !important;

}


/*
  Только один маленький указатель.
  Остриё направлено влево,
  к PNG-маркеру.
*/

.png-map-marker .map-marker-label::before {

  content: "" !important;

  display: block !important;

  position: absolute !important;

  left: -8px !important;

  top: 50% !important;
  bottom: auto !important;

  width: 9px !important;
  height: 12px !important;

  background:
    var(--map-label-bg)
    !important;

  border:
    none !important;

  border-radius:
    0 !important;

  /*
    Маленький треугольник:
    остриё слева, основание справа.
  */

  clip-path:
    polygon(
      0 50%,
      100% 0,
      100% 100%
    ) !important;

  transform:
    translateY(-50%)
    !important;

  box-shadow:
    none !important;

  pointer-events:
    none !important;

}


/*
  Убираем любые дополнительные
  декоративные уголки.
*/

.png-map-marker .map-marker-label::after {

  content:
    none !important;

  display:
    none !important;

}


/*
  Выбранный объект.
  Хвостик получает тот же цвет,
  что и подсвеченная плашка.
*/

.png-map-marker.map-marker-selected
.map-marker-label {

  --map-label-bg: #263a4e;

  border-color:
    rgba(86,174,255,.55)
    !important;

}


/*
  Мобильная версия.
  Компактный хвостик.
*/

@media (max-width: 899px) {

  .png-map-marker .map-marker-label {

    border-radius:
      10px !important;

  }

  .png-map-marker .map-marker-label::before {

    left:
      -7px !important;

    width:
      8px !important;

    height:
      10px !important;

  }

}

/* ==========================================================
   END PREMIUM MAP LABEL TAIL V1
   ========================================================== */



/* === WEATHER MOBILE COMPACT FIX === */

@media (max-width: 899px) {

  /*
    Немного расширяем свёрнутую карточку.
    На маленьких экранах ограничиваем
    ширину относительно экрана.
  */

  .weather-widget {
    width: min(205px, calc(100vw - 24px)) !important;

    overflow: hidden;
  }


  /*
    Раскрытый прогноз остаётся шире.
  */

  .weather-widget[aria-expanded="true"] {
    width: min(294px, calc(100vw - 16px)) !important;
  }


  /*
    Даём тексту доступное пространство.
  */

  .weather-widget-main {
    grid-template-columns:
      34px minmax(0, 1fr) 14px;

    gap: 7px;

    align-items: center;

    padding: 9px 10px;
  }


  .weather-widget-current {
    min-width: 0;
  }


  /*
    Температура и состояние погоды.
  */

  .weather-widget-temp-row {
    display: flex;

    align-items: baseline;

    gap: 5px;

    min-width: 0;
  }


  #weatherTemp {
    flex-shrink: 0;

    font-size: 20px;
  }


  .weather-widget-condition {
    min-width: 0;

    font-size: 10px;

    overflow: hidden;

    text-overflow: ellipsis;
  }


  /*
    Главное исправление:
    влажность и ветер теперь могут
    переноситься на вторую строку.
  */

  .weather-widget-meta {
    display: block;

    width: 100%;

    margin-top: 4px;

    font-size: 10px;

    line-height: 1.4;

    white-space: normal !important;

    overflow: visible !important;

    text-overflow: clip !important;

    overflow-wrap: normal;
  }


  /*
    Стрелку раскрытия оставляем
    на своём месте.
  */

  .weather-widget-chevron {
    flex-shrink: 0;

    font-size: 18px;
  }

}

/* === END WEATHER MOBILE COMPACT FIX === */


/* ==========================================================
   SANYA SEA TEMPERATURE
   ========================================================== */

.weather-widget-sea {

  display: none;

  align-items: center;

  gap: 10px;

  margin:
    0 9px 10px;

  padding:
    10px 12px;

  border-radius:
    12px;

  border:
    1px solid rgba(91,175,255,.18);

  background:
    linear-gradient(
      135deg,
      rgba(42,88,122,.34),
      rgba(24,47,67,.40)
    );

  box-shadow:
    inset 0 1px 0
    rgba(255,255,255,.04);

  text-align: left;

}


/*
  Показываем море только
  при раскрытии прогноза.
*/

.weather-widget[aria-expanded="true"]
.weather-widget-sea {

  display: flex;

}


.weather-sea-icon {

  width: 38px;
  height: 38px;

  flex-shrink: 0;

  display: grid;
  place-items: center;

  border-radius: 11px;

  background:
    rgba(91,175,255,.12);

  font-size: 23px;

}


.weather-sea-content {

  min-width: 0;

}


.weather-sea-title {

  color:
    rgba(255,255,255,.72);

  font-size: 11px;

  font-weight: 700;

}


.weather-sea-temp {

  margin-top: 3px;

  color: #ffffff;

  font-size: 22px;

  font-weight: 800;

  line-height: 1.15;

}


.weather-sea-note {

  margin-top: 3px;

  color:
    rgba(255,255,255,.48);

  font-size: 10px;

}


/*
  Телефон
*/

@media (max-width: 899px) {

  .weather-widget-sea {

    margin:
      0 9px 9px;

    padding:
      9px 10px;

    gap: 9px;

  }

  .weather-sea-icon {

    width: 34px;
    height: 34px;

    font-size: 21px;

  }

  .weather-sea-temp {

    font-size: 20px;

  }

}

/* ==========================================================
   END SANYA SEA TEMPERATURE
   ========================================================== */


/* ==========================================================
   BEACH SEA TEMPERATURE CARD
   ========================================================== */

.beach-sea-temperature-card {

  display: flex;

  align-items: center;

  gap: 14px;

  margin:
    10px 0 20px;

  padding:
    16px;

  border-radius:
    18px;

  border:
    1px solid rgba(81,173,255,.25);

  background:
    linear-gradient(
      135deg,
      rgba(34,73,104,.88),
      rgba(24,48,70,.94)
    );

  box-shadow:
    0 8px 24px rgba(0,0,0,.16),
    inset 0 1px 0
      rgba(255,255,255,.05);

  color: #fff;

}


.beach-sea-icon {

  width: 50px;
  height: 50px;

  flex-shrink: 0;

  display: grid;
  place-items: center;

  border-radius:
    15px;

  background:
    rgba(92,181,255,.15);

  font-size:
    29px;

}


.beach-sea-info {

  min-width: 0;

}


.beach-sea-label {

  font-size: 13px;

  font-weight: 700;

  color:
    rgba(255,255,255,.73);

}


.beach-sea-value {

  margin-top: 4px;

  font-size: 28px;

  font-weight: 800;

  line-height: 1.15;

  color: #fff;

}


.beach-sea-description {

  margin-top: 5px;

  font-size: 11px;

  line-height: 1.4;

  color:
    rgba(255,255,255,.55);

}


/* MOBILE */

@media (max-width: 899px) {

  .beach-sea-temperature-card {

    padding: 13px;

    gap: 11px;

    border-radius: 15px;

  }

  .beach-sea-icon {

    width: 43px;
    height: 43px;

    font-size: 25px;

  }

  .beach-sea-value {

    font-size: 24px;

  }

}

/* ==========================================================
   END BEACH SEA TEMPERATURE CARD
   ========================================================== */


/* ==========================================================
   WEATHER WIND GROUP FIX
   ========================================================== */

/*
  Ветер не должен разрываться
  между числом и м/с.
*/

.weather-wind-group {

  display: inline-block;

  white-space: nowrap;

}


/*
  В свёрнутом виджете телефона
  ветер переносится целиком.
*/

@media (max-width: 899px) {

  .weather-widget:not(
    [aria-expanded="true"]
  )
  .weather-wind-group {

    display: block;

    margin-top: 2px;

  }

}

/* ==========================================================
   END WEATHER WIND GROUP FIX
   ========================================================== */


/* ==========================================================
   COMPACT BEACH SEA TEMPERATURE
   ========================================================== */

.compact-beach-sea {

  display: flex;
  align-items: center;

  gap: 8px;

  width: max-content;
  max-width: 100%;

  margin:
    13px 0 12px;

  padding:
    9px 13px;

  border-radius:
    12px;

  background:
    linear-gradient(
      135deg,
      rgba(39,91,129,.65),
      rgba(28,63,91,.75)
    );

  border:
    1px solid rgba(91,175,255,.23);

  color: #fff;

}


.compact-beach-sea-icon {

  font-size: 19px;
  line-height: 1;

}


.compact-beach-sea-title {

  font-size: 13px;

  color:
    rgba(255,255,255,.73);

}


.compact-beach-sea-value {

  font-size: 16px;

  font-weight: 800;

  color: #fff;

  white-space: nowrap;

}


/* MOBILE */

@media (max-width: 899px) {

  .compact-beach-sea {

    margin:
      12px 0;

    padding:
      8px 12px;

    border-radius:
      11px;

  }

  .compact-beach-sea-title {
    font-size: 12px;
  }

  .compact-beach-sea-value {
    font-size: 15px;
  }

}

/* ==========================================================
   END COMPACT BEACH SEA TEMPERATURE
   ========================================================== */


/* ==========================================================
   INTERESTING PLACES — VIDEO REVIEW
   ========================================================== */

.place-video-review-link {

  display: flex;
  align-items: center;
  gap: 12px;

  width: 100%;
  box-sizing: border-box;

  margin: 18px 0;
  padding: 15px 18px;

  border-radius: 14px;

  background:
    linear-gradient(
      110deg,
      #a51f2b,
      #db3844
    );

  border:
    1px solid rgba(255,255,255,.2);

  color: #fff;

  font-size: 15px;
  font-weight: 700;

  text-decoration: none;

  box-shadow:
    0 8px 24px rgba(137,20,32,.22);

  transition:
    transform .2s,
    filter .2s;

}

.place-video-review-link:hover {

  transform: translateY(-2px);
  filter: brightness(1.1);

}

.place-video-review-icon {

  display: grid;
  place-items: center;

  flex: 0 0 34px;

  width: 34px;
  height: 34px;

  border-radius: 10px;

  background:
    rgba(255,255,255,.2);

  font-size: 17px;

}

.place-video-review-arrow {

  margin-left: auto;

  font-size: 20px;

  opacity: .8;

}

@media (max-width: 899px) {

  .place-video-review-link {

    padding: 13px 14px;

    font-size: 14px;

  }

}

/* END INTERESTING PLACES VIDEO REVIEW */


/* ==========================================================
   INTERESTING PLACES — FINAL DETAIL LAYOUT
   ========================================================== */

/*
  Desktop:
  фотографии + мини-карта слева,
  описание справа,
  другие места ниже обеих колонок.
*/

@media (min-width: 900px) {

  .place-detail-theme .gallery-block {

    position: relative !important;

    top: auto !important;

    align-self: start !important;

    min-width: 0;

  }

  .place-detail-theme .detail-content {

    min-width: 0;

    align-self: start;

  }

  .place-detail-theme .generic-detail-map-block {

    width: 100%;

    max-width: 100%;

    box-sizing: border-box;

    margin: 16px 0 0 !important;

  }

  .place-detail-theme #desktopRelatedSection {

    grid-column: 1 / -1 !important;

    position: relative;

    min-width: 0;

    clear: both;

  }

}


/*
  Кнопка видео под маршрутом
  и адресом для такси.
*/

.place-detail-theme
.detail-content > .place-video-review-link {

  margin: 12px 0 20px;

}


/*
  Mobile:
  мини-карта после описания,
  нижняя лента других мест скрыта.
*/

@media (max-width: 899px) {

  .place-detail-theme .generic-detail-map-block {

    display: block !important;

    position: relative;

    width: auto;

    max-width: 100%;

    box-sizing: border-box;

    margin: 14px 8px 22px !important;

  }

  .place-detail-theme .generic-detail-map {

    height: 260px;

  }

  .place-detail-theme #desktopRelatedSection {

    display: none !important;

  }

}

/* END INTERESTING PLACES FINAL DETAIL LAYOUT */



/* ==========================================================
   PLACE MOBILE PHOTO GAP FIX V1
   ========================================================== */

@media (max-width: 899px) {

  /*
    Основное фото и его внутренний
    контейнер должны иметь одну высоту.
  */

  .place-detail-theme .main-photo-wrap {

    height: min(46vh, 390px) !important;

    min-height: 0 !important;

    max-height: 390px !important;

    overflow: hidden !important;

  }

  .place-detail-theme .detail-gallery-viewport {

    height: 100% !important;

    min-height: 0 !important;

  }

  .place-detail-theme .detail-gallery-track,
  .place-detail-theme .detail-gallery-slide {

    height: 100% !important;

    min-height: 0 !important;

  }

  .place-detail-theme .detail-gallery-slide-image {

    display: block;

    width: 100% !important;

    height: 100% !important;

    object-fit: cover !important;

  }

}

/* END PLACE MOBILE PHOTO GAP FIX V1 */



/* ==========================================================
   PLACE DESKTOP GRID ROW FIX V1
   ========================================================== */

@media (min-width: 900px) {

  /*
    Первая строка:
    галерея с картой + описание.

    Вторая строка:
    другие интересные места.
  */

  .place-detail-theme .detail-scroll {

    display: grid !important;

    grid-template-rows:
      max-content max-content !important;

    grid-auto-rows:
      max-content;

    align-items: start;

  }

  /*
    Левая колонка должна учитывать
    полную высоту мини-карты.
  */

  .place-detail-theme #galleryBlock {

    grid-column: 1 !important;
    grid-row: 1 !important;

    position: relative !important;

    top: auto !important;

    height: auto !important;
    max-height: none !important;

    align-self: start !important;

  }

  /*
    Правая колонка с описанием.
  */

  .place-detail-theme .detail-content {

    grid-column: 2 !important;
    grid-row: 1 !important;

    align-self: start !important;

    min-width: 0;

  }

  /*
    Мини-карта остаётся внутри
    левой колонки под фотографиями.
  */

  .place-detail-theme #genericDetailMapBlock {

    position: relative !important;

    width: 100% !important;

    max-width: 100% !important;

    box-sizing: border-box;

  }

  /*
    Галерея других мест всегда
    во второй строке под обеими
    колонками.
  */

  .place-detail-theme #desktopRelatedSection {

    grid-column: 1 / -1 !important;

    grid-row: 2 !important;

    position: relative !important;

    margin-top: 12px !important;

    min-width: 0;

    clear: both;

  }

}

/* END PLACE DESKTOP GRID ROW FIX V1 */



/* ==========================================================
   PLACE VIDEO BUTTON PREMIUM V1
   ========================================================== */

.place-detail-theme
.detail-content > .place-video-review-link {

  display: flex;
  align-items: center;

  gap: 12px;

  box-sizing: border-box;

  width: 100%;

  margin: 12px 0 20px;

  padding: 11px 14px;

  border-radius: 13px;

  border:
    1px solid rgba(255,255,255,.12);

  background:
    linear-gradient(
      135deg,
      #222832,
      #191e26
    );

  color: #f5f7fa;

  font-size: 14px;
  font-weight: 650;

  line-height: 1.35;

  text-decoration: none;

  box-shadow:
    0 5px 16px rgba(0,0,0,.16);

  transition:
    border-color .2s,
    background .2s,
    transform .2s;

}

.place-detail-theme
.place-video-review-link:hover {

  transform: translateY(-1px);

  filter: none;

  border-color:
    rgba(255,90,100,.42);

  background:
    linear-gradient(
      135deg,
      #292e38,
      #20252d
    );

}

/* Красная кнопка Play */

.place-detail-theme
.place-video-review-icon {

  display: grid;
  place-items: center;

  flex: 0 0 36px;

  width: 36px;
  height: 36px;

  border-radius: 10px;

  background:
    linear-gradient(
      145deg,
      #f44350,
      #be2334
    );

  color: #fff;

  font-size: 15px;

  box-shadow:
    0 4px 12px rgba(219,46,61,.25);

}

/* Стрелка справа */

.place-detail-theme
.place-video-review-arrow {

  margin-left: auto;

  flex-shrink: 0;

  font-size: 18px;

  color: rgba(255,255,255,.48);

}

/* Телефон */

@media (max-width: 899px) {

  .place-detail-theme
  .detail-content > .place-video-review-link {

    padding: 10px 12px;

    font-size: 13px;

    gap: 10px;

  }

  .place-detail-theme
  .place-video-review-icon {

    flex-basis: 34px;

    width: 34px;
    height: 34px;

  }

}

/* END PLACE VIDEO BUTTON PREMIUM V1 */


/* ==========================================================
   PLACE VIDEO BUTTON — HOVER ANIMATION V2
   ========================================================== */

.place-detail-theme .place-video-review-icon {
  transition: transform .22s ease;
}

.place-detail-theme .place-video-review-arrow {
  transition: transform .22s ease, color .22s ease;
}

@media (hover: hover) and (pointer: fine) {

  .place-detail-theme
  .place-video-review-link:hover
  .place-video-review-icon {
    transform: scale(1.09);
  }

  .place-detail-theme
  .place-video-review-link:hover
  .place-video-review-arrow {
    transform: translate(3px, -3px);
    color: #ffffff;
  }

}

/* END PLACE VIDEO BUTTON HOVER ANIMATION V2 */


/* RESTAURANT DETAIL CARD — ALESHA */

.food-detail-theme .restaurant-info-section {
  margin: 22px 0;
}

.food-detail-theme .restaurant-info-section h3 {
  margin: 0 0 14px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  color: #1f2937;
}

.food-detail-theme .restaurant-facts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.food-detail-theme .restaurant-fact {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 14px 12px;
  border: 1px solid #e8edf0;
  border-radius: 14px;
  background: #f8fafb;
}

.food-detail-theme .restaurant-fact-icon {
  flex: 0 0 auto;
  font-size: 22px;
  line-height: 1.3;
}

.food-detail-theme .restaurant-fact > div {
  min-width: 0;
}

.food-detail-theme .restaurant-fact small {
  display: block;
  margin-bottom: 5px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.food-detail-theme .restaurant-fact strong {
  display: block;
  color: #1f2937;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

@media (max-width: 480px) {
  .food-detail-theme .restaurant-facts-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .food-detail-theme .restaurant-fact {
    padding: 12px;
  }
}

/* END RESTAURANT DETAIL CARD — ALESHA */


/* ==========================================================
   RESTAURANT MENU SCREEN — ALESHA
   ========================================================== */

.restaurant-menu-screen {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  background: #f6f7f8;
}

.restaurant-menu-screen.hidden {
  display: none;
}

.restaurant-menu-header {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding:
    max(10px, env(safe-area-inset-top))
    14px
    10px;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
}

.restaurant-menu-back {
  justify-self: start;
  border: 0;
  padding: 8px 4px;
  background: transparent;
  color: #1f2937;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.restaurant-menu-header-title {
  font-size: 17px;
  font-weight: 750;
  line-height: 1.2;
  color: #111827;
  text-align: center;
  white-space: nowrap;
}

.restaurant-menu-close {
  justify-self: end;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #f1f3f5;
  color: #1f2937;
  font-size: 27px;
  font-weight: 300;
  line-height: 36px;
  text-align: center;
  cursor: pointer;
}

.restaurant-menu-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.restaurant-menu-content {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding:
    20px
    16px
    calc(32px + env(safe-area-inset-bottom));
}

.restaurant-menu-title-block {
  margin-bottom: 18px;
}

.restaurant-menu-title-block h2 {
  margin: 0;
  color: #111827;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.25;
}

.restaurant-menu-title-cn {
  margin-top: 6px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.45;
}

.restaurant-menu-categories-wrap {
  position: relative;
  margin: 0 -16px 18px;
  overflow: hidden;
}

.restaurant-menu-categories-wrap::before,
.restaurant-menu-categories-wrap::after {
  position: absolute;
  z-index: 5;
  top: 0;
  width: 44px;
  height: calc(100% - 4px);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  color: #334155;
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  opacity: 0;
  transition: opacity .18s ease;
}

.restaurant-menu-categories-wrap::before {
  content: "‹";
  left: 0;
  padding-right: 10px;
  background: linear-gradient(to left, rgba(255,255,255,0), #fff 55%);
}

.restaurant-menu-categories-wrap::after {
  content: "›";
  right: 0;
  padding-left: 10px;
  background: linear-gradient(to right, rgba(255,255,255,0), #fff 55%);
}

.restaurant-menu-categories-wrap.can-scroll-left::before {
  opacity: 1;
}

.restaurant-menu-categories-wrap.can-scroll-right::after {
  opacity: 1;
}
.restaurant-menu-categories {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0 46px 4px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.restaurant-menu-categories::-webkit-scrollbar {
  display: none;
}

.restaurant-menu-category {
  flex: 0 0 auto;
  border: 1px solid #dfe4e8;
  border-radius: 999px;
  padding: 9px 14px;
  background: #ffffff;
  color: #334155;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}

.restaurant-menu-category.active {
  border-color: #111827;
  background: #111827;
  color: #ffffff;
}

.restaurant-menu-status {
  padding: 28px 10px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.restaurant-menu-status:empty {
  display: none;
}

.restaurant-menu-dishes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.restaurant-menu-dish {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #ffffff;
}

.restaurant-menu-dish-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eceff1;
}

.restaurant-menu-dish-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.restaurant-menu-dish-no-photo {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 18px;
  color: #94a3b8;
  font-size: 13px;
  text-align: center;
}

.restaurant-menu-dish-body {
  padding: 13px;
}

.restaurant-menu-dish-number {
  margin-bottom: 5px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 650;
}

.restaurant-menu-dish-name {
  margin: 0;
  color: #111827;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.35;
}

.restaurant-menu-dish-name-cn {
  margin-top: 5px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.35;
}

.restaurant-menu-dish-note {
  margin-top: 8px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.restaurant-menu-dish-price {
  margin-top: 10px;
  color: #111827;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
}

.restaurant-menu-open-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 18px 0 22px;
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  background: #111827;
  color: #ffffff;
  font: inherit;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.25;
  cursor: pointer;
}

@media (max-width: 600px) {

  .restaurant-menu-header {
    grid-template-columns: 1fr auto;
  }

  .restaurant-menu-header-title {
    display: none;
  }

  .restaurant-menu-content {
    padding-left: 12px;
    padding-right: 12px;
  }

  .restaurant-menu-categories-wrap {
    margin-left: -12px;
    margin-right: -12px;
  }

  .restaurant-menu-categories {
    margin: 0;
    padding-left: 12px;
    padding-right: 46px;
  }

  .restaurant-menu-dishes {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .restaurant-menu-dish {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    min-height: 118px;
    border-radius: 15px;
  }

  .restaurant-menu-dish-photo {
    height: 100%;
    min-height: 118px;
    aspect-ratio: auto;
  }

  .restaurant-menu-dish-body {
    padding: 12px;
  }

}

@media (max-width: 370px) {

  .restaurant-menu-dish {
    grid-template-columns: 112px minmax(0, 1fr);
  }

}

/* END RESTAURANT MENU SCREEN — ALESHA */


/* Sticky restaurant menu categories */
.restaurant-menu-categories-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  padding-top: 8px;
  padding-bottom: 8px;
  margin-bottom: 10px;
  box-shadow: 0 8px 12px -12px rgba(15, 23, 42, 0.35);
}

@media (max-width: 600px) {
  .restaurant-menu-categories-wrap {
    margin-left: -12px;
    margin-right: -12px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
}

/* Route button icon */
#routeButton,
#detailRouteButton {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.route-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #111827;
}

.route-icon svg {
  width: 19px;
  height: 19px;
  display: block;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-icon circle {
  fill: #ffffff;
  stroke: #ffffff;
}


/* Route icon — clean continuous version */
.route-icon {
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 0;
  color: currentColor;
}

.route-icon svg {
  width: 27px;
  height: 27px;
  display: block;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-icon .route-path,
.route-icon .route-arrow {
  fill: none;
  stroke: currentColor;
}

.route-icon .route-start {
  fill: currentColor;
  stroke: none;
}


/* Final reset for route icon */
#routeButton .route-icon,
#detailRouteButton .route-icon {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

#routeButton .route-icon svg,
#detailRouteButton .route-icon svg {
  width: 30px !important;
  height: 30px !important;
  overflow: visible;
}


/* Route icon — mobile optimized */
#routeButton .route-icon .route-path,
#detailRouteButton .route-icon .route-path {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  stroke-dasharray: 2.5 3.8 !important;
}

#routeButton .route-icon .route-arrow,
#detailRouteButton .route-icon .route-arrow {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  stroke-dasharray: none !important;
}


/* Simple route icon: circle + straight arrow */
#routeButton .route-icon-simple,
#detailRouteButton .route-icon-simple {
  width: 27px !important;
  height: 27px !important;
  min-width: 27px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.route-icon-simple svg {
  width: 27px !important;
  height: 27px !important;
}

.route-icon-simple .route-line,
.route-icon-simple .route-arrow {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2.5 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  stroke-dasharray: none !important;
}

.route-icon-simple .route-start {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2.5 !important;
}


/* ==========================================================
   TAXI ADDRESS DIALOG
   ========================================================== */

.taxi-address-dialog {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.taxi-address-dialog.hidden {
  display: none !important;
}

.taxi-address-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.taxi-address-dialog-card {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 26px 22px 22px;
  border-radius: 22px;
  background: #ffffff;
  color: #111827;
  text-align: center;
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.28);
}

.taxi-address-dialog-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #334155;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.taxi-address-dialog-icon {
  margin-bottom: 6px;
  font-size: 34px;
  line-height: 1;
}

.taxi-address-dialog-card h2 {
  margin: 8px 35px 18px;
  font-size: 20px;
  line-height: 1.25;
}

.taxi-address-dialog-chinese {
  padding: 18px 14px;
  border-radius: 16px;
  background: #f8fafc;
  font-size: 23px;
  font-weight: 750;
  line-height: 1.55;
  letter-spacing: 0.02em;
  word-break: break-word;
}

.taxi-address-dialog-russian {
  margin-top: 12px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.45;
}

.taxi-address-dialog-status {
  margin-top: 18px;
  color: #15803d;
  font-size: 15px;
  font-weight: 700;
}

.taxi-address-dialog-hint {
  margin-top: 5px;
  color: #64748b;
  font-size: 14px;
}

.taxi-address-dialog-done {
  width: 100%;
  min-height: 50px;
  margin-top: 20px;
  border: 0;
  border-radius: 14px;
  background: #111827;
  color: #ffffff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 600px) {

  .taxi-address-dialog {
    padding: 14px;
  }

  .taxi-address-dialog-card {
    width: 100%;
    padding: 24px 18px 18px;
    border-radius: 20px;
  }

  .taxi-address-dialog-chinese {
    font-size: 22px;
  }

}


/* ==========================================================
   ACTION BUTTON COLORS
   ========================================================== */

/* Подробнее — основной синий */
#detailsButton {
  background: #2563eb !important;
  color: #ffffff !important;
}

/* Маршрут — зелёный */
#routeButton,
#detailRouteButton {
  background: #16a34a !important;
  color: #ffffff !important;
  border-color: #16a34a !important;
}

#routeButton:hover,
#detailRouteButton:hover {
  background: #15803d !important;
}

/* Нажатие */
#routeButton:active,
#detailRouteButton:active {
  background: #166534 !important;
  transform: translateY(1px);
}


/* Меню — тёплый оранжевый */
#compactMenuButton,
#detailMenuButton {
  background: #ea7a16 !important;
  color: #ffffff !important;
  border-color: #ea7a16 !important;
}

#compactMenuButton:hover,
#detailMenuButton:hover {
  background: #d96a0b !important;
}

#compactMenuButton:active,
#detailMenuButton:active {
  background: #c45d08 !important;
  transform: translateY(1px);
}


/* ==========================================================
   RESTAURANT FEATURES — COMPACT DARK STYLE
   ========================================================== */

.food-detail-theme .restaurant-info-section {
  margin: 18px 0 20px;
}

.food-detail-theme .restaurant-info-section h3 {
  margin: 0 0 11px;
  color: #ffffff !important;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.food-detail-theme .restaurant-facts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.food-detail-theme .restaurant-fact {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;

  padding: 9px 10px;

  border:
    1px solid rgba(255,255,255,.08);

  border-radius: 12px;

  background:
    rgba(255,255,255,.035);
}

.food-detail-theme .restaurant-fact-icon {
  flex: 0 0 auto;
  width: 24px;

  font-size: 18px;
  line-height: 1;
  text-align: center;
}

.food-detail-theme .restaurant-fact > div {
  min-width: 0;
}

.food-detail-theme .restaurant-fact small {
  display: block;

  margin: 0 0 2px;

  color: #8f99a8;

  font-size: 10.5px;
  line-height: 1.25;
}

.food-detail-theme .restaurant-fact strong {
  display: block;

  color: rgba(255,255,255,.92);

  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.3;

  overflow-wrap: anywhere;
}

/* Оставляем две колонки и на телефоне */
@media (max-width: 480px) {

  .food-detail-theme .restaurant-facts-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 7px;
  }

  .food-detail-theme .restaurant-fact {
    padding: 9px 8px;
    gap: 7px;
  }

  .food-detail-theme .restaurant-fact-icon {
    width: 21px;
    font-size: 17px;
  }

  .food-detail-theme .restaurant-fact small {
    font-size: 10px;
  }

  .food-detail-theme .restaurant-fact strong {
    font-size: 12px;
  }

}

/* END RESTAURANT FEATURES — COMPACT DARK STYLE */


/* Restaurant menu — multiline prices */
.restaurant-menu-dish-price {
  white-space: pre-line;
}

/* Restaurant menu — visual card upgrade */
.restaurant-menu-dish {
  border-color: #eef0f3;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.restaurant-menu-dish-number {
  display: inline-block;
  margin-bottom: 7px;
  padding: 3px 7px;
  border-radius: 7px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
}

.restaurant-menu-dish-name {
  font-weight: 700;
}

.restaurant-menu-dish-name-cn {
  margin-top: 4px;
}

.restaurant-menu-dish-price {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 9px;
  border-radius: 9px;
  background: #fff4e6;
  color: #c45a08;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  white-space: pre-line;
}

@media (hover: hover) {
  .restaurant-menu-dish:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(15, 23, 42, 0.11);
  }
}


/* Restaurant menu — search */
.restaurant-menu-search {
  position: relative;
  display: flex;
  align-items: center;
  margin: 14px 0 12px;
}

.restaurant-menu-search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  color: #64748b;
  font-size: 22px;
  line-height: 1;
  pointer-events: none;
}

.restaurant-menu-search input {
  width: 100%;
  height: 48px;
  box-sizing: border-box;
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  outline: none;
  padding: 0 46px 0 46px;
  background: #f8fafc;
  color: #111827;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.restaurant-menu-search input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.restaurant-menu-search input:focus {
  border-color: #cbd5e1;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06);
}

.restaurant-menu-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  font-size: 21px;
  line-height: 30px;
  cursor: pointer;
}

.restaurant-menu-search-clear[hidden] {
  display: none;
}

@media (max-width: 600px) {
  .restaurant-menu-search {
    margin-top: 12px;
    margin-bottom: 12px;
  }

  .restaurant-menu-search input {
    height: 46px;
    border-radius: 14px;
  }
}

/* Mobile: prevent browser zoom on restaurant menu search */
@media (max-width: 600px) {
  .restaurant-menu-search input {
    font-size: 16px;
  }
}

/* Restaurant menu — sticky search + categories v2 */
.restaurant-menu-tools {
  position: sticky;
  top: 0;
  z-index: 30;
  width: auto;
  box-sizing: border-box;
  background: #ffffff;
  padding-top: 8px;
  padding-bottom: 8px;
  box-shadow: 0 8px 12px -12px rgba(15, 23, 42, 0.35);
}

.restaurant-menu-tools .restaurant-menu-search {
  margin-top: 0;
  margin-bottom: 8px;
}

.restaurant-menu-tools .restaurant-menu-categories-wrap {
  position: static;
  top: auto;
  z-index: auto;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  box-shadow: none;
}

@media (max-width: 600px) {
  .restaurant-menu-tools {
    width: auto;
    margin-left: 0;
    margin-right: 0;
  }

  .restaurant-menu-tools .restaurant-menu-search {
    margin-left: 0;
    margin-right: 0;
  }

  .restaurant-menu-tools .restaurant-menu-categories-wrap {
    margin-left: 0;
    margin-right: 0;
  }
}

/* Restaurant menu — add to order button */
.restaurant-menu-dish-add {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  background: #f97316;
  color: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.restaurant-menu-dish-add:active {
  transform: scale(0.98);
}

@media (hover: hover) {
  .restaurant-menu-dish-add:hover {
    filter: brightness(0.96);
  }
}

/* Restaurant menu — dish quantity counter */
.restaurant-menu-dish-counter {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  width: 100%;
  min-height: 35px;
  margin-top: 10px;
  border-radius: 10px;
  background: #fff4e6;
  overflow: hidden;
}

.restaurant-menu-dish-counter-btn {
  width: 42px;
  height: 35px;
  padding: 0;
  border: 0;
  background: #f97316;
  color: #ffffff;
  font: inherit;
  font-size: 21px;
  font-weight: 800;
  line-height: 35px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.restaurant-menu-dish-counter-btn:active {
  transform: scale(0.94);
}

.restaurant-menu-dish-counter-value {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  color: #c45a08;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

/* Restaurant menu — floating order bar */
.restaurant-menu-order-bar {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  min-height: 54px;
  padding: 10px 16px;

  border: 0;
  border-radius: 16px;

  background: #f97316;
  color: #ffffff;

  font: inherit;
  cursor: pointer;

  box-shadow:
    0 8px 24px rgba(15, 23, 42, 0.22);

  -webkit-tap-highlight-color: transparent;
}

.restaurant-menu-order-bar.hidden {
  display: none;
}

.restaurant-menu-order-bar-title {
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.restaurant-menu-order-bar-summary {
  font-size: 14px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.restaurant-menu-order-bar:active {
  transform: scale(0.985);
}

@media (max-width: 600px) {
  .restaurant-menu-order-bar {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
}

/* =========================================================
   RESTAURANT — MY ORDER SCREEN
   ========================================================= */

.restaurant-order-screen {
  position: fixed;
  inset: 0;
  z-index: 9100;
  display: flex;
  flex-direction: column;
  background: #f5f6f8;
}

.restaurant-order-screen.hidden {
  display: none;
}

.restaurant-order-header {
  position: relative;
  flex: 0 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  padding: 12px 18px;
  background: #ffffff;
  border-bottom: 1px solid #e8ebef;
}

.restaurant-order-back {
  border: 0;
  padding: 8px 0;
  background: transparent;
  color: #1f2937;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.restaurant-order-header-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #111827;
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}

.restaurant-order-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.restaurant-order-content {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 16px 30px;
  box-sizing: border-box;
}

.restaurant-order-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.restaurant-order-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding: 17px 18px;
  border-radius: 16px;
  background: #ffffff;
  color: #111827;
  font-size: 18px;
  font-weight: 750;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.06);
}

.restaurant-order-total strong {
  color: #c45a08;
  font-size: 22px;
  font-weight: 850;
}

.restaurant-order-waiter {
  width: 100%;
  min-height: 54px;
  margin-top: 14px;
  padding: 12px 16px;
  border: 0;
  border-radius: 16px;
  background: #f97316;
  color: #ffffff;
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.restaurant-order-waiter:active {
  transform: scale(0.985);
}

@media (max-width: 600px) {
  .restaurant-order-header {
    min-height: 64px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .restaurant-order-content {
    padding: 14px 12px 26px;
  }
}

/* Restaurant — order item cards */
.restaurant-order-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  overflow: hidden;
  min-height: 122px;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.06);
}

.restaurant-order-item-photo {
  width: 112px;
  height: 100%;
  min-height: 122px;
  object-fit: cover;
  display: block;
}

.restaurant-order-item-photo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  font-size: 30px;
}

.restaurant-order-item-body {
  position: relative;
  min-width: 0;
  padding: 12px;
}

.restaurant-order-item-name {
  color: #111827;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.3;
}

.restaurant-order-item-name-cn {
  margin-top: 4px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.3;
}

.restaurant-order-item-option {
  margin-top: 6px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 650;
}

.restaurant-order-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.restaurant-order-item-price {
  color: #c45a08;
  font-size: 16px;
  font-weight: 850;
  white-space: nowrap;
}

.restaurant-order-item-counter {
  display: grid;
  grid-template-columns: 34px 32px 34px;
  align-items: center;
  overflow: hidden;
  min-height: 32px;
  border-radius: 9px;
  background: #fff4e6;
}

.restaurant-order-item-counter button {
  width: 34px;
  height: 32px;
  padding: 0;
  border: 0;
  background: #f97316;
  color: #ffffff;
  font: inherit;
  font-size: 19px;
  font-weight: 800;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.restaurant-order-item-counter span {
  color: #c45a08;
  font-size: 14px;
  font-weight: 850;
  text-align: center;
}

.restaurant-order-item-sum {
  margin-top: 7px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.restaurant-order-empty {
  padding: 40px 20px;
  border-radius: 16px;
  background: #ffffff;
  color: #6b7280;
  font-size: 16px;
  text-align: center;
}

@media (max-width: 420px) {
  .restaurant-order-item {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .restaurant-order-item-photo {
    width: 100px;
  }
}

/* Restaurant order — remove item button */
.restaurant-order-item-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 28px;
  height: 28px;
  padding: 0;

  border: 0;
  border-radius: 50%;

  background: #f3f4f6;
  color: #6b7280;

  font: inherit;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;

  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.restaurant-order-item-remove:active {
  transform: scale(0.92);
  background: #e5e7eb;
}

.restaurant-order-item-name {
  padding-right: 30px;
}

/* =========================================================
   RESTAURANT — WAITER SCREEN
   ========================================================= */

.restaurant-waiter-screen {
  position: fixed;
  inset: 0;
  z-index: 9200;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.restaurant-waiter-screen.hidden {
  display: none;
}

.restaurant-waiter-header {
  flex: 0 0 auto;
  min-height: 62px;
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid #e8ebef;
  background: #ffffff;
}

.restaurant-waiter-back {
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #1f2937;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.restaurant-waiter-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.restaurant-waiter-content {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 16px 32px;
  box-sizing: border-box;
}

.restaurant-waiter-intro {
  margin-bottom: 20px;
  text-align: center;
}

.restaurant-waiter-title {
  color: #111827;
  font-size: 30px;
  font-weight: 850;
  line-height: 1.25;
}

.restaurant-waiter-subtitle {
  margin-top: 6px;
  color: #6b7280;
  font-size: 14px;
}

.restaurant-waiter-items {
  display: flex;
  flex-direction: column;
}

.restaurant-waiter-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px 4px;
  border-bottom: 1px solid #e5e7eb;
}

.restaurant-waiter-item-name {
  color: #111827;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.35;
}

.restaurant-waiter-item-option {
  margin-top: 5px;
  color: #6b7280;
  font-size: 17px;
  font-weight: 650;
}

.restaurant-waiter-item-quantity {
  min-width: 62px;
  color: #f97316;
  font-size: 27px;
  font-weight: 900;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.restaurant-waiter-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding: 18px;
  border-radius: 16px;
  background: #fff4e6;
}

.restaurant-waiter-total-label {
  color: #111827;
  font-size: 24px;
  font-weight: 850;
}

.restaurant-waiter-total strong {
  color: #c45a08;
  font-size: 28px;
  font-weight: 900;
}

@media (max-width: 420px) {
  .restaurant-waiter-content {
    padding-left: 14px;
    padding-right: 14px;
  }

  .restaurant-waiter-item-name {
    font-size: 21px;
  }

  .restaurant-waiter-item-quantity {
    font-size: 25px;
  }
}

/* Русское название на экране официанта */
.restaurant-waiter-item-name-ru {
  margin-top: 5px;
  color: #6b7280;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}
/* =========================================================
   RESTAURANT — ВЫБОР ВАРИАНТА БЛЮДА
   ========================================================= */

.restaurant-option-modal {
  position: fixed;
  inset: 0;
  z-index: 9300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.restaurant-option-modal.hidden {
  display: none;
}

.restaurant-option-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
}

.restaurant-option-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  max-height: 80vh;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 20px 16px 18px;
  border-radius: 22px 22px 0 0;
  background: #ffffff;
  box-shadow: 0 -10px 35px rgba(15, 23, 42, 0.18);
}

.restaurant-option-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.restaurant-option-title {
  color: #111827;
  font-size: 22px;
  font-weight: 850;
  line-height: 1.25;
}

.restaurant-option-dish-name {
  margin-top: 5px;
  color: #6b7280;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.restaurant-option-close {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f3f4f6;
  color: #4b5563;
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.restaurant-option-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.restaurant-option-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
  padding: 15px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
  color: #111827;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.restaurant-option-choice:active {
  transform: scale(0.985);
  background: #fff7ed;
}

.restaurant-option-choice-label {
  min-width: 0;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.3;
}

.restaurant-option-choice-price {
  flex: 0 0 auto;
  color: #c45a08;
  font-size: 18px;
  font-weight: 850;
  white-space: nowrap;
}

.restaurant-option-cancel {
  width: 100%;
  margin-top: 14px;
  padding: 13px 16px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  color: #374151;
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
}

@media (min-width: 700px) {
  .restaurant-option-modal {
    align-items: center;
    padding: 24px;
  }

  .restaurant-option-dialog {
    border-radius: 22px;
  }
}
/* Стоимость позиции на экране официанта */

.restaurant-waiter-item-price-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  min-width: 82px;
}

.restaurant-waiter-item-price {
  color: #111827;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
  text-align: right;
  white-space: nowrap;
}

.restaurant-waiter-item-sum {
  color: #c45a08;
  font-size: 17px;
  font-weight: 850;
  line-height: 1.1;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .restaurant-waiter-item-price-wrap {
    min-width: 76px;
  }

  .restaurant-waiter-item-price {
    font-size: 17px;
  }

  .restaurant-waiter-item-sum {
    font-size: 16px;
  }
}
/* =========================================================
   RESTAURANT — ПОЛНАЯ КАРТОЧКА
   ========================================================= */

.restaurant-info-section {
  margin-top: 20px;
}

.restaurant-info-section h3 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 20px;
  font-weight: 850;
  line-height: 1.25;
}

.restaurant-info-section p {
  margin: 0;
  color: #374151;
  font-size: 16px;
  line-height: 1.65;
  white-space: pre-line;
}


/* Адрес ресторана */

.restaurant-address-section {
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #f9fafb;
}

.restaurant-address-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
}

.restaurant-address-row + .restaurant-address-row {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
}

.restaurant-address-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fff4e6;
  font-size: 18px;
  line-height: 1;
}

.restaurant-address-row small {
  display: block;
  margin-bottom: 4px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
}

.restaurant-address-row div > div {
  color: #111827;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.45;
}


/* Мобильная версия */

@media (max-width: 600px) {

  .restaurant-info-section {
    margin-top: 18px;
  }

  .restaurant-info-section h3 {
    font-size: 19px;
  }

  .restaurant-info-section p {
    font-size: 15px;
    line-height: 1.6;
  }

  .restaurant-address-section {
    padding: 14px;
    border-radius: 14px;
  }

}
/* =========================================================
   RESTAURANT — DARK DETAIL FIX
   ========================================================= */

.food-detail-theme .restaurant-info-section p {
  color: #aeb6c2;
}

.food-detail-theme .restaurant-address-section {
  padding: 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}

.food-detail-theme .restaurant-address-row + .restaurant-address-row {
  border-top-color: rgba(255,255,255,.08);
}

.food-detail-theme .restaurant-address-icon {
  background: rgba(249,115,22,.12);
}

.food-detail-theme .restaurant-address-row small {
  color: #8f99a8;
}

.food-detail-theme .restaurant-address-row div > div {
  color: rgba(255,255,255,.92);
}

.food-detail-theme .restaurant-address-section h3 {
  color: #ffffff !important;
}
/* Кухня ресторана — широкая карточка */

.food-detail-theme .restaurant-fact-wide {
  grid-column: 1 / -1;
}

/* ==========================================================
   RELATED CARDS — MOBILE
   ========================================================== */

@media (max-width: 899px) {

  .desktop-related-section {
    min-width: 0;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.08);
  }

  .desktop-related-section.hidden {
    display: none !important;
  }

  .desktop-related-section:not(.hidden) {
    display: block;
  }

  .desktop-related-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
  }

  .desktop-related-head h3 {
    margin: 0;
    color: #fff;
    font-size: 19px;
    line-height: 1.25;
    font-weight: 800;
  }

  .desktop-related-subtitle {
    margin-top: 5px;
    color: rgba(255,255,255,.50);
    font-size: 12px;
    line-height: 1.35;
  }

  .desktop-related-arrows {
    display: none;
  }

  .desktop-related-track {
    display: flex;
    width: 100%;
    min-width: 0;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 18% 12px 0;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .desktop-related-track::-webkit-scrollbar {
    display: none;
  }

  .desktop-related-card {
    flex: 0 0 82%;
    width: 82%;
    max-width: 310px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 15px;
    background: #171A1F;
    color: #fff;
    text-align: left;
    scroll-snap-align: start;
  }

  .desktop-related-photo {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #101216;
    font-size: 38px;
  }

  .desktop-related-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }

  .desktop-related-photo-empty {
    color: rgba(255,255,255,.45);
  }

  .desktop-related-card-body {
    padding: 12px 13px 14px;
  }

  .desktop-related-card-title {
    min-height: 40px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 750;
  }

  .desktop-related-apartment-meta {
    margin-top: 7px;
    color: rgba(255,255,255,.55);
    font-size: 12px;
    line-height: 1.4;
  }

  .desktop-related-card-price {
    margin-top: 8px;
    color: #8BB8FF;
    font-size: 13px;
    font-weight: 650;
  }

}

/* ==========================================================
   RELATED CARDS — MOBILE END
   ========================================================== */

/* ==========================================================
   APARTMENT DESKTOP INFO UNDER GALLERY
   ========================================================== */

@media (min-width: 900px) {

  .apartment-detail-theme .apartment-desktop-info {
    grid-column: 1;
    min-width: 0;
    margin-top: 0;
    padding: 18px;
    box-sizing: border-box;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    background:
      linear-gradient(
        155deg,
        #1d232a 0%,
        #15191f 52%,
        #101318 100%
      );
    box-shadow:
      0 14px 38px rgba(0,0,0,.24);
  }

  .apartment-detail-theme
  .apartment-desktop-info
  .apartment-info-section:first-child {
    margin-top: 0;
  }

}

@media (max-width: 899px) {

  .apartment-desktop-info {
    display: contents;
  }

}

/* ==========================================================
   APARTMENT DESKTOP INFO UNDER GALLERY END
   ========================================================== */

/* ==========================================================
   APARTMENT DESKTOP LAYOUT FINAL
   ========================================================== */

@media (min-width: 900px) {

  .apartment-detail-theme .detail-scroll {
    grid-template-rows:
      max-content
      max-content
      max-content !important;
    align-items: start !important;
  }

  .apartment-detail-theme .gallery-block {
    grid-column: 1 !important;
    grid-row: 1 !important;

    position: relative !important;
    top: auto !important;

    align-self: start !important;
  }

  .apartment-detail-theme .detail-content {
    grid-column: 2 !important;
    grid-row: 1 !important;

    align-self: start !important;
  }

  .apartment-detail-theme .apartment-desktop-info {
    grid-column: 1 !important;
    grid-row: 2 !important;

    align-self: start !important;
  }

  .apartment-detail-theme .desktop-related-section {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
  }

}

/* ==========================================================
   APARTMENT DESKTOP LAYOUT FINAL END
   ========================================================== */

/* ==========================================================
   APARTMENT DESKTOP — SINGLE COLUMN
   ========================================================== */

@media (min-width: 900px) {

  .apartment-detail-theme .detail-scroll {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows:
      max-content
      max-content
      max-content !important;

    max-width: 1050px !important;
    gap: 22px !important;
    align-items: start !important;
  }

  .apartment-detail-theme .gallery-block {
    grid-column: 1 !important;
    grid-row: 1 !important;

    position: relative !important;
    top: auto !important;

    width: 100% !important;
    align-self: start !important;
  }

  .apartment-detail-theme .detail-content {
    grid-column: 1 !important;
    grid-row: 2 !important;

    width: 100% !important;
    min-width: 0 !important;
    align-self: start !important;
  }

  .apartment-detail-theme .desktop-related-section {
    grid-column: 1 !important;
    grid-row: 3 !important;

    width: 100% !important;
  }

  .apartment-detail-theme .apartment-desktop-info {
    display: none !important;
  }

}

/* ==========================================================
   APARTMENT DESKTOP — SINGLE COLUMN END
   ========================================================== */

/* ==========================================================
   RESTAURANT DESKTOP — SINGLE COLUMN
   ========================================================== */

@media (min-width: 900px) {

  .food-detail-theme .detail-scroll {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows:
      max-content
      max-content
      max-content !important;

    max-width: 1050px !important;
    gap: 22px !important;
    align-items: start !important;
  }

  .food-detail-theme .gallery-block {
    grid-column: 1 !important;
    grid-row: 1 !important;

    position: relative !important;
    top: auto !important;

    width: 100% !important;
    align-self: start !important;
  }

  .food-detail-theme .detail-content {
    grid-column: 1 !important;
    grid-row: 2 !important;

    width: 100% !important;
    min-width: 0 !important;
    align-self: start !important;
  }

  .food-detail-theme .desktop-related-section {
    grid-column: 1 !important;
    grid-row: 3 !important;

    width: 100% !important;
  }

}

/* ==========================================================
   RESTAURANT DESKTOP — SINGLE COLUMN END
   ========================================================== */

/* ==========================================================
   PLACE DESKTOP — SINGLE COLUMN
   ========================================================== */

@media (min-width: 900px) {

  .place-detail-theme .detail-scroll {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows:
      max-content
      max-content
      max-content !important;

    max-width: 1050px !important;
    gap: 22px !important;
    align-items: start !important;
  }

  .place-detail-theme .gallery-block {
    grid-column: 1 !important;
    grid-row: 1 !important;

    position: relative !important;
    top: auto !important;

    width: 100% !important;
    align-self: start !important;
  }

  .place-detail-theme .detail-content {
    grid-column: 1 !important;
    grid-row: 2 !important;

    width: 100% !important;
    min-width: 0 !important;
    align-self: start !important;
  }

  .place-detail-theme .desktop-related-section {
    grid-column: 1 !important;
    grid-row: 3 !important;

    width: 100% !important;
  }

}

/* ==========================================================
   PLACE DESKTOP — SINGLE COLUMN END
   ========================================================== */

/* ==========================================================
   SHOPPING CENTER DESKTOP — SINGLE COLUMN
   ========================================================== */

@media (min-width: 900px) {

  .shopping-center-detail-theme .detail-scroll {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows:
      max-content
      max-content
      max-content !important;

    max-width: 1050px !important;
    gap: 22px !important;
    align-items: start !important;
  }

  .shopping-center-detail-theme .gallery-block {
    grid-column: 1 !important;
    grid-row: 1 !important;

    position: relative !important;
    top: auto !important;

    width: 100% !important;
    align-self: start !important;
  }

  .shopping-center-detail-theme .detail-content {
    grid-column: 1 !important;
    grid-row: 2 !important;

    width: 100% !important;
    min-width: 0 !important;
    align-self: start !important;
  }

  .shopping-center-detail-theme .desktop-related-section {
    grid-column: 1 !important;
    grid-row: 3 !important;

    width: 100% !important;
  }

}

/* ==========================================================
   SHOPPING CENTER DESKTOP — SINGLE COLUMN END
   ========================================================== */

/* ==========================================================
   SHOPPING STORES BUTTON
   ========================================================== */

.shopping-stores-button {
  border: 1px solid rgba(245,158,11,.42) !important;
  background:
    linear-gradient(
      135deg,
      rgba(245,158,11,.20),
      rgba(217,119,6,.14)
    ) !important;
  color: #ffd28a !important;
  font-weight: 750 !important;
}

.shopping-stores-button:hover {
  border-color: rgba(245,158,11,.62) !important;
  background:
    linear-gradient(
      135deg,
      rgba(245,158,11,.28),
      rgba(217,119,6,.20)
    ) !important;
}

/* ==========================================================
   SHOPPING STORES BUTTON END
   ========================================================== */

/* ==========================================================
   SHOPPING STORES SCREEN
   ========================================================== */

.shopping-stores-screen {
  position: fixed;
  inset: 0;
  z-index: 8500;

  display: flex;
  flex-direction: column;

  background:
    var(--tg-theme-bg-color, #11151a);
}

.shopping-stores-screen.hidden {
  display: none !important;
}

.shopping-stores-header {
  display: flex;
  align-items: center;
  gap: 14px;

  min-height: 58px;
  padding: 8px 14px;

  border-bottom:
    1px solid rgba(255,255,255,.08);

  background: #11151a;
}

.shopping-stores-back {
  flex: 0 0 auto;

  border: 0;
  border-radius: 10px;

  padding: 9px 12px;

  background:
    rgba(255,255,255,.06);

  color: #fff;

  font-size: 14px;
  font-weight: 700;

  cursor: pointer;
}

.shopping-stores-header-title {
  min-width: 0;

  color: #fff;

  font-size: 16px;
  font-weight: 800;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shopping-stores-scroll {
  flex: 1 1 auto;
  min-height: 0;

  overflow-y: auto;
  overflow-x: hidden;

  -webkit-overflow-scrolling: touch;
}

.shopping-stores-content {
  width: calc(100% - 32px);
  max-width: 1050px;

  margin: 0 auto;

  padding: 24px 0 48px;
  box-sizing: border-box;
}

.shopping-stores-title-block {
  margin-bottom: 20px;
}

.shopping-stores-title-block h2 {
  margin: 0;

  color: #fff;

  font-size: 28px;
  line-height: 1.2;
}

.shopping-stores-title-cn {
  margin-top: 6px;

  color:
    rgba(255,255,255,.55);

  font-size: 14px;
}

.shopping-stores-list {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 14px;
}

.shopping-store-card {
  display: block;

  width: 100%;

  padding: 16px;

  border:
    1px solid rgba(255,255,255,.08);

  border-radius: 16px;

  background:
    linear-gradient(
      155deg,
      #1d232a 0%,
      #15191f 55%,
      #101318 100%
    );

  color: #fff;

  text-align: left;

  box-sizing: border-box;
}

.shopping-store-card-title {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}

.shopping-store-card-title-cn {
  margin-top: 4px;

  color:
    rgba(255,255,255,.58);

  font-size: 13px;
}

.shopping-store-card-meta {
  margin-top: 10px;

  color:
    rgba(255,255,255,.70);

  font-size: 13px;
  line-height: 1.45;
}

.shopping-store-card-description {
  margin-top: 10px;

  color:
    rgba(255,255,255,.82);

  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 700px) {

  .shopping-stores-content {
    width: calc(100% - 24px);
    padding-top: 18px;
  }

  .shopping-stores-title-block h2 {
    font-size: 23px;
  }

  .shopping-stores-list {
    grid-template-columns: 1fr;
    gap: 11px;
  }

}

/* ==========================================================
   SHOPPING STORES SCREEN END
   ========================================================== */

/* ==========================================================
   SHOPPING STORES BUTTON — REDESIGN
   ========================================================== */

.shopping-stores-button {
  grid-column: 1 / -1 !important;

  width: 100% !important;
  min-height: 52px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  gap: 9px !important;

  padding: 12px 18px !important;

  border: 0 !important;
  border-radius: 14px !important;

  background:
    linear-gradient(
      135deg,
      #f59e0b 0%,
      #d97706 100%
    ) !important;

  color: #ffffff !important;

  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;

  text-align: center !important;

  box-shadow:
    0 8px 20px rgba(217,119,6,.22) !important;

  cursor: pointer !important;
}

.shopping-stores-button:hover {
  background:
    linear-gradient(
      135deg,
      #f6a817 0%,
      #e0830b 100%
    ) !important;
}

.shopping-stores-button:active {
  transform: translateY(1px);
}

/* ==========================================================
   SHOPPING STORES BUTTON — REDESIGN END
   ========================================================== */

/* ==========================================================
   SHOPPING STORES BUTTON — TYPOGRAPHY TUNE
   ========================================================== */

.shopping-stores-button {
  font-size: 15px !important;
  font-weight: 650 !important;
}

/* ==========================================================
   SHOPPING STORES BUTTON — TYPOGRAPHY TUNE END
   ========================================================== */

/* ==========================================================
   SHOPPING STORES BUTTON — SAME TYPOGRAPHY AS ACTION BUTTONS
   ========================================================== */

.shopping-stores-button {
  font-size: inherit !important;
  font-weight: 600 !important;
  line-height: normal !important;
}

/* ==========================================================
   SHOPPING STORES BUTTON — SAME TYPOGRAPHY AS ACTION BUTTONS END
   ========================================================== */

/* ==========================================================
   MEDICAL CENTER DETAIL — SINGLE COLUMN DESKTOP
   ========================================================== */

@media (min-width: 900px) {

  .medical-center-detail-theme .detail-scroll {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows:
      max-content
      max-content
      max-content !important;

    max-width: 1050px !important;
    gap: 22px !important;
    align-items: start !important;
  }

  .medical-center-detail-theme .gallery-block {
    grid-column: 1 !important;
    grid-row: 1 !important;

    position: relative !important;
    top: auto !important;

    width: 100% !important;
    align-self: start !important;
  }

  .medical-center-detail-theme .detail-content {
    grid-column: 1 !important;
    grid-row: 2 !important;

    width: 100% !important;
    min-width: 0 !important;
    align-self: start !important;
  }

  .medical-center-detail-theme .desktop-related-section {
    grid-column: 1 !important;
    grid-row: 3 !important;

    width: 100% !important;
  }

}

/* ==========================================================
   MEDICAL CENTER DETAIL — SINGLE COLUMN DESKTOP END
   ========================================================== */


/* Магазины внутри — скрывать у всех неподходящих объектов */
.shopping-stores-button.hidden {
  display: none !important;
}


/* ==========================================================
   MEDICAL PROCEDURES SCREEN
   ========================================================== */

.medical-procedures-screen {
  position: fixed;
  inset: 0;
  z-index: 8600;

  display: flex;
  flex-direction: column;

  background: var(
    --tg-theme-bg-color,
    #11151a
  );
}

.medical-procedures-screen.hidden {
  display: none !important;
}

.medical-procedures-header {
  display: flex;
  align-items: center;
  gap: 14px;

  min-height: 58px;
  padding: 8px 14px;

  border-bottom:
    1px solid rgba(255,255,255,.08);

  background: #11151a;
}

.medical-procedures-back {
  flex: 0 0 auto;

  border: 0;
  border-radius: 10px;

  padding: 9px 12px;

  background:
    rgba(255,255,255,.06);

  color: #fff;

  font-size: 14px;
  font-weight: 700;

  cursor: pointer;
}

.medical-procedures-header-title {
  min-width: 0;

  color: #fff;

  font-size: 16px;
  font-weight: 800;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.medical-procedures-scroll {
  flex: 1 1 auto;
  min-height: 0;

  overflow-y: auto;
  overflow-x: hidden;

  -webkit-overflow-scrolling: touch;
}

.medical-procedures-content {
  width: calc(100% - 32px);
  max-width: 1050px;

  margin: 0 auto;
  padding: 24px 0 48px;

  box-sizing: border-box;
}

.medical-procedures-title-block {
  margin-bottom: 22px;
}

.medical-procedures-title-block h2 {
  margin: 0;

  color: #fff;

  font-size: 28px;
  line-height: 1.2;
}

.medical-procedures-title-cn {
  margin-top: 6px;

  color:
    rgba(255,255,255,.55);

  font-size: 14px;
}

.medical-procedures-section {
  margin-top: 24px;
}

.medical-procedures-section.hidden {
  display: none !important;
}

.medical-procedures-section h3 {
  margin:
    0 0 12px;

  color: #fff;

  font-size: 20px;
  line-height: 1.25;
}

.medical-procedures-list {
  display: grid;
  gap: 10px;
}

.medical-procedure-card {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    auto;

  gap: 14px;

  align-items: center;

  padding: 14px 16px;

  border:
    1px solid
    rgba(255,255,255,.08);

  border-radius: 14px;

  background:
    linear-gradient(
      155deg,
      #1d232a 0%,
      #15191f 60%,
      #101318 100%
    );
}

.medical-procedure-main {
  min-width: 0;
}

.medical-procedure-name {
  color: #fff;

  font-size: 15px;
  font-weight: 700;

  line-height: 1.35;
}

.medical-procedure-meta {
  margin-top: 5px;

  color:
    rgba(255,255,255,.60);

  font-size: 13px;
  line-height: 1.4;
}

.medical-procedure-price {
  flex: 0 0 auto;

  color: #fff;

  font-size: 16px;
  font-weight: 800;

  white-space: nowrap;

  text-align: right;
}

@media (max-width: 700px) {

  .medical-procedures-content {
    width:
      calc(100% - 24px);

    padding-top: 18px;
  }

  .medical-procedures-title-block h2 {
    font-size: 23px;
  }

  .medical-procedures-section h3 {
    font-size: 18px;
  }

  .medical-procedure-card {
    grid-template-columns:
      minmax(0, 1fr)
      auto;

    gap: 10px;

    padding: 13px 14px;
  }

  .medical-procedure-price {
    font-size: 15px;
  }

}

/* ==========================================================
   MEDICAL PROCEDURES SCREEN END
   ========================================================== */


/* ==========================================================
   MEDICAL PRICES BUTTON
   ========================================================== */

.medical-prices-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  width: 100%;
  min-height: 56px;
  padding: 14px 18px;

  border: 1px solid rgba(255, 184, 77, 0.22);
  border-radius: 18px;

  background: linear-gradient(
    180deg,
    #ffb547 0%,
    #f59e0b 100%
  );

  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;

  box-shadow:
    0 10px 24px rgba(245, 158, 11, 0.22);

  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    opacity 0.16s ease;
}

.medical-prices-button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 28px rgba(245, 158, 11, 0.28);
}

.medical-prices-button:active {
  transform: translateY(0);
  box-shadow:
    0 8px 18px rgba(245, 158, 11, 0.20);
}

.medical-prices-button.hidden {
  display: none !important;
}

@media (max-width: 600px) {
  .medical-prices-button {
    min-height: 52px;
    padding: 12px 16px;
    font-size: 15px;
    border-radius: 16px;
  }
}

/* END MEDICAL PRICES BUTTON */


/* ==========================================================
   MEDICAL PRICES BUTTON — FINAL
   ========================================================== */

.medical-prices-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;

  min-height: 52px !important;
  padding: 12px 18px !important;

  border: 0 !important;
  border-radius: 16px !important;

  background:
    linear-gradient(
      135deg,
      #f59e0b 0%,
      #d97706 100%
    ) !important;

  color: #ffffff !important;

  font-size: inherit !important;
  font-weight: 600 !important;
  line-height: normal !important;

  box-shadow:
    0 8px 20px
    rgba(217,119,6,.20) !important;
}

.medical-prices-button.hidden {
  display: none !important;
}


/* MEDICAL PRICES BUTTON — COMPACT HEIGHT */

.medical-prices-button {
  height: 54px !important;
  min-height: 54px !important;
  max-height: 54px !important;

  align-self: center !important;

  padding: 10px 16px !important;
}


/* ==========================================================
   UNIFIED ACTION BUTTON SIZE
   ========================================================== */

#detailsButton,
#routeButton,
#compactMedicalProceduresButton,
#compactMedicalBookButton,
#taxiButton,
#detailRouteButton,
#detailMedicalProceduresButton,
#detailMedicalBookButton,
#detailTaxiButton {
  height: 56px !important;
  min-height: 56px !important;
  max-height: 56px !important;

  padding: 12px 16px !important;

  border-radius: 16px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  box-sizing: border-box !important;

  font-size: inherit !important;
  line-height: 1.2 !important;
}

#compactMedicalProceduresButton.hidden,
#compactMedicalBookButton.hidden,
#detailMedicalProceduresButton.hidden,
#detailMedicalBookButton.hidden {
  display: none !important;
}

/* ==========================================================
   UNIFIED ACTION BUTTON SIZE END
   ========================================================== */


/* ==========================================================
   MEDICAL CENTER — TAXI BUTTON FULL WIDTH
   ========================================================== */

.medical-center-card-theme #taxiButton {
  grid-column: 1 / -1 !important;
  width: 100% !important;
}

.medical-center-detail-theme #detailTaxiButton {
  grid-column: 1 / -1 !important;
  width: 100% !important;
}

/* ==========================================================
   MEDICAL CENTER — TAXI BUTTON FULL WIDTH END
   ========================================================== */


/* ==========================================================
   MEDICAL BOOKING SCREEN
   ========================================================== */

.medical-booking-screen {
  position: fixed;
  inset: 0;
  z-index: 8700;

  display: flex;
  flex-direction: column;

  background:
    var(--tg-theme-bg-color, #11151a);
}

.medical-booking-screen.hidden {
  display: none !important;
}

.medical-booking-header {
  display: flex;
  align-items: center;
  gap: 14px;

  min-height: 58px;
  padding: 8px 14px;

  border-bottom:
    1px solid rgba(255,255,255,.08);

  background: #11151a;
}

.medical-booking-back {
  flex: 0 0 auto;

  border: 0;
  border-radius: 10px;

  padding: 9px 12px;

  background:
    rgba(255,255,255,.06);

  color: #fff;

  font-size: 14px;
  font-weight: 700;

  cursor: pointer;
}

.medical-booking-header-title {
  min-width: 0;

  color: #fff;

  font-size: 16px;
  font-weight: 800;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.medical-booking-scroll {
  flex: 1 1 auto;
  min-height: 0;

  overflow-y: auto;
  overflow-x: hidden;

  -webkit-overflow-scrolling: touch;
}

.medical-booking-content {
  width: calc(100% - 32px);
  max-width: 760px;

  margin: 0 auto;
  padding: 24px 0 48px;

  box-sizing: border-box;
}

.medical-booking-title-block {
  margin-bottom: 22px;
}

.medical-booking-title-block h2 {
  margin: 0;

  color: #fff;

  font-size: 28px;
  line-height: 1.2;
}

.medical-booking-title-cn {
  margin-top: 6px;

  color:
    rgba(255,255,255,.55);

  font-size: 14px;
}

.medical-booking-section {
  margin-top: 18px;
}

.medical-booking-label {
  margin-bottom: 10px;

  color: #fff;

  font-size: 15px;
  font-weight: 700;
}

.medical-booking-procedures {
  display: grid;
  gap: 10px;
}

.medical-booking-procedure {
  display: flex;
  align-items: flex-start;
  gap: 10px;

  padding: 13px 14px;

  border:
    1px solid rgba(255,255,255,.08);

  border-radius: 14px;

  background:
    linear-gradient(
      155deg,
      #1d232a 0%,
      #15191f 60%,
      #101318 100%
    );

  cursor: pointer;
}

.medical-booking-procedure input {
  flex: 0 0 auto;

  margin-top: 3px;

  width: 18px;
  height: 18px;
}

.medical-booking-procedure-main {
  min-width: 0;
  flex: 1 1 auto;
}

.medical-booking-procedure-name {
  color: #fff;

  font-size: 15px;
  font-weight: 700;

  line-height: 1.35;
}

.medical-booking-procedure-meta {
  margin-top: 4px;

  color:
    rgba(255,255,255,.60);

  font-size: 13px;
  line-height: 1.4;
}

.medical-booking-procedure-price {
  flex: 0 0 auto;

  color: #f6b94b;

  font-size: 14px;
  font-weight: 800;

  white-space: nowrap;
}

.medical-booking-field {
  display: grid;
  gap: 7px;

  margin-top: 12px;
}

.medical-booking-field > span {
  color:
    rgba(255,255,255,.78);

  font-size: 14px;
  font-weight: 600;
}

.medical-booking-field input,
.medical-booking-field textarea {
  width: 100%;

  box-sizing: border-box;

  border:
    1px solid rgba(255,255,255,.10);

  border-radius: 13px;

  padding: 13px 14px;

  background:
    rgba(255,255,255,.055);

  color: #fff;

  font: inherit;

  outline: none;
}

.medical-booking-field input:focus,
.medical-booking-field textarea:focus {
  border-color:
    rgba(74,144,226,.65);

  background:
    rgba(255,255,255,.075);
}

.medical-booking-field textarea {
  resize: vertical;
  min-height: 96px;
}

.medical-booking-check {
  display: flex;
  align-items: center;
  gap: 10px;

  color: #fff;

  font-size: 14px;
  line-height: 1.4;

  cursor: pointer;
}

.medical-booking-check input {
  width: 18px;
  height: 18px;

  flex: 0 0 auto;
}

.medical-booking-transfer-areas {
  display: grid;
  gap: 9px;

  margin-top: 12px;
  padding-left: 28px;
}

.medical-booking-transfer-areas.hidden {
  display: none !important;
}

.medical-booking-error {
  margin-top: 16px;

  padding: 12px 14px;

  border-radius: 12px;

  background:
    rgba(239,68,68,.12);

  border:
    1px solid rgba(239,68,68,.28);

  color: #ffb4b4;

  font-size: 14px;
  line-height: 1.4;
}

.medical-booking-error.hidden {
  display: none !important;
}

.medical-booking-submit {
  width: 100%;

  min-height: 56px;

  margin-top: 22px;

  border: 0;
  border-radius: 16px;

  background:
    linear-gradient(
      135deg,
      #2f7fe6 0%,
      #2468c9 100%
    );

  color: #fff;

  font-size: 16px;
  font-weight: 700;

  cursor: pointer;

  box-shadow:
    0 10px 24px
    rgba(36,104,201,.24);
}

@media (max-width: 700px) {

  .medical-booking-content {
    width:
      calc(100% - 24px);

    padding-top: 18px;
  }

  .medical-booking-title-block h2 {
    font-size: 23px;
  }

  .medical-booking-procedure {
    padding: 12px 13px;
  }

  .medical-booking-procedure-name {
    font-size: 14px;
  }

  .medical-booking-procedure-price {
    font-size: 13px;
  }

}

/* ==========================================================
   MEDICAL BOOKING SCREEN END
   ========================================================== */


/* ==========================================================
   MEDICAL BOOKING — MOBILE INPUT WIDTH FIX
   ========================================================== */

.medical-booking-field {
  min-width: 0 !important;
  width: 100% !important;
}

.medical-booking-field input,
.medical-booking-field textarea {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;

  box-sizing: border-box !important;
}

#medicalBookingDate {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;

  -webkit-appearance: none;
  appearance: none;
}

/* ==========================================================
   MEDICAL BOOKING — MOBILE INPUT WIDTH FIX END
   ========================================================== */


/* ==========================================================
   MEDICAL CENTER — BADGES + DIRECTIONS
   ========================================================== */

.medical-badges-section {
  margin-top: 4px;
}

.medical-badges-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.medical-badge {
  display: inline-flex;
  align-items: center;

  min-height: 34px;

  padding: 7px 11px;

  border:
    1px solid rgba(255,255,255,.08);

  border-radius: 999px;

  background:
    rgba(255,255,255,.055);

  color: #fff;

  font-size: 13px;
  font-weight: 700;

  line-height: 1.2;
}

.medical-info-section {
  margin-top: 20px;
}

.medical-info-section h3 {
  margin:
    0 0 12px;

  color: #fff;

  font-size: 19px;
  line-height: 1.25;
}

.medical-directions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.medical-direction-chip {
  display: inline-flex;
  align-items: center;

  min-height: 36px;

  padding: 8px 12px;

  border-radius: 12px;

  background:
    linear-gradient(
      145deg,
      rgba(47,128,237,.16),
      rgba(47,128,237,.07)
    );

  border:
    1px solid rgba(74,144,226,.22);

  color:
    rgba(255,255,255,.92);

  font-size: 14px;
  font-weight: 600;

  line-height: 1.25;
}

@media (max-width: 700px) {

  .medical-badges-list {
    gap: 7px;
  }

  .medical-badge {
    min-height: 32px;

    padding:
      6px 10px;

    font-size: 12px;
  }

  .medical-info-section h3 {
    font-size: 18px;
  }

  .medical-direction-chip {
    min-height: 34px;

    padding:
      7px 10px;

    font-size: 13px;
  }

}

/* ==========================================================
   MEDICAL CENTER — BADGES + DIRECTIONS END
   ========================================================== */


/* ==========================================================
   MEDICAL CENTER — FREE / VISIT / IMPORTANT
   ========================================================== */

.medical-free-list {
  display: grid;
  gap: 9px;
}

.medical-free-item {
  display: flex;
  align-items: center;
  gap: 10px;

  min-height: 42px;

  padding: 10px 12px;

  border-radius: 12px;

  background:
    rgba(34,197,94,.08);

  border:
    1px solid rgba(34,197,94,.18);

  color: rgba(255,255,255,.94);

  font-size: 14px;
  line-height: 1.35;
}

.medical-free-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  width: 24px;
  height: 24px;

  border-radius: 50%;

  background:
    rgba(34,197,94,.18);

  color: #86efac;

  font-weight: 800;
}

.medical-visit-steps {
  display: grid;
  gap: 10px;
}

.medical-visit-step {
  display: grid;

  grid-template-columns:
    34px minmax(0,1fr);

  gap: 11px;

  align-items: center;
}

.medical-visit-step-number {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  height: 34px;

  border-radius: 50%;

  background:
    linear-gradient(
      135deg,
      #2f80ed 0%,
      #2468c9 100%
    );

  color: #fff;

  font-size: 14px;
  font-weight: 800;

  box-shadow:
    0 6px 16px
    rgba(36,104,201,.22);
}

.medical-visit-step-text {
  padding: 10px 12px;

  border-radius: 12px;

  background:
    rgba(255,255,255,.045);

  border:
    1px solid rgba(255,255,255,.07);

  color: rgba(255,255,255,.94);

  font-size: 14px;
  line-height: 1.4;
}

.medical-important-box {
  padding: 14px;

  border-radius: 14px;

  background:
    rgba(245,158,11,.08);

  border:
    1px solid rgba(245,158,11,.20);
}

.medical-important-title {
  margin-bottom: 10px;

  color: #fbbf24;

  font-size: 14px;
  font-weight: 800;
}

.medical-important-list {
  display: grid;
  gap: 9px;
}

.medical-important-item {
  display: grid;

  grid-template-columns:
    14px minmax(0,1fr);

  gap: 7px;

  color:
    rgba(255,255,255,.88);

  font-size: 14px;
  line-height: 1.45;
}

.medical-important-item > span:first-child {
  color: #fbbf24;
  font-weight: 800;
}

@media (max-width: 700px) {

  .medical-free-item,
  .medical-visit-step-text,
  .medical-important-item {
    font-size: 13px;
  }

  .medical-visit-step {
    grid-template-columns:
      32px minmax(0,1fr);
  }

  .medical-visit-step-number {
    width: 32px;
    height: 32px;
  }

}

/* ==========================================================
   MEDICAL CENTER — FREE / VISIT / IMPORTANT END
   ========================================================== */


/* ==========================================================
   MEDICAL CENTER — TOP FACTS
   ========================================================== */

.medical-top-facts-section {
  margin-top: 12px;
}

.medical-top-facts-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.medical-top-fact {
  display: flex;
  align-items: flex-start;
  gap: 10px;

  min-width: 0;

  padding: 12px;

  border-radius: 14px;

  background:
    rgba(255,255,255,.045);

  border:
    1px solid rgba(255,255,255,.07);
}

.medical-top-fact-icon {
  flex: 0 0 auto;

  font-size: 19px;
  line-height: 1.2;
}

.medical-top-fact > div {
  min-width: 0;
}

.medical-top-fact small {
  display: block;

  margin-bottom: 3px;

  color:
    rgba(255,255,255,.55);

  font-size: 12px;
  line-height: 1.2;
}

.medical-top-fact strong {
  display: block;

  color: #fff;

  font-size: 13px;
  font-weight: 700;

  line-height: 1.35;

  overflow-wrap: anywhere;
}

@media (max-width: 900px) {

  .medical-top-facts-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 520px) {

  .medical-top-facts-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 8px;
  }

  .medical-top-fact {
    padding: 10px;
  }

  .medical-top-fact strong {
    font-size: 12px;
  }

}

/* ==========================================================
   MEDICAL CENTER — TOP FACTS END
   ========================================================== */


/* ==========================================================
   MEDICAL CENTER — DESCRIPTION
   ========================================================== */

.medical-description-text {
  margin: 0;

  color:
    rgba(255,255,255,.88);

  font-size: 15px;
  line-height: 1.65;

  text-align: justify;

  text-justify: inter-word;

  white-space: pre-line;
}

@media (max-width: 700px) {

  .medical-description-text {
    font-size: 14px;
    line-height: 1.6;
  }

}

/* ==========================================================
   MEDICAL CENTER — DESCRIPTION END
   ========================================================== */



/* ==========================================================
   COMPACT CARD — FEATURES
   ========================================================== */

.compact-features {
  margin-top: 14px;
  padding-top: 12px;

  border-top:
    1px solid
    rgba(255,255,255,.10);
}

.compact-features-title {
  margin-bottom: 8px;

  font-size: 12px;
  font-weight: 700;

  opacity: .62;

  text-transform: uppercase;
  letter-spacing: .04em;
}

.compact-features-list {
  display: flex;
  flex-wrap: wrap;

  gap: 7px;
}

.compact-feature-chip {
  display: inline-flex;
  align-items: center;

  gap: 5px;

  min-height: 30px;

  padding:
    6px 9px;

  border-radius: 10px;

  background:
    rgba(255,255,255,.07);

  border:
    1px solid
    rgba(255,255,255,.08);

  font-size: 12px;
  line-height: 1.2;
}

.compact-feature-icon {
  flex: 0 0 auto;
}


/* ==========================================================
   FIX: DETAIL GALLERY MOBILE
   ========================================================== */

/* Нижняя карусель — настоящий горизонтальный трек */
.thumbnail-track {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 7px !important;

  width: max-content !important;
  min-width: 100% !important;

  align-items: center !important;
}

/* Сам контейнер миниатюр прокручивается пальцем */
.thumbnail-strip {
  overflow-x: auto !important;
  overflow-y: hidden !important;

  -webkit-overflow-scrolling: touch !important;

  touch-action: pan-x !important;

  overscroll-behavior-x: contain !important;

  scroll-behavior: smooth;
}

/* Миниатюры не сжимаются */
.thumbnail-track .thumbnail {
  flex: 0 0 76px !important;
  width: 76px !important;
  height: 58px !important;
}

/* ----------------------------------------------------------
   Главное фото на мобильных
   ---------------------------------------------------------- */

@media (max-width: 899px) {

  #detailGalleryViewport {
    width: 100% !important;

    height: var(
      --detail-gallery-height,
      360px
    ) !important;

    min-height: 220px !important;
    max-height: 72vh !important;

    overflow: hidden !important;

    background: #111 !important;

    transition:
      height .22s ease;
  }

  .detail-gallery-slide {
    width: 100% !important;
    height: 100% !important;

    flex: 0 0 100% !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .detail-gallery-slide-image {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    object-fit: contain !important;
    object-position: center center !important;
  }

}


/* ==========================================================
   MOBILE MAP UX 2026
   ========================================================== */


.mobile-map-dock {
  display: none;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 899px) {

  /*
    На телефоне старая верхняя кнопка
    «Каталог мест» больше не нужна.
  */
  .top-actions {
    display: none !important;
  }


  /*
    Старое белое окно категорий
    на телефоне больше не используем.
    Оно остаётся доступно desktop.
  */
  #mapFilters {
    display: none !important;
  }


  /*
    Карта становится контейнером
    для мобильных элементов.
  */
  .map-wrap {
    position: relative !important;
  }


  /* --------------------------------------------------------
     НИЖНЯЯ ПАНЕЛЬ
     -------------------------------------------------------- */

  .mobile-map-dock {
    position: absolute;

    left: 8px;
    right: 8px;

    /*
      Оставляем пространство
      для копирайта Яндекс.Карт.
    */
    bottom: 40px;

    z-index: 80;

    display: block;

    pointer-events: none;
  }


  .mobile-map-categories {
    display: flex;

    gap: 8px;

    width: 100%;

    padding:
      0 2px 8px;

    overflow-x: auto;
    overflow-y: hidden;

    -webkit-overflow-scrolling:
      touch;

    scrollbar-width: none;

    overscroll-behavior-x:
      contain;

    touch-action:
      pan-x;

    pointer-events: auto;
  }


  .mobile-map-categories::-webkit-scrollbar {
    display: none;
  }


  /*
    Перебиваем старое оформление
    больших круглых категорий.
  */
  .mobile-map-category {
    flex:
      0 0 auto !important;

    min-height:
      42px !important;

    width:
      auto !important;

    display:
      inline-flex !important;

    flex-direction:
      row !important;

    align-items:
      center !important;

    justify-content:
      center !important;

    gap:
      7px !important;

    padding:
      9px 13px !important;

    border:
      1px solid
      rgba(255,255,255,.10)
      !important;

    border-radius:
      13px !important;

    background:
      rgba(22,24,28,.94)
      !important;

    color:
      #fff !important;

    box-shadow:
      0 5px 17px
      rgba(0,0,0,.28);

    backdrop-filter:
      blur(15px);

    -webkit-backdrop-filter:
      blur(15px);

    font-size:
      14px !important;

    font-weight:
      650 !important;

    line-height:
      1 !important;

    white-space:
      nowrap;

    cursor:
      pointer;

    pointer-events:
      auto;
  }


  .mobile-map-category
  .filter-icon {

    width:
      auto !important;

    height:
      auto !important;

    min-width:
      0 !important;

    display:
      inline !important;

    padding:
      0 !important;

    border-radius:
      0 !important;

    background:
      transparent !important;

    color:
      inherit !important;

    font-size:
      18px !important;

    line-height:
      1 !important;
  }


  .mobile-map-category.active {
    background:
      #111317 !important;

    border-color:
      rgba(255,255,255,.34)
      !important;

    box-shadow:
      0 0 0 2px
      rgba(255,255,255,.08),
      0 7px 20px
      rgba(0,0,0,.34);
  }


  /* --------------------------------------------------------
     ПОИСК
     -------------------------------------------------------- */

  .mobile-map-search {
    display: grid;

    grid-template-columns:
      minmax(0, 1fr)
      52px;

    gap: 8px;

    width: 100%;

    pointer-events: auto;
  }


  .mobile-map-search-field {
    min-width: 0;

    height: 50px;

    display: flex;

    align-items: center;

    gap: 9px;

    padding:
      0 14px;

    border:
      1px solid
      rgba(255,255,255,.10);

    border-radius:
      14px;

    background:
      rgba(22,24,28,.96);

    box-shadow:
      0 6px 22px
      rgba(0,0,0,.30);

    backdrop-filter:
      blur(16px);

    -webkit-backdrop-filter:
      blur(16px);
  }


  .mobile-map-search-icon {
    flex:
      0 0 auto;

    opacity:
      .72;

    font-size:
      18px;
  }


  #mobileMapSearchInput {
    width:
      100%;

    min-width:
      0;

    border:
      0;

    outline:
      0;

    padding:
      0;

    background:
      transparent;

    color:
      #fff;

    font-size:
      16px;

    line-height:
      1;
  }


  #mobileMapSearchInput::placeholder {
    color:
      rgba(255,255,255,.52);
  }


  .mobile-map-menu-button {
    width:
      52px;

    height:
      50px;

    border:
      1px solid
      rgba(255,255,255,.10);

    border-radius:
      14px;

    background:
      rgba(22,24,28,.96);

    color:
      #fff;

    box-shadow:
      0 6px 22px
      rgba(0,0,0,.30);

    backdrop-filter:
      blur(16px);

    -webkit-backdrop-filter:
      blur(16px);

    font-size:
      23px;

    line-height:
      1;
  }


  /* --------------------------------------------------------
     ПОГОДА — МАЛЕНЬКАЯ ПОКА НЕ НАЖАЛИ
     -------------------------------------------------------- */

  .weather-widget {
    position:
      absolute !important;

    top:
      12px !important;

    right:
      10px !important;

    left:
      auto !important;

    z-index:
      90 !important;
  }


  .weather-widget:not(
    [aria-expanded="true"]
  ) {
    width:
      auto !important;

    min-width:
      82px !important;

    max-width:
      none !important;

    border-radius:
      15px !important;
  }


  .weather-widget:not(
    [aria-expanded="true"]
  )
  .weather-widget-main {

    display:
      flex !important;

    align-items:
      center !important;

    gap:
      6px !important;

    padding:
      8px 11px !important;
  }


  .weather-widget:not(
    [aria-expanded="true"]
  )
  .weather-widget-icon {

    width:
      auto !important;

    height:
      auto !important;

    min-width:
      0 !important;

    padding:
      0 !important;

    background:
      transparent !important;

    box-shadow:
      none !important;

    font-size:
      20px !important;
  }


  .weather-widget:not(
    [aria-expanded="true"]
  )
  .weather-widget-title,

  .weather-widget:not(
    [aria-expanded="true"]
  )
  .weather-widget-condition,

  .weather-widget:not(
    [aria-expanded="true"]
  )
  .weather-widget-meta,

  .weather-widget:not(
    [aria-expanded="true"]
  )
  .weather-widget-chevron {

    display:
      none !important;
  }


  .weather-widget:not(
    [aria-expanded="true"]
  )
  .weather-widget-current {

    display:
      block !important;

    min-width:
      0 !important;
  }


  .weather-widget:not(
    [aria-expanded="true"]
  )
  .weather-widget-temp-row {

    display:
      block !important;

    margin:
      0 !important;
  }


  .weather-widget:not(
    [aria-expanded="true"]
  )
  #weatherTemp {

    font-size:
      18px !important;

    font-weight:
      800 !important;

    line-height:
      1 !important;
  }


  /*
    Раскрытая погода остаётся
    полноценной карточкой.
  */
  .weather-widget[
    aria-expanded="true"
  ] {

    width:
      min(
        294px,
        calc(100vw - 20px)
      )
      !important;

    max-width:
      calc(100vw - 20px)
      !important;
  }


  /* --------------------------------------------------------
     КАТАЛОГ / РЕЗУЛЬТАТЫ ПОИСКА
     всегда выше карты и погоды
     -------------------------------------------------------- */

  #listPanel {
    z-index:
      7000 !important;
  }

}


/* ==========================================================
   DESKTOP
   ========================================================== */

@media (min-width: 900px) {

  .mobile-map-dock {
    display:
      none !important;
  }

}

/* ==========================================================
   END MOBILE MAP UX 2026
   ========================================================== */


/* ==========================================================
   MOBILE CATALOG BOTTOM SHEET 2026
   ========================================================== */


.mobile-sheet-handle {
  display: none;
}


@media (max-width: 899px) {

  /* --------------------------------------------------------
     ПОИСК БЕЗ КНОПКИ ☰
     -------------------------------------------------------- */

  .mobile-map-search {
    grid-template-columns:
      minmax(0, 1fr)
      !important;
  }

  .mobile-map-menu-button {
    display:
      none !important;
  }


  /* --------------------------------------------------------
     BOTTOM SHEET
     -------------------------------------------------------- */

  .list-panel {

    position:
      fixed !important;

    left:
      0 !important;

    right:
      0 !important;

    top:
      auto !important;

    bottom:
      0 !important;

    inset:
      auto 0 0 0 !important;

    width:
      100% !important;

    height:
      58dvh;

    max-height:
      calc(
        100dvh -
        max(
          74px,
          env(safe-area-inset-top)
        )
      );

    z-index:
      5000 !important;

    display:
      flex;

    flex-direction:
      column;

    overflow:
      hidden !important;

    border-radius:
      24px 24px 0 0;

    background:
      rgba(
        18,
        20,
        24,
        .985
      );

    box-shadow:
      0 -12px 35px
      rgba(0,0,0,.34);

    transform:
      translateY(
        var(
          --mobile-sheet-drag,
          0px
        )
      );

    transition:
      height .28s ease,
      transform .20s ease;

    will-change:
      height,
      transform;
  }


  .list-panel.hidden {
    display:
      none !important;
  }


  .list-panel.is-dragging {
    transition:
      none !important;
  }


  /*
    Три состояния.
  */

  .list-panel.mobile-sheet-collapsed {
    height:
      126px;
  }


  .list-panel.mobile-sheet-medium {
    height:
      58dvh;
  }


  .list-panel.mobile-sheet-expanded {
    height:
      calc(
        100dvh -
        max(
          72px,
          env(safe-area-inset-top)
        )
      );
  }


  /* --------------------------------------------------------
     РУЧКА
     -------------------------------------------------------- */

  .mobile-sheet-handle {

    flex:
      0 0 auto;

    display:
      flex;

    align-items:
      center;

    justify-content:
      center;

    width:
      100%;

    height:
      28px;

    touch-action:
      none;

    cursor:
      grab;

    background:
      transparent;
  }


  .mobile-sheet-handle span {

    display:
      block;

    width:
      42px;

    height:
      5px;

    border-radius:
      99px;

    background:
      rgba(
        255,
        255,
        255,
        .22
      );
  }


  /* --------------------------------------------------------
     HEADER
     -------------------------------------------------------- */

  .list-header {

    position:
      relative !important;

    top:
      auto !important;

    flex:
      0 0 auto;

    min-height:
      52px;

    padding:
      5px 15px 11px
      !important;

    background:
      transparent
      !important;

    border-bottom:
      1px solid
      rgba(
        255,
        255,
        255,
        .08
      )
      !important;
  }


  .list-header h2 {

    margin:
      0;

    padding:
      0;

    color:
      #fff;

    font-size:
      19px;

    font-weight:
      800;

    line-height:
      1.2;
  }


  #closeList {

    width:
      38px;

    height:
      38px;

    min-width:
      38px;

    padding:
      0 !important;

    display:
      grid;

    place-items:
      center;

    overflow:
      hidden;

    color:
      transparent !important;

    font-size:
      0 !important;

    border-radius:
      12px !important;

    background:
      rgba(
        255,
        255,
        255,
        .08
      )
      !important;
  }


  #closeList::before {

    content:
      "×";

    color:
      #fff;

    font-size:
      26px;

    line-height:
      1;
  }


  /* --------------------------------------------------------
     СПИСОК
     -------------------------------------------------------- */

  .object-list {

    flex:
      1 1 auto;

    min-height:
      0;

    overflow-y:
      auto;

    overscroll-behavior:
      contain;

    -webkit-overflow-scrolling:
      touch;

    display:
      grid;

    align-content:
      start;

    gap:
      10px;

    padding:
      12px 12px
      max(
        18px,
        env(safe-area-inset-bottom)
      );

  }


  /*
    В collapsed состоянии список
    не нужен — только заголовок.
  */

  .list-panel.mobile-sheet-collapsed
  .object-list {

    opacity:
      0;

    pointer-events:
      none;

    overflow:
      hidden;
  }


  /* --------------------------------------------------------
     КАРТОЧКИ СПИСКА
     -------------------------------------------------------- */

  .object-list .list-item {

    width:
      100%;

    min-height:
      82px;

    padding:
      14px 15px;

    border:
      1px solid
      rgba(
        255,
        255,
        255,
        .08
      );

    border-radius:
      16px;

    background:
      rgba(
        255,
        255,
        255,
        .055
      );

    color:
      #fff;

    box-shadow:
      none;

    text-align:
      left;
  }


  .object-list
  .list-item:active {

    transform:
      scale(.985);

    background:
      rgba(
        255,
        255,
        255,
        .09
      );

  }


  .object-list
  .list-item-title {

    color:
      #fff;

    font-size:
      17px;

    font-weight:
      750;

    line-height:
      1.3;
  }


  .object-list
  .list-item-meta {

    margin-top:
      6px;

    color:
      rgba(
        255,
        255,
        255,
        .58
      );

    font-size:
      13px;

    line-height:
      1.35;
  }


  /*
    Когда открыт список,
    нижняя навигация карты
    остаётся под ним и не мешает.
  */

  body:has(
    .list-panel:not(.hidden)
  )
  .mobile-map-dock {

    pointer-events:
      none;
  }

}


/* Desktop не меняем */

@media (min-width: 900px) {

  .mobile-sheet-handle {
    display:
      none !important;
  }

}

/* ==========================================================
   END MOBILE CATALOG BOTTOM SHEET 2026
   ========================================================== */


/* ==========================================================
   MOBILE BOTTOM SHEET UX V2
   ========================================================== */


@media (max-width: 899px) {

  /*
    В новом мобильном интерфейсе
    кнопка «← Каталог мест» не нужна.
  */
  .object-list
  .catalog-back-item {

    display:
      none !important;

  }


  /*
    Весь верх панели визуально
    воспринимается как зона свайпа.
  */
  .mobile-sheet-handle,
  .list-header {

    touch-action:
      pan-y;

    user-select:
      none;

    -webkit-user-select:
      none;

  }


  .list-header {

    cursor:
      grab;

  }


  .list-panel.is-dragging
  .list-header,

  .list-panel.is-dragging
  .mobile-sheet-handle {

    cursor:
      grabbing;

  }


  /*
    Маленькое состояние.

    Поднимаем его НАД нижними
    категориями и поиском,
    чтобы навигация оставалась
    доступной.
  */
  .list-panel.mobile-sheet-collapsed {

    height:
      88px !important;

    bottom:
      143px !important;

    border-radius:
      20px !important;

    left:
      8px !important;

    right:
      8px !important;

    width:
      auto !important;

    box-shadow:
      0 8px 28px
      rgba(0,0,0,.38);

  }


  .list-panel.mobile-sheet-collapsed
  .mobile-sheet-handle {

    height:
      22px;

  }


  .list-panel.mobile-sheet-collapsed
  .list-header {

    min-height:
      60px;

    border-bottom:
      0 !important;

    padding:
      3px 14px 10px
      !important;

  }


  .list-panel.mobile-sheet-collapsed
  .object-list {

    display:
      none !important;

  }


  /*
    Среднее и большое состояние
    снова упираются в низ экрана.
  */
  .list-panel.mobile-sheet-medium,
  .list-panel.mobile-sheet-expanded {

    bottom:
      0 !important;

    left:
      0 !important;

    right:
      0 !important;

    width:
      100% !important;

    border-radius:
      24px 24px 0 0
      !important;

  }


  /*
    Когда панель маленькая,
    нижние категории и поиск
    снова доступны.
  */
  body:has(
    .list-panel.mobile-sheet-collapsed:not(.hidden)
  )
  .mobile-map-dock {

    pointer-events:
      auto !important;

    opacity:
      1 !important;

  }


  /*
    Когда панель средняя/большая,
    нижняя навигация остаётся под ней.
  */
  body:has(
    .list-panel.mobile-sheet-medium:not(.hidden)
  )
  .mobile-map-dock,

  body:has(
    .list-panel.mobile-sheet-expanded:not(.hidden)
  )
  .mobile-map-dock {

    pointer-events:
      none !important;

  }


  /*
    Чуть больше зона захвата полоски.
  */
  .mobile-sheet-handle span {

    width:
      48px;

    height:
      5px;

    background:
      rgba(
        255,
        255,
        255,
        .28
      );

  }

}

/* ==========================================================
   END MOBILE BOTTOM SHEET UX V2
   ========================================================== */



/* ==========================================================
   MOBILE BOTTOM SHEET UX V3
   ========================================================== */

@media (max-width: 899px) {

  /*
    Кнопка назад в старый каталог
    в новой мобильной логике не нужна.
  */
  .object-list
  .catalog-back-item {

    display:
      none !important;

  }


  /*
    Более мягкое движение.
  */
  .list-panel {

    transition:
      height
      .32s
      cubic-bezier(
        .20,
        .80,
        .20,
        1
      ),

      bottom
      .32s
      cubic-bezier(
        .20,
        .80,
        .20,
        1
      ),

      left
      .32s
      cubic-bezier(
        .20,
        .80,
        .20,
        1
      ),

      right
      .32s
      cubic-bezier(
        .20,
        .80,
        .20,
        1
      ),

      border-radius
      .32s
      cubic-bezier(
        .20,
        .80,
        .20,
        1
      ),

      transform
      .20s
      ease-out
      !important;

  }


  .list-panel.is-dragging {

    transition:
      none !important;

  }


  /*
    Серая полоска теперь только
    визуальная подсказка.
  */
  .mobile-sheet-handle {

    height:
      25px !important;

    cursor:
      grab;

    touch-action:
      none;

  }


  .mobile-sheet-handle span {

    width:
      44px !important;

    height:
      5px !important;

    border-radius:
      99px;

    background:
      rgba(
        255,
        255,
        255,
        .27
      ) !important;

  }


  /*
    Весь заголовок является
    зоной управления шторкой.
  */
  .list-header {

    cursor:
      grab;

    touch-action:
      pan-y;

    user-select:
      none;

    -webkit-user-select:
      none;

  }


  /*
    ----------------------------
    COLLAPSED
    ----------------------------
  */

  .list-panel.mobile-sheet-collapsed {

    height:
      86px !important;

    left:
      9px !important;

    right:
      9px !important;

    width:
      auto !important;

    /*
      Шторка находится над
      категориями и поиском.
    */
    bottom:
      142px !important;

    border-radius:
      20px !important;

    box-shadow:
      0 10px 32px
      rgba(
        0,
        0,
        0,
        .40
      );

  }


  .list-panel.mobile-sheet-collapsed
  .mobile-sheet-handle {

    height:
      20px !important;

  }


  .list-panel.mobile-sheet-collapsed
  .list-header {

    min-height:
      62px;

    padding:
      4px 14px 10px
      !important;

    border-bottom:
      0 !important;

  }


  .list-panel.mobile-sheet-collapsed
  .object-list {

    display:
      none !important;

  }


  /*
    ----------------------------
    MEDIUM
    ----------------------------
  */

  .list-panel.mobile-sheet-medium {

    height:
      52dvh !important;

    left:
      0 !important;

    right:
      0 !important;

    bottom:
      0 !important;

    width:
      100% !important;

    border-radius:
      24px 24px 0 0
      !important;

  }


  /*
    ----------------------------
    EXPANDED
    ----------------------------

    Даже в большом состоянии
    оставляем сверху видимый
    участок карты.
  */

  .list-panel.mobile-sheet-expanded {

    height:
      calc(
        100dvh - 180px
      )
      !important;

    max-height:
      calc(
        100dvh - 180px
      )
      !important;

    left:
      0 !important;

    right:
      0 !important;

    bottom:
      0 !important;

    width:
      100% !important;

    border-radius:
      24px 24px 0 0
      !important;

  }


  /*
    Поиск внутри шторки.
  */

  .mobile-map-search.mobile-search-in-sheet {

    flex:
      0 0 auto;

    display:
      block !important;

    width:
      auto !important;

    margin:
      11px 13px 4px;

    padding:
      0;

  }


  .mobile-search-in-sheet
  .mobile-map-search-field {

    height:
      48px;

    background:
      rgba(
        255,
        255,
        255,
        .07
      );

    border-color:
      rgba(
        255,
        255,
        255,
        .08
      );

    box-shadow:
      none;

  }


  /*
    Список организаций.
  */

  .object-list {

    overscroll-behavior-y:
      contain;

    -webkit-overflow-scrolling:
      touch;

    touch-action:
      pan-y;

  }


  /*
    Когда панель collapsed —
    категории и поиск активны.
  */

  body:has(
    .list-panel.mobile-sheet-collapsed:not(.hidden)
  )
  .mobile-map-dock {

    opacity:
      1 !important;

    pointer-events:
      auto !important;

  }


  /*
    Когда шторка medium/expanded,
    dock находится под ней.
  */

  body:has(
    .list-panel.mobile-sheet-medium:not(.hidden)
  )
  .mobile-map-dock,

  body:has(
    .list-panel.mobile-sheet-expanded:not(.hidden)
  )
  .mobile-map-dock {

    pointer-events:
      none !important;

  }


  /*
    Кнопка закрытия делаем легче.
  */

  #closeList {

    width:
      40px !important;

    height:
      40px !important;

    min-width:
      40px !important;

    border:
      0 !important;

    background:
      rgba(
        255,
        255,
        255,
        .065
      )
      !important;

    border-radius:
      13px !important;

  }

}

/* ==========================================================
   END MOBILE BOTTOM SHEET UX V3
   ========================================================== */



/* ==========================================================
   CATALOG RICH CARDS
   ========================================================== */

.catalog-rich-card {

  overflow:
    hidden;

  border:
    1px solid
    rgba(
      255,
      255,
      255,
      .08
    );

  border-radius:
    18px;

  background:
    rgba(
      255,
      255,
      255,
      .055
    );

  box-shadow:
    0 8px 24px
    rgba(
      0,
      0,
      0,
      .12
    );

}


.catalog-rich-card-main {

  width:
    100%;

  padding:
    0;

  display:
    grid;

  grid-template-columns:
    128px
    minmax(0, 1fr);

  gap:
    0;

  border:
    0;

  background:
    transparent;

  color:
    inherit;

  text-align:
    left;

  cursor:
    pointer;

}


.catalog-rich-card-photo {

  position:
    relative;

  min-height:
    138px;

  overflow:
    hidden;

  background:
    rgba(
      255,
      255,
      255,
      .06
    );

}


.catalog-rich-card-photo img {

  position:
    absolute;

  inset:
    0;

  width:
    100%;

  height:
    100%;

  object-fit:
    cover;

}


.catalog-rich-card-photo-placeholder {

  width:
    100%;

  height:
    100%;

  min-height:
    138px;

  display:
    grid;

  place-items:
    center;

  font-size:
    36px;

  background:
    rgba(
      255,
      255,
      255,
      .045
    );

}


.catalog-rich-card-body {

  min-width:
    0;

  padding:
    12px
    12px
    11px;

}


.catalog-rich-card-type {

  margin-bottom:
    5px;

  color:
    rgba(
      255,
      255,
      255,
      .50
    );

  font-size:
    11px;

  font-weight:
    700;

  line-height:
    1.2;

  letter-spacing:
    .03em;

  text-transform:
    uppercase;

}


.catalog-rich-card-title {

  margin:
    0;

  color:
    #fff;

  font-size:
    16px;

  font-weight:
    800;

  line-height:
    1.25;

}


.catalog-rich-card-area {

  margin-top:
    6px;

  color:
    rgba(
      255,
      255,
      255,
      .65
    );

  font-size:
    13px;

  line-height:
    1.3;

}


.catalog-rich-card-features {

  margin-top:
    9px;

}


/*
  Подстраиваем уже существующие
  feature chips под список.
*/

.catalog-rich-card-features
.compact-features,

.catalog-rich-card-features
.compact-feature-list {

  display:
    flex;

  flex-wrap:
    wrap;

  gap:
    5px;

  margin:
    0;

}


.catalog-rich-card-features
.compact-feature,

.catalog-rich-card-features
.compact-feature-chip {

  padding:
    4px 7px;

  border-radius:
    8px;

  background:
    rgba(
      255,
      255,
      255,
      .075
    );

  color:
    rgba(
      255,
      255,
      255,
      .78
    );

  font-size:
    11px;

  line-height:
    1.15;

}


.catalog-card-actions {

  display:
    grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );

  gap:
    8px;

  padding:
    9px
    10px
    10px;

  border-top:
    1px solid
    rgba(
      255,
      255,
      255,
      .07
    );

}


.catalog-card-action {

  min-height:
    40px;

  padding:
    8px
    11px;

  border:
    0;

  border-radius:
    11px;

  font-size:
    13px;

  font-weight:
    750;

  cursor:
    pointer;

}


.catalog-card-action-primary {

  background:
    #2f80ed;

  color:
    #fff;

}


.catalog-card-action-secondary {

  background:
    rgba(
      255,
      255,
      255,
      .085
    );

  color:
    #fff;

}


.catalog-card-action:active {

  transform:
    scale(.975);

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 899px) {

  .object-list {

    gap:
      11px
      !important;

    padding:
      10px
      10px
      max(
        18px,
        env(
          safe-area-inset-bottom
        )
      )
      !important;

  }


  /*
    Старое оформление list-item
    больше не влияет на новые карточки.
  */

  .object-list
  .catalog-rich-card {

    width:
      100%;

  }


  .catalog-rich-card-main {

    grid-template-columns:
      118px
      minmax(0, 1fr);

  }


  .catalog-rich-card-photo,
  .catalog-rich-card-photo-placeholder {

    min-height:
      132px;

  }


  .catalog-rich-card-title {

    font-size:
      16px;

  }

}


/* ==========================================================
   DESKTOP
   ========================================================== */

@media (min-width: 900px) {

  .catalog-rich-card-main {

    grid-template-columns:
      108px
      minmax(0, 1fr);

  }


  .catalog-rich-card-photo,
  .catalog-rich-card-photo-placeholder {

    min-height:
      122px;

  }

}

/* ==========================================================
   END CATALOG RICH CARDS
   ========================================================== */



/* ==========================================================
   CATALOG RICH CARDS FIX V2
   ========================================================== */

.catalog-rich-card {

  display:
    block !important;

  width:
    100% !important;

  min-height:
    0 !important;

  overflow:
    hidden !important;

}


.catalog-rich-card-main {

  display:
    grid !important;

  grid-template-columns:
    132px minmax(0, 1fr)
    !important;

  width:
    100% !important;

  height:
    auto !important;

  min-height:
    146px !important;

  max-height:
    none !important;

  padding:
    0 !important;

  margin:
    0 !important;

  border:
    0 !important;

  border-radius:
    0 !important;

  background:
    transparent !important;

  box-shadow:
    none !important;

  overflow:
    visible !important;

  text-align:
    left !important;

  appearance:
    none;

  cursor:
    pointer;

}


.catalog-rich-card-photo {

  position:
    relative !important;

  width:
    132px !important;

  height:
    146px !important;

  min-height:
    146px !important;

  overflow:
    hidden !important;

  border-radius:
    0 !important;

}


.catalog-rich-card-photo img {

  display:
    block !important;

  position:
    absolute !important;

  inset:
    0 !important;

  width:
    100% !important;

  height:
    100% !important;

  object-fit:
    cover !important;

}


.catalog-rich-card-photo-placeholder {

  width:
    100% !important;

  height:
    146px !important;

  min-height:
    146px !important;

}


.catalog-rich-card-body {

  display:
    flex !important;

  flex-direction:
    column !important;

  justify-content:
    flex-start !important;

  min-width:
    0 !important;

  min-height:
    146px !important;

  padding:
    13px 13px 11px !important;

  overflow:
    visible !important;

}


.catalog-rich-card-type {

  display:
    block !important;

  margin:
    0 0 5px !important;

  font-size:
    10px !important;

  line-height:
    1.2 !important;

  color:
    rgba(255,255,255,.45)
    !important;

}


.catalog-rich-card-title {

  display:
    block !important;

  margin:
    0 !important;

  padding:
    0 !important;

  font-size:
    17px !important;

  line-height:
    1.22 !important;

  font-weight:
    800 !important;

  color:
    #fff !important;

  white-space:
    normal !important;

  overflow:
    visible !important;

}


.catalog-rich-card-area {

  display:
    block !important;

  margin-top:
    6px !important;

  font-size:
    13px !important;

  line-height:
    1.25 !important;

  color:
    rgba(255,255,255,.62)
    !important;

}


.catalog-rich-card-features {

  display:
    block !important;

  margin-top:
    9px !important;

  overflow:
    visible !important;

}


.catalog-card-actions {

  display:
    grid !important;

  grid-template-columns:
    1fr 1fr !important;

  gap:
    8px !important;

  padding:
    9px 10px 10px !important;

}


.catalog-card-action {

  display:
    flex !important;

  align-items:
    center !important;

  justify-content:
    center !important;

  width:
    100% !important;

  min-height:
    42px !important;

  height:
    42px !important;

  padding:
    0 12px !important;

  border-radius:
    11px !important;

  font-size:
    14px !important;

  line-height:
    1 !important;

  font-weight:
    750 !important;

}


/* MOBILE */

@media (max-width: 899px) {

  .catalog-rich-card {

    border-radius:
      18px !important;

    background:
      rgba(255,255,255,.055)
      !important;

  }


  .catalog-rich-card-main {

    grid-template-columns:
      128px minmax(0, 1fr)
      !important;

    min-height:
      142px !important;

  }


  .catalog-rich-card-photo {

    width:
      128px !important;

    height:
      142px !important;

    min-height:
      142px !important;

  }


  .catalog-rich-card-photo-placeholder {

    height:
      142px !important;

    min-height:
      142px !important;

  }


  .catalog-rich-card-body {

    min-height:
      142px !important;

  }


  /*
    Не даём старым стилям кнопок
    влиять на новую карточку.
  */

  .object-list
  .catalog-rich-card-main {

    height:
      auto !important;

    min-height:
      142px !important;

    max-height:
      none !important;

  }

}

/* ==========================================================
   END CATALOG RICH CARDS FIX V2
   ========================================================== */



/* ==========================================================
   CATALOG CARD SHRINK FIX
   Карточки не сжимаются по высоте
   ========================================================== */

#objectList.object-list {

  display:
    flex !important;

  flex-direction:
    column !important;

  flex-wrap:
    nowrap !important;

  justify-content:
    flex-start !important;

  align-items:
    stretch !important;

  align-content:
    flex-start !important;

  gap:
    12px !important;

  min-height:
    0 !important;

  overflow-y:
    auto !important;

  overflow-x:
    hidden !important;

  -webkit-overflow-scrolling:
    touch;

}


#objectList > .guide-result-card {

  display:
    block !important;

  flex:
    0 0 auto !important;

  flex-shrink:
    0 !important;

  width:
    100% !important;

  height:
    auto !important;

  min-height:
    max-content !important;

  max-height:
    none !important;

}


#objectList > .catalog-rich-card {

  flex:
    0 0 auto !important;

  flex-shrink:
    0 !important;

  width:
    100% !important;

  height:
    auto !important;

  max-height:
    none !important;

}


/*
  На случай если внутри карточки
  осталась старая горизонтальная
  разметка — тоже запрещаем
  ей схлопываться.
*/

.guide-result-main,
.catalog-rich-card-main {

  flex:
    0 0 auto !important;

  flex-shrink:
    0 !important;

  height:
    auto !important;

  max-height:
    none !important;

}


.guide-result-photo {

  flex:
    0 0 158px !important;

  height:
    158px !important;

  min-height:
    158px !important;

  max-height:
    158px !important;

}


.guide-result-content {

  flex:
    0 0 auto !important;

  height:
    auto !important;

  min-height:
    0 !important;

}


.guide-result-actions {

  flex:
    0 0 auto !important;

}


/* ==========================================================
   END CATALOG CARD SHRINK FIX
   ========================================================== */



/* ==========================================================
   CATALOG CARD SWIPE GALLERY
   ========================================================== */

.catalog-rich-card-photo {

  position:
    relative !important;

  overflow:
    hidden !important;

}


.catalog-card-gallery {

  position:
    absolute !important;

  inset:
    0 !important;

  width:
    100% !important;

  height:
    100% !important;

  overflow:
    hidden !important;

  touch-action:
    pan-y !important;

}


.catalog-card-gallery-track {

  display:
    flex !important;

  width:
    100% !important;

  height:
    100% !important;

  transform:
    translate3d(0,0,0);

  will-change:
    transform;

}


.catalog-card-gallery-slide {

  position:
    relative !important;

  flex:
    0 0 100% !important;

  width:
    100% !important;

  min-width:
    100% !important;

  height:
    100% !important;

  overflow:
    hidden !important;

}


.catalog-card-gallery-slide img {

  display:
    block !important;

  width:
    100% !important;

  height:
    100% !important;

  max-width:
    none !important;

  max-height:
    none !important;

  object-fit:
    cover !important;

  object-position:
    center !important;

  pointer-events:
    none !important;

  user-select:
    none !important;

  -webkit-user-drag:
    none !important;

}


.catalog-card-gallery-counter {

  position:
    absolute;

  right:
    7px;

  bottom:
    7px;

  z-index:
    5;

  padding:
    4px 7px;

  border-radius:
    8px;

  background:
    rgba(
      0,
      0,
      0,
      .58
    );

  color:
    #fff;

  font-size:
    10px;

  font-weight:
    700;

  line-height:
    1;

  pointer-events:
    none;

  backdrop-filter:
    blur(5px);

  -webkit-backdrop-filter:
    blur(5px);

}


/*
  Небольшая подсказка,
  что фото можно листать.
*/

.catalog-card-gallery::after {

  content:
    '';

  position:
    absolute;

  top:
    0;

  right:
    0;

  bottom:
    0;

  width:
    15px;

  pointer-events:
    none;

  background:
    linear-gradient(
      to left,
      rgba(0,0,0,.11),
      transparent
    );

}

/* ==========================================================
   END CATALOG CARD SWIPE GALLERY
   ========================================================== */



/* === CATALOG CARD PHOTO SPACING TUNE === */

.catalog-rich-card-main {
  padding: 12px !important;
  gap: 14px !important;
  align-items: flex-start !important;
  box-sizing: border-box !important;
}

.catalog-rich-card-photo {
  flex: 0 0 auto !important;
  width: clamp(112px, 28vw, 132px) !important;
  height: clamp(112px, 28vw, 132px) !important;
  min-width: clamp(112px, 28vw, 132px) !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  box-shadow: 0 6px 18px rgba(0,0,0,.18) !important;
}

.catalog-rich-card-photo img,
.catalog-card-gallery-slide img {
  border-radius: 18px !important;
}

.catalog-rich-card-photo-placeholder {
  border-radius: 18px !important;
}

.catalog-rich-card-body {
  min-width: 0 !important;
  padding-top: 2px !important;
}

@media (max-width: 390px) {
  .catalog-rich-card-main {
    padding: 10px !important;
    gap: 12px !important;
  }

  .catalog-rich-card-photo {
    width: 108px !important;
    height: 108px !important;
    min-width: 108px !important;
  }
}

/* === END CATALOG CARD PHOTO SPACING TUNE === */


/* === CATALOG CARD SQUARE PHOTO + DOTS START === */

.catalog-rich-card-main {
  padding: 14px !important;
  gap: 14px !important;
  align-items: flex-start !important;
  box-sizing: border-box !important;
}

.catalog-rich-card-photo {
  position: relative !important;
  flex: 0 0 118px !important;
  width: 118px !important;
  height: 118px !important;
  min-width: 118px !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  border-radius: 22px !important;
  background: rgba(255,255,255,.05) !important;
  box-shadow: 0 10px 22px rgba(0,0,0,.18) !important;
  margin: 2px 0 0 2px !important;
}

.catalog-card-gallery,
.catalog-card-gallery-track,
.catalog-card-gallery-slide {
  width: 100% !important;
  height: 100% !important;
}

.catalog-card-gallery {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 22px !important;
}

.catalog-card-gallery-track {
  display: flex !important;
  transition: transform .28s ease !important;
  will-change: transform !important;
}

.catalog-card-gallery-slide {
  flex: 0 0 100% !important;
  min-width: 100% !important;
}

.catalog-rich-card-photo img,
.catalog-card-gallery-slide img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 22px !important;
}

.catalog-rich-card-photo-placeholder {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 40px !important;
  border-radius: 22px !important;
  background: rgba(255,255,255,.05) !important;
}

.catalog-card-gallery-counter {
  position: absolute !important;
  right: 8px !important;
  bottom: 8px !important;
  z-index: 3 !important;
  padding: 4px 8px !important;
  border-radius: 999px !important;
  background: rgba(11,16,26,.68) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  backdrop-filter: blur(8px) !important;
}

.catalog-card-gallery-dots {
  position: absolute !important;
  left: 50% !important;
  bottom: 10px !important;
  transform: translateX(-50%) !important;
  z-index: 3 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 8px !important;
  border-radius: 999px !important;
  background: rgba(11,16,26,.42) !important;
  backdrop-filter: blur(8px) !important;
}

.catalog-card-gallery-dot {
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.35) !important;
  transition: transform .2s ease, background .2s ease !important;
}

.catalog-card-gallery-dot.is-active {
  background: #ffffff !important;
  transform: scale(1.18) !important;
}

.catalog-rich-card-body {
  min-width: 0 !important;
  padding-top: 2px !important;
}

.catalog-rich-card-title {
  line-height: 1.08 !important;
}

@media (max-width: 390px) {
  .catalog-rich-card-main {
    padding: 12px !important;
    gap: 12px !important;
  }

  .catalog-rich-card-photo {
    flex-basis: 108px !important;
    width: 108px !important;
    height: 108px !important;
    min-width: 108px !important;
  }
}

/* === CATALOG CARD SQUARE PHOTO + DOTS END === */


/* === CATALOG CARD POLISH V4 START === */


/* ==========================================================
   ФОТО — квадрат
   ========================================================== */

.catalog-rich-card-main {

  padding:
    14px !important;

  gap:
    14px !important;

  align-items:
    flex-start !important;

}


.catalog-rich-card-photo {

  flex:
    0 0 108px !important;

  width:
    108px !important;

  height:
    108px !important;

  min-width:
    108px !important;

  min-height:
    108px !important;

  max-width:
    108px !important;

  max-height:
    108px !important;

  aspect-ratio:
    1 / 1 !important;

  margin:
    3px 0 0 3px !important;

  border-radius:
    20px !important;

  overflow:
    hidden !important;

}


.catalog-card-gallery,
.catalog-card-gallery-track,
.catalog-card-gallery-slide {

  height:
    100% !important;

}


.catalog-card-gallery-slide img,
.catalog-rich-card-photo img {

  width:
    100% !important;

  height:
    100% !important;

  object-fit:
    cover !important;

  border-radius:
    20px !important;

}


/* ==========================================================
   ТОЧКИ

   Счётчик 1 / N уже показывает точную позицию.
   Поэтому оставляем только 3 точки как подсказку:
   «здесь есть галерея».
   ========================================================== */

.catalog-card-gallery-dots {

  left:
    9px !important;

  bottom:
    9px !important;

  display:
    flex !important;

  width:
    auto !important;

  max-width:
    none !important;

  gap:
    5px !important;

  padding:
    5px 7px !important;

  overflow:
    hidden !important;

  border-radius:
    999px !important;

  background:
    rgba(12,15,20,.48)
    !important;

}


/* Скрываем всё после третьей точки */

.catalog-card-gallery-dot:nth-child(n+4) {

  display:
    none !important;

}


.catalog-card-gallery-dot {

  flex:
    0 0 6px !important;

  width:
    6px !important;

  height:
    6px !important;

  min-width:
    6px !important;

  min-height:
    6px !important;

  border-radius:
    50% !important;

  background:
    rgba(255,255,255,.48)
    !important;

}


/*
  Точки здесь — только подсказка,
  поэтому делаем центральную чуть ярче.
*/

.catalog-card-gallery-dot:nth-child(2) {

  background:
    #fff !important;

  transform:
    scale(1.15);

}


/* ==========================================================
   СЧЁТЧИК ФОТО
   ========================================================== */

.catalog-card-gallery-counter {

  right:
    7px !important;

  bottom:
    7px !important;

  padding:
    4px 7px !important;

  border-radius:
    999px !important;

  background:
    rgba(10,13,18,.76)
    !important;

  color:
    #fff !important;

  font-size:
    10px !important;

  font-weight:
    800 !important;

  line-height:
    1 !important;

}


/* ==========================================================
   ТЕКСТ
   ========================================================== */

.catalog-rich-card-body {

  min-width:
    0 !important;

  padding:
    3px 0 0 !important;

}


.catalog-rich-card-type {

  margin:
    0 0 7px !important;

  color:
    rgba(255,255,255,.46)
    !important;

  font-size:
    10px !important;

  font-weight:
    800 !important;

  line-height:
    1.1 !important;

  letter-spacing:
    .065em !important;

  text-transform:
    uppercase !important;

}


.catalog-rich-card-title {

  margin:
    0 !important;

  padding:
    0 !important;

  color:
    #fff !important;

  font-size:
    17px !important;

  font-weight:
    800 !important;

  line-height:
    1.14 !important;

  letter-spacing:
    -.018em !important;

}


.catalog-rich-card-area {

  margin-top:
    8px !important;

  color:
    rgba(255,255,255,.66)
    !important;

  font-size:
    13px !important;

  font-weight:
    500 !important;

  line-height:
    1.2 !important;

}


/* ==========================================================
   КНОПКИ
   ========================================================== */

.catalog-card-actions {

  grid-template-columns:
    1fr 1fr !important;

  gap:
    10px !important;

  padding:
    10px 12px 12px
    !important;

  border-top:
    1px solid
    rgba(255,255,255,.055)
    !important;

}


.catalog-card-action {

  height:
    48px !important;

  min-height:
    48px !important;

  padding:
    0 12px !important;

  border-radius:
    15px !important;

  font-size:
    15px !important;

  font-weight:
    800 !important;

  line-height:
    1 !important;

  letter-spacing:
    -.012em !important;

  box-shadow:
    none !important;

}


/* Цены */

.catalog-card-action[
  data-catalog-action="medical-prices"
] {

  background:
    rgba(255,255,255,.09)
    !important;

  color:
    #fff !important;

  border:
    1px solid
    rgba(255,255,255,.055)
    !important;

}


/* Записаться */

.catalog-card-action[
  data-catalog-action="medical-book"
] {

  background:
    #3485ef !important;

  color:
    #fff !important;

  border:
    1px solid
    rgba(255,255,255,.07)
    !important;

}


.catalog-card-action:active {

  transform:
    scale(.975);

}


/* ==========================================================
   МАЛЕНЬКИЕ ЭКРАНЫ
   ========================================================== */

@media (max-width: 390px) {

  .catalog-rich-card-main {

    padding:
      12px !important;

    gap:
      12px !important;

  }


  .catalog-rich-card-photo {

    flex-basis:
      102px !important;

    width:
      102px !important;

    height:
      102px !important;

    min-width:
      102px !important;

    min-height:
      102px !important;

    max-width:
      102px !important;

    max-height:
      102px !important;

  }


  .catalog-rich-card-title {

    font-size:
      16px !important;

  }


  .catalog-card-action {

    height:
      46px !important;

    min-height:
      46px !important;

    font-size:
      14px !important;

  }

}


/* === CATALOG CARD POLISH V4 END === */


/* === CATALOG FEATURE ROW FINAL START === */


/* ----------------------------------------------------------
   УБИРАЕМ ПУСТУЮ ВЫСОТУ
   ---------------------------------------------------------- */

.catalog-rich-card-main,
.object-list .catalog-rich-card-main {

  height:
    auto !important;

  min-height:
    0 !important;

  max-height:
    none !important;

}


.catalog-rich-card-body {

  height:
    auto !important;

  min-height:
    0 !important;

  max-height:
    none !important;

}


/* ----------------------------------------------------------
   ОСОБЕННОСТИ ПОД ОСНОВНЫМ БЛОКОМ
   ---------------------------------------------------------- */

.catalog-rich-card-features-row {

  display:
    flex !important;

  flex-wrap:
    nowrap !important;

  align-items:
    center !important;

  gap:
    7px !important;

  width:
    100% !important;

  padding:
    0 12px 10px
    !important;

  overflow-x:
    auto !important;

  overflow-y:
    hidden !important;

  box-sizing:
    border-box !important;

  -webkit-overflow-scrolling:
    touch;

  scrollbar-width:
    none;

}


.catalog-rich-card-features-row::-webkit-scrollbar {

  display:
    none;

}


/* ----------------------------------------------------------
   ЕСЛИ renderCompactFeatures() ВОЗВРАЩАЕТ WRAPPER
   ---------------------------------------------------------- */

.catalog-rich-card-features-row
.compact-features,

.catalog-rich-card-features-row
.compact-feature-list {

  display:
    flex !important;

  flex-wrap:
    nowrap !important;

  gap:
    7px !important;

  width:
    max-content !important;

  margin:
    0 !important;

}


/* ----------------------------------------------------------
   САМИ ЧИПЫ
   ---------------------------------------------------------- */

.catalog-rich-card-features-row
.compact-feature,

.catalog-rich-card-features-row
.compact-feature-chip {

  flex:
    0 0 auto !important;

  display:
    inline-flex !important;

  align-items:
    center !important;

  min-height:
    29px !important;

  padding:
    6px 9px !important;

  white-space:
    nowrap !important;

  border-radius:
    10px !important;

  background:
    rgba(255,255,255,.075)
    !important;

  color:
    rgba(255,255,255,.82)
    !important;

  font-size:
    11px !important;

  font-weight:
    650 !important;

  line-height:
    1 !important;

}


/* ----------------------------------------------------------
   ЧУТЬ ПЛОТНЕЕ ОСНОВНОЙ БЛОК
   ---------------------------------------------------------- */

.catalog-rich-card-main {

  padding-bottom:
    11px !important;

}


/* Если features нет, сразу идут кнопки */

.catalog-card-actions {

  margin-top:
    0 !important;

}


/* === CATALOG FEATURE ROW FINAL END === */


/* === CARD 2GIS POLISH START === */


/* ==========================================================
   КАРТОЧКА
   ========================================================== */

.catalog-rich-card {

  border-radius:
    20px !important;

  background:
    #1d2025 !important;

  border:
    1px solid
    rgba(255,255,255,.075)
    !important;

  box-shadow:
    none !important;

  overflow:
    hidden !important;

}


/* ==========================================================
   ВЕРХНЯЯ ЧАСТЬ
   ========================================================== */

.catalog-rich-card-main {

  padding:
    12px 12px 11px
    !important;

  gap:
    13px !important;

  align-items:
    flex-start !important;

}


/* ==========================================================
   ФОТО
   ========================================================== */

.catalog-rich-card-photo {

  flex:
    0 0 106px !important;

  width:
    106px !important;

  height:
    106px !important;

  min-width:
    106px !important;

  min-height:
    106px !important;

  max-width:
    106px !important;

  max-height:
    106px !important;

  margin:
    0 !important;

  border-radius:
    16px !important;

  box-shadow:
    none !important;

  overflow:
    hidden !important;

}


.catalog-card-gallery,
.catalog-card-gallery-track,
.catalog-card-gallery-slide {

  width:
    100% !important;

  height:
    100% !important;

}


.catalog-card-gallery {

  border-radius:
    16px !important;

}


.catalog-card-gallery-slide img,
.catalog-rich-card-photo img {

  width:
    100% !important;

  height:
    100% !important;

  object-fit:
    cover !important;

  border-radius:
    16px !important;

}


/* ==========================================================
   3 ТОЧКИ — СТРОГО ПО ЦЕНТРУ СНИЗУ
   ========================================================== */

.catalog-card-gallery-dots {

  position:
    absolute !important;

  left:
    50% !important;

  right:
    auto !important;

  bottom:
    7px !important;

  transform:
    translateX(-50%)
    !important;

  display:
    flex !important;

  align-items:
    center !important;

  justify-content:
    center !important;

  gap:
    5px !important;

  width:
    auto !important;

  max-width:
    none !important;

  padding:
    4px 6px !important;

  border-radius:
    999px !important;

  background:
    rgba(10,12,16,.48)
    !important;

  backdrop-filter:
    blur(6px)
    !important;

  -webkit-backdrop-filter:
    blur(6px)
    !important;

}


.catalog-card-gallery-dot:nth-child(n+4) {

  display:
    none !important;

}


.catalog-card-gallery-dot {

  flex:
    0 0 5px !important;

  width:
    5px !important;

  height:
    5px !important;

  min-width:
    5px !important;

  min-height:
    5px !important;

  border-radius:
    50% !important;

  background:
    rgba(255,255,255,.48)
    !important;

  opacity:
    1 !important;

  transform:
    none !important;

}


.catalog-card-gallery-dot:nth-child(2) {

  background:
    #fff !important;

  transform:
    scale(1.12)
    !important;

}


/* ==========================================================
   СЧЁТЧИК ФОТО — ВВЕРХУ СПРАВА
   ========================================================== */

.catalog-card-gallery-counter {

  top:
    7px !important;

  right:
    7px !important;

  bottom:
    auto !important;

  padding:
    4px 7px !important;

  border-radius:
    999px !important;

  background:
    rgba(8,10,14,.68)
    !important;

  color:
    #fff !important;

  font-size:
    10px !important;

  font-weight:
    750 !important;

  line-height:
    1 !important;

  backdrop-filter:
    blur(6px)
    !important;

  -webkit-backdrop-filter:
    blur(6px)
    !important;

}


/* ==========================================================
   ТЕКСТОВЫЙ БЛОК
   ========================================================== */

.catalog-rich-card-body {

  min-width:
    0 !important;

  padding:
    2px 0 0
    !important;

}


/*
  Категория — менее заметная,
  как в 2GIS.
*/

.catalog-rich-card-type {

  margin:
    0 0 6px !important;

  color:
    rgba(255,255,255,.43)
    !important;

  font-size:
    9.5px !important;

  font-weight:
    750 !important;

  line-height:
    1.15 !important;

  letter-spacing:
    .055em !important;

  text-transform:
    uppercase !important;

}


/*
  Основное название.
*/

.catalog-rich-card-title {

  margin:
    0 !important;

  padding:
    0 !important;

  color:
    rgba(255,255,255,.98)
    !important;

  font-size:
    17px !important;

  font-weight:
    750 !important;

  line-height:
    1.16 !important;

  letter-spacing:
    -.017em !important;

}


/*
  Район.
*/

.catalog-rich-card-area {

  margin-top:
    7px !important;

  color:
    rgba(255,255,255,.58)
    !important;

  font-size:
    13px !important;

  font-weight:
    500 !important;

  line-height:
    1.2 !important;

}


/* ==========================================================
   ОСОБЕННОСТИ
   ========================================================== */

.catalog-rich-card-features-row {

  gap:
    6px !important;

  padding:
    0 12px 10px
    !important;

}


/*
  Если внутри есть wrapper —
  приводим его к единому виду.
*/

.catalog-rich-card-features-row
.compact-features,

.catalog-rich-card-features-row
.compact-feature-list {

  gap:
    6px !important;

}


/*
  Чипы делаем легче,
  ближе к фильтрам 2GIS.
*/

.catalog-rich-card-features-row
.compact-feature,

.catalog-rich-card-features-row
.compact-feature-chip {

  min-height:
    27px !important;

  padding:
    5px 8px !important;

  border:
    1px solid
    rgba(255,255,255,.055)
    !important;

  border-radius:
    9px !important;

  background:
    rgba(255,255,255,.065)
    !important;

  color:
    rgba(255,255,255,.75)
    !important;

  font-size:
    10.5px !important;

  font-weight:
    600 !important;

  line-height:
    1 !important;

}


/* ==========================================================
   КНОПКИ
   ========================================================== */

.catalog-card-actions {

  gap:
    8px !important;

  padding:
    9px 12px 11px
    !important;

  border-top:
    1px solid
    rgba(255,255,255,.045)
    !important;

}


.catalog-card-action {

  height:
    44px !important;

  min-height:
    44px !important;

  padding:
    0 12px !important;

  border-radius:
    13px !important;

  font-size:
    14px !important;

  font-weight:
    750 !important;

  letter-spacing:
    -.01em !important;

  box-shadow:
    none !important;

}


/* Цены */

.catalog-card-action[
  data-catalog-action="medical-prices"
] {

  background:
    rgba(255,255,255,.075)
    !important;

  color:
    rgba(255,255,255,.93)
    !important;

  border:
    1px solid
    rgba(255,255,255,.055)
    !important;

}


/* Записаться */

.catalog-card-action[
  data-catalog-action="medical-book"
] {

  background:
    #367ff0 !important;

  color:
    #fff !important;

  border:
    0 !important;

}


/* ==========================================================
   МАЛЕНЬКИЕ ЭКРАНЫ
   ========================================================== */

@media (max-width: 390px) {

  .catalog-rich-card-main {

    padding:
      11px !important;

    gap:
      11px !important;

  }


  .catalog-rich-card-photo {

    flex-basis:
      100px !important;

    width:
      100px !important;

    height:
      100px !important;

    min-width:
      100px !important;

    min-height:
      100px !important;

    max-width:
      100px !important;

    max-height:
      100px !important;

  }


  .catalog-rich-card-title {

    font-size:
      16px !important;

  }


  .catalog-rich-card-area {

    font-size:
      12.5px !important;

  }


  .catalog-card-action {

    height:
      43px !important;

    min-height:
      43px !important;

    font-size:
      13.5px !important;

  }

}


/* === CARD 2GIS POLISH END === */


/* === CARD CLEANUP V1 START === */


/* ----------------------------------------------------------
   ТЕКСТ
   ---------------------------------------------------------- */

.catalog-rich-card-body {

  padding-top:
    1px !important;

}


.catalog-rich-card-title {

  margin:
    0 !important;

  font-size:
    17px !important;

  line-height:
    1.12 !important;

  font-weight:
    760 !important;

  letter-spacing:
    -.015em !important;

}


.catalog-rich-card-area {

  margin-top:
    6px !important;

  font-size:
    13px !important;

  line-height:
    1.15 !important;

  color:
    rgba(255,255,255,.60)
    !important;

}


/* ----------------------------------------------------------
   FEATURES ЧУТЬ БЛИЖЕ К ОСНОВНОМУ БЛОКУ
   ---------------------------------------------------------- */

.catalog-rich-card-features-row {

  padding-top:
    2px !important;

  padding-bottom:
    8px !important;

}


/* ----------------------------------------------------------
   КНОПКИ КОМПАКТНЕЕ
   ---------------------------------------------------------- */

.catalog-card-actions {

  gap:
    8px !important;

  padding:
    8px 12px 10px
    !important;

}


.catalog-card-action {

  height:
    40px !important;

  min-height:
    40px !important;

  padding:
    0 10px !important;

  border-radius:
    12px !important;

  font-size:
    13.5px !important;

  font-weight:
    750 !important;

  line-height:
    1 !important;

}


/* Цены */

.catalog-card-action[
  data-catalog-action="medical-prices"
] {

  background:
    rgba(255,255,255,.07)
    !important;

  color:
    rgba(255,255,255,.92)
    !important;

}


/* Записаться */

.catalog-card-action[
  data-catalog-action="medical-book"
] {

  background:
    #367ff0 !important;

  color:
    #fff !important;

}


/* ----------------------------------------------------------
   ЧУТЬ МЕНЬШЕ ОБЩАЯ ВЫСОТА
   ---------------------------------------------------------- */

.catalog-rich-card-main {

  padding-top:
    11px !important;

  padding-bottom:
    9px !important;

}


/* === CARD CLEANUP V1 END === */


/* === CATALOG OPEN STATUS STYLE START === */


/* ----------------------------------------------------------
   ТЕКСТ БЛИЖЕ К КАРТИНКЕ
   ---------------------------------------------------------- */

.catalog-rich-card-main {

  grid-template-columns:
    106px minmax(0,1fr)
    !important;

  column-gap:
    7px !important;

  padding-left:
    12px !important;

  padding-right:
    12px !important;

}


.catalog-rich-card-body {

  padding-left:
    0 !important;

  margin-left:
    0 !important;

}


/* ----------------------------------------------------------
   ДИНАМИЧЕСКИЙ СТАТУС
   ---------------------------------------------------------- */

.catalog-open-status {

  display:
    flex !important;

  align-items:
    center !important;

  margin-top:
    7px !important;

  font-size:
    12px !important;

  line-height:
    1.2 !important;

  font-weight:
    750 !important;

  white-space:
    nowrap;

}


.catalog-open-status::before {

  content:
    '';

  width:
    7px;

  height:
    7px;

  min-width:
    7px;

  margin-right:
    6px;

  border-radius:
    50%;

  background:
    currentColor;

}


/* Открыто */

.catalog-open-status--open {

  color:
    #44d475 !important;

}


/* До открытия */

.catalog-open-status--soon {

  color:
    #f2c94c !important;

}


/* Закрыто */

.catalog-open-status--closed {

  color:
    #ff6368 !important;

}


/* ----------------------------------------------------------
   ЧИПЫ
   ---------------------------------------------------------- */

.catalog-rich-card-features-row {

  margin-top:
    1px !important;

}


/* ----------------------------------------------------------
   MOBILE
   ---------------------------------------------------------- */

@media (max-width: 390px) {

  .catalog-rich-card-main {

    grid-template-columns:
      100px minmax(0,1fr)
      !important;

    column-gap:
      6px !important;

  }


  .catalog-open-status {

    font-size:
      11.5px !important;

  }

}


/* === CATALOG OPEN STATUS STYLE END === */


/* === CATALOG DISTANCE STYLE START === */

.catalog-rich-card-area {

  display:
    flex !important;

  flex-wrap:
    wrap !important;

  align-items:
    center !important;

  gap:
    0 !important;

}


.catalog-object-distance {

  color:
    rgba(255,255,255,.48)
    !important;

  font-size:
    inherit !important;

  font-weight:
    500 !important;

  white-space:
    nowrap;

}


@media (max-width: 390px) {

  .catalog-object-distance {

    font-size:
      12px !important;

  }

}

/* === CATALOG DISTANCE STYLE END === */


/* === DISTANCE SEPARATOR V2 START === */

.catalog-rich-card-area {

  display:
    flex !important;

  flex-wrap:
    wrap !important;

  align-items:
    center !important;

  column-gap:
    0 !important;

}


.catalog-object-distance {

  display:
    inline-flex !important;

  align-items:
    center !important;

  color:
    rgba(255,255,255,.52)
    !important;

  white-space:
    nowrap !important;

}


.catalog-object-distance::before {

  content:
    '';

  display:
    inline-block;

  width:
    5px;

  height:
    5px;

  margin:
    0 8px;

  border-radius:
    50%;

  background:
    rgba(255,255,255,.62);

  flex:
    0 0 5px;

}


/* === DISTANCE SEPARATOR V2 END === */


/* === CARD META ALIGN START === */


/* ----------------------------------------------------------
   БУХТА + РАССТОЯНИЕ
   ---------------------------------------------------------- */

.catalog-rich-card-area {

  display:
    flex !important;

  align-items:
    center !important;

  flex-wrap:
    wrap !important;

  min-height:
    22px !important;

  margin-top:
    6px !important;

  font-size:
    13px !important;

  line-height:
    22px !important;

}


/*
  Расстояние выравниваем
  по той же вертикальной оси.
*/

.catalog-object-distance {

  display:
    inline-flex !important;

  align-items:
    center !important;

  height:
    22px !important;

  line-height:
    22px !important;

}


/*
  Разделительная точка между
  бухтой и расстоянием.
*/

.catalog-object-distance::before {

  align-self:
    center !important;

  margin-top:
    0 !important;

  margin-bottom:
    0 !important;

}


/* ----------------------------------------------------------
   СТАТУС ОТКРЫТО / ЗАКРЫТО
   ---------------------------------------------------------- */

.catalog-open-status {

  display:
    flex !important;

  align-items:
    center !important;

  min-height:
    22px !important;

  margin-top:
    3px !important;

  font-size:
    12px !important;

  line-height:
    22px !important;

}


/*
  Цветная точка статуса
  строго по центру строки.
*/

.catalog-open-status::before {

  align-self:
    center !important;

  width:
    7px !important;

  height:
    7px !important;

  min-width:
    7px !important;

  margin:
    0 7px 0 0 !important;

  transform:
    none !important;

}


/* ----------------------------------------------------------
   МОБИЛЬНЫЕ ЭКРАНЫ
   ---------------------------------------------------------- */

@media (max-width: 390px) {

  .catalog-rich-card-area,
  .catalog-object-distance,
  .catalog-open-status {

    min-height:
      21px !important;

    line-height:
      21px !important;

  }

}


/* === CARD META ALIGN END === */


/* === CATALOG QUICK FILTERS STYLE START === */

@media (max-width: 899px) {

  .catalog-quick-filters {

    display:
      flex;

    flex-wrap:
      nowrap;

    align-items:
      center;

    gap:
      8px;

    width:
      100%;

    padding:
      1px 13px 10px;

    overflow-x:
      auto;

    overflow-y:
      hidden;

    box-sizing:
      border-box;

    -webkit-overflow-scrolling:
      touch;

    scrollbar-width:
      none;

  }


  .catalog-quick-filters::-webkit-scrollbar {

    display:
      none;

  }


  .catalog-quick-filter {

    flex:
      0 0 auto;

    min-height:
      38px;

    padding:
      0 13px;

    border:
      1px solid
      rgba(255,255,255,.07);

    border-radius:
      12px;

    background:
      rgba(255,255,255,.065);

    color:
      rgba(255,255,255,.85);

    font-size:
      13px;

    font-weight:
      650;

    line-height:
      1;

    white-space:
      nowrap;

    box-shadow:
      none;

  }


  .catalog-quick-filter.active {

    background:
      rgba(255,255,255,.16);

    border-color:
      rgba(255,255,255,.18);

    color:
      #fff;

  }


  .catalog-quick-filter:active {

    transform:
      scale(.97);

  }


  .catalog-filter-empty {

    padding:
      28px 20px;

    color:
      rgba(255,255,255,.55);

    font-size:
      14px;

    line-height:
      1.4;

    text-align:
      center;

  }

}

/* === CATALOG QUICK FILTERS STYLE END === */


/* === QUICK FILTER POSITION FIX START === */

@media (max-width: 899px) {

  #listPanel .catalog-quick-filters {

    position:
      relative !important;

    z-index:
      2 !important;

    width:
      100% !important;

    margin:
      0 !important;

    padding:
      4px 14px 10px
      !important;

    background:
      transparent !important;

    box-sizing:
      border-box !important;

  }


  /*
    На основной карте отдельной строки
    быстрых фильтров быть не должно.
  */

  #mobileMapDock >
  .catalog-quick-filters {

    display:
      none !important;

  }

}

/* === QUICK FILTER POSITION FIX END === */


/* === QUICK FILTER SPACING FIX START === */

@media (max-width: 899px) {

  /*
    Поиск и фильтры должны
    восприниматься как единый блок,
    но не прилипать друг к другу.
  */

  #listPanel #mobileMapSearchForm {

    margin-bottom:
      7px !important;

  }


  #listPanel .catalog-quick-filters {

    display:
      flex !important;

    align-items:
      center !important;

    min-height:
      44px !important;

    margin:
      0 0 10px !important;

    padding:
      2px 14px 6px !important;

    background:
      transparent !important;

    overflow-x:
      auto !important;

    overflow-y:
      hidden !important;

    box-sizing:
      border-box !important;

    flex-shrink:
      0 !important;

  }


  /*
    Сами кнопки чуть компактнее.
  */

  #listPanel .catalog-quick-filter {

    min-height:
      36px !important;

    height:
      36px !important;

    padding:
      0 12px !important;

    border-radius:
      11px !important;

    font-size:
      12.5px !important;

    line-height:
      1 !important;

    flex:
      0 0 auto !important;

  }


  /*
    Первая карточка не должна
    прилипать к фильтрам.
  */

  #listPanel #objectList {

    padding-top:
      6px !important;

  }


  #listPanel #objectList
  .catalog-rich-card:first-of-type {

    margin-top:
      2px !important;

  }

}

/* === QUICK FILTER SPACING FIX END === */


/* === MOBILE SEARCH HEADER V1 START === */

@media (max-width: 899px) {


  /* ========================================================
     СТАРЫЙ HEADER С НАЗВАНИЕМ РАЗДЕЛА УБИРАЕМ
     ======================================================== */

  #listPanel .list-header {

    display:
      none !important;

  }


  /* ========================================================
     НОВАЯ СТРОКА: ПОИСК + X
     ======================================================== */

  #mobileCatalogSearchHeader {

    display:
      grid !important;

    grid-template-columns:
      minmax(0, 1fr)
      56px !important;

    align-items:
      center !important;

    gap:
      10px !important;

    width:
      100% !important;

    padding:
      8px 14px 8px !important;

    box-sizing:
      border-box !important;

    flex:
      0 0 auto !important;

  }


  /* ========================================================
     ФОРМА ПОИСКА
     ======================================================== */

  #mobileCatalogSearchHeader
  #mobileMapSearchForm {

    display:
      block !important;

    width:
      100% !important;

    height:
      56px !important;

    min-height:
      56px !important;

    margin:
      0 !important;

    padding:
      0 !important;

  }


  #mobileCatalogSearchHeader
  .mobile-map-search-field {

    display:
      flex !important;

    align-items:
      center !important;

    width:
      100% !important;

    height:
      56px !important;

    min-height:
      56px !important;

    padding:
      0 16px !important;

    border:
      1px solid
      rgba(255,255,255,.055)
      !important;

    border-radius:
      15px !important;

    background:
      #24262a !important;

    box-sizing:
      border-box !important;

  }


  #mobileCatalogSearchHeader
  .mobile-map-search-field > span {

    display:
      inline-flex !important;

    align-items:
      center !important;

    justify-content:
      center !important;

    margin-right:
      10px !important;

    font-size:
      23px !important;

    line-height:
      1 !important;

    opacity:
      .62 !important;

  }


  #mobileCatalogSearchHeader
  #mobileMapSearchInput {

    width:
      100% !important;

    height:
      100% !important;

    min-width:
      0 !important;

    padding:
      0 !important;

    border:
      0 !important;

    outline:
      0 !important;

    background:
      transparent !important;

    color:
      #fff !important;

    font-size:
      16px !important;

    font-weight:
      500 !important;

    line-height:
      1 !important;

  }


  #mobileCatalogSearchHeader
  #mobileMapSearchInput::placeholder {

    color:
      rgba(255,255,255,.48)
      !important;

    opacity:
      1 !important;

  }


  /* ========================================================
     КНОПКА ЗАКРЫТИЯ
     ======================================================== */

  #mobileCatalogSearchHeader
  #closeList {

    display:
      flex !important;

    align-items:
      center !important;

    justify-content:
      center !important;

    width:
      56px !important;

    height:
      56px !important;

    min-width:
      56px !important;

    min-height:
      56px !important;

    margin:
      0 !important;

    padding:
      0 !important;

    border:
      0 !important;

    border-radius:
      15px !important;

    background:
      #24262a !important;

    color:
      #fff !important;

    font-size:
      34px !important;

    font-weight:
      300 !important;

    line-height:
      1 !important;

    box-shadow:
      none !important;

  }


  #mobileCatalogSearchHeader
  #closeList:active {

    transform:
      scale(.96);

    background:
      #2d3035 !important;

  }


  /* ========================================================
     ФИЛЬТРЫ СРАЗУ ПОД ПОИСКОМ
     ======================================================== */

  #listPanel
  .catalog-quick-filters {

    margin:
      0 0 8px !important;

    padding:
      2px 14px 7px !important;

  }


  /* ========================================================
     КАРТОЧКИ ЧУТЬ БЛИЖЕ
     ======================================================== */

  #listPanel
  #objectList {

    padding-top:
      4px !important;

  }

}


/* === MOBILE SEARCH HEADER V1 END === */


/* === MOBILE SEARCH HEADER HARD FIX START === */

@media (max-width: 899px) {


  /* ----------------------------------------------------------
     Старая строка заголовка полностью скрыта
     ---------------------------------------------------------- */

  #listPanel .list-header {

    display:
      none !important;

  }


  /* ----------------------------------------------------------
     Контейнер: поиск + X
     ---------------------------------------------------------- */

  #listPanel
  #mobileCatalogSearchHeader {

    position:
      relative !important;

    display:
      grid !important;

    grid-template-columns:
      minmax(0, 1fr) 56px
      !important;

    grid-template-rows:
      56px !important;

    align-items:
      stretch !important;

    column-gap:
      10px !important;

    width:
      100% !important;

    min-width:
      0 !important;

    height:
      72px !important;

    margin:
      0 !important;

    padding:
      8px 14px !important;

    box-sizing:
      border-box !important;

    overflow:
      hidden !important;

  }


  /* ----------------------------------------------------------
     FORM
     ---------------------------------------------------------- */

  #listPanel
  #mobileCatalogSearchHeader
  #mobileMapSearchForm {

    position:
      static !important;

    inset:
      auto !important;

    grid-column:
      1 !important;

    grid-row:
      1 !important;

    display:
      block !important;

    width:
      auto !important;

    min-width:
      0 !important;

    max-width:
      none !important;

    height:
      56px !important;

    min-height:
      56px !important;

    margin:
      0 !important;

    padding:
      0 !important;

    transform:
      none !important;

    flex:
      none !important;

  }


  #listPanel
  #mobileCatalogSearchHeader
  .mobile-map-search-field {

    position:
      static !important;

    display:
      flex !important;

    align-items:
      center !important;

    width:
      100% !important;

    min-width:
      0 !important;

    height:
      56px !important;

    min-height:
      56px !important;

    margin:
      0 !important;

    padding:
      0 15px !important;

    border:
      1px solid
      rgba(255,255,255,.07)
      !important;

    border-radius:
      15px !important;

    background:
      #24262a !important;

    box-sizing:
      border-box !important;

    overflow:
      hidden !important;

  }


  #listPanel
  #mobileCatalogSearchHeader
  .mobile-map-search-icon {

    flex:
      0 0 auto !important;

    display:
      flex !important;

    align-items:
      center !important;

    justify-content:
      center !important;

    width:
      28px !important;

    margin:
      0 10px 0 0 !important;

    font-size:
      23px !important;

    line-height:
      1 !important;

    opacity:
      .58 !important;

  }


  #listPanel
  #mobileCatalogSearchHeader
  #mobileMapSearchInput {

    display:
      block !important;

    flex:
      1 1 auto !important;

    width:
      100% !important;

    min-width:
      0 !important;

    max-width:
      100% !important;

    height:
      54px !important;

    margin:
      0 !important;

    padding:
      0 !important;

    border:
      0 !important;

    outline:
      0 !important;

    background:
      transparent !important;

    color:
      #fff !important;

    font-size:
      16px !important;

    font-weight:
      500 !important;

    line-height:
      54px !important;

    box-sizing:
      border-box !important;

  }


  #listPanel
  #mobileCatalogSearchHeader
  #mobileMapSearchInput::placeholder {

    color:
      rgba(255,255,255,.46)
      !important;

    opacity:
      1 !important;

  }


  /* ----------------------------------------------------------
     X
     ---------------------------------------------------------- */

  #listPanel
  #mobileCatalogSearchHeader
  #closeList {

    position:
      static !important;

    inset:
      auto !important;

    grid-column:
      2 !important;

    grid-row:
      1 !important;

    align-self:
      stretch !important;

    justify-self:
      stretch !important;

    display:
      flex !important;

    align-items:
      center !important;

    justify-content:
      center !important;

    width:
      56px !important;

    min-width:
      56px !important;

    max-width:
      56px !important;

    height:
      56px !important;

    min-height:
      56px !important;

    max-height:
      56px !important;

    margin:
      0 !important;

    padding:
      0 0 3px !important;

    border:
      0 !important;

    border-radius:
      15px !important;

    background:
      #24262a !important;

    color:
      #fff !important;

    font-family:
      Arial, sans-serif !important;

    font-size:
      35px !important;

    font-weight:
      300 !important;

    line-height:
      1 !important;

    letter-spacing:
      0 !important;

    text-indent:
      0 !important;

    white-space:
      nowrap !important;

    overflow:
      hidden !important;

    transform:
      none !important;

    box-shadow:
      none !important;

    box-sizing:
      border-box !important;

  }


  /* ----------------------------------------------------------
     ФИЛЬТРЫ
     ---------------------------------------------------------- */

  #listPanel
  .catalog-quick-filters {

    position:
      relative !important;

    display:
      flex !important;

    width:
      100% !important;

    min-height:
      42px !important;

    margin:
      0 0 8px !important;

    padding:
      0 14px 6px !important;

    box-sizing:
      border-box !important;

    overflow-x:
      auto !important;

    overflow-y:
      hidden !important;

  }


  /* ----------------------------------------------------------
     СПИСОК
     ---------------------------------------------------------- */

  #listPanel
  #objectList {

    padding-top:
      4px !important;

  }

}

/* === MOBILE SEARCH HEADER HARD FIX END === */


/* === MOBILE SEARCH ROW FINAL START === */

@media (max-width: 899px) {


  /* ========================================================
     СТАРЫЙ HEADER
     ======================================================== */

  #listPanel .list-header {
    display: none !important;
  }


  /* ========================================================
     ПОИСК + X В ОДНУ СТРОКУ
     ======================================================== */

  #listPanel #mobileCatalogSearchHeader {

    position: relative !important;

    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;

    align-items: center !important;

    gap: 10px !important;

    width: 100% !important;
    min-width: 0 !important;

    height: auto !important;
    min-height: 72px !important;

    margin: 0 !important;
    padding: 8px 14px !important;

    box-sizing: border-box !important;

    overflow: visible !important;
  }


  /* ========================================================
     ПОИСК
     ======================================================== */

  #listPanel
  #mobileCatalogSearchHeader
  #mobileMapSearchForm {

    position: static !important;

    display: block !important;

    flex: 1 1 0 !important;

    width: 0 !important;
    min-width: 0 !important;
    max-width: none !important;

    height: 56px !important;
    min-height: 56px !important;

    margin: 0 !important;
    padding: 0 !important;

    transform: none !important;

    box-sizing: border-box !important;
  }


  #listPanel
  #mobileCatalogSearchHeader
  .mobile-map-search-field {

    display: flex !important;

    align-items: center !important;

    width: 100% !important;
    min-width: 0 !important;

    height: 56px !important;

    margin: 0 !important;
    padding: 0 15px !important;

    border:
      1px solid rgba(255,255,255,.07)
      !important;

    border-radius: 15px !important;

    background: #24262a !important;

    box-sizing: border-box !important;

    overflow: hidden !important;
  }


  #listPanel
  #mobileCatalogSearchHeader
  .mobile-map-search-icon {

    flex: 0 0 28px !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    width: 28px !important;

    margin: 0 10px 0 0 !important;

    font-size: 23px !important;
    line-height: 1 !important;

    opacity: .58 !important;
  }


  #listPanel
  #mobileCatalogSearchHeader
  #mobileMapSearchInput {

    position: static !important;

    display: block !important;

    flex: 1 1 auto !important;

    width: 0 !important;
    min-width: 0 !important;

    height: 54px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    outline: 0 !important;

    background: transparent !important;

    color: #fff !important;

    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: normal !important;

    box-sizing: border-box !important;
  }


  #listPanel
  #mobileCatalogSearchHeader
  #mobileMapSearchInput::placeholder {

    color:
      rgba(255,255,255,.47)
      !important;

    opacity: 1 !important;
  }


  /* ========================================================
     КНОПКА X
     ======================================================== */

  #listPanel
  #mobileCatalogSearchHeader
  #closeList {

    position: static !important;

    flex:
      0 0 56px !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    width: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;

    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;

    margin: 0 !important;
    padding: 0 0 4px !important;

    border: 0 !important;

    border-radius: 15px !important;

    background: #24262a !important;

    color: #fff !important;

    font-family:
      Arial,
      sans-serif !important;

    font-size: 34px !important;
    font-weight: 300 !important;
    line-height: 1 !important;

    text-indent: 0 !important;

    overflow: hidden !important;

    transform: none !important;

    box-shadow: none !important;

    box-sizing: border-box !important;
  }


  /*
    ВАЖНО:
    старый CSS рисовал второй ×
    через ::before.
  */

  #listPanel #closeList::before,
  #listPanel #closeList::after {

    content: none !important;
    display: none !important;
  }


  /* ========================================================
     ФИЛЬТРЫ СРАЗУ НИЖЕ
     ======================================================== */

  #listPanel .catalog-quick-filters {

    display: flex !important;
    flex-wrap: nowrap !important;

    gap: 8px !important;

    width: 100% !important;

    margin: 0 0 8px !important;
    padding: 0 14px 7px !important;

    box-sizing: border-box !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;

    flex-shrink: 0 !important;
  }


  #listPanel #objectList {

    padding-top: 4px !important;
  }

}

/* === MOBILE SEARCH ROW FINAL END === */


/* === MOBILE SEARCH ABSOLUTE FINAL START === */

@media (max-width: 899px) {


  /*
    Контейнер одной строки.
  */

  #listPanel
  #mobileCatalogSearchHeader {

    position:
      relative !important;

    display:
      block !important;

    width:
      100% !important;

    height:
      72px !important;

    min-height:
      72px !important;

    margin:
      0 !important;

    padding:
      8px 80px 8px 14px !important;

    box-sizing:
      border-box !important;

    overflow:
      visible !important;

  }


  /*
    Поиск занимает всё место,
    кроме зоны кнопки X.
  */

  #listPanel
  #mobileCatalogSearchHeader
  #mobileMapSearchForm {

    position:
      relative !important;

    display:
      block !important;

    width:
      100% !important;

    height:
      56px !important;

    min-height:
      56px !important;

    max-height:
      56px !important;

    margin:
      0 !important;

    padding:
      0 !important;

    box-sizing:
      border-box !important;

    transform:
      none !important;

  }


  #listPanel
  #mobileCatalogSearchHeader
  .mobile-map-search-field {

    width:
      100% !important;

    height:
      56px !important;

    min-height:
      56px !important;

    margin:
      0 !important;

  }


  /*
    Кнопка закрытия всегда
    справа от поиска.
  */

  #listPanel
  #mobileCatalogSearchHeader
  #closeList {

    position:
      absolute !important;

    top:
      8px !important;

    right:
      14px !important;

    left:
      auto !important;

    bottom:
      auto !important;

    display:
      flex !important;

    align-items:
      center !important;

    justify-content:
      center !important;

    width:
      56px !important;

    height:
      56px !important;

    min-width:
      56px !important;

    min-height:
      56px !important;

    max-width:
      56px !important;

    max-height:
      56px !important;

    margin:
      0 !important;

    padding:
      0 0 4px !important;

    border:
      0 !important;

    border-radius:
      15px !important;

    background:
      #24262a !important;

    color:
      #fff !important;

    font-size:
      34px !important;

    line-height:
      1 !important;

    z-index:
      5 !important;

    transform:
      none !important;

    box-sizing:
      border-box !important;

  }


  /*
    Старые псевдоэлементы
    точно отключаем.
  */

  #listPanel #closeList::before,
  #listPanel #closeList::after {

    content:
      none !important;

    display:
      none !important;

  }


  /*
    Фильтры сразу под строкой поиска.
  */

  #listPanel
  .catalog-quick-filters {

    margin-top:
      0 !important;

    padding-top:
      0 !important;

  }

}

/* === MOBILE SEARCH ABSOLUTE FINAL END === */


/* === MOBILE CLOSE PROXY FINAL START === */

@media (max-width: 899px) {


  /*
    Контейнер поиска.
  */

  #listPanel
  #mobileCatalogSearchHeader {

    position:
      relative !important;

    display:
      block !important;

    width:
      100% !important;

    height:
      72px !important;

    min-height:
      72px !important;

    margin:
      0 !important;

    padding:
      8px 80px 8px 14px
      !important;

    box-sizing:
      border-box !important;

    overflow:
      visible !important;

  }


  /*
    Поиск.
  */

  #listPanel
  #mobileCatalogSearchHeader
  #mobileMapSearchForm {

    position:
      static !important;

    display:
      block !important;

    width:
      100% !important;

    height:
      56px !important;

    margin:
      0 !important;

    padding:
      0 !important;

    transform:
      none !important;

  }


  /*
    Старую кнопку полностью
    убираем из раскладки.
  */

  #listPanel
  #mobileCatalogSearchHeader
  #closeList.mobile-catalog-original-close {

    display:
      none !important;

    position:
      absolute !important;

    width:
      0 !important;

    height:
      0 !important;

    min-width:
      0 !important;

    min-height:
      0 !important;

    overflow:
      hidden !important;

    pointer-events:
      none !important;

  }


  /*
    Новая чистая кнопка.
  */

  #listPanel
  #mobileCatalogCloseProxy {

    position:
      absolute !important;

    top:
      8px !important;

    right:
      14px !important;

    display:
      flex !important;

    align-items:
      center !important;

    justify-content:
      center !important;

    width:
      56px !important;

    height:
      56px !important;

    margin:
      0 !important;

    padding:
      0 0 4px !important;

    border:
      0 !important;

    border-radius:
      15px !important;

    background:
      #24262a !important;

    color:
      #fff !important;

    font-family:
      Arial, sans-serif !important;

    font-size:
      34px !important;

    font-weight:
      300 !important;

    line-height:
      1 !important;

    z-index:
      20 !important;

    box-sizing:
      border-box !important;

    box-shadow:
      none !important;

  }


  #listPanel
  #mobileCatalogCloseProxy:active {

    transform:
      scale(.96);

    background:
      #2d3035 !important;

  }

}

/* === MOBILE CLOSE PROXY FINAL END === */


/* === CLEAN MOBILE CATALOG SEARCH STYLE START === */

@media (max-width: 899px) {


  /*
    Старые элементы полностью
    убираем из визуальной раскладки.
  */

  #listPanel.has-clean-catalog-search
  #mobileCatalogSearchHeader,

  #listPanel.has-clean-catalog-search
  .list-header {

    display:
      none !important;

  }


  /* ========================================================
     НОВЫЙ BAR
     ======================================================== */

  #cleanCatalogSearchBar {

    display:
      flex !important;

    flex-direction:
      row !important;

    flex-wrap:
      nowrap !important;

    align-items:
      center !important;

    gap:
      10px !important;

    width:
      100% !important;

    min-width:
      0 !important;

    height:
      72px !important;

    margin:
      0 !important;

    padding:
      8px 14px !important;

    box-sizing:
      border-box !important;

    flex:
      0 0 auto !important;

  }


  /* ========================================================
     SEARCH
     ======================================================== */

  #cleanCatalogSearchForm {

    display:
      flex !important;

    align-items:
      center !important;

    flex:
      1 1 auto !important;

    min-width:
      0 !important;

    height:
      56px !important;

    margin:
      0 !important;

    padding:
      0 15px !important;

    border:
      1px solid rgba(255,255,255,.07)
      !important;

    border-radius:
      15px !important;

    background:
      #24262a !important;

    box-sizing:
      border-box !important;

    overflow:
      hidden !important;

  }


  .clean-catalog-search-icon {

    flex:
      0 0 28px !important;

    display:
      flex !important;

    align-items:
      center !important;

    justify-content:
      center !important;

    width:
      28px !important;

    margin:
      0 10px 0 0 !important;

    font-size:
      23px !important;

    line-height:
      1 !important;

    opacity:
      .58 !important;

  }


  #cleanCatalogSearchInput {

    display:
      block !important;

    flex:
      1 1 auto !important;

    width:
      0 !important;

    min-width:
      0 !important;

    height:
      54px !important;

    margin:
      0 !important;

    padding:
      0 !important;

    border:
      0 !important;

    outline:
      0 !important;

    background:
      transparent !important;

    color:
      #fff !important;

    font-size:
      16px !important;

    font-weight:
      500 !important;

    line-height:
      normal !important;

    box-sizing:
      border-box !important;

  }


  #cleanCatalogSearchInput::placeholder {

    color:
      rgba(255,255,255,.47)
      !important;

    opacity:
      1 !important;

  }


  /* ========================================================
     CLOSE
     ======================================================== */

  #cleanCatalogCloseButton {

    display:
      flex !important;

    align-items:
      center !important;

    justify-content:
      center !important;

    flex:
      0 0 56px !important;

    width:
      56px !important;

    min-width:
      56px !important;

    height:
      56px !important;

    min-height:
      56px !important;

    margin:
      0 !important;

    padding:
      0 0 4px !important;

    border:
      0 !important;

    border-radius:
      15px !important;

    background:
      #24262a !important;

    color:
      #fff !important;

    font-family:
      Arial,
      sans-serif !important;

    font-size:
      34px !important;

    font-weight:
      300 !important;

    line-height:
      1 !important;

    box-sizing:
      border-box !important;

    box-shadow:
      none !important;

  }


  #cleanCatalogCloseButton:active {

    transform:
      scale(.96);

    background:
      #2d3035 !important;

  }


  /*
    Фильтры непосредственно ниже.
  */

  #listPanel
  .catalog-quick-filters {

    margin-top:
      0 !important;

  }

}

/* === CLEAN MOBILE CATALOG SEARCH STYLE END === */


/* === HIDE LEGACY CATALOG SEARCH START === */

@media (max-width: 899px) {

  /*
    Новый cleanCatalogSearchBar —
    единственный видимый поиск
    внутри шторки.
  */

  #listPanel.has-clean-catalog-search
  #mobileMapSearchForm,

  #listPanel.has-clean-catalog-search
  #mobileCatalogSearchHeader,

  #listPanel.has-clean-catalog-search
  #mobileCatalogCloseProxy,

  #listPanel.has-clean-catalog-search
  #closeList,

  #listPanel.has-clean-catalog-search
  .list-header {

    display: none !important;

  }


  /*
    Новый search bar обязательно
    оставляем видимым.
  */

  #listPanel.has-clean-catalog-search
  #cleanCatalogSearchBar {

    display: flex !important;

  }

}

/* === HIDE LEGACY CATALOG SEARCH END === */


/* === COMPACT CATALOG SEARCH START === */

@media (max-width: 899px) {


  #cleanCatalogSearchBar {

    height:
      62px !important;

    padding:
      7px 14px !important;

    gap:
      9px !important;

  }


  #cleanCatalogSearchForm {

    height:
      48px !important;

    min-height:
      48px !important;

    padding:
      0 13px !important;

    border-radius:
      13px !important;

  }


  .clean-catalog-search-icon {

    flex-basis:
      24px !important;

    width:
      24px !important;

    margin-right:
      8px !important;

    font-size:
      20px !important;

  }


  #cleanCatalogSearchInput {

    height:
      46px !important;

    font-size:
      15px !important;

    font-weight:
      500 !important;

  }


  #cleanCatalogCloseButton {

    flex-basis:
      48px !important;

    width:
      48px !important;

    min-width:
      48px !important;

    height:
      48px !important;

    min-height:
      48px !important;

    border-radius:
      13px !important;

    font-size:
      30px !important;

    padding-bottom:
      3px !important;

  }


  #listPanel .catalog-quick-filters {

    margin-top:
      1px !important;

  }

}

/* === COMPACT CATALOG SEARCH END === */


/* === MOBILE SHEET EXACT GESTURE FIX START === */

@media (max-width: 899px) {

  #listPanel {
    overscroll-behavior:
      contain !important;
  }


  #mobileSheetHandle {
    touch-action:
      none !important;
  }


  #cleanCatalogSearchBar {
    touch-action:
      pan-x !important;
  }


  #catalogQuickFilters {
    touch-action:
      pan-x !important;

    overscroll-behavior:
      contain !important;
  }


  #listPanel #objectList {
    overscroll-behavior:
      contain !important;

    -webkit-overflow-scrolling:
      touch !important;
  }


  #listPanel.is-dragging {
    transition:
      none !important;

    will-change:
      transform !important;
  }

}

/* === MOBILE SHEET EXACT GESTURE FIX END === */





/* === MOBILE BOTTOM SHEET UX V6 START === */

@media (max-width: 899px) {

  #listPanel {

    position:
      fixed !important;

    inset:
      auto 0 0 0 !important;

    width:
      100% !important;

    overflow:
      hidden !important;

    display:
      flex;

    flex-direction:
      column;

    transform:
      none !important;

    border-radius:
      22px 22px 0 0 !important;

    box-shadow:
      0 -10px 32px
      rgba(0,0,0,.30);

  }


  #listPanel.mobile-sheet-medium:not(.hidden) {

    height:
      clamp(
        330px,
        56dvh,
        570px
      ) !important;

  }


  #listPanel.mobile-sheet-expanded:not(.hidden) {

    height:
      calc(
        100dvh - 6px
      ) !important;

    border-radius:
      18px 18px 0 0 !important;

  }


  #listPanel.mobile-sheet-collapsed {

    display:
      none !important;

  }


  /*
    ========================================================
    MEDIUM

    Вся шторка — одна drag-zone.
    Список организаций НЕ скроллится.
    ========================================================
  */

  #listPanel.mobile-sheet-medium {

    touch-action:
      none !important;

  }


  #listPanel.mobile-sheet-medium
  #objectList {

    overflow-y:
      hidden !important;

    touch-action:
      none !important;

  }


  /*
    Поиск и кнопки можно нажимать,
    но вертикальный свайп всё равно
    управляет шторкой.
  */

  #listPanel.mobile-sheet-medium
  input,

  #listPanel.mobile-sheet-medium
  button,

  #listPanel.mobile-sheet-medium
  a {

    touch-action:
      manipulation;

  }


  /*
    ========================================================
    EXPANDED

    Теперь список организаций работает
    как обычный вертикальный scroll.
    ========================================================
  */

  #listPanel.mobile-sheet-expanded {

    touch-action:
      pan-y !important;

  }


  #listPanel.mobile-sheet-expanded
  #objectList {

    flex:
      1 1 auto !important;

    min-height:
      0 !important;

    overflow-y:
      auto !important;

    overflow-x:
      hidden !important;

    touch-action:
      pan-y !important;

    overscroll-behavior-y:
      contain !important;

    -webkit-overflow-scrolling:
      touch !important;

  }


  /*
    Верхние элементы шторки
    не сжимаются.
  */

  #mobileSheetHandle,
  #cleanCatalogSearchBar,
  #catalogQuickFilters {

    flex-shrink:
      0 !important;

  }


  /*
    Ручка остаётся визуальным
    индикатором, но в MEDIUM
    ловить её уже не требуется.
  */

  #mobileSheetHandle {

    touch-action:
      none !important;

  }


  /*
    Во время движения меняем
    только высоту.
  */

  #listPanel.is-dragging {

    transition:
      none !important;

    transform:
      none !important;

    will-change:
      height !important;

  }


  #listPanel:not(.is-dragging) {

    transition:
      height .23s
      cubic-bezier(.22,.8,.32,1)
      !important;

    transform:
      none !important;

  }


  #mobileShowListButton {

    display:
      none !important;

  }


  /*
    Закрытое состояние:
    dock и Поиск по карте остаются.
  */

  body.catalog-sheet-hidden
  .mobile-map-dock,

  body.catalog-sheet-hidden
  #mobileMapDock {

    opacity:
      1 !important;

    visibility:
      visible !important;

    pointer-events:
      auto !important;

    transform:
      none !important;

  }


  body.catalog-sheet-hidden
  #mobileMapSearchForm {

    display:
      block !important;

    opacity:
      1 !important;

    visibility:
      visible !important;

    pointer-events:
      auto !important;

  }

}

/* === MOBILE BOTTOM SHEET UX V6 END === */


/* === MOBILE HIDDEN DOCK SEARCH FIX START === */

@media (max-width: 899px) {

  /*
    Когда каталог закрыт,
    нижний dock всегда состоит
    из двух уровней:

    1. категории
    2. поиск
  */

  body.catalog-sheet-hidden
  #mobileMapDock,

  body.catalog-sheet-hidden
  .mobile-map-dock {

    display:
      flex !important;

    flex-direction:
      column !important;

    align-items:
      stretch !important;

    justify-content:
      flex-end !important;

    gap:
      8px !important;

    width:
      100% !important;

    height:
      auto !important;

    max-height:
      none !important;

    overflow:
      visible !important;

    opacity:
      1 !important;

    visibility:
      visible !important;

    pointer-events:
      auto !important;

    transform:
      none !important;

  }


  /*
    Старая строка поиска
    на карте всегда отдельной строкой.
  */

  body.catalog-sheet-hidden
  #mobileMapSearchForm {

    display:
      block !important;

    position:
      relative !important;

    flex:
      0 0 auto !important;

    order:
      20 !important;

    width:
      calc(100% - 28px) !important;

    max-width:
      none !important;

    min-width:
      0 !important;

    height:
      auto !important;

    margin:
      0 14px 10px !important;

    padding:
      0 !important;

    opacity:
      1 !important;

    visibility:
      visible !important;

    pointer-events:
      auto !important;

    transform:
      none !important;

  }


  /*
    Поле поиска растягиваем
    на всю доступную ширину.
  */

  body.catalog-sheet-hidden
  #mobileMapSearchForm
  .mobile-map-search-field {

    width:
      100% !important;

    max-width:
      none !important;

    min-width:
      0 !important;

  }


  body.catalog-sheet-hidden
  #mobileMapSearchInput {

    width:
      100% !important;

    min-width:
      0 !important;

  }


  /*
    Категории остаются отдельным
    горизонтальным рядом сверху.
  */

  body.catalog-sheet-hidden
  #mobileMapDock
  > :not(#mobileMapSearchForm) {

    flex:
      0 0 auto;

  }


  /*
    Clean-поиск относится только
    к открытой шторке.
  */

  body.catalog-sheet-hidden
  #cleanCatalogSearchBar {

    display:
      none !important;

  }

}

/* === MOBILE HIDDEN DOCK SEARCH FIX END === */


/* === MOBILE SHEET LARGE HANDLE START === */

@media (max-width: 899px) {

  /*
    Визуально ручка остаётся маленькой,
    но зона захвата становится гораздо выше.
  */

  #mobileSheetHandle {

    flex:
      0 0 54px !important;

    height:
      54px !important;

    min-height:
      54px !important;

    position:
      relative !important;

    display:
      flex !important;

    align-items:
      flex-start !important;

    justify-content:
      center !important;

    padding-top:
      12px !important;

    box-sizing:
      border-box !important;

    touch-action:
      none !important;

  }


  /*
    Сам серый индикатор остаётся компактным.
  */

  #mobileSheetHandle span {

    width:
      44px !important;

    height:
      5px !important;

    min-height:
      5px !important;

    border-radius:
      999px !important;

    pointer-events:
      none !important;

  }


  /*
    Убираем старую псевдо-зону,
    чтобы она не конфликтовала.
  */

  #mobileSheetHandle::before {

    content:
      none !important;

    display:
      none !important;

  }


  /*
    Когда шторка закрыта,
    поиск гарантированно идёт
    отдельной строкой под категориями.
  */

  body.catalog-sheet-hidden
  #mobileMapSearchForm {

    display:
      block !important;

    flex:
      0 0 auto !important;

    width:
      calc(100% - 28px) !important;

    margin:
      0 14px 10px !important;

    opacity:
      1 !important;

    visibility:
      visible !important;

    pointer-events:
      auto !important;

  }

}

/* === MOBILE SHEET LARGE HANDLE END === */


/* === MOBILE VISUAL TUNING V2 START === */

@media (max-width: 899px) {

  /* Среднее положение */
  #listPanel.mobile-sheet-medium:not(.hidden) {
    height: clamp(330px, 54dvh, 545px) !important;
  }

  /* Ручка */
  #mobileSheetHandle {
    flex: 0 0 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding-top: 10px !important;
    align-items: flex-start !important;
    box-sizing: border-box !important;
  }

  #mobileSheetHandle span {
    width: 42px !important;
    height: 4px !important;
    min-height: 4px !important;
  }

  /* Поиск */
  #cleanCatalogSearchBar {
    height: 58px !important;
    min-height: 58px !important;
    padding: 5px 12px !important;
    gap: 8px !important;
  }

  #cleanCatalogSearchForm {
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 12px !important;
  }

  #cleanCatalogSearchInput {
    height: 44px !important;
  }

  #cleanCatalogCloseButton {
    flex: 0 0 46px !important;
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    font-size: 28px !important;
  }

  /* Быстрые фильтры */
  #catalogQuickFilters,
  #listPanel .catalog-quick-filters {
    margin-top: 0 !important;
    margin-bottom: 1px !important;
    padding-top: 1px !important;
    padding-bottom: 4px !important;
  }

  #catalogQuickFilters button,
  #listPanel .catalog-quick-filters button {
    min-height: 34px !important;
    height: 34px !important;
    padding: 6px 11px !important;
    font-size: 13px !important;
  }

  /* Список */
  #listPanel #objectList {
    padding-top: 5px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    gap: 8px !important;
  }

}

/* === MOBILE VISUAL TUNING V2 END === */


/* === MOBILE VISUAL TUNING V3 START === */

@media (max-width: 899px) {

  /*
    MEDIUM оставляем 54%.
  */
  #listPanel.mobile-sheet-medium:not(.hidden) {
    height: clamp(330px, 54dvh, 545px) !important;
  }


  /*
    Ручка компактнее.
    В medium всё равно работает свайп
    по всей поверхности шторки.
  */
  #mobileSheetHandle {
    flex: 0 0 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    padding-top: 9px !important;
    box-sizing: border-box !important;
  }

  #mobileSheetHandle span {
    width: 40px !important;
    height: 4px !important;
    min-height: 4px !important;
  }


  /*
    Поиск немного поднимаем
    и уменьшаем вертикальную высоту.
  */
  #cleanCatalogSearchBar {
    height: 54px !important;
    min-height: 54px !important;
    padding: 3px 12px 5px !important;
    gap: 8px !important;
  }

  #cleanCatalogSearchForm {
    height: 46px !important;
    min-height: 46px !important;
  }

  #cleanCatalogCloseButton {
    flex-basis: 46px !important;
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
  }


  /*
    Быстрые фильтры немного ближе
    к поиску и к карточке.
  */
  #catalogQuickFilters,
  #listPanel .catalog-quick-filters {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 1px !important;
    padding-bottom: 3px !important;
  }

  #catalogQuickFilters button,
  #listPanel .catalog-quick-filters button {
    height: 33px !important;
    min-height: 33px !important;
    padding: 5px 10px !important;
    font-size: 13px !important;
  }


  /*
    Первая карточка ещё немного выше.
  */
  #listPanel #objectList {
    padding-top: 4px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    gap: 8px !important;
  }

}

/* === MOBILE VISUAL TUNING V3 END === */


/* === MOBILE SHEET SMOOTH RADIUS START === */

@media (max-width: 899px) {

  #listPanel {
    border-radius:
      28px 28px 0 0 !important;
  }

  #listPanel.mobile-sheet-expanded:not(.hidden) {
    border-radius:
      24px 24px 0 0 !important;
  }

}

/* === MOBILE SHEET SMOOTH RADIUS END === */


/* === MOBILE SHEET SMOOTH RADIUS V2 START === */

@media (max-width: 899px) {

  #listPanel {
    border-radius:
      32px 32px 0 0 !important;
  }

  #listPanel.mobile-sheet-expanded:not(.hidden) {
    border-radius:
      28px 28px 0 0 !important;
  }

}

/* === MOBILE SHEET SMOOTH RADIUS V2 END === */


/* === CATALOG CARD POLISH V2 START === */

@media (max-width: 899px) {

  /*
    Общая карточка
  */
  .catalog-rich-card {
    border-radius: 17px !important;
    overflow: hidden !important;
  }


  /*
    Верх: фото + информация
  */
  .catalog-rich-card-main {
    grid-template-columns:
      104px minmax(0,1fr)
      !important;

    column-gap:
      8px !important;

    padding:
      9px 10px 7px
      !important;
  }


  /*
    Фото
  */
  .catalog-rich-card-photo {
    width: 104px !important;
    min-width: 104px !important;
    max-width: 104px !important;

    height: 104px !important;
    min-height: 104px !important;
    max-height: 104px !important;

    border-radius: 13px !important;
    overflow: hidden !important;
  }

  .catalog-card-gallery,
  .catalog-card-gallery-track,
  .catalog-card-gallery-slide {
    width: 100% !important;
    height: 100% !important;
  }

  .catalog-card-gallery-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }


  /*
    Название
  */
  .catalog-rich-card-title {
    margin: 0 !important;

    font-size:
      16.5px !important;

    line-height:
      1.13 !important;

    font-weight:
      760 !important;
  }


  /*
    Район + расстояние
  */
  .catalog-rich-card-area {
    min-height:
      19px !important;

    margin-top:
      4px !important;

    font-size:
      12.5px !important;

    line-height:
      19px !important;
  }

  .catalog-object-distance {
    height:
      19px !important;

    line-height:
      19px !important;
  }

  .catalog-object-distance::before {
    width:
      4px !important;

    height:
      4px !important;

    flex-basis:
      4px !important;

    margin:
      0 6px !important;
  }


  /*
    Открыто / закрыто
  */
  .catalog-open-status {
    min-height:
      19px !important;

    margin-top:
      1px !important;

    font-size:
      11.5px !important;

    line-height:
      19px !important;
  }

  .catalog-open-status::before {
    width:
      6px !important;

    height:
      6px !important;

    min-width:
      6px !important;

    margin-right:
      6px !important;
  }


  /*
    Преимущества
  */
  .catalog-rich-card-features-row {
    gap:
      5px !important;

    margin-top:
      0 !important;

    padding:
      0 10px 7px
      !important;
  }

  .catalog-rich-card-features-row
  .compact-features,

  .catalog-rich-card-features-row
  .compact-feature-list {
    gap:
      5px !important;
  }

  .catalog-rich-card-features-row
  .compact-feature,

  .catalog-rich-card-features-row
  .compact-feature-chip {
    min-height:
      25px !important;

    padding:
      4px 7px !important;

    border-radius:
      8px !important;

    font-size:
      10.5px !important;

    line-height:
      1 !important;
  }


  /*
    Кнопки
  */
  .catalog-card-actions {
    gap:
      7px !important;

    padding:
      7px 10px 9px
      !important;
  }

  .catalog-card-action {
    height:
      38px !important;

    min-height:
      38px !important;

    padding:
      0 10px !important;

    border-radius:
      11px !important;

    font-size:
      13px !important;
  }


  /*
    Очень узкие телефоны
  */
  @media (max-width: 390px) {

    .catalog-rich-card-main {
      grid-template-columns:
        96px minmax(0,1fr)
        !important;

      column-gap:
        7px !important;
    }

    .catalog-rich-card-photo {
      width: 96px !important;
      min-width: 96px !important;
      max-width: 96px !important;

      height: 96px !important;
      min-height: 96px !important;
      max-height: 96px !important;
    }

    .catalog-rich-card-title {
      font-size:
        16px !important;
    }

  }

}

/* === CATALOG CARD POLISH V2 END === */


/* === CATALOG CARD FINAL TUNE START === */

@media (max-width: 899px) {

  /* Чуть ближе преимущества к статусу */
  .catalog-rich-card-features-row {
    margin-top: -2px !important;
    padding-top: 0 !important;
  }

  /* Цены чуть уже, Записаться чуть шире */
  .catalog-card-actions {
    display: grid !important;
    grid-template-columns:
      0.86fr 1.14fr !important;
  }

  .catalog-card-action {
    width: 100% !important;
  }

}

/* === CATALOG CARD FINAL TUNE END === */


/* === CATALOG ACTION COLORS V1 START === */

@media (max-width: 899px) {

  /*
    Базовый цвет вторичных действий:
    Маршрут, Видео, Меню, Магазины, Цены и т.п.
  */
  .catalog-card-action {
    background: #B8E6C1 !important;
    color: #16351F !important;
    border: 1px solid rgba(22,53,31,.08) !important;
    box-shadow: none !important;
  }

  .catalog-card-action:active {
    background: #A8D8B2 !important;
  }


  /*
    Основные действия оставляем синими.
  */
  .catalog-card-action[data-catalog-action="medical-book"],
  .catalog-card-action[data-catalog-action="apartment-book"],
  .catalog-card-action[data-catalog-action="book"],
  .catalog-card-action[data-catalog-action="booking"],
  .catalog-card-action[data-catalog-action="reserve"],
  .catalog-card-action[data-catalog-action="request"] {
    background: #367FF0 !important;
    color: #FFFFFF !important;
    border: 0 !important;
  }

  .catalog-card-action[data-catalog-action="medical-book"]:active,
  .catalog-card-action[data-catalog-action="apartment-book"]:active,
  .catalog-card-action[data-catalog-action="book"]:active,
  .catalog-card-action[data-catalog-action="booking"]:active,
  .catalog-card-action[data-catalog-action="reserve"]:active,
  .catalog-card-action[data-catalog-action="request"]:active {
    background: #2F70D8 !important;
  }

}

/* === CATALOG ACTION COLORS V1 END === */


/* === CATALOG ACTION COLORS V2 START === */

@media (max-width: 899px) {

  /*
    Все действия внутри карточек:
    Маршрут, Видео, Меню, Магазины,
    Цены и другие вторичные кнопки.
  */
  #listPanel
  .catalog-rich-card
  .catalog-card-actions
  .catalog-card-action[data-catalog-action] {
    background: #B8E6C1 !important;
    color: #16351F !important;
    border: 1px solid rgba(22,53,31,.10) !important;
    box-shadow: none !important;
  }

  #listPanel
  .catalog-rich-card
  .catalog-card-actions
  .catalog-card-action[data-catalog-action]:active {
    background: #A8D8B2 !important;
    color: #16351F !important;
  }


  /*
    Главные действия оставляем синими.
  */
  #listPanel
  .catalog-rich-card
  .catalog-card-action[data-catalog-action="medical-book"],

  #listPanel
  .catalog-rich-card
  .catalog-card-action[data-catalog-action="apartment-book"],

  #listPanel
  .catalog-rich-card
  .catalog-card-action[data-catalog-action="book"],

  #listPanel
  .catalog-rich-card
  .catalog-card-action[data-catalog-action="booking"],

  #listPanel
  .catalog-rich-card
  .catalog-card-action[data-catalog-action="reserve"],

  #listPanel
  .catalog-rich-card
  .catalog-card-action[data-catalog-action="request"] {
    background: #367FF0 !important;
    color: #FFFFFF !important;
    border: 0 !important;
  }

}

/* === CATALOG ACTION COLORS V2 END === */


/* === CATALOG ACTION COLORS V4 START === */

@media (max-width: 899px) {

  /* ЗЕЛЁНЫЕ ВТОРИЧНЫЕ ДЕЙСТВИЯ */

  #listPanel
  .catalog-rich-card
  .catalog-card-actions
  .catalog-card-action[data-catalog-action="medical-prices"],

  #listPanel
  .catalog-rich-card
  .catalog-card-actions
  .catalog-card-action[data-catalog-action="food-menu"],

  #listPanel
  .catalog-rich-card
  .catalog-card-actions
  .catalog-card-action[data-catalog-action="stores"],

  #listPanel
  .catalog-rich-card
  .catalog-card-actions
  .catalog-card-action[data-catalog-action="video"] {
    background: #6FCF97 !important;
    color: #102A1B !important;
    border: 1px solid rgba(16,42,27,.10) !important;
  }


  /* СИНИЕ ГЛАВНЫЕ ДЕЙСТВИЯ */

  #listPanel
  .catalog-rich-card
  .catalog-card-actions
  .catalog-card-action[data-catalog-action="medical-book"],

  #listPanel
  .catalog-rich-card
  .catalog-card-actions
  .catalog-card-action[data-catalog-action="route"] {
    background: #367FF0 !important;
    color: #FFFFFF !important;
    border: 0 !important;
  }


  /* НАЖАТИЕ */

  #listPanel
  .catalog-rich-card
  .catalog-card-actions
  .catalog-card-action[data-catalog-action="medical-prices"]:active,

  #listPanel
  .catalog-rich-card
  .catalog-card-actions
  .catalog-card-action[data-catalog-action="food-menu"]:active,

  #listPanel
  .catalog-rich-card
  .catalog-card-actions
  .catalog-card-action[data-catalog-action="stores"]:active,

  #listPanel
  .catalog-rich-card
  .catalog-card-actions
  .catalog-card-action[data-catalog-action="video"]:active {
    background: #5FBE87 !important;
  }


  #listPanel
  .catalog-rich-card
  .catalog-card-actions
  .catalog-card-action[data-catalog-action="medical-book"]:active,

  #listPanel
  .catalog-rich-card
  .catalog-card-actions
  .catalog-card-action[data-catalog-action="route"]:active {
    background: #2F70D8 !important;
  }

}

/* === CATALOG ACTION COLORS V4 END === */


/* === MOBILE DETAIL REDESIGN V1 START === */

@media (max-width: 899px) {

  /* --------------------------------------------------------
     Полная карточка
     -------------------------------------------------------- */

  #detailScreen {
    background: #111317 !important;
    color: #ffffff !important;
  }


  /* --------------------------------------------------------
     Верхняя панель
     -------------------------------------------------------- */

  #detailScreen .detail-header {
    min-height: 54px !important;

    padding:
      max(7px, env(safe-area-inset-top))
      10px
      7px
      !important;

    background:
      rgba(17,19,23,.96)
      !important;

    border-bottom:
      1px solid rgba(255,255,255,.08)
      !important;

    backdrop-filter:
      blur(16px);

    -webkit-backdrop-filter:
      blur(16px);
  }

  #detailScreen .detail-back {
    min-height: 40px !important;

    padding:
      7px 11px
      !important;

    border-radius:
      12px
      !important;

    background:
      rgba(255,255,255,.08)
      !important;

    color:
      #ffffff
      !important;

    font-size:
      14px
      !important;

    font-weight:
      650
      !important;
  }

  #detailScreen .detail-close {
    width: 40px !important;
    height: 40px !important;

    border-radius:
      50%
      !important;

    background:
      rgba(255,255,255,.08)
      !important;

    color:
      #ffffff
      !important;

    font-size:
      24px
      !important;
  }

  #detailScreen .detail-header-title {
    padding:
      0 4px
      !important;

    font-size:
      14px
      !important;

    font-weight:
      650
      !important;

    color:
      rgba(255,255,255,.88)
      !important;
  }


  /* --------------------------------------------------------
     Галерея
     -------------------------------------------------------- */

  #detailScreen .gallery-block {
    background:
      #0b0d10
      !important;

    border-bottom:
      1px solid rgba(255,255,255,.06)
      !important;
  }

  #detailScreen .main-photo-wrap {
    background:
      #0b0d10
      !important;
  }

  #detailScreen #detailGalleryViewport {
    background:
      #0b0d10
      !important;
  }

  #detailScreen .photo-arrow {
    width:
      36px
      !important;

    height:
      44px
      !important;

    border-radius:
      12px
      !important;

    background:
      rgba(10,12,15,.66)
      !important;

    backdrop-filter:
      blur(6px);

    -webkit-backdrop-filter:
      blur(6px);

    font-size:
      28px
      !important;
  }

  #detailScreen .photo-counter {
    right:
      10px
      !important;

    bottom:
      10px
      !important;

    padding:
      5px 9px
      !important;

    border:
      1px solid rgba(255,255,255,.10)
      !important;

    border-radius:
      999px
      !important;

    background:
      rgba(10,12,15,.72)
      !important;

    backdrop-filter:
      blur(8px);

    -webkit-backdrop-filter:
      blur(8px);

    font-size:
      11px
      !important;
  }


  /* --------------------------------------------------------
     Миниатюры фотографий
     -------------------------------------------------------- */

  #detailScreen .thumbnail-strip {
    gap:
      7px
      !important;

    padding:
      8px 10px 9px
      !important;

    background:
      #111317
      !important;
  }

  #detailScreen .thumbnail {
    width:
      70px
      !important;

    height:
      52px
      !important;

    border-radius:
      9px
      !important;

    opacity:
      .58
      !important;
  }

  #detailScreen .thumbnail.active {
    opacity:
      1
      !important;

    border-color:
      #367FF0
      !important;

    transform:
      scale(1.03)
      !important;
  }


  /* --------------------------------------------------------
     Верх информационного блока
     -------------------------------------------------------- */

  #detailScreen .detail-content {
    padding:
      16px 14px
      calc(42px + env(safe-area-inset-bottom))
      !important;

    background:
      #111317
      !important;

    font-size:
      15px
      !important;

    line-height:
      1.5
      !important;
  }

  #detailScreen .detail-type {
    margin-bottom:
      4px
      !important;

    color:
      rgba(255,255,255,.48)
      !important;

    font-size:
      12px
      !important;

    font-weight:
      600
      !important;
  }

  #detailScreen #detailTitle {
    margin:
      2px 0 6px
      !important;

    font-size:
      23px
      !important;

    line-height:
      1.16
      !important;

    font-weight:
      780
      !important;

    color:
      #ffffff
      !important;
  }

  #detailScreen .detail-area {
    margin-top:
      2px
      !important;

    color:
      rgba(255,255,255,.60)
      !important;

    font-size:
      13px
      !important;

    line-height:
      1.4
      !important;
  }

  #detailScreen .detail-actions {
    gap:
      8px
      !important;

    margin:
      14px 0 16px
      !important;
  }


  /* --------------------------------------------------------
     Мини-карту в мобильной карточке больше не используем
     -------------------------------------------------------- */

  #detailScreen .generic-detail-map-block,
  #detailScreen #genericDetailMapBlock {
    display:
      none
      !important;
  }

}

/* === MOBILE DETAIL REDESIGN V1 END === */


/* === MOBILE DETAIL ACTIONS V1 START === */

@media (max-width: 899px) {

  #detailScreen .detail-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin: 14px 0 16px !important;
  }

  #detailScreen .detail-actions button {
    width: 100% !important;
    min-height: 42px !important;

    border-radius: 11px !important;

    font-size: 13px !important;
    font-weight: 700 !important;

    box-shadow: none !important;
  }


  /* Синие главные действия */

  #detailScreen #detailRouteButton,
  #detailScreen #detailMedicalBookButton {
    background: #367FF0 !important;
    color: #FFFFFF !important;
    border: 0 !important;
  }

  #detailScreen #detailRouteButton:active,
  #detailScreen #detailMedicalBookButton:active {
    background: #2F70D8 !important;
  }


  /* Зелёное вторичное действие */

  #detailScreen #detailMedicalProceduresButton {
    background: #6FCF97 !important;
    color: #102A1B !important;

    border:
      1px solid rgba(16,42,27,.10)
      !important;
  }

  #detailScreen #detailMedicalProceduresButton:active {
    background: #5FBE87 !important;
  }


  /* Нейтральное действие */

  #detailScreen #detailTaxiButton {
    background: rgba(255,255,255,.08) !important;
    color: rgba(255,255,255,.92) !important;

    border:
      1px solid rgba(255,255,255,.08)
      !important;
  }

  #detailScreen #detailTaxiButton:active {
    background: rgba(255,255,255,.13) !important;
  }


  /* Иконка маршрута */

  #detailScreen #detailRouteButton .route-icon {
    color: #FFFFFF !important;
  }

}

/* === MOBILE DETAIL ACTIONS V1 END === */


/* === MEDICAL DETAIL META V2 START === */

@media (max-width: 899px) {

  #detailScreen #detailArea {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;

    gap: 5px !important;

    margin-top: 4px !important;

    font-size: 13px !important;
    line-height: 1.4 !important;
  }

  #detailScreen .medical-detail-area-name,
  #detailScreen .medical-detail-distance {
    color: rgba(255,255,255,.60) !important;
  }

  #detailScreen .medical-detail-meta-separator {
    color: rgba(255,255,255,.28) !important;
  }

  #detailScreen .medical-detail-status {
    display: inline-flex !important;
    align-items: center !important;

    font-weight: 650 !important;
  }

  #detailScreen .medical-detail-status::before {
    content: '';

    width: 7px;
    height: 7px;

    margin-right: 5px;

    border-radius: 50%;

    background: #6FCF97;
  }

  #detailScreen .medical-detail-status-open {
    color: #79D99F !important;
  }

  #detailScreen .medical-detail-status-open::before {
    background: #6FCF97;
  }

  #detailScreen .medical-detail-status-closed {
    color: #EB6B6B !important;
  }

  #detailScreen .medical-detail-status-closed::before {
    background: #EB6B6B;
  }

  #detailScreen .medical-detail-status-soon,
  #detailScreen .medical-detail-status-closing {
    color: #F2C94C !important;
  }

  #detailScreen .medical-detail-status-soon::before,
  #detailScreen .medical-detail-status-closing::before {
    background: #F2C94C;
  }

}

/* === MEDICAL DETAIL META V2 END === */


/* === COMPACT CARD MOBILE DOCK V1 START === */

@media (max-width: 899px) {

  /*
    Когда пользователь уже выбрал объект,
    категории и поиск ему временно не нужны.
  */

  body.compact-card-open
  #mobileMapDock,

  body.compact-card-open
  .mobile-map-dock {

    display:
      none !important;

    opacity:
      0 !important;

    visibility:
      hidden !important;

    pointer-events:
      none !important;

  }


  /*
    На всякий случай отдельно прячем
    поисковую форму, если старый код
    когда-нибудь вынесет её из dock.
  */

  body.compact-card-open
  #mobileMapSearchForm {

    display:
      none !important;

  }

}

/* === COMPACT CARD MOBILE DOCK V1 END === */
