/* ========================================
   愿望清单页面样式
   ======================================== */

/* 愿望清单页面样式 */
.wishlist-page {
    padding: 40px 0;
    background: #f8f9fa;
    min-height: 100vh;
}

.wishlist-header {
    text-align: center;
    margin-bottom: 40px;
}

.wishlist-header h1 {
    font-size: 2.5rem;
    color: #000000;
    margin-bottom: 10px;
}

.wishlist-header p {
    font-size: 1.1rem;
    color: #7f8c8d;
}

.wishlist-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.wishlist-left {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.wishlist-right {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.wishlist-section h2 {
    font-size: 1.5rem;
    color: #000000;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #000;
}

.wishlist-items {
    min-height: 120px;
}

.wishlist-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.wishlist-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.wishlist-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
}

.wishlist-item-info {
    flex: 1;
}

.wishlist-item-title {
    font-weight: 400;
    color: #000000;
    margin-bottom: 5px;
}

.wishlist-item-details {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.wishlist-item-price {
    font-weight: 400;
    color: #dc3545;
    margin-left: 10px;
}

.remove-item {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.3s ease;
}

.remove-item:hover {
    background: #c0392b;
}

.empty-wishlist {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
}

.empty-wishlist p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.browse-routes {
    display: inline-block;
    background: #000000;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.browse-routes:hover {
    background: #2b2b2b;
    color: white;
}

/* ========================================
   联系表单样式
   ======================================== */

.contact-form-container h2 {
    font-size: 1.5rem;
    color: #000000;
    margin-bottom: 10px;
}

.form-description {
    color: #333;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.wishlist-contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    background: #ffffff;
    box-shadow: none;
}

.form-row-three {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 400;
    color: #000000;
}

.form-group input,
.form-group textarea {
    width: 100% !important;
    padding: 5px 10px !important;
    border: 1px solid #666 !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    background-color: #fafafa !important;
    transition: border-color 0.3s ease !important;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000;
}

.checkbox-label {
    display: flex !important;
    align-items: center !important;
    cursor: pointer !important;
    font-size: 0.9rem !important;
    color: #000000 !important;
}

.checkbox-label input {
    width: 20px !important;
    margin-right: 8px !important;
}

#submit-wishlist-btn {
    width: 100%;
    background: #000;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

#submit-wishlist-btn:hover {
    background: #212121;
}

.form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 400;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ========================================
   路线卡片样式
   ======================================== */

.route-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.route-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    transform: none !important;
}

.route-header {
    display: flex;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-bottom: 1px solid #e9ecef;
    position: relative;
}

.route-header img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 20px;
}

.route-info {
    flex: 1;
}

.route-info h3 {
    margin: 0 0 8px 0;
    color: #000000;
    font-size: 1.3rem;
    font-weight: 400;
}

.route-meta {
    display: flex;
    gap: 20px;
    align-items: center;
}

.route-days,
.route-price,
.route-locations {
    color: #000;
    border: 1px solid #e9ecef;
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 14px;
}

.remove-route {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.remove-route:hover {
    background: #c0392b;
}

.route-image-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    margin-right: 20px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.9rem;
}

/* 通用占位符图标样式 */
.placeholder-icon {
    font-size: 2rem;
    margin-bottom: 5px;
}


.route-section h4 {
    margin: 20px 0 12px 0;
    padding: 0 20px;
    color: #000;
    font-size: 1.1rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;
}

.route-section h4::before {
    content: '';
    width: 4px;
    height: 16px;
    background: #000000;
    border-radius: 2px;
}

.section-items {
    display: grid;
    gap: 10px;
    padding: 0 20px;
    margin-bottom: 20px;
}

.route-details-items {
  display: grid;
  gap: 10px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin: 20px;
}

/* 通用子项目样式 */
.sub-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.sub-item:hover {
    background: #e9ecef;
    transform: none !important;
}

.sub-item-title {
    font-weight: 400;
    color: #000000;
}

.sub-item-details {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-right: 10px;
}

/* 通用移除按钮样式 */
.remove-sub-item {
    background: #95a5a6;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s ease;
}

.remove-sub-item:hover {
    background: #7f8c8d;
}

.route-empty {
    text-align: center;
    padding: 30px 20px;
    color: #7f8c8d;
    background: #f8f9fa;
    margin: 20px;
    border-radius: 8px;
    border: 2px dashed #bdc3c7;
}

.route-empty p {
    margin-bottom: 15px;
}

