/* ─────────────────────────────────────────────
   LAND VALUE CALCULATOR
   Clean consolidated stylesheet
   ───────────────────────────────────────────── */

:root {
  --lv-blue: #193f60;
  --lv-blue-dark: #102f49;
  --lv-blue-light: #eef4f8;
  --lv-gold: #dda943;
  --lv-text: #243443;
  --lv-muted: #6f7f8d;
  --lv-border: #dce4ea;
  --lv-soft: #f6f9fb;
  --lv-white: #ffffff;
  --lv-danger: #b42318;
  --lv-success: #16794c;
  --lv-shadow: 0 7px 22px rgba(27, 55, 77, 0.07);
}

/* =========================================================
   HERO
   ========================================================= */

.lv-hero {
  position: relative;
  padding: 64px 20px 72px;
  overflow: hidden;
  background: linear-gradient(
    125deg,
    #173a58 0%,
    #234f70 62%,
    #3f6f8d 100%
  );
}

.lv-hero::before {
  position: absolute;
  top: -150px;
  right: -100px;
  width: 430px;
  height: 430px;
  content: "";
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.lv-hero::after {
  position: absolute;
  bottom: -190px;
  left: -110px;
  width: 380px;
  height: 380px;
  content: "";
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);
}

.lv-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 45px;
}

.lv-hero-content {
  max-width: 800px;
}

.lv-hero-eyebrow {
  margin-bottom: 11px;
  color: #efb84e;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.lv-hero-title {
  margin: 0;
  color: #fff;
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.7px;
}

.lv-hero-description {
  max-width: 760px;
  margin: 17px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 16px;
  line-height: 1.7;
}

.lv-hero-summary {
  display: flex;
  flex: 0 0 255px;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(4px);
}

.lv-hero-summary-number {
  display: flex;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e8ad3f;
  color: #17344b;
  font-size: 21px;
  font-weight: 700;
}

.lv-hero-summary strong {
  display: block;
  margin-bottom: 3px;
  color: #fff;
  font-size: 14px;
}

.lv-hero-summary span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  line-height: 1.5;
}

/* =========================================================
   ROOT / LAYOUT
   ========================================================= */

.lv-root {
  width: calc(100% - 30px);
  max-width: 1170px;
  margin: 28px auto 70px;
  padding: 0;
  position: relative;
  z-index: 3;
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  color: var(--lv-text);
}

.lv-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 19px 16px;
}

.lv-col-12 {
  grid-column: span 12;
}

.lv-col-6 {
  grid-column: span 6;
}

.lv-col-4 {
  grid-column: span 4;
}

.lv-col-3 {
  grid-column: span 3;
}

/* =========================================================
   GUIDE BAR
   ========================================================= */

.lv-guide-bar {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    30px
    minmax(0, 1fr)
    30px
    minmax(0, 1fr);
  align-items: center;
  margin-bottom: 14px;
  padding: 18px 22px;
  border: 1px solid var(--lv-border);
  border-radius: 11px;
  background: var(--lv-white);
  box-shadow: var(--lv-shadow);
}

.lv-guide-item {
  display: flex;
  align-items: center;
  gap: 11px;
}

.lv-guide-number {
  display: flex;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e6ac42;
  color: #19374f;
  font-size: 13px;
  font-weight: 700;
}

.lv-guide-item strong {
  display: block;
  margin-bottom: 2px;
  color: #1c374c;
  font-size: 13px;
  font-weight: 650;
}

.lv-guide-item small {
  display: block;
  color: #73828e;
  font-size: 11px;
  line-height: 1.4;
}

.lv-guide-arrow {
  color: #a6b2bc;
  font-size: 27px;
  line-height: 1;
  text-align: center;
}

/* =========================================================
   NOTICE / WARNING
   ========================================================= */

.lv-simple-notice,
.lv-notice,
.lv-warning {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0 0 18px;
  padding: 13px 16px;
  border: 1px solid #dae3ea;
  border-left: 4px solid var(--lv-gold);
  border-radius: 8px;
  background: var(--lv-soft);
  color: #5f7180;
  line-height: 1.65;
}

