html,
body {
    height: 100%;
    background: #f2f2f2;
}

*,
*:before,
*:after {
    box-sizing: border-box;
}


.bigimg .cloud{
	position: absolute;
	top: calc(100vw/1920*100);
    left: 85%;
}
.bigimg .cloud img{
	width: 80px;
	
}
.bigimg .flower{
	position: absolute;
	top: calc(100vw/1920*500);
    right: 42%;
}
.bigimg .flower img{
    width: 50px;
	
}

.container{
	width: 100%;
    max-width: 1140px;
    text-align: justify;
	font-family: 微軟正黑體;
}

.groupTitle{
	padding: 20px;
	clear:both;
	font-size: 18px;
}
.groupTitle img{
	vertical-align: bottom;
}
.checkbox-group{
	position: relative;
	
}
.checkbox{
	width: calc(25% - 10px);
	max-width: calc(285px - 10px);
	float: left;
	background-color: #fff;
	margin-right: 10px;
}
.tourdata{
	width: 75%;
	float: left;
}
.form-control {
    height: 50px;
    margin: .2rem 0;
}
@media screen and (min-width: 768px) {
	.m_promotion ,#pcnoshow {
		display: none;
	}
}
@media screen and (max-width: 767px) {
	.flower, .cloud{
		display: none;
	}
	.checkbox, .tourdata{
		width: 100%;
		max-width: 100%;
		margin-right: 0px;
	}
	.form-inline{
		width: 100%;
		padding: 15px;
	}
	#pcnoshow{
		display: block;
	}
}
.form-group label{
	font-size: 18px;
}
.form-control{
	background-color: #fff;
	text-align: center;
}








/* -- TourBox -- */
.tourBox {
  display: -webkit-flex;
  display: flex;
  flex-direction: row;
  position: relative;
  background: #fff;
  border-radius: 2px;
}
.tourBox .tripRecommendText {
  position: absolute;
  top: -37px;
  left: 10px;
  color: #fff;
  display: none;
}
.tourBox .saleTagsBox {
  position: absolute;
  top: 10px;
  left: -5px;
  z-index: 1;
  display: none;
}
.tourBox .saleTagsBox .saleTags {
  position: relative;
  padding: 3px 7px;
}
.tourBox .saleTagsBox .saleTags span {
  padding: 0 3px;
}
.tourBox .saleTagsBox .saleTags.redBox {
  background: #f44336;
  color: #fff;
}
.tourBox .saleTagsBox .saleTags:before,
.tourBox .saleTagsBox .saleTags:after {
  position: absolute;
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
}
.tourBox .saleTagsBox .saleTags:before {
  bottom: -5px;
  left: 0;
  border-width: 5px 0 0 5px;
  border-color: #b71c1c transparent transparent transparent;
}
.tourBox .saleTagsBox .saleTags:after {
  top: 0;
  right: -15px;
  border-width: 15px 0 15px 15px;
  border-color: transparent transparent transparent #f44336;
}
.tourBox .imgGroup {
  -webkit-flex: none;
  flex: none;
  width: 250px;
  overflow: hidden;
  position: relative;
}
.tourBox .tripImg {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
  -o-transition: all 0.5s ease;
  transition: all 0.5s ease;
  text-decoration: none;
}
.tourBox .dayPriceBox {
  position: absolute;
  left: 20px;
  bottom: 10px;
  z-index: 1;
}
.tourBox .dayPriceBox .originPrice {
  display: none;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}
