/* ========================================
   TRACTOR COMPARISON PAGE
======================================== */

.tractor-compare-wrapper {
  max-width: 1240px;
  margin: 40px auto 80px;
  padding: 0 20px;
}

/* ========================================
   SELECTOR FORM
======================================== */

.tractor-compare-form {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  align-items: end;
  gap: 20px;
  padding: 30px;
  margin-bottom: 40px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
}

.tractor-compare-select label {
  display: block;
  margin-bottom: 10px;
  color: #1d2b45;
  font-size: 14px;
  font-weight: 600;
}

.tractor-compare-select select {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  border: 1px solid #dfe3e8;
  border-radius: 6px;
  background: #ffffff;
  font-size: 15px;
}

.tractor-compare-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 3px;
  border-radius: 50%;
  background: #d71920;
  color: #ffffff;
  font-weight: 700;
}

.tractor-compare-button {
  height: 52px;
  padding: 0 25px;
  border: 0;
  border-radius: 5px;
  background: #d71920;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.tractor-compare-button:hover {
  background: #b9151b;
}

/* ========================================
   MESSAGES
======================================== */

.tractor-compare-message {
  margin: 25px 0;
  padding: 16px 20px;
  border-left: 4px solid #d71920;
  background: #fff4f4;
  color: #1d2b45;
}

/* ========================================
   TRACTOR COMPARISON HEADER
======================================== */

.tractor-comparison-head {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) minmax(0, 1fr);
  border: 1px solid #e5e7eb;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  background: #ffffff;
}

.comparison-label-column {
  display: flex;
  align-items: center;
  padding: 25px;
  background: #f7f8fa;
  color: #1d2b45;
  font-size: 18px;
  font-weight: 700;
}

.comparison-tractor {
  padding: 25px;
  text-align: center;
  border-left: 1px solid #e5e7eb;
}

.comparison-tractor img {
  display: block;
  width: 100%;
  height: 260px;
  margin: 0 auto 20px;
  object-fit: contain;
  background: #ffffff;
}

.comparison-tractor h2 {
  margin: 0 0 10px;
  color: #172642;
  font-size: 24px;
  line-height: 1.3;
}

.comparison-price {
  margin-bottom: 18px;
  color: #d71920;
  font-size: 18px;
  font-weight: 700;
}

.comparison-view-button {
  display: inline-block;
  padding: 11px 22px;
  border: 1px solid #d71920;
  border-radius: 4px;
  color: #d71920 !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
}

.comparison-view-button:hover {
  background: #d71920;
  color: #ffffff !important;
}

/* ========================================
   COMPARISON TABLE
======================================== */

.tractor-comparison-table {
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  border-left: 1px solid #e5e7eb;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
}

.comparison-section-title {
  padding: 16px 22px;
  background: #f3f4f6;
  border-top: 1px solid #e5e7eb;
  color: #172642;
  font-size: 19px;
  font-weight: 700;
}

.comparison-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) minmax(0, 1fr);
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
}

.comparison-label,
.comparison-value {
  padding: 16px 22px;
  line-height: 1.5;
}

.comparison-label {
  background: #fafafa;
  color: #555555;
  font-weight: 500;
}

.comparison-value {
  border-left: 1px solid #e5e7eb;
  color: #172642;
  font-weight: 600;
}

/* ========================================
   TABLET
======================================== */

@media (max-width: 921px) {
  .tractor-compare-form {
    grid-template-columns: 1fr 1fr;
  }

  .tractor-compare-vs {
    display: none;
  }

  .tractor-compare-button {
    grid-column: 1 / -1;
  }

  .tractor-comparison-head,
  .comparison-row {
    grid-template-columns:
      160px
      minmax(0, 1fr)
      minmax(0, 1fr);
  }

  .comparison-tractor img {
    height: 200px;
  }
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 600px) {
  .tractor-compare-wrapper {
    padding: 0 12px;
    margin-top: 25px;
  }

  .tractor-compare-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
  }

  .tractor-comparison-head {
    grid-template-columns: 1fr 1fr;
  }

  .comparison-label-column {
    display: none;
  }

  .comparison-tractor {
    padding: 12px;
  }

  .comparison-tractor img {
    height: 140px;
  }

  .comparison-tractor h2 {
    font-size: 17px;
  }

  .comparison-price {
    font-size: 14px;
  }

  .comparison-row {
    grid-template-columns: 1fr 1fr;
  }

  .comparison-label {
    grid-column: 1 / -1;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
  }

  .comparison-value {
    padding: 13px 10px;
    font-size: 13px;
    text-align: center;
  }

  .comparison-value:nth-child(2) {
    border-left: 0;
  }

  .comparison-section-title {
    padding: 14px;
    font-size: 17px;
  }
}
