.backButton {
  margin-bottom: 12px;
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  background: var(--tg-theme-button-color, #2481cc);
  color: var(--tg-theme-button-text-color, #fff);
}

.advertDetails {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.advertPhotos {
  width: 100%;
  margin-bottom: 16px;
}

.advert-photo {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 14px;
  flex-shrink: 0;
}

.noPhoto {
  width: 100%;
  height: 220px;
  border-radius: 14px;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
}

.advertSidebar {
  background: var(--tg-theme-secondary-bg-color, #f2f2f2);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

.advertPrice {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 14px;
}

.advertFields {
  background: var(--tg-theme-secondary-bg-color, #f5f5f5);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
}

.field span {
  color: #777;
}


.photoSlider {
  width: 100%;
}

.mainPhotoWrap {
  position: relative;
  width: 100%;
  height: 460px;
  border-radius: 8px;
  overflow: hidden;
  background: #d9d9d9;
}

.mainPhoto {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #bfc5c9;
}

.photoCounter {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);

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

  padding: 10px 18px;
  border-radius: 8px;
  background: rgba(15, 25, 45, 0.95);

  color: white;
  font-size: 18px;
  font-weight: 700;
}

.cameraIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.thumbs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-top: 12px;
}

.thumb {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  border: 3px solid transparent;
}

.thumb.active {
  border-color: #007aff;
}

@media (max-width: 600px) {
  .mainPhotoWrap {
    height: 280px;
  }

  .photoCounter {
    font-size: 15px;
    padding: 8px 12px;
  }

  .thumb {
    width: 76px;
    height: 58px;
  }
}


.mainPhotoWrap {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 320px;
  touch-action: pan-y;
}

.photoTrack {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
  will-change: transform;
}

.slidePhoto {
  width: 100%;
  min-width: 100%;
  height: 100%;
  object-fit: contain;
  flex-shrink: 0;
}

.advertText {
  padding: 18px 20px;
  border-radius: 18px 18px 18px 6px;
  font-size: 16px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--tg-theme-secondary-bg-color, #f5f5f5);
}


.advertLayout {
    padding-bottom: 90px;
}

.advertMainColumn {
    min-width: 0;
}


.bottomActions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 10px;

  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--tg-theme-bg-color, #fff);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
  z-index: 100;

  transform: translateZ(0);
  will-change: transform;
}

.bottomButton {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 48px;
  border-radius: 14px;

  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
}

.telegramButton {
  background: var(--tg-theme-button-color, #2481cc);
  color: var(--tg-theme-button-text-color, #fff);
}

.buttonIcon {
  width: 25px;
  height: 25px;
  margin-left: 5px;
}

.authorButton {
  background: var(--tg-theme-secondary-bg-color, #f2f2f2);
  color: var(--tg-theme-text-color, #000);
}