:root {
    --pastel-blue: #BDE0FE;
    --pastel-peach: #FEE4E3;
    --pastel-mint: #C9E4DE;
    --dark-blue: #4682B4;
    --accent-red: #0a61b2;
    --light-bg: #F8F8FF;
}

.pricing-section{padding-top: 30px;}
.pricing-table {
  width: 80%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 20px auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.pricing-table thead th {
  background-color: #BDE0FE;
  /* Pastel Blue */
  color: #0a61b2;
  padding: 15px 10px;
  text-align: center;
  font-weight: bold;
  font-size: 1.2em;
}

.pricing-table tbody tr {
  transition: background-color 0.3s ease;
}

.pricing-table tbody tr:nth-child(even) {
  background-color: #F8F8FF;
  /* Off-White/Lavender */
}

.pricing-table tbody tr:nth-child(odd) {
  background-color: #FEE4E3;
  /* Pastel Peach/Pink */
}

.pricing-table tbody tr:hover {
  background-color: #C9E4DE;
  /* Pastel Green/Mint Green */
  cursor: pointer;
}

.pricing-table td {
  padding: 12px 10px;
  text-align: center;
  color: #555;
  border-left: 1px solid #E0FFFF;
}

.pricing-table tbody tr td:first-child {
  text-align: left;
  color: #000;
}


/* ---------------------------------------------------- */
/* 2. Responsive Styles (สำหรับหน้าจอขนาดเล็ก)           */
/* ---------------------------------------------------- */

/* กำหนดจุด Media Query สำหรับหน้าจอมือถือ (<= 768px) */
@media screen and (max-width: 768px) {

  .responsive-table {
    border: none;
    /* ลบขอบตารางหลัก */
    box-shadow: none;
    /* ลบเงาตารางหลัก */
    border-radius: 0;
  }

  /* ซ่อนส่วนหัวของตาราง (Thead) */
  .responsive-table thead {
    border: none;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }

  /* ทำให้แต่ละแถว (Tr) แสดงผลเป็น Block (การ์ด) */
  .responsive-table tbody tr {
    display: block;
    margin-bottom: 1.5em;
    /* เว้นช่องไฟระหว่างการ์ด */
    border: 1px solid #BDE0FE;
    /* ขอบสีพาสเทลให้ดูเป็นกล่อง */
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    padding: 10px;
  }

  /* ทำให้แต่ละเซลล์ข้อมูล (Td) แสดงผลเป็น Block (แถว) */
  .responsive-table td {
    border-bottom: 1px dotted #E0FFFF;
    /* เส้นแบ่งระหว่างข้อมูล */
    display: block;
    text-align: right !important;
    /* จัดชิดขวาสำหรับข้อมูล */
    padding: 8px 10px;
    border-left: none;
  }

  /* ซ่อนค่าเริ่มต้นของแถวที่สลับสี เพราะแต่ละแถวคือกล่องแยกกัน */
  .responsive-table tbody tr:nth-child(even),
  .responsive-table tbody tr:nth-child(odd) {
    background-color: #F8F8FF;
    /* สีพื้นหลังของกล่องเดียว */
  }

  /* เพิ่มชื่อหัวข้อ (Label) ก่อนข้อมูลจริง */
  .responsive-table td::before {
    /* ใช้ค่าจาก data-label attribute ที่เพิ่มใน HTML */
    content: attr(data-label);
    float: left;
    font-weight: bold;
    color: #4682B4;
    /* สีตัวอักษรของ Label */
    margin-right: 10px;
  }

  /* จัดการแถวสุดท้ายของแต่ละกล่อง (ไม่ให้มีเส้นแบ่ง) */
  .responsive-table td:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }
}

/* ---------------------------------------------------- */
/* 1. Global & General Styling */
/* ---------------------------------------------------- */

