@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
     font-family: 'Noto Sans Thai Looped', "Poppins", sans-serif;

}

/* body {
     background-image: url("../images/banner-01.jpg");
     background-repeat: no-repeat;
     background-size: cover;
     background-attachment: scroll;
     margin-top: 150px !important;
} */
body {
     margin: 0;
     overflow-x: hidden;
}

body::before {
     content: "";
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: url("../images/banner-01.webp") no-repeat center center;
     background-size: cover;
     z-index: -1;
}

.blog-title {
     width: 100%;
     margin: 0;
     text-align: center;
}


.blog-title h3 {
     /* font-family: "DynaPuff", system-ui; */
     font-optical-sizing: auto;
     font-style: normal;
     font-variation-settings: "wdth" 100;
     /* font-size: 50px; */
     font-weight: 500;
     /* color: #F4A460; */
     color: #262262;
}

.page-container {
     position: fixed;
     display: flex;
     justify-content: space-between;
     top: 0;
     left: 0;
     padding: 0.5rem 1rem;
     width: 100%;
     z-index: 1000;
     background: #ffffffc1;
     backdrop-filter: blur(8px);
     box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

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

.logo img {
     margin-right: 1rem;
     max-height: 60px;
     height: clamp(40px, 10vw, 150px);

}

.icon-home a {

     font-size: 2rem;
     font-size: clamp(1.2rem, 2vw + 1rem, 2rem);
     white-space: nowrap;
     color: #262262;
     text-shadow: 2px 1px 5px rgba(0, 0, 0, 0.34);
     text-decoration: none;
     font-weight: bold;
     text-align: center;
}


.icon-head {
     list-style: none;
     display: flex;
     margin: 0;
     padding: 0;
     align-items: center;
     /* background-color: #25537b50; */
     border-radius: 20px 20px;
     overflow: visible;
}

.icon-head li {
     /* margin: 0 0.5rem; */
     position: relative;
     overflow: visible;

}

.icon-head li a {
     font-weight: 600;
     text-decoration: none;
     padding: 8px 16px;
     display: block;
     color: #262262;
     border-radius: 20px;
     transition: all 0.3s ease;
}

.icon-head li a:hover {
     background: linear-gradient(135deg, #4facfeda, #00f1fee9);
     color: #fff;
     box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
     transform: translateY(-2px);
}

ul li a {
     display: block;
     text-align: center;
     text-decoration: none;

}

.cart-container {
     position: relative;
     /* ให้ popup อิงตำแหน่งจาก container นี้ */
     display: inline-block;
}

/* popup cart */
.cart-popup {
     position: absolute;
     top: 100%;
     right: 5px;
     width: max-content;
     max-height: 400px;
     display: flex;
     flex-direction: column;
     background: #fff;
     border: 1px solid #ddd;
     border-radius: 10px;
     padding: 15px;
     box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
     margin-top: 8px;
     z-index: 9999;
     overflow: hidden;
}

#cartItems {
     overflow-y: auto;
     max-height: 320px;
     /* ลดเหลือให้มีที่สำหรับ total price */
}

/* Total price ค้างด้านล่าง */
.total-price {
     margin-top: auto;
     padding-top: 10px;
     border-top: 1px solid #ddd;
     font-weight: bold;
     text-align: right;
     display: flex;
     margin-bottom: 0;
     flex-direction: column;
     align-items: flex-end;
}

.btn-confirm {
     padding: 12px 24px;
     font-size: 16px;
     font-weight: bold;
     color: #fff;
     background-color: #007BFF;
     border: none;
     border-radius: 8px;
     cursor: pointer;
     transition: 0.3s ease;
}

.btn-confirm:hover {
     background-color: #0056b3;
}

.info-container {
     position: relative;
     display: inline-block;
}

.info-btn {
     cursor: pointer;
     font-weight: 600;
     color: #0077ff;
     padding: 6px 12px;
}


.info-popup {
     position: absolute;
     top: 120%;
     left: 0;
     background: rgb(255, 255, 255);
     border-radius: 8px;
     box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
     padding: 10px;

     gap: 8px;
     min-width: 220px;
     opacity: 0;
     visibility: hidden;
     transform: translateY(10px);
     transition: all 0.3s ease;
     z-index: 999;
     flex-direction: column;

     text-align: left;

     /* ทำให้เริ่มซ่อนอยู่ */
     opacity: 0;
     visibility: hidden;
     transform: translateY(10px);
     transition: all 0.3s ease;
     z-index: 999;
}

.info-popup a {
     text-decoration: none;
     color: #1c1b1b;
     font-size: 14px;
     padding: 5px 8px;
     border-radius: 6px;
     transition: background 0.2s;
}

.info-popup a:hover {
     background: #73b3bc;
}

/* เวลา hover ที่ info-container → popup โผล่ */
.info-container:hover .info-popup {
     opacity: 1;
     visibility: visible;
     transform: translateY(0);
}


.cart-ticket .btn-confirm {
     background: none;
     color: #404040;
     font-weight: 500;
     text-decoration: underline;
     text-underline-position: auto;
}

/* ป้ายประเภทตั๋ว */
.ticket-type {
     background: #fff;
     color: #3c5672;
     padding: 0;
     border-radius: 6px;
     font-size: 12px;
     font-weight: bold;
}

.cart-container {
     position: relative;
     /* ให้ popup อิงตำแหน่งจาก container นี้ */
     display: inline-block;
}

/* popup cart */
.cart-popup {
     position: absolute;
     top: 100%;
     right: 5px;
     width: max-content;
     max-height: 400px;
     display: flex;
     flex-direction: column;
     background: #fff;
     border: 1px solid #ddd;
     border-radius: 10px;
     padding: 15px;
     box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
     margin-top: 8px;
     z-index: 9999;
     overflow: hidden;
}

#cartItems {
     overflow-y: auto;
     max-height: 320px;
     /* ลดเหลือให้มีที่สำหรับ total price */
}

