.tour-dates-more {
    position: relative;
    display: inline-block;
}

.tour-dates-toggle {
    border: 0;
    font: inherit;
    cursor: pointer;
}

.tour-dates-toggle:focus {
    outline: 2px solid #2f6fac;
    outline-offset: 2px;
}

.tour-dates-popover {
    position: absolute;
    top: calc(100% + 7px);
    left: 50%;
    z-index: 1000;
    width: 220px;
    padding: 10px 12px;
    color: #454545;
    background: #fff;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .2);
    line-height: 1.4;
    text-align: left;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .15s ease, visibility .15s ease;
}

.tour-dates-more:hover .tour-dates-popover,
.tour-dates-more.is-open .tour-dates-popover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.tour-dates-popover__title {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.tour-dates-popover__list {
    margin: 0;
    padding: 0 0 0 18px;
}

.tour-dates-popover__item + .tour-dates-popover__item {
    margin-top: 3px;
}

.tour-catalog-guide {
    display: block;
    margin-top: 2px;
    white-space: normal;
}

.tour-catalog-guide .fa {
    width: 25px;
}

/* Keep the fixed-height catalog card from placing its absolute legacy CTA over text. */
.tripcontainerinner {
    display: flex;
    flex-direction: column;
}

.tripcontainerinner .trip_thumb_holder {
    flex: 0 0 auto;
}

.tripcontainerinner .tripinfo {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.tripcontainerinner .tripshortdesc {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.tripcontainerinner .btntrip {
    position: static;
    flex: 0 0 auto;
    align-self: flex-start;
    margin-top: 15px;
}

@media (max-width: 500px) {
    .tour-dates-popover {
        left: auto;
        right: -8px;
        width: min(240px, calc(100vw - 64px));
        transform: none;
    }
}
