﻿.destination {
    position: relative;
    overflow: hidden;
    cursor: default;
    margin-bottom: 20px;
}

.promo-crd.promo-crd-img.destination {
    display: block;
    height: 340px;
}

.destination .promo-crd__zooming-image {
    position: relative;
    inset: 0;
    z-index: 0;
    height: 100%;
    width: 100%;
}

.destination .promo-crd__zooming-image img {
    position: absolute;
    inset: 0;
    transform: scale(1);
    height: 100%;
    width: 100%;
    max-width: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.destination:hover .promo-crd__zooming-image img {
    transform: scale(1.1);
}
.destination:focus-within .promo-crd__zooming-image img{
    transform: scale(1.1);
}
.destination .promo-crd__wrapper {
    margin: 0;
    border-top: 0;
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 180px;
    transform: translateY(95px);
    transition: transform 0.3s ease;
    will-change: transform;
}

.destination:hover .promo-crd__wrapper {
    transform: translateY(0);
}

.destination .promo-crd__wrapper h3 {
    padding: 7px 0 13px;
    margin-bottom: 0;
    font-size: 20px !important;
    font-weight: 500 !important;
}

.destination .promo-crd__wrapper p {
    line-height: 19px;
}
.destination .promo-crd__wrapper .promo-crd__arrow-link{
    padding-top: 10px;
    padding-bottom: 10px;
}
.destination .promo-crd__wrapper .promo-crd__arrow-link:focus {
    outline-offset: -3px;
}

.destination .destination-image {
    min-height: 265px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: all .3s ease-out;
}

.destination .destination-name {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
    margin: auto;
    transform: scale(1);
}

.destination .destination-name h5 {
    min-width: 200px;
    background: #061B2B;
    display: inline-block;
    padding: 5px 25px;
    transform: skewX(-20deg);
    text-transform: uppercase;
    color: #fff;
}

.destination .destination-name h5 span {
    display: inline-block;
    transform: skewX(20deg);
}

.destination .destination-desc {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background: #061B2B;
    padding: 20px;
    transition: all .3s ease-out;
}

.destination .destination-desc p,
.destination .destination-desc #page .expandable-panel,
#page .destination .destination-desc .expandable-panel,
.destination .destination-desc .expandable-panel-link {
    margin: 0;
    color: #fff;
}

.destination:hover .destination-desc {
    bottom: 0;
}

.destination:hover .destination-image {
    transform: scale(1.1);
}

@media (max-width: 420px) {
    .destination .promo-crd__zooming-image,
    .destination:hover .promo-crd__zooming-image {
        transform: none !important;
    }
}
