/* === Карточка фиксированной высоты (листинг) === */
.card.h-100 {
  height: 420px;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card.h-100:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0,0,0,.12);
}

/* Тело карточки — ниже подтягиваем */
.card.h-100 .card-body {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  flex: 1 1 auto;
}

/* Шапка с картинкой фиксированной высоты */
.card .card-img-top {
  height: 280px;
  position: relative;
  overflow: hidden;
  display: block;
  background-color: transparent;
  border-radius: 0 !important;
}
.card .card-img-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Ссылка внутри текста карточки уверенно кликается поверх */
.properties .card .card-body {
  position: relative;
  z-index: 2;
  padding-top: 0 !important;
}

/* Плотнее текст под фото */
.properties .card .card-img-top {
  margin-bottom: 4px;
}
.properties .card .card-body .card-text.mb-1 {
  margin-bottom: .25rem !important;
}

/* ==== Мини-галерея внутри карточек списка ==== */
.properties .card .card-img-top { overflow: hidden; }

.properties .card .card-gallery {
  width: 100%;
  height: 280px;
  border-radius: 0;
  display: block;
}
.properties .card .card-gallery .swiper-wrapper,
.properties .card .card-gallery .swiper-slide { height: 100%; }
.properties .card .card-gallery .swiper-slide {
  display: flex;
  align-items: stretch;
  background-color: transparent;
}
.properties .card .card-gallery-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block; border-radius: 0;
  background-color: transparent;
}
.properties .card .card-gallery .swiper-pagination { bottom: 6px !important; }
.properties .card .card-gallery .swiper-pagination-bullet {
  width: 8px; height: 8px; opacity: .6;
}
.properties .card .card-gallery .swiper-pagination-bullet-active { opacity: 1; }

/* ====== Единый «бокс» для галереи на детальной ====== */
#listing-detail-hero-1 .gallery-frame {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  background: #fff;
  padding: 12px 12px 14px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
}

.gallery-frame--fullvw {
  width: 100%;
  max-width: min(700px, calc(70% - 48px));
  margin-left: auto;
  margin-right: auto;
  border-radius: 0;
}

@media (min-width: 992px) {
  .gallery-frame--fullvw {
    max-width: 1280px;
    border-radius: 12px;
  }

  #listing-detail-hero-1 .gallery-frame.gallery-frame--fullvw {
    width: clamp(720px, 75vw, 1280px);
  }
}

@media (max-width: 991.98px) {
  .gallery-frame--fullvw {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
  }
}


/* Протягиваем высоту внутрь Swiper */
#listing-detail-hero-1 .swiper-container,
#listing-detail-hero-1 .swiper,
#listing-detail-hero-1 .swiper-wrapper,
#listing-detail-hero-1 .swiper-slide { height: 100%; }

/* Большое фото */
#listing-detail-hero-1 .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

#listing-detail-hero-1 .swiper-slide .lightbox-link {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

#listing-detail-hero-1 .listing-hero-img {
  width: 100%; height: 100%;
  object-fit: contain; object-position: center;
   display: block; border-radius: 0;
  background-color: transparent;
}

/* Кнопки/точки большого слайдера */
#listing-detail-hero-1 .swiper-button-prev,
#listing-detail-hero-1 .swiper-button-next {
  width: 44px; height: 44px; border-radius: 999px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
}
#listing-detail-hero-1 .swiper-button-prev:after,
#listing-detail-hero-1 .swiper-button-next:after { font-size: 18px; color: #1A202C; }
#listing-detail-hero-1 .swiper-pagination { bottom: 10px !important; }
#listing-detail-hero-1 .swiper-pagination-bullet { width: 10px; height: 10px; opacity: .5; }
#listing-detail-hero-1 .swiper-pagination-bullet-active { opacity: 1; }

/* ====== Лента миниатюр (внизу) ====== */
#listing-detail-hero-1 .thumbs-wrap {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 6px 0;
  box-sizing: border-box;
}
#listing-detail-hero-1 .thumbs-swiper {
  width: 100%;
  max-width: 1100px;
  height: 120px;
  margin: 0 auto;
  overflow: hidden;
}
#listing-detail-hero-1 .thumbs-swiper .swiper-slide {
  width: 140px;
  height: 100%;
  margin: 0 6px;
  opacity: .7;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border-radius: 8px;
}
#listing-detail-hero-1 .listing-thumb-img {
  width: 100%; height: 100%;
  display: block;
  object-fit: contain; object-position: center;
  border-radius: 8px;
  background-color: transparent;
}
#listing-detail-hero-1 .thumbs-swiper .swiper-slide-thumb-active {
  opacity: 1;
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* ====== PhotoSwipe иконки: fallback, если skin-изображения недоступны ====== */
.pswp__button { background: none !important; }
.pswp__button--close::before {
  content: "✕"; font-size: 22px; line-height: 1; color: #fff;
}
.pswp__button--zoom::before  { content: "⤢"; font-size: 18px; color: #fff; }
.pswp__button--arrow--left::before,
.pswp__button--arrow--right::before {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 26px; color: #fff;
}

.pswp__counter { color: #fff; font-weight: 600; }

/* Адаптивные правки */
@media (max-width: 992px) {
  .gallery-frame--fullvw { margin-left: 0; margin-right: 0; width: 100%; }
  #listing-detail-hero-1 .gallery-frame { max-width: 860px; padding: 10px 10px 12px; }
  #listing-detail-hero-1 .hero-area {
    height: 560px;
    max-height: none;
  }
  #listing-detail-hero-1 .thumbs-swiper { height: 104px; }
  #listing-detail-hero-1 .thumbs-swiper .swiper-slide { width: 124px; }
}

@media (max-width: 768px) {
  .card .card-img-top,
  .properties .card .card-gallery { height: 300px; }
  #listing-detail-hero-1 .gallery-frame { max-width: 680px; padding: 8px 8px 10px; }
  #listing-detail-hero-1 .hero-area { height: 440px; }
  #listing-detail-hero-1 .thumbs-swiper { height: 90px; }
  #listing-detail-hero-1 .thumbs-swiper .swiper-slide { width: 108px; margin: 0 4px; }
}

@media (max-width: 576px) {
  .card .card-img-top,
  .properties .card .card-gallery { height: 320px; }
  #listing-detail-hero-1 .gallery-frame { max-width: 94vw; padding: 10px; border-radius: 10px; }
  #listing-detail-hero-1 .hero-area { height: 72vw; }
  #listing-detail-hero-1 .listing-hero-img { border-radius: 8px; }
  #listing-detail-hero-1 .thumbs-swiper { height: 80px; }
  #listing-detail-hero-1 .thumbs-swiper .swiper-slide { width: 96px; margin: 0 3px; }
}

@media (max-width: 380px) {
  #listing-detail-hero-1 .hero-area { height: 68vw; }
  #listing-detail-hero-1 .thumbs-swiper { height: 72px; }
  #listing-detail-hero-1 .thumbs-swiper .swiper-slide { width: 86px; margin: 0 3px; }
}











/* ==============================
   Dark palette (global)
   ============================== */

:root {
    --bg-page: #050608;
    --bg-elevated: #15141B;
    --bg-soft: #1F1E26;
    --accent: #ffffff;
    --accent-soft: #1d3f7a;
    --accent-glow: rgba(117, 181, 255, 0.45);
    --text-main: #F5F5F7;
    --text-muted: #9B9BA5;
    --border-subtle: #262632;
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-pill: 999px;
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.65);
}

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

/* Typography helpers */
.text-muted {
  color: var(--text-muted) !important;
}

a, .link, .nav-link {
  color: var(--text-main);
}

a:hover, a:focus, .nav-link:hover {
  color: var(--accent);
}

/* Cards / blocks */
.card,
.card.h-100,
.listing-card,
.properties .card {
  background: var(--bg-elevated) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-soft) !important;
  color: var(--text-main) !important;
}

.card .card-body,
.properties .card .card-body {
  color: var(--text-main) !important;
}

/* Listing detail gallery frame */
#listing-detail-hero-1 .gallery-frame {
  background: var(--bg-elevated) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-soft) !important;
}

/* Swiper buttons on dark bg */
#listing-detail-hero-1 .swiper-button-prev,
#listing-detail-hero-1 .swiper-button-next {
  background: var(--bg-soft) !important;
  border: 1px solid var(--border-subtle) !important;
  box-shadow: var(--shadow-soft) !important;
}

#listing-detail-hero-1 .swiper-button-prev:after,
#listing-detail-hero-1 .swiper-button-next:after {
  color: var(--text-main) !important;
}

/* Header (static) – keep consistent with dark theme */
.header .header-bg {
  backdrop-filter: blur(18px);
  background: rgba(8, 10, 16, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar,
.navbar-default {
  background: transparent !important;
}

/* Inputs (if present) */
input, select, textarea {
  background: var(--bg-soft) !important;
  color: var(--text-main) !important;
  border-color: var(--border-subtle) !important;
}

input::placeholder, textarea::placeholder {
  color: var(--text-muted) !important;
}


/* Static header container */
.header {
  position: sticky;
  top: 0;
  z-index: 20;

  /* важно: прозрачность + blur */
  backdrop-filter: blur(18px);

  /* базовый градиент как раньше */
  background: rgba(8, 10, 16, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Световое пятно слева сверху */
/* .header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  background:
    radial-gradient(
      circle at 14% 18%,
      rgba(28, 66, 132, 0.35),
      transparent 55%
    );
} */

/* Лёгкий общий “дымчатый” слой для премиум-ощущения */
.header::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  background: linear-gradient(
    180deg,
    rgba(5, 9, 20, 0.35) 0%,
    rgba(5, 6, 8, 0.15) 45%,
    transparent 100%
  );
}

/* Контент шапки выше подсветки */
.header > * {
  position: relative;
  z-index: 1;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}

.header__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

/* EPAS in circle */
.header__logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 38px;
  height: 38px;


  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;

}

/* DEVELOPMENT text */
.header__logo-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;



  color: #ffffff;
  font-weight: 700;
  font-size: 16px;

  text-transform: uppercase;
}

.header__nav {
  display: flex;
  gap: 20px;
  flex: 1;
  justify-content: center;
}

.header__link {
  position: relative;
  font-size: 17px;
  text-decoration: none;
  color: var(--text-muted);
  padding-bottom: 4px;
}

.header__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;

  width: 100%;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--accent);

  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
}

.header__link:hover::after {
  transform: scaleX(1);
}

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

.header__phone {
  font-size: 13px;
  color: var(--text-main);
  text-decoration: none;
  white-space: nowrap;
}

/* Scope button styles to header to avoid breaking Bootstrap elsewhere */
.header .btn.btn--ghost {
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent-glow);
  background: transparent;
  color: var(--accent);
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.header .btn.btn--ghost:hover {
  background: rgba(117, 181, 255, 0.08);
}

/* Responsive: hide nav on small screens (as in reference) */
@media (max-width: 900px) {
  .header__nav { display: none; }
  .header__inner { justify-content: space-between; }
}


.navbar,
.navbar-default {
  background: transparent !important;
}

.nav-link {
  color: var(--text-muted) !important;
}

.nav-link:hover {
  color: var(--text-main) !important;
}


/* ==============================
   Intro/Hero: disable photo, use gradient
   ============================== */

/* Главная интро и hero на listing */
#searchbox-hero-1,
#page-hero {
  position: relative;
  overflow: hidden;
}

/* Базовый слой */
#searchbox-hero-1 .hero__bg,
#page-hero .hero__bg {
  inset: 0;
  z-index: 0;
  background: linear-gradient(145deg, #04226d 0%, #050d1a 48%, #02060c 100%);
}

