:root {
    --pm-color-1: #000000;
    --pm-color-2: #AE8B54;
}

@keyframes markerAnimation {
    0% {
        top: 0;
    }

    30% {
        top: -8px;
    }

    50% {
        top: -10px;
    }

    70% {
        top: -8px;
    }

    100% {
        top: 0;
    }
}

@-webkit-keyframes markerAnimation {
    0% {
        top: 0;
    }

    30% {
        top: -8px;
    }

    50% {
        top: -10px;
    }

    70% {
        top: -8px;
    }

    100% {
        top: 0;
    }
}

#property-map-modal .modal-dialog {
    margin: 2rem;
    width: 100%;
    max-width: calc(100% - 4rem);
    height: 100%;
    max-height: calc(100% - 4rem);
}

#property-map-modal .modal-dialog .modal-content {
    border-radius: 12px;
}

#property-map-modal .modal-dialog .modal-content .modal-header {
    border-bottom: 0;
    padding-bottom: 0;
    justify-content: end;
}

#property-map-modal .modal-dialog .modal-content .modal-header .btn-close {
    font-size: 12px;
    background-color: transparent;
}

#property-map-modal .modal-dialog .modal-content .modal-header .btn-close:focus,
#property-map-modal .modal-dialog .modal-content .modal-header .btn-close:active {
    box-shadow: none;
}

#property-map-modal .modal-dialog .modal-content,
#property-map-modal .modal-dialog .modal-content .modal-body>div,
#property-map-modal .modal-dialog .modal-content .modal-body>div>div {
    height: 100%;
}

#property-map-modal .modal-dialog .modal-content .modal-body {
    padding-top: 0;
    margin-top: 1rem;
}

.property-map-container,
#property-map {
    height: 100%;
    width: 100%;
    border-radius: 10px;
}

#property-map .leaflet-marker-icon.animation {
    position: relative;
    animation: markerAnimation 500ms linear infinite;
}

#property-map-modal .modal-body {
    opacity: 1;
    transition: opacity .5s;
    -o-transition: opacity .5s;
    -moz-transition: opacity .5s;
    -webkit-transition: opacity .5s;
}

#property-map-modal .modal-body.open-map-list {
    padding: 0;
}

#property-map-modal .modal-body.loading {
    opacity: 0;
    pointer-events: none;
}

#property-map-modal .spinner {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    z-index: 1001;
    display: none;
}

#property-map-modal .modal-body.loading+.spinner {
    display: block;
}

#property-map-modal .spinner i {
    font-size: 50px;
    color: var(--pm-color-1);
}

#property-map-modal .spinner p {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 0;
    color: var(--pm-color-1);
}

#property-map-modal .modal-body.loading-min+.spinner {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: white;
    padding: 8px 10px;
    top: 3rem;
    left: unset;
    right: 31px;
    transform: unset;
    -o-transform: unset;
    -moz-transform: unset;
    -webkit-transform: unset;
    z-index: 9999;
}

#property-map-modal.container-fluid .modal-body.loading-min+.spinner {
    top: .5rem;
    right: .5rem;
}

#property-map-modal .modal-body.loading-min+.spinner i {
    font-size: 18px;
}

#property-map-modal .modal-body.loading-min+.spinner p {
    font-size: 18px;
    margin: 0;
    line-height: 1;
}

#property-map-modal .property-map-column .ver-propiedades {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    -o-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    z-index: 999;
    font-size: 13px;
    background-color: white;
    border: 0;
    padding: 14px 6px;
    border-radius: 0% 100% 100% 0%;
}

#property-map-modal .property-map-column .ver-propiedades:hover,
#property-map-modal .property-map-column .ver-propiedades:active,
#property-map-modal .property-map-column .ver-propiedades:focus {
    outline: unset;
    background-color: #ddd;
}

#property-map-modal .property-map-column .ver-propiedades i {
    transition: transform .5s;
    -o-transition: transform .5s;
    -moz-transition: transform .5s;
    -webkit-transition: transform .5s;
}

#property-map-modal .modal-body.open-map-list .property-map-column .ver-propiedades i {
    transform: rotate3d(0, 1, 0, 180deg);
    -o-transform: rotate3d(0, 1, 0, 180deg);
    -moz-transform: rotate3d(0, 1, 0, 180deg);
    -webkit-transform: rotate3d(0, 1, 0, 180deg);
}

#property-map-modal .modal-body .property-container-left {
    flex-basis: 40%;
    width: 40%;
    display: flex;
    transition: width .3s, flex-basis .3s;
    -o-transition: width .3s, flex-basis .3s;
    -moz-transition: width .3s, flex-basis .3s;
    -webkit-transition: width .3s, flex-basis .3s;
}