.tourBox .dayPriceBox .originPrice span {
  text-decoration: line-through;
}
.tourBox .dayPriceBox .dayPrice {
  color: #fff;
  font-size: 14px;
}
.tourBox .dayPriceBox .dayPrice span {
  color: #ff9800;
  font-size: 23px;
  font-weight: 700;
}
.tourBox .imgMask {
  position: absolute;
  padding-bottom: 48%;
  bottom: 0;
  left: 0;
  right: 0;
  background: -moz-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
  background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
}
.tourBox .tourInfo {
  -webkit-flex: initial;
  flex: initial;
  position: relative;
  display: -webkit-inline-flex;
  display: -moz-inline-flex;
  display: -ms-inline-flex;
  display: inline-flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  vertical-align: top;
  align-content: space-between;
  flex-direction: row;
}
.tourBox .tourInfo > div {
  width: 100%;
}
.tourBox .tourInfo .infoGroup {
  padding: 20px 20px 5px;
}
.tourBox .tourInfo .infoGroup .evalBox {
  overflow: hidden;
  transform: scale(0.8);
  transform-origin: left top;
}
.tourBox .tourInfo .infoGroup .travelName,
.tourBox .tourInfo .infoGroup .ratingBox {
  color: #777;
  float: left;
}
.tourBox .tourInfo .infoGroup .ratingBox {
  padding: 1px 0 0 5px;
}
.tourBox .tourInfo .infoGroup .strokeName {
  clear: both;
  margin-top: 5px;
  overflow: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  color: #333;
}
.tourBox .tourInfo .infoGroup .strokeName strong {
  color: #333;
  font-size: 18px;
}
.tourBox .tourInfo .infoGroup .strokeName h2 {
  color: #333;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
}
.tourBox .tourInfo .infoGroup .locate {
  display: inline-block;
  font-size: 12px;
  color: #757575;
  font-weight: bold;
  background: #f5f5f5;
  vertical-align: middle;
  padding: 0 5px;
  margin-top: 5px;
}
.tourBox .tourInfo .infoGroup .locate .material-icons {
  font-size: 12px;
  color: #bdbdbd;
  line-height: 18px;
  vertical-align: bottom;
}
.tourBox .tourInfo .infoGroup .locate h3 {
  font-size: 12px;
  display: inline;
  font-weight: 700;
}
@media screen and (max-width: 499px) {
  .tourBox .tourInfo {
    display: block;
    min-height: 100%;
  }
}
@media not all and (min-resolution: 0.001dpcm) {
  .tourBox .tourInfo {
    min-height: 350px;
  }
}
@media screen and (max-width: 500px) {
  .tourBox .tourInfo {
    min-height: auto;
  }
}
.tourBox:hover .tripImg {
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}
/* ----- 直式 tourBox ----- */
@media (max-width: 767px) {

	#resultTours {
	  max-width: 1140px;
	  margin: 0 auto;
	  display: block;
	  padding: 0;
	}
	#resultTours .tourBox {
	  height: 100%;
	  flex-direction: column;
	}
	#resultTours .tourBox .imgGroup {
	  width: 100%;
	  height: 0;
	  padding-bottom: 56.25%;
	}
	#resultTours .tourInfo {
	  height: 100%;
	}
	#resultTours .newTourBox {
	  -webkit-flex: none;
	  flex: none;
	  width: calc(100% / 3 - 10px);
	  margin-left: calc(10px * 3 / 2);
	  margin-bottom: calc(10px * 3 / 2);
      width: 100%;
      margin: 0;
      margin-bottom: 15px;
	}
	#resultTours .newTourBox:nth-child(3n+1) {
	  margin-left: 0;
	}
}
.preFlag {
    margin: 5px 20px;
    font-size: 0;
}
.preFlag .tag[rel='forTripMember'] {
    padding: 0;
    font-size: 0;
    border: none;
    background: transparent;
}
.preFlag .tag {
    display: inline-block;
    margin: 5px 2px;
    border-radius: 15px;
    font-size: 12px;
    padding: 0 7px;
    color: #E20EA1;
    background: #fff;
    border: 1px #E20EA1 solid;
    cursor: default;
}
@media (max-width: 767px) {
	.preFlag .tag[rel='forTripMember'] {
	    width: 100%;
	}
}
.preFlag .tag[rel='forTripMember'] span {
    font-size: 12px;
    border: 1px #00c853 solid;
    border-left-width: 0;
    padding: 2px 7px;
    color: #00c853;
    background: #fff;
}
.preFlag .tag[rel='forTripMember'] span:first-child {
    background: #00c853;
    color: #fff;
    border-bottom-left-radius: 15px;
    border-top-left-radius: 15px;
}
.preFlag .promotion_text{
	font-size: 15px;
    border-left-width: 0;
    padding: 2px 5px 2px 2px;
    color: #FF4D4D;
    background: #fff;
	border: 0;
}
.preFlag .tag.tripressoTag[data-toggle="popover"], .preFlag .tag.discountTag[data-toggle="popover"] {
    position: relative;
    padding-right: 18px;
}
.preFlag .tag.tripressoTag[data-toggle="popover"]:after, .preFlag .tag.discountTag[data-toggle="popover"]:after {
    content: "\e88f";
    font-size: 12px;
    font-family: 'Material Icons';
    line-height: 0;
    vertical-align: middle;
    padding-left: 2px;
    position: absolute;
    top: 9px;
}
.preFlag .tag[rel='forTripMember'] span:last-child {
    border-bottom-right-radius: 15px;
    border-top-right-radius: 15px;
}
.dateFavoriteBox {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: flex-start;
    justify-content: flex-start;
    flex-direction: row;
    border-top: 1px #d2d2d2 solid;
}
.newTourBox {
    margin-bottom: 15px;
    position: relative;
}
.newTourBox .dateFavoriteBox .dateBox {
    width: calc(100% - 10px);
}
.dateFavoriteBox .dateBox {
    -webkit-flex: initial;
    flex: initial;
    width: 100%;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: flex-start;
    justify-content: flex-start;
    flex-direction: row;
    padding: 15px 20px;
    position: relative;
}
.dateFavoriteBox .dateBox .dateList {
    width: calc(100% - 50px);
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: flex-start;
    align-items: flex-start;
    -webkit-justify-content: flex-start;
    justify-content: flex-start;
    flex-direction: row;
    overflow:hidden;
    white-space: nowrap;
	text-overflow: ellipsis;
}
/*用寬度隱藏限時促銷與保證出團的date*/
@media (max-width: 590px) {
	.dateFavoriteBox .dateBox .dateList {
		width: 405px;
	}
}
@media (max-width: 505px) {
	.dateFavoriteBox .dateBox .dateList {
		width: 320px;
	}
}
@media (max-width: 420px) {
	.dateFavoriteBox .dateBox .dateList {
		width: 235px;
	}
}
@media (max-width: 335px) {
	.dateFavoriteBox .dateBox .dateList {
		width: 150px;
	}
}
.dateFavoriteBox .dateBox .dateList .flagGroupStatus {
    display: none;
    font-size: 14px;
    position: relative;
    margin-right: 20px;
}
.newTourBox .dateFavoriteBox .dateBox .dateList .flagGroupStatus:nth-child(1), .newTourBox .dateFavoriteBox .dateBox .dateList .flagGroupStatus:nth-child(2), .newTourBox .dateFavoriteBox .dateBox .dateList .flagGroupStatus:nth-child(3), .newTourBox .dateFavoriteBox .dateBox .dateList .flagGroupStatus:nth-child(4), .newTourBox .dateFavoriteBox .dateBox .dateList .flagGroupStatus:nth-child(5) {
    display: inline;
}
.dateFavoriteBox .dateBox .dateList .flagGroupStatus:nth-child(1), .dateFavoriteBox .dateBox .dateList .flagGroupStatus:nth-child(2), .dateFavoriteBox .dateBox .dateList .flagGroupStatus:nth-child(3) {
    display: inline;
}
.dateFavoriteBox .dateBox .dateList .flagGroupStatus[rel='guarantee'] a {
    color: #FF8800;
}

