* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

.app {
  min-height: 100vh;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.container {
  max-width: 900px;
  width: 100%;
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  margin-top: 40px;
}

h1 {
  color: #333;
  font-size: 2.5em;
  margin-bottom: 10px;
  text-align: center;
}

.subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
  font-size: 1.1em;
}

.form {
  margin-bottom: 30px;
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 600;
}

.input-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.input-group input:focus {
  outline: none;
  border-color: #667eea;
}

.input-group input:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
}

button {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.error {
  background-color: #fee;
  border: 2px solid #fcc;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  color: #c33;
}

.results {
  margin-top: 30px;
}

.results h2 {
  color: #333;
  margin-bottom: 20px;
  font-size: 1.5em;
}

.estimate-card {
  background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
  border: 2px solid #667eea;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.estimate-card h3 {
  color: #667eea;
  margin-bottom: 16px;
  font-size: 1.3em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.estimate-content {
  color: #333;
  line-height: 1.8;
  font-size: 1.05em;
}

.estimate-content p {
  margin: 8px 0;
}

.estimate-value {
  font-size: 1.3em;
  font-weight: 700;
  color: #667eea;
  margin: 12px 0 !important;
}

.property-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.property-card {
  background: #f8f9fa;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 24px;
  transition: box-shadow 0.3s;
}

.property-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.property-card h3 {
  color: #667eea;
  margin-bottom: 16px;
  font-size: 1.2em;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

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

.property-item.full-width {
  grid-column: 1 / -1;
}

.property-item .label {
  font-weight: 600;
  color: #666;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.property-item .value {
  color: #333;
  font-size: 1.1em;
}

.property-item .link {
  color: #667eea;
  text-decoration: none;
  word-break: break-all;
}

.property-item .link:hover {
  text-decoration: underline;
}

.no-results {
  text-align: center;
  padding: 40px;
  color: #666;
  font-size: 1.1em;
}

.raw-json {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #e0e0e0;
}

.raw-json details {
  cursor: pointer;
}

.raw-json summary {
  color: #667eea;
  font-weight: 600;
  margin-bottom: 10px;
  padding: 8px;
}

.raw-json pre {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
  font-size: 0.9em;
  color: #333;
}

