/* ============================================================
   TPO Favorite List – 项目卡片列表样式
============================================================ */

.tpo-fav-wrapper {
    max-width: 900px;
    margin: 0 auto;    
}

.tpo-fav-empty {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 15px;
}

/* ---------- 单张卡片 ---------- */
.tpo-fav-card {
    display: flex;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
    transition: box-shadow .2s;
}

.tpo-fav-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, .1);
}

/* ---------- 左侧地图 ---------- */
.tpo-fav-card__map {
    flex: 0 0 240px;
    min-height: 200px;
    background: #e8e8e8;
    position: relative;
    overflow: hidden;
}

.tpo-fav-card__map img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.tpo-fav-card__map-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ddd 25%, #ccc 100%);
}

/* ---------- 右侧内容区域 ---------- */
.tpo-fav-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px 20px 14px;
    min-width: 0;
}

/* -- 顶部：标题行 -- */
.tpo-fav-card__header {
    margin-bottom: 8px;
}

.tpo-fav-card__title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.tpo-fav-card__title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin: 0;
    line-height: 1.3;
}

.tpo-fav-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 2px 8px;
    border-radius: 3px;
    vertical-align: middle;
    margin-left: 8px;
    line-height: 1.6;
}

.tpo-fav-badge--pending {
    background: #fff3cd;
    color: #856404;
}

.tpo-fav-badge--draft {
    background: #e2e3e5;
    color: #495057;
}

.tpo-fav-card__fav-btn {
    flex-shrink: 0;
}

.tpo-fav-card__fav-btn .simplefavorite-button {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    font-size: 20px;
    cursor: pointer;
    color: #ccc;
    line-height: 1;
}

.tpo-fav-card__fav-btn .simplefavorite-button.active {
    color: #e74c3c;
}

.tpo-fav-card__meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    flex-wrap: wrap;
    gap: 8px;
}

.tpo-fav-card__standort {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #555;
}

.tpo-fav-card__standort svg {
    flex-shrink: 0;
}

.tpo-fav-card__pid {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
}

/* -- 中间行：参数 + 价格 -- */
.tpo-fav-card__content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 10px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    flex: 1;
}

.tpo-fav-card__specs {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tpo-fav-card__spec {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #444;
    font-style: italic;
}

.tpo-fav-card__spec-bar {
    display: inline-block;
    width: 4px;
    height: 16px;
    background: #e6a817;
    border-radius: 1px;
    flex-shrink: 0;
}

.tpo-fav-card__pricing {
    text-align: right;
    flex-shrink: 0;
    white-space: nowrap;
}

.tpo-fav-card__price-main {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    line-height: 1.2;
}

.tpo-fav-card__price-sub {
    font-size: 12px;
    color: #e6a817;
    margin-top: 2px;
}

/* -- 底部行 -- */
.tpo-fav-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.tpo-fav-card__footer-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tpo-fav-card__views {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #999;
}

.tpo-fav-card__detail-btn {
    display: inline-block;
    background: #e6a817;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none !important;
    transition: background .2s;
    letter-spacing: .5px;
}

.tpo-fav-card__detail-btn:hover {
    background: #d49a0e;
}

.tpo-fav-card__edit-btn {
    display: inline-block;
    background: #269090;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none !important;
    transition: background .2s;
    letter-spacing: .5px;
}

.tpo-fav-card__edit-btn:hover {
    background: #1f7a7a;
}

.tpo-fav-card__footer-right {
    display: none;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tpo-fav-card__rating {
    display: flex;
    gap: 2px;
}

.tpo-fav-card__star {
    width: 16px;
    height: 16px;
    display: block;
}

.tpo-fav-card__trust {
    font-size: 11px;
    color: #666;
    white-space: nowrap;
}

.tpo-fav-card__info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #3498db;
    color: #fff;
    font-size: 10px;
    font-style: normal;
    line-height: 1;
    cursor: help;
    vertical-align: middle;
    margin-left: 2px;
}

.tpo-fav-card__green-bar {
    height: 14px;
    width: auto;
    display: block;
}

.tpo-fav-card__price-label {
    font-size: 11px;
    color: #666;
    white-space: nowrap;
}

/* ---------- 加载更多按钮 ---------- */
.tpo-fav-loadmore-wrap {
    text-align: center;
    padding: 20px 0 10px;
}

.tpo-fav-loadmore-btn {
    display: inline-block;
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    padding: 12px 40px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all .2s;
}

.tpo-fav-loadmore-btn:hover {
    background: #e6a817;
    color: #fff;
    border-color: #e6a817;
}

.tpo-fav-loadmore-btn.loading {
    pointer-events: none;
    opacity: .6;
}
.tpo-fav-list{
    margin-top: 20px;
}
.um-favorites-content{
    padding: 0 !important;
}
.um-field{
    padding: 0 !important;
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
    .tpo-fav-card {
        flex-direction: column;
    }

    .tpo-fav-card__map {
        flex: none;
        height: 180px;
    }

    .tpo-fav-card__content {
        flex-direction: column;
        gap: 12px;
    }

    .tpo-fav-card__pricing {
        text-align: left;
    }

    .tpo-fav-card__footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .tpo-fav-card__footer-right {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .tpo-fav-card__title {
        font-size: 15px;
    }

    .tpo-fav-card__price-main {
        font-size: 18px;
    }

    .tpo-fav-card__body {
        padding: 12px 14px 10px;
    }
}