.add-items-btn {
    display: inline-block;
    background: #000000;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease;
    font-size: 0.9rem;
}

.add-items-btn:hover {
    background: #2980b9;
}

/* 加载动画 */
.wishlist-loading {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

.wishlist-loading::after {
    content: '...';
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { content: '.'; }
    33% { content: '..'; }
    66% { content: '...'; }
}

/* ========================================
   全局愿望清单悬浮按钮样式
   ======================================== */

/* 全局愿望清单悬浮按钮样式 */
.global-floating-wishlist-btn {
    position: fixed !important;
    bottom: 111px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #bebebe;
    color: #000000;
    border: none;
    cursor: pointer;
    font-size: 24px;
    box-shadow: 0px 2px 6px 1px rgba(0, 0, 0, 0.20) ;
    transition: all 0.3s ease;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.global-floating-wishlist-btn:hover {
    color: #000000;
    background: #bebebe;
}

.global-floating-wishlist-btn .wishlist-heart-icon {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.global-floating-wishlist-btn .wishlist-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 400;
    min-width: 20px;
    text-align: center;
    line-height: 1;
    white-space: nowrap;
    transition: all 0.3s ease;
}

/* 一位数字时保持正圆形 */
.global-floating-wishlist-btn .wishlist-count.single-digit {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 多位数字时拉伸 */
.global-floating-wishlist-btn .wishlist-count.multi-digit {
    border-radius: 10px;
    padding: 4px 8px;
    min-width: 20px;
    height: 20px;
}

/* 当数量为0时隐藏计数 */
.global-floating-wishlist-btn .wishlist-count:empty,
.global-floating-wishlist-btn .wishlist-count[data-count="0"] {
    display: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* .global-floating-wishlist-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
        bottom: 20px;
        right: 20px;
    } */
    
    .global-floating-wishlist-btn .wishlist-count {
        font-size: 10px;
        padding: 3px 6px;
        min-width: 18px;
    }
}

/* 动画效果 */
@keyframes wishlistPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.global-floating-wishlist-btn.wishlist-updated {
    animation: wishlistPulse 0.5s ease-in-out;
}

/* 确保按钮在所有元素之上 */
.global-floating-wishlist-btn {
    z-index: 999999 !important;
}

/* 愿望清单通知样式 */
.wishlist-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 1000000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.wishlist-notification.show {
    opacity: 1;
}

/* 响应式通知 */
@media (max-width: 768px) {
    .wishlist-notification {
        font-size: 12px;
        padding: 12px 20px;
        max-width: 80%;
        text-align: center;
    }
}

/* ========================================
   愿望清单层级显示样式
   ======================================== */

/* 子项目层级样式 */
.sub-item.hierarchy-item {
    padding-left: 15px;
    position: relative;
    border-radius: 6px;
    padding: 0;
    background: transparent;
}

.sub-item.hierarchy-item .sub-item-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sub-item.hierarchy-item .sub-item-title {
    font-size: 14px;
    color: #333;
    font-weight: 400;
}

.sub-item.hierarchy-item .sub-item-details {
    font-size: 12px;
    color: #666;
}

.sub-item.hierarchy-item .sub-item-image {
    margin-top: 8px;
}

.sub-item.hierarchy-item .sub-item-image img {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.sub-item.hierarchy-item .sub-item-type {
    font-size: 11px;
    color: #999;
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
    margin-top: 5px;
}

/* 移除按钮样式调整 */
.sub-item.hierarchy-item .remove-sub-item {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.sub-item.hierarchy-item .remove-sub-item:hover {
    background: #c82333;
}

/* ========================================
   活动和住宿卡片样式（类似主路线卡片）
   ======================================== */

/* 活动卡片样式 */
.activity-card .activity-header {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    position: relative;
}

.activity-card .activity-header img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.activity-card .activity-image-placeholder {
    width: 80px;
    height: 60px;
    background: #f8f9fa;
    border: 1px dashed #ddd;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-card .activity-image-placeholder .placeholder-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.activity-card .activity-image-placeholder span {
    font-size: 10px;
    color: #999;
}

.activity-card .activity-info {
    flex: 1;
}

.activity-card .activity-info h5 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 400;
    color: #333;
    line-height: 1.3;
}

.activity-card .activity-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 8px;
}

.activity-card .activity-meta span {
    font-size: 13px;
    color: #666;
}

.activity-card .activity-days {
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 400;
}

.activity-card .activity-price {
    font-weight: 400;
    color: #2e7d32;
}

.activity-card .activity-type-badge {
    display: inline-block;
    background: #fff3e0;
    color: #f57c00;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 400;
}

/* 邮轮标签样式 - 使用蓝色系以区分额外体验 */
.activity-card.cruise-card {
  border: none;
  box-shadow: none;
}
.activity-card.cruise-card .cruise-type-badge,
.activity-card .cruise-type-badge {
    background: #e3f2fd;
    color: #1976d2;
}

/* 住宿卡片样式 */
.accommodation-card .accommodation-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    position: relative;
}

.accommodation-card .accommodation-header img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.accommodation-card .accommodation-image-placeholder {
    width: 80px;
    height: 60px;
    background: #f8f9fa;
    border: 1px dashed #ddd;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.accommodation-card .accommodation-image-placeholder .placeholder-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.accommodation-card .accommodation-image-placeholder span {
    font-size: 10px;
    color: #999;
}

.accommodation-card .accommodation-info {
    flex: 1;
    padding-right: 30px;
}

.accommodation-card .accommodation-info h5 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 400;
    color: #333;
    line-height: 1.3;
}

