@charset "utf-8";
/* ========================================
   Travel Routes - Ticket Style Cards (Refactored V2 - Premium)
   ======================================== */

.new_japan-trip_sec_insert,
.new_japan-trip_sec7 {
    background-color: #f5f5f5;
}

.world_insert {
    margin-top: 50px;
    padding: 10px 0 50px;
}

.new_japan-trip_bn-area {
    padding-bottom: 50px;
    margin-bottom: 0;
}

.tour-routes-container {
    max-width: 1100px;
    padding: 120px 20px 1px;
    font-family: "Helvetica Neue", Helvetica, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

.tour-card.theme-blue {
    --ticket-color: #00A0E9;
    --ticket-gradient-start: #00A0E9;
    --ticket-gradient-end: #0068B7;
}

.tour-card.theme-orange {
    --ticket-color: #FFB74D;
    --ticket-gradient-start: #FFB74D;
    --ticket-gradient-end: #F57C00;
}

.tour-card.theme-green {
    --ticket-color: #66BB6A;
    --ticket-gradient-start: #66BB6A;
    --ticket-gradient-end: #2E7D32;
}

.tour-card.theme-pink {
    --ticket-color: #F48FB1;
    --ticket-gradient-start: #F48FB1;
    --ticket-gradient-end: #E91E63;
}

.tour-card.theme-purple {
    --ticket-color: #B39DDB;
    --ticket-gradient-start: #9575CD;
    --ticket-gradient-end: #673AB7;
}

.tour-card.theme-teal {
    --ticket-color: #4DD0E1;
    --ticket-gradient-start: #26C6DA;
    --ticket-gradient-end: #00BCD4;
}

.tour-card {
    display: flex;
    align-items: stretch;
    margin-bottom: 80px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.12));
    transition: transform 0.3s ease;
    height: 260px;
    cursor: pointer;
}

.tour-card:last-child {
    margin-bottom: 0;
}

.tour-card:hover {
    transform: translateY(-5px);
}

.tour-main-section {
    flex: 1;
    background: #fff;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.tour-stub-section {
    width: 160px;
    background-color: var(--ticket-color);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    padding: 20px 10px;
    z-index: 1;
}

.tour-stub-section:after {
    width: 2px;
    content: "";
    display: block;
    position: absolute;
    top: 7%;
    left: 13px;
    border-left: 2px dashed #fff;
    z-index: 1;
    height: 86%;
}

.layout-right .tour-stub-section:after {
    top: 7%;
    right: 12px;
    left: auto;
}

.tour-perforation {
    display: none;
    width: 0;
    border-left: 2px dashed #d0d0d0;
    margin: 24px 0;
    position: relative;
    z-index: 5;
}

.tour-card.layout-left .tour-main-section {
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    margin-right: -10px;
}

.tour-card.layout-left .tour-stub-section {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    margin-left: -2px;
    padding-left: 20px;

    /* MASKING: Cut top-left, bottom-left, and add scallops on the right */
    -webkit-mask-image:
        radial-gradient(circle at top left, transparent 20px, black 21px),
        radial-gradient(circle at bottom left, transparent 20px, black 21px),
        radial-gradient(circle at right, transparent 8px, black 9px);
    mask-image:
        radial-gradient(circle at top left, transparent 20px, black 21px),
        radial-gradient(circle at bottom left, transparent 20px, black 21px),
        radial-gradient(circle at right, transparent 8px, black 9px);

    -webkit-mask-composite: source-in;
    mask-composite: intersect;

    -webkit-mask-size: 100% 100%, 100% 100%, 100% 24px;
    mask-size: 100% 100%, 100% 100%, 100% 24px;

    -webkit-mask-repeat: no-repeat, no-repeat, repeat-y;
    mask-repeat: no-repeat, no-repeat, repeat-y;
}

.tour-card.layout-right .tour-main-section {
    border-radius: 20px;
    margin-left: -10px;
    display: flex;
    align-items: center;
    text-align: left;
}

.tour-card.layout-right .tour-main-section .tour-content {
    padding-left: 20px;
}

.tour-card.layout-right .tour-stub-section {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    margin-right: -2px;
    padding-right: 20px;

    -webkit-mask-image: radial-gradient(circle at top right, transparent 20px, black 21px),
        radial-gradient(circle at bottom right, transparent 20px, black 21px),
        radial-gradient(circle at left, transparent 8px, black 9px);
    mask-image: radial-gradient(circle at top right, transparent 20px, black 21px),
        radial-gradient(circle at bottom right, transparent 20px, black 21px),
        radial-gradient(circle at left, transparent 8px, black 9px);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
    -webkit-mask-size: 100% 100%, 100% 100%, 100% 24px;
    mask-size: 100% 100%, 100% 100%, 100% 24px;
    -webkit-mask-repeat: no-repeat, no-repeat, repeat-y;
    mask-repeat: no-repeat, no-repeat, repeat-y;
}

