.d-none {
  display: none !important;
}

.filter-tab input[type="checkbox"] {
  position: absolute;
}


.sc-recommended-activities .item-list li .date {
  width: 75px;
}

.sc-community-products .community-products-list .link .content {

  width: calc(100% - 20px);
}



.input-group {
  position: relative;
  margin-bottom: 10px !important;
}

.input-group input {
  padding-left: 50px !important;
}

.groupInput {
  display: flex;
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  left: 8px;
}

.select2-container--default.select2-container .select2-selection--multiple {
  border-radius: 16px;
  border: 1px solid #E8F5FA !important;
  color: #B3B7BD;
  padding: 15px;
  font-family: sans-serif;
  /* font-size: 20px; */
  color: #B3B7BD !important;
}

.optionselectcate {
  margin-bottom: 10px !important;
}

.form-register .form-group.has-success .form-control {
  border-color: var(--color-secondary);
  color: var(--color-default);
}

.form-register .form-group .form-control {
  color: var(--color-default);
}

.membertype {
  display: none;
}

.membertype.entrepreneur {
  display: block;
}

.form-default .form-group.has-error {
  margin-bottom: 0px;
}

.radio-input+.link {
  cursor: pointer;
}

.radio-input:checked+.link .border {
  background-color: var(--color-primary);
}

.radio-input:checked+.link .border .icon.-default {
  opacity: 1;
}

.radio-input:checked+.link .border .icon.-hover {
  opacity: 0;
}

.radio-input:checked+.link .txt {
  color: var(--color-primary);
}

.layout-header .-profile {
  overflow: hidden;
}



.layout-header .-profile_active::before {
  background: none !important;
}

.swal2-container h2.swal2-title {
  font-size: 25px;
}

.table-data {
  width: 100%;
}

.mapset {
  position: relative;
}

.mapset #map {
  height: 400px;
  width: 100%;
  margin-bottom: 5px;
}

.mapset .boxsearch {
  position: absolute;
  bottom: 10px;
}

.form-register .form-group .form-control {
  color: var(--color-default);
}

.form-register .form-group .form-control {
  height: 48px;
  border-radius:
    16px;
  border:
    1px solid #E8F5FA;
  font-size: 20px;
  color: #B3B7BD;
}

.justify-content-center {
  justify-content: center !important;
}

.status.-published {
  font-size: 15px;
  margin-bottom: 0px;
}

.data-page .card-data .table-data.tableproduct tr:first-child td:nth-child(4) {
  padding-right: 0;
  color: var(--color-gray);
}

.data-page .card-data .table-data.tableproduct tr:first-child td:nth-child(5) {
  padding-right: 0;
  color: transparent;
}



/* 🖼️ จัดการส่วนแสดงผลตัวอย่างรูป */
.preview-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
  gap: 10px;
}

.preview-item {
  position: relative;
  display: inline-block;
}

.preview-item img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #ddd;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

.preview-item .remove-btn {
  position: absolute;
  top: -5px;
  right: -5px;
  background: red;
  color: white;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  line-height: 20px;
  text-align: center;
}

.upload-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    12px 20px;
  background:
    linear-gradient(45deg, #ff7e5f, #feb47b);
  color: white;
  font-size: 16px;
  font-weight: bold;
  border-radius:
    8px;
  cursor: pointer;
  transition:
    all 0.3s ease;
}

.upload-input {
  display: none;
}



.data-page .card-data .table-data.tablemap tr:first-child td:nth-child(1) {
  width: 50%;
  padding-left: 0;
}

.data-page .card-data .table-data.tablemap .address .desc {
  font-size: 15px;
  color: #363636;
}

.data-page .card-data .table-data .product .cover {
  border: 1px solid #ddd;
}


/* .sidebar {
    position: sticky;
    top: 132px;
    z-index: 100;
  } */

.select2-container--default .select2-search--inline .select2-search__field {
  font-size: 15px;
  line-height: 15px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
  cursor: default;
  padding-left: 15px;
  padding-right: 5px;
  font-size: 15px;
  line-height: 15px;
}

.contact-card-list.-member-contact-card {
  margin-bottom: 15px;
}

.btnaddpeople span {
  font-size: 20px !important;
}

.card-filter .footer .form-default {
  padding: 0 0px;
  margin-top: 10px;
}



.contact-card-list .contact-card {
  display: block;
  background-color: var(--color-light);
  border-radius:
    28px;
  overflow:
    hidden;
  text-decoration:
    none;
  margin-bottom: 10px;
}

.filter-tab {
  margin-top: 10px;
  overflow: hidden;
}

.sc-tourism-trips .tourism-trips-card .link {
  position: unset;
}


/* เมื่อ checkbox ถูกเลือก */
.filter-tab input[type="checkbox"]:checked+label.link {
  border-color: var(--color-primary);
  color: var(--color-primary) !important;
}

