/* Objects archive page */
.objects-archive-page {
  --objects-card-border: 1px solid rgba(255, 255, 255, 0.12);
  --objects-card-bg: linear-gradient(164deg, rgba(22, 34, 50, 0.66), rgba(12, 20, 33, 0.54));
}

.objects-archive-page__hero {
  margin-bottom: 24px;
}

.objects-archive-page__summary {
  margin: 14px 0 0;
  font-size: 14px;
  color: #b9c9e2;
}

.objects-filters {
  margin: 0 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.objects-filter {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: #dce8fb;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  padding: 0 12px;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.objects-filter:hover {
  border-color: rgba(245, 166, 29, 0.6);
  color: #ffe3b4;
}

.objects-filter.is-active {
  border-color: rgba(245, 166, 29, 0.74);
  background: rgba(245, 166, 29, 0.16);
  color: #ffe3b4;
}

.objects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.object-card {
  border: var(--objects-card-border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--objects-card-bg);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.object-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 166, 29, 0.42);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.object-card__image-link {
  display: block;
  height: 196px;
  background: rgba(8, 14, 24, 0.5);
}

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

.object-card__image-link--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, rgba(245, 166, 29, 0.18), rgba(108, 157, 255, 0.2));
}

.object-card__image-placeholder {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 14, 24, 0.82);
  color: #ffe2ae;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.object-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  flex: 1 1 auto;
}

.object-card__year {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  line-height: 1.2;
  color: #ffe0ac;
  border: 1px solid rgba(245, 166, 29, 0.46);
  background: rgba(245, 166, 29, 0.12);
}

.object-card__title {
  margin: 0;
  font-size: 20px;
  line-height: 1.24;
}

.object-card__title a {
  color: #eef4ff;
  transition: color 180ms ease;
}

.object-card__title a:hover {
  color: #ffe0ac;
}

.object-card__address {
  margin: 0;
  color: #a9bddf;
  font-size: 13px;
  line-height: 1.4;
}

.object-card__groups {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.object-card__groups li {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #d9e6fb;
  font-size: 12px;
  line-height: 1.2;
  padding: 4px 9px;
}

.object-card__excerpt {
  margin: 0;
  color: #dbe7fb;
  font-size: 14px;
  line-height: 1.56;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.object-card__link {
  margin-top: auto;
  width: fit-content;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(245, 166, 29, 0.5);
  color: #f7d29a;
  background: rgba(245, 166, 29, 0.08);
  font-size: 13px;
  font-weight: 700;
  transition: border-color 200ms ease, background 200ms ease, color 200ms ease;
}

.object-card__link:hover {
  border-color: rgba(245, 166, 29, 0.85);
  background: rgba(245, 166, 29, 0.16);
  color: #ffe3b4;
}

.object-card__link:focus-visible {
  outline: 2px solid rgba(255, 214, 152, 0.9);
  outline-offset: 2px;
}

.objects-archive-page__empty {
  margin: 0;
  padding: 16px 18px;
  border: var(--objects-card-border);
  border-radius: 12px;
  color: #cfddf4;
  background: rgba(255, 255, 255, 0.02);
}

.objects-archive-page__cta {
  margin-top: 26px;
}

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

@media (max-width: 640px) {
  .objects-filters {
    gap: 6px;
    margin-bottom: 14px;
  }

  .objects-filter {
    min-height: 34px;
    font-size: 12px;
    padding: 0 10px;
  }

  .objects-grid {
    grid-template-columns: 1fr;
  }

  .object-card__image-link {
    height: 186px;
  }

  .object-card__excerpt {
    -webkit-line-clamp: 5;
  }

  .object-card__link {
    width: 100%;
    justify-content: center;
  }

  .objects-archive-page__cta .cta-actions {
    flex-direction: column;
  }

  .objects-archive-page__cta .cta-actions .btn,
  .objects-archive-page__cta .cta-actions .btn-secondary {
    width: 100%;
  }
}

/* Object page enhancements: harmony and content geometry */
.object-detail-page {
  --object-space-1: 12px;
  --object-space-2: 18px;
  --object-space-3: 24px;
  --object-space-4: 32px;
  --object-radius: 18px;
  --object-border: 1px solid rgba(255, 255, 255, 0.11);
}

.object-detail-page__hero {
  margin-bottom: var(--object-space-3);
}

.object-detail-page__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--object-space-3);
  align-items: start;
}

