.tour-full {
  background-color: white;
  align-self: center;
  margin-left: max(calc((100vw - 1170px) / 2), 120px);
  margin-right: max(calc((100vw - 1170px) / 2), 120px);
  margin-top: 100px;
  margin-bottom: 20px;
  font-family: "Lora", serif;
}

.tour-full p {
  margin-top: 5px;
  margin-bottom: 5px;
}

.main-container {
  height: 600px;
  display: flex;
  flex-direction: row;
}

.slider-container {
  flex: 2;
  display: flex;
  flex-direction: column;
}

.main-carousel-container {
  width: 750px;
  background-color: black;
  flex: 1;
}

.splide {
  max-width: 100%;
  overflow: hidden;
}

.splide-text {
  position: absolute;
  bottom: 10px;
  left: 10px;
  color: #fff;
  text-shadow: 1px 1px 3px #3E4095, -1px -1px 3px #3E4095, 1px -1px 3px #3E4095, -1px 1px 3px #3E4095, 0px 0px 15px #3E4095;
}

.splide__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#thumbnail-carousel .splide__slide {filter: brightness(75%); margin-bottom: 10px;}
#thumbnail-carousel .splide__slide.is-active {filter: brightness(100%); border: 3px solid #3E4095 !important;  }

.thumbnail-container {
  width: 750px;
  height: 100px;
}

.price-buttons-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-left: 30px;
}

.price-container {
  flex: 5;
  background-color: #ececf5;
  margin-bottom: 30px;
  
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertical centering */
  align-items: center;     /* center horizontally */
  text-align: center;      /* default for texts inside, overridden below */
}

.price-container .tour-highlights {
  width: 80%;          /* optional: limits the width */
  text-align: left;    /* inner items are left-aligned */
  margin-top: 15px;
}

.buttons-container {
  flex: 5;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.buttons-container a{
  border: 3px solid #3E4095;
  flex: 0.3;
  font-size: 24px;
  color: #3E4095;
  align-content: center;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  margin-top: 10px;
  border-radius: 4px;
}

.buttons-container a:hover{
  background-color: #F58634;
  color: white;
}

.tour-details-container {
  margin-top: 10px;
  width: 750px; 
}
.tour-description-container{
  display: flex;
  flex-direction: row;
  margin-top: 10px;
  width: 750px;
  gap: 20px;
}

.description-box {
  flex: 1; /* Makes both boxes take up equal width */
  text-align: justify;
}

.description-box h3{
  text-align: center;
  color: #3E4095;
}

.tour-itinerary-container{
  display: flex;
  flex-direction: row;
  scroll-margin-top:100px;
  margin-top: 30px;
}
  
.all-itineraries{
  flex: 0 0 750px;
  margin-right: 15px;
  text-align: justify;
  width: 750px;
}

.all-itineraries img{
  display: none;
}

.tour-map {
  flex: 1; 
  margin-left: 15px;
}

.tour-map img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.map-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    overflow: auto;
}

.map-modal-content {
    display: block;
    margin: 50px auto;
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

.map-close {
    position: absolute;
    top: 25px;
    right: 40px;
    color: white;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.map-close:hover {
    color: #F58634;
}

.booking-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.65);
}

.booking-modal-content {
    background: white;
    width: 400px;
    margin: 100px auto;
    padding: 25px;
    border-radius: 8px;
    position: relative;
}

.booking-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
}

#bookingForm input,
#bookingForm textarea {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: 2px solid #ececf5;
    border-radius: 5px;
    box-sizing: border-box;
}

.booking-submit-btn {
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    background-color: #3E4095;
    border: none;
    border-radius: 5px;
    color: white;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    transition: 0.2s;
}

.booking-submit-btn:hover {
    background-color: #F58634;
}

.tour-highlights {
  margin-top: 15px;
  font-size: 14px;
  color: #333;
}

.tour-highlights p {
  margin: 4px 0;
}

