/*
Theme Name:   Voxel (child theme)
Theme URI:    https://getvoxel.io/
Author:       27collective
Author URI:   https://27collective.net/
Template:     voxel
Version:      1.0.55
Text Domain:  voxel-child
*/

/* UTILITIES */
.sticky-top-0 {
    top: 0 !important;
}

.max-w-570 {
    max-width: 570px;
}

.input-gaps-default .ts-filter-wrapper,
.archive .ts-filter-wrapper {
    gap: 15px;
}

/* OVERRIDES */
.top-filters-map-switch-custom {
    position: relative;
    top: unset;
    right: unset;
    bottom: unset;
    left: unset;
}

.home-search-bars form > .ts-filter-wrapper > div:first-child {
    flex-grow: 1;
}

.archive-search-form .ts-filter-wrapper {
    gap: 10px;
}
/*
.archive-search-form form > .ts-filter-wrapper {
  flex-wrap: nowrap;
}
*/

.archive .post-feed-grid > .ts-preview > div,
.archive .post-feed-grid > .ts-preview > div > div {
    height: 100%;
}

.property-slider,
.property-slider > .elementor-widget-container > .ts-slider.flexify,
.property-slider > .elementor-widget-container > .ts-single-slide {
    height: 100%;
}

/* Property Card */
.properties-feed-similar .property-preview-card {
    flex-direction: column;
}
.properties-feed-similar .property-preview-card > * {
    width: 100%;
}
.properties-feed-similar .property-preview-card-image {
    height: 205px;
}
.property-preview-card-image {
    width: 100%;
    aspect-ratio: 16/10;
}
.property-preview-card-image > .elementor-widget-image {
    width: 100%;
    height: 100%;
}
.property-preview-card-image > .elementor-widget-image-carousel {
    width: 100%;
}
.property-preview-card-image > .elementor-widget-image-carousel,
.property-preview-card-image > .elementor-widget-image-carousel > .elementor-image-carousel-wrapper,
.property-preview-card-image > .elementor-widget-image-carousel > .elementor-image-carousel-wrapper > .elementor-image-carousel,
.property-preview-card-image > .elementor-widget-image-carousel > .elementor-image-carousel-wrapper > .elementor-image-carousel > .swiper-slide,
.property-preview-card-image > .elementor-widget-image-carousel > .elementor-image-carousel-wrapper > .elementor-image-carousel > .swiper-slide > a,
.property-preview-card-image > .elementor-widget-image-carousel > .elementor-image-carousel-wrapper > .elementor-image-carousel > .swiper-slide > a > figure,
.property-preview-card-image > .elementor-widget-image-carousel > .elementor-image-carousel-wrapper > .elementor-image-carousel > .swiper-slide > a > figure > img,
.property-preview-card-image > .elementor-widget-image-carousel > .elementor-image-carousel-wrapper > .elementor-image-carousel > .swiper-slide > figure,
.property-preview-card-image > .elementor-widget-image-carousel > .elementor-image-carousel-wrapper > .elementor-image-carousel > .swiper-slide > figure > img {
    height: 100%;
}
.property-preview-card-image > .elementor-widget-image-carousel > .elementor-image-carousel-wrapper > .elementor-image-carousel > .swiper-slide > figure > img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    height: 100%;
}
.property-preview-card-image > .elementor-widget-image > img,
.property-preview-card-image > .elementor-widget-image > a > img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    height: 100%;
}
.property-preview-card-image > .elementor-widget-ucaddon_uc_slider_image {
    width: 100%;
}
/* Property Card END */

/* Property Map Popup */
.ts-mapbox-popup .mapboxgl-popup-content {
    margin-bottom: 35px;
}
.ts-mapbox-popup .mapboxgl-popup-content .mapboxgl-popup-close-button {
    pointer-events: all;
    right: 10px;
    top: 2px;
    z-index: 1;
    width: 26px;
    height: 30px;
    background-color: #FFFFFF;
    border-radius: 10px;
    font-size: 28px;
}
.ts-map .ts-map-nav {
    display: none !important;
}
/* Property Map Popup END */

.property-specs .ts-action-icon {
    margin-top: -4px;
}

body:not(.archive) .ts-btn-search-custom {
    display: none !important;
}

/* FLUENT FORMS */

body .fluentform textarea {
    min-height: 60px;
}

body .fluentform .ff-el-form-check {
    margin-bottom: 0;
}

body .fluentform .ff-el-tc label.ff_tc_label > span {
    padding-top: 0 !important;
}

.fluentform .ff-el-group.ff_submit_btn_wrapper {
    margin-bottom: 0 !important;
}

.enquiry-form-phone-50 {
    width: 48%;
    display: inline-block;
    vertical-align: top;
}

.enquiry-form-name-50 {
    width: 48%;
    display: inline-block;
    vertical-align: middle;
    margin-left: 4%;
}

/* MOBILE WHATSAPP AND PHONE FIX */
.fluentform #fluentform_17 .ff-el-group,
.fluentform #fluentform_18 .ff-el-group {
    margin-bottom: 0;
}

[class*="enquiry_button_"] .elementor-button-text > span {
    position: absolute;
    transform: translateX(calc(-50% + 10px));
    display: block;
    width: 100%;
    margin: 6px 0 0;
    font-size: 0.75em;
}

/* ERRORS FIX */

.marker-wrapper, .marker-wrapper * {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Fix Google Autocomplete no showing on smaller devices because of FluentForms */
body .pac-container {
    z-index: 600000 !important;
}

/* ADS */
.adsbygoogle {
    display: none;
}
/* ADS END */

/* MEDIA QUERIES */

@media (min-width: 1025px) {
    .archive .ts-btn-search-custom {
        display: none;
    }
}

@media (max-width: 1024px) {
    .ts-btn-search-custom ~ .ea4v_save_search {
        display: none !important;
    }
    .ts-mapbox-popup .mapboxgl-popup-content .mapboxgl-popup-close-button {
        right: 4px;
    }
}

@media (min-width: 768px) {
    /* ADS */
    .adsbygoogle-desktop {
        display: block;
    }
    /* ADS END */
}

@media (max-width: 767px) {
    /* Hotfix for maps on mobile devices, pusing and showing 0 results */
    /* Fix is to hide the footer which causes the layout shift + map push and finally feed map update and feed update */
    /*.archive footer {
      display: none !important;
    }*/
    /* HOMEPAGE NEWSLETTER FIX */
    #fluentform_3 > fieldset > .ff-el-group:last-child {
        margin-top: 20px;
    }

    body .gt_switcher {
        width: 52px !important;
    }

    body .gtranslate_wrapper .gt_switcher a img {
        width: 24px;
        height: 24px;
        margin-top: -2px;
    }

    body .gtranslate_wrapper .gt_switcher a {
        font-size: 14px;
    }

    /* ADS */
    .adsbygoogle-mobile {
        display: block;
    }
    /* ADS END */
}

.footer-seo-contextual-links ul {
    columns: 1;
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-seo-contextual-links li {
    break-inside: avoid;
    margin-bottom: 0.5rem;
}

.footer-seo-contextual-links a {
    text-decoration: none;
    color: inherit;
}

.footer-seo-contextual-links a:hover {
    text-decoration: underline;
}

@media (min-width: 560px) {
    .footer-seo-contextual-links ul {
        columns: 2;
    }
}

@media (min-width: 860px) {
    .footer-seo-contextual-links ul {
        columns: 3;
    }
}

@media (min-width: 1240px) {
    .footer-seo-contextual-links ul {
        columns: 4;
    }
}
