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

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

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

.btn-confirm {
     background: linear-gradient(135deg, #007bff, #00d4ff);
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-confirm:active {
     transform: scale(0.95);
}

.list-llc li {
     margin: 10px 0;
     font-size: 15px;
     display: flex;
     align-items: center;
     gap: 8px;
}

.list-llc li i {
     color: #007bff;
     font-size: 16px;
}

.contact-info-item h5 i {
     color: #007bff;
     margin-right: 8px;
}

/* ปรับ link เบอร์โทร */
.contact-links a {
     display: inline-block;
     margin: 5px 0;
     padding: 6px 10px;
     border-radius: 8px;
     color: #1c1b1b;
     text-decoration: none;
     font-weight: 500;
     transition: all 0.3s ease;
     background: rgba(0, 123, 255, 0.05);
}

.contact-links a i {
     margin-right: 8px;
     color: #007bff;
}

.contact-links a:hover {
     background: linear-gradient(135deg, #007bff, #00c6ff);
     color: #fff;
     transform: translateY(-2px);
}

.contact-links a:hover i {
     color: #fff;
}

/* ปุ่ม Social Media */
.social-links {
     display: flex;
     flex-direction: column;
     gap: 8px;
}

.social-links a {
     display: inline-flex;
     align-items: center;
     gap: 10px;
     font-size: 15px;
     padding: 8px 14px;
     border-radius: 10px;
     color: #fff;
     text-decoration: none;
     font-weight: 500;
     transition: all 0.3s ease;
}

.social-links a i {
     font-size: 18px;
}

/* สีเฉพาะแบรนด์ */
.social-links a.fb {
     background: #1876f2e1;
}

.social-links a.ig {
     background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-links a.line {
     background: #00b900;
}

.social-links a.wa {
     background: #25d366;
}

.social-links a:hover {
     transform: scale(1.05);
     box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.contact-section {
     position: relative;
     padding: 80px 20px;
     background: linear-gradient(to bottom right, #f7faff, #e3f2fd);
     border-radius: 20px;
     margin: 100px auto;
     width: 70%;
     box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
     transition: all 0.3s ease;
}

.contact-section h3 {
     text-align: center;
     font-size: 2.2rem;
     font-weight: 700;
     color: #1c3f66;
     margin-bottom: 40px;
     position: relative;
}

.contact-section h3::after {
     content: "";
     display: block;
     width: 80px;
     height: 4px;
     background: linear-gradient(90deg, #007bff, #00d4ff);
     margin: 10px auto 0;
     border-radius: 2px;
}

/* กล่องข้อมูล */
.contact-info-box {
     display: flex;
     flex-wrap: wrap;
     justify-content: space-between;
     gap: 25px;
     margin: 0 auto 40px auto;
     max-width: 90%;
}

.contact-info-item {
     flex: 1 1 calc(33.333% - 25px);
     background: #fff;
     border-radius: 14px;
     padding: 25px;
     text-align: left;
     box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
     transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-item:hover {
     transform: translateY(-5px);
     box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.contact-info-item h5 {
     font-size: 1.1rem;
     font-weight: 600;
     color: #0c2a47;
     margin-bottom: 8px;
}

.contact-info-item p,
.contact-info-item a {
     font-size: 0.95rem;
     color: #242424;
     line-height: 1.6;
     text-decoration: none;
}

.contact-info-item a:hover {
     color: #ffffff;
     text-decoration: underline;
}

/* รูปภาพกลาง */
.contact-image-box,
.contact-detail-box {
     text-align: center;
     width: 50%;

}

.contact-image-box img,
.contact-detail-box img {
     width: 100%;
     max-width: 90%;
     border-radius: 20px;
     box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
     transition: transform 0.3s ease;
}

.contact-image-box img:hover,
.contact-detail-box img:hover {
     transform: scale(1.03);
}

.box-pic {
     display: flex;
     justify-content: space-between;
     width: 95%;
     align-items: flex-start;
     margin: auto;
}

.map-btn {
     display: inline-block;
     margin: 20px 0;
     background: linear-gradient(135deg, #007bff, #00d4ff);
     color: white;
     padding: 10px 24px;
     border-radius: 30px;
     text-decoration: none;
     font-weight: 600;
     transition: 0.3s ease;
}

.map-btn:hover {
     background: linear-gradient(135deg, #0056b3, #0092cc);
     transform: translateY(-2px);
}

/* ข้อความท้าย */
.contact-detail-box p {
     font-size: 1rem;
     color: #333;
     max-width: 750px;
     margin: 0 auto;
     line-height: 1.8;
}

/* Responsive */
/* ===============================
   CONTACT IMAGE VIEWER
   =============================== */

/* ให้รูปดูน่าคลิกขึ้น */
.contact-image-box img,
.contact-detail-box img {
     border-radius: 12px;
     box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
     cursor: pointer;
     transition: transform 0.3s ease, box-shadow 0.3s ease;
     margin: 10px auto;
     display: block;
}

.contact-image-box img:hover,
.contact-detail-box img:hover {
     transform: scale(1.03);
     box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ===============================
   IMAGE MODAL FULLSCREEN
   =============================== */
.image-modal {
     position: fixed;
     inset: 0;
     background: rgba(0, 0, 0, 0.85);
     display: flex;
     align-items: center;
     justify-content: center;
     z-index: 9999;
     visibility: hidden;
     opacity: 0;
     transition: opacity 0.4s ease, visibility 0.4s ease;
}

.image-modal.show {
     visibility: visible;
     opacity: 1;
}

.image-modal img {
     max-width: 90%;
     max-height: 90vh;
     border-radius: 10px;
     box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
     transition: transform 0.3s ease;
}

/* ปุ่มปิด */
.image-modal .close-btn {
     position: absolute;
     top: 25px;
     right: 35px;
     font-size: 2rem;
     color: #fff;
     cursor: pointer;
     font-weight: 700;
     transition: transform 0.3s ease;
}

.image-modal .close-btn:hover {
     transform: scale(1.2);
}


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

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

@media (max-width: 900px) {
     .contact-info-item {
          flex: 1 1 100%;
     }

     .contact-section {
          padding: 60px 15px;
     }

     .box-pic {
          display: flex;
          flex-direction: column;
          align-items: center;
     }

     .contact-image-box,
     .contact-detail-box {
          width: 100%;
          margin-top: 0;
     }

     .contact-info-box {
          margin: 0 auto 5px auto;
     }
}

@media (max-width: 600px) {
     .contact-section h3 {
          font-size: 1.8rem;
     }

     .map-btn {
          font-size: 0.9rem;
          padding: 8px 18px;
     }
}

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

@media (max-width: 768px) {
     .contact-section {
          width: 90%;
          padding: 20px 15px;
          margin: 5rem auto;
     }
}