/* =============================================================================
    1. ACCORDION
========================================================================= */

.sales-tool__accordion {
    position: relative;
    height: 500px;
}

@media (max-width: 768px) {
    .sales-tool__accordion {
        height: auto;
    }
}

@media (min-width: 768px) and (max-width: 976px) {
    .sales-tool__accordion {
        height: 320px;
    }
}

.sales-tool__accordion dt ul {
    display: none;
}

.sales-tool__accordion dt a, .sales-tool__accordion dd a {
    display: inline-block;
    color: black;
    font-weight: bold;
    text-decoration: none;
}

.sales-tool__accordion dt {
    width: 20%;
    box-sizing: border-box;
    margin-left: auto;
    padding-left: 30px;
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .sales-tool__accordion dt {
        margin-left: 0;
        padding-left: 0;
        width: 100%;
    }
}

.sales-tool__accordion dt li {
    margin-bottom: 5px;
}

.sales-tool__accordion dt a {
    padding: 10px 15px;
    text-transform: uppercase;
    border-radius: 0px;
    border: 1px solid #91B4B8;
    background-color: transparent;
    color: #91B4B8;
    line-height: 1;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.sales-tool__accordion dt a:hover {
    color: #475859;
    background-color: #91B4B8;
}

.sales-tool__accordion dd {
    border-top: 0;
    box-sizing: border-box;
    width: 80%;
    position: absolute;
    left: 0px;
    top: 0px;
    margin: 0;
}

@media (max-width: 768px) {
    .sales-tool__accordion dd {
        width: 100%;
        position: relative;
    }    
}

@media (min-width: 768px) and (max-width: 976px) {
    .sales-tool__accordion dd {
       width: 70%;
    }    

    .sales-tool__accordion dt {
        width: 30%;
    }
}

.sales-tool__accordion dd img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    object-position: top;
}

@media (min-width: 768px) and (max-width: 976px) {
    .sales-tool__accordion dd img {
        max-height: 320px;
    }
}

.sales-tool__accordion dd .floors,
.sales-tool__accordion dd .floors > li{
    display: none;
}

ul.floors {
    margin: 0;
    padding: 0;
}

.sales-tool__accordion dd .floors > li img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
}

@media (min-width: 768px) and (max-width: 976px) {
    .sales-tool__accordion dd .floors > li img {
        max-height: 320px;
    }
}

.sales-tool__accordion dt.active > a {
    color: #475859;
    background-color: #91B4B8;
}

.sales-tool__accordion dt.active ul {
    display: block;
    margin-top: 5px;
}

.sales-tool__accordion dt.active ul li.active a {
    border: 1px solid #EBF5F7;
    background-color: #91B4B8;
    color: white;
}

.sales-tool__accordion ul {
    list-style-type: none;
}

.accordion-building-name::after {
    content: "";
    position: relative;
    margin-left: 4px;    
    line-height: 12px;
    display: inline-block;
    width: 21px;
    height: 12px;
    color: white;
    background: white;
    background-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center center;
    mask-position: center center;
    -webkit-mask-size: 12px 12px;
    mask-size: 12px 12px;
    -webkit-mask-image: url('data:image/svg+xml,<svg width="14" height="8" viewBox="0 0 14 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13 1L7 7L1 0.999999" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    mask-image: url('data:image/svg+xml,<svg width="14" height="8" viewBox="0 0 14 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13 1L7 7L1 0.999999" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');   
    transform: rotate(0deg);    
}

.active .accordion-building-name::after{
    transform: rotate(-180deg);
} 

/* =============================================================================
    2. TABLE FILTERS
========================================================================= */

.sales-tool__filters {
    border: 1px solid rgba(145, 180, 184, 0.5);
    font-size: 1rem;
    display: flex;
    flex-direction: column;
}

@media (max-width: 976px) {
    .sales-tool__filters {
        width: 100%;
        margin-bottom: 30px;
    }
}

.sales-tool__filters .filter-label {
    display: block;
    margin-bottom: 10px;
    text-transform: capitalize;
    color: #475859;
    font-weight: bold;
}

.filters-title {
    margin: 0;
    border-bottom: 1px solid rgba(145, 180, 184, 0.5);
    padding: 14px;
    background-color: #B7935A;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1rem;
}

.js-filter {
    padding: 20px;
    border-bottom: 1px solid rgba(145, 180, 184, 0.5);
}

.js-filter:last-child {
    border-bottom: none;
}

.js-filter:nth-child(2) {
    order: 3;
}

.js-filter:nth-child(3) {
    order: 4;
}

.js-filter:nth-child(4) {
    order: 6;
}

.js-filter:nth-child(5) {
    order: 6;
}

.js-filter:nth-child(6) {
    order: 5;
}

.js-filter:nth-child(7) {
    order: 2;
}

.js-filter:nth-child(8) {
    order: 1;
}

.sqm-data {
    text-align: center;
}

.noUi-target {
    padding: 0 15px;
    margin-top: 10px;
}

.noUi-connect {
    background: #B7935A !important;
}

#min-surface,
#max-surface {
    display: none;
}