.object-detail-page__content,
.object-detail-page__gallery-col {
  min-width: 0;
}

.object-detail-page__gallery-col {
  display: grid;
  gap: var(--object-space-2);
  align-content: start;
}

.object-detail-page__details-grid {
  margin-top: var(--object-space-4);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--object-space-3);
  align-items: stretch;
}

.object-detail-page__details-grid > .object-detail-page__block {
  margin-top: 0;
  height: 100%;
}

.object-detail-page__details-grid .object-results-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.object-detail-page__details-grid .object-results-item strong {
  font-size: 22px;
}

.object-detail-page__details-grid .object-timeline__comment {
  font-size: 16px;
}

.object-detail-page__layout + .object-detail-page__details-grid {
  margin-top: var(--object-space-4);
}

.object-detail-page__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.object-detail-page__address,
.object-detail-page__year {
  margin: 0;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  line-height: 1.2;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.object-detail-page__year {
  color: #ffe2ae;
  border-color: rgba(245, 166, 29, 0.46);
  background: rgba(245, 166, 29, 0.12);
}

.object-detail-page__block + .object-detail-page__block {
  margin-top: var(--object-space-2);
}

.object-detail-page__text p,
.object-detail-page__text li {
  color: #dbe6fa;
  line-height: 1.56;
}

.object-detail-page__text p {
  margin: 0;
}

.object-detail-page__text p + p,
.object-detail-page__text ul,
.object-detail-page__text ol {
  margin-top: 10px;
}

.object-detail-page__cta-section {
  margin-top: var(--object-space-4);
  margin-bottom: 0;
}

.object-detail-page__cta-section .object-detail-page__back-link {
  margin-top: 14px;
  display: inline-block;
  font-size: 14px;
  color: #9eb2d6;
  text-decoration: none;
}

.object-detail-page__cta-section .object-detail-page__back-link:hover {
  color: #dbe6fa;
}

.object-gallery {
  position: relative;
  top: auto;
  border-radius: 18px;
  overflow: hidden;
  border: var(--object-border);
  background: rgba(8, 17, 31, 0.72);
  box-shadow: 0 14px 32px rgba(3, 8, 18, 0.2);
  width: 100%;
  min-width: 0;
}

.object-gallery-shell {
  position: relative;
}

.object-gallery .swiper-wrapper {
  display: flex;
  margin: 0;
}

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

.object-gallery__slide {
  background: rgba(8, 17, 31, 0.72);
  overflow: hidden;
  margin: 0;
  border-radius: inherit;
}

.object-gallery__slide img,
.object-gallery--single img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0;
  border-radius: inherit;
}

.object-gallery .swiper-pagination {
  bottom: 12px !important;
}

.object-gallery .swiper-pagination-bullet {
  width: 9px;
  height: 9px;
  background: rgba(255, 255, 255, 0.34);
  opacity: 1;
}

.object-gallery .swiper-pagination-bullet-active {
  background: var(--color-primary);
}

.object-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(7, 15, 28, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 10px 26px rgba(2, 7, 18, 0.42);
  backdrop-filter: blur(3px);
}

.object-gallery__nav::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-top: 2.5px solid currentColor;
  border-right: 2.5px solid currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}

.object-gallery__nav--prev {
  left: 10px;
}

.object-gallery__nav--prev::after {
  transform: translate(-50%, -50%) rotate(-135deg);
}

.object-gallery__nav--next {
  right: 10px;
}

.object-gallery__nav:hover {
  border-color: rgba(245, 166, 35, 0.9);
  color: #ffd8a1;
  background: rgba(10, 20, 36, 0.92);
}

.object-gallery__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.object-results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.object-results-item {
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 14px 12px;
}

