:root {
    --gap: 16px;
    --radius: 14px;
}

html {
    scroll-behavior: smooth;
}

.hero {
    background: url(https://cdn.prod.website-files.com/682c3c878b8044ff6d478f7f/6856ba8fd83515016bed804a_Rectangle%203.png);
    background-position: 50% 50%;
    background-size: cover;
    background-attachment: scroll;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 20px;
}

.text-for-head {
    padding: 4.5rem 0;
    max-width: 45rem;
    margin: 0 auto;
}

.text-for-head h1 {
    text-align: center;
    color: #fff;
    font-size: 40px;
    font-weight: 700;
}

.text-head-feature {
    padding: 2.5rem 2rem;
}

.text-head-feature h2 {
    font-size: 24px;
    text-align: center;
    font-weight: 700;
}

.text-head-feature p {
    text-align: center;
    font-size: 16px;
    font-weight: 500;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all .15s ease;
}

a:hover {
    transform: scale(1.1);
}

/* .container {
    max-width: 1250px;
} */

h1 {
    margin: 0 0 12px;
}

/* .toolbar {
    max-width: 1200px;
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr repeat(5, minmax(140px, 220px)) auto;
    align-items: end;
    margin: 0 auto;
}

.toolbar label {
    display: block;
}

.toolbar input,
.toolbar select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.toolbar input {
    flex: 1;
} */

.grid {
    display: grid;
    gap: 1.925rem;
    grid-template-columns: repeat(4, minmax(250px, 1fr));
    margin: 1rem auto;
}

.grid a {
    text-decoration: none;
    display: flex;
    justify-content: center;
}

.card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
    display: flex;
    flex-direction: column;
    width: 300px;
    height: 350px;
}

.thumb {
    width: 100%;
    height: 200px;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
    background: #f2f2f2;
}

.thumb.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}

.card-body {
    padding: 14px;
}

.price {
    margin: 0 0 0.25rem;
    font-size: 24px;
    color: #D51A1A;
}

.name {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.location {
    margin: 0;
    display: flex;
    gap: 0.25rem;
    align-items: center;
    font-size: 14px;
    font-weight: 400;
    color: #868686;
}

.location img {
    width: 1rem;
}

.pid {
    font-weight: 500;
    color: #777;
    font-size: 12px;
    margin-left: 8px
}

.meta {
    margin: 0;
    color: #888888;
    font-size: 16px;
    font-weight: 600;
}

.stats {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 6px 0 6px;
    color: #333;
    font-size: 14px;
    flex-wrap: wrap;
}

.stats span {
    display: flex;
    gap: 0.35rem;
    align-items: center;
}

.stats img {
    width: 1rem;
}

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.btn {
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #222;
    text-decoration: none;
    color: #222;
    font-weight: 600
}

.btn:hover {
    background: #111;
    color: #fff
}

.btn.ghost {
    background: #fff
}

.tag {
    background: #eee;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px
}

#loadMore.btn {
    margin: 18px auto;
    display: none
}

.toolbar {
    /* display: grid;
    gap: var(--gap);
    grid-template-columns: 1fr repeat(5, minmax(140px, 220px)) auto;
    align-items: end; */
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 1rem;
    margin: 0 auto;
    max-width: 1500px;
    padding: 0 1rem;
}

.search-div {
    width: 100%;
}

.search-div2 {
    width: 50%;
}

.resetBtn {
    display: flex;
    align-items: center;
}

.toolbar label {
    font-size: 12px;
    color: #555;
    display: block;
    margin-bottom: 4px;
}

input[type="text"], input[type="number"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
}

select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
}

.select-div {
    width: 50%;
}

#resetBtn:hover {
    background-color: #000;
    color: #fff;
}

button {
    padding: 9px 16px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

button:hover {
    background: #f6f6f6;
}

.summary {
    margin: 16px 0;
    color: #444;
}

.pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 24px 0 8px;
}

.pager button,
.pager span {
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    font: 500 14px/32px system-ui, -apple-system, Segoe UI, Roboto, Arial, Noto Sans, sans-serif;
    text-align: center;
    cursor: pointer;
}

.pager button:hover {
    border-color: #d1d5db;
}

.pager .is-active {
    background: #111827;
    color: #fff;
    border-color: #111827;
    cursor: default;
}

.pager .is-ellipsis {
    border-color: transparent;
    background: transparent;
    color: #9ca3af;
    cursor: default;
}

.pager button[disabled] {
    color: #9ca3af;
    background: #f9fafb;
    cursor: not-allowed;
}

.no-results.hidden {
  display: none !important;
}

#resultTitle mark {
  background: transparent;
  color: #111;
  font-weight: 700;
}

@media (max-width: 768px) {
    .toolbar {
        /* display: grid;
        grid-template-columns: repeat(2, minmax(50px, 1fr)); */
        flex-flow: column;
        align-items: center;
    }

    .toolbar div {
        width: 100%;
    }

    .resetBtn button {
        flex: auto;
    }

    .grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }


}