/* Слой “атмосферы” как в твоём коде */
#searchbox-hero-1 .hero__overlay,
#page-hero .hero__overlay {
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(
      180deg,
      rgba(5, 9, 20, 0.9) 0%,
      rgba(5, 8, 18, 0.95) 55%,
      rgba(3, 7, 14, 0.98) 100%
    ),
    radial-gradient(
      circle at 18% 16%,
      rgba(2, 30, 80, 0.32),
      transparent 48%
    );
}

/* Контент поверх градиента */
#searchbox-hero-1 > .container-xl,
#page-hero > .container-xl {
  position: relative;
  z-index: 1;
}


/* ==============================
   Footer — FORCE dark background
   ============================== */

/* Сам footer */
footer {
  background: #050608 !important;
  color: #ffffff !important;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* Всё внутри футера */
footer * {
  background: transparent !important;
  color: var(--text-muted);
}

/* Текст копирайта */
footer,
footer p,
footer small,
footer span {
  color: var(--text-muted) !important;
  font-size: 12px;
}

/* Ссылки в футере */
footer a {
  color: var(--text-main) !important;
  text-decoration: none;
}

footer a:hover {
  color: var(--accent) !important;
}

/* Убиваем классы темы */
footer.bg-light,
footer.bg-gray,
footer.bg-soft,
footer.bg-white {
  background: #050608 !important;
}

/* Иногда тема кладёт фон во вложенный .container */
footer .container,
footer .container-fluid {
  background: transparent !important;
}


/* ==============================
   Fonts (global)
   ============================== */

body {
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

h1, h2, h3, .display-1, .display-2, .display-3, .display-4,
.section__title, .hero__title {
  font-family: "DM Serif Display", "Times New Roman", serif !important;
  letter-spacing: 0.02em;
}






/* ==============================
   Fix: remove overlap between hero and next section
   ============================== */

/* 1) Даём интро нормальный "низ", чтобы следующий блок не заезжал */
#searchbox-hero-1 {
  padding-bottom: 56px;          /* можно 48–80, подгони по вкусу */
}

/* 2) Любые секции сразу после интро — без отрицательных отступов */
#searchbox-hero-1 + .section,
#searchbox-hero-1 + section,
#searchbox-hero-1 + div.section {
  margin-top: 0 !important;
  transform: none !important;
  position: relative !important;
  top: auto !important;
}

/* 3) Если карточки/контейнер имеют отрицательный margin-top — убиваем */
#searchbox-hero-1 + .section .container,
#searchbox-hero-1 + .section .container-xl,
#searchbox-hero-1 + section .container,
#searchbox-hero-1 + section .container-xl {
  margin-top: 0 !important;
}




/* ==============================
   Hero size tuning
   ============================== */

#searchbox-hero-1 {
  padding-top: 96px;    /* было визуально ~140–160 */
  padding-bottom: 64px; /* было слишком много */
  min-height: auto !important;
}

/* Если внутри есть section с padding */
#searchbox-hero-1 .section,
#searchbox-hero-1 .section-content {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Контент интро чуть компактнее */
#searchbox-hero-1 h1,
#searchbox-hero-1 .hero__title {
  margin-bottom: 12px;
}

#searchbox-hero-1 .hero__subtitle {
  margin-bottom: 20px;
}

#searchbox-hero-1[class*="vh"],
#searchbox-hero-1[class*="min-vh"] {
  min-height: auto !important;
  height: auto !important;
}



/* =========================================
   HERO ORB (Variant A) — premium, safe layout
   - не двигает текст
   - не перекрывает (mask + right shift)
   - адаптив + reduced-motion
   ========================================= */

#searchbox-hero-1 { position: relative; }

/* чтобы orb жил внутри интро и слои были предсказуемы */
#searchbox-hero-1 .hero-layout {
  position: relative;
  z-index: 2;
}

/* контент над orb */
#searchbox-hero-1 .hero-left {
  position: relative;
  z-index: 3;
}

/* orb: абсолютом справа, не участвует в потоке */
#searchbox-hero-1 .hero-orb-wrap {
  position: absolute;
  top: 52%;
  right: clamp(-140px, -9vw, -40px); /* уводим вправо, часть за экраном = не спорит с текстом */
  transform: translateY(-50%);
  width: clamp(220px, 28vw, 420px);
  height: clamp(220px, 28vw, 420px);
  z-index: 1;            /* ниже текста */
  pointer-events: none;  /* не мешает кликам по форме */
  opacity: 0.95;

  /* “растворяем” слева, чтобы не лез в текстовую зону */
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1), rgba(0,0,0,0));
  mask-image: linear-gradient(to left, rgba(0,0,0,1), rgba(0,0,0,0));
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

#searchbox-hero-1 .hero-orb {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transform-style: preserve-3d;
  animation: heroOrbSpin 14s linear infinite;
  will-change: transform;

  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.16), transparent 36%),
    radial-gradient(circle at 65% 70%, rgba(60,122,229,0.22), transparent 46%),
    radial-gradient(circle at 50% 50%, rgba(10,12,22,0.25), rgba(5,6,8,0.88) 70%);

  border: 1px solid rgba(117, 181, 255, 0.18);
  box-shadow: 0 30px 90px rgba(0,0,0,0.65);
  filter: saturate(1.05) contrast(1.02);
}

@keyframes heroOrbSpin {
  from { transform: rotateY(0deg) rotateX(10deg); }
  to   { transform: rotateY(360deg) rotateX(10deg); }
}

#searchbox-hero-1 .hero-orb::after {
  content: "";
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(117, 181, 255, 0.20), transparent 55%);
  filter: blur(12px);
  opacity: 0.9;
  pointer-events: none;
}

#searchbox-hero-1 .hero-orb__ring {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1px solid rgba(117, 181, 255, 0.22);
  box-shadow: 0 0 40px rgba(117, 181, 255, 0.10);
  transform-style: preserve-3d;
}

#searchbox-hero-1 .hero-orb__ring--a { transform: rotateY(20deg) rotateX(68deg) translateZ(14px); }
#searchbox-hero-1 .hero-orb__ring--b { transform: rotateY(70deg) rotateX(22deg) translateZ(10px); opacity: 0.85; }
#searchbox-hero-1 .hero-orb__ring--c { transform: rotateY(120deg) rotateX(40deg) translateZ(6px);  opacity: 0.7; }

/* адаптив: на узких экранах либо прячем, либо сильно уменьшаем */
@media (max-width: 900px) {
  #searchbox-hero-1 .hero-orb-wrap { display: none; }
}

/* уважение к reduced motion */
@media (prefers-reduced-motion: reduce) {
  #searchbox-hero-1 .hero-orb { animation: none; }
}

/* Hotfix: move orb right + force spin */
#searchbox-hero-1 .hero-orb-wrap {
  right: clamp(-220px, -12vw, -90px) !important;
}

#searchbox-hero-1 .hero-orb {
  animation: heroOrbSpin 14s linear infinite !important;
}

/* Ensure hero content (search, text) is always above the orb */
#searchbox-hero-1 .hero-left,
#searchbox-hero-1 .hero-left * {
  position: relative;
  z-index: 5;
}

/* Orb always behind hero content */
#searchbox-hero-1 .hero-orb-wrap {
  z-index: 1 !important;
}

#searchbox-hero-1Form,
#searchbox-hero-1Form * {
  position: relative;
  z-index: 10;
}

/* ==============================
   FIX: Searchbox layers + focus
   ============================== */

/* Важно: даём панели выезжать за hero */
#searchbox-hero-1 {
  overflow: visible !important;
  position: relative;
  z-index: 5;
}

/* Сам блок с поиском поднимаем выше backdrop */
#searchbox-hero-1 #searchbox-hero-1Searchbox {
  position: relative;
  z-index: 1055;      /* выше .form-options-backdrop (1050) */
  isolation: auto;    /* убираем изоляцию, чтобы z-index работал как ожидается */
}

/* Форма — ещё выше, чтобы не затемнялась */
#searchbox-hero-1 .searchbox-form {
  position: relative;
  z-index: 1056 !important;
  overflow: visible !important;
}

/* Выпадающая панель — выше всего */
#searchbox-hero-1 .searchbox-form .form-options {
  z-index: 1057 !important;
}



/* ==============================
   Property cards grid
   ============================== */

.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 🔥 фикс 3 */
  gap: 24px;
}
@media (max-width: 1100px) {
  .listing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .listing-grid {
    grid-template-columns: 1fr;
  }
}


/* ==============================
   Property card (premium)
   ============================== */

.property-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.property-card__media {
  position: relative;
  overflow: hidden;
}

.property-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.4s ease;
}

.property-card:hover .property-card__media img {
  transform: scale(1.06);
}

.property-card__badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 11px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-pill);
  background: rgba(5, 6, 8, 0.85);
  color: var(--accent);
  border: 1px solid var(--accent-glow);
}


/* ==============================
   Card body
   ============================== */

.property-card__body {
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.property-card__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.property-card__price {
  font-weight: 600;
  font-size: 18px;
  white-space: nowrap;
}

.property-card__tag {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  color: var(--accent);
  background: var(--accent-soft);
  white-space: nowrap;
}

.property-card__address {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.35;
}


/* ==============================
   Property meta (2×2 layout)
   ============================== */

.property-card__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  margin: 0;
}

/* заголовки */
.property-card__meta dt {
  font-size: 13px;
  color: var(--text-muted);
}

.property-card__meta dd {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-main);
}

/* верхний правый элемент (Цена/м²) */
.property-card__meta > div:nth-child(2) {
  text-align: right;
}

/* метро — снизу слева */


.property-card__meta--metro dd {
  display: flex;
  align-items: center;
  gap: 8px;
}

.property-card__meta--metro {
  align-items: right;
  text-align: right;
}


/* ==============================
   Metro dot
   ============================== */

.metro-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--metro, #9B9BA5);
  flex: 0 0 10px;
}


/* ==============================
   Card footer
   ============================== */

.property-card__footer {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}


/* ==============================
   Buttons
   ============================== */

.btn--secondary {
  background: linear-gradient(180deg, #141A2F 0%, #0E1324 100%);
  color: var(--text-main);
  border: 1px solid rgba(80,130,255,0.35);
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 22px rgba(0,0,0,0.45);
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}

/* HOVER */
.btn--secondary:hover {
  color: var(--text-main);
  background:
    radial-gradient(
      circle at top left,
      rgba(80,130,255,0.25),
      rgba(14,19,36,0.95)
    );
  box-shadow:
    0 12px 30px rgba(0,0,0,0.55),
    0 0 0 1px rgba(80,130,255,0.35);
  transform: translateY(-1px);
}

/* Deal type tag */
.property-card__tag {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  color: var(--accent);
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(117, 181, 255, 0.10); /* дефолт */
}

/* Продажа */
.property-card__tag--продажа,
.property-card__tag--sell {
  background: rgba(60, 122, 229, 0.18);
  border-color: rgba(60, 122, 229, 0.35);
}

/* Аренда */
.property-card__tag--аренда,
.property-card__tag--rent {
  background: rgba(82, 196, 255, 0.14);
  border-color: rgba(82, 196, 255, 0.32);
}

/* Арендный бизнес */
.property-card__tag--арендный-бизнес,
.property-card__tag--rent-business {
  background: rgba(160, 220, 0, 0.14);
  border-color: rgba(160, 220, 0, 0.30);
}

.property-card__body {
  background:
    radial-gradient(circle at top left,
      rgba(80,130,255,0.08),
      transparent 50%),
    linear-gradient(180deg, #0A0F1E 0%, #050608 100%);
}



.pb-6 {
  position: relative;
  background:
    radial-gradient(
      circle at top center,
      rgba(80,130,255,0.06),
      transparent 55%
    ),
    linear-gradient(
      180deg,
      #06080F 0%,
      #050608 100%
    );
}













/* =========================================
   Detail page: premium hero + sticky summary + tabs
   ========================================= */

/* HERO фон/премиальность */
.detail-hero {
  position: relative;
  overflow: hidden;
}
.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #04226d 0%, #050d1a 48%, #02060c 100%);
  pointer-events: none;
}

/* Галерея в hero (внутри контейнера) */
.gallery-frame--card { margin: 0; }

/* Боковая сводка (sticky), цена и чипы */
.detail-summary {
  border-radius: 18px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 14px 40px rgba(0,0,0,0.10);
  backdrop-filter: blur(10px);
}
@media (min-width: 992px) {
  .detail-summary { position: sticky; top: 92px; }
}

.detail-summary__title {
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
}

.detail-icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.86rem;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.06);
}
.chip--metro img { width: 14px; height: 14px; display: inline-block; }