.accommodation-card .accommodation-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 8px;
}

.accommodation-card .accommodation-meta span {
    font-size: 13px;
    color: #666;
}

.accommodation-card .accommodation-days {
    background: #f3e5f5;
    color: #7b1fa2;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 400;
}

.accommodation-card .accommodation-price {
    font-weight: 400;
    color: #2e7d32;
}

.accommodation-card .accommodation-type-badge {
    display: inline-block;
    background: #f3e5f5;
    color: #7b1fa2;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 400;
}

/* 卡片悬停效果 */
.activity-card .activity-header:hover,
.accommodation-card .accommodation-header:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    transform: none !important;
}

/* 移除按钮调整 */
.activity-card .remove-sub-item,
.accommodation-card .remove-sub-item {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 10;
}

.activity-card .remove-sub-item:hover,
.accommodation-card .remove-sub-item:hover {
    background: #c82333;
}

/* ========================================
   响应式设计
   ======================================== */

@media (max-width: 768px) {
    /* 页面布局响应式 */
    .wishlist-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-row-three {
        grid-template-columns: 1fr;
    }
    
    .wishlist-header h1 {
        font-size: 2rem;
    }
    
    .wishlist-left,
    .wishlist-right {
        padding: 20px;
        margin: 20px;
    }
    
    /* 路线卡片响应式 */
    .route-header {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .route-header img,
    .route-image-placeholder {
        width: 100px;
        height: 100px;
        margin-right: 0;
        margin-bottom: 15px;
    }
    .route-header h3,
    .route-info {
      width: 100%;
    }
    
    .route-meta {
        justify-content: center;
        gap: 8px;
    }
    .route-days,
    .route-price,
    .route-locations {
      flex: 1 !important;
    }
    
    
    .sub-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .sub-item-details {
        margin-right: 0;
    }
    
    /* 活动和住宿卡片响应式 */
    .activity-card .activity-header,
    .accommodation-card .accommodation-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px;
    }
    
    .activity-card .activity-header img,
    .accommodation-card .accommodation-header img,
    .activity-card .activity-image-placeholder,
    .accommodation-card .accommodation-image-placeholder {
        width: 100px;
        height: 100px;
    }
    
    .activity-card .activity-meta,
    .accommodation-card .accommodation-meta {
        flex-direction: column;
        gap: 5px;
    }
}

/* 行程详情卡片样式 - 与住宿和额外体验保持一致 */
.route-detail-card {
    display: block !important;
    background: white;
    overflow: hidden;
    transition: all 0.3s ease;
}


.route-detail-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
}

.route-detail-header img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #f0f0f0;
}

.route-detail-image-placeholder {
    width: 80px;
    height: 80px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 12px;
}

.route-detail-image-placeholder .placeholder-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.route-detail-info {
    min-width: 0;
    flex: 1;
}

.route-detail-info h5 {
    margin: 0;
    font-size: 14px;
    color: #333;
    line-height: 1.3;
    font-weight: 400;
}

.route-detail-type-badge {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 8px;
}

.route-detail-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.route-detail-days {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 400;
}

.route-detail-extra-experiences {
    margin-top: 8px;
    padding-left: 0;
}
.route-detail-customization-item,
.route-detail-extra-experience-item {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 4px 0;
    padding-left: 20px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .route-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px;
    }
    
    .route-detail-header img,
    .route-detail-image-placeholder {
        width: 60px;
        height: 60px;
    }
    
    .route-detail-meta {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
}