/* =============================================================================
    3. TABLE ROW SOLD
========================================================================= */

.color-sold td {
    pointer-events: none;
    color: red;
}

/* =============================================================================
    4. DATA TABLES
========================================================================= */

table.dataTable {
    text-transform: uppercase;
}

table.dataTable tbody tr {
    cursor: pointer;
}

.dataTables_wrapper table.dataTable thead tr th,
.dataTables_wrapper table.dataTable tbody tr td {
    padding: 14px;
    vertical-align: middle;
}

@media (max-width: 1110px) {
    .dataTables_wrapper table.dataTable thead tr th,
    .dataTables_wrapper table.dataTable tbody tr td {
        padding: 15px;
    }
}
.dataTables_wrapper table.dataTable thead {
    background-color: #B7935A;
    color: white;
    font-weight: 500;
}

table td, table th {
    border: none;
    line-height: normal;
}

/* .dataTables_wrapper table.dataTable tbody tr td:nth-child(8)::after, */
.dataTables_wrapper table.dataTable tbody tr td:nth-child(9)::after {
    content: '\33A1';
}

.dataTables_wrapper table.dataTable tbody tr td:nth-child(10)::after {
    content: '\20AC';
}

.dataTables_wrapper {
    width: 100%;
    font-size: 1rem;
}

@media (max-width: 976px) {
    .dataTables_wrapper {
        width: 100%;
    }
}

.dataTables_filter {
    display: none;    
}

.dataTables_wrapper .dataTables_filter label input {
    margin-left: 10px;
    font-size: 1rem;
    padding: 10px;
}

.dataTables_wrapper table.dataTable tbody tr td {
    box-shadow: unset !important;
}

.dataTables_wrapper table.dataTable tbody tr:hover {
    background-color: #EBF5F7 !important;
}

.dataTables_wrapper table.dataTable.no-footer {
    margin-bottom: 30px;
    border-bottom: none;
}

.dataTables_wrapper table.dataTable thead tr th {
    border-bottom: none;
}

/* Change size and opacity of sorting arrows */
.dataTables_wrapper table.dataTable thead tr th.sorting::before,
.dataTables_wrapper table.dataTable thead tr th.sorting::after {
    opacity: 0.25;
    font-size: 0.8rem;
}

.dataTables_wrapper table.dataTable thead tr th.sorting_asc::before,
.dataTables_wrapper table.dataTable thead tr th.sorting_desc::after {
    opacity: 1;
    font-size: 0.8rem;
}

.dataTables_wrapper table.dataTable thead tr th.sorting_asc::after,
.dataTables_wrapper table.dataTable thead tr th.sorting_desc::before {
    opacity: 0.4;
    font-size: 0.8rem;
}

/* Change pagination numbers layout */
.sales-tool__table-wrapper .dataTables_wrapper .dataTables_paginate span a {
    line-height: 1;
    padding: 10px 15px;
}

/* Center align the pagination */
.sales-tool__table-wrapper .dataTables_wrapper .dataTables_info, 
.sales-tool__table-wrapper .dataTables_wrapper .dataTables_paginate {
    float: none;
    text-align: center;
}

.sales-tool__table-wrapper .dataTables_wrapper .dataTables_info {
    margin-bottom: 20px;
}

/* Style pagination buttons */
.sales-tool__table-wrapper .dataTables_wrapper .dataTables_paginate .paginate_button.previous,
.sales-tool__table-wrapper .dataTables_wrapper .dataTables_paginate .paginate_button.next {
    color: #91B4B8 !important;
    border: unset;
}

.sales-tool__table-wrapper .dataTables_wrapper .dataTables_paginate .paginate_button.previous:hover,
.sales-tool__table-wrapper .dataTables_wrapper .dataTables_paginate .paginate_button.next:hover {
    color: #475859 !important;
    background: none;
    border: unset;
}

