:root {
  --blue: #0f3d91;
  --red: #c62828;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f8fafc;
  --card-shadow: 0 10px 30px rgba(0,0,0,.05);
  --radius: 24px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* =========================
   NAV
========================= */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);

  border-bottom: 1px solid var(--border);
}

.nav-inner {
  height: 74px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===================================
   BRAND
=================================== */

.brand {

  display: flex;
  align-items: center;
  gap: 14px;

  text-decoration: none;
}

.brand-logo {

  height: 62px;
  width: auto;

  display: block;

  flex-shrink: 0;
}

.brand-text {

  display: flex;
  align-items: center;
  gap: 6px;

  font-size: 1.2rem;
  font-weight: 800;

  letter-spacing: -0.02em;
}

.brand-blue {
  color: var(--blue);
}

.brand-red {
  color: var(--red);
}

@media (max-width: 720px) {

  .brand-logo {
    height: 36px;
  }

  .brand-text {
    font-size: 1rem;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  color: var(--text);
  transition: opacity .2s ease;
}

.nav-links a:hover {
  opacity: .7;
}

/* =========================
   HERO
========================= */

.hero {
  position: relative;
  overflow: hidden;

  padding: 80px 0 70px;

  background:
    radial-gradient(circle at top left, rgba(15,61,145,.08), transparent 35%),
    radial-gradient(circle at bottom right, rgba(198,40,40,.08), transparent 35%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;

  background: rgba(15,61,145,.08);
  color: var(--blue);

  padding: 8px 14px;
  border-radius: 999px;

  font-size: .9rem;
  font-weight: 700;

  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.8rem, 5.2vw, 4.6rem);
  line-height: .95;
  letter-spacing: -3px;

  margin-bottom: 24px;

  max-width: 800px;
}

.hero-sub {
  font-size: 1.18rem;
  color: var(--muted);

  max-width: 720px;

  margin-bottom: 34px;
}

/* =========================
   SEARCH
========================= */

.search-card {
  background: #fff;
  border: 1px solid var(--border);

  border-radius: var(--radius);

  padding: 24px;

  box-shadow: 0 20px 50px rgba(0,0,0,.06);

  max-width: 760px;
}

.search-card label {
  display: block;

  font-size: .95rem;
  font-weight: 700;

  margin-bottom: 12px;
}

.search-row {
  display: flex;
  gap: 12px;
}

.search-row input {
  flex: 1;

  height: 60px;

  border: 1px solid var(--border);
  border-radius: 16px;

  padding: 0 18px;

  font-size: 1rem;
  font-family: inherit;

  outline: none;

  transition: border-color .2s ease, box-shadow .2s ease;
}

.search-row input:focus {
  border-color: rgba(15,61,145,.35);
  box-shadow: 0 0 0 4px rgba(15,61,145,.08);
}

.search-row button {
  height: 60px;

  padding: 0 26px;

  border: 0;
  border-radius: 16px;

  background: var(--red);
  color: #fff;

  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;

  cursor: pointer;

  transition: transform .15s ease, opacity .2s ease;
}

.search-row button:hover {
  opacity: .92;
}

.search-row button:active {
  transform: translateY(1px);
}

.search-results {
  margin-top: 18px;
}

/* =========================
   SIDE PANEL
========================= */

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.panel-card,
.panel-stat,
.info-card {
  background: #fff;

  border: 1px solid var(--border);
  border-radius: var(--radius);

  padding: 30px;

  box-shadow: var(--card-shadow);
}

.panel-card h3,
.info-card h3 {
  font-size: 1.2rem;
  margin-bottom: 18px;
}

.panel-card ul {
  list-style: none;

  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panel-card li {
  position: relative;
  padding-left: 22px;
}

.panel-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;

  color: var(--red);
  font-weight: 700;
}

.stat-label {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;

  color: var(--muted);
}

.stat-value {
  font-size: 4rem;
  line-height: 1;
  font-weight: 800;

  color: var(--red);

  margin: 12px 0;
}

.stat-sub {
  color: var(--muted);
  font-size: 1rem;
}

/* =========================
   INFO SECTION
========================= */

.info-section {
  padding: 80px 0;
  background: var(--bg);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.info-card p {
  color: var(--muted);
}

/* =========================
   FOOTER
========================= */

.site-footer {
  padding: 42px 0;

  border-top: 1px solid var(--border);

  background: #fff;
}

.footer-inner {
  text-align: center;
}

.footer-inner p {
  color: var(--muted);
  font-size: .95rem;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 980px) {

  .hero-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 70px;
  }

  .hero h1 {
    letter-spacing: -2px;
  }

  .hero-panel {
    margin-top: 10px;
  }
}

@media (max-width: 720px) {

  .container {
    width: min(100% - 28px, 1180px);
  }

  .nav-inner {
    height: 68px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 56px 0 60px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-sub {
    font-size: 1.05rem;
  }

  .search-row {
    flex-direction: column;
  }

  .search-row button {
    width: 100%;
  }

  .panel-card,
  .panel-stat,
  .info-card,
  .search-card {
    padding: 22px;
    border-radius: 20px;
  }

  .stat-value {
    font-size: 3rem;
  }

  .info-section {
    padding: 60px 0;
  }
}


/* =========================
   PROPERTY PAGE
========================= */

.property-hero {
  padding: 70px 0;
  background: var(--bg);
  min-height: 80vh;
}

.loading-state {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  box-shadow: var(--card-shadow);
}

.property-header {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.property-header h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -2px;
  margin-top: 14px;
}

.property-owner {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1rem;
}

.tax-total-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  min-width: 320px;
  box-shadow: var(--card-shadow);
}

.tax-total-label {
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 700;
}

.tax-total-value {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}

.property-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--card-shadow);
}

