/*
Theme Name: Tevily Child
Theme URI: https://gaviaspreview.com/wp/tevily/
Author URI: https://themeforest.net/user/gavias
Author: Gaviasthemes Team
Description: Child theme for the Tevily theme.
Template: tevily
style.css
*/

.btn-primary {
  display: block;
  width: 100%;
  text-align: center;
}
.gva-element-gva_author_box {
  display: none !important;
}
.tour-search-form form {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tour-search-field {
  flex: 1;
  margin-right: 10px;
}
.select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.select-wrapper i,
.select-wrapper .flaticon-location,
.select-wrapper .flaticon-recovery {
  font-size: 1.9rem;
  color: #e8604c;
  position: absolute;
  left: 10px;
  pointer-events: none;
}
.select-wrapper select {
  width: 100%;
  padding: 10px 10px 10px 45px;
  border: none;
  border-bottom: 1px solid #ddd;
  font-size: 0.95rem;
  color: #333;
  background: transparent;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
}
.select-wrapper select option.default-option {
  font-weight: bold;
}
.tour-search-button {
  flex: 0 0 auto;
}
.tour-search-submit {
  background: #e8604c;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  transition: background 0.3s;
}
.tour-search-submit:hover {
  background: #c84c3b;
}

/* CSS for homepage slider */
.slick-slider {
  display: block;
}
.slick-slide {
  display: inline-block;
}
.tour-slider-wrapper {
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
}
.tour-slider {
  display: block;
}
.tour-slider .tour-card {
  flex: 0 0 auto;
  width: 300px;
  margin: 0 10px;
  box-sizing: border-box;
}
.slick-list {
  overflow: visible !important;
}

/* ====== CSS for Tours Page and Tour Slider ====== */
.tours-page-wrapper {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 0 20px 0;
}
.tours-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tour-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: all 0.3s ease;
}
.tour-card-image {
  height: auto;
  overflow: hidden;
}
.tour-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tour-card-icons {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 8px;
}
.tour-icon {
  font-size: 28px;
  color: #e8604c;
  cursor: pointer;
}
.tour-card-content {
  position: relative;
  background: #fff;
  margin-top: -30px;
  padding: 40px 20px 20px;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
}
.tour-card-title {
  font-size: 1rem;
  margin: 0 0 8px;
  line-height: 1.4em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 2.8em;
}
.tour-card-title a {
  text-decoration: none;
  color: #333;
}
.tour-card-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.tour-card-location,
.tour-card-price {
  margin: 0;
  font-size: 0.9rem;
}
.tour-card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #555;
}
.icon-map {
  width: 25px;
  height: 25px;
  display: inline-block;
  background-image: url("https://valorhagiangloop.com/wp-content/uploads/2025/02/map.png");
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 18px;
}
.tour-card-price {
  color: #e8604c;
}
.tour-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  padding: 8px 12px;
  margin-bottom: 15px;
}
.meta-left {
  display: flex;
  gap: 15px;
  align-items: center;
}
.tour-card-itinerary,
.tour-card-guests {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: #333;
}
.icon-itinerary {
  width: 16px;
  height: 16px;
  display: inline-block;
  background-image: url("https://valorhagiangloop.com/wp-content/uploads/2025/02/calendar.png");
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 4px;
}
.icon-people {
  width: 16px;
  height: 16px;
  display: inline-block;
  background-image: url("https://valorhagiangloop.com/wp-content/uploads/2025/02/user-avatar.png");
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 4px;
}
.tour-card-explore {
  display: inline-block;
  padding: 6px 12px;
  background: #e8604c;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background 0.3s;
  margin-left: auto;
}
.tour-card-explore:hover {
  background: #c84c3b;
}
.pagination {
  text-align: center;
  margin-top: 30px;
}
.pagination a,
.pagination span {
  margin: 0 5px;
  padding: 8px 12px;
  background: #e8604c;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
}
.pagination .current {
  background: #c84c3b;
}
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}
.modal-content {
  background: #fff;
  width: 80%;
  max-width: 800px;
  margin: 5% auto;
  padding: 20px;
  border-radius: 8px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}
.album-slider img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}
.tour-search-wrapper {
  max-width: 1200px;
  margin: 20px auto;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  background: #fff !important;
}
.tour-search-form .select-wrapper select {
  padding-left: 60px !important;
}

/* ====== Responsive CSS ====== */
@media (max-width: 768px) {
  .tours-grid {
    grid-template-columns: repeat(2, 1fr);
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media (min-width: 481px) and (max-width: 768px) {
  .tour-search-field {
    flex: 1 1 200px;
  }
  .select-wrapper select,
  .tour-search-submit {
    font-size: 15px;
    padding: 7px;
    padding-left: 30px;
  }
}
@media (max-width: 480px) {
  .tour-search-form form {
    flex-direction: column;
    align-items: stretch;
  }
  .tour-search-field,
  .tour-search-button {
    margin: 5px 0;
  }
  .select-wrapper select,
  .tour-search-submit {
    font-size: 14px;
    padding: 6px;
  }
  .tour-card-explore {
    display: none;
  }
  .tours-grid {
    grid-template-columns: 1fr;
    padding-left: 10px;
    padding-right: 10px;
  }
}

div.entry-desc {
    max-height: 3.6em; 
    line-height: 1.8em; 
    overflow: hidden;
    position: relative;
    word-break: break-all; 
}

div.entry-desc:after {
    content: "...";
    position: absolute;
    bottom: 0;
    right: 0;
    background: linear-gradient(to right, transparent, #fff 50%);
    padding-left: 5px;
}

/* Tạo khoảng cách giữa 2 nút liên hệ và block giá phía dưới */
.tour-review-buttons {
  margin-bottom: 20px;  
}

/* (tuỳ chọn) nếu muốn đẩy block giá xuống thêm nữa */
.tour-packages-bottom {
  margin-top: 10px;     
}

/* Video trong Tour Itinerary: full chiều ngang, giữ nguyên tỉ lệ cao */
.tour-detail-schedule iframe,
.tour-detail-content iframe,
.tour-detail-schedule video {
  width: 100%;        /* ăn theo chiều ngang của khung chứa */
  max-width: 100%;
  display: block;
  margin: 0 auto 20px;
  /* KHÔNG đặt height ở đây để iframe dùng đúng tỉ lệ gốc của YouTube */
}
