/* ========================================
   TRACTOR SEARCH AND FILTER
======================================== */

/* Main filter box */
.tractor-search-box {
  padding: 20px !important;
  position: relative;
  margin: 0px !important;
  z-index: 10;
}

/* Remove plugin list styling */
.tractor-search-box .searchandfilter ul {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin: 0;
  padding: 0;
}

.tractor-search-box .searchandfilter li {
  flex: 1;
  padding: 0;
  margin: 0;
  list-style: none;
}

/* Dropdowns */
.tractor-search-box .searchandfilter select {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid #e5e5e5;
  border-radius: 5px;
  background: #ffffff;
  font-size: 15px;
  box-sizing: border-box;
}

/* Search button */
.tractor-search-box .searchandfilter input[type="submit"] {
  width: 100%;
  height: 52px;
  padding: 0 25px;
  background: #d71920;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
}

.tractor-search-box .searchandfilter input[type="submit"]:hover {
  background: #b9151b;
  width: 100%;
}

/* Tablet */
@media (max-width: 1024px) {
  .tractor-search-box {
    margin: 0px !important;
    padding: 50px !important;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .tractor-search-box {
    margin: 0px !important;
    padding: 20px !important;
    font-size: 12px !important;
    align-items: stretch;
  }

  .tractor-search-box .searchandfilter ul {
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
  }

  .tractor-search-box .searchandfilter input[type="submit"] {
    width: auto;
    height: 30px;
    font-size: 13px;
    background-color: black;
    color: white;
  }

  .postform {
    display: flex !important;
    flex-direction: row !important;
    font-size: 10px !important;
    width: auto;
    height: 30px !important;
  }
}

/* Universal Grid Layout for All Tractor Archives & Searches */
.tractor-archive-wrap {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.tractor-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
  margin-top: 25px;
}

@media (max-width: 992px) {
  .tractor-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 576px) {
  .tractor-grid {
    grid-template-columns: repeat(1, 1fr) !important;
  }
}

.tractor-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tractor-card-img {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tractor-card-img img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.tractor-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 12px 0 8px;
  color: #111827;
}

.tractor-view-btn {
  color: #e11d48;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  text-decoration: none;
}
