@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: "Poppins", sans-serif;

}

/* body {
     background-image: url("../images/banner-01.jpg");
     background-repeat: no-repeat;
     background-attachment: scroll;
     background-size: cover;
     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);
}

.body-cc {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 2rem;

}

.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: bold;
     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: bold;

}


.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: bold;
     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;

}



.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: 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;
}

.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;
}

.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;
}


.a-fact {
     padding: 20px 20px 0 20px;
     background: transparent;
     margin: 7rem auto 0 auto;
}

/* Title */
.group-title .main-title {
     font-family: 'Poppins', sans-serif;
     font-size: 2.2rem;
     font-weight: 700;
     color: #004a7c;

     margin-bottom: 10px
}

.group-title .sub-title {
     font-size: 1.1rem;
     color: #fff;
     margin-top: 5px;
     text-shadow: #575757 1px 2px;
}

.group-title .sub-title::before {
     content: "";
     display: block;
     width: 40%;
     height: 3px;
     background: linear-gradient(to right, #fff, #01d5ff);
     margin: 8px auto 0;
     border-radius: 2px;
}

.container {
     width: 70% !important;
}

/* Card */
.info-card {
     background: rgba(255, 255, 255, 0.95);
     /* โปร่งใสนิดๆ */
     border-radius: 12px;
     border: 1px solid #e1e1e1;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
     margin-bottom: 30px;
     padding: 20px;
     transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
     transform: translateY(-4px);
     box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* header */
.info-header {
     font-size: 1.2rem;
     color: #0077b6;
     margin-bottom: 15px;
     border-left: 4px solid #0096c7;
     padding-left: 10px;
     font-weight: 600;
     width: fit-content;
}


/* table */
.custom-table {
     width: 100%;
     border-collapse: collapse;
     background: #fff;
     border-radius: 8px;
     overflow: hidden;
     display: grid;
}

.custom-table thead {
     background: linear-gradient(135deg, #00c6ff, #0072ff);
     /* ฟ้า-น้ำทะเล */
     color: #fff;
     text-align: center;
     font-weight: 600;
}

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

.custom-table tbody {
     border-color: inherit;
     border-style: solid;
     border-width: 0;
}

.custom-table tr {
     display: grid;
     grid-template-columns: 50% 50%;
}

.custom-table td {
     text-align: center;
     padding: 10px;
     vertical-align: middle;
}

.custom-table tbody tr:hover {
     background-color: #82b6e0;
}

.custom-table td:last-child {
     font-weight: 600;
     color: #004a7c;
}

/* Note text */
.note {
     margin: 15px 0;
     font-size: 0.85rem;
     color: #cc3300;
     background: #fff5f5;
     border-left: 4px solid #cc3300;
     padding: 8px 12px;
     border-radius: 6px;
}

/* Book button */
.btn-book {
     background: linear-gradient(135deg, #0096c7, #00b4d8);
     color: #fff;
     font-weight: 600;
     padding: 10px 22px;
     border-radius: 25px;
     border: none;
     cursor: pointer;
     transition: all 0.3s ease;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-book:hover {
     background: linear-gradient(135deg, #0077b6, #0096c7);
     transform: translateY(-2px);
     box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

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

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

.con-row {
     display: flex;
}

.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 */
}



.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;
}

.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);
}

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

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

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

/* Responsive for mobile */

@media (max-width: 1026px) {
     .a-fact {
          margin: 8rem auto 0 auto;
     }

     .contactlogo {
          text-align: center;
     }
}

@media (max-width: 767px) {

     .custom-table th,
     .custom-table td {
          padding: 8px;
     }

     .info-header {
          font-size: 1rem;
     }

     .a-fact {
          padding: 0;
     }

     .body-cc {
          grid-template-columns: 1fr;
          gap: 0;
     }
}



@media (max-width: 657px) {

     .search-bar {
          grid-template-columns: auto;
     }


}

@media (max-width: 600px) {

     .container {
          width: 100% !important;
     }


     .icon-head li a {
          font-size: 14px;
     }
}

@media (max-width: 488px) {

     .icon-head li a {

          padding: 5px 10px;
     }

}

@media (max-width: 553px) {


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

}

@media (max-width: 400px) {


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