.detail-price {
  border-radius: 16px;
  padding: 14px 14px 12px;
  background: linear-gradient(180deg, rgba(37,99,235,0.10), rgba(37,99,235,0.03));
  border: 1px solid rgba(37,99,235,0.15);
}
.detail-price__main {
  font-weight: 900;
  font-size: 1.8rem;
  line-height: 1.05;
}
.detail-price__sub {
  margin-top: 6px;
  color: rgba(0,0,0,0.60);
  font-size: 0.95rem;
}

.detail-kv {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.detail-kv__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 14px;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.05);
}
.detail-kv__item i {
  width: 20px;
  text-align: center;
  opacity: 0.75;
}

.detail-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.05);
  color: rgba(0,0,0,0.70);
  font-size: 0.92rem;
}
.detail-note i { margin-top: 2px; opacity: 0.75; }

/* Табы */
.detail-tabs {
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.06);
  backdrop-filter: blur(10px);
}
.detail-tabs__nav {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: rgba(0,0,0,0.02);
}
.detail-tab {
  appearance: none;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.85);
  padding: 10px 12px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.detail-tab:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.detail-tab.is-active {
  background: linear-gradient(180deg, rgba(37,99,235,0.14), rgba(37,99,235,0.04));
  border-color: rgba(37,99,235,0.22);
}
.detail-tab:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.detail-tabs__body { padding: 14px; }

.detail-panel { display: none; }
.detail-panel.is-active { display: block; }

.detail-panel__inner {
  padding: 10px 10px;
  border-radius: 16px;
  background: rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.05);
}

.detail-map {
  width: 100%;
  height: 420px;
  border-radius: 14px;
  overflow: hidden;
}

/* Темная тема (если у тебя включены var'ы ниже в cards.css) */
.detail-summary,
.detail-tabs {
  background: var(--bg-elevated) !important;
  border: 1px solid var(--border-subtle) !important;
  box-shadow: var(--shadow-soft) !important;
  color: var(--text-main) !important;
}
.detail-price {
  background: linear-gradient(180deg, rgba(117, 181, 255, 0.14), rgba(117, 181, 255, 0.05)) !important;
  border: 1px solid rgba(117, 181, 255, 0.22) !important;
}
.detail-price__sub,
.detail-note {
  color: var(--text-muted) !important;
}
.chip,
.detail-kv__item,
.detail-panel__inner,
.detail-note {
  background: var(--bg-soft) !important;
  border: 1px solid var(--border-subtle) !important;
}
.detail-tabs__nav {
  background: rgba(255, 255, 255, 0.03) !important;
  border-bottom: 1px solid var(--border-subtle) !important;
}
.detail-tab {
  background: var(--bg-elevated) !important;
  border: 1px solid var(--border-subtle) !important;
  color: var(--text-main) !important;
}
.detail-tab.is-active {
  background: linear-gradient(180deg, rgba(117, 181, 255, 0.16), rgba(117, 181, 255, 0.06)) !important;
  border-color: rgba(117, 181, 255, 0.26) !important;
}




/* =========================================
   Detail specs: отдельное окошко на каждую характеристику
   ========================================= */

.detail-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 991.98px) {
  .detail-specs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .detail-specs-grid {
    grid-template-columns: 1fr;
  }
}

/* Карточка-характеристика */
.spec-card {
  margin: 0;
  padding: 12px 12px;
  border-radius: 16px;

  background: var(--bg-elevated, rgba(255,255,255,0.92));
  border: 1px solid var(--border-subtle, rgba(0,0,0,0.08));
  box-shadow: var(--shadow-soft, 0 10px 26px rgba(0,0,0,0.08));

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

.spec-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.10);
  border-color: rgba(117, 181, 255, 0.35);
}

/* Заголовок характеристики */
.spec-card dt {
  margin: 0 0 6px 0;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted, rgba(0,0,0,0.55));
}

/* Значение */
.spec-card dd {
  margin: 0;
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--text-main, rgba(0,0,0,0.92));
  line-height: 1.15;
}

/* Чуть больше воздуха внутри таба "Характеристики" */
.detail-panel[data-panel="details"] .detail-panel__inner {
  padding: 14px;
}

/* Чтобы табы визуально выглядели “дороже” и читались лучше */
.detail-tabs__body {
  padding: 14px;
}

/* Карта */
.detail-map {
  width: 100%;
  height: 420px;
  border-radius: 16px;
  overflow: hidden;
}


/* =========================================
   Квадратные характеристики (ТОЛЬКО десктоп)
   ========================================= */

@media (min-width: 992px) {
  .spec-card {
    min-height: 96px;              /* ключевое — компактная высота */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;       /* читаемость важнее центрирования */
    text-align: left;
    padding: 12px 14px;
  }

  .spec-card dt {
    font-size: 0.72rem;
    margin-bottom: 6px;
  }

  .spec-card dd {
    font-size: 1rem;
    line-height: 1.2;
  }
}


/* =========================================
   Detail: галерея по высоте = правому блоку (desktop)
   ========================================= */

@media (min-width: 992px) {
  /* колонки должны уметь растягиваться */
  #listing-detail-hero-1 .col-lg-8,
  #listing-detail-hero-1 .col-lg-4 {
    display: flex;
    flex-direction: column;
  }

  /* каркас галереи занимает всю высоту колонки */
  #listing-detail-hero-1 .gallery-frame--card {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    height: 100%;
  }
 
  /* Swiper и слайды занимают всю высоту */
  #listing-detail-hero-1 .swiper-container,
  #listing-detail-hero-1 .swiper,
  #listing-detail-hero-1 .swiper-wrapper,
  #listing-detail-hero-1 .swiper-slide {
    height: 100%;
  }

  /* картинка заполняет окно по высоте */
  #listing-detail-hero-1 .listing-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    display: block;
  }
}

/* Детальная страница: фон hero как на главной */
#listing-detail-hero-1 {
  position: relative;
  overflow: hidden;
}

/* Базовый слой */
#listing-detail-hero-1 .hero__bg {
  inset: 0;
  z-index: 0;
  background: linear-gradient(145deg, #04226d 0%, #050d1a 48%, #02060c 100%);
}

/* Слой “атмосферы” */
#listing-detail-hero-1 .hero__overlay {
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(
      180deg,
      rgba(5, 9, 20, 0.9) 0%,
      rgba(5, 8, 18, 0.95) 55%,
      rgba(3, 7, 14, 0.98) 100%
    ),
    radial-gradient(
      circle at 18% 16%,
      rgba(2, 30, 80, 0.32),
      transparent 48%
    );
}

/* Контент должен быть выше фона */
#listing-detail-hero-1 .container-xl {
  position: relative;
  z-index: 1;
}

/* =========================================
   Detail page — привести к стилю карточек главной
   (фон/градиенты как property-card__body)
   ========================================= */

/* 1) Правая сводка и табы — как “тело” карточки на главной */
#listing-detail-hero-1 .detail-summary,
#listing-detail-1 .detail-tabs {
  background:
    radial-gradient(circle at top left,
      rgba(80,130,255,0.08),
      transparent 50%),
    linear-gradient(180deg, #0A0F1E 0%, #050608 100%) !important;

  border: 1px solid var(--border-subtle) !important;
  box-shadow: var(--shadow-soft) !important;
  color: var(--text-main) !important;
}

/* 2) Внутренние панели (описание/карта/характеристики) — чуть мягче, как bg-soft */
#listing-detail-1 .detail-panel__inner {
  background: var(--bg-soft) !important;
  border: 1px solid var(--border-subtle) !important;
}

/* 3) Карточки характеристик (spec-card) — как мини-карточки в общей теме */
#listing-detail-1 .spec-card {
  background: var(--bg-elevated, #15141B) !important;
  border: 1px solid var(--border-subtle, #262632) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

/* 4) Навигация табов — в стиле тёмной темы */
#listing-detail-1 .detail-tabs__nav {
  background: rgba(255, 255, 255, 0.03) !important;
  border-bottom: 1px solid var(--border-subtle) !important;
}

/* 5) Кнопки табов — чтобы не выбивались из палитры */
#listing-detail-1 .detail-tab {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid var(--border-subtle) !important;
  color: var(--text-main) !important;
}

#listing-detail-1 .detail-tab.is-active {
  background: rgba(80,130,255,0.10) !important;
  border-color: rgba(117, 181, 255, 0.25) !important;
}

/* =========================================
   FORCE: убрать серый на detail и сделать как на главной
   (градиент как .property-card__body + фон как pb-6)
   ========================================= */

/* 1) Рамка/контейнер фото — перебиваем ранний #listing-detail-hero-1 .gallery-frame { background:#fff } */
#listing-detail-hero-1 .gallery-frame {
  background:
    radial-gradient(circle at top left, rgba(80,130,255,0.10), transparent 52%),
    linear-gradient(180deg, #0A0F1E 0%, #050608 100%) !important;
  border: 1px solid rgba(38, 38, 50, 0.95) !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65) !important;
}

/* чтобы рамка была видна (у тебя уже есть padding, но пусть будет гарантировано) */
#listing-detail-hero-1 .gallery-frame--card {
  padding: 10px !important;
  border-radius: 18px !important;
}

/* 2) Блок под фото — “Описание/Характеристики/Карта” БЕЗ серого */
#listing-detail-1 .detail-panel__inner {
  background:
    radial-gradient(circle at top left, rgba(80,130,255,0.08), transparent 55%),
    linear-gradient(180deg, #0A0F1E 0%, #050608 100%) !important;
  border: 1px solid rgba(38, 38, 50, 0.95) !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55) !important;
}

/* 3) Каждая характеристика отдельным “дорогим” окошком с градиентом */
#listing-detail-1 .spec-card {
  background:
    radial-gradient(circle at top left, rgba(80,130,255,0.12), transparent 55%),
    linear-gradient(180deg, #0A0F1E 0%, #050608 100%) !important;
  border: 1px solid rgba(38, 38, 50, 0.95) !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55) !important;
}

/* Текст читаемым белым (на всякий случай, если где-то наследуется серый) */
#listing-detail-1 .detail-panel__inner,
#listing-detail-1 .detail-panel__inner p,
#listing-detail-1 .detail-panel__inner dt,
#listing-detail-1 .detail-panel__inner dd,
#listing-detail-1 .spec-card dd {
  color: #F5F5F7 !important;
}

#listing-detail-1 .spec-card dt {
  color: #9B9BA5 !important;
}


/* =========================================
   FORCE: правая карточка (summary) без серого — премиальный градиент
   ========================================= */