#property-map-modal .modal-body .property-map-filter-column {
    padding: 0 10px;
    flex-basis: 40%;
    width: 40%;
}

#property-map-modal .modal-body .property-map-list-column {
    padding: 0 10px;
    flex-basis: 60%;
    width: 60%;
    transition: width .3s, flex-basis .3s;
    -o-transition: width .3s, flex-basis .3s;
    -moz-transition: width .3s, flex-basis .3s;
    -webkit-transition: width .3s, flex-basis .3s;
}

#property-map-modal .modal-body.open-map-list .property-container-left {
    flex-basis: 0%;
    width: 0%;
}

#property-map-modal .modal-body .property-map-column {
    position: relative;
    flex-basis: 60%;
    width: 60%;
    transition: width .3s, flex-basis .3s;
    -o-transition: width .3s, flex-basis .3s;
    -moz-transition: width .3s, flex-basis .3s;
    -webkit-transition: width .3s, flex-basis .3s;
}

#property-map-modal .modal-body.open-map-list .property-map-column {
    flex-basis: 100%;
    width: 100%;
}


#property-map-modal.container-fluid .modal-body .property-map-filter-column {
    flex-basis: 32.45%;
    width: 32.45%;
    box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    padding: 40px;
    align-items: center;
    display: flex;
    justify-content: center;
}

#property-map-modal.container-fluid .modal-body .property-map-column {
    flex-basis: 67.55%;
    width: 67.55%;
    box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.25);
    border-radius: 10px;
}

#property-map-modal.container-fluid {
    position: relative;
}

#property-map-modal.container-fluid .property-map-wrapper {
    height: 450px;
    gap: 2rem;
}




/* ========== POPUP ========== */
#property-map .leaflet-popup .leaflet-popup-content-wrapper {
    border-radius: 0px;
}

#property-map .leaflet-popup .leaflet-popup-content-wrapper .leaflet-popup-content {
    margin: 0;
    padding: 0;
}

#property-map .leaflet-popup .property-popup {
    display: flex;
    gap: 10px;
}

#property-map .leaflet-popup .property-popup .property-popup-img-container {
    flex-basis: 40%;
    padding: 10px 0 10px 10px;
    /*height: 150px;*/
}

#property-map .leaflet-popup .property-popup .property-popup-img-container .property-popup-img {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    object-fit: cover;
    object-position: center;
}

#property-map .leaflet-popup .property-popup .property-popup-info {
    flex-basis: 60%;
    overflow: hidden;
    padding: 10px 10px 10px 0;
}

#property-map .leaflet-popup .property-popup .property-popup-info .property-popup-info-wrapper {
    display: flex;
    align-items: end;
    justify-content: space-between;
}

#property-map .leaflet-popup .property-popup .property-popup-info p {
    margin-top: 0;
    margin-bottom: 5px;
}

#property-map .leaflet-popup .property-popup .property-popup-info .property-popup-type {
    font-size: 11px;
    font-weight: 300;
    text-transform: uppercase;
}

#property-map .leaflet-popup .property-popup .property-popup-info .property-popup-name {
    background-color: var(--pm-color-1);
    border-radius: 0;
}

#property-map .leaflet-popup .property-popup .property-popup-info .property-popup-name span {
    font-size: 16px;
    font-weight: 600;
    margin: 2px 6px;
    color: white;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 2px;
}

#property-map .leaflet-popup .property-popup .property-popup-info .property-popup-price {
    font-size: 22px;
    font-weight: 600;
}

#property-map .leaflet-popup .property-popup .property-popup-info .property-popup-features {
    margin-top: 10px;
    margin-bottom: 5px;
}

#property-map .leaflet-popup .property-popup .property-popup-info .property-popup-features span {
    padding: 4px 8px;
    background-color: var(--pm-color-2);
    color: white;
    border-radius: 6px;
}

#property-map .leaflet-popup .property-popup .property-popup-info .property-popup-features span i {
    margin-right: 5px;
}


/* ========== CARDS ========== */
.property-map-list-wrapper {
    height: calc(100vh - 8rem);
    overflow: auto;
}

#property-map-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-right: 20px;
}

.property-list-card {
    display: flex;
    gap: 10px;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: 0px;
    transition: background-color .3s;
    -o-transition: background-color .3s;
    -moz-transition: background-color .3s;
    -webkit-transition: background-color .3s;
}

.property-list-card:hover {
    background-color: rgba(0, 0, 0, .1);
}

