/* ===== flights-hotels.css ===== */

/* ===== 外层容器 ===== */
.flights-hotels-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;
}

/* ===== 卡片通用样式 ===== */
.flights-hotels-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: 400px;
}

/* ===== 小卡片行容器 ===== */
.flights-hotels-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-calendar-card,
.popular-routes-card {
    flex: 1 1 calc((100% - 20px) / 2); /* 动态分配宽度，随父容器变化 */
    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;
}

/* ===== 全宽卡片（例如地图） ===== */
.flights-hotels-card.full-width {
    flex: 1 1 100%;
}

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

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

/* ===== 地图容器 ===== */
.map-container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
}
.map-container iframe,
.map-container > * {
    width: 100% !important;
    height: 500px !important;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    /* 小卡片改为单列 */
    .two-columns {
        flex-direction: column;
    }
    .price-calendar-card,
    .popular-routes-card {
        flex: 1 1 100%;
        width: 100%;
    }
    /* 地图高度缩小 */
    .map-container iframe,
    .map-container > * {
        height: 300px !important;
    }
}