/* сама карточка справа */
#listing-detail-hero-1 .detail-summary {
  background:
    radial-gradient(circle at top left, rgba(80,130,255,0.12), transparent 55%),
    linear-gradient(180deg, #0A0F1E 0%, #050608 100%) !important;
  border: 1px solid rgba(38, 38, 50, 0.95) !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65) !important;
  color: #F5F5F7 !important;
}

/* заголовок и подписи */
#listing-detail-hero-1 .detail-summary__title,
#listing-detail-hero-1 .detail-price__main {
  color: #F5F5F7 !important;
}
#listing-detail-hero-1 .detail-price__sub,
#listing-detail-hero-1 .detail-note,
#listing-detail-hero-1 .spec-card dt {
  color: #9B9BA5 !important;
}

/* убираем серые подложки внутри summary (chips, kv, note) */
#listing-detail-hero-1 .chip,
#listing-detail-hero-1 .detail-kv__item,
#listing-detail-hero-1 .detail-note,
#listing-detail-hero-1 .detail-price {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* кнопка "поделиться" (иконка) тоже в тему */
#listing-detail-hero-1 .detail-icon-btn {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  color: #F5F5F7 !important;
}
#listing-detail-hero-1 .detail-icon-btn:hover {
  background: rgba(80, 130, 255, 0.10) !important;
  border-color: rgba(117, 181, 255, 0.25) !important;
}


/* =========================================
   Buttons: премиальный стиль вместо bootstrap-blue
   ========================================= */

/* Основная кнопка (Характеристики / Описание / CTA) */
#listing-detail-hero-1 .btn.btn-primary {
  background:
    linear-gradient(
      180deg,
      rgba(14, 25, 55, 0.95) 0%,
      rgba(7, 14, 30, 0.95) 100%
    ) !important;

  border: 1px solid rgba(80, 130, 255, 0.35) !important;
  color: #F5F5F7 !important;

  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);

  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

/* Hover основной кнопки */
#listing-detail-hero-1 .btn.btn-primary:hover {
  background:
    linear-gradient(
      180deg,
      rgba(22, 40, 90, 0.95) 0%,
      rgba(10, 18, 45, 0.95) 100%
    ) !important;

  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
  transform: translateY(-1px);
}

/* Secondary / outline кнопки */
#listing-detail-hero-1 .btn-outline-secondary {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #E6E6EB !important;

  border-radius: 12px;
}

#listing-detail-hero-1 .btn-outline-secondary:hover {
  background: rgba(80, 130, 255, 0.10) !important;
  border-color: rgba(117, 181, 255, 0.35) !important;
}

/* =========================================
   Кнопка "Поделиться" — иконка, не bootstrap
   ========================================= */

#listing-detail-hero-1 .detail-icon-btn {
  background:
    linear-gradient(
      180deg,
      rgba(10, 18, 40, 0.95) 0%,
      rgba(5, 10, 22, 0.95) 100%
    ) !important;

  border: 1px solid rgba(80, 130, 255, 0.30) !important;
  color: #F5F5F7 !important;

  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
  border-radius: 12px;
}

#listing-detail-hero-1 .detail-icon-btn:hover {
  background:
    linear-gradient(
      180deg,
      rgba(20, 35, 85, 0.95) 0%,
      rgba(8, 15, 40, 0.95) 100%
    ) !important;

  border-color: rgba(117, 181, 255, 0.45) !important;
}








/* =========================================
   Swap button styles depending on active tab
   ========================================= */

/* БАЗА: все action-кнопки выглядят как secondary */
#listing-detail-hero-1 .detail-actions .btn {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #E6E6EB !important;
  box-shadow: none;
}

/* Активная кнопка (соответствует активному табу) — становится CTA */
#listing-detail-hero-1
.detail-actions
.btn[data-open-tab].is-active-action {
  background:
    linear-gradient(
      180deg,
      rgba(14, 25, 55, 0.95) 0%,
      rgba(7, 14, 30, 0.95) 100%
    ) !important;

  border: 1px solid rgba(80, 130, 255, 0.35) !important;
  color: #F5F5F7 !important;

  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.65);
  font-weight: 700;
}


/* =========================================
   Photo block: Premium "glass frame"
   ========================================= */

/* Общая рамка вокруг фото */
#listing-detail-hero-1 .gallery-frame--card {
  position: relative;
  padding: 14px !important; /* толще рамка = дороже */
  border-radius: 22px !important;

  background:
    radial-gradient(circle at 14% 18%, rgba(80,130,255,0.16), transparent 52%),
    radial-gradient(circle at 88% 12%, rgba(255,255,255,0.06), transparent 55%),
    linear-gradient(180deg, #0A0F1E 0%, #050608 100%) !important;

  border: 1px solid rgba(255,255,255,0.10) !important;
  box-shadow:
    0 26px 70px rgba(0,0,0,0.70),
    inset 0 1px 0 rgba(255,255,255,0.10);
}

/* Светящаяся окантовка (очень деликатно) */
#listing-detail-hero-1 .gallery-frame--card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(117,181,255,0.45),
    rgba(255,255,255,0.10),
    rgba(117,181,255,0.18)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.55;
}

/* Внутренний “контейнер” фото */
#listing-detail-hero-1 .hero-area {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0,0,0,0.25);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    inset 0 -20px 60px rgba(0,0,0,0.40);
}

/* Лёгкая виньетка/градиент поверх фото (дорого и помогает UI) */
#listing-detail-hero-1 .hero-area::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 40%, transparent 55%, rgba(0,0,0,0.35) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.42) 100%);
  pointer-events: none;
  opacity: 0.75;
}

/* Само изображение */
#listing-detail-hero-1 .listing-hero-img {
  border-radius: 0; /* чтобы не конфликтовать с контейнером */
  transform: translateZ(0);
  transition: transform .35s ease;
}

/* Едва заметный zoom на hover (desktop) */
@media (hover: hover) and (min-width: 992px) {
  #listing-detail-hero-1 .gallery-frame--card:hover .listing-hero-img {
    transform: scale(1.015);
  }
}

/* Стрелки и пагинация — менее “bootstrap”, более премиально */
#listing-detail-hero-1 .swiper-button-prev,
#listing-detail-hero-1 .swiper-button-next {
  width: 44px;
  height: 44px;
  border-radius: 14px;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);

  box-shadow: 0 14px 30px rgba(0,0,0,0.45);
}

#listing-detail-hero-1 .swiper-button-prev:hover,
#listing-detail-hero-1 .swiper-button-next:hover {
  background: rgba(80,130,255,0.12);
  border-color: rgba(117,181,255,0.28);
}

#listing-detail-hero-1 .swiper-pagination-bullet {
  background: rgba(255,255,255,0.25);
  opacity: 1;
}
#listing-detail-hero-1 .swiper-pagination-bullet-active {
  background: rgba(117,181,255,0.85);
}


/* =========================================
   Photo pagination — premium dots
   ========================================= */

#listing-detail-hero-1 .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;

  background: rgba(255,255,255,0.25);
  opacity: 1;

  transition: transform .2s ease, background .2s ease;
}

#listing-detail-hero-1 .swiper-pagination-bullet-active {
  background: rgba(117,181,255,0.95);
  transform: scale(1.4);
}

/* чуть приглушаем неактивные при наведении */
#listing-detail-hero-1 .swiper:hover .swiper-pagination-bullet:not(.swiper-pagination-bullet-active) {
  background: rgba(255,255,255,0.18);
}

#listing-detail-hero-1 .hero-area {
  aspect-ratio: 16 / 10; /* оптимально для недвижимости */
  min-height: 520px;
}

#listing-detail-hero-1 .listing-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateZ(0);
}

/* FIX: убрать чёрную полосу (letterbox) — заставляем фото заполнять окно */
#listing-detail-hero-1 .listing-hero-img {
  object-fit: cover !important;
  object-position: center !important;
}

/* на всякий случай убираем “фон” у обёрток */
#listing-detail-hero-1 .swiper-slide,
#listing-detail-hero-1 .lightbox-link {
  background: transparent !important;
}

@media (min-width: 992px) {
  #listing-detail-hero-1 .gallery-frame--card,
  #listing-detail-hero-1 .hero-area,
  #listing-detail-hero-1 .swiper,
  #listing-detail-hero-1 .swiper-wrapper,
  #listing-detail-hero-1 .swiper-slide {
    height: 100% !important;
  }

  #listing-detail-hero-1 .swiper-slide {
    align-items: stretch !important;
  }
}


/* FIX: на detail у swiper не должно быть внутренних отступов */
#listing-detail-hero-1 .swiper {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
}

.pswp-is-open #listing-detail-hero-1 .swiper-button-prev,
.pswp-is-open #listing-detail-hero-1 .swiper-button-next,
.pswp-is-open #listing-detail-hero-1 .swiper-pagination {
  opacity: 0 !important;
  pointer-events: none !important;
}


/* ================================
   Waves INSIDE overlay (движение видно всегда)
   ================================ */

#searchbox-hero-1 .hero__overlay,
#page-hero .hero__overlay {
  position: absolute; /* на всякий случай */
  inset: 0;
  overflow: hidden;
}

/* 2 слоя волн поверх overlay */
#searchbox-hero-1 .hero__overlay::before,
#searchbox-hero-1 .hero__overlay::after,
#page-hero .hero__overlay::before,
#page-hero .hero__overlay::after {
  content: "";
  position: absolute;
  inset: -30%;
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: screen;
  will-change: background-position, transform;
}

/* Слой 1 — более выраженный, чтобы движение было заметно */
#searchbox-hero-1 .hero__overlay::before,
#page-hero .hero__overlay::before {
  background:
    radial-gradient(60% 35% at 20% 25%, rgba(117,181,255,0.22), transparent 58%),
    radial-gradient(55% 30% at 70% 35%, rgba(117,181,255,0.16), transparent 62%),
    radial-gradient(65% 40% at 45% 70%, rgba(255,255,255,0.07), transparent 66%);
  background-size: 140% 140%;
  filter: blur(14px);
  animation: wavesMoveA 16s ease-in-out infinite;
}

/* Слой 2 — мягкая рябь в противоход */
#searchbox-hero-1 .hero__overlay::after,
#page-hero .hero__overlay::after {
  background:
    radial-gradient(40% 22% at 30% 55%, rgba(117,181,255,0.16), transparent 62%),
    radial-gradient(38% 20% at 60% 60%, rgba(117,181,255,0.12), transparent 64%),
    radial-gradient(42% 24% at 52% 30%, rgba(255,255,255,0.06), transparent 68%);
  background-size: 160% 160%;
  filter: blur(22px);
  opacity: 0.45;
  animation: wavesMoveB 22s ease-in-out infinite;
}

@keyframes wavesMoveA {
  0%   { background-position: 0% 0%;   transform: scale(1.02); }
  50%  { background-position: 100% 80%; transform: scale(1.06); }
  100% { background-position: 0% 0%;   transform: scale(1.02); }
}

@keyframes wavesMoveB {
  0%   { background-position: 100% 20%; transform: scale(1.03); }
  50%  { background-position: 0% 100%; transform: scale(1.08); }
  100% { background-position: 100% 20%; transform: scale(1.03); }
}

/* Уважение к reduced motion */
@media (prefers-reduced-motion: reduce) {
  #searchbox-hero-1 .hero__overlay::before,
  #searchbox-hero-1 .hero__overlay::after,
  #page-hero .hero__overlay::before,
  #page-hero .hero__overlay::after {
    animation: none !important;
  }
}

/* ===== Fix card gallery arrows ===== */

.property-card__media { position: relative; }

.swiper.card-gallery { position: relative; }

