/* ==========================================================================
   GPM Shanghai 2027 — Activities page: significant-other tour cards + detail
   modal. Static asset (not a Twig view) -> braces are safe. Brand tokens
   (--gpm-navy / --gpm-gold / --gpm-gold-bright) come from default.css :root.
   ========================================================================== */

/* --- Tour cards (clickable, open the detail modal) --- */
.gpm-tour {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.gpm-tour:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(11, 34, 84, .16);
    border-color: var(--gpm-gold);
}
.gpm-tour:focus-visible {
    outline: 2px solid var(--gpm-gold);
    outline-offset: 3px;
}
.gpm-tour-photo {
    position: relative;
    height: 190px;
    background-size: cover;
    background-position: center center;
}
.gpm-tour-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 34, 84, 0) 55%, rgba(11, 34, 84, .45) 100%);
}
.gpm-tour-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
    background: var(--gpm-gold);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
.gpm-tour-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 18px 20px 20px;
}
.gpm-tour-cta {
    color: var(--gpm-gold);
    font-weight: 600;
    font-size: .9rem;
    margin-top: auto;
}
.gpm-tour-cta .fa {
    transition: transform .25s ease;
}
.gpm-tour:hover .gpm-tour-cta .fa {
    transform: translateX(4px);
}

/* --- Detail modal --- */
.gpm-tourmodal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(8, 18, 45, .82);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}
.gpm-tourmodal.is-open {
    opacity: 1;
    visibility: visible;
}
.gpm-tourmodal-backdrop {
    position: absolute;
    inset: 0;
}
.gpm-tourmodal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 760px;
    max-height: 88vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
    transform: translateY(16px) scale(.98);
    transition: transform .3s ease;
    -webkit-overflow-scrolling: touch;
}
.gpm-tourmodal.is-open .gpm-tourmodal-dialog {
    transform: none;
}
.gpm-tm-close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    width: 40px;
    height: 40px;
    line-height: 38px;
    text-align: center;
    font-size: 28px;
    color: #fff;
    background: rgba(0, 0, 0, .35);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}
.gpm-tm-close:hover {
    background: rgba(0, 0, 0, .6);
}
.gpm-tm-media {
    background: var(--gpm-navy);
}
.gpm-tm-img,
.gpm-tm-video {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
    background: #000;
}
.gpm-tm-body {
    padding: 24px 28px 30px;
}
.gpm-tm-when {
    display: block;
    font-size: .85rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.gpm-tm-title {
    margin: 0 0 6px;
}
.gpm-tm-cost {
    font-weight: 700;
    color: var(--gpm-navy);
    margin-bottom: 14px;
}
.gpm-tm-desc {
    margin-bottom: 18px;
}
.gpm-tm-includes-wrap h4 {
    margin-bottom: 6px;
}
.gpm-tm-includes {
    margin: 0;
    color: #555;
}

@media (max-width: 575px) {
    .gpm-tourmodal {
        padding: 0;
    }
    .gpm-tourmodal-dialog {
        max-height: 100vh;
        border-radius: 0;
    }
    .gpm-tm-img,
    .gpm-tm-video {
        max-height: 260px;
    }
    .gpm-tm-body {
        padding: 20px;
    }
}