.button-small {
  font-size: 16px;
  padding: 8px 50px;
  width: auto;
  height: auto;
  align-self: flex-start;
}

/* Styled check icon to replace emoji */
.check-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #3E4095; /* project accent */
  color: #fff;
  text-align: center;
  line-height: 18px;
  font-size: 12px;
  margin-right: 8px;
  vertical-align: middle;
}

.check-icon::after {
  content: "\2713"; /* check mark */
}


@media (min-width:1280px) {}

@media (max-width:1279px) {
  .tour-full {
    margin-left: max(calc((100vw - 1040px) / 2), 70px);
    margin-right: max(calc((100vw - 1040px) / 2), 70px);
  }

  .main-container {
    flex-direction: column;
    height: auto;
  }

  .slider-container {
    flex: 5;
  }

  .price-buttons-container {
    flex-direction: row;
    margin-left: 0;
    margin-top: 30px;
  }
  .price-container{
    flex: 3;
    margin-right: 15px;
    margin-bottom:0;
  }

  .price-container table{
    display: none;
  }
  .upcoming-dates-text{
    display: none;
  }
  .buttons-container{
    margin-left: 15px;
  }
  .tour-description-container{
    width: calc(100vw - max(calc((100vw - 1040px) / 2), 70px) * 2 - 15px);
  }
  .tour-details-container{
    width: calc(100vw - max(calc((100vw - 1040px) / 2), 70px) * 2 - 15px);
  }
  .all-itineraries{
    margin-right: 0;
  }

  .tour-map img{
    width: min(400px, calc(100vw - max(calc((100vw - 1040px) / 2), 70px) * 2) / 2 - 60px );
    height: width;
    object-fit: cover;
  }
}

@media (max-width: 767px) {

  .main-carousel-container,
  .thumbnail-container,
  .tour-details-container,
  .tour-description-container,
  .all-itineraries {
    width: 100% !important;
    max-width: 100% !important;
  }

  .all-itineraries {
    flex: 1 !important;
  }
}