/* кнопки поверх фото */
.swiper.card-gallery .card-gallery-nav {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;

  width: 40px;
  height: 40px;
  border-radius: 14px;

  display: grid !important;
  place-items: center !important;

  z-index: 50 !important;
  pointer-events: auto !important;

  background: rgba(10, 18, 40, 0.75);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.92);
  box-shadow: 0 14px 30px rgba(0,0,0,0.55);
  backdrop-filter: blur(10px);
}

.swiper.card-gallery .card-gallery-prev { left: 10px !important; }
.swiper.card-gallery .card-gallery-next { right: 10px !important; }

/* Чтобы клики по стрелкам не воспринимались как "drag" свайпера */
.swiper.card-gallery .card-gallery-nav {
  touch-action: manipulation;
}

/* Если у тебя ранее было opacity:0 на стрелках — временно покажем всегда */
.swiper.card-gallery .card-gallery-nav { opacity: 1 !important; }

.property-card .swiper.card-gallery {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
}

.property-card .swiper.card-gallery {
  overflow: hidden !important;
}

.property-card .swiper.card-gallery .swiper-wrapper {
  margin: 0 !important;
  gap: 0;
  display: flex;
      margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.property-card .swiper.card-gallery .swiper-slide {
  width: 100% !important;
  margin: 0 !important;
  flex: 0 0 100% !important;
}

/* ============ Card Gallery (NO Swiper) ============ */
.card-gallery__frame{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 18px;
}

.card-gallery__img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
  transform: translateZ(0);
}

/* buttons */
.card-gallery__btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 14px;

  display: grid;
  place-items: center;

  background: rgba(10,18,40,0.75);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.92);
  box-shadow: 0 14px 30px rgba(0,0,0,0.55);
  backdrop-filter: blur(10px);
  z-index: 5;

  opacity: 0;
  transition: opacity .18s ease, background .18s ease, border-color .18s ease;
}

.card-gallery__btn--prev{ left: 10px; }
.card-gallery__btn--next{ right: 10px; }

@media (hover:hover){
  .property-card:hover .card-gallery__btn{ opacity: 1; }
}
@media (hover:none){
  .card-gallery__btn{ opacity: 1; } /* на мобилке всегда */
}

.card-gallery__btn:hover{
  background: rgba(80,130,255,0.14);
  border-color: rgba(117,181,255,0.28);
}

/* dots */
.card-gallery__dots{
  position: absolute;
  left: 0; right: 0;
  bottom: 10px;
  display: flex;
  gap: 6px;
  justify-content: center;
  z-index: 4;
}
.card-gallery__dot{
  width: 6px; height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
}
.card-gallery__dot.is-active{
  background: rgba(117,181,255,0.9);
}

.detail-summary__title {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#copyUrlButton {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Шапка в карточке справа от фото: заголовок + кнопка */
.detail-summary__head{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

/* Важно: даём текстовому блоку право сжиматься */
.detail-summary__head-text{
  min-width: 0;
}

/* Заголовок: либо переносы, либо обрезка — выбери один вариант */

/* Вариант А: красиво в 2 строки (рекомендую) */
.detail-summary__title{
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Кнопка не сжимается */
#copyUrlButton{
  white-space: nowrap;
}

/* Заголовок/адрес: переносится на строки, не выталкивает кнопку */
.detail-summary__title{
  margin: 0;
  white-space: normal;        /* разрешаем перенос */
  overflow-wrap: anywhere;    /* перенос даже длинных кусков */
  word-break: break-word;     /* запасной вариант */
}

.detail-summary__head{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.detail-summary__head-text{
  min-width: 0;
}

#copyUrlButton{
  white-space: nowrap;
}

#copyUrlButton {
  flex-shrink: 0;
  white-space: nowrap;
}

#copyUrlButton{
  min-width: 120px;      /* под "Поделиться" + иконка */
  justify-content: center;
  flex-shrink: 0;
  white-space: nowrap;
}

/* =========================
   SEARCH BOX — GLASS NAVY
   ========================= */

.searchbox-form {
  /* убираем белый фон bootstrap */
  background: rgba(8, 18, 40, 0.55) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  border: 1px solid rgba(120, 160, 255, 0.22);
  border-radius: 18px !important;

  box-shadow:
    0 22px 45px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* input'ы внутри формы */
.searchbox-form input,
.searchbox-form select {
  background: transparent !important;
  border: none !important;
  color: #eaf0ff;
}

.searchbox-form input::placeholder {
  color: rgba(200, 215, 255, 0.55);
}

/* убираем bootstrap focus-рамку */
.searchbox-form input:focus,
.searchbox-form select:focus {
  box-shadow: none !important;
  outline: none;
}

/* hover */
.searchbox-form:hover {
  border-color: rgba(150, 190, 255, 0.35);
}

/* focus внутри */
.searchbox-form:focus-within {
  border-color: rgba(170, 210, 255, 0.55);
  box-shadow:
    0 0 0 1px rgba(130, 180, 255, 0.35),
    0 28px 60px rgba(0, 0, 0, 0.6);
}


.searchbox-hint{
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: rgba(200,215,255,0.55);
}

.property-card__footer {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.property-card__footer {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end; /* <-- ВОТ ЭТО */
  align-items: center;
}

.property-card__price {
  font-weight: 600;
  font-size: 18px;
  white-space: nowrap;
}

.property-card__price {
  font-weight: 600;
  font-size: 18px;
  white-space: nowrap;

  word-spacing: 0.22em;              /* <-- пробелы между "000" заметнее */
  font-variant-numeric: tabular-nums; /* <-- цифры ровнее/дороже */
}

.detail-price__main {
  font-weight: 900;
  font-size: 1.8rem;
  line-height: 1.05;
}

.detail-price__main {
  font-weight: 900;
  font-size: 1.8rem;
  line-height: 1.05;

  word-spacing: 0.22em;
  font-variant-numeric: tabular-nums;
}

.property-card__price,
.detail-price__main {
  letter-spacing: 0.12em;
}

/* =========================
   PRICE TYPOGRAPHY
   ========================= */

.property-card__price,
.detail-price__main,
.detail-price__sub {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em; /* очень мягко */
}

.detail-map--empty {
  background:
    radial-gradient(circle at 20% 20%, rgba(80,130,255,0.12), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.02));
  border: 1px dashed rgba(255,255,255,0.10);
}

/* =========================
   CTA: "Запросить презентацию"
   Цвет статичный, hover только lift
   ========================= */
/* =========================
   CTA: "Запросить презентацию"
   Цвет статичный, hover только lift
   ========================= */
#requestPresentationBtn {
  background: linear-gradient(180deg, rgba(95,155,255,0.95), rgba(60,122,229,0.95)) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: #fff !important;

  border-radius: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;

  transition: transform .18s ease, box-shadow .18s ease;
}

#requestPresentationBtn:hover,
#requestPresentationBtn:focus {
  background: linear-gradient(180deg, rgba(95,155,255,0.95), rgba(60,122,229,0.95)) !important;
  border-color: rgba(255,255,255,0.18) !important;
  color: #fff !important;

  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.30);
}

#requestPresentationBtn:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(0,0,0,0.22);
}

#requestPresentationBtn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(95,155,255,0.25), 0 10px 26px rgba(0,0,0,0.30);
}

/* =========================
   Premium panels (Описание/Карта)
   ========================= */
.detail-panel-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;

  background:
    radial-gradient(circle at top left, rgba(95,155,255,0.10), transparent 52%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.02));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 12px 28px rgba(0,0,0,0.22);
}

.detail-panel-card__body {
  padding: 18px 18px 18px 18px;
}

.detail-panel-card__tab {
  position: absolute;
  left: 14px;
  top: 12px;

  display: inline-flex;
  align-items: center;
  gap: 8px;

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

  background: rgba(10, 14, 20, 0.55);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.92);

  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;

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

  box-shadow: 0 10px 20px rgba(0,0,0,0.24);
}

/* чтобы контент не залезал под “вкладку” */
.detail-panel-card__body {
  padding-top: 52px;
}

/* =========================
   PRICE TYPOGRAPHY FIX
   ========================= */

.property-card__price,
.detail-price__main,
.detail-price__sub {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-weight: 800 !important;
  font-variant-numeric: tabular-nums;
}

/* =========================
   Premium panels (Описание/Карта)
   ========================= */
.detail-section {
  position: relative;
  overflow: hidden;
  border-radius: 18px;

  /* Deep Navy Glass — без серого */
  background:
    radial-gradient(circle at 10% 0%, rgba(95,155,255,0.14), transparent 55%),
    radial-gradient(circle at 90% 20%, rgba(95,155,255,0.08), transparent 60%),
    linear-gradient(180deg, rgba(6,10,18,0.72), rgba(6,10,18,0.44));
  border: 1px solid rgba(255,255,255,0.10) !important;
  box-shadow: 0 12px 28px rgba(0,0,0,0.22);
}

.detail-section__head {
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(6,10,18,0.55), rgba(6,10,18,0.0));
}

.detail-section__kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245,245,247,0.70);
}

.detail-section__title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.detail-section__title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #F5F5F7;
  letter-spacing: 0.01em;
}

.detail-section__rule {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(95,155,255,0.55), rgba(255,255,255,0.0));
  opacity: 0.9;
}

.detail-section__body {
  padding: 18px 20px 20px;
}

.detail-section .detail-panel__inner {
  color: rgba(245,245,247,0.86);
  line-height: 1.75;


}

.detail-description {
  line-height: 1.8;
}

.detail-description p {
  margin: 0;
}

.detail-description p + p {
  margin-top: 1rem;
}

.detail-section .detail-map {
  border-radius: 14px;
  overflow: hidden;
}

.detail-section__body a {
  color: rgba(117,181,255,0.95);
  text-decoration: none;
}
.detail-section__body a:hover { text-decoration: underline; }

@media (min-width: 992px) {
  .detail-section__head { padding: 22px 22px 16px; }
  .detail-section__body { padding: 22px 22px 24px; }
  .detail-section__title { font-size: 22px; }
}

/* =========================
   Action buttons row
   ========================= */
.detail-actions {
  padding-top: 10px;
  display: flex;
  gap: 10px;
}

.detail-actions .btn {
  flex: 1 1 0;     /* ← ВАЖНО: делит ширину поровну */
  width: 100%;
}

/* =========================
   Premium sections (Описание/Карта) — без серого и без синего градиента
   ========================= */

/* ВАЖНО: у тебя секции ещё имеют класс .card, поэтому делаем .detail-section.card */
.detail-section.card {
  background: #070B14 !important;
  background-color: #070B14 !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 30px rgba(0,0,0,0.28) !important;
  overflow: hidden;
}

/* Шапка — прозрачная, без подложек */
.detail-section__head {
  padding: 22px 24px 14px;
  background: transparent !important;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.detail-section__title-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0;
}

.detail-section__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.92);
}

/* УБИРАЕМ синюю линию полностью (она “дешевит”) */
.detail-section__rule {
  display: none !important;
}

.detail-section__body {
  padding: 18px 24px 24px;
}

.detail-section .detail-panel__inner {
  color: rgba(255,255,255,0.78);
  line-height: 1.85;
}

/* Ссылки аккуратные, без “ядовитого” синего */
.detail-section__body a {
  color: rgba(255,255,255,0.88);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.25);
  text-underline-offset: 3px;
}
.detail-section__body a:hover {
  text-decoration-color: rgba(255,255,255,0.55);
}

.detail-section .detail-map {
  border-radius: 12px;
  overflow: hidden;
}

/* =========================
   Action panel (справа от фото)
   ========================= */
.action-panel {
  border-radius: 16px;
  overflow: hidden;
  background: #070B14;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 14px 34px rgba(0,0,0,0.28);
}