.property-list-card .property-list-card-img-container {
    flex-basis: 35%;
    padding: 10px 0 10px 10px;
    height: 140px;
}

.property-list-card .property-list-card-img-container .property-list-card-img {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    object-fit: cover;
    object-position: center;
}

.property-list-card .property-list-card-info {
    flex-basis: 65%;
    overflow: hidden;
    padding: 10px 10px 10px 0;
}

.property-list-card .property-list-card-info .property-list-card-info-wrapper {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
}

.property-list-card .property-list-card-info p {
    margin-top: 0;
    margin-bottom: 3px;
}

.property-list-card .property-list-card-info .property-list-card-type {
    font-size: 11px;
    font-weight: 300;
    text-transform: uppercase;
}

.property-list-card .property-list-card-info .property-list-card-name {
    background-color: var(--pm-color-1);
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 0;
}

.property-list-card .property-list-card-info .property-list-card-name span {
    font-size: 16px;
    font-weight: 600;
    margin: 2px 6px;
    color: white;
    overflow: hidden;
    padding: 0px 3px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.property-list-card .property-list-card-info .property-list-card-price {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 0;
}

.property-list-card .property-list-card-info .property-list-card-price small {
    font-size: 16px;
    font-weight: 600;
}

.property-list-card .property-list-card-info .property-list-card-features span {
    padding: 4px 8px;
    background-color: var(--pm-color-2);
    color: white;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
}

.property-list-card .property-list-card-info .property-list-card-features span i {
    margin-right: 5px;
}

.leaflet-popup .property-popup .property-popup-info .property-popup-info-wrapper .btn-primary,
.property-list-card .property-list-card-info .property-list-card-info-wrapper .btn-primary {
    color: var(--pm-color-1);
    border: 1px solid var(--pm-color-1);
    background-color: transparent;
    font-size: 12px;
    padding: 8px 12px;
    line-height: 1;
    transition: background-color .3s, color .3s;
    -o-transition: background-color .3s, color .3s;
    -moz-transition: background-color .3s, color .3s;
    -webkit-transition: background-color .3s, color .3s;
    white-space: nowrap;
}

.property-list-card .property-list-card-info .property-list-card-info-wrapper .btn-primary {
    border-radius: 0;
}

.leaflet-popup .property-popup .property-popup-info .property-popup-info-wrapper .btn-primary:focus,
.leaflet-popup .property-popup .property-popup-info .property-popup-info-wrapper .btn-primary:hover,
.property-list-card .property-list-card-info .property-list-card-info-wrapper .btn-primary:focus,
.property-list-card .property-list-card-info .property-list-card-info-wrapper .btn-primary:hover {
    background-color: var(--pm-color-1);
    color: white;
}

.leaflet-popup .property-popup .property-popup-info .property-popup-info-wrapper .btn-primary i,
.property-list-card .property-list-card-info .property-list-card-info-wrapper .btn-primary i {
    display: none;
}

.leaflet-marker-icon {
    width: 26px !important;
    height: 34px !important;
}

.property-map-filter-wrapper .search-container-music {
    max-width: stretch;
}

.btn.btn-secondary,
.btn.btn-warning {
    padding: 5px 35px;
    font-size: var(--font-s-18);
    font-weight: var(--bold) !important;
    line-height: var(--lh-140);
    font-family: var(--font-2);
    border-radius: 10px;
    color: var(--color-black);
}

.btn.btn-secondary {
    background-color: var(--color-6);
    transition: ease 0.3s;

}

.btn.btn-warning {
    background-color: var(--bg-1);
    border: 1px solid var(--color-1);
    transition: ease 0.3s;

}

.btn.btn-warning:hover {
    border: 1px solid var(--color-1);
    background-color: var(--bg-white);
}

.btn.btn-secondary:hover {
    border: 1px solid var(--color-7);
    background-color: var(--bg-white);
}

/* ========== BREAKPOINTS ========= */
@media (max-width: 1799px) {
    .property-list-card {
        display: block;
    }

    .property-list-card .property-list-card-img-container {
        overflow: hidden;
        border-radius: 0px;
        position: relative;
    }

    .property-list-card .property-list-card-img-container,
    .property-list-card .property-list-card-info {
        margin: 10px;
        padding: 0;
    }

    .property-list-card .property-list-card-img-container .property-list-card-img {
        max-width: unset;
        border-radius: 6px;
        width: 100%;
        height: auto;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

@media (max-width: 1399px) {}

@media (max-width: 1199px) {
    #property-map-modal .modal-dialog .modal-content .modal-body {
        overflow: hidden;
    }

    .property-list-card .property-list-card-img-container {
        height: 150px;
    }

    #property-map-modal .modal-body .property-container-left {
        flex-direction: column;
        gap: 24px;
    }

    #property-map-modal .modal-body .property-map-filter-column,
    #property-map-modal .modal-body .property-map-list-column {
        flex-basis: 100%;
        width: 100%;
    }

    .property-map-filter-wrapper h4,
    .property-map-filter-wrapper hr {
        display: none;
    }
}