@media (max-width: 767px) {
  .tour-full {
    margin-left: 15px;
    margin-right: 15px;
  }

  .slider-container {
    flex: 3;
  }

  .thumbnail-container {
    height: 80px;
  }

  .price-buttons-container {
    flex-direction: column;
    flex: 2;
    margin-top: 15px;
  }
  .price-container{
    margin-bottom:15px;
    margin-right: 0;
    flex: 2;
  }
  .buttons-container{
    flex: 3;
    margin-left: 0;
  }
  
  .main-container {
    height: auto !important;
  }

  .buttons-container a{
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  
  .tour-description-container{
    flex-direction: column;
    margin-top: 30px;
    width: calc(100vw - max(calc((100vw - 628px) / 2), 15px) * 2 - 15px);
  }
  .tour-details-container{
    width: calc(100vw - max(calc((100vw - 628px) / 2), 15px) * 2 - 15px);
  }

  .tour-itinerary-container{
    flex-direction: column;
    margin-top: 15px;
  }
  .all-itineraries{
    flex:1;
    margin-right: 0;
    margin-top: 15px;
  }
  .all-itineraries img{
    display: block;
    width: 100%; 
    height: auto;
    max-width: 400px;
    margin:auto;
    object-fit: cover;
  }
  .tour-map{
     flex: 1;
    width: 100%;
    margin-left: 0;
    background-color: aqua;
    object-fit: cover;
  }
  .tour-map img{
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
  }
}

.collapsible {
  background-color: #f8f8f8;
  color: white;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 15px;
}

.tour-itinerary-container .active, .collapsible:hover {
  background-color: #f1f1f1;
}

.content {
  font-family: "Lora", serif;
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  background-color: white;
  font-size: 16px;
  line-height: 1.8;
}


.tour-itinerary-container button.collapsible:after {
  content: '\002B';
  font-weight: bold;
  float: right;
  margin-left: 5px;
}

.tour-itinerary-container button.collapsible.active:after {
  content: "\2212";
}


/* Pricing table: container width matches itinerary list and alternating row backgrounds */
.tour-pricing-container {
  width: 750px; /* match .all-itineraries */
  margin: 24px 0;
}
.pricing-table {
  width: 100%;
  border-collapse: collapse;
}
.pricing-table thead th {
  text-align: left;
  padding: 12px;
  background: #3E4095;
  color: #fff;
  font-weight: 600;
}
.pricing-table td, .pricing-table th {
  padding: 12px;
  border-bottom: 1px solid #e5e5e5;
}
/* Alternating rows: white, light gray */
.pricing-table tbody tr:nth-child(odd) {
  background-color: #f8f8f8;
}
.pricing-table tbody tr:nth-child(even) {
  background-color: #ffffff;
}
.pricing-table td.price {
  color: #F58634;
  font-weight: 600;
}
.pricing-table td.action { text-align: center; }
.pricing-table a.book-it {
  background: #F58634;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
}
.pricing-table a.book-it:hover { background: #3E4095; }

@media (max-width:1279px) {
  .tour-pricing-container { width: calc(100vw - max(calc((100vw - 1040px) / 2), 70px) * 2 - 15px); }
}

@media (max-width:767px) {
  .tour-pricing-container { width: calc(100vw - max(calc((100vw - 628px) / 2), 15px) * 2 - 15px); }
  /* Keep table layout on small screens so mobile matches desktop */
  .pricing-table thead { display: table-header-group; }
  .pricing-table tbody tr { display: table-row; border-bottom: 1px solid #e5e5e5; }
  .pricing-table td { display: table-cell; width: auto; }
  .pricing-table td.action { text-align: center; padding: 12px; }
}

/* ── Reviews section ─────────────────────────────── */
.reviews-section {
  margin-top: 40px;
  margin-bottom: 40px;
}
.reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.reviews-title {
  font-weight: 600;
  font-size: 22px;
  color: #3E4095;
  margin: 0;
}
.reviews-header .button {
  border: 3px solid #3E4095;
  padding: 8px 20px;
  font-size: 16px;
  color: #3E4095;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
  background: none;
  cursor: pointer;
  font-family: inherit;
}
.reviews-header .button:hover {
  background-color: #F58634;
  color: white;
  border-color: #F58634;
}
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review-card {
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 18px 22px;
  background: #fafafa;
}
.review-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.review-stars { font-size: 20px; }
.star { color: #d0d0d0; }
.star.filled { color: #F58634; }
.review-author {
  font-weight: 600;
  color: #3E4095;
  font-size: 14px;
}
.review-date {
  font-size: 13px;
  color: #999;
  margin-left: auto;
}
.review-body {
  font-size: 15px;
  color: #444;
  line-height: 1.6;
  margin: 0;
}
.reviews-empty {
  color: #888;
  font-style: italic;
  margin-top: 10px;
}

/* ── Review modal ────────────────────────────────── */
.review-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
}
.review-modal-content {
  background: #fff;
  margin: 8% auto;
  padding: 30px 36px;
  border-radius: 12px;
  max-width: 480px;
  position: relative;
}
.review-close {
  position: absolute;
  top: 14px; right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: #999;
}
.review-modal-content input,
.review-modal-content textarea {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  box-sizing: border-box;
}
.review-modal-content textarea { resize: vertical; min-height: 90px; }
.review-submit-btn {
  width: 100%;
  padding: 12px;
  background: #3E4095;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.review-submit-btn:hover { background: #2e3070; }

/* ── Star rating picker ──────────────────────────── */
.star-picker {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
  margin-bottom: 14px;
}
.star-picker input { display: none; }
.star-picker label {
  font-size: 32px;
  color: #d0d0d0;
  cursor: pointer;
  transition: color 0.1s;
}
.star-picker label:hover,
.star-picker label:hover ~ label,
.star-picker input:checked ~ label {
  color: #F58634;
}