/* ZAQVKA PAGE STYLES */

.zaqvka-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
}

.zaqvka-map {
  width: 100%;
  height: 360px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  margin-top: 20px;
  z-index: 0;
}

.form-row {
  display: flex;
  gap: 10px;
  align-items: center; /* <-- align input + buttons vertically */
  flex-wrap: wrap;
}

.form-row .form-input {
  height: 36px; /* match button height */
}

.form-row button {
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center; /* center button text */
  margin-top: 9px;
  padding: 0 14px;
}

.form-row button {
  height: 36px;
}

.info-display {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-row-bottom {
  align-items: center;
}

.form-group-no-margin {
  margin-bottom: 0;
}

.generate-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.generate-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex: 1;
  min-width: 220px;
}

.generate-right button {
  width: auto;
  min-width: 160px;
  padding-left: 16px;
  padding-right: 16px;
}

.signal-box {
  background: #f2f9ff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}

.signal-header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.signal-category {
  flex: 1;
}

.category-text {
  font-weight: 600;
  color: var(--navy);
}

.signal-location {
  text-align: right;
}

.location-label {
  font-size: 12px;
  color: var(--text-muted);
}

.location-coords {
  font-weight: 600;
  color: var(--text-main);
}

.signal-textarea {
  width: 100%;
  border: none;
  background: transparent;
  resize: none;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  white-space: pre-wrap;
  outline: none;
  padding: 0;
  margin: 0;
}

.signal-textarea:disabled {
  color: var(--text-main);
}

.signal-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* Fix for mobile responsiveness */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
  }
  .form-row > .form-group {
    width: 100%;
  }
  .form-row button,
  .form-row .generate-right {
    width: 100%;
    max-width: 100%;
  }
  .form-row button {
    padding: 10px;
  }
  .generate-right {
    justify-content: flex-start;
  }
  .auto-search-wrapper {
    position: relative;
  }

  .auto-search-wrapper input {
    padding-right: 44px; /* space for clear button */
  }

  .auto-clear,
  .auto-search-wrapper .auto-clear {
    display: none !important;
    /* position: absolute;
    top: 50%;
    right: 8px;
    width: 24px;
    height: 24px;
    transform: translateY(-50%);
    align-items: center;
    justify-content: center;
    color: var(--text-muted); */
  }

  .auto-clear:before {
    height: 24px;
    width: 24px;
  }
}

/* Image Upload styles */
.upload-container {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.upload-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1.5px dashed var(--border);
  border-radius: 12px;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.upload-btn:hover {
  border-color: var(--sky);
  background: rgba(30, 144, 255, 0.05);
  color: var(--sky);
}

.image-preview {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
  display: none;
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview.active {
  display: block;
}

.preview-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
}