/* Total price ค้างด้านล่าง */
.total-price {
     margin-top: auto;
     padding-top: 10px;
     border-top: 1px solid #ddd;
     font-weight: 600;
     text-align: right;
     display: flex;
     margin-bottom: 0;
     flex-direction: column;
     align-items: flex-end;
}

.cart-popup::-webkit-scrollbar {
     width: 1px;

}

.cart-popup::-webkit-scrollbar-track {
     background: transparent;

}

.cart-popup::-webkit-scrollbar-thumb {
     background-color: rgba(0, 0, 0, 0.083);
     border-radius: 10px;
     border: 1px solid transparent;
}

.hidden {
     display: none;
}

.cart-item {
     border-bottom: 1px solid #eee;
     padding: 8px 0;
     margin: 0;
     text-align: center;
}

.cart-header {
     display: flex;
     justify-content: space-between;
     align-items: center;
}

/* ปุ่มลบ */
.remove-btn {
     background: none;
     border: none;
     color: #262262;
     font-size: 18px;
     font-weight: bold;
     cursor: pointer;
     transition: 0.2s;
}

.remove-btn:hover {
     color: #f88282;
}

/* รายละเอียด */
.route {
     font-size: 15px;
     font-weight: bold;
     margin: 8px 0 3px;
}

.datetime,
.passengers {
     margin: 2px 0;
     font-size: 13px;
}

.price {
     margin: 8px 0 0 0;
     text-align: right;
     font-size: 15px;
     font-weight: 600;

}




.footer {
     width: 80%;
     margin: 0 auto;
     text-align: center;
     padding: 1rem 0;
     color: white;
     font-size: 14px;
}


.contactlogo {
     text-align: right;
     padding-bottom: 30px;
}

.contactlogo img {
     max-width: 40px;
     padding-right: 15px;
}

.remove-btn {
     background: none;
     border: none;
     color: #262262;
     font-size: 18px;
     font-weight: bold;
     cursor: pointer;
     transition: 0.2s;
}

