/* Shared card sizing for tour listings, related tours and destinations. */
.tour-grid .tour-img .image-hover,
.destination .image-hover {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.tour-grid .tour-img .image-hover img,
.destination .image-hover img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tour-grid > .splide__slide,
.tour-grid > .row > .tour-card {
    display: flex;
    flex-direction: column;
}

.tour-grid .tour-item {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
}

.tour-grid .tour-item .tour-img {
    flex-shrink: 0;
}

.tour-grid .tour-item .tour-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tour-grid .tour-item .tour-title {
    min-height: 2.7em;
}

.tour-grid .tour-item .tour-booking {
    margin-top: auto;
}

/* Tour summary: readable facts without a scrollable table. */
.tour-key-details .tour-facts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.tour-key-details .tour-fact {
    min-width: 0;
    padding: 1.25rem;
    background-color: var(--bs-light);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
}

.tour-key-details .tour-fact dt {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--bs-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.tour-key-details .tour-fact-icon {
    display: inline-flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
    border-radius: 50%;
    font-size: 1.25rem;
}

.tour-key-details .tour-fact dd {
    margin: 0;
    color: var(--bs-body-color);
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

@media (min-width: 992px) {
    .tour-key-details .tour-facts-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .tour-key-details .tour-facts-grid {
        gap: 0.75rem;
    }

    .tour-key-details .tour-fact {
        padding: 1rem;
    }

    .tour-key-details .tour-fact dt {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .tour-key-details .tour-fact dd {
        font-size: 1.125rem;
    }
}
