 /* เปลี่ยนสีเมื่อถูกเลือก */
 .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);
 }


 .ui-datepicker-title {
     display: flex !important;
     align-items: center;
     gap: 10px;
     /* ระยะห่างระหว่าง dropdown */
 }

 /* ปรับขนาด dropdown */
 .ui-datepicker select.ui-datepicker-month,
 .ui-datepicker select.ui-datepicker-year {
     width: auto;
     font-size: 14px;
     padding: 4px;
     border: 1px solid #ccc;
     border-radius: 5px;
     background-color: #fff;
 }

 /* กำหนดขนาด dropdown ของปี */
 .ui-datepicker select.ui-datepicker-year {
     width: 80px;
     /* ปรับขนาด */
     font-size: 16px;
     /* ขนาดตัวอักษร */
     padding: 5px;
     border: 1px solid #ccc;
     border-radius: 5px;
     background-color: #fff;
 }

 /* กำหนดขนาด dropdown ของเดือน */
 .ui-datepicker select.ui-datepicker-month {
     width: 100px;
     /* ปรับขนาด */
     font-size: 16px;
     padding: 5px;
     border: 1px solid #ccc;
     border-radius: 5px;
     background-color: #fff;
 }


 .ui-datepicker .ui-datepicker-calendar .ui-state-active {
     background-color: #ffcc00 !important;
     /* เปลี่ยนพื้นหลังเป็นสีเหลือง */
     color: #000 !important;
     font-weight: bold;
     /* ทำให้ตัวอักษรหนาขึ้น */

 }



 .text-danger {
     color: #dc3545 !important;
 }

 .text-success {
     color: #28a745 !important;
 }

 .swal2-popup {
     border-radius: 20px !important;
 }



 /* 📂 ปุ่มอัปโหลดแบบกำหนดเอง */
 .upload-container {
     position: relative;
     display: inline-block;
 }

 .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-label:hover {
     background: linear-gradient(45deg, #ff6a4d, #fea65c);
 }

 .upload-label i {
     margin-right: 8px;
 }

 /* ซ่อน input file จริงๆ */
 .upload-input {
     display: none;
 }

 /* 🖼️ จัดการส่วนแสดงผลตัวอย่างรูป */
 .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;
 }

 .mapset {
     position: relative;
 }

 .mapset .boxsearch {
     position: absolute;
     bottom: 10px;
 }

 .mapset #map {

     height: 400px;
     width: 100%;
     margin-bottom: 5px;
 }

 .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;
 }


 .note-editor.note-frame {
     border-radius: 16px;
     border: 1px solid #E8F5FA !important;
 }

 .note-editable {
     background: #fff;
 }

 .note-toolbar {
     background-color: unset !important;
     border: unset !important;
 }

 .note-editable {
     border-radius: 16px;
 }

 .d-none {
     display: none;
 }

 .cardlist {
     margin-bottom: 10px;
 }

 .isshowlist {
     padding-bottom: 50px;
 }

 .btn-load-more {
     font-size: var(--typo-xl);
     font-weight: var(--fw-medium);
     color: var(--color-light);
 }

 .statusapprove {
     position: absolute;
     top: 0px;
     right: 0px;
     margin: 10px;
 }

 .boxload {
     padding: 10px;
 }

 .card-filter .card-filter-wrapper {
     height: 240px;
 }

 .map-full {
     z-index: 0;
 }

 .card-filter {
     position: relative;
     z-index: 3;
 }

 .filter-tab input[type="checkbox"] {
     display: none;

 }

 .filter-tab input[type="checkbox"]:checked+label {
     /* border: 10px solid; */
     border-color: #fff;
     color: #fff !important;
     background: #2c3778;
 }



 .filter-tab input[type="checkbox"]:checked+label.trip {
     /* border: 10px solid; */
     border-color: #fff;
     color: #fff !important;
     background: #bea530;
 }

 .filter-tab input[type="checkbox"]:checked+label.event {
     /* border: 10px solid; */
     border-color: #fff;
     color: #fff !important;
     background: #644874;
 }

 .filter-tab input[type="checkbox"]:checked+label .txt {
     color: #fff !important;
 }


 .filter-tab input[type="checkbox"]+label {
     cursor: pointer;
     -webkit-box-shadow: 0px 0px 11px -1px rgba(0, 0, 0, 0.24);
     -moz-box-shadow: 0px 0px 11px -1px rgba(0, 0, 0, 0.24);
     box-shadow: 0px 0px 11px -1px rgba(0, 0, 0, 0.24);
 }

 .filter-tab input[type="checkbox"]:checked+label .icon svg path {
     fill: #fff !important;
     /* เปลี่ยนสีของไอคอนเป็นสีขาว */
 }

 .profileicon {
     width: 40px;
     height: 40px;
     border-radius: 16px;
 }

 .eventdetail .date {
     width: 48px;
     height: 48px;
     display: -webkit-box;
     display: -ms-flexbox;
     display: flex;
     -webkit-box-align: center;
     -ms-flex-align: center;
     align-items: center;
     -webkit-box-pack: center;
     -ms-flex-pack: center;
     justify-content: center;
     border-radius: 16px;
     background-color: var(--color-primary);
     /* margin-top: -80px; */
     margin-left: 10px;
     position: absolute;
     z-index: 1;
     bottom: 10px;


 }

 .eventdetail .date p {
     margin-bottom: 0;
     line-height: 0.8em;
     font-size: var(--typo-sm);
     color: var(--color-light);
 }

 .contactlist {
     margin-top: 0px;
 }

 .headcontactlist {
     height: 130px !important;
     margin-bottom: 10px;
 }

 .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;
 }

 .text-danger {
     color: #dc3545 !important;
 }

 #routeList {
     margin-top: 10px;
     list-style-type: none;
     padding: 0;
 }

 .route-item {
     display: flex;
     align-items: center;
     justify-content: space-between;
     background: #f8f9fa;
     padding: 8px;
     margin-bottom: 5px;
     border-radius: 5px;
 }

 .remove-btn {
     background: red;
     color: white;
     border: none;
     padding: 5px;
     cursor: pointer;
 }


 .custom-marker-label {
     text-align: center;
     text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
     /* ✅ เพิ่มเงา */
     font-weight: bold;
     font-size: 12px;
     padding: 2px 5px;
     background: rgba(0, 0, 0, 0.5);
     /* ✅ พื้นหลังโปร่งใส */
     border-radius: 5px;
     color: white;
 }


 /* ทำให้ Swal เป็นเต็มจอ */
 .swal-wide {
     /* width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important; */
     padding: 0 !important;
 }

 .swal-wide .swal2-html-container {
     padding: 0px;
     margin: 5px;
 }

 .swal2-confirm.btn {
     color: #fff;
 }

 .btn-cancel.btn {
     min-width: 100%;
     height: 48px;
     background: -webkit-gradient(linear, left top, right top, from(#c53b52), to(#faab3e));
     background: linear-gradient(to right, #c53b52 0%, #faab3e 100%);
     border-radius: 16px;
     -webkit-box-pack: center;
     -ms-flex-pack: center;
     justify-content: center;
 }

 div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm {
     border: 0;
     border-radius: .25em;
     background: -webkit-gradient(linear, left top, right top, from(#c53b52), to(#faab3e)) !important;
     background: linear-gradient(to right, #c53b52 0%, #faab3e 100%) !important;
     color: #fff;
     font-size: 1em;
 }


 .controlproduct {
     display: flex;
     gap: 10px;
 }

 .button50 {
     min-width: 49%;
 }

 .btn-del {
     background: #e1e1e1;
 }

 .btnshare {
     position: relative;
     background: -webkit-gradient(linear, left top, right top, from(#c53b52), to(#faab3e));
     background: linear-gradient(to right, #c53b52 0%, #faab3e 100%);
 }

 .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);
 }