.lv-simple-notice-icon,
.lv-notice-symbol {
  display: flex;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #1d4969;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.lv-simple-notice p,
.lv-notice p {
  margin: 0;
  font-size: 12px;
}

.lv-warning {
  margin-top: 22px;
  font-size: 13px;
}

/* =========================================================
   CARDS / HEADINGS
   ========================================================= */

.lv-card {
  padding: 27px 30px 34px;
  border: 1px solid var(--lv-border);
  border-radius: 12px;
  background: var(--lv-white);
  box-shadow: var(--lv-shadow);
}

.lv-calculator-card,
.lv-result-card {
  overflow: hidden;
}

.lv-title {
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.2;
}

.lv-muted {
  color: var(--lv-muted);
  line-height: 1.55;
}

.lv-section-title {
  position: relative;
  margin: 10px 0 6px;
  padding: 0 0 13px 15px;
  border-bottom: 1px solid #dfe5ea;
  color: #18384f;
  font-size: 22px;
  font-weight: 650;
  line-height: 1.35;
}

.lv-section-title::before {
  position: absolute;
  top: 1px;
  left: 0;
  width: 4px;
  height: 27px;
  content: "";
  border-radius: 4px;
  background: var(--lv-gold);
}

.lv-h3 {
  margin: 17px 0 2px;
  padding: 10px 13px;
  border-left: 3px solid #7793aa;
  border-radius: 5px;
  background: #f2f5f8;
  color: #365166;
  font-size: 16px;
  font-weight: 650;
}

.lv-margin-top {
  margin-top: 30px;
}

/* =========================================================
   FORM CONTROLS
   ========================================================= */

.lv-root label {
  display: block;
  margin-bottom: 7px;
  color: #263a4a;
  font-size: 13px;
  font-weight: 600;
}

.lv-root input[type="number"],
.lv-root input[type="date"],
.lv-root input[type="text"],
.lv-root select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #cbd5de;
  border-radius: 7px;
  background: #fff;
  color: #223341;
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  font-size: 14px;
  box-sizing: border-box;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.lv-root input:hover,
.lv-root select:hover {
  border-color: #aebbc7;
}

.lv-root input:focus,
.lv-root select:focus {
  border-color: #35688f;
  outline: none;
  box-shadow: 0 0 0 3px rgba(53, 104, 143, 0.12);
}

.lv-help {
  display: block;
  margin-top: 6px;
  color: #7a8793;
  font-size: 11px;
  line-height: 1.5;
}

/* =========================================================
   CHECKBOX
   ========================================================= */

.lv-root .lv-checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #d5dde4;
  border-radius: 7px;
  background: #f8fafb;
  color: #32495b;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-sizing: border-box;
}

.lv-root .lv-checkbox-label:hover {
  border-color: #b7c4cf;
  background: #f4f7f9;
}

.lv-root .lv-checkbox-label input[type="checkbox"] {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: static !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  -moz-appearance: checkbox !important;
  clip: auto !important;
  clip-path: none !important;
  transform: none !important;
  accent-color: var(--lv-blue);
  cursor: pointer;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.lv-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 25px;
  border-top: 1px solid #e1e7ec;
}

.lv-btn,
.lv-btn-secondary,
.lv-mls-button {
  min-height: 49px;
  padding: 12px 23px;
  border-radius: 7px;
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.lv-btn {
  min-width: 240px;
  border: 1px solid var(--lv-blue);
  background: var(--lv-blue);
  color: #fff;
  box-shadow: 0 5px 13px rgba(25, 63, 96, 0.18);
}

.lv-btn:hover {
  transform: translateY(-1px);
  border-color: var(--lv-blue-dark);
  background: var(--lv-blue-dark);
  box-shadow: 0 7px 17px rgba(25, 63, 96, 0.24);
}

.lv-btn:disabled,
.lv-mls-button:disabled {
  transform: none;
  cursor: wait;
  opacity: 0.65;
}

.lv-btn-secondary {
  border: 1px solid #c5d0d9;
  background: #fff;
  color: #485c6c;
}

.lv-btn-secondary:hover {
  transform: translateY(-1px);
  border-color: #9facb8;
  background: #f5f7f9;
}

/* =========================================================
   MLS LOADER
   ========================================================= */

.lv-mls-section {
  grid-column: span 12;
  width: 100%;
  margin: 3px 0 5px;
  padding: 18px;
  border: 1px solid var(--lv-border);
  border-radius: 10px;
  background: #f7f9fb;
  box-sizing: border-box;
}

.lv-mls-section .lv-h3 {
  margin: 0 0 13px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #29475d;
}

.lv-mls-content {
  width: 100%;
  max-width: 760px;
}

.lv-mls-loader {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 10px;
  align-items: stretch;
  width: 100%;
}

.lv-mls-loader input[type="text"] {
  min-width: 0;
}

.lv-mls-button {
  border: 1px solid #345f80;
  background: #fff;
  color: #234c6a;
  white-space: nowrap;
}

.lv-mls-button:hover {
  border-color: var(--lv-blue);
  background: #edf3f7;
}

.lv-optional {
  color: var(--lv-muted);
  font-size: 12px;
  font-weight: 400;
}

.lv-mls-message {
  min-height: 18px;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.4;
}

.lv-mls-message.lv-success {
  color: var(--lv-success);
}

.lv-mls-message.lv-error {
  color: var(--lv-danger);
}

/* =========================================================
   RESULTS
   ========================================================= */

.lv-results {
  margin-top: 25px;
}

.lv-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.lv-kpi {
  min-height: 110px;
  padding: 17px;
  border: 1px solid var(--lv-border);
  border-radius: 9px;
  background: #f8fafb;
}

.lv-kpi-primary {
  border-color: var(--lv-blue);
  background: var(--lv-blue-light);
}

.lv-kpi-title {
  margin-bottom: 8px;
  color: #71808d;
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.25px;
}

.lv-kpi-value {
  color: #1c3346;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.2;
}

.lv-kpi-sub {
  margin-top: 7px;
  color: #777;
  font-size: 12px;
}

.lv-range-box {
  margin-top: 20px;
  padding: 21px 18px;
  border: 1px solid #d4ad64;
  border-radius: 9px;
  text-align: center;
  background: linear-gradient(
    135deg,
    #fffaf0 0%,
    #f8edd8 100%
  );
}

.lv-range-title {
  margin-bottom: 6px;
  color: #7a6643;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.35px;
}

.lv-range-value {
  color: var(--lv-text);
  font-size: 26px;
  font-weight: 750;
}

.lv-range-help {
  margin-top: 7px;
  color: #756b5a;
  font-size: 12px;
  line-height: 1.55;
}

/* =========================================================
   DETAILS TABLE
   ========================================================= */

.lv-details {
  margin-top: 24px;
}

.lv-details-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(140px, 1fr);
  overflow: hidden;
  border: 1px solid #e1e6eb;
  border-radius: 8px;
}