.sales-tool__table-wrapper .dataTables_wrapper .dataTables_paginate .paginate_button.previous.disabled,
.sales-tool__table-wrapper .dataTables_wrapper .dataTables_paginate .paginate_button.next.disabled,
.sales-tool__table-wrapper .dataTables_wrapper .dataTables_paginate .paginate_button.previous.disabled:hover,
.sales-tool__table-wrapper .dataTables_wrapper .dataTables_paginate .paginate_button.next.disabled:hover {
    opacity: 0.5;
    color: #91B4B8 !important;
    border: unset;
}

.sales-tool__table-wrapper .dataTables_wrapper .dataTables_paginate span a.paginate_button  {
    border: unset;
    background: none;
    color: #91B4B8 !important;
    font-weight: 500;
    border-radius: none;
    margin-right: 10px;
}

.sales-tool__table-wrapper .dataTables_wrapper .dataTables_paginate span a.paginate_button.current,
.sales-tool__table-wrapper .dataTables_wrapper .dataTables_paginate span a.paginate_button.current:hover,
.sales-tool__table-wrapper .dataTables_wrapper .dataTables_paginate span a.paginate_button:hover {
    background: none;
    border: unset;
    color: #475859 !important;
    font-weight: 500;
    border-radius: none;
}

/* =============================================================================
    5. TABLE + FILTERS
========================================================================= */

.sales-tool__table-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    padding-top: 15px;
}

@media (max-width: 768px) {
    .sales-tool__table-wrapper {
        overflow: hidden;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
    }

    .sales-tool__table-wrapper table {
        overflow-x: auto;
        white-space: nowrap;
        display: block;
    }
}

@media (max-width: 976px) {
    .sales-tool__table-wrapper {
        flex-direction: column;
    }
}

.sales-tool__content table .cta {
    width: 30px;
    height: 30px;
    background: #B7935A;
    text-indent: -1000px;
    overflow: hidden;
    position: relative;
}

.sales-tool__content table .cta::after {
    position: absolute;
    left: 3px;
    top: 3px;
    content: "";
    line-height: 23px;
    display: inline-block;
    width: 23px;
    height: 23px;
    background:#fff;
    color:#fff;
    -webkit-mask-size: 23px 23px;
    mask-size: 23px 23px;
    -webkit-mask-repeat: no-repeat;  
    mask-repeat: no-repeat; 
    -webkit-mask-position: center center;
    mask-position: center center;
    -webkit-mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4" /></svg>');
    mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4" /></svg>');
}

.sales-tool__content table .color-sold .cta {
    display: none;
}

/* =============================================================================
    6. POPUP
========================================================================= */