.remove-btn:hover {
     color: #f88282;
}

.info-container {
     position: relative;
     display: inline-block;
}

.info-btn {
     cursor: pointer;
     font-weight: 600;
     color: #0077ff;
     padding: 6px 12px;
}


.info-popup {
     position: absolute;
     top: 120%;
     left: 0;
     background: rgb(255, 255, 255);
     border-radius: 8px;
     box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
     padding: 10px;

     gap: 8px;
     min-width: 220px;
     opacity: 0;
     visibility: hidden;
     transform: translateY(10px);
     transition: all 0.3s ease;
     z-index: 999;
     flex-direction: column;

     text-align: left;

     /* ทำให้เริ่มซ่อนอยู่ */
     opacity: 0;
     visibility: hidden;
     transform: translateY(10px);
     transition: all 0.3s ease;
     z-index: 999;
}

.info-popup a {
     text-decoration: none;
     color: #1c1b1b;
     font-size: 14px;
     padding: 5px 8px;
     border-radius: 6px;
     transition: background 0.2s;
}

.info-popup a:hover {
     background: #73b3bc;
}

/* เวลา hover ที่ info-container → popup โผล่ */
.info-container:hover .info-popup {
     opacity: 1;
     visibility: visible;
     transform: translateY(0);
}

/* =========================
   MAIN CONTENT STYLE
========================= */
.a-fact {
     background: rgba(255, 255, 255, 0.9);
     border-radius: 16px;
     box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
     padding: 40px;
     margin: 8rem auto 0 auto;
     width: 90%;
     max-width: 1000px;
}

/* หัวข้อใหญ่ */
.group-title {
     text-align: center;
     margin-bottom: 30px;
}

.group-title .sub-title .text {
     font-size: 30px;
     text-transform: uppercase;
     font-weight: 600;
     color: #007BFF;
     letter-spacing: 1px;
     margin-bottom: 6px;
}

.group-title .main-title {
     font-size: 32px;
     font-weight: 700;
     color: #262262;
     margin: 0;
}

/* ให้มุมตารางโค้ง + เงา */
.table {
     border-radius: 12px;
     overflow: hidden;
     background: #fff;
     box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
     border-collapse: separate;
     border-spacing: 0;
}

.table thead {
     background: linear-gradient(135deg, #00c6ff, #0072ff);

     color: #fff;
     text-align: center;
     font-weight: 600;
}

.table thead th {
     padding: 12px;
     align-content: center;
}

/* cell */
.table tbody td {
     padding: 12px 16px;
     font-size: 15px;
     color: #333;
     border: none;
}

.table tbody td:nth-child(2) {
     text-align: center;
}

/* แถวสลับสี */
.table tbody tr:nth-child(even) {
     background: #f9fbff;
}

/* แถว hover */
.table tbody tr:hover td {
     background: rgba(0, 123, 255, 0.07);
     transition: 0.2s ease;
}

/* แถวหัวข้อย่อย (colspan) */
.table tbody tr td[colspan="2"] {
     background: #eef5ff;
     font-weight: 600;
     color: #262262;
}

.close-popup {
     position: absolute;
     top: 8px;
     right: 12px;
     background: none;
     border: none;
     font-size: 22px;
     font-weight: bold;
     color: #333;
     cursor: pointer;
}

.close-popup:hover {
     color: red;
}

.cart-popup {
     animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
     from {
          opacity: 0;
          transform: translateY(20px);
     }

     to {
          opacity: 1;
          transform: translateY(0);
     }
}

@media (max-width: 768px) {
     .a-fact {
          margin-top: 5rem;
     }
}

@media (max-width: 553px) {

     .table tbody td {
          font-size: 13px;
     }

     .icon-head li a {
          padding: 8px 8px;
          font-size: 12px;
     }

     .a-fact {
          padding: 1rem;
     }
}

@media (max-width: 400px) {


     .icon-head li a {
          padding: 8px 6px;
          font-size: 11px;
     }
}