.filter-tab input[type="checkbox"]:checked+label.link p {
  color: var(--color-primary) !important;
}



.filter-tab .swiper {
  padding: 0 20px;
}

.filter-tab .swiper-slide {
  width: auto !important;
  display: inline-block;
  white-space: nowrap;
}

.w-100 {
  width: 100%;
}

.swiper-button-prev {
  left: 1px;
}

.filter-tab {
  justify-content: flex-end;
  /* ✅ ชิดขวา */
}

.swiper-button-next,
.swiper-button-prev {
  position: absolute;
  top: 105%;
  -webkit-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.26);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.26);
  z-index: 1;
  font-size: 0;
  background-color: rgba(0, 0, 0, 0.6);
  overflow: hidden;
  /* width: 15px;
  height: 15px;
  border-radius: 50%; */

  width: 30px;
  height: 30px;
  border-radius: 15px;

  -webkit-transform: translate(0, -50%);
  transform: translate(0, -50%);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-transition: var(--transition);
  transition: var(--transition);
}

.swiper-button-next {
  right: 0px;
}

.swiper-button-next::before,
.swiper-button-prev::before {
  width: 5px;
  height: 5px;
  top: 0;
  left: 0px;
}

.notmore {
  text-align: center;
  border: 1px solid #d12c30;
  padding: 50px 0px;
  border-radius: 20px;
  margin: 20px;
  color: #d12c30;
}

.btn.btn-gradient::before {
  display: none;
}

.btn.btn-gradient {
  color: #fff;
  background: linear-gradient(to right, #c53b52, #faab3e);
  background-size: 200% auto;
  /* ขยาย background เพื่อให้เลื่อน */
  background-position: left center;
  transition: background-position 0.5s ease-out, color 0.3s;
}

.btn.btn-gradient:hover {
  background-position: right center;
  /* เลื่อนไปทางขวาเมื่อ hover */
  color: #fff;
}

.filtter-header {
  width: 100%;
  margin: 0px;
  margin-bottom: 40px;
}

.swiper-slide label {
  cursor: pointer;
}

.txtNote {
  font-size: 17px;
}

.head-filter .title {
  font-size: 50px;
}

@media screen and (max-width: 768px) {
  .filtter-header h2.title {
     font-size: 28px;
    text-align: center;
  }

  .head-filter .title {
    font-size: 28px;
    text-align: center;
  }

  .card-filter .card-filter-wrapper {
    border-radius: 20px;
    padding: 20px;
    height: 300px;
  }


}


.card-list .card .cover {
  position: relative;
}

.card-list .card .cover .view {
  position: absolute;
  bottom: 10px;
  display: flex;
  right: 10px;
  height: 30px;
  background: rgba(255, 255, 255, 0.5);
  padding: 0px 10px;

  border-radius: 10px;

  box-shadow: -1px -1px 18px -5px rgba(0, 0, 0, 0.2);
  -webkit-box-shadow: -1px -1px 18px -5px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: -1px -1px 18px -5px rgba(0, 0, 0, 0.2);
}

.card-list .card .cover .view p {
  font-size: 17px;
  padding: 0 5px;
  color: #000;
  font-weight: bold;
}

.card-list .card .cover .view span {
  color: #000;
}



 .btnshare {
     padding: 10px;
 }

 .swal2-actions .share-btn {
     display: flex;
     flex-direction: column;
     align-items: center;
     cursor: pointer;
     padding: 10px;
 }

 .share-btn img {
     width: 40px;
     height: 40px;
     margin-bottom: 5px;
 }







 /* สไตล์ปุ่มแชร์ */
 .swal2-html-container .share-container {
     display: flex;
     justify-content: center;
     flex-wrap: wrap;
     gap: 20px;
     margin-top: 10px;
 }

 .swal2-html-container .share-btn {
     display: flex;
     flex-direction: column;
     align-items: center;
     cursor: pointer;
     transition: transform 0.2s ease;
 }

 .swal2-html-container .share-btn:hover {
     transform: translateY(-4px);
 }

 .swal2-html-container .share-icon {
     width: 60px;
     height: 60px;
     border-radius: 50%;
     display: flex;
     justify-content: center;
     align-items: center;
     margin-bottom: 6px;
     box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
     transition: 0.3s;
 }

 .swal2-html-container .share-btn:hover .share-icon {
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
 }

 .swal2-html-container .share-label {
     font-size: 14px;
     color: #333;
 }

 /* สีแต่ละ platform */
 .swal2-html-container .share-fb {
     background: #1877f2;
 }

 .swal2-html-container .share-x {
     background: #000000;
 }

 .swal2-html-container .share-tiktok {
     background: #010101;
 }

 .swal2-html-container .share-copy {
     background: #8e44ad;
 }

 .swal2-html-container .share-icon img {
     width: 28px;
     height: 28px;
     filter: brightness(0) invert(1);
 }