/* ============================= */
/* КАРУСЕЛЬ "НАШИ ОБЪЕКТЫ" */
/* ============================= */

.objects-carousel {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
}

.obj-stage {
  position: relative;
  width: 100%;
  height: 420px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

/* Контейнер для каждой карточки */
.carousel-item-container {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 190px;
  border-radius: 16px;
  overflow: visible;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease;
}

/* БАЗОВЫЙ СТИЛЬ ИЗОБРАЖЕНИЙ */
.obj-stage img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  border: 4px solid white;
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
  transition: all 0.4s ease;
}

/* ====== АКТИВНЫЙ ====== */
.obj-stage img.active {
  opacity: 1;
}

.carousel-item-container:has(img.active) {
  transform: translateX(-50%) scale(1);
  width: 400px;
  height: 300px;
  opacity: 1;
  z-index: 10;
  pointer-events: auto;
}

.carousel-item-container:has(img.active) img {
  box-shadow: 0 25px 35px rgba(0,55,159,0.3),
              0 0 0 5px #00379f;
}

/* ====== СОСЕДНИЕ ====== */
.carousel-item-container:has(img.prev) {
  transform: translateX(calc(-50% - 220px)) scale(0.9);
  width: 320px;
  height: 220px;
  opacity: 0.9;
  z-index: 5;
  pointer-events: auto;
}

.carousel-item-container:has(img.next) {
  transform: translateX(calc(-50% + 220px)) scale(0.9);
  width: 320px;
  height: 220px;
  opacity: 0.9;
  z-index: 5;
  pointer-events: auto;
}

/* ====== ДАЛЬНИЕ ====== */
.carousel-item-container:has(img.prev2) {
  transform: translateX(calc(-50% - 420px)) scale(0.8);
  opacity: 0.6;
  z-index: 1;
}

.carousel-item-container:has(img.next2) {
  transform: translateX(calc(-50% + 420px)) scale(0.8);
  opacity: 0.6;
  z-index: 1;
}

/* ============================= */
/* ПЛАШКА С ГОРОДОМ */
/* ============================= */

.location-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  padding: 6px 16px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 30px;
  color: white;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 15;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  white-space: nowrap;
}



.carousel-item-container:hover .location-badge {
  opacity: 1;
  transform: translateY(0);
}

/* ============================= */
/* СКРЫВАЕМ СТАРЫЕ ЭЛЕМЕНТЫ */
/* ============================= */

.image-caption {
  display: none !important;
}

.tooltip-card {
  display: none !important;
}

/* ============================= */
/* КНОПКИ */
/* ============================= */

.obj-btn {
  background: #fff;
  border: none;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: 0.3s;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
}

.obj-btn:hover {
  background: #00379f;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0,55,159,0.3);
}

/* ============================= */
/* ИНДИКАТОРЫ */
/* ============================= */

.carousel-indicators-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.carousel-indicators {
  display: flex;
  gap: 18px;
  padding: 14px 40px;
  border-radius: 60px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.indicator {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid #00379f;
  background: transparent;
  cursor: pointer;
  transition: 0.3s;
  padding: 0;
}

.indicator.active {
  background: #00379f;
  transform: scale(1.3);
}

.indicator:hover {
  background: rgba(0,55,159,0.3);
}

/* ============================= */
/* ЭФФЕКТЫ ПРИ НАВЕДЕНИИ НА КАРТОЧКУ */
/* ============================= */

.carousel-item-container {
  cursor: pointer;
}

.carousel-item-container:hover img {
  transform: scale(1.02);
}

.carousel-item-container:has(img.active):hover img {
  box-shadow: 0 30px 40px rgba(0,55,159,0.4),
              0 0 0 5px #00379f;
}

/* ============================= */
/* МОБИЛЬНАЯ ВЕРСИЯ */
/* ============================= */

@media (max-width: 768px) {

  .obj-stage {
    height: 320px;
  }

  .carousel-item-container:has(img.active) {
    width: 300px;
    height: 240px;
  }

  .carousel-item-container:has(img.prev),
  .carousel-item-container:has(img.next),
  .carousel-item-container:has(img.prev2),
  .carousel-item-container:has(img.next2) {
    display: none;
  }

  .obj-btn {
    width: 42px;
    height: 42px;
    font-size: 22px;
  }

  .location-badge {
    bottom: 12px;
    left: 12px;
    padding: 5px 12px;
    font-size: 0.7rem;
  }

  .carousel-indicators {
    gap: 12px;
    padding: 10px 25px;
  }

  .indicator {
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 480px) {
  .carousel-item-container:has(img.active) {
    width: 260px;
    height: 200px;
  }

  .location-badge {
    bottom: 10px;
    left: 10px;
    padding: 4px 10px;
    font-size: 0.65rem;
  }
}

/* ============================= */
/* OVERFLOW VISIBLE ДЛЯ РОДИТЕЛЕЙ */
/* ============================= */

.obj-stage,
.objects-carousel,
.gallery07,
.gallery07 .container-fluid,
.gallery07 .container-fluid > div,
section[class*="gallery"] {
  overflow: visible !important;
}