.action-panel__head {
  padding: 14px 14px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.action-panel__title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.86);
}

.action-panel__subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

.action-panel__body {
  padding: 14px;
}

.action-panel__note {
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255,255,255,0.55);
}

/* Внутри панели делаем outline-кнопки более "кнопочными" */
.action-panel .btn-outline-secondary {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.86);
}

.action-panel .btn-outline-secondary:hover,
.action-panel .btn-outline-secondary:focus {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
}

/* =========================
   Secondary action buttons (Описание / Карта / План)
   ========================= */
.action-panel .btn-outline-secondary {
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.88);

  font-weight: 600;
  letter-spacing: 0.2px;

  transition:
    background .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
}

.action-panel .btn-outline-secondary:hover,
.action-panel .btn-outline-secondary:focus {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.96);

  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.22);
}

.action-panel .btn-outline-secondary:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(0,0,0,0.20);
}

/* Главная кнопка — визуально доминирует */
.action-panel #requestPresentationBtn {
  margin-top: 12px;
}

.action-panel .detail-actions .btn-outline-secondary {
  border-radius: 12px;
}

.action-panel .detail-actions .btn-outline-secondary:first-child {
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}

.action-panel .detail-actions .btn-outline-secondary:last-child {
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}

/* Компактнее блок цены */
.detail-price {
  margin-top: 12px !important;
}

.detail-price__main {
  font-size: 22px;
  line-height: 1.2;
}

.detail-price__sub {
  margin-top: 2px;
  font-size: 13px;
}

/* Характеристики — компактный режим */
.detail-kv {
  margin-top: 12px !important;
}

.detail-kv__item {
  padding: 6px 0;
  font-size: 13px;
  line-height: 1.45;
}

.detail-kv__item i {
  font-size: 13px;
}

/* Тело карточки заполняет доступное пространство, футер уходит вниз */
.property-card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

/* Футер (с кнопкой) прижимаем к низу */
.property-card__footer {
  margin-top: auto;
  justify-content: flex-end; /* у тебя уже есть, но пусть будет явно */
}

/* =========================
   Rent business tabs on photo (МАП / Окупаемость)
   ========================= */

/* контейнер фото должен быть relative, чтобы вкладки легли поверх */
.property-card__media,
.property-card__image,
.property-card__img-wrap,
.property-card__photo {
  position: relative;
}

/* панель вкладок внизу фото */
.rent-tabs {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 3;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* сама вкладка */
.rent-tab {
  border-radius: 14px;
  padding: 10px 12px;

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

  /* премиальное "стекло" */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 10px 22px rgba(0,0,0,0.28);

  color: rgba(255,255,255,0.92);
}

.rent-tab__label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  white-space: nowrap;
}

.rent-tab__value {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* цвета вкладок — сдержанные, не кричащие */
.rent-tab--map {
  background: linear-gradient(180deg, rgba(16, 28, 55, 0.80), rgba(10, 16, 30, 0.62));
}

.rent-tab--payback {
  background: linear-gradient(180deg, rgba(42, 20, 14, 0.78), rgba(16, 10, 8, 0.62));
}

/* если есть только одна метрика — вкладка занимает всю ширину */
.rent-tabs:has(.rent-tab):not(:has(.rent-tab + .rent-tab)) {
  grid-template-columns: 1fr;
}

/* на узких экранах делаем вкладки в столбик */
@media (max-width: 420px) {
  .rent-tabs {
    grid-template-columns: 1fr;
  }
}


/* =========================
   Rent tabs (compact, flush-bottom)
   ========================= */

/* контейнер фото должен быть relative */
.property-card__media,
.property-card__image,
.property-card__img-wrap,
.property-card__photo {
  position: relative;
}

/* вкладки прижаты к самому низу, без боковых отступов */
.rent-tabs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;

  /* чтобы вкладки выглядели как единая нижняя полоса */
  border-top: 1px solid rgba(255,255,255,0.10);
}

/* компактная вкладка */
.rent-tab {
  padding: 7px 10px;
  min-height: 30px;

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

  border: none;
  border-radius: 0;

  /* без стекла и сильных теней */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;

  color: rgba(255,255,255,0.92);
}

/* разделитель между вкладками */
.rent-tab + .rent-tab {
  border-left: 1px solid rgba(255,255,255,0.10);
}

/* лейбл */
.rent-tab__label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.70);
  white-space: nowrap;
}

/* значение */
.rent-tab__value {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* цвета — дорогие, спокойные, без “кислоты” */
.rent-tab--map {
  background: rgba(12, 18, 34, 0.88); /* deep navy */
}

.rent-tab--payback {
  background: rgba(28, 18, 14, 0.88); /* warm graphite */
}

/* hover очень тонкий */
.rent-tab:hover {
  filter: brightness(1.05);
}

/* если одна вкладка — занимает всю ширину */
.rent-tabs.single {
  grid-template-columns: 1fr;
}
.rent-tabs.single .rent-tab + .rent-tab {
  border-left: none;
}

/* на мобильных оставляем в 2 колонки — это компактно и читаемо */
@media (max-width: 420px) {
  .rent-tab {
    padding: 6px 9px;
    min-height: 28px;
  }
  .rent-tab__value { font-size: 12px; }
}

/* =========================
   MAIN: Searchbar (searchbox-form) — заметная и премиальная
   ========================= */

/* Вся форма-панель */
.searchbox-form {
  /* делаем “почти белую” панель (не дешевый #fff) */
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(15, 23, 42, 0.10) !important;
  border-radius: 18px !important;

  /* премиальная глубина */
  box-shadow: 0 18px 45px rgba(0,0,0,0.28) !important;

  overflow: visible !important;
}

/* убираем любые внутренние белые подложки, которые ты добавлял */
.searchbox-form .bg {
  background: transparent !important;
}

/* зона с инпутом */
.searchbox-form .input-group {
  padding: 6px 16px; /* компактнее и дороже */
}

/* иконка слева */
.searchbox-form .input-group-text {
  color: rgba(15, 23, 42, 0.55) !important;
}

/* сам инпут */
#searchboxKeyword {
  background: transparent !important;
  color: rgba(15, 23, 42, 0.92) !important;

  font-weight: 700;
  letter-spacing: 0.2px;

  /* делаем заметнее */
  min-height: 56px;
}

/* placeholder */
#searchboxKeyword::placeholder {
  color: rgba(15, 23, 42, 0.45) !important;
  font-weight: 600;
}

/* ФОКУС: премиальное свечение, чтобы “видно, что можно вводить” */
.searchbox-form:focus-within {
  border-color: rgba(95, 155, 255, 0.40) !important;
  box-shadow:
    0 22px 55px rgba(0,0,0,0.32),
    0 0 0 4px rgba(95,155,255,0.16) !important;
}

/* На мобиле чуть ниже, чтобы не казалось “огромной” */
@media (max-width: 575px) {
  #searchboxKeyword {
    min-height: 52px;
    font-size: 16px; /* чтобы iOS не зумил */
  }
}

/* =========================
   Cards: rent metrics inline (МАП + Окупаемость)
   ========================= */
.detail-kv__row-inline {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.detail-kv__pill {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;

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

  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
}

.detail-kv__pill-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.70);
  white-space: nowrap;
}

.detail-kv__pill-value {
  font-size: 12px;
  font-weight: 800;
  color: rgba(255,255,255,0.92);
  white-space: nowrap;
}

/* разные “температуры” для двух метрик */
.detail-kv__pill--map {
  background: rgba(12, 18, 34, 0.70);
}
.detail-kv__pill--profit {
  background: rgba(28, 18, 14, 0.70);
}

/* если одна метрика — пусть занимает всю ширину */
.detail-kv__row-inline .detail-kv__pill:only-child {
  flex: 1 1 100%;
}

/* =========================
   Detail page: mobile photo window optimization (Swiper)
   ========================= */

/* 1) Мобильный hero: убираем лишний воздух */
@media (max-width: 575px) {
  .detail-hero {
    padding-top: 10px !important;
    padding-bottom: 12px !important;
  }

  /* Фото на всю ширину экрана */
  #listing-detail-hero-1 .col-12.col-lg-8 {
    padding-left: 0;
    padding-right: 0;
  }

  /* Убираем “карточность” у рамки галереи на мобилке */

  /* 2) Задаём нормальную высоту окна фото:
        - 56vh удобно для просмотра
        - есть min/max, чтобы не было экстремальных значений */
  /* #listing-detail-hero-1 .gallery-frame,
  #listing-detail-hero-1 .hero-area,
  #listing-detail-hero-1 .swiper-container,
  #listing-detail-hero-1 #listing-detail-hero-1-swiper,
  #listing-detail-hero-1 .swiper {
    height: clamp(320px, 56vh, 520px) !important;
  } */

  /* 3) Картинка заполняет окно корректно */
  #listing-detail-hero-1 .listing-hero-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover; /* если хочешь без обрезки — поменяй на contain */
    object-position: center;
    display: block;
  }

  /* 4) Элементы управления не “вылетают” */
  #listing-detail-hero-1 .swiper-button-prev,
  #listing-detail-hero-1 .swiper-button-next {
    transform: scale(0.9);
  }

  #listing-detail-hero-1 .swiper-pagination {
    bottom: 10px !important;
  }
}

/* Ландшафт на телефоне: делаем окно ниже, чтобы не съедало весь экран */
@media (max-width: 900px) and (orientation: landscape) {
  #listing-detail-hero-1 .gallery-frame,
  #listing-detail-hero-1 .hero-area,
  #listing-detail-hero-1 .swiper-container,
  #listing-detail-hero-1 #listing-detail-hero-1-swiper,
  #listing-detail-hero-1 .swiper {
    height: clamp(240px, 70vh, 420px) !important;
  }
}

/* =========================
   Detail mobile: photo window size FIX (controls .hero-area)
   ========================= */

/* Телефон (портрет): делаем окно заметно ниже */
@media (max-width: 576px) {
  #listing-detail-hero-1 .hero-area {
    height: clamp(220px, 42vh, 340px) !important;  /* было 72vw */
    max-height: none !important;
  }

  /* чтобы вложенные элементы точно подстраивались */
  #listing-detail-hero-1 .swiper-container,
  #listing-detail-hero-1 .swiper,
  #listing-detail-hero-1 .swiper-wrapper,
  #listing-detail-hero-1 .swiper-slide {
    height: 100% !important;
  }

  #listing-detail-hero-1 .listing-hero-img {
    height: 100% !important;
    object-fit: cover;
  }
}

/* Телефон (ландшафт): ещё ниже, чтобы не занимало весь экран */
@media (max-width: 900px) and (orientation: landscape) {
  #listing-detail-hero-1 .hero-area {
    height: clamp(180px, 55vh, 260px) !important;
  }
}


/* =========================
   Detail: mobile gallery size (FINAL)
   ========================= */
@media (max-width: 576px) {
  /* ВАЖНО: НЕ задаём высоту gallery-frame/swiper — только hero-area */
  #listing-detail-hero-1 .hero-area {
    height: clamp(200px, 38vh, 300px) !important; /* реально компактно */
  }

  /* все вложенные элементы заполняют hero-area */
  #listing-detail-hero-1 .swiper-container,
  #listing-detail-hero-1 .swiper,
  #listing-detail-hero-1 .swiper-wrapper,
  #listing-detail-hero-1 .swiper-slide,
  #listing-detail-hero-1 #listing-detail-hero-1-swiper {
    height: 100% !important;
  }

  /* рамка галереи не должна диктовать высоту */
  #listing-detail-hero-1 .gallery-frame {
    height: auto !important;
  }

  /* картинка ровно в окно */
  #listing-detail-hero-1 .listing-hero-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
  }
}

