/* Страница деталей объявления */

/* ── Галерея ─────────────────────────────────────────────────────────────────── */

.ld-gallery {
  margin-bottom: 32px;
}

.ld-gallery__main {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}

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

.ld-gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  backdrop-filter: blur(4px);
}

.ld-gallery__arrow:hover {
  background: rgba(0, 0, 0, 0.75);
}

.ld-gallery__arrow--prev { left: 14px; }
.ld-gallery__arrow--next { right: 14px; }

.ld-gallery__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.ld-gallery__thumb {
  width: 72px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s, border-color 0.2s;
}

.ld-gallery__thumb.is-active,
.ld-gallery__thumb:hover {
  opacity: 1;
  border-color: var(--accent);
}

.ld-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.2s;
}

.ld-back:hover {
  color: var(--text);
}

.ld-banner {
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: var(--radius-lg);
  position: relative;
  margin-bottom: 32px;
  overflow: hidden;
}

.ld-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.1) 55%, transparent 100%);
}

.ld-banner__watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.07);
  pointer-events: none;
  white-space: nowrap;
}

.ld-banner__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 9px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.55);
  color: #c8d4f0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 2;
}

.ld-banner__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 28px;
  z-index: 2;
}

.ld-banner__district {
  margin: 0 0 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.ld-banner__title {
  margin: 0 0 6px;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #fff;
}

.ld-banner__price {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.01em;
}

.ld-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: stretch;
}

@media (max-width: 720px) {
  .ld-body {
    grid-template-columns: 1fr;
  }
}

/* Main column */

.ld-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ld-meta li {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}

.ld-meta__label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.ld-meta__val {
  font-size: 1rem;
  font-weight: 600;
}

.ld-desc {
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}

.ld-desc__text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.7;
  white-space: pre-line;
}

/* Sidebar */

.ld-sidebar {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ld-divider {
  margin-top: auto;
}

.ld-section-label {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.ld-owner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ld-owner__avatar {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(158, 175, 212, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--accent);
}

.ld-owner__name {
  margin: 0 0 3px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.ld-owner__role {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.ld-divider {
  border: none;
  border-top: 1px solid var(--border);
}

.ld-phone {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
  color: var(--text);
}

.ld-no-phone {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
}
