@import url("https://fonts.googleapis.com/css2?family=Kanit:wght@100;200;300;400;500;600&family=Sarabun:wght@100;200;300;400;500;600&display=swap");
.button,
.button-1,
.button-tabien-list {
    padding: 3px 25px;
    border: none;
    background: #fff;
    color: #fff;
    cursor: pointer;
}
.button-1 {
    background: #f36f21;
}
.button-tabien-list {
    background: #f36f21;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    padding: 5px 20px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}
.button-tabien-list img {
    width: 7px;
    margin-left: 10px;
}
.button-group {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 10px;
    padding: 20px 0;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}
.button-group a {
    display: block;
    padding: 5px 20px;
    color: #fff;
    background: #00a651;
    -webkit-transition: all 100ms;
    transition: all 100ms;
    min-width: 150px;
    text-align: center;
}
.button-group a:hover {
    background: #f36f21;
    color: #000;
}
.button-tabien-list {
    background: #fff;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    padding: 5px 40px 5px 20px;
    font-weight: 200;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    border: 1px solid #000;
    border-radius: 10px;
    color: #585858;
    position: relative;
}
.button-tabien-list:after {
    content: "";
    display: block;
    position: absolute;
    background: none;
    border: 6px solid transparent;
    border-top-color: #00a651;
    right: 10px;
    top: 40%;
}
input {
    border: none;
    background: none;
}
.text-box input{
  height: 100%;
  width: 100%;
  padding: 0 15px;
  box-sizing: border-box;
  font-weight: 200;
}
.select-box, .text-box {
    background: #fff;
    border-radius: 15px;
    position: relative;
    height: 40px;
    position: relative;
    cursor: pointer;
}
.select-box .fake-text {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0 15px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    font-weight: 200;
    cursor: pointer;
}
.select-box .fake-text::-webkit-input-placeholder {
    color: #777;
}
.select-box .fake-text:-ms-input-placeholder {
    color: #777;
}
.select-box .fake-text::-ms-input-placeholder {
    color: #777;
}
.select-box .fake-text::placeholder {
    color: #777;
}
.select-box:after {
    content: "";
    display: block;
    border: 6px solid transparent;
    border-top-color: #00a651;
    position: absolute;
    top: 45%;
    right: 15px;
}
.select-box .select-list {
    position: absolute;
    top: 45px;
    left: 0;
    background: #fff;
    padding: 10px 0;
    z-index: 11;
    width: 100%;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    display: block;
    border-radius: 15px;
    display: none;
    border: 1px solid #e2e2e2;
}
.select-box .select-list li {
    width: 100%;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 3px 15px;
    cursor: pointer;
}
footer {
    background: #00a651;
    padding: 50px 0;
}
footer .logo-foot {
    margin: 30px 0 0;
}
footer * {
    color: #fff;
}
footer .d-flex {
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}
footer .menu-foot {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 100px;
}
footer .menu-foot h3 {
    font-weight: 400;
    font-size: 20px;
    margin: 0 0 20px;
    color: #fff;
}
footer .menu-foot ul li {
    list-style: none;
    margin: 0 0 15px;
}
footer .menu-foot ul li a {
    color: #d9dbe1;
}
footer .menu-foot .social-foot nav {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 15px;
    vertical-align: middle;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 25px;
}
footer .menu-foot .social-foot nav img {
    height: 15px;
}
.tabien-zone {
    padding: 0px 0;
}
.tabien-zone .tabien-menu {
    position: fixed;
    right: -100%;
    top: 0;
    bottom: 0;
    background: #444;
    border-left: 5px solid #00a651;
    width: 300px;
    max-width: 90%;
    z-index: 11;
    height: 100vh;
    overflow-y: scroll;
    overflow-x: hidden;
    font-size: 1.15rem;
    -webkit-transition: all 300ms;
    transition: all 300ms;
}
.tabien-zone .tabien-menu.show {
    right: 0;
}
.tabien-zone .tabien-menu ul {
    height: -webkit-fit-content;
    height: -moz-fit-content;
    height: fit-content;
    padding: 15px 0;
}
.tabien-zone .tabien-menu li {
    list-style: none;
}
.tabien-zone .tabien-menu li a {
    padding: 10px 15px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    color: #fff;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 7px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.tabien-zone .tabien-menu li a:before {
    content: "";
    background: #00a651;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: block;
    margin-top: 2px;
}
.tabien-zone .tabien-menu li a:hover {
    background: #00a651;
    color: #fff;
}
.tabien-zone .tabien-menu li a:hover:before {
    border: 1px solid #fff;
}
.tabien-zone .tabien-box-img {
    width: 100%;
}
.tabien-zone .tabien-box-img img {
    display: block;
    width: 100%;
}
.tabien-zone .tabien-box {
    padding: 50px 0;
}
.tabien-zone .tabien-box.bg-1 {
    background: rgba(0, 166, 81, 0.1);
}
.tabien-zone .tabien-box .tabien-head {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 0 0 20px;
}
.tabien-zone .tabien-box .tabien-list {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: (1fr) [6];
    grid-template-columns: repeat(6, 1fr);
    gap: 25px 20px;
}
.tabien-zone .tabien-box .tabien-list li {
    width: 100%;
    line-height: 1.2;
    position: relative;
}
.tabien-zone .tabien-box .tabien-list li #good-icon {
    width: 35px;
    height: auto;
    position: absolute;
    top: 0px;
    right: 0px;
    z-index: 5;
    margin: 0;
    left: auto;
    bottom: auto;
}
.tabien-zone .tabien-box .tabien-list li .special-icon {
    position: absolute;
    top: -1px;
    left: 3px;
    width: 25px;
}
.tabien-zone .tabien-box .tabien-list li .tabien-thumb {
    width: 100%;
    padding-top: 43%;
    position: relative;
    overflow: hidden;
    border: 1px solid #212121;
}
.tabien-zone .tabien-box .tabien-list li .tabien-thumb img {
    width: 100%;
    height: auto;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: auto;
}
.tabien-zone .tabien-box .tabien-list li .btn-main {
    text-align: center;
    background: green;
    color: #fff;
    padding: 2px 0;
    font-size: 12px;
}
.tabien-zone .tabien-box .tabien-list li .btn-main.buyed {
    background: red;
}

