
/** 
    @Common CSS for listing
*/

.wdt-listings-item-container:not(.swiper-wrapper) { width: auto; margin: -15px; }


/** 
    @Type 1 
*/

.wdt-listings-item-wrapper.type1 { border: none;padding: 3px;position: relative;overflow: hidden; background-color:transparent; }
.wdt-listings-item-wrapper.type1 .wdt-listings-item-top-section { position: relative; overflow: hidden; display: grid; transition:var(--wdt-Ad-Transition);z-index: 1; }
.wdt-listings-item-wrapper.type1::before{
    content: '';
    height: 0;
    width: 0;
    position: absolute;
    top: -3px;
    left: -3px;
    background-color: var(--wdtHeadAltColor);
    z-index: 0;
    transition:var(--wdt-Ad-Transition);
}
.wdt-listings-item-wrapper.type1::after{
    content: '';
    height: 0;
    width: 0;
    position: absolute;
    bottom: -3px;
    right: -3px;
    background-color: var(--wdtHeadAltColor);
    z-index: 0;
    transition:var(--wdt-Ad-Transition);
}
.wdt-dark-bg .wdt-listings-item-wrapper.type1::before,.wdt-dark-bg .wdt-listings-item-wrapper.type1::after{
    background-color:var(--wdtAccentTxtColor);
}
.wdt-listings-item-wrapper.type1:hover:after,
.wdt-listings-item-wrapper.type1:hover::before{height: calc(100% + 3px); width:calc(100% + 3px);}
.wdt-dark-bg .wdt-listings-item-wrapper.type1 .wdt-listings-item-top-section:hover{border-color:var(--wdtAccentTxtColor);}
.wdt-listings-item-wrapper.type1 .wdt-listings-item-top-section > div { grid-area: 1/-1; }
.wdt-listings-item-wrapper.type1 .wdt-listings-item-top-section .wdt-listings-item-top-section-content { align-content: end; padding: 20px; 
    position: relative; background: linear-gradient(45deg, rgba(0,0,0,0.3) 0%, transparent 100%); transition: var(--wdt-Ad-Transition); }

.wdt-listings-item-wrapper.type1 .wdt-listings-item-top-section .wdt-listings-item-top-section-content > div:not(:last-child) { margin-bottom: 12px; }

.wdt-listings-item-wrapper.type1 .wdt-listings-item-top-section .wdt-listings--title { margin: 0px; }
.wdt-listings-item-wrapper.type1 .wdt-listings-item-top-section .wdt-listing-view-details {
    width:clamp(5rem, 4.7213rem + 1.2739vw, 6.25rem)/*100-80*/; height:clamp(5rem, 4.7213rem + 1.2739vw, 6.25rem)/*100-80*/; border-radius: var(--wdtRadius_Full); background-color: var(--wdtAccentTxtColor);color: var(--wdtHeadAltColor); aspect-ratio: 1 / 1;
    transition: background-color .3s ease, color .3s ease, opacity .3s ease, transform var(--wdt-transform-transition-duration);
    transform: perspective(0px) rotateX(0deg) rotateY(0deg) scaleX(0.2) scaleY(0.2);
    opacity: 0;
    transform-origin: 50px 50px;}
.wdt-listings-item-wrapper.type1 .wdt-listings-item-top-section:hover .wdt-listing-view-details{
    transform: perspective(0px) rotateX(0deg) rotateY(0deg) scaleX(1) scaleY(1);
    opacity: 1;
    transform-origin: 50px 50px;}
.wdt-listings-item-wrapper.type1 .wdt-listings-item-top-section:hover .wdt-listing-view-details:hover{
    background-color: var(--wdtLinkHoverColor);
    color: var(--wdtAccentTxtColor);
    transform: perspective(var(--wdt-transform-perspective)) rotateX(var(--wdt-transform-rotateX)) rotateY(var(--wdt-transform-rotateY)) scaleX(var(--wdt-transform-scale)) scaleY(var(--wdt-transform-scale));
}
.wdt-listings-item-wrapper.type1 .wdt-listings-group-button-hover-icon{ position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);}
.wdt-listings-item-wrapper.type1 .wdt-listings-item-top-section .wdt-listings-feature-image-holder { display: block; height: 100%; }

.wdt-listings-item-wrapper.type1 .wdt-listings-item-top-section .wdt-listings-feature-image-holder img { display: block;
    height: 100%; object-fit: cover; object-position: center center;  transition: var(--wdt-Ad-Transition); }