.vex.vex-theme-top .vex-content {
    width: 100% !important;
    height: 100vh;
    overflow: hidden;
    padding: 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vex-dialog-form {
    max-width: 800px;
}

.vex-dialog-input {
    display: flex;
    align-items: center;
    margin: 0;
}

.vex-dialog-input .left,
.vex-dialog-input .right {
    width: 400px;
}

.vex-dialog-input .right {
    padding-left: 60px;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.glide__slides {
    display: flex;
    align-items: center;
}

.glide__slides .glide__slide img {
    width: 100%;
}

.vex-content h2 {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    text-align: center;
}

.vex-content table {
    width: 100%;
    padding: 30px 0;
    margin: 30px 0;
    border-top: 1px solid #475859;
    border-bottom: 1px solid #475859;
}

.vex-content .download {
    margin: 0 auto;
    background-color: #475859;
    font-size: 16px;
    line-height: 1;
    font-weight: 600;
    padding: 16px 40px;
    color: #fff;
    text-decoration: none;
}

.vex-content table td {
    font-size: 16px;
    padding: 10px 0;
}

.vex-content table tbody tr:hover>td, 
.vex-content table tbody tr:hover>th,
.vex-content table tbody>tr:nth-child(odd)>td, 
.vex-content table tbody>tr:nth-child(odd)>th {
    background-color: transparent;
}

.glide__bullets,
.glide__arrows {
    position: absolute;    
}

.glide__bullets {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    bottom: -30px;
}

.glide__bullet:not(:last-child) {
    margin-right: 5px;
}

.glide__bullet {
    display: block; 
    width: 12px;
    height: 12px;
    background: #475859 !important;
    border: 0;
    box-sizing: border-box;
    display: inline-block;
    cursor: pointer;
    border-radius: 50px;
    padding: 0;
    margin: 0;
    border: 1px solid #475859;
}

.glide__bullet.glide__bullet--active {
    opacity: .7;
    border-color: #475859;
}

.glide__arrows {
    top: 50%;
    width: 100%;
}

.glide__arrow {
    position: absolute;
    border: 0;
    background: #475859 !important;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    white-space: nowrap;
    text-indent: -9999px; 
    padding: 0;     
}

.glide__arrow:hover {
    background-color: #475859;
}

.glide__arrow.glide__arrow--left {
    left: -15px;
}

.glide__arrow.glide__arrow--right {
    right: -15px;
}

.glide__arrow.glide__arrow--right:focus,
.glide__arrow.glide__arrow--left:focus,
.glide__arrow.glide__arrow--right:focus-visible,
.glide__arrow.glide__arrow--left:focus-visible {
    outline: none !important;
}

.glide__arrow.glide__arrow--left::after,
.glide__arrow.glide__arrow--right::after {
    position: absolute;
    left: 3px;
    top: 3px;
    content: "";
    line-height: 23px;
    display: inline-block;
    width: 23px;
    height: 23px;
    background:#fff;
    color:#fff;
    -webkit-mask-size: 23px 23px;
    mask-size: 23px 23px;
    -webkit-mask-repeat: no-repeat;  
    mask-repeat: no-repeat; 
    -webkit-mask-position: center center;
    mask-position: center center;
    -webkit-mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M13 7l5 5m0 0l-5 5m5-5H6" /></svg>');        
    mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M13 7l5 5m0 0l-5 5m5-5H6" /></svg>');
}

.glide__arrow.glide__arrow--left::after {
    transform: rotate(180deg);
}

.vex-close {
    top: 100px !important;
    right: 100px !important;
}

.vex.vex-theme-top .vex-close:active:before, .vex.vex-theme-top .vex-close:hover:before,
.vex.vex-theme-top .vex-close:before {
    font-size: 48px !important;
    color: #475859 !important;
}   


/* =============================================================================
    7. CUSTOM CHECKBOX
========================================================================= */

.input-wrapper {
    display: block;
    position: relative;
    padding-left: 30px;
    margin-bottom: 5px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    line-height: 31px;
}

/* Hide the browser's default checkbox */
.input-wrapper input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Create a custom checkbox */
.checkmark {
    position: absolute;
    top: 5px;
    left: 0;
    height: 20px;
    width: 20px;
    border: 1px solid rgba(183, 147, 90, 0.5);
}

/* On mouse-over, add a grey background color */
.input-wrapper:hover input ~ .checkmark {
    border: 1px solid rgba(183, 147, 90, 1);
}

/* When the checkbox is checked, add a blue background */
.input-wrapper input:checked ~ .checkmark {
    background-color: #B7935A;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.input-wrapper input:checked ~ .checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.input-wrapper .checkmark:after {
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

/* =============================================================================
    7. GRID 
========================================================================= */

.sales-tool {
    max-width: 1410px !important;
}

@media (max-width: 976px) {
   .sales-tool {
        padding: 0 20px;
    }
}

.sales-tool__content {
    display: none;
    padding: 30px 0;
}

/* =============================================================================
    8. INTRO
========================================================================= */

.sales-tool__intro {
    position: relative;
}

.sales-tool__intro img {
    width: 100%;
}

.item-point {
    width: 25px !important;
    height: 25px !important;
    font-size: 16px;
    font-weight: 600;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.item-point.circle {
    cursor: pointer;
}

.back-to-intro {
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    color: #475859;
    margin-bottom: 15px;
    display: block;
}

.back-to-intro:hover {
    text-decoration: underline;
}

.scalize .item-point {
    background: #fff !important;
    border: 3px solid #91B4B8 !important;
}

/* =============================================================================
    9. TOOLTIP
========================================================================= */

.item-point.circle::after {
    content: attr(data-tooltip);
    top: -53px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: lightgray;
    padding: 3px 12px;
    font-size: 12px;
    border-radius: 4px;
    text-align: center;
    z-index: 1;
}

.item-point.circle::before {
    content: '';
    top: -11px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 0; 
    height: 0; 
    border-left: 5px solid         
    transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid lightgray;
}

.item-point.circle::after,
.item-point.circle::before {
    display: none;
}

@media (min-width: 768px) {
    .item-point.circle:hover::before,
    .item-point.circle:hover::after {
        display: block; 
    }
}
