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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", sans-serif;
  font-size: 16px;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

* {
  font-size: inherit;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 20px;
}

header h1 {
  font-size: 1.8rem;
  color: #2c3e50;
}

header p {
  color: #666;
}

nav {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.nav-btn {
  flex: 1;
  min-width: 100px;
  padding: 12px 16px;
  border: none;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-btn:hover {
  background: #e8e8e8;
}

.nav-btn.active {
  background: #3498db;
  color: #fff;
}

.view {
  display: none;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.view.active {
  display: block;
}

h2 {
  margin-bottom: 20px;
  color: #2c3e50;
  font-size: 1.3rem;
}

.form-group {
  margin-bottom: 16px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row .form-group {
  flex: 1;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #555;
}

input, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #3498db;
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn.primary {
  background: #3498db;
  color: #fff;
}

.btn.primary:hover {
  background: #2980b9;
}

.btn.danger {
  background: #e74c3c;
  color: #fff;
}

.btn.danger:hover {
  background: #c0392b;
}

.btn.back {
  background: #95a5a6;
  color: #fff;
  margin-bottom: 16px;
}

.property-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.property-card:hover {
  border-color: #3498db;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

.property-card h3 {
  color: #2c3e50;
  margin-bottom: 8px;
}

.property-card .meta {
  color: #666;
}

.property-card .meta span {
  margin-right: 16px;
}

.property-card .progress {
  margin-top: 10px;
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
}

.property-card .progress-bar {
  height: 100%;
  background: #27ae60;
  transition: width 0.3s;
}

.empty-state {
  text-align: center;
  padding: 40px;
  color: #999;
}

.category {
  margin-bottom: 24px;
}

.category-title {
  font-size: 1.1rem;
  color: #2c3e50;
  padding-bottom: 8px;
  border-bottom: 2px solid #3498db;
  margin-bottom: 12px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  gap: 12px;
}

.checklist-item:last-child {
  border-bottom: none;
}

.checklist-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
}

.checklist-item .item-content {
  flex: 1;
}

.checklist-item .item-name {
  font-weight: 500;
}

.checklist-item .item-notes {
  margin-top: 6px;
}

.checklist-item .item-notes input {
  padding: 6px 10px;
}

.checklist-item .rating {
  display: flex;
  gap: 4px;
}

.checklist-item .rating button {
  width: 32px;
  height: 32px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
}

.checklist-item .rating button.active {
  background: #3498db;
  color: #fff;
  border-color: #3498db;
}

.checklist-item.checked .item-name {
  color: #27ae60;
}

#detail-info {
  background: #f8f9fa;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 20px;
}

#detail-info p {
  margin: 4px 0;
}

.detail-actions {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.section-header {
  background: #2c3e50;
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  margin: 20px 0 16px 0;
  font-size: 1.1rem;
}

#compare-checkboxes {
  margin: 16px 0;
}

#compare-checkboxes label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  cursor: pointer;
}

#compare-checkboxes input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

#compare-result {
  margin-top: 20px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  border: 1px solid #e0e0e0;
  padding: 10px;
  text-align: left;
}

.compare-table th {
  background: #f8f9fa;
  font-weight: 600;
}

.compare-table .check-yes {
  color: #27ae60;
  font-weight: bold;
}

.compare-table .check-no {
  color: #e74c3c;
}

footer {
  margin-top: 30px;
  text-align: center;
  color: #666;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
}

@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .checklist-item {
    flex-wrap: wrap;
  }
  
  .checklist-item .rating {
    width: 100%;
    margin-top: 8px;
  }
}