.dateFavoriteBox .dateBox .dateList .flagGroupStatus[rel='timeLimit'] a {
    color: #03a9f4;
}
.toolTipBox {
    display: inline-block;
    position: relative;
    text-align: center;
}
.dateFavoriteBox .dateBox .dateList .flagGroupStatus[rel='guarantee'] .toolTipTextBox {
    background-color: #FF9B26;
}

.dateFavoriteBox .dateBox .dateList .flagGroupStatus[rel='timeLimit'] .toolTipTextBox {
    background-color: #03a9f4;
}
.dateFavoriteBox .dateBox .dateList .flagGroupStatus .toolTipTextBox {
    font-size: 13px;
}
.dateFavoriteBox .dateBox .toolTipBox .toolTipTextBox {
    position: static;
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}
.toolTipBox .toolTipTextBox {
    visibility: hidden;
    width: 65px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 3px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 1s;
    font-size: 13px;
    line-height: 1;
}
.dateFavoriteBox .dateBox .dateMore {
    font-size: 14px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 20px;
}
.dateFavoriteBox .dateBox .dateMore a {
    color: #999;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
    text-decoration: none;
}



/* 2024.12.19 simon */
/* 排序按鈕(最低價格、出發日、天數) */
.menu {
  display: flex;
  position: relative;
  justify-content: space-around; /* 使子項目在父容器中均勻分佈 */
  align-items: center; /* 垂直置中 */
  width: 1100px;
  margin: 0 auto; /* 將.menu容器本身在父容器中置中 */
}
.menu-item {
  font-size: 16px;
  color: #333;
  padding: 10px 20px;
  cursor: pointer;
  transition: color 0.3s ease;
  text-align: center; /* 使文本在每個項目中居中 */
  position: relative; /* 使每個項目內的底線可以相對定位 */
}
.menu-item:hover {
  color: #67b0d1;
}
/* 按鈕底線 */
.indicator {
  position: absolute;
  bottom: 0;
  height: 3px;
  background-color: #67b0d1;
  transition: left 0.4s ease, width 0.4s ease;
  display: none;
}
/* footer跑版問題 */
.tourdata.group3 {
  height: auto;
  min-height: 66px; 
}