/* Ландшафт: ещё ниже */
@media (max-width: 900px) and (orientation: landscape) {
  #listing-detail-hero-1 .hero-area {
    height: clamp(170px, 52vh, 240px) !important;
  }
}


/* =========================
   FIX: Detail hero photo window on mobile
   Remove min-height from .hero-area
   ========================= */

@media (max-width: 576px) {
  #listing-detail-hero-1 .hero-area {
    min-height: 0 !important;     /* или unset, но 0 надёжнее */
    height: clamp(200px, 38vh, 300px) !important;
  }
}

/* landscape телефоны */
@media (max-width: 900px) and (orientation: landscape) {
  #listing-detail-hero-1 .hero-area {
    min-height: 0 !important;
    height: clamp(170px, 52vh, 240px) !important;
  }
}

@media (max-width: 576px) {
  #listing-detail-hero-1 .hero-area {
    aspect-ratio: auto !important;
  }
}

/* =========================
   Header: burger + mobile drawer
   ========================= */

/* burger hidden on desktop */
.header__burger {
  display: none;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.12);
  border-radius: 12px;
  width: 44px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.header__burger-lines {
  width: 18px;
  height: 2px;
  background: rgba(255,255,255,0.90);
  position: relative;
  display: block;
  border-radius: 2px;
}

.header__burger-lines::before,
.header__burger-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: rgba(255,255,255,0.90);
  border-radius: 2px;
}

.header__burger-lines::before { top: -6px; }
.header__burger-lines::after  { top:  6px; }

/* drawer base */
.header__drawer {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .20s ease;
  z-index: 1200;
}

.header__drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(360px, 92vw);
  background: #070B14;
  border-left: 1px solid rgba(255,255,255,0.10);
  transform: translateX(100%);
  transition: transform .22s ease;
  padding: 16px;
  box-shadow: -18px 0 50px rgba(0,0,0,0.40);
}

.header__drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header__drawer-title {
  color: rgba(255,255,255,0.92);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.header__drawer-close {
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.92);
  border-radius: 12px;
  width: 42px;
  height: 38px;
}

.header__drawer-nav {
  display: grid;
  gap: 8px;
  padding: 14px 0;
}

.header__drawer-link {
  display: block;
  padding: 12px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: rgba(255,255,255,0.88);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
}

.header__drawer-link:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.16);
}

.header__drawer-actions {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: grid;
  gap: 10px;
}

.header__drawer-phone {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-weight: 700;
}

/* open state */
body.header-drawer-open .header__drawer {
  opacity: 1;
  pointer-events: auto;
}

body.header-drawer-open .header__drawer-panel {
  transform: translateX(0);
}

/* mobile layout: hide desktop nav/actions, show burger */
@media (max-width: 992px) {
  .header__nav,
  .header__actions {
    display: none;
  }
  .header__burger {
    display: inline-flex;
  }
   .detail-kv__pill-value {
    font-size: 16px;
  }
  .detail-kv__pill-label {
    font-size: 12px;
  }

  .arend {
    font-size: 19px;
  }

  
}
.detail-summary__title {
    white-space: normal;       /* разрешаем перенос */
    word-break: break-word;    /* перенос длинных слов */
    overflow: visible;
    text-overflow: unset;
}
.mb-1 {
  padding-bottom: 25px;
  padding-top: 10px;
}
/* =========================
   Header drawer: overlay + full slide
   ========================= */

.header__drawer {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;

  background: rgba(0,0,0,0.62) !important;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);

  opacity: 0;
  pointer-events: none;
  transition: opacity .20s ease;
}

.header__drawer-panel {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  height: 100% !important;

  width: min(360px, 92vw) !important;
  max-width: 92vw !important;

  background: #070B14 !important;
  border-left: 1px solid rgba(255,255,255,0.10) !important;

  transform: translateX(110%) !important;
  transition: transform .22s ease !important;

  box-shadow: -18px 0 50px rgba(0,0,0,0.45);
}

body.header-drawer-open .header__drawer {
  opacity: 1 !important;
  pointer-events: auto !important;
}

body.header-drawer-open .header__drawer-panel {
  transform: translateX(0) !important;
}

/* бонус: чтобы при открытом меню страница не скроллилась */
body.header-drawer-open {
  overflow: hidden;
}

/* =========================
   Mobile drawer: style CTA button "Заявка"
   ========================= */

.header__drawer-actions .btn.btn--ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;

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

  font-weight: 800;
  letter-spacing: 0.2px;
  text-decoration: none;

  /* премиальный "ghost" на тёмном фоне */
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.92);
}

.header__drawer-actions .btn.btn--ghost:hover,
.header__drawer-actions .btn.btn--ghost:focus {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.20);
  color: rgba(255,255,255,0.98);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.28);
}

.header__drawer-actions .btn.btn--ghost:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(0,0,0,0.22);
}
/* =========================
   Cards: equal image height
   ========================= */

/* Контейнер фото в карточке */
.property-card__media,
.property-card__image,
.property-card__img-wrap,
.property-card__photo {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Картинка всегда заполняет контейнер */
.property-card__media img,
.property-card__image img,
.property-card__img-wrap img,
.property-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;          /* обрезаем аккуратно */
  object-position: center;
  display: block;
}

/* =========================
   Cards: equal photo size via aspect-ratio (best)
   ========================= */

.property-card__media,
.property-card__image,
.property-card__img-wrap,
.property-card__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;   /* можно 4/3, 3/2 — скажи что нравится */
  overflow: hidden;
}

/* если img внутри ссылки/обёртки — растягиваем */
.property-card__media > a,
.property-card__image > a,
.property-card__img-wrap > a,
.property-card__photo > a {
  display: block;
  width: 100%;
  height: 100%;
}

/* картинка заполняет окно */
.property-card__media img,
.property-card__image img,
.property-card__img-wrap img,
.property-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}


@media (max-width: 992px) {
  /* заголовки */
.property-card__meta dt {
  font-size: 17px;
}

.property-card__meta dd {

  font-size: 17.5px;

}
.property-card__address {
  font-size: 17.5px;
}
  
.property-card__price {
  font-size: 25px;
}
.property-card__tag {
  font-size: 17.5px;
}
.btn--secondary {
  font-size: 20px;
}
.header__logo-mark {
  padding-left: 35px;
  font-size: 20px;
}
.header__logo-text {
  padding-left: 24px;
  font-size: 20px;
}

.chip {
  font-size: 16px;
}

.chip--metro {
  font-size: 17px;
}

.detail-price__sub {
  font-size: 16px;
}

span {
  font-size: 17px;
}

.action-panel__title {
  font-size: 18px;
}

.action-panel__subtitle {
  font-size: 16px;
}

.btn-outline-secondary {
  font-size: 20px;
}

.btn-primary {
  font-size: 20px;
}

.detail-icon-btn {
  font-size: 17px;
}

.detail-summary__title {
  font-size: 20px;
}
}


/* временно скрываем кружочки на карточках — перекрывают плашки */
.card-gallery__dots { display: none !important; }

/* ================================
   DETAIL (555–900): no overflow
   ================================ */
@media (min-width: 555px) and (max-width: 900px) {

  /* на всякий случай убираем горизонтальный скролл */
  html, body { overflow-x: hidden; }

  /* контейнер, чтобы не упиралось в края */
  #listing-detail-hero-1 .container-xl {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* галерея: вместо фиксированной высоты делаем резиновую */
  #listing-detail-hero-1 .hero-area {
    height: 56vw;       /* адаптивная высота */
    max-height: 520px;  /* потолок */
    min-height: 340px;  /* чтобы не было слишком низко */
  }

  /* рамка галереи всегда влезает */
  #listing-detail-hero-1 .gallery-frame {
    max-width: 100%;
    padding: 10px;
    border-radius: 12px;
  }

  /* правый блок "Сводка": кнопка "Поделиться" не расталкивает */
  #copyUrlButton {
    min-width: 0 !important;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 0.9rem;
  }

  /* длинный заголовок точно не выталкивает сетку */
  .detail-summary__title {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

.property-card__row {
  display: flex;
  align-items: center;
  gap: 8px;

  background: #000;

  padding: 8px 16px;

  /* 👇 ключевая часть */
  margin: -12px -16px 12px -16px; 
}

.property-card__body {
  padding: 12px 16px;
}

/* типы */
.property-card__tag--аренда {
  --deal-color: #4f8cff; /* синий */
}

.property-card__tag--продажа {
  --deal-color: #888888; /* серый */
}

.property-card__tag--арендный-бизнес {
  --deal-color: #d4af37; /* золото */
}

.property-card__row {
  --deal-color: #333; /* fallback */

  display: flex;
  align-items: center;
  gap: 8px;

  padding: 8px 16px;
  margin: -12px -16px 12px -16px;

  border-radius: 0;

  background: linear-gradient(
    135deg,
    var(--deal-color, #333) 0%,
    rgba(0, 0, 0, 0.85) 100%
  );
}


.property-card__row:has(.property-card__tag--продажа),
.property-card__row:has(.property-card__tag--sell) {
  --deal-color: rgba(60, 122, 229, 0.8);
}

.property-card__row:has(.property-card__tag--аренда),
.property-card__row:has(.property-card__tag--rent) {
  --deal-color: rgba(82, 196, 255, 0.8);
}

.property-card__row:has(.property-card__tag--арендный-бизнес),
.property-card__row:has(.property-card__tag--rent-business) {
  --deal-color: rgba(160, 220, 0, 0.8);
}

/* БАЗА */
.property-card__row {
  display: flex;
  align-items: center;
  gap: 8px;

  padding: 8px 16px;
  margin: -12px -16px 12px -16px;

  background: linear-gradient(
    135deg,
    #000000 0%,
    rgba(116, 124, 3, 0.85) 100%
  );
}

/* =========================
   ПРОДАЖА (база — холодный синий)
   ========================= */
.property-card__row:has(.property-card__tag--продажа),
.property-card__row:has(.property-card__tag--sell) {
  background: linear-gradient(
    135deg,
    rgba(5, 10, 20, 0.95) 0%,
    rgba(20, 60, 110, 0.85) 100%
  );
}

/* =========================
   АРЕНДА (тот же цвет, но холоднее/фиолетовее)
   ========================= */
.property-card__row:has(.property-card__tag--аренда),
.property-card__row:has(.property-card__tag--rent) {
  background: linear-gradient(
    135deg,
    rgba(5, 10, 20, 0.95) 0%,
    rgba(40, 30, 110, 0.85) 100%
  );
}

/* =========================
   АРЕНДНЫЙ БИЗНЕС (тот же диапазон, но с “золотым” оттенком)
   ========================= */
.property-card__row:has(.property-card__tag--арендный-бизнес),
.property-card__row:has(.property-card__tag--rent-business) {
  background: linear-gradient(
    135deg,
    rgba(5, 10, 20, 0.95) 0%,
    rgba(90, 80, 30, 0.85) 100%
  );
}
.property-card__tag {
  font-size: 12px;
  font-weight: 400;

  padding: 0;              /* ❌ убираем кнопку */
  border-radius: 0;        /* ❌ убираем pill */
  border: none;            /* ❌ убираем бордер */

  background: none !important; /* ❌ убираем фон */

  color: rgba(255,255,255,0.7);

  opacity: 0.9;

  pointer-events: none;    /* ❌ нельзя кликнуть */
  cursor: default;
}






/* =========================
   ОБЩАЯ БАЗА (очень важна)
   ========================= */
.property-card__row {
  display: flex;
  align-items: center;
  gap: 8px;

  padding: 10px 16px;
  margin: -12px -16px 12px -16px;

  position: relative;
  overflow: hidden;
}

/* общий “дорогой” слой */
.property-card__row::before {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    135deg,
    #05070D 0%,
    #0A1120 50%,
    #06080F 100%
  );

  z-index: 0;
}

/* лёгкий синий glow (очень subtle) */
.property-card__row::after {
  content: "";
  position: absolute;
  inset: 0;

  background: radial-gradient(
    circle at right,
    rgba(200, 170, 70, 0.28), /* усилили золото */
    transparent 70%
  );

  z-index: 0;
}

/* контент поверх */
.property-card__row > * {
  position: relative;
  z-index: 1;
}



/* =========================
   ПРОДАЖА — холодный синий
   ========================= */
.property-card__row:has(.property-card__tag--продажа)::after,
.property-card__row:has(.property-card__tag--sell)::after {
  background: radial-gradient(
    circle at right,
    rgba(40, 90, 180, 0.28),  /* было 0.18 → усилили */
    transparent 60%
  );
}

/* =========================
   АРЕНДА — чуть фиолетовый оттенок
   ========================= */
.property-card__row:has(.property-card__tag--аренда)::after,
.property-card__row:has(.property-card__tag--rent)::after {
  background: radial-gradient(
    circle at right,
    rgba(90, 70, 180, 0.22),  /* мягкий фиолетово-синий */
    transparent 65%
  );
}

/* =========================
   АРЕНДНЫЙ БИЗНЕС — золото (но премиум)
   ========================= */
.property-card__row:has(.property-card__tag--арендный-бизнес)::after,
.property-card__row:has(.property-card__tag--rent-business)::after {
  background: radial-gradient(
    circle at right,
    rgba(200, 170, 70, 0.28), /* усилили золото */
    transparent 70%
  );
}

.property-card__tag {
  font-size: 13px;           /* было 11–12 → увеличили */
  font-weight: 500;          /* было 400 → сделали увереннее */

  color: rgba(255,255,255,0.9); /* ярче */

  letter-spacing: 0.3px;     /* премиум-эффект */

  padding: 0;
  border: none;
  border-radius: 0;
  background: none;

  pointer-events: none;
  cursor: default;
}

.property-card__footer {
  display: flex;
  justify-content: center;
}

.btn--secondary {

  width: 70%;           /* 🔥 шире */
  max-width: 260px;    /* чтобы не растягивалась на десктопе */

}

.btn--secondary:hover {
  background: linear-gradient(
    135deg,
    rgba(30, 60, 120, 0.95),
    rgba(15, 30, 60, 0.95)
  );

  transform: translateY(-1px);

  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}



/* =========================
   LUXURY BUTTON (same classes)
   ========================= */

.property-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.property-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* кнопка всегда внизу */
.property-card__footer {
  margin-top: auto;
  margin-top: 20px;
}

/* =========================
   САМА КНОПКА
   ========================= */

.property-card__footer .btn--secondary {
  position: relative;

  width: 100%;
  height: 44px;

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

  padding: 0;
  border: none;
  border-radius: 0;

  text-decoration: none;
  overflow: hidden;

  /* 🔥 глубокий дорогой фон */
  background: linear-gradient(
    to top,
    rgba(8, 18, 40, 0.95),
    rgba(8, 18, 40, 0.75)
  );

  backdrop-filter: blur(6px);

  /* тонкая верхняя линия */
  border-top: 1px solid rgba(255,255,255,0.08);

  /* плавность */
  transition: all 0.3s ease;
}

/* текст */
.property-card__footer .btn--secondary {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* =========================
   SHINE ЭФФЕКТ
   ========================= */

.property-card__footer .btn--secondary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;

  width: 50%;
  height: 100%;

  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.12),
    transparent
  );

  transform: skewX(-20deg);
  transition: 0.6s;
}