@media (max-width: 991px) {

    #property-map-modal.container-fluid .modal-body .property-map-filter-column {
        flex-basis: initial;
        width: 100%;
        box-shadow: none;
        padding: 0;

    }

    #property-map-modal.container-fluid .modal-body .property-map-column {
        flex-basis: 100%;
        width: 100%;
    }

    #property-map-modal .modal-dialog .modal-content .modal-body>div {
        flex-direction: column;
    }

    #property-map-modal .modal-dialog .modal-content {
        height: 100%;
    }

    #property-map-modal .modal-dialog .modal-content .modal-body>div {
        height: 100%;
    }

    #property-map-modal .modal-dialog .modal-content .modal-body>div>div {
        height: 100%;
        width: 100%;
    }

    .property-map-list-wrapper {
        height: auto;
        padding-bottom: 15px;
    }

    #property-map-list {
        flex-direction: row;
        padding-right: 0;
        width: 100%;
    }

    .property-list-card {
        min-width: 300px;
    }

    .property-list-card .property-list-card-img-container {
        height: 100px;
    }

    .property-map-list-column {
        height: 306px;
    }

    .property-map-column {
        height: calc(100% - 306px);
    }

    .property-list-card .property-list-card-info .property-list-card-name span {
        min-height: 52px;
    }

    #property-map-modal.container-fluid .property-map-wrapper {
        height: 650px;
    }
}

@media (max-width: 767px) {
    .property-map-list-column {
        height: 0px;
        transition: height .5s;
        -o-transition: height .5s;
        -moz-transition: height .5s;
        -webkit-transition: height .5s;
    }

    .property-map-column {
        height: calc(100%);
        transition: height .5s;
        -o-transition: height .5s;
        -moz-transition: height .5s;
        -webkit-transition: height .5s;
    }

    .modal-body.open-map-list .property-map-list-column {
        height: 306px;
    }

    .modal-body.open-map-list .property-map-column {
        height: calc(100% - 306px);
    }
}

@media (max-width: 575px) {
    #property-map-modal .modal-dialog {
        margin: 0;
        max-width: 100%;
        max-height: 100%;
    }

    #property-map-modal .modal-dialog .modal-content {
        border-radius: 0;
    }

    #property-map-modal .modal-content {
        box-shadow: none;
        border-radius: 0;
    }

    #property-map-modal .modal-body.loading-min+.spinner {
        top: 2rem;
        right: 8px;
    }

    #property-map-modal .modal-dialog .modal-content .modal-header {
        padding: .5rem .5rem 0 .5rem;
    }

    #property-map-modal .modal-dialog .modal-content .modal-body {
        padding: .5rem;
    }

    #property-map-modal .modal-dialog .modal-content .modal-body>.container-fluid {
        padding: 0;
    }

    #property-map .leaflet-popup .property-popup {
        display: block;
    }

    #property-map .leaflet-popup .leaflet-popup-content {
        width: 245px !important;
    }

    #property-map .leaflet-popup .property-popup .property-popup-img-container {
        padding: 20px 8px 8px 8px;
    }

    #property-map .leaflet-popup .property-popup .property-popup-info {
        padding: 0 8px 8px 8px;
    }

    .property-list-card {
        min-width: 245px;
    }

    .leaflet-popup .property-popup .property-popup-info .property-popup-info-wrapper .btn-primary span,
    .property-list-card .property-list-card-info .property-list-card-info-wrapper .btn-primary span {
        display: none;
    }

    .leaflet-popup .property-popup .property-popup-info .property-popup-info-wrapper .btn-primary i,
    .property-list-card .property-list-card-info .property-list-card-info-wrapper .btn-primary i {
        display: inline;
    }

    .property-list-card .property-list-card-info .property-list-card-name span {
        min-height: 1px;
    }

    #property-map-modal .modal-body .property-container-left {
        gap: 12px;
    }

    #property-map-modal .modal-body .property-map-filter-column {
        flex-basis: 30%;
    }

    #property-map-modal .modal-body .property-map-list-column {
        flex-basis: 70%;
    }

}