.card-header {
  margin-bottom: 24px;
}

.card-header h2 {
  font-size: 1.5rem;
}

.authority-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;

  padding: 22px 0;

  border-bottom: 1px solid var(--border);
}

.authority-row:last-child {
  border-bottom: 0;
}

.authority-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.authority-mills {
  margin-top: 4px;
  color: var(--muted);
  font-size: .95rem;
}

.authority-tax {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
}

.stat-card {
  margin-bottom: 20px;
}

.stat-title {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 700;
}

.stat-big {
  font-size: 2.2rem;
  font-weight: 800;
}

.stat-medium {
  font-size: 1.1rem;
  font-weight: 700;
}

@media (max-width: 980px) {

  .property-header,
  .property-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .tax-total-card {
    min-width: 100%;
  }
}


/* =========================
   SEARCH RESULTS
========================= */

.search-results {
  margin-top: 16px;
}

.search-loading,
.search-empty {
  padding: 16px;
  color: var(--muted);
  font-size: .95rem;
}

.search-result {
  display: block;

  background: #fff;

  border: 1px solid var(--border);
  border-radius: 16px;

  padding: 16px 18px;

  margin-bottom: 10px;

  text-decoration: none;

  transition:
    transform .15s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}

.search-result:hover {
  transform: translateY(-1px);

  border-color: rgba(15,61,145,.2);

  box-shadow: 0 10px 20px rgba(0,0,0,.04);
}

.search-result-address {
  font-weight: 700;
  color: var(--text);
}

.search-result-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: .92rem;
}

/* ===================================
   ENHANCED PROPERTY PAGE
=================================== */

.card-header p {
  margin-top: 8px;
  color: var(--muted);
  font-size: .95rem;
}

#propertyAddress {
  max-width: 700px;
}

#largestTaxPercent {
  font-size: .92rem;
  color: var(--muted);
}

.largest-tax-card {

  background: linear-gradient(
    135deg,
    rgba(198,40,40,.06),
    rgba(198,40,40,.02)
  );

  border: 1px solid rgba(198,40,40,.12);

  border-radius: var(--radius);

  padding: 18px 22px;

  margin-bottom: 28px;

  width: 100%;
}

  border: 1px solid rgba(198,40,40,.15);

  border-radius: var(--radius);

  padding: 26px 30px;

  margin-bottom: 28px;
}

.largest-tax-label {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.largest-tax-name {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 8px 0 10px;
}

.largest-tax-meta {
  display: flex;
  gap: 16px;
  align-items: center;
}

#largestTaxAmount {
  color: var(--red);
  font-size: 1.2rem;
  font-weight: 800;
}