.tabien-zone .tabien-box .tabien-list li .tabien-number {
    margin: 5px 0 0;
    position: absolute;
    font-size: 28px;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    text-align: center;
    height: -webkit-fit-content;
    height: -moz-fit-content;
    height: fit-content;
    width: 100%;
    font-weight: 600;
    font-family: "Sarabun";
    color: #000;
}
.tabien-zone .tabien-box .tabien-list li .tabien-price {
    color: #959595;
    font-size: 24px;
    font-weight: 500;
    text-align: center;
    margin: 5px 0 0;
}
.tabien-zone .tabien-box .tabien-list li .tabien-sum {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    color: #fb4040;
    font-size: 18px;
    margin: 0 0 7px;
}
.tabien-zone .tabien-box .tabien-list li .tabien-sum img {
    margin-right: 5px;
    width: 25px;
}

.tabien-zone .tabien-box .tabien-motorcycle{
  padding: 30px 0 0;
}
.tabien-zone .tabien-box .tabien-list.motorcycle li .tabien-thumb{
  padding: 70% 0 0;
}
.tabien-zone .tabien-box .tabien-list.motorcycle .tabien-thumb .tabien-text{
  font-size: 24px;
}
.tabien-zone .tabien-box .tabien-list.motorcycle .tabien-thumb .tabien-province{
  font-size: 14px;
  margin: 5px 0;
}
.tabien-zone .tabien-box .tabien-list.motorcycle .tabien-thumb .tabien-num{
  font-size: 22px;
}