.tour-program {
  font-family: 'Arial', sans-serif;
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background-color: #ffffff;
  /* White background */
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.tour-title {
  color: #4682B4;
  /* Pastel/Ocean Blue */
  text-align: center;
  font-size: 2.2em;
  padding-bottom: 10px;
  border-bottom: 3px solid #FEE4E3;
  /* Pastel Peach accent */
  margin-bottom: 20px;
}

.tour-intro {
  text-align: center;
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #555;
}



/* ---------------------------------------------------- */
/* 3. Table Styling (Itinerary & Pricing) */
/* ---------------------------------------------------- */

.itinerary-table,
.pricing-details {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.itinerary-table th,
.pricing-details th {
  background-color: #BDE0FE;
  /* Pastel Blue */
  color: #333;
  padding: 12px;
  text-align: left;
}

.itinerary-table td,
.pricing-details td {
  padding: 12px;
  border-bottom: 1px solid #E0FFFF;
  /* Very light blue separator */
  color: #555;
}

.itinerary-table tbody tr:nth-child(odd) {
  background-color: #FEE4E3;
  /* Pastel Peach/Pink for contrast */
}

.itinerary-table tbody tr:hover {
  background-color: #C9E4DE;
  /* Pastel Mint Green on hover */
}

.price-note {
  background-color: #FFFACD;
  /* Light Yellow/Cream warning */
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  color: #8B4513;
  /* Brown text for readability */
  border-left: 5px solid #FFA07A;
}

.extension-list {
  list-style-type: none;
  padding-left: 10px;
}

.extension-list li {
  background: #E0FFFF;
  /* Light Cyan/Aqua background */
  margin-bottom: 8px;
  padding: 8px 15px;
  border-radius: 5px;
  font-weight: bold;
}

/* ---------------------------------------------------- */
/* 4. Responsive Design (Mobile View) */
/* ---------------------------------------------------- */

@media screen and (max-width: 768px) {
  .tour-program {
    padding: 15px;
    margin: 20px 10px;
  }

  .tour-title {
    font-size: 1.8em;
  }

  /* Info Blocks Stack Vertically */
  .info-blocks {
    flex-direction: column;
  }

  /* Make Tables Responsive (Card View) */
  .itinerary-table,
  .pricing-details {
    border-collapse: separate;
    box-shadow: none;
  }

  .itinerary-table thead,
  .pricing-details thead {
    /* Hide table headers (but not visually) */
    border: none;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }

  .itinerary-table tr,
  .pricing-details tr {
    display: block;
    margin-bottom: 15px;
    border: 1px solid #BDE0FE;
    /* Card border */
    border-radius: 8px;
  }

  .itinerary-table td,
  .pricing-details td {
    display: block;
    text-align: right !important;
    padding: 10px;
    border-bottom: 1px dotted #E0FFFF;
  }

  .itinerary-table td:last-child,
  .pricing-details td:last-child {
    border-bottom: 0;
  }

  /* Add Labels using data-label attribute (Added in HTML) */
  .itinerary-table td::before,
  .pricing-details td::before {
    content: attr(data-label);
    float: left;
    font-weight: bold;
    color: #4682B4;
    /* Blue label text */
    margin-right: 10px;
  }

  .itinerary-table tbody tr:nth-child(even),
  .itinerary-table tbody tr:nth-child(odd) {
    background-color: #F8F8FF;
    /* Consistent background for 'cards' */
  }
}


.family-tour-program {
  font-family: 'Arial', sans-serif;
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
  background-color: var(--light-bg);
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.tour-header,
.block-title,
.duration-title,
.pricing-title,
.extension-title {
  color: var(--dark-blue);
  text-align: center;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.tour-header {
  font-size: 2.4em;
  border-bottom: 4px solid var(--pastel-peach);
}

.tour-intro {
  text-align: center;
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #555;
}

/* ---------------------------------------------------- */
/* 2. Duration and Section Blocks */
/* ---------------------------------------------------- */

.duration-box {
  background-color: var(--pastel-mint);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 30px;
}

.duration-title {
  font-size: 1.8em;
  border: none;
  margin-top: 0;
}

.duration-options {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 15px;
}

.duration-item {
  background-color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.duration-label {
  display: block;
  font-size: 0.9em;
  color: #888;
}

.duration-time {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--accent-red);
}

.attraction-sections {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.section-block {
  flex: 1;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid var(--pastel-blue);
}

.core-sightseeing {
  background-color: #f7fcff;
}

.kid-activities {
  background-color: var(--pastel-peach);
}

.section-block ul {
  list-style: none;
  padding-left: 0;
}

.section-block li {
  padding: 5px 0;
  color: #333;
}

.activity-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
}

.activity-group {
  flex: 1 1 45%;
  /* 2 columns layout on large screens */
  padding: 10px;
  border: 1px dashed var(--dark-blue);
  border-radius: 5px;
}

.activity-group h4 {
  color: var(--dark-blue);
  font-size: 1.1em;
  margin-top: 0;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(70, 130, 180, 0.3);
}



.pricing-table td {
  background-color: #FFD6EB;
  font-size: 1.1em;
}

.pricing-table td.price {
  color: var(--accent-red);
}

.extension-container {
  background-color: var(--pastel-mint);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
}

.extension-rates span {
  font-weight: bold;
  margin: 0 15px;
  color: #000;
}

.price-note {
  background-color: #FFFACD;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  color: #8B4513;
  border-left: 5px solid var(--accent-red);
}

/* ---------------------------------------------------- */
/* 4. Footer Info and Boat Tour Callout */
/* ---------------------------------------------------- */

.info-footer {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.info-block {
  flex: 1;
  padding: 20px;
  border-radius: 10px;
  background-color: #ffffff;
  border: 1px solid var(--pastel-mint);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.info-block.remark {
  flex: 1.5;
  /* ให้บล็อก Remark ใหญ่กว่าหน่อย */
  background-color: #f7fcff;
}


/* ---------------------------------------------------- */
/* 5. Responsive Styles (Mobile View) */
/* ---------------------------------------------------- */

@media screen and (max-width: 768px) {

  .tour-header {
    font-size: 1.6em;
  }

  /* Stack Sections and Footer Blocks */
  .attraction-sections,
  .info-footer,
  .duration-options {
    flex-direction: column;
    gap: 15px;
  }

  .section-block {
    margin-bottom: 15px;
  }

  .activity-grid {
    flex-direction: column;
  }

  /* Responsive Table (Card View) */
  .pricing-table thead {
    /* Hide table headers */
    position: absolute;
    clip: rect(1px, 1px, 1px, 1px);
    padding: 0;
    border: 0;
    height: 1px;
    width: 1px;
    overflow: hidden;
  }

  .pricing-table tr {
    display: block;
    margin-bottom: 10px;
    border: 1px solid var(--pastel-blue);
    border-radius: 8px;
    background-color: #ffffff;
  }

  .pricing-table td {
    display: block;
    text-align: right !important;
    border: none;
    border-bottom: 1px solid var(--pastel-mint);
    padding: 10px;
    font-size: 1em;
  }

  .pricing-table td:last-child {
    border-bottom: 0;
  }

  /* Add Labels using data-label attribute */
  .pricing-table td::before {
    content: attr(data-label);
    float: left;
    font-weight: bold;
    color: var(--dark-blue);
  }

  .extension-rates {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

    .travel-item:nth-child(2n+1){ transform: rotate(0deg) !important; }
    .travel-item:nth-child(2n){ transform: rotate(0deg) !important; }
    .tour-categories .box{width:calc(40% - 2px);flex-flow:row wrap;}
    .contactus__box{width: 90%;}
    .box-contact .box{margin:auto;flex:0 0 100%;}
    .box-contact .box h3{font-size: 15px;}
    .tour-categories .box h3{font-size: 1.5rem;}
    .pricing-table{width: 90%;}
    .box-contact .box h3{margin:10px 0 5px;}
    .box-contact .box img{width: 40px;}
    .cartransfer table{width: 100%;margin:0;}
    
}


.travel-gallery {
  display: flex;
  gap: 25px;
  justify-content: center;
  padding: 20px 20px;
}

.travel-item {
  position: relative;
  width: 33%;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  transition: transform 0.4s;
}

#gallery .travel-item{
  background-color: #fff;
  padding:10px;
  border: 1px solid #000;
  border-radius: 0px;

}

.travel-item img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

/* เอียงสลับ */
.tilt-left {
  transform: rotate(-4deg);
}

.tilt-right {
  transform: rotate(4deg);
}

/* Hover ให้ตรงขึ้น */
.travel-item:hover {
  transform: rotate(0deg) scale(1.05);
}

/* ชื่อสถานที่ */
.travel-item span {
  position: absolute;
  bottom: 16px;
  left: 45%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.55);
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.travel-item:nth-child(odd) {
  transform: rotate(-5deg) translateY(20px);
}

.travel-item:nth-child(even) {
  transform: rotate(5deg) translateY(-20px);
}

#gallery .travel-item:nth-child(odd) {
  transform: none;
}

#gallery .travel-item:nth-child(even) {
  transform: none;
}

@media (max-width: 1024px) {
  .travel-gallery {
    flex-wrap: wrap;
  }

  .travel-item {
    width: 45%;
  }
}

@media (max-width: 600px) {
  .travel-item {
    width: 100%;
    transform: rotate(0deg);
  }
}
