/* 山富旅遊 機票 SEO 內容中心（城市 / 機場 / 航空公司旗艦館）樣式 */

.seo-hero-banner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a365d 0%, #2b6cb0 100%);
    color: #fff;
    padding: 36px 32px;
    margin-bottom: 24px;
}

.seo-hero-banner--with-bg {
    background-size: cover;
    background-position: center;
}

.seo-hero-banner--with-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.82) 0%, rgba(15, 23, 42, 0.45) 100%);
}

.seo-hero-banner__inner {
    position: relative;
    z-index: 2;
}

.seo-kicker-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-right: 8px;
    margin-bottom: 10px;
}

.seo-anchor-bar {
    position: sticky;
    top: 56px;
    z-index: 19;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 0;
    margin-bottom: 28px;
}

#flight-searchbox,
.seo-section {
    scroll-margin-top: 136px;
}

.seo-anchor-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    scrollbar-width: none;
}

.seo-anchor-list::-webkit-scrollbar {
    display: none;
}

.seo-anchor-list a {
    display: inline-block;
    white-space: nowrap;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    background: #f1f5f9;
    text-decoration: none;
    transition: all 0.18s ease;
}

.seo-anchor-list a:hover {
    background: #e11d48;
    color: #fff;
}

.seo-section {
    padding-top: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid #f1f5f9;
}

.seo-section__header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 20px;
}

.seo-section__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.seo-section__subtitle {
    font-size: 0.92rem;
    color: #64748b;
    margin: 4px 0 0;
}

/* 速覽指標網格 */
.seo-fact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

@media (min-width: 992px) {
    .seo-fact-grid--4col {
        grid-template-columns: repeat(4, 1fr);
    }
    .seo-fact-grid--3col {
        grid-template-columns: repeat(3, 1fr);
    }
    .seo-fact-card--wide {
        grid-column: 1 / -1;
    }
}

.seo-fact-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.seo-fact-card__label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.seo-fact-card__value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.45;
}

/* 深度文章排版 */
.seo-rich-article {
    color: #334155;
    line-height: 1.8;
    font-size: 0.98rem;
}

.seo-rich-article h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 24px;
    margin-bottom: 10px;
    padding-left: 12px;
    border-left: 4px solid #e11d48;
}

.seo-rich-article ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.seo-rich-article li {
    margin-bottom: 6px;
}

/* 城市熱門分區卡片 */
.seo-district-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.seo-district-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.seo-district-card__badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #be123c;
    background: #ffe4e6;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.seo-tag-pill {
    display: inline-block;
    font-size: 0.76rem;
    background: #f1f5f9;
    color: #475569;
    padding: 2px 8px;
    border-radius: 6px;
    margin: 2px 4px 2px 0;
}

/* 航空公司徽章與晶片 */
.seo-airline-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #1e293b;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    margin: 4px 6px 4px 0;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

a.seo-airline-chip:hover {
    border-color: #e11d48;
    color: #e11d48;
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.12);
}

.seo-airline-chip img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 50%;
}

.seo-airline-chip__lcc {
    font-size: 0.7rem;
    background: #fef3c7;
    color: #92400e;
    padding: 1px 6px;
    border-radius: 4px;
}

/* 轉機禮遇專區 */
.seo-transit-box {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    border-radius: 14px;
    padding: 22px 24px;
}

.seo-transit-box--neutral {
    background: #f8fafc;
    border-color: #e2e8f0;
}

/* 票價與交通比較表 */
.seo-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.seo-compare-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.seo-compare-table th {
    background: #f1f5f9;
    color: #1e293b;
    font-weight: 700;
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.seo-compare-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: top;
}

.seo-compare-table tr:last-child td {
    border-bottom: none;
}

/* 動態載入之山富精選飯店圖卡（相容 campaign_hotels_render.html） */
.seo-hotel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 18px;
}

@media (min-width: 992px) {
    .seo-hotel-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.seo-hotel-grid .campaign-hotel-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.seo-hotel-grid .campaign-hotel-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.09);
}

.seo-hotel-grid .campaign-hotel-card__image {
    position: relative;
    height: 175px;
    overflow: hidden;
    background: #f1f5f9;
}

