/* Hotel Grid */

.card-hotel {
    --webkit-transition: all 500ms ease;
    transition: all 500ms ease;
    overflow: hidden;
}

.card-hotel img {
    transition: 1s;
}

.card-hotel:is(:hover, :focus, :active) img, .card-hotel:has(a.btn:focus, a.btn:active) img {
    filter: brightness(40%);
    transform: scale(1.1);
}

.card-hotel .card-body {
    position: absolute;
    right: 8%;
    left: 8%;
    top: calc(100% - 100px);
    padding: 1rem 0;    
    text-shadow: 2px 2px 6px var(--darkest), 0 0 1px var(--darkest);
    transition: 1s;
}

.card-hotel:is(:hover, :focus, :active) .card-body, .card-hotel:has(a.btn:focus, a.btn:active) .card-body {
    top: calc(100% - 300px);
}

.card-hotel hr {
    width: 25%;
    border-top: 1px solid #fff;
    opacity: 1;
    transition-delay: 1s;
    transition: 1s;
}

.card-hotel:is(:hover, :focus, :active) hr, .card-hotel:has(a.btn:focus, a.btn:active) hr {
    width: 100%;
}

.card-hotel .hover-content {
    height: 0;
}

.card-hotel:is(:hover, :focus, :active) .hover-content, .card-hotel:has(a.btn:focus, a.btn:active) .hover-content {
    min-height: 80px;
    height: auto;
}

/* Team Grid */

.card-team {
    --webkit-transition: all 500ms ease;
    transition: all 500ms ease;
    overflow: hidden;
}

.card-team img {
    transition: 1s;
}

.card-team .card-body {
    position: absolute;
    height: 100%;
    left: 0;
    right: 0;
    bottom: calc(120px - 100%);
    padding: 1rem;    
    transition: 1s;
    overflow-y: hidden;
}

.card-team:hover .card-body {
    bottom: 0;
}

.card-team .hover-content {
    display: none;
}

.card-team:hover .hover-content {
    display: block;
}

.card-team .card-footer {
    height: 120px;
}