.box-content {
    padding: 30px 0;
    width: 100%;
    background: #fff;
    min-height: 45vh;
}
.search-noheader {
    margin: 30px 0;
}
.search-noheader .search-form {
    padding: 20px 0;
}
.search-noheader .search-form h2 {
    display: none;
}
.tabien-detail {
    max-width: 100%;
    margin: auto;
    padding: 40px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    background: #f4f4f4;
    font-family: 'Sarabun';
}
.tabien-detail .tabien-box-img {
    width: 100%;
    position: relative;
}
.tabien-detail .tabien-box-img img {
    display: block;
    width: 100%;
}
.tabien-detail .tabien-box-img .tabien-name{
    position: absolute;
    inset: 0;
    margin: auto;
    font-size: 36px;
    font-weight: bold;
    height: fit-content;
    text-align: center;
}
.tabien-detail table {
    width: 100%;
    border: 1px solid #ddd;
}
.tabien-detail table td {
    width: 50%;
    font-size: 20px;
    padding: 10px 20px;
    background: #f4f4f4;
}
.tabien-detail table td:nth-child(odd) {
    width: 220px;
}
.tabien-detail table td:nth-child(odd) span {
    display: block;
    float: right;
}
.tabien-detail table td .line-btn {
    background: #00b839;
    color: #fff;
    padding: 5px 20px;
}
.tabien-detail table td:nth-child(even) {
    width: calc(100% - 220px);
}
.detail-contact {
    background: #f36f21;
    padding: 30px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
.detail-contact a {
    color: #000;
}
html,
body {
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font: 300 16px/1.5 "Kanit", Sans sarif;
    color: #585858;
}
ul {
    margin: 0;
    padding: 0;
}
img {
    display: block;
    max-width: 100%;
    height: auto;
}
a {
    color: #585858;
    text-decoration: none;
}
a:hover {
    text-decoration: none;
    color: #00a651;
}
.container {
    width: 1170px;
    max-width: 100%;
}
header {
    padding: 20px 0;
}
header .d-flex {
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}
header .d-flex .logo {
    width: 500px;
}
header .d-flex .logo img {
    width: 100%;
}
header .d-flex .menu-top {
    font-size: 22px;
}
header .d-flex .menu-top ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 40px;
}
header .d-flex .menu-top ul li {
    list-style: none;
}
header .d-flex .menu-icon {
    display: none;
}
.banner-top .li {
    position: relative;
}
.banner-top .banner-text {
    position: absolute;
    top: 20%;
    width: 40%;
    left: 2%;
}
.banner-top .banner-text img {
    width: 100%;
}
.search-form {
    background: #00a651;
    padding: 50px 0;
}
.search-form h2{
  color: #fff;
  margin-bottom: 10px;
}
.search-form form {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 15px;
}
.search-form .button-1 {
    border-radius: 10px;
    color: #fff;
}
.shadow {
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    position: fixed;
    z-index: 10;
    display: none;
}
.shadow.shadow-w {
    background: rgba(255, 255, 255, 0);
}
@media only screen and (max-width: 767px) {
    header .d-flex .logo {
        width: 140px;
    }
    header .d-flex .menu-top {
        background: #444;
        position: fixed;
        height: 100vh;
        overflow-y: scroll;
        overflow-x: hidden;
        width: 300px;
        top: 0;
        right: -100%;
        z-index: 9;
        -webkit-transition: all 300ms;
        transition: all 300ms;
        border-left: 5px solid #00a651;
    }
    header .d-flex .menu-top.show {
        right: 0;
    }
    header .d-flex .menu-top ul {
        display: block;
    }
    header .d-flex .menu-top ul li a {
        color: #fff;
        padding: 15px 15px;
        font-size: 1.15rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        gap: 10px;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
    }
    header .d-flex .menu-top ul li a:before {
        content: "";
        background: #00a651;
        width: 7px;
        height: 7px;
        border-radius: 50%;
        display: block;
        margin-top: 2px;
    }
    header .d-flex .menu-icon {
        position: fixed;
        top: 24px;
        right: 10px;
        background: #00a651;
        padding: 8px;
        z-index: 8;
        display: block;
    }
    header .d-flex .menu-icon span {
        display: block;
        -webkit-mask-image: url("../images/menu-icon.svg");
        mask-image: url("../images/menu-icon.svg");
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        -webkit-mask-size: 100% 100%;
        mask-size: 100%;
        background-color: #fff;
        width: 30px;
        height: 20px;
    }
    .search-form {
        padding: 30px 0;
    }
    .search-form form {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        gap: 10px;
    }
    .search-form form .select-box {
        width: 48%;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
    }
    .search-form form .button-1 {
        width: 48%;
    }
    .tabien-zone .tabien-box .tabien-head {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }
    .tabien-zone .tabien-box .tabien-head h3 {
        width: 100%;
    }
    .tabien-zone .tabien-box .tabien-head .button-tabien-list {
        width: 100%;
    }
    .tabien-zone .tabien-box .tabien-list {
        -ms-grid-columns: (1fr) [3];
        grid-template-columns: repeat(3, 1fr);
        gap: 25px 15px;
    }
    .tabien-zone .tabien-box .tabien-list li .tabien-price {
        font-size: 18px;
    }
    .tabien-zone .tabien-box .tabien-list li .tabien-number {
        font-size: 18px;
    }
    .tabien-zone .tabien-box .tabien-list li .special-icon {
        width: 18px;
    }
    .tabien-zone .tabien-box .tabien-list li #good-icon {
        width: 25px;
    }
    .tabien-zone .tabien-box .tabien-list li .tabien-sum {
        font-size: 14px;
        margin: 0;
    }
    .tabien-detail {
        padding: 10px;
    }
    .tabien-detail .tabien-box-img {
        width: 100%;
        margin-bottom: 20px;
    }
    .tabien-detail table td:nth-child(odd) {
        width: 160px;
    }
    .tabien-detail table td:nth-child(even) {
        width: calc(100% - 160px);
        padding-right: 0;
        padding-left: 10px;
    }
    .tabien-detail table td .line-btn {
        font-size: 14px;
        padding: 10px 15px;
    }
    footer {
        padding: 30px 0;
    }
    footer .logo-foot {
        margin: 0 0 20px -10px;
        width: 120px;
    }
    footer .d-flex {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }
    footer .d-flex .menu-foot {
        width: 100%;
        display: block;
    }
    footer .d-flex .menu-foot ul {
        padding: 15px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
    }
    footer .d-flex .menu-foot .social-foot {
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        padding: 15px 0 0;
    }
    footer .d-flex .menu-foot .social-foot nav {
        padding: 0 5px;
    }
    footer .d-flex .menu-foot .social-foot nav img {
        height: 20px;
    }
}

@media only screen and (max-width: 479px) {
  .search-form form .select-box, .search-form form .text-box{
    width: 100%;
  }
  .search-form form .button-1{
    padding: 10px 0;
    width: 100%;
    text-align: center;
    font-size: 16px !important;
  }
  .tabien-zone .tabien-box .tabien-list.motorcycle li .tabien-thumb{
    padding: 100% 0 0;
  }
}