.seo-hotel-grid .campaign-hotel-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seo-hotel-grid .campaign-hotel-card__promo--percentage,
.seo-hotel-grid .campaign-hotel-card__promo--description {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e11d48;
    color: #fff;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

.seo-hotel-grid .campaign-hotel-card__body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.seo-hotel-grid .campaign-hotel-card__name {
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px;
    line-height: 1.35;
}

.seo-hotel-grid h6.campaign-hotel-card__name {
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
}

.seo-hotel-grid .campaign-hotel-card__area {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.seo-hotel-grid .campaign-hotel-card__rating {
    font-size: 0.82rem;
    color: #334155;
    margin-bottom: 10px;
}

.seo-hotel-grid .campaign-hotel-card__score {
    display: inline-block;
    background: #1d4ed8;
    color: #fff;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 5px;
    margin-right: 4px;
}

.seo-hotel-grid .campaign-hotel-card__price {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.seo-hotel-grid .campaign-hotel-card__amount {
    font-size: 1.08rem;
    font-weight: 800;
    color: #e11d48;
}

/* 團體旅遊卡片 */
.seo-tour-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.seo-tour-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.09);
    color: inherit;
}

.seo-tour-card__img {
    height: 175px;
    background: linear-gradient(135deg, #1e3a8a 0%, #be123c 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seo-tour-card__placeholder {
    color: rgba(255, 255, 255, 0.88);
    text-align: center;
    padding: 12px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.seo-tour-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seo-tour-card__days {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
}

.seo-tour-card__body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.seo-tour-card__title {
    font-size: 0.96rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.seo-tour-card__footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.seo-tour-card__price {
    font-size: 1.12rem;
    font-weight: 800;
    color: #e11d48;
}

/* 無圖版：現代雜誌／登機證票卡式頁首（Editorial Boarding-Pass Header） */
.seo-editorial-header {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 65%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-left: 5px solid #e11d48;
    border-radius: 16px;
    padding: 28px 30px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.seo-editorial-header__watermark {
    position: absolute;
    right: 24px;
    bottom: -10px;
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: 3px;
    line-height: 1;
    color: rgba(15, 23, 42, 0.045);
    pointer-events: none;
    user-select: none;
}

.seo-editorial-header__grid {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.seo-editorial-header__main {
    flex: 1 1 520px;
    min-width: 0;
}

.seo-editorial-header__title {
    font-size: 1.65rem;
    font-weight: 800;
    color: #0f172a;
    margin: 4px 0 6px;
    line-height: 1.3;
}

.seo-editorial-header__subtitle {
    font-size: 0.96rem;
    color: #475569;
    margin: 0;
    line-height: 1.55;
}

.seo-editorial-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    margin-right: 6px;
    margin-bottom: 8px;
    transition: all 0.16s ease;
}

a.seo-editorial-pill:hover {
    background: #fff1f2;
    color: #be123c;
    border-color: #fecdd3;
}

.seo-editorial-pill--accent {
    background: #fff1f2;
    color: #be123c;
    border-color: #fecdd3;
}

.seo-editorial-pill--blue {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.seo-editorial-header__stub {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 24px;
    border-left: 1.5px dashed #cbd5e1;
}

@media (max-width: 767.98px) {
    .seo-editorial-header {
        padding: 22px 20px;
    }
    .seo-editorial-header__title {
        font-size: 1.38rem;
    }
    .seo-editorial-header__stub {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        padding-left: 0;
        padding-top: 14px;
        border-left: none;
        border-top: 1.5px dashed #cbd5e1;
    }
}

.seo-airline-logo-box {
    width: 76px;
    height: 76px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    flex-shrink: 0;
}

.seo-airline-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 機票搜尋索引入口（全球航點總覽 & 國家專區） */
.seo-hub-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #1d4ed8 100%);
    border-radius: 18px;
    padding: 34px 32px;
    color: #fff;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.seo-hub-search-bar {
    display: flex;
    gap: 10px;
    background: #fff;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
    max-width: 680px;
}

.seo-hub-search-bar input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 0.96rem;
    padding: 8px 12px;
    color: #0f172a;
    min-width: 0;
}

.seo-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.14);
    color: #f8fafc;
    border-radius: 999px;
    padding: 5px 13px;
    font-size: 0.82rem;
    font-weight: 600;
}

.seo-country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
    gap: 14px;
}

.seo-country-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.16s ease;
}

.seo-country-card:hover {
    border-color: #e11d48;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(225, 29, 72, 0.08);
    color: inherit;
}

.seo-airline-dir-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.seo-airline-dir-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    text-decoration: none;
    color: inherit;
    transition: all 0.16s ease;
}

.seo-airline-dir-card:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.08);
    color: inherit;
}

.seo-airline-dir-card__logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    background: #fff;
    padding: 4px;
    object-fit: contain;
    flex-shrink: 0;
}

.seo-gateway-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 26px;
}

.seo-gateway-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.86rem;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    transition: all 0.15s ease;
}

.seo-gateway-pill:hover {
    border-color: #e11d48;
    color: #e11d48;
    background: #fff1f2;
}

/* Google Maps Grounding 官方規範來源標註 */
.seo-gmaps-sources {
    margin-top: 10px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.seo-gmaps-brand {
    font-family: Roboto, Sans-Serif;
    font-style: normal;
    font-weight: 400;
    font-size: 13px;
    color: #5E5E5E;
    letter-spacing: normal;
    white-space: nowrap;
}
