/* ================= TOUR PAGE ================= */

.tourPage{
  padding-top: 130px;
}

.tourLayout{
  width: 90%;
  margin: 0 auto;
  display: flex;
  gap: 25px;
}

/* ===== LIST ===== */
.tourList{
  width: 70%;
}

.tourSort{
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.tourSort button{
  padding: 10px 18px;
  border-radius: 25px;
  border: 1px solid #d6d6d6;
  background: #fff;
}

.tourSort button.active{
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* item */
.tourItem{
  display: flex;
  border-radius: 18px;
  background: #fff;
  box-shadow: rgba(0,0,0,0.08) 0 2px 8px;
  margin-bottom: 18px;
  overflow: hidden;
}

/* price */
.tourPrice{
  width: 30%;
  background: #f0f2f5;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.tourPrice strong{
  font-size: 18px;
}

.warn{
  font-size: 12px;
  color: red;
  border: 1px solid red;
  width: fit-content;
  padding: 2px 8px;
  border-radius: 8px;
}

/* info */
.tourInfo{
  width: 70%;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tourMeta{
  display: flex;
  gap: 15px;
  font-size: 13px;
  color: #555;
}

.tourTitle{
  font-size: 16px;
}

.tourMoreInfo{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tourTags{
  display: flex;
  gap: 8px;
}

.tag{
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 8px;
  border: 1px solid;
}

.installment{
  color: #1e4db7;
  border-color: #1e4db7;
}

.special{
  background: #1c7c1c;
  color: #fff;
  border-color: #1c7c1c;
}

/* ===== FILTER ===== */
.tourFilter{
  width: 30%;
  border-radius: 18px;
  background: #fff;
  box-shadow: rgba(0,0,0,0.08) 0 2px 8px;
  padding: 20px;
  height: fit-content;
  position: sticky;
  top: 75px;
  left: 50px;
}

.filterRow{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.filterSelect{
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  cursor: pointer;
}

/* switch */
.switch{
  position: relative;
  width: 44px;
  height: 22px;
}

.switch input{
  display: none;
}

.slider{
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 20px;
}

.slider::before{
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  top: 2px;
  right: 2px;
  transition: 0.3s;
}

.switch input:checked + .slider{
  background: var(--primary-color);
}

.switch input:checked + .slider::before{
  transform: translateX(-22px);
}

/* actions */
.filterActions{
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.filterActions .clear{
  background: transparent;
  color: var(--primary-color);
}

.filterActions .apply{
  background: var(--primary-color);
  color: #fff;
  padding: 10px 18px;
  border-radius: 12px;
}

/* ############################# ADDED ################################ */

.filterAccordion{
  border-bottom: 1px solid #eee;
  padding: 3px 0;
}

.filterHead{
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.filterHead span{
  font-size: 14px;
  font-weight: bold;
}

.filterHead i{
  font-size: 22px;
  transition: transform 0.25s ease;
}

.filterAccordion.open .filterHead i{
  transform: rotate(180deg);
}

.filterBody{
  display: none;
  margin-top: 10px;
  padding-bottom: 5px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.citySelect{
    width: 100%;
    height: 50px;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.12);
    padding: 0 14px;
    padding-left: 40px;
    font-family: "shabnam";
    font-size: 14px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    outline: none;
    box-shadow: rgba(0,0,0,0.06) 0 3px 10px;
    transition: all 180ms ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image:
      linear-gradient(45deg, transparent 50%, var(--primary-color) 50%),
      linear-gradient(135deg, var(--primary-color) 50%, transparent 50%);
    background-position:
      16px 50%,
      21px 50%;
    background-size:
      6px 6px,
      6px 6px;
    background-repeat: no-repeat;
}

.citySelect:hover{
    border-color: rgba(0,0,0,0.20);
    box-shadow: rgba(0,0,0,0.10) 0 7px 18px;
    transform: translateY(-1px);
}

.citySelect:focus{
    border-color: var(--primary-color);
    box-shadow: rgba(0,0,0,0.10) 0 7px 18px,
                rgba(0,0,0,0.12) 0 0 0 3px;
}


.selectedCities{
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.cityBadge{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #d9f3ff;
  color: var(--primary-color);
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 14px;
}

.cityBadge i{
  font-size: 18px;
  cursor: pointer;
  color: var(--primary-color);
  transition: all 200ms ease-in-out;
}

.cityBadge i:hover{
  transform: scale(1.15);
  color: #ff0000;
}

.priceValues{
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.priceRange{
  position: relative;
  height: 30px;
}

.priceRange input[type="range"]{
  position: absolute;
  width: 100%;
  height: 4px;
  background: none;
  pointer-events: none;
  appearance: none;
}

.priceRange input::-webkit-slider-thumb{
  pointer-events: auto;
  -webkit-appearance: none;
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
}

.priceRange input::-moz-range-thumb{
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
}

.priceRange::before{
  content: "";
  position: absolute;
  width: 100%;
  height: 4px;
  background: #e0e0e0;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 4px;
}

.priceProgress{
  position: absolute;
  height: 4px;
  background: var(--primary-color);
  top: 50%;
  transform: translateY(-50%);
  border-radius: 4px;
}

/* ############################# ADDED ################################ */

/* responsive */
@media(max-width: 992px){
  .tourLayout{
    flex-direction: column;
  }
  .tourList,
  .tourFilter{
    width: 100%;
    position: relative;
  }
  .tourFilter{
    top: inherit;
    left: inherit;
  }
  .tourPage{
    padding-top: 100px !important;
  }
}

.accordionHead{
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 15px 0;
}

.accordionHead i{
  font-size: 22px;
  transition: transform 0.25s ease;
}

.accordionBody{
  display: none;
  padding-bottom: 10px;
}

/* options */
.accOption{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 14px;
  cursor: pointer;
}

.accOption input{
  accent-color: var(--primary-color);
}

/* ===== NEW: Graphic details inside tourInfo ===== */
.tourDetailsBox{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 7px;
  border-radius: 14px;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.05);
}

.detailItem{
  flex: 1;
  min-width: 160px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 6px;
  border-radius: 10px;
  background: #fff;
  box-shadow: rgba(0,0,0,0.06) 0 2px 10px;
  transition: all 200ms ease;
}

.detailItem:hover{
  transform: translateY(-2px);
  box-shadow: rgba(0,0,0,0.1) 0 4px 14px;
}

/* icon bubble */
.detailIcon{
  width: 40px;
  height: 40px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.05);
  font-size: 22px;
  color: var(--primary-color);
}

/* different mood for go/back */
.detailIcon.go{
  background: rgba(30,77,183,0.12);
  color: #1e4db7;
}

.detailIcon.back{
  background: rgba(255,165,0,0.15);
  color: #d17a00;
}

/* text */
.detailText{
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.detailText small{
  font-size: 12px;
  color: #666;
}

.detailText strong{
  font-size: 13px;
  color: #111;
}

/* hotel item full width on small */
.detailItem.hotel{
  flex: 2;
}

.tourPriceWithImage{
  padding: 0 !important; /* فقط برای نسخه‌ای که عکس داره */
  overflow: hidden;
}

.tourPriceImage{
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.tourPriceImage img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 300ms ease;
}

.tourItem:hover .tourPriceImage img{
  transform: scale(1.06);
}

/* badge */
.tourPriceBadge{
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary-color);
  color: #fff;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 12px;
  box-shadow: rgba(0,0,0,0.2) 0 3px 10px;
}

/* wrap old price text nicely */
.tourPriceContent{
  padding: 10px 14px 12px;
  display: flex;
  gap: 8px;
}

/* ========================= RESPONSIVE ========================= */

/* --------- 1200px --------- */
@media (max-width: 1200px){
  .tourLayout{
    width: 95%;
    gap: 18px;
  }

  .tourList{
    width: 68%;
  }

  .tourFilter{
    width: 32%;
    top: 70px;
  }

  .detailItem{
    min-width: 140px;
  }
}


/* --------- 992px (Tablet) --------- */
@media (max-width: 992px){
  .tourLayout{
    flex-direction: column;
  }

  .tourList,
  .tourFilter{
    width: 100%;
  }

  .tourFilter{
    position: relative;
    top: 0;
    left: 0;
  }

  .tourSort{
    flex-wrap: wrap;
  }

  .tourSort button{
    flex: 1;
    min-width: 140px;
    text-align: center;
  }

  .tourPage{
    padding-top: 100px !important;
  }
}


/* --------- 768px (Mobile) --------- */
@media (max-width: 768px){
  .tourItem{
    flex-direction: column;
  }

  .tourPrice{
    width: 100%;
    height: 200px;
  }

  .tourInfo{
    width: 100%;
    padding: 14px;
  }

  .tourMeta{
    flex-wrap: wrap;
    gap: 10px;
  }

  .tourMoreInfo{
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .tourTags{
    flex-wrap: wrap;
    gap: 8px;
  }

  .tourPriceContent{
    padding: 0;
  }

  .tourDetailsBox{
    flex-direction: column;
  }

  .detailItem{
    width: 100%;
    min-width: 100%;
  }

  .detailItem.hotel{
    flex: 1;
  }
}
