/* "On Tour" page (#535) */

.tour-destination {
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.tour-destination:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--app-accent-rgb), 0.5);
}

.tour-destination--active {
    border-color: var(--bs-info);
    cursor: default;
}

/* The running tour's card only says where the trip goes; it is not a choice. */
.tour-destination--active:hover {
    transform: none;
    border-color: var(--bs-info);
}

/* One uniform box for all six banners (#638). The delivered set is cut to 16/9,
   so `cover` does not actually crop anything today — the fixed box is what keeps
   the cards the same height should a later banner arrive in another shape. The
   destination's name is not drawn into these pictures, it is the card title. */
.tour-destination__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.tour-progress {
    height: 1.4rem;
}

/* The waiting reward, inside the progress card. Stacked on a phone so the
   button keeps its full width, side by side from the sm breakpoint up. */
.tour-claim {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.tour-claim__hint {
    color: var(--bs-info);
    font-weight: 600;
}

@media (min-width: 576px) {
    .tour-claim {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }

    .tour-claim .tour-claim-btn {
        flex: 0 0 auto;
    }
}

/* Hatched continuation of the filled bar: what the travellers will add on the
   next match day, so the number does not have to be spelled out (#535). */
.tour-progress__preview {
    background-color: transparent;
    background-image: repeating-linear-gradient(
        135deg,
        rgba(var(--app-accent-rgb), 0.55) 0,
        rgba(var(--app-accent-rgb), 0.55) 4px,
        transparent 4px,
        transparent 9px
    );
    border-right: 2px dashed rgba(var(--app-accent-rgb), 0.8);
}

/* The progress card sits on the dark gradient (.bg-dark), where Bootstrap's
   dark .text-muted would be grey on grey. */
.tour-progress-card .text-muted {
    color: rgba(var(--app-white-rgb), 0.6) !important;
}

.tour-select-list {
    max-height: 45vh;
    max-height: 45dvh;
    overflow-y: auto;
}

.tour-select-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.4rem 0.5rem;
    border-radius: 0.4rem;
    cursor: pointer;
}

/* The theme shrinks the checkbox input to 0×0 and hangs the drawn 15×16px box
   (::before) below it, so in this centred row the box sat under the name.
   Giving the input the drawn box's size lets the flex row centre what you see. */
.tour-select-row .form-check-input {
    flex-shrink: 0;
    width: 15px;
    height: 16px;
    margin: 0;
}

.tour-select-row .form-check-input::before {
    top: 0;
}

/* With a size of its own the input would paint Bootstrap's box too — filled,
   with a white tick once checked — underneath the theme's drawn box and "x". */
.tour-select-row .form-check-input,
.tour-select-row .form-check-input:checked {
    background: none;
    border: none;
}

/* Lineup and bench players stay out of the list until "show all" is on. */
.tour-select-list--hide-squad .tour-select-row--squad {
    display: none;
}

/* The "everyone is in the squad" hint only matters while they are hidden. */
.tour-select-list:not(.tour-select-list--hide-squad) .tour-select-empty {
    display: none;
}

.tour-select-row:hover {
    background: rgba(var(--app-white-rgb), 0.06);
}

.tour-select-row input:disabled ~ * {
    opacity: 0.45;
}

.tour-select-name {
    font-weight: 600;
}