.tour-images {
    position: relative;
    width: 240px;
    height: 240px;
    flex-shrink: 0;
    z-index: 10;
    transition: transform 0.3s ease;
}

/* 奇数排：图片突破左上角 */
.tour-card.layout-left {
    margin-left: 150px;
    /* 为左侧凸出的图片留出空间 */
}

.tour-card.layout-left .tour-images {
    margin-left: -100px;
    margin-top: -140px;
    margin-bottom: -20px;
}

/* 偶数排：图片突破右上角 */
.tour-card.layout-right {
    margin-right: 150px;
    /* 为右侧凸出的图片留出空间 */
}

.tour-card.layout-right .tour-images {
    margin-right: -100px;
    margin-top: -140px;
    margin-bottom: -20px;
}

.tour-image-large {
    position: absolute;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    border: 5px solid var(--ticket-color);
    overflow: hidden;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.tour-image-small {
    position: absolute;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 4px solid var(--ticket-color);
    overflow: hidden;
    z-index: 20;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Desktop Image Positioning */
.tour-card.layout-left .tour-image-large {
    top: 0;
    left: 0;
}

.tour-card.layout-left .tour-image-small {
    bottom: -10px;
    right: -30px;
}

.tour-card.layout-right .tour-image-large {
    top: 0;
    right: 0;
}

.tour-card.layout-right .tour-image-small {
    bottom: -10px;
    left: -30px;
}

.tour-image-large img,
.tour-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tour-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tour-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.25;
    background: linear-gradient(135deg, var(--ticket-gradient-start), var(--ticket-gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tour-description {
    font-size: 16px;
    color: #555;
    padding-left: 20px;
    margin-bottom: 15px;
    font-weight: 500;
}

.layout-right .tour-description {
    padding-left: 0;
    padding-right: 20px;
}

.tour-btn {
    align-self: flex-start;
    background: linear-gradient(to right, var(--ticket-gradient-start), var(--ticket-gradient-end));
    color: #fff;
    padding: 10px 45px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
}

.tour-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.location-pill {
    background: #fff;
    color: var(--ticket-color);
    padding: 8px 0;
    width: 85%;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .tour-routes-container {
        padding: 40px 15px 20px;
    }

    /* Reset all desktop-specific card margins */
    .tour-card,
    .tour-card.layout-right,
    .tour-card.layout-left {
        flex-direction: column;
        height: auto;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 50px;
        filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.15));
    }

    /* For even rows, we flip everything so images stay on top and main stays on top of stub */
    .tour-card.layout-right {
        flex-direction: column-reverse !important;
    }

    .tour-main-section {
        flex-direction: column !important;
        border-radius: 20px 20px 0 0 !important;
        padding: 20px 15px 25px;
        text-align: center;
        margin: 0 !important;
        gap: 15px;
    }

    .tour-card.layout-right .tour-main-section {
        flex-direction: column-reverse !important;
    }

    /* Reset all desktop image positioning and margins */
    .tour-images,
    .tour-card.layout-left .tour-images,
    .tour-card.layout-right .tour-images {
        position: relative;
        margin: 0 auto 15px auto !important;
        width: 200px;
        height: 200px;
    }

    /* Mobile image positioning - centered layout */
    .tour-image-large,
    .tour-card.layout-left .tour-image-large,
    .tour-card.layout-right .tour-image-large {
        width: 160px;
        height: 160px;
        top: 20px;
        left: 20px;
    }

    .tour-image-small,
    .tour-card.layout-left .tour-image-small,
    .tour-card.layout-right .tour-image-small {
        width: 100px;
        height: 100px;
        bottom: 0;
        right: 0;
        left: auto !important;
    }

    .tour-content {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .tour-title {
        font-size: 22px;
        line-height: 1.3;
        margin-bottom: 12px;
        text-align: center;
    }

    .tour-description,
    .tour-card.layout-right .tour-description {
        font-size: 14px;
        padding: 0 10px !important;
        margin-bottom: 18px;
        line-height: 1.6;
        text-align: center;
    }

    .tour-btn {
        align-self: center;
        padding: 12px 35px;
        font-size: 15px;
    }

    .tour-perforation {
        display: none;
    }

    .tour-stub-section {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        border-radius: 0 0 20px 20px !important;
        padding: 25px 15px 20px;
        margin: 0 !important;
        /* Remove mask/scallops on mobile */
        -webkit-mask-image: none !important;
        mask-image: none !important;
    }

    /* Remove horizontal dashed line for mobile */
    .tour-stub-section:after,
    .layout-right .tour-stub-section:after {
        display: none !important;
    }

    .location-pill {
        width: auto;
        min-width: 100px;
        padding: 8px 16px;
        margin: 4px;
        font-size: 13px;
    }
}