/**
Theme Name: Residencial Los Tilos
Author: Moio
Author URI: https://moio.io/
Description: Residencial Los Tilos
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: residencial-los-tilos
Template: astra
*/

@font-face {
    font-family: 'Sora';
    src: /*url('assets/fonts/Sora-Regular.woff') format('woff'),*/
         url('assets/fonts/Sora-VariableFont_wght.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Work Sans';
    src: /*url('assets/fonts/WorkSans-Regular.woff') format('woff'),*/
         url('assets/fonts/WorkSans-VariableFont_wght.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
}
@font-face {
    font-family: 'Work Sans';
    src: /*url('assets/fonts/WorkSans-Italic.woff') format('woff'),*/
         url('assets/fonts/WorkSans-Italic-VariableFont_wght.woff2') format('woff2');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

:root {
    --font-size: 16px;
    --font-weight: 500;

    --font-primary: 'Work Sans', sans-serif;
    --font-secondary: 'Sora', sans-serif;
}

html, body {
    font-family: 'Work Sans', sans-serif;
    font-size: var(--font-size);
    font-weight: var(--font-weight);
}
h1,
h2 {
    font-family: 'Sora', sans-serif;
}

p {
    font-size: 15px;
    font-weight: 400;
}
.entry-content p {
    margin-bottom: 0;
}

@media screen and (min-width: 992px) {
    p {font-size: 18px;}
}

/* helpers */

[class*="img_aspect-ratio"] img {
    object-fit: cover;

}

.img_aspect-ratio--1 img {
    aspect-ratio: 77/65;
}

@media screen and (max-width: 767px)  {
    .hidden--xs {
        display: none !important;
    }
}

.elementor-icon-box-wrapper a {
    text-decoration-thickness: 1px !important;
    text-underline-offset: 2px;
    text-decoration-color: transparent !important;
    
    transition: all 0.2s ease-in-out;
    
    &:hover {
        text-decoration-color: currentColor !important;
    }
}


/* All buttons hover */
.elementor-widget-button .elementor-button:hover,
.ast-custom-button:hover {
    /* background-color: oklch(from var(--ast-global-color-6) calc(l * .04) c h); */
    background-color: oklch(from var(--ast-global-color-1) calc(l * 1.08) c h);
    border-color: oklch(from var(--ast-global-color-1) calc(l * 1.08) c h);
}
.gform-theme--framework input[type="submit"]:hover {
    background-color: oklch(from var(--ast-global-color-1) calc(l * 1.08) c h) !important;
}

/****************************************/
/*                  HEADER              */  
/****************************************/
body .ast-primary-header-bar {
    border-bottom: 0 none !important;
}

header {
    .ast-custom-button {
        padding: 0.7em 1em !important;
    }
}

/****************************************/
/*                FOOTER                */
/****************************************/

footer {
    ul.ast-nav-menu li a {
        font-weight: 400;
        text-decoration: underline;
        font-weight: 400;
        text-decoration-thickness: 1px;
        text-decoration-color: currentColor;
        text-underline-offset: 2px;

        transition: all 0.2s ease-in-out;

        &:hover {
            text-decoration-color: transparent; 
        }
    }
}

/****************************************/
/*                CONTENT               */  
/****************************************/

.homepage__hero {
    > div:first-child {
        flex: 1 1 auto;
    }
    @media screen and (min-width: 1350px) {
        > div:last-child {
            margin-left: calc(((100vw - 1300px) / 2) - 24px) ;
        }
    }
}

/* Boxes w order */
.fases__wrapper {
    position: relative;

    /* --gutter: 40px; */
    --gutter: 40px;
    gap: var(--gutter) !important;
    font-size: 16px;
    
    p {font-size: 1em;}
    .elementor-icon {font-size: 40px;}

    > div {
        background: #fff;
        padding: 16px !important;

        &:not(:last-child) {
            &::before {
                content: '';
                position: absolute;
                top: 100%;
                left: 50%;
                width: 1px;
                height: var(--gutter);
                background: #A8A79F;
            }
            &:first-child::before {
                background: #212426;
            }
        }
    }

    @media screen and (min-width: 768px) {

        --gutter: min(100px, 7vw);

        font-size: 20px;
        .elementor-icon {font-size: 48px;}
        grid-template-columns: repeat(4, min(11em, calc(25% - (var(--gutter) * 3 / 4)))) !important;

        justify-content: center !important;
        > div {
            &:not(:last-child) {
                &::before {
                    top: 50%;
                    left: 100%;
                    width: var(--gutter);
                    height: 1px;
                }
            }
        }
    }
}

/* Boxes w order */
.ordered-steps-boxes__wrapper {
    counter-reset: step;

    h3.elementor-heading-title {margin-bottom: 8px;}
    > div {
        
        position: relative;
        font-size: 18px;
        /* padding: 1em 1em 1em calc(1rem + 32px + 1em); */
        padding: 0 1em 0 calc(1rem + 32px + 1em);

        background: transparent !important;
        gap: 0 !important;

        &::before {
            content: counter(step);
            counter-increment: step;

            position: absolute;
            top: 1rem;
            left: 1rem;
            width: 32px;
            height: 32px;
            justify-content: center;
            line-height: 1em;
            display: flex;
            justify-content: center;
            align-items: center;
            text-align: center;

            background: #517A94;
            color: #F9FAFB;
            border-radius: 50%;
        }
    }

    @media screen and (min-width: 768px) {
        > div {
            position: relative;
            font-size: 20px;
            padding: calc(1rem + 39px + 1em) 1em 1em;

            background-color: #F9FAFB !important;
    
            &::before {
                width: 39px;
                height: 39px;
            }
        }
        
    }
}

/* Default Accordions */
.elementor-widget-n-accordion .e-n-accordion {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    .e-n-accordion-item > summary.e-n-accordion-item-title {
        color: #517A94 !important;
        font-weight: 600;
        border: 0 none;
        border-bottom: 1px solid #517A94;
        & + div {
            border: 0 none;
        }
    }
}

/* Custom mobile Accordions */
.collapsibles--xs {

    > div {
        gap: 0 !important;
        > .elementor-element.elementor-widget-image {
            img {
                aspect-ratio: 5/4;
                object-fit: cover;
            }
        }

        /* Fix flex imgs + flex elementor overflow issue */
        @media screen and (max-width: 767px) {
            display: grid !important;
        }

    }


    details[class*="e-n-accordion-item"] {
        summary {
            border: 0 none;
            padding: 0 24px;
            & + div {
                border: 0 none;
                padding-inline: 24px;
            }
        }
    }
    
    @media screen and (min-width: 768px) {
        .elementor-widget-n-accordion .e-n-accordion .e-n-accordion-item > summary.e-n-accordion-item-title {
            border-bottom: 0 none;
            color: var(--ast-global-color-2);
        }
        details[class*="e-n-accordion-item"] {
            summary {
                pointer-events: none;
                padding: 24px 0 8px 0;

                + div {
                    padding-inline: 0;
                }
                
                .e-n-accordion-item-title-icon {
                    display: none;
                }
                .e-n-accordion-item-title-header {
                    display: flex;
                    align-items: center;
                    gap: 1em;
                    &::before {
                        content: '';
                        display: inline-block;
                        width: 24px;
                        height: 18px;
            
                        background-size: contain;
                        background-repeat: no-repeat;
                        background-position: center;
                    }
                }
            }
        }
        .accordion--kitchen summary .e-n-accordion-item-title-header::before {
            background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.5 0H1.5C1.10218 0 0.720644 0.158035 0.43934 0.43934C0.158035 0.720644 0 1.10218 0 1.5V16.5C0 16.8978 0.158035 17.2794 0.43934 17.5607C0.720644 17.842 1.10218 18 1.5 18H16.5C16.8978 18 17.2794 17.842 17.5607 17.5607C17.842 17.2794 18 16.8978 18 16.5V1.5C18 1.10218 17.842 0.720644 17.5607 0.43934C17.2794 0.158035 16.8978 0 16.5 0ZM16.5 16.5H1.5V1.5H16.5V16.5ZM3.75 4.125C3.75 3.9025 3.81598 3.68499 3.9396 3.49998C4.06321 3.31498 4.23891 3.17078 4.44448 3.08564C4.65005 3.00049 4.87625 2.97821 5.09448 3.02162C5.31271 3.06502 5.51316 3.17217 5.6705 3.3295C5.82783 3.48684 5.93498 3.68729 5.97838 3.90552C6.02179 4.12375 5.99951 4.34995 5.91436 4.55552C5.82922 4.76109 5.68502 4.93679 5.50002 5.0604C5.31501 5.18402 5.0975 5.25 4.875 5.25C4.57663 5.25 4.29048 5.13147 4.0795 4.9205C3.86853 4.70952 3.75 4.42337 3.75 4.125ZM7.875 4.125C7.875 3.9025 7.94098 3.68499 8.0646 3.49998C8.18821 3.31498 8.36391 3.17078 8.56948 3.08564C8.77505 3.00049 9.00125 2.97821 9.21948 3.02162C9.43771 3.06502 9.63816 3.17217 9.79549 3.3295C9.95283 3.48684 10.06 3.68729 10.1034 3.90552C10.1468 4.12375 10.1245 4.34995 10.0394 4.55552C9.95422 4.76109 9.81002 4.93679 9.62502 5.0604C9.44001 5.18402 9.2225 5.25 9 5.25C8.70163 5.25 8.41548 5.13147 8.2045 4.9205C7.99353 4.70952 7.875 4.42337 7.875 4.125ZM12 4.125C12 3.9025 12.066 3.68499 12.1896 3.49998C12.3132 3.31498 12.4889 3.17078 12.6945 3.08564C12.9 3.00049 13.1262 2.97821 13.3445 3.02162C13.5627 3.06502 13.7632 3.17217 13.9205 3.3295C14.0778 3.48684 14.185 3.68729 14.2284 3.90552C14.2718 4.12375 14.2495 4.34995 14.1644 4.55552C14.0792 4.76109 13.935 4.93679 13.75 5.0604C13.565 5.18402 13.3475 5.25 13.125 5.25C12.8266 5.25 12.5405 5.13147 12.3295 4.9205C12.1185 4.70952 12 4.42337 12 4.125ZM14.25 6.75H3.75C3.55109 6.75 3.36032 6.82902 3.21967 6.96967C3.07902 7.11032 3 7.30109 3 7.5V14.25C3 14.4489 3.07902 14.6397 3.21967 14.7803C3.36032 14.921 3.55109 15 3.75 15H14.25C14.4489 15 14.6397 14.921 14.7803 14.7803C14.921 14.6397 15 14.4489 15 14.25V7.5C15 7.30109 14.921 7.11032 14.7803 6.96967C14.6397 6.82902 14.4489 6.75 14.25 6.75ZM13.5 13.5H4.5V8.25H13.5V13.5Z' fill='%23475A66'/%3E%3C/svg%3E%0A");
        }
        .accordion--bath summary .e-n-accordion-item-title-header::before {
            background-image: url("data:image/svg+xml,%3Csvg width='24' height='19' viewBox='0 0 24 19' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M22.5 7.00003H19.5C19.5 6.80112 19.421 6.61036 19.2803 6.4697C19.1397 6.32905 18.9489 6.25003 18.75 6.25003H12.75C12.5511 6.25003 12.3603 6.32905 12.2197 6.4697C12.079 6.61036 12 6.80112 12 7.00003H6V2.87503C6 2.57667 6.11853 2.29052 6.3295 2.07954C6.54048 1.86856 6.82663 1.75003 7.125 1.75003C7.38867 1.74896 7.64493 1.83726 7.85196 2.00054C8.059 2.16382 8.2046 2.39244 8.265 2.6491C8.3062 2.84238 8.42202 3.01159 8.58729 3.11995C8.75255 3.22831 8.95391 3.26706 9.14759 3.22778C9.34127 3.1885 9.51162 3.07436 9.62162 2.91018C9.73161 2.74599 9.77236 2.54503 9.735 2.35097C9.60766 1.75417 9.27862 1.21945 8.80326 0.836804C8.3279 0.454157 7.73523 0.246943 7.125 0.250034C6.42881 0.250034 5.76113 0.526596 5.26884 1.01888C4.77656 1.51116 4.5 2.17884 4.5 2.87503V7.00003H1.5C1.30109 7.00003 1.11032 7.07905 0.96967 7.2197C0.829018 7.36036 0.75 7.55112 0.75 7.75003V11.5C0.751489 12.892 1.30509 14.2265 2.28933 15.2107C3.27358 16.1949 4.60807 16.7485 6 16.75V18.25C6 18.4489 6.07902 18.6397 6.21967 18.7804C6.36032 18.921 6.55109 19 6.75 19C6.94891 19 7.13968 18.921 7.28033 18.7804C7.42098 18.6397 7.5 18.4489 7.5 18.25V16.75H16.5V18.25C16.5 18.4489 16.579 18.6397 16.7197 18.7804C16.8603 18.921 17.0511 19 17.25 19C17.4489 19 17.6397 18.921 17.7803 18.7804C17.921 18.6397 18 18.4489 18 18.25V16.75C19.3919 16.7485 20.7264 16.1949 21.7107 15.2107C22.6949 14.2265 23.2485 12.892 23.25 11.5V7.75003C23.25 7.55112 23.171 7.36036 23.0303 7.2197C22.8897 7.07905 22.6989 7.00003 22.5 7.00003ZM18 7.75003V10.75H13.5V7.75003H18ZM21.75 11.5C21.75 11.9925 21.653 12.4801 21.4645 12.9351C21.2761 13.3901 20.9999 13.8035 20.6516 14.1517C20.3034 14.4999 19.89 14.7761 19.4351 14.9646C18.9801 15.153 18.4925 15.25 18 15.25H6C5.00544 15.25 4.05161 14.8549 3.34835 14.1517C2.64509 13.4484 2.25 12.4946 2.25 11.5V8.50003H12V11.5C12 11.6989 12.079 11.8897 12.2197 12.0304C12.3603 12.171 12.5511 12.25 12.75 12.25H18.75C18.9489 12.25 19.1397 12.171 19.2803 12.0304C19.421 11.8897 19.5 11.6989 19.5 11.5V8.50003H21.75V11.5Z' fill='%23475A66'/%3E%3C/svg%3E%0A");
        }
        .accordion--safe summary .e-n-accordion-item-title-header::before {
            background-image: url("data:image/svg+xml,%3Csvg width='18' height='20' viewBox='0 0 18 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.5 0.75H1.5C1.10218 0.75 0.720644 0.908035 0.43934 1.18934C0.158035 1.47064 0 1.85218 0 2.25V7.5C0 12.4425 2.3925 15.4378 4.39969 17.0803C6.56156 18.8484 8.71219 19.4484 8.80594 19.4738C8.93484 19.5088 9.07078 19.5088 9.19969 19.4738C9.29344 19.4484 11.4413 18.8484 13.6059 17.0803C15.6075 15.4378 18 12.4425 18 7.5V2.25C18 1.85218 17.842 1.47064 17.5607 1.18934C17.2794 0.908035 16.8978 0.75 16.5 0.75ZM16.5 7.5C16.5 10.9753 15.2194 13.7962 12.6937 15.8831C11.5943 16.7885 10.344 17.493 9 17.9644C7.67363 17.5012 6.4387 16.8092 5.35125 15.9197C2.79563 13.8291 1.5 10.9969 1.5 7.5V2.25H16.5V7.5ZM4.71937 10.2806C4.57864 10.1399 4.49958 9.94902 4.49958 9.75C4.49958 9.55098 4.57864 9.36011 4.71937 9.21937C4.86011 9.07864 5.05098 8.99958 5.25 8.99958C5.44902 8.99958 5.63989 9.07864 5.78063 9.21937L7.5 10.9397L12.2194 6.21937C12.2891 6.14969 12.3718 6.09442 12.4628 6.0567C12.5539 6.01899 12.6515 5.99958 12.75 5.99958C12.8485 5.99958 12.9461 6.01899 13.0372 6.0567C13.1282 6.09442 13.2109 6.14969 13.2806 6.21937C13.3503 6.28906 13.4056 6.37178 13.4433 6.46283C13.481 6.55387 13.5004 6.65145 13.5004 6.75C13.5004 6.84855 13.481 6.94613 13.4433 7.03717C13.4056 7.12822 13.3503 7.21094 13.2806 7.28063L8.03063 12.5306C7.96097 12.6004 7.87825 12.6557 7.78721 12.6934C7.69616 12.7312 7.59856 12.7506 7.5 12.7506C7.40144 12.7506 7.30384 12.7312 7.21279 12.6934C7.12175 12.6557 7.03903 12.6004 6.96937 12.5306L4.71937 10.2806Z' fill='%23475A66'/%3E%3C/svg%3E%0A");
        }
        .accordion--sustainable summary .e-n-accordion-item-title-header::before {
            background-image: url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 22 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17.5719 4.86765C17.0294 3.57225 16.1161 2.46609 14.9468 1.68813C13.7775 0.91017 12.4044 0.495117 11 0.495117C9.5956 0.495117 8.2225 0.91017 7.05323 1.68813C5.88397 2.46609 4.97069 3.57225 4.42815 4.86765C3.25647 5.40318 2.26333 6.26409 1.56693 7.34791C0.870535 8.43173 0.500207 9.69282 0.500022 10.9811C0.490647 14.5623 3.50002 17.6561 7.07565 17.7498C8.17546 17.7764 9.26512 17.5341 10.25 17.0439V20.7498C10.25 20.9487 10.329 21.1395 10.4697 21.2802C10.6103 21.4208 10.8011 21.4998 11 21.4998C11.1989 21.4998 11.3897 21.4208 11.5304 21.2802C11.671 21.1395 11.75 20.9487 11.75 20.7498V17.0439C12.6824 17.5069 13.709 17.7484 14.75 17.7498H14.9206C18.5 17.6561 21.5103 14.5623 21.5 10.9811C21.4998 9.69282 21.1295 8.43173 20.4331 7.34791C19.7367 6.26409 18.7436 5.40318 17.5719 4.86765ZM14.886 16.2498C13.7675 16.279 12.669 15.9505 11.75 15.3123V11.4686L15.8356 9.42671C15.9238 9.38264 16.0024 9.32163 16.067 9.24718C16.1315 9.17272 16.1808 9.08628 16.212 8.99278C16.2432 8.89929 16.2556 8.80057 16.2486 8.70226C16.2416 8.60395 16.2153 8.50799 16.1713 8.41984C16.1272 8.33169 16.0662 8.25308 15.9917 8.18851C15.9173 8.12393 15.8308 8.07466 15.7373 8.04349C15.6438 8.01233 15.5451 7.99988 15.4468 8.00687C15.3485 8.01385 15.2525 8.04014 15.1644 8.08421L11.75 9.78671V7.24984C11.75 7.05092 11.671 6.86016 11.5304 6.71951C11.3897 6.57885 11.1989 6.49984 11 6.49984C10.8011 6.49984 10.6103 6.57885 10.4697 6.71951C10.329 6.86016 10.25 7.05092 10.25 7.24984V12.0367L6.83565 10.3286C6.65762 10.2396 6.45153 10.2249 6.2627 10.2879C6.07387 10.3508 5.91779 10.4862 5.82877 10.6642C5.73976 10.8422 5.72511 11.0483 5.78805 11.2372C5.851 11.426 5.98637 11.5821 6.1644 11.6711L10.25 13.713V15.3067C9.33132 15.9454 8.23259 16.2739 7.11409 16.2442C4.3344 16.1776 1.99252 13.7673 2.00002 10.9848C1.99931 9.93838 2.31263 8.91579 2.89945 8.04935C3.48627 7.18291 4.31958 6.5125 5.29158 6.12484C5.38909 6.08568 5.47729 6.02647 5.55045 5.95105C5.62361 5.87563 5.6801 5.78568 5.71627 5.68702C6.11188 4.60364 6.83095 3.66805 7.77607 3.00701C8.72119 2.34597 9.84667 1.99143 11 1.99143C12.1534 1.99143 13.2789 2.34597 14.224 3.00701C15.1691 3.66805 15.8882 4.60364 16.2838 5.68702C16.3199 5.78568 16.3764 5.87563 16.4496 5.95105C16.5228 6.02647 16.611 6.08568 16.7085 6.12484C17.6803 6.51271 18.5135 7.18318 19.1003 8.04957C19.6871 8.91596 20.0005 9.93844 20 10.9848C20.0075 13.7673 17.6656 16.1776 14.886 16.2498Z' fill='%23475A66'/%3E%3C/svg%3E%0A");
        }
    }
}

/* gravity Forms */
.gform-theme--framework  {
    h2.gform_title {
        font-size: 20px;
    }
    .gform_required_legend {
        display: none;
    }
    @media screen and (min-width: 768px) {
        h2.gform_title {
            font-size: 26px;
        }
    }
}
.gform-theme--framework input[type="text"],
.gform-theme--framework input[type="email"],
.gform-theme--framework textarea {
    background: transparent !important; 
    border: 0 none !important;
    border-radius: 0 !important;
    border-bottom: 1px solid #868379 !important;
    box-shadow: none !important;
    padding-inline: 0 !important;
}
.gform-theme--framework input[type="submit"] {
    border-radius: 4em !important;
    background: var(--ast-global-color-1) !important;
    color: var(--ast-global-color-0) !important;
    box-shadow: none !important;
}
.gform-theme--foundation .gfield textarea.small {
    min-block-size: 3rem;
    block-size: 3rem;
}
body .gform-theme--framework {
    --gf-form-validation-border-color-focus: #BA362A !important;
    --gf-form-validation-heading-color: #BA362A !important;
    --gf-ctrl-desc-color-error: #BA362A !important;
    --gf-form-gap-x: 16px !important;
    --gf-form-gap-y: 16px !important;
    .gform_validation_errors .gform_submission_error {
        margin-bottom: 0;
    }
}

.gform_wrapper.gform-theme.gform-theme--framework.gform_confirmation_wrapper {

    .gform_confirmation_message {
        text-align: center;
        padding: 2rem;
        background: #D3EDDA;
        border-radius: 15px;
        color: #15752F;
    }
}

/*  Houses list div for collpsibles  */
.houses__list--wrapper {

    .list__content .list__item a {
        text-decoration: none;
    }
    .list__header {display: none;}

    .list__content {
        overflow: hidden;
        transition: max-height 0.3s ease;
        .list__item {
            border-bottom: 1px solid var(--ast-global-color-6) !important;
            a {
                display: grid;
                /* grid-template-columns: repeat(2, 1fr); */
                grid-template-columns: 1fr 40%;
                /* gap: 1em; */
                gap: 0;
                text-align: left;
                padding-block: 1.8em;

                > span {
                    position: relative;
                    .value-w-icon__wrapper {
                        justify-content: center;
                    }

                    /* --currentAttr: attr(data-info);*/

                    &[data-info="superficie"] {
                        svg {
                            display: none;
                        }
                    }
                }
                @media screen and (max-width: 939px) {
                    gap: 1rem;
                    > span {
                        .value-w-icon__wrapper {
                            justify-content: left;
                        }
                        &::before {text-transform: capitalize;}

                        &[data-info="portal"] {
                            order:0;
                            &::before {content: attr(data-info) ': ';}
                        }
                        &[data-info="planta"] {
                            order:1;
                            &::before {content: attr(data-info) ': ';}
                        }
                        &[data-info="puerta"] {
                            order:2;
                            &::before {content: attr(data-info) ': ';}
                        }
                        &[data-info="superficie"] {
                            order:3;
                            svg {
                                display: block;
                            }
                            /* &::before {
                                content: attr(data-info) ': ';
                            } */
                        }
                        &[data-info="dormitorios"] {
                            order:4;
                        }
                        &[data-info="baños"] {
                            order:5;
                        }
                        &[data-info="precio"] {
                            order:6;
                        }
                        &[data-info="status"] {
                            order:7;
                        }
                    }
                }
            }
        }
    }
    .button__wrapper {
        display: flex;
        justify-content: center;
        button {
            border: 0 none;
            background: transparent;
            padding: 0;
            box-shadow: none;
            display: flex;
            gap: 0.8em;
            align-items: center;

            &::before {
                content: '';
                display: inline-block;
                width: 0.8em;
                height: 0.5em;

                transition: transform 0.2s ease-in-out;
                
                background-image: url("data:image/svg+xml,%3Csvg width='18' height='10' viewBox='0 0 18 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17.0306 1.53055L9.53061 9.03055C9.46096 9.10029 9.37824 9.15561 9.2872 9.19335C9.19615 9.23109 9.09855 9.25052 8.99999 9.25052C8.90143 9.25052 8.80383 9.23109 8.71278 9.19335C8.62174 9.15561 8.53902 9.10029 8.46936 9.03055L0.969365 1.53055C0.828634 1.38982 0.749573 1.19895 0.749573 0.999929C0.749573 0.800906 0.828634 0.610034 0.969365 0.469303C1.1101 0.328573 1.30097 0.249512 1.49999 0.249512C1.69901 0.249512 1.88988 0.328573 2.03061 0.469303L8.99999 7.43962L15.9694 0.469303C16.039 0.399621 16.1218 0.344345 16.2128 0.306633C16.3039 0.268921 16.4014 0.249512 16.5 0.249512C16.5985 0.249512 16.6961 0.268921 16.7872 0.306633C16.8782 0.344345 16.9609 0.399621 17.0306 0.469303C17.1003 0.538986 17.1556 0.621712 17.1933 0.712756C17.231 0.803801 17.2504 0.901383 17.2504 0.999929C17.2504 1.09847 17.231 1.19606 17.1933 1.2871C17.1556 1.37815 17.1003 1.46087 17.0306 1.53055Z' fill='%23212426'/%3E%3C/svg%3E%0A");
                background-position: center;
                background-repeat: no-repeat;
                background-size: contain;

            }
            &[aria-expanded="true"]&::before {
                transform: rotate(180deg);
            }
        }
    }

    span.value-w-icon__wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1em;
        svg {
            width: 1.5em;
            height: 1.5em;
        }
    }
    span.badge_wrapper {
        display: inline-block;
        line-height: 1em;
        padding: 0.5em 0.7em;
        background: #89D2C266;
        border-radius: 4em;
        /* ready for color changes depending on status */
        &[data-status="vendido"] {
            background: #F0F3F5;
        }
    }

    @media screen and (min-width: 940px) {
        .list__header,
        .list__content .list__item a {
    
            /* Disable links for preview */
            /* pointer-events: none; */
    
            display: grid;
            grid-template-columns: repeat(5, 1fr)  1.5fr 1.5fr 1.5fr;
            text-align: center;
            align-items: center;
            &:hover {
                /* background-color: var(--ast-global-color-6); */
                background-color: oklch(from var(--ast-global-color-6) calc(l * 1.04) c h);
            }
            > span {
                /* padding: .7em 1em; */
                padding: 0 1em;
                > span {
                    padding: 0;
                }
            }
            span.badge_wrapper {
                padding: 0.7em 1em !important;
            }
        }
        .list__header {
            background-color: var(--ast-global-color-6);
            color: var(--ast-global-color-2);
            border: 0 none;
            border-bottom: 1px solid var(--ast-global-color-6);
            border-radius: 8px 8px 0 0;
            font-weight: 600;
            > span {
                padding: .7em 1em !important;
            }
        }
    }
}


/*  Houses list table  */
.houses__list--wrapper {
    /* .entry-content & {
        table {
            a {
                text-decoration: none;
            }
        }
    }
    table {
        border: 0 none;
        font-size: 16px;
        thead {
            th {
                background-color: var(--ast-global-color-6);
                color: var(--ast-global-color-2);
                border: 0 none;
                border-bottom: 1px solid var(--ast-global-color-6);

                &:first-child {
                    border-radius: 8px 0 0 0;
                }
                &:last-child {
                    border-radius: 0 8px 0 0;
                }
            }
        }
        tbody {
            tr {
                td {
                    border: 0 none;
                    border-bottom: 1px solid var(--ast-global-color-6);
                    text-align: center;
                }
            }
        }
    } */
    @media screen and (min-width: 768px) {
        table {
            font-size: 18px;
        }
    }
}


/****************************************/
/*                SINGLE                */  
/****************************************/

body.elementor-template-full-width .ast-container,
body.elementor-template-full-width .ast-container .ast-article-single {
    padding-inline: 0 !important;
}

.aside-sticky {
    position: sticky !important;
    top: 0;
}

.single-vivienda__hero {

}

span.badge_wrapper {
    display: inline-block;
    line-height: 1em;
    padding: 0.5em 0.7em;
    background: #89D2C266;
    border-radius: 4em;
    /* ready for color changes depending on status */
    &[data-status="vendido"] {
        background: #F0F3F5;
    }
}

.single-vivienda__gallery {
    .gallery {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 24px;
        > figure {
            width: 100% !important;
            max-width: 100% !important;
            padding: 0 !important;
            &:first-child {
                grid-column: span 2;
                grid-row: span 2;
            }

            /* Hide from 4 onwards */
            &:nth-child(n+4) {
                display: none;
            }

            .gallery-icon {
                aspect-ratio: 4 / 3 !important;
                height: 100%;
                width: 100%;
                img {
                    height: 100%;
                    object-fit: cover;
                }
            }
        }

        @media screen and (min-width: 768px) {
            grid-template-columns: repeat(3, 1fr);
            grid-template-rows: repeat(2, 1fr);
        }

    }
}

.single-vivienda__main-info {
    > div {
        span[data-info] {
            display: flex;
            align-items: center;
            gap: 1em;
        }
        svg {
            max-width: 25px;
            height: auto;
        }
    }
}

.single-vivienda__share-wrapper {

    .elementor-social-icons-wrapper {
        > span:not(:first-child) {
            svg {
                path {
                    fill: none;
                }
            }
        }
    }
}

body.single {
    background-color: #fff;
}

.dialog-lightbox-widget {
    .elementor-slideshow__footer {
        display: none !important;
    }
}

.single-vivienda__planos {
    svg * {
        fill: currentColor !important;
    }
}

.text--legal h3 {
    margin-bottom: 1em;
}
.text--legal p:not(:last-child) {
    margin-bottom: 1.5em;
}