/* ===== Ticket & Package search pages (OTA-style card layout) ===== */

.tk-hero {
    --tk-hero-photo: url('images/hero-tickets.jpg');
    background-color: #4a6cf7;
    background-image: linear-gradient(135deg, rgba(106, 90, 249, .58) 0%, rgba(74, 108, 247, .48) 55%, rgba(0, 168, 255, .40) 100%), var(--tk-hero-photo);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 48px 0 88px;
    color: #fff;
}

.tk-hero--packages {
    --tk-hero-photo: url('images/hero-packages.jpg');
}

.tk-hero h1 {
    font-size: 34px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #fff;
    text-shadow: 0 2px 14px rgba(15, 25, 80, .45);
}

.tk-hero p {
    margin: 0;
    opacity: .95;
    font-size: 15px;
    text-shadow: 0 1px 10px rgba(15, 25, 80, .45);
}

.tk-searchbar {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(20, 30, 90, .18);
    padding: 14px;
    margin-top: 28px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tk-searchbar select,
.tk-searchbar input[type="text"] {
    border: 1px solid #e3e6f0;
    background: #f7f8fc;
    border-radius: 10px;
    height: 46px;
    padding: 0 14px;
    font-size: 14px;
    color: #333;
    outline: none;
}

.tk-searchbar select { min-width: 170px; }
.tk-searchbar input[type="text"] { flex: 1; min-width: 200px; }

.tk-searchbar select:focus,
.tk-searchbar input[type="text"]:focus { border-color: #4a6cf7; background: #fff; }

.tk-searchbar .tk-search-btn {
    border: none;
    border-radius: 10px;
    height: 46px;
    padding: 0 28px;
    background: linear-gradient(90deg, #4a6cf7, #00a8ff);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.tk-searchbar .tk-search-btn:hover { opacity: .92; }

/* ===== category strip ===== */
.tk-cats {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 2px 10px;
    margin-top: -46px;
    scrollbar-width: thin;
}

.tk-cat {
    flex: 0 0 auto;
    width: 108px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(20, 30, 90, .10);
    padding: 16px 8px 12px;
    text-align: center;
    transition: transform .18s ease, box-shadow .18s ease;
}

.tk-cat:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(20, 30, 90, .16); }

.tk-cat i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 19px;
    margin-bottom: 8px;
}

.tk-cat span { display: block; font-size: 12.5px; color: #444; font-weight: 600; }

.tk-cat.c1 i { background: #fff1ec; color: #ff6b35; }
.tk-cat.c2 i { background: #e8f4ff; color: #2f8fef; }
.tk-cat.c3 i { background: #fff8e6; color: #e6a23c; }
.tk-cat.c4 i { background: #eafaf0; color: #27ae60; }
.tk-cat.c5 i { background: #f3edff; color: #8e5cf7; }
.tk-cat.c6 i { background: #e9f9f7; color: #16a5a5; }
.tk-cat.c7 i { background: #ffeef9; color: #e05fa0; }

/* ===== city chips ===== */
.tk-citychips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 6px;
}

.tk-citychip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid #e3e6f0;
    background: #fff;
    color: #555;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.tk-citychip:hover { border-color: #4a6cf7; color: #4a6cf7; text-decoration: none; }

.tk-citychip.active {
    background: linear-gradient(90deg, #4a6cf7, #00a8ff);
    border-color: transparent;
    color: #fff;
}

.tk-citychip .cnt {
    background: rgba(74, 108, 247, .12);
    color: #4a6cf7;
    border-radius: 999px;
    font-size: 11px;
    padding: 1px 7px;
}

.tk-citychip.active .cnt { background: rgba(255, 255, 255, .25); color: #fff; }

/* ===== results grid ===== */
.tk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0 48px;
}

.tk-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(20, 30, 90, .08);
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.tk-card:hover { transform: translateY(-6px); box-shadow: 0 14px 32px rgba(20, 30, 90, .16); color: inherit; text-decoration: none; }

.tk-media {
    position: relative;
    height: 160px;
    background: linear-gradient(135deg, #dfe6ff, #f3e8ff);
    overflow: hidden;
}

.tk-media img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.tk-card:hover .tk-media img { transform: scale(1.06); }

.tk-media-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #8f9bd4;
}

.tk-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(90deg, rgba(106, 90, 249, .92), rgba(0, 168, 255, .92));
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: .3px;
}

.tk-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }

.tk-title {
    font-size: 15.5px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 2px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tk-title-en {
    font-size: 12px;
    color: #98a0b3;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tk-loc { font-size: 12.5px; color: #6b7280; margin: 0 0 10px; }
.tk-loc i { color: #4a6cf7; margin-right: 4px; }

.tk-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

.tk-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 6px;
    background: #eef2ff;
    color: #4a6cf7;
}

.tk-tag.green { background: #eafaf0; color: #27ae60; }
.tk-tag.orange { background: #fff1ec; color: #ff6b35; }

.tk-price-row { margin-top: auto; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }

.tk-price-from { font-size: 11.5px; color: #98a0b3; }

.tk-price { font-size: 20px; font-weight: 800; color: #ff6b35; }

.tk-price-unit { font-size: 12px; color: #98a0b3; }

.tk-price-sub { width: 100%; font-size: 11.5px; color: #98a0b3; }

.tk-view {
    margin-top: 12px;
    display: block;
    text-align: center;
    border-radius: 10px;
    padding: 9px 0;
    font-size: 13.5px;
    font-weight: 700;
    color: #4a6cf7;
    background: #eef2ff;
    text-decoration: none;
    transition: background .18s ease, color .18s ease;
}

.tk-view:hover { background: linear-gradient(90deg, #4a6cf7, #00a8ff); color: #fff; text-decoration: none; }

.tk-empty {
    text-align: center;
    padding: 70px 0;
    color: #98a0b3;
}

.tk-empty i { font-size: 46px; margin-bottom: 14px; color: #cdd5ea; }

@media (max-width: 576px) {
    .tk-hero { padding: 32px 0 76px; }
    .tk-hero h1 { font-size: 26px; }
    .tk-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
    .tk-media { height: 120px; }
}

.product-detail {
    --pd-price-color: #ba4319;
    padding-top: 28px;
    padding-bottom: 72px;
    color: var(--text-color);
}

.product-detail .pd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 28px;
}

.product-detail .pd-breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-light); flex-shrink: 0; padding: 10px 0; text-decoration: none; }
.product-detail .pd-breadcrumb a:hover { color: var(--primary-dark); }
.product-detail .pd-breadcrumb > i { font-size: 9px; }
.product-detail .pd-breadcrumb > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-detail .pd-heading { margin-bottom: 28px; }
.product-detail .pd-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--primary-dark); font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.product-detail h1 { font-size: clamp(25px, 2.7vw, 38px); line-height: 1.3; letter-spacing: -.025em; margin: 10px 0; font-weight: 700; overflow-wrap: anywhere; }
.product-detail .pd-subtitle { color: var(--text-light); font-size: 15px; margin-bottom: 12px; overflow-wrap: anywhere; }
.product-detail .pd-location { display: flex; align-items: baseline; gap: 9px; font-size: 14px; color: var(--text-light); overflow-wrap: anywhere; }
.product-detail .pd-location > i { color: var(--primary-dark); }
.product-detail .pd-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(310px, 1fr); grid-template-areas: 'media booking' 'details booking'; gap: 24px 32px; align-items: start; }
.product-detail .pd-media { grid-area: media; position: relative; isolation: isolate; aspect-ratio: 8 / 5; border-radius: var(--radius-lg); overflow: hidden; background: #e9e8e3; }
.product-detail .pd-media > img { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; }
.product-detail .pd-image-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 28px; color: var(--text-light); text-align: center; overflow-wrap: anywhere; }
.product-detail .pd-image-placeholder > i { font-size: 44px; opacity: .6; }
.product-detail .pd-image-label { position: absolute; bottom: 20px; left: 20px; max-width: calc(100% - 40px); display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: var(--radius-sm); background: rgba(20, 27, 38, .82); color: var(--white); font-size: 12px; }
.product-detail .pd-booking { grid-area: booking; position: sticky; top: 105px; min-width: 0; }
.product-detail .pd-booking-card { background: var(--white); padding: 28px; border: 1px solid var(--border-color); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.product-detail .pd-main-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; margin-top: 10px; color: var(--pd-price-color); font-variant-numeric: tabular-nums; }
.product-detail .pd-main-price strong { font-size: clamp(28px, 2.6vw, 38px); line-height: 1.2; letter-spacing: -.035em; overflow-wrap: anywhere; }
.product-detail .pd-currency { font-size: 14px; font-weight: 600; }
.product-detail .pd-unit { font-size: 13px; color: var(--text-light); }
.product-detail .pd-divider { height: 1px; background: var(--border-color); margin: 24px 0; }
.product-detail h2 { display: flex; align-items: center; gap: 12px; font-size: 18px; line-height: 1.5; font-weight: 600; margin: 0 0 18px; }
.product-detail .pd-section h2 > i { width: 20px; color: var(--primary-dark); font-size: 17px; text-align: center; flex-shrink: 0; }
.product-detail .pd-label { display: block; color: var(--text-light); font-size: 13px; margin-bottom: 8px; }
.product-detail .pd-date { display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 50px; padding: 10px 12px; background: var(--white); color: var(--text-color); border: 1px solid var(--border-color); border-radius: var(--radius-sm); font: inherit; font-size: 15px; }
.product-detail .pd-stock { margin: 12px 0 16px; padding: 11px 12px; border-radius: var(--radius-sm); font-size: 13px; line-height: 1.6; color: var(--text-light); background: var(--light-gray); }
.product-detail .pd-stock--available { color: #146747; background: #eef8f2; }
.product-detail .pd-stock--soldout,
.product-detail .pd-stock--error { color: #a72c32; background: #fff1f1; }
.product-detail .pd-stock--notice { color: #805c18; background: #fff8e8; }
.product-detail .pd-cta { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; min-height: 50px; padding: 13px 18px; border: 0; border-radius: var(--radius-sm); background: var(--primary-color); color: var(--white); font-size: 15px; font-weight: 600; text-align: center; text-decoration: none; cursor: pointer; transition: background .18s ease, box-shadow .18s ease; }
.product-detail .pd-cta:hover:not(:disabled) { background: var(--primary-dark); color: var(--white); box-shadow: 0 4px 12px rgba(90, 75, 209, .2); text-decoration: none; }
.product-detail .pd-cta:disabled { background: #e8e9ed; color: #686b75; cursor: not-allowed; }
.product-detail .pd-cta > i { font-size: 12px; }
.product-detail .pd-retry { border: 0; background: transparent; color: var(--primary-dark); cursor: pointer; font-size: 13px; min-height: 44px; padding: 8px 0; margin-top: -12px; margin-bottom: 8px; text-decoration: underline; }
.product-detail .pd-booking-note { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-top: 16px; font-size: 12px; color: var(--text-light); line-height: 1.7; }
.product-detail .pd-booking-description { color: var(--text-light); font-size: 14px; margin: -4px 0 20px; }
.product-detail .pd-included-summary { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--primary-dark); background: #f4f2ff; padding: 12px; border-radius: var(--radius-sm); margin-bottom: 20px; }
.product-detail .pd-back { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px; margin-top: 12px; color: var(--text-light); font-size: 13px; text-decoration: none; }
.product-detail .pd-back:hover { color: var(--primary-dark); }
.product-detail .pd-details { grid-area: details; min-width: 0; }
.product-detail .pd-section { padding: 28px; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--white); margin-bottom: 18px; }
.product-detail .pd-section:last-child { margin-bottom: 0; }
.product-detail .pd-ticket-prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.product-detail .pd-ticket-prices > div { background: var(--light-gray); padding: 16px; border-radius: var(--radius-sm); }
.product-detail .pd-ticket-prices dt { font-size: 13px; color: var(--text-light); margin-bottom: 8px; }
.product-detail .pd-ticket-prices dd { font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.product-detail .pd-ticket-prices dd > span { font-size: 12px; font-weight: 500; }
.product-detail .pd-prose { font-size: 14px; color: var(--text-light); line-height: 1.9; overflow-wrap: anywhere; overflow-x: auto; }
.product-detail .pd-prose p + p { margin-top: 12px; }
.product-detail .pd-prose ul,
.product-detail .pd-prose ol { padding-left: 22px; }
.product-detail .pd-prose img { max-width: 100%; height: auto; }
.product-detail .pd-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.product-detail .pd-count { color: var(--primary-dark); font-size: 13px; background: #f4f2ff; padding: 2px 10px; border-radius: 20px; }
.product-detail .pd-services { list-style: none; margin: 0; padding: 0; }
.product-detail .pd-service { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border-color); }
.product-detail .pd-service:last-child { border-bottom: none; padding-bottom: 0; }
.product-detail .pd-service-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex-shrink: 0; background: #f4f2ff; color: var(--primary-dark); border-radius: var(--radius-sm); font-size: 19px; }
.product-detail .pd-service-name { flex: 1; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.product-detail .pd-service-quantity { font-size: 13px; color: var(--text-light); flex-shrink: 0; }
.product-detail a:focus-visible,
.product-detail button:focus-visible,
.product-detail input:focus-visible { outline: 3px solid var(--primary-dark); outline-offset: 3px; }

@media (max-width: 991px) {
    .product-detail .pd-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'media' 'booking' 'details'; gap: 24px; }
    .product-detail .pd-booking { position: static; }
    .product-detail .pd-media { aspect-ratio: 16 / 9; }
}

@media (max-width: 576px) {
    .product-detail { padding-top: 12px; padding-bottom: 40px; }
    .product-detail .pd-breadcrumb { margin-bottom: 16px; font-size: 12px; }
    .product-detail .pd-heading { margin-bottom: 20px; }
    .product-detail .pd-subtitle { font-size: 13px; }
    .product-detail .pd-layout { gap: 18px; }
    .product-detail .pd-media { aspect-ratio: 4 / 3; border-radius: var(--radius-md); }
    .product-detail .pd-image-label { bottom: 14px; left: 14px; max-width: calc(100% - 28px); }
    .product-detail .pd-booking-card,
    .product-detail .pd-section { padding: 20px; }
    .product-detail .pd-booking-card { box-shadow: var(--shadow-sm); }
    .product-detail .pd-ticket-prices { grid-template-columns: minmax(0, 1fr); }
    .product-detail .pd-ticket-prices > div { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 12px 14px; }
    .product-detail .pd-ticket-prices dt { margin-bottom: 0; }
    .product-detail .pd-service { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .product-detail .pd-cta { transition: none; }
}

/* 同组套餐区块在 .pd-layout 之外，不受左栏 2fr 限制 */
.product-detail .pd-same-group { margin-top: 40px; }
.product-detail .pd-same-group .pd-section-heading { margin-bottom: 18px; }
.product-detail .pd-same-group h2 > i { width: 20px; color: var(--primary-dark); font-size: 17px; text-align: center; flex-shrink: 0; }
@media (max-width: 576px) { .product-detail .pd-same-group { margin-top: 28px; } }

/* 组卡：套餐列表按组聚合 */
.tk-tag.group-count { background: rgba(74,108,247,.10); color: #3b5be0; border-color: rgba(74,108,247,.25); }
.tk-card--group .tk-media { height: 190px; }
.tk-card.is-active { outline: 2px solid var(--primary); outline-offset: 1px; }

/* 详情页组内套餐切换条 */
.product-detail .pd-switch { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; flex-wrap: wrap; }
.product-detail .pd-switch-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--primary-dark); white-space: nowrap; }
.product-detail .pd-switch-list { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
.product-detail .pd-switch-chip { border: 1px solid var(--border-color); background: #fff; border-radius: 999px; padding: 7px 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-family: inherit; font-size: 13px; color: var(--text-color); transition: var(--transition); }
.product-detail .pd-switch-chip:hover { border-color: var(--primary); color: var(--primary-dark); }
.product-detail .pd-switch-chip.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.product-detail .pd-switch-chip .pr { opacity: .75; font-size: 12px; }
.product-detail .pd-switch-chip.is-active .pr { opacity: .9; }
@media (max-width: 576px) {
    .product-detail .pd-switch { flex-direction: column; align-items: flex-start; gap: 8px; }
    .product-detail .pd-switch-list { width: 100%; }
}