#largestTaxPercent {
  color: var(--muted);
  font-weight: 700;
}

.authority-row {
  display: flex;
  gap: 24px;
  justify-content: space-between;

  padding: 26px 0;

  border-bottom: 1px solid var(--border);
}

.authority-row:last-child {
  border-bottom: 0;
}

.authority-main {
  flex: 1;
}

.authority-top {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.authority-name {
  font-size: 1.05rem;
  font-weight: 700;
}

.authority-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: .92rem;
}

.authority-right {
  text-align: right;
  min-width: 110px;
}

.authority-tax {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
}

.authority-percent {
  margin-top: 4px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
}

.authority-bar {
  width: 100%;
  height: 8px;

  background: #eef1f5;

  border-radius: 999px;

  overflow: hidden;

  margin-top: 14px;
}

.authority-bar-fill {
  height: 100%;

  background: linear-gradient(
    90deg,
    var(--blue),
    #ef5350
  );

  border-radius: 999px;
}

.metro-badge {
  display: inline-flex;
  align-items: center;

  background: rgba(198,40,40,.08);
  color: var(--red);

  border: 1px solid rgba(198,40,40,.14);

  padding: 5px 10px;

  border-radius: 999px;

  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .05em;
}

@media (max-width: 720px) {

  .authority-row {
    flex-direction: column;
    gap: 14px;
  }

  .authority-right {
    text-align: left;
  }

  .largest-tax-name {
    font-size: 1.5rem;
  }
}

.county-link {
  display: inline-flex;
  align-items: center;

  margin-top: 16px;

  color: var(--blue);

  text-decoration: none;

  font-size: .92rem;
  font-weight: 700;

  transition: opacity .2s ease;
}

.county-link:hover {
  opacity: .75;
}

.property-grid {
  align-items: start;
}

/* ===================================
   CENTERED HERO
=================================== */

.hero-center {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-center h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: .92;
  letter-spacing: -0.04em;

  max-width: 900px;

  margin:
    26px auto
    28px;
}

.hero-center .hero-sub {
  max-width: 760px;

  margin:
    0 auto
    42px;

  font-size: 1.35rem;
}

.hero-note {
  margin-top: 26px;

  color: var(--muted);

  font-size: .95rem;
}

.search-card {
  max-width: 760px;
  margin: 0 auto;
}

.search-row {
  display: flex;
  gap: 14px;
}

.search-row input {
  flex: 1;
}

@media (max-width: 720px) {

  .hero-center h1 {
    font-size: 3.4rem;
  }

  .hero-center .hero-sub {
    font-size: 1.1rem;
  }

  .search-row {
    flex-direction: column;
  }

  .search-row button {
    width: 100%;
  }
}

.info-card {
  position: relative;
}

.info-icon {

  width: 42px;
  height: 42px;

  border-radius: 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    linear-gradient(
      135deg,
      rgba(15,61,145,.08),
      rgba(198,40,40,.06)
    );

  font-size: 1rem;

  flex-shrink: 0;
}

.info-card h3 {
  margin-bottom: 14px;
}

.info-heading {
  display: flex;
  align-items: center;
  gap: 14px;

  margin-bottom: 18px;
}

.info-heading h3 {
  margin: 0;
}

/* ===================================
   FOOTER
=================================== */

.site-footer {

  padding: 36px 0;

  border-top: 1px solid var(--border);

  background: #fff;

  text-align: center;
}

.site-footer p {

  margin: 0;

  color: var(--muted);

  font-size: .95rem;
}

.footer-disclaimer {

  margin-top: 10px !important;

  font-size: .82rem !important;

  opacity: .9;
}

/* ===================================
   BRAND LOGO
=================================== */

.brand {

  display: flex;
  align-items: center;
  gap: 14px;

  text-decoration: none;
}

.brand-logo {

  height: 62px;
  width: auto;

  display: block;
}

.brand-text {

  display: flex;
  align-items: center;
  gap: 6px;

  font-weight: 800;

  font-size: 1.2rem;

  letter-spacing: -0.02em;
}

@media (max-width: 720px) {

  .brand-logo {
    height: 36px;
  }

  .brand-text {
    font-size: 1rem;
  }
}