/* =========================
   HOVER
   ========================= */

.property-card__footer .btn--secondary:hover {
  background: linear-gradient(
    to top,
    rgba(10, 25, 55, 1),
    rgba(10, 25, 55, 0.85)
  );

  box-shadow: 0 -6px 24px rgba(0,0,0,0.4);
}

/* пробегающий свет */
.property-card__footer .btn--secondary:hover::after {
  left: 120%;
}


/* .property-card__body {
  padding-bottom: 0;
} */

.property-card {
  border-radius: 0;
}

.property-card__image,
.property-card__image img {
  border-radius: 0;
}

.property-card__footer .btn--secondary:hover {
  transform: none; /* 🔥 фикс */
}


/* =========================
   PROPERTY META (LUXURY TECH)
   ========================= */

.property-card__meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;

  margin-top: 12px;
}

/* каждая характеристика */
.property-card__meta > div {
  padding: 10px 12px;

  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);

  border-radius: 6px;

  transition: all 0.2s ease;
}

/* заголовок (метраж, цена/м²) */
.property-card__meta dt {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 2px;

  text-transform: uppercase;
  letter-spacing: 1px;
}

/* значение */
.property-card__meta dd {
  margin: 0;

  font-size: 14px;
  color: #fff;
  font-weight: 500;
}

.property-card__meta dd {
  letter-spacing: 0.5px;
}
.property-card__meta {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 12px;
}

.property-list {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px;
}

.property-card {
  display: flex;
  flex-direction: column;
  height: 100%; /* 🔥 важно */
}
.property-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.property-card__footer {
  margin-top: auto;
  padding-top: 12px;
}

.property-card__meta > div {
  position: relative;
  overflow: hidden;

  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
}

/* 🔥 слой подсветки */
.property-card__meta > div::after {
  content: "";
  position: absolute;
  inset: 0;

  background: rgba(255,255,255,0.06);
  opacity: 0;

  transition: opacity 1.5s ease;
}

@keyframes metaPulse {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}




.property-card__meta > div {
  padding: 10px 12px;

  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);

  border-radius: 6px;
}
.property-card__meta > div {
  box-shadow: inset 0 0 10px rgba(255,255,255,0.02);
}

.property-card__meta dd {
  font-weight: 600;
  letter-spacing: 0.5px;
}
/* =========================
   ADDRESS (LUXURY TECH)
   ========================= */

.property-card__address {
  position: relative;

  margin: 10px 0 12px;

  font-size: 15px;
  line-height: 1.4;

  color: rgba(255,255,255,0.9);

  font-weight: 500;
  letter-spacing: 0.2px;
}

/* тонкая линия-акцент */
.property-card__address::before {
  content: "";
  position: absolute;
  left: 0;
  top: -6px;

  width: 40px;
  height: 2px;

  background: rgba(255,255,255,0.15);
}
.property-card__address {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}
.property-card__address {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.property-card__meta dd {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;

  overflow: hidden;
}






.property-card__meta > div {
  height: 74px; /* 🔥 под 2 строки */

  display: flex;
  flex-direction: column;
  justify-content: center;
}
.property-card__meta dd {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;

  overflow: hidden;
  line-height: 1.2;
}







/* =========================
   MODAL BASE
   ========================= */

.lux-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

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

.lux-modal.active {
  display: flex;
}

/* затемнение */
.lux-modal__overlay {
  position: absolute;
  inset: 0;

  background: rgba(5, 10, 25, 0.75);
  backdrop-filter: blur(8px);
}

/* =========================
   CONTENT
   ========================= */

.lux-modal__content {
  position: relative;
  width: 100%;
  max-width: 480px;

  padding: 36px 32px;

  background: linear-gradient(
    to bottom,
    rgba(10, 20, 45, 0.95),
    rgba(10, 20, 45, 0.85)
  );

  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;

  box-shadow: 0 20px 80px rgba(0,0,0,0.6);

  z-index: 2;
}

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

.lux-modal__header h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
}

.lux-modal__header p {
  margin: 0 0 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

/* =========================
   FORM
   ========================= */

.lux-form__group {
  position: relative;
  margin-bottom: 18px;
}

.lux-form__group input,
.lux-form__group textarea {
  width: 100%;
  padding: 14px 12px;

  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;

  color: #fff;
  font-size: 14px;

  outline: none;
  transition: all 0.2s ease;
}

/* фокус */
.lux-form__group input:focus,
.lux-form__group textarea:focus {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
}

/* label */
.lux-form__group label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);

  font-size: 13px;
  color: rgba(255,255,255,0.5);

  pointer-events: none;
  transition: 0.2s ease;
}

/* анимация label */
.lux-form__group input:focus + label,
.lux-form__group input:not(:placeholder-shown) + label,
.lux-form__group textarea:focus + label,
.lux-form__group textarea:not(:placeholder-shown) + label {
  top: -8px;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}

/* =========================
   BUTTON
   ========================= */

.lux-form__submit {
  width: 100%;
  height: 52px;

  margin-top: 10px;

  background: linear-gradient(
    to top,
    rgba(12, 28, 60, 1),
    rgba(12, 28, 60, 0.85)
  );

  border: none;
  border-radius: 0;

  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;

  cursor: pointer;
  transition: 0.3s ease;
}

.lux-form__submit:hover {
  box-shadow: 0 0 20px rgba(255,255,255,0.1);
}

/* =========================
   CLOSE
   ========================= */

.lux-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;

  background: none;
  border: none;
  color: rgba(255,255,255,0.5);

  font-size: 22px;
  cursor: pointer;
}

/* УБИРАЕМ bootstrap фон */
.modal-content {
  background: transparent;
  border: none;
  box-shadow: none;
}

.modal-header,
.modal-body,
.modal-footer {
  padding: 0;
  border: none;
}

.lux-modal-content {
  position: relative;

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

  padding: 40px 34px;

  background: linear-gradient(
    180deg,
    rgba(8, 18, 40, 0.98),
    rgba(8, 18, 40, 0.92)
  );

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

  box-shadow: 
    0 30px 120px rgba(0,0,0,0.7),
    inset 0 0 40px rgba(255,255,255,0.02);

  backdrop-filter: blur(12px);
}

.modal-backdrop.show {
  background: rgba(5, 10, 25, 0.85);
  backdrop-filter: blur(6px);
}

.lux-modal__header h3 {
  margin: 0 0 10px;

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

  color: #fff;
  letter-spacing: 0.5px;
}

.lux-modal__header p {
  margin: 0 0 28px;

  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

.lux-modal__close {
  position: absolute;
  top: 16px;
  right: 18px;

  width: 32px;
  height: 32px;

  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);

  background: rgba(255,255,255,0.03);

  color: rgba(255,255,255,0.6);
  font-size: 16px;

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

  cursor: pointer;
  transition: 0.2s ease;
}

.lux-modal__close:hover {
  background: rgba(255,255,255,0.08);
}

.modal-dialog {
  margin: 0;
}

.modal {
  padding: 20px;
}


.modal-dialog {
  margin: 0 auto !important;
}


.property-card__rent {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;

  margin: 12px 0 8px;
}

/* отдельные блоки */
.property-card__rent .rent-item {
  padding: 12px;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.05),
    rgba(255,255,255,0.02)
  );

  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;

  /* 🔥 делает их “выше уровнем” */
  box-shadow: inset 0 0 20px rgba(255,255,255,0.02);
}

/* подпись */
.rent-label {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 1px;
  text-transform: uppercase;
  
}

/* значение */
.rent-value {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.rent-item {
  text-align: right;
}

.rent-item_one {
  padding: 12px;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.05),
    rgba(255,255,255,0.02)
  );

  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;

  /* 🔥 делает их “выше уровнем” */
  box-shadow: inset 0 0 20px rgba(255,255,255,0.02);
}



.rent-item_one,
.rent-item {
   background: linear-gradient(
    180deg,
    rgba(255,255,255,0.05),
    rgba(255,255,255,0.02)
  );
}