.object-results-item strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
  color: #ffe2ae;
  margin-bottom: 6px;
}

.object-results-item span {
  display: block;
  font-size: 13px;
  color: #dbe6fa;
  line-height: 1.35;
}

.object-timeline__total {
  margin: 0 0 18px;
  font-size: 14px;
  color: #f4d8a8;
}

.object-timeline {
  list-style: none;
  margin: 0;
}

.object-timeline::before {
  display: none;
}

.object-timeline__item {
  position: relative;
}

.object-timeline__item::before {
  display: none;
}

.object-timeline__duration {
  margin: 0 0 4px;
  font-size: 14px;
  color: #9eb2d6;
}

.object-timeline__comment {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #dce6f8;
}

.object-related {
  margin-top: var(--object-space-4);
}

.object-related__title {
  margin: 0 0 14px;
  font-size: clamp(24px, 2.1vw, 30px);
  line-height: 1.15;
  text-wrap: balance;
}

.object-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.object-related-card {
  position: relative;
  overflow: hidden;
}

.has-object-reveal .object-results-item,
.has-object-reveal .object-timeline__item,
.has-object-reveal .object-related-card {
  opacity: 1;
  transform: none;
  transition: opacity 360ms ease, transform 420ms ease;
}

.has-object-reveal .object-timeline__item {
  transform: none;
  transition: opacity 380ms ease, transform 420ms ease;
}

.object-results-item.is-visible,
.object-timeline__item.is-visible,
.object-related-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.object-timeline__item:nth-child(2),
.object-results-item:nth-child(2),
.object-related-card:nth-child(2) {
  transition-delay: 60ms;
}

.object-timeline__item:nth-child(3),
.object-results-item:nth-child(3),
.object-related-card:nth-child(3) {
  transition-delay: 110ms;
}

.object-timeline__item:nth-child(4),
.object-results-item:nth-child(4),
.object-related-card:nth-child(4) {
  transition-delay: 160ms;
}

@media (prefers-reduced-motion: reduce) {
  .object-results-item,
  .object-timeline__item,
  .object-related-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.object-related-card__image-wrap {
  display: block;
}

.object-related-card__image {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.object-related-card__body {
  padding: 12px;
}

.object-related-card__body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
  color: #eef4ff;
}

.object-related-card__link {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}

.object-related-card__link:focus-visible {
  outline: 2px solid #f5a61d;
  outline-offset: -2px;
}

.object-related-card__body p {
  margin: 0;
  font-size: 14px;
  color: #dbe6fa;
}

.object-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(4, 7, 14, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.object-lightbox.is-open {
  display: flex;
}

.object-lightbox__image {
  max-width: min(1200px, 94vw);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 18px 64px rgba(0, 0, 0, 0.45);
}

.object-lightbox__close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .object-detail-page__layout {
    gap: 20px;
  }

  .object-detail-page__gallery-col {
    gap: 14px;
  }

  .object-gallery {
    position: relative;
    top: auto;
    overflow: hidden;
  }

  .object-gallery__nav--prev {
    left: 8px;
  }

  .object-gallery__nav--next {
    right: 8px;
  }

  .object-gallery__nav {
    width: 42px;
    height: 42px;
  }
}

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

  .object-results-grid,
  .object-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .object-detail-page__hero {
    margin-bottom: 14px;
  }

  .object-results-grid,
  .object-related__grid {
    grid-template-columns: 1fr;
  }

  .object-detail-page__details-grid .object-results-grid {
    grid-template-columns: 1fr;
  }

  .object-detail-page__meta {
    margin-top: 10px;
  }

  .object-detail-page__cta-section .about-page__cta-actions .btn,
  .object-detail-page__cta-section .about-page__cta-actions .btn-secondary {
    width: 100%;
  }

  .object-lightbox {
    padding: 12px;
  }

  .object-gallery {
    border-radius: 16px;
  }

  .object-gallery__slide img,
  .object-gallery--single img {
    aspect-ratio: 2/1;
  }

  .object-lightbox__close {
    top: 10px;
    right: 10px;
  }
}
