/* ===== transfers-page.css ===== */

/* ===== 外层容器 ===== */
.transfers-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    text-align: center;
}

.tp-widget-wrapper iframe {
    display: block;
    margin: 0 auto;
}
/* ===== 通用卡片样式 ===== */
.transfers-card {
    background-color: #ffffff;
    color: #000000;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 300px; /* 设置最小高度，避免空卡片过小 */
}

/* ===== 全宽卡片 ===== */
.transfers-card.full-width {
    flex: 1 1 100%;
}

/* ===== 两列小卡片容器 ===== */
.transfers-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto 20px;
    gap: 20px;
    box-sizing: border-box;
}

/* ===== 小卡片（Price Calendar & Popular Routes） ===== */
.price-card,
.popular-card {
    flex: 1 1 calc((100% - 20px) / 2);
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

/* ===== 卡片标题 ===== */
.transfers-card h2,
.price-card h2,
.popular-card h2 {
    text-align: center;
    color: #E64A19;
    margin-bottom: 20px;
}

/* ===== 按钮样式 ===== */
.transfers-card a.button,
.price-card a.button,
.popular-card a.button,
.transfers-card button,
.price-card button,
.popular-card button {
    background-color: #E64A19;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
    align-self: center;
    margin-top: auto;
}
.transfers-card a.button:hover,
.price-card a.button:hover,
.popular-card a.button:hover,
.transfers-card button:hover,
.price-card button:hover,
.popular-card button:hover {
    background-color: #cc0000;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .transfers-row {
        flex-direction: column;
    }
    .price-card,
    .popular-card {
        flex: 1 1 100%;
        width: 100%;
    }
}
