.add-ad-page {
  padding-top: var(--header-h);
  background: var(--ivory);
  min-height: 100vh;
}

.add-ad-main {
  padding: 1.5rem 0 3rem;
}

.add-ad {
  display: grid;
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
}

.add-ad h1,
.add-ad h2 {
  font-size: 1.35rem;
}

.add-ad__lead {
  color: var(--text-secondary);
  margin-top: 0.4rem;
}

.add-ad__box,
.add-ad__card {
  background: #fff;
  border: 1px solid rgba(30, 42, 56, 0.08);
  border-radius: 16px;
  padding: 14px;
}

.add-ad label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  margin-top: 12px;
}

.add-ad textarea,
.add-ad input,
.add-ad select {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(30, 42, 56, 0.14);
  padding: 10px 12px;
  font: inherit;
  background: var(--ivory);
  color: var(--text-primary);
}

.add-ad textarea {
  min-height: 180px;
  resize: vertical;
}

.add-ad__photos {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0;
}

.add-ad__photo {
  position: relative;
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  border-radius: 12px;
  overflow: hidden;
  background: #f3efe8;
}

.add-ad__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.add-ad__photo button {
  position: absolute;
  top: 4px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  width: 26px;
  height: 26px;
  cursor: pointer;
}

.add-ad__photo button[data-remove] { left: 4px; }
.add-ad__photo button[data-move] { right: 4px; }

.add-ad__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 800px) {
  .add-ad__grid { grid-template-columns: 1fr 1fr; }
}

.add-ad__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.add-ad__note,
#add-ad-message {
  color: #8a5a12;
  font-weight: 700;
  min-height: 1.4em;
}

.add-ad [hidden] { display: none !important; }
