.tractorhouse_for_sale {
    margin-bottom: 0px;
    width: 100%;
}

/* ------------- H2 Category Headers ------------- */

.tractorhouse_for_sale h2 {
    font-size: 1.5em; /* 1.5 times the default font size */
    background-color: blue; /* Add a background color */
    display: inline-block; /* Display as inline block to allow padding */
    padding: 10px 20px; /* Add padding to the top and bottom of the heading */
    cursor: pointer; /* Change cursor to pointer on hover */
    border-radius: 5px; /* Rounded corners */
    min-height: 80px; /* Set a minimum height */
    display: flex; /* Use flexbox */
    justify-content: center; /* Center the content horizontally */
    align-items: center; /* Center the content vertically */
}

.tractorhouse_for_sale h2 a, .tractorhouse_for_sale h2 a:link, .tractorhouse_for_sale h2 a:visited {
    color: white;
    text-align: center;
    text-decoration: none;
}

.tractorhouse_for_sale h2:hover, .tractorhouse_for_sale h2 a:hover {
    background-color: #6262ff; /* Lighter blue on hover */
    color: #ffffff; /* Keep text color white */
  }

/* ------------- Lists ------------- */

.tractorhouse_for_sale > ul, .tractorhouse_for_sale ul li ul {
    list-style-type: none; /* Remove bullets */
}

.tractorhouse_for_sale ul li a {
    color: #007BFF;
    text-decoration: none;
}

.tractorhouse_for_sale ul li a:link {
    text-decoration: none;
}

.tractorhouse_for_sale ul li a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* ------------- Grid Items ------------- */

/* Default grid layout for screens less than 1200px */
.grid-container {
    display: grid; /* Use Grid */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Dynamic column width for flexibility */
    grid-auto-flow: dense; /* Allow items to fill in gaps */
    gap: 10px; /* Adds space between grid items */
}

/* Grid layout for screens 1200px or greater */
@media screen and (min-width: 1200px) {
    .grid-container {
        display: grid;
        grid-template-columns: repeat(5, 1fr); /* Fixed 5-column layout */
        grid-auto-flow: dense;
        gap: 10px;
    }
}

.grid-item ul {
    list-style-type: none; /* Remove default list bullets */
    margin-left: 20px;
}

/* Top-level li marker */
.grid-item > ul > li:before {
content: "-"; /* Single hyphen for top-level items */
position: absolute;
left: -20px;
}

/* Nested li marker */
.grid-item ul ul li:before {
content: "--"; /* Double hyphen for nested items */
position: absolute;
left: -20px; /* Adjust this value if needed to align with the upper-level marker */
}

.grid-item ul li {
position: relative;
}

/* ------------- Search Box ------------- */

#tractorhouse_search {
    display: block;
    width: 75%;
    margin: 25px auto; /* Apply a 25px margin to all sides and auto to horizontally center */
    padding: 10px;
    background-color: white;
    border: 2px solid #007bff;
    border-radius: 25px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    outline: none;
    text-align: center; /* Center the placeholder text */
}

/* Adjust search box width for screens 1200px or greater */
@media screen and (min-width: 1200px) {
#tractorhouse_search {
    width: 50%;
}
}

#tractorhouse_search:focus {
border-color: #0056b3;
}  