.wdt-listings-item-wrapper.type1 .wdt-listings-item-top-section:hover .wdt-listings-feature-image-holder img{
    -webkit-transform: scale(1.1); transform: scale(1.1);
}


.wdt-listings-item-wrapper.type1 .wdt-listings-item-top-section .wdt-listings-featured-item-container span {
  font-size: 12px; color: #ffffff; background-color: #000000; padding: 8px 18px; display: inline-block; }

.wdt-listings-item-wrapper.type1 .wdt-listings-item-top-section .wdt-listings-featured-item-container a { padding: 0px; }
.wdt-listings-item-wrapper.type1 .wdt-listings-item-top-section .wdt-listings-featured-item-container { 
    position: relative; top: 10px; right: 10px; z-index: 1; justify-self: end; align-self: start; display: inline-block; width: fit-content; }

.wdt-listings-item-wrapper.type1 .wdt-listings-item-top-section .wdt-listings-hover-image-icon { position: absolute; top: 20px; left: 20px; margin: 0px; }







/** 
    @Type 2 
*/


.wdt-listings-item-wrapper.type2 .wdt-listings-item-top-section .wdt-listings-item-top-section-content { display: block;
  position: relative; float: left; width: 100%; padding: 20px 0 0; }

.wdt-listings-item-wrapper.type2 .wdt-listings-item-top-section .wdt-listings--title { margin: 0px; color: var(--wdtHeadAltColor); }
.wdt-listings-item-wrapper.type2 .wdt-listings-item-top-section .wdt-listings--title a { color: inherit; text-decoration: none; }
.wdt-listings-item-wrapper.type2 .wdt-listings-item-top-section .wdt-listings--title a:hover { color: var(--wdtLinkHoverColor); }

.wdt-listings-item-wrapper.type2 .wdt-listings-taxonomy-container li a { line-height: normal; padding: 0; font-size: 14px; }
.wdt-listings-item-wrapper.type2 .wdt-listings-taxonomy-container li a:before { display: none; }

.wdt-listings-item-wrapper.type2 .wdt-listings-taxonomy-container li a span:first-child:not(:only-child) { margin-right: 5px; }

.wdt-listings-item-wrapper.type2 .wdt-listings-item-top-section .wdt-listings-item-top-section-content > div:not(:last-child) { margin-bottom: 12px; }


.wdt-listings-item-wrapper.type2:not(.has-post-thumbnail) .wdt-listings-item-top-section { padding-top: 40px; }
.wdt-listings-item-wrapper.type2:not(.has-post-thumbnail) .wdt-listings-taxonomy-container { position: static; padding: 10px 30px 0; }
.wdt-listings-item-wrapper.type2:not(.has-post-thumbnail) .wdt-listings-item-bottom-section-content { padding-top: 20px; padding-bottom: 50px; }
.wdt-listings-item-wrapper.type2:not(.has-post-thumbnail) .wdt-listings-item-top-section div.wdt-listings-item-ad-section { right: 30px; }

.wdt-listings-item-wrapper.type2 .wdt-listings-item-top-section .wdt-listings-featured-item-container,
.wdt-listings-item-wrapper.type2:hover .wdt-listings-item-top-section .wdt-listings-featured-item-container {
    left: 0; top: 0; right: auto; background: none; font-size: 0; padding: 0; position: absolute; }

.wdt-listings-item-wrapper.type2 .wdt-listings-item-top-section .wdt-listings-featured-item-container a,
.wdt-listings-item-wrapper.type2:hover .wdt-listings-item-top-section .wdt-listings-featured-item-container a { background: none; }

.wdt-listings-item-wrapper.type2 .wdt-listings-item-top-section .wdt-listings-featured-item-container a {
    display: flex; position: absolute; justify-content: flex-end; right: 0; top: 5px; opacity: 1; }

.wdt-listings-item-wrapper.type2 .wdt-listings-item-top-section .wdt-listings-featured-item-container span {
    font-size: 14px; color: #ffffff; background-color: #000000; padding: 5px 7px; }

.wdt-listings-item-wrapper.type2:hover .wdt-listings-item-top-section .wdt-listings-featured-item-container a { opacity: 0; }

.wdt-listings-item-wrapper.type2:hover .wdt-listings-item-top-section .wdt-listings-featured-item-container a:after { color: #fff; }




.wdt-listings-item-wrapper.type2 .wdt-listings-hover-image-icon { width: 30px; height: 30px; display: block; 
    position: absolute; top: 30px; right: 30px; background: transparent; z-index: 4; opacity: 0; visibility: hidden; 
    cursor: pointer; transition: .3s cubic-bezier(0.4, 0, 1, 1); -webkit-transition: .3s cubic-bezier(0.4, 0, 1, 1); }

.wdt-listings-item-wrapper.type2:hover .wdt-listings-hover-image-icon { opacity: 1; visibility: visible; cursor: pointer; }

.wdt-listings-hover-image-icon .wdt-icon {
    width: 30px; height: 30px; fill: var(--wdtAccentTxtColor); cursor: pointer; transform: scale(.8); -webkit-transform: scale(.8); }

.wdt-listings-hover-image-icon:hover .wdt-icon { transform: scale(.8) rotate(90deg); 
    -webkit-transform: scale(.8) rotate(90deg); fill: var(--wdtLinkHoverColor); }

.wdt-listings-item-wrapper.type2 .wdt-listings-hover-image-icon svg {
    transform: scale(.8); -webkit-transform: scale(.8); transition: .3s cubic-bezier(0, 0, 0.2, 1); 
    -webkit-transition: .3s cubic-bezier(0, 0, 0.2, 1); }

.wdt-listings-item-wrapper.type2 .wdt-listings-hover-image-icon:hover svg {
    transform: scale(.8) rotate(90deg); -webkit-transform: scale(.8) rotate(90deg); }





    

/** 
    @Type 3 
*/

.wdt-listings-item-wrapper.type3 { position: relative; border: none; background: transparent; }

.wdt-listings-item-wrapper.type3 .wdt-listings-item-hover-section { 
    z-index: 1; position: absolute; top: 0; left: 0; white-space: nowrap; padding: 1rem; background: transparent; 
    font-weight: 400; margin-top: -4rem; margin-left: 0; /*opacity: 0; box-shadow: 0px 10px 20px -10px rgba(0, 0, 0, 0.15); */
    width: auto; float: none; pointer-events: none; }

.wdt-listings-item-wrapper.type3:hover .wdt-listings-item-hover-section { opacity: 1; }

.wdt-listings-item-wrapper.type3 .wdt-listings-taxonomy-container li a span { font-size: 0.8rem; padding: 0px; }
.wdt-listings-item-wrapper.type3 .wdt-listings-taxonomy-container li a span:before,
.wdt-listings-item-wrapper.type3 .wdt-listings-taxonomy-container li a span:after { display: none; }

.wdt-listings-item-wrapper.type3 .wdt-listings-taxonomy-container li a:hover span { color: inherit; }
.wdt-listings-item-wrapper.type3 .wdt-listings-taxonomy-container li a:before { display: none; }
.wdt-listings-item-wrapper.type3 .wdt-listings-taxonomy-container li a:hover { box-shadow: none !important; }

.wdt-listings-item-wrapper ul li:not(:first-child) { display: none; }


.wdt-listings-item-wrapper.type3 .wdt-listings-taxonomy-container li a { color: #000000; background-color: transparent; }


/** 
    @CSS Media Queries
*/

@media (min-width: 768px) {

    .wdt-listings-item-wrapper.type3 .wdt-listings-item-title { -webkit-transition: var(--wdt-Ad-Transition); transition: var(--wdt-Ad-Transition);
        margin: 0 0 6px 0; padding: 10px 15px 12px;background-color: #fff; -webkit-clip-path: inset(0 100% 0 0); clip-path: inset(0 100% 0 0); }
    .wdt-listings-item-wrapper.type3 .wdt-listings-taxonomy-container { -webkit-transition: var(--wdt-Ad-Transition); transition: var(--wdt-Ad-Transition);
        margin: 0; padding: 10px 15px 12px; background-color: #fff; width: fit-content; -webkit-clip-path: inset(0 100% 0 0); clip-path: inset(0 100% 0 0); }

    .wdt-listings-item-wrapper.type3:hover .wdt-listings-item-title { -webkit-clip-path: inset(0 0% 0 0); clip-path: inset(0 0% 0 0); }
    .wdt-listings-item-wrapper.type3:hover .wdt-listings-taxonomy-container { -webkit-clip-path: inset(0 0% 0 0); clip-path: inset(0 0% 0 0); }

}

@media (max-width: 767px) {

    .wdt-listings-item-wrapper.type3 .wdt-listings-item-hover-section { padding: 1.2rem 0 0; margin-top: 0; margin-left: 0; 
        transform: none !important; box-shadow: none; position: relative; opacity: 1; width: 100%; }
    
    .wdt-listings-item-wrapper.type3 .wdt-listings-item-hover-section .wdt-listings-item-title { margin: 0 0 10px; }
    .wdt-listings-item-wrapper.type3 { margin-bottom: 24px;}

}
