/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #222;
  background: #f5f5f5;
  line-height: 1.5;
}
a { color: #1a3a5c; }

/* --- Header --- */
.header {
  background: #1a3a5c;
  color: #fff;
  padding: 1rem;
  text-align: center;
}
.header h1 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.header .subtitle {
  font-size: 0.875rem;
  color: #c5a55a;
  font-weight: 600;
}
.header .phone {
  margin-top: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #c5a55a;
}
.header .phone a { color: #c5a55a; text-decoration: none; }

/* --- Container --- */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem;
}

/* --- Search Form --- */
.search-form {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: end;
}
.search-form .field { flex: 1 1 200px; }
.search-form .field-district { flex: 0 1 180px; }
.search-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 0.25rem;
}
.search-form input[type="text"],
.search-form select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95rem;
}
.search-form button {
  background: #1a3a5c;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  align-self: end;
}
.search-form button:hover { background: #254d73; }

/* --- Notice Box --- */
.notice {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.notice h2 {
  font-size: 1rem;
  color: #1a3a5c;
  margin-bottom: 0.5rem;
  border-bottom: 2px solid #c5a55a;
  padding-bottom: 0.25rem;
}
.notice p { font-size: 0.9rem; margin-bottom: 0.5rem; }

/* --- Disclaimer --- */
.disclaimer {
  background: #fff3cd;
  border: 1px solid #e6c200;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  color: #664d03;
}

/* --- Appeals --- */
.appeals {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.appeals h2 {
  font-size: 1rem;
  color: #1a3a5c;
  margin-bottom: 0.5rem;
  border-bottom: 2px solid #c5a55a;
  padding-bottom: 0.25rem;
}
.appeals p, .appeals li { font-size: 0.9rem; }
.appeals ul { margin: 0.5rem 0 0.5rem 1.25rem; }
.appeals strong { color: #1a3a5c; }
.appeals .small-text {
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

/* --- Results --- */
.results-info {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.75rem;
}
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.875rem;
}
thead { background: #1a3a5c; color: #fff; }
th {
  padding: 0.6rem 0.75rem;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #eee;
}
tbody tr:hover { background: #f0f4f8; }
tbody tr { cursor: pointer; }
td.money { text-align: right; font-variant-numeric: tabular-nums; }

/* --- Property Detail --- */
.property-header {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.property-header h2 {
  font-size: 1.1rem;
  color: #1a3a5c;
  margin-bottom: 0.75rem;
}
.prop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}
.prop-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
}
.prop-field .value {
  font-size: 0.95rem;
  font-weight: 500;
}

.assessment {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.assessment h3 {
  font-size: 1rem;
  color: #1a3a5c;
  margin-bottom: 0.75rem;
  border-bottom: 2px solid #c5a55a;
  padding-bottom: 0.25rem;
}
.assessment table { margin-bottom: 0; }
.change-up { color: #c0392b; font-weight: 600; }
.change-down { color: #27ae60; font-weight: 600; }
.total-row { font-weight: 700; border-top: 2px solid #1a3a5c; }

.btn-pdf {
  display: inline-block;
  background: #c5a55a;
  color: #1a3a5c;
  font-weight: 700;
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.btn-pdf:hover { background: #b8963f; }
.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* --- Footer --- */
.footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
  color: #888;
  border-top: 1px solid #ddd;
  margin-top: 2rem;
}