.lv-label,
.lv-value {
  padding: 11px 12px;
  border-bottom: 1px solid #e5e9ed;
}

.lv-label {
  color: #60717e;
  background: #fbfcfd;
  font-size: 13px;
}

.lv-value {
  color: #273d4e;
  background: #fff;
  font-size: 13px;
  font-weight: 650;
  text-align: right;
}

.lv-positive {
  color: #137333;
}

.lv-negative {
  color: var(--lv-danger);
}

/* =========================================================
   DEBUG / ERRORS
   ========================================================= */

.lv-debug {
  margin-top: 18px;
}

.lv-debug summary {
  cursor: pointer;
  color: #555;
  font-weight: 700;
}

.lv-debug pre {
  max-height: 500px;
  overflow: auto;
  padding: 15px;
  border-radius: 6px;
  background: #111827;
  color: #e5e7eb;
  font-size: 12px;
  white-space: pre-wrap;
}

.lv-error {
  border-color: #d92d20;
  background: #fff5f5;
  color: var(--lv-danger);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
  .lv-hero {
    padding: 48px 20px 54px;
  }

  .lv-hero-inner {
    display: block;
  }

  .lv-hero-title {
    font-size: 35px;
  }

  .lv-hero-summary {
    max-width: 300px;
    margin-top: 23px;
  }

  .lv-guide-bar {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .lv-guide-arrow {
    display: none;
  }

  .lv-col-3,
  .lv-col-4 {
    grid-column: span 6;
  }

  .lv-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .lv-mls-loader {
    grid-template-columns: 1fr;
  }

  .lv-mls-button {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .lv-hero {
    padding: 37px 15px 42px;
  }

  .lv-hero-title {
    font-size: 28px;
  }

  .lv-hero-description {
    font-size: 14px;
  }

  .lv-hero-summary {
    display: none;
  }

  .lv-root {
    width: calc(100% - 20px);
    margin-top: 18px;
  }

  .lv-guide-bar {
    padding: 15px;
  }

  .lv-card {
    padding: 21px 16px 28px;
  }

  .lv-title {
    font-size: 26px;
  }

  .lv-section-title {
    font-size: 20px;
  }

  .lv-col-3,
  .lv-col-4,
  .lv-col-6,
  .lv-col-12 {
    grid-column: span 12;
  }

  .lv-kpis {
    grid-template-columns: 1fr;
  }

  .lv-details-grid {
    grid-template-columns: 1fr;
  }

  .lv-label {
    padding-bottom: 2px;
    border-bottom: none;
  }

  .lv-value {
    padding-top: 2px;
    text-align: left;
  }

  .lv-action-row {
    flex-direction: column;
  }

  .lv-btn,
  .lv-btn-secondary {
    width: 100%;
  }
}