@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 {

     overflow-x: hidden;
}

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

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

.container {
     width: 70%
}

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

}

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

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

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

.contactlogo {
     text-align: center;
     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;
}

/* ==============================
   SECTION & TITLE
================================= */
.tours {
     padding: 0;
}

.group-title {
     margin-bottom: 0.5rem;
     color: #000000;
     text-shadow: 0 2px 4px rgba(255, 255, 255, 0.4);
}

.group-title .main-title {
     font-size: clamp(1.8rem, 2vw + 1rem, 2.5rem);
     font-weight: 700;
     margin-bottom: 0.5rem;
     background: linear-gradient(90deg, #048fae, #0dcaf0);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
}

.group-title p {
     font-size: 1rem;
     font-weight: 500;
     color: #000000;
     margin: 0;
}

/* ==============================
   TABLE BOX
================================= */
.table-schedule {
     background: rgb(255, 255, 255);
     border-radius: 16px;
     padding: 1.5rem;
     box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
     margin-bottom: 2rem;
     backdrop-filter: blur(6px);
     transition: transform 0.2s ease, box-shadow 0.3s ease;
     border: 1px solid rgba(0, 198, 255, 0.3);
     overflow-x: auto;
}

.table-schedule:hover {
     transform: translateY(-5px);
     box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.table-schedule h4 {
     font-size: 1.5rem;
     font-weight: 600;
     margin: 1rem 0;
     color: #006994;
     /* ฟ้าน้ำทะเลเข้ม */
}

/* ==============================
   TABLE STYLE
================================= */
.table-style1 {
     width: 100%;
     border-collapse: collapse;
     background: #fff;
     border-radius: 8px;
     overflow: hidden;
}

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

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

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

/* Hover effect */
.table-style1 tbody tr:hover {
     background: #b2ebf2;
     transition: 0.3s ease;
}

.subtitle-sec {
     padding: 0px;
     margin: 130px auto 0 auto;
}

/* กล่องเนื้อหา */
.table-schedule {
     width: 100%;
     border-collapse: collapse;
     background: #fff;
     border-radius: 8px;
     overflow: hidden;
     display: grid;
}

/* หัวข้อหลัก */
.table-schedule .main-title {
     font-size: 1.6rem;
     font-weight: 700;
     color: #006994;
     margin-bottom: 1rem;
     text-align: left;
}

/* Contact */

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

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

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

.table-schedule p {
     text-align: start;
}

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

}


@media (max-width: 768px) {
     .table-schedule {
          padding: 12px;
     }

     .table-schedule .main-title {
          font-size: 1.4rem;
     }

     .table-schedule h4,
     .table-schedule p {
          font-size: 0.9rem;
          margin: 0.5rem;

     }

     .table-style1 {
          font-size: 0.85rem;
     }

     .subtitle-sec {
          width: 100%;
          max-width: 100%;
          margin-top: 5rem;
     }

     .container {
          width: 99%;
     }

}

@media (max-width: 660px) {

     .search-bar {

          grid-template-columns: auto;
     }

     .price strong {
          font-size: 16px;
     }

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

     .price strong {
          font-size: 15px;
     }

}

@media (max-width: 514px) {
     .icon-head li a {
          font-size: 12px;
     }

     .icon-head li a {

          padding: 5px 7px;
     }

}

@media (max-width: 468px) {
     .table-style1 {
          font-size: 0.75rem;
          /* ลดขนาดตัวอักษร */
     }

     .table-style1 thead th,
     .table-style1 tbody td {
          padding: 6px;
          /* ลด padding */
     }
}

@media (max-width: 660px) {
     .cart-popup {
          position: fixed !important;
          top: 330% !important;
          left: 50% !important;
          transform: translate(-50%, -50%) !important;
          width: 90% !important;
          max-width: 400px !important;
          margin: 0 !important;
          z-index: 9999;
     }
}

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