/* 康养旅居页面样式 */

/* 面包屑导航 */
.breadcrumb-nav {
  background-color: #f8f9fa;
  padding: 10px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
  background: transparent;
  margin-bottom: 0;
  padding: 0;
}

/* 筛选区域 */
.filter-section {
  margin-bottom: 30px;
}

.filter-box {
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.filter-item {
  display: flex;
  margin-bottom: 15px;
  align-items: center;
}

.filter-item:last-child {
  margin-bottom: 0;
}

.filter-label {
  width: 60px;
  font-weight: bold;
  color: #333;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  flex: 1;
}

.filter-options a {
  display: inline-block;
  padding: 3px 12px;
  margin-right: 10px;
  margin-bottom: 5px;
  border-radius: 15px;
  color: #555;
  text-decoration: none;
  transition: all 0.3s;
}

.filter-options a:hover {
  background: #eef5ff;
  color: #0056b3;
}

.filter-options a.active {
  background: #007bff;
  color: #fff;
}

.search-item {
  justify-content: flex-end;
}

.search-input {
  position: relative;
  max-width: 300px;
  width: 100%;
}

.search-input input {
  width: 100%;
  padding: 8px 35px 8px 15px;
  border: 1px solid #ddd;
  border-radius: 20px;
  outline: none;
}

.search-input button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
}

/* 康养旅居列表 */
.travel-list-section {
  padding: 20px 0 40px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-title h2 {
  font-size: 24px;
  margin: 0;
  color: #333;
  position: relative;
  padding-left: 15px;
}

.section-title h2:before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 20px;
  background-color: #007bff;
}

.sort-options {
  display: flex;
  align-items: center;
}

.sort-options span {
  margin-right: 10px;
  color: #666;
}

.sort-options a {
  margin-left: 15px;
  color: #666;
  text-decoration: none;
}

.sort-options a.active {
  color: #007bff;
  font-weight: bold;
}

.sort-options a i {
  margin-left: 3px;
}

.travel-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.travel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.travel-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.travel-img img {
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.travel-card:hover .travel-img img {
  transform: scale(1.05);
}

.travel-img .tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff7f50;
  color: #fff;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 12px;
}

.travel-info {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.travel-info h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #333;
  font-weight: 600;
}

.travel-info .location {
  display: flex;
  align-items: center;
  color: #666;
  font-size: 14px;
  margin-bottom: 10px;
}

.travel-info .location i {
  margin-right: 5px;
  color: #999;
}

.travel-features {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.travel-features span {
  display: inline-block;
  padding: 2px 8px;
  margin-right: 8px;
  margin-bottom: 5px;
  background: #f2f6fd;
  color: #0056b3;
  border-radius: 3px;
  font-size: 12px;
}

.description {
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
  line-height: 1.6;
  flex-grow: 1;
}

.travel-metrics {
  display: flex;
  margin-bottom: 15px;
  border-top: 1px dashed #eee;
  padding-top: 12px;
}

.metric {
  flex: 1;
  text-align: center;
  position: relative;
}

.metric:not(:last-child):after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: #eee;
}

.metric .value {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.metric .label {
  font-size: 12px;
  color: #999;
  display: block;
  padding: 0;
}

.price {
  color: #ff5722;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  text-align: center;
}

.detail-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 8px 0;
  background: #007bff;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s;
}

.detail-btn:hover {
  background: #0056b3;
  color: #fff;
  text-decoration: none;
}

.pagination-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 30px;
}

.pagination .page-link {
  color: #007bff;
  border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
  background-color: #007bff;
  border-color: #007bff;
}

/* 详情页样式 */
.travel-detail {
  padding: 30px 0;
}

.detail-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  padding: 20px;
}

.detail-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.detail-header h1 {
  font-size: 26px;
  margin: 0;
  margin-right: 10px;
}

.detail-header .tag {
  background: #ff7f50;
  color: #fff;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 12px;
}

.detail-rating {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.detail-rating .stars {
  color: #ff9800;
  margin-right: 5px;
  font-size: 16px;
}

.detail-rating .score {
  font-weight: bold;
  color: #ff9800;
  font-size: 16px;
}

.detail-rating .reviews {
  color: #999;
  font-size: 14px;
  margin-left: 10px;
}

.basic-info {
  margin-bottom: 20px;
}

.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  color: #666;
}

.info-item i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
  color: #999;
}

.price-info {
  margin-top: 20px;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.price-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}

.price-table {
  margin-bottom: 15px;
}

.price-note {
  color: #999;
  font-size: 14px;
}

.action-btns {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.btn-primary {
  background-color: #007bff;
  border-color: #007bff;
  flex: 1;
}

.btn-outline-primary {
  color: #007bff;
  border-color: #007bff;
  flex: 1;
}

.card-title {
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.card-title h2 {
  font-size: 20px;
  margin: 0;
  color: #333;
}

.photo-gallery {
  margin-bottom: 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.gallery-item {
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  height: 180px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.travel-description {
  line-height: 1.8;
  color: #555;
}

.travel-features-detail {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 5px;
  margin-top: 20px;
}

.travel-features-detail h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #333;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
}

.features-list li i {
  color: #28a745;
  margin-right: 10px;
  margin-top: 3px;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.schedule-table th, .schedule-table td {
  border: 1px solid #ddd;
  padding: 12px 15px;
  text-align: left;
}

.schedule-table th {
  background-color: #f2f6fd;
  font-weight: bold;
  color: #333;
}

.schedule-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.booking-form {
  margin-top: 15px;
}

.booking-form .form-group {
  margin-bottom: 15px;
}

.booking-form label {
  font-weight: bold;
  color: #333;
}

.map-container {
  height: 300px;
  margin-top: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.map-container img {
  width: 100%;
  height: 100%;
}

.related-travels {
  margin-top: 20px;
}

.related-travels .row {
  margin-top: 15px;
}

.related-travels .travel-card {
  margin-bottom: 0;
}

/* 响应式适配 */
@media (max-width: 992px) {
  .travel-info h3 {
    font-size: 16px;
  }
  
  .description {
    font-size: 13px;
  }
  
  .travel-metrics {
    flex-direction: column;
  }
  
  .metric {
    margin-bottom: 10px;
  }
  
  .metric:not(:last-child):after {
    display: none;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .filter-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .filter-label {
    margin-bottom: 5px;
  }
  
  .search-item {
    width: 100%;
  }
  
  .search-input {
    max-width: 100%;
  }
  
  .section-title {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .sort-options {
    margin-top: 10px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .detail-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .detail-header h1 {
    margin-bottom: 10px;
  }
  
  .action-btns {
    flex-direction: column;
  }
} 