﻿#propertyMapComponent {
    width: 100%;
    height: 850px;
    position: relative;
}

#map {
    width: 100%;
    height: 80vh;
}
.leaflet-div-icon {
    background: none !important;
    border: none !important;
}

.pm-marker-wrapper {
    background: none !important;
    border: none !important;
}

.pm-marker-available,
.pm-marker-sold,
.pm-marker-mixed {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    cursor: pointer;
    transition: .25s;
    box-shadow: 0 8px 22px rgba(0,0,0,.30);
}

.pm-marker-available {
    background: #00b894;
}

.pm-marker-sold {
    background: #e74c3c;
}

.pm-marker-mixed {
    background: #f39c12;
}

    .pm-marker-available:hover,
    .pm-marker-sold:hover,
    .pm-marker-mixed:hover {
        transform: translateY(-4px) scale(1.08);
    }

.pm-marker-count {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    color: #222;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 2px solid #eee;
}

.pm-marker-icon {
    font-size: 18px;
}

.pm-marker-arrow {
    position: absolute;
    bottom: -9px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid currentColor;
    filter: brightness(.9);
}


.pm-marker {
    background: none !important;
    border: none !important;
}

.pm-marker-wrap {
    position: relative;
    width: 54px;
    height: 70px;
    transition: .25s;
    cursor: pointer;
}

    .pm-marker-wrap:hover {
        transform: translateY(-5px) scale(1.08);
    }

.pm-marker-img {
    width: 54px;
    height: 70px;
    display: block;
    filter: drop-shadow(0 8px 15px rgba(0,0,0,.25));
}

.pm-marker-badge {
    position: absolute;
    right: -8px;
    top: -6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    color: #222;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,.25);
    z-index: 99;
}

.pm-popup {
    min-width: 250px;
}

.pm-unit-row {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.pm-popup {
    min-width: 340px;
    padding: 4px;
}

.pm-popup-header {
    font-size: 18px;
    font-weight: 700;
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
}

.pm-popup-count {
    font-size: 13px;
    color: #777;
}

.pm-unit-card {
    padding: 12px;
    border-bottom: 1px solid #f2f2f2;
    transition: .25s;
}

    .pm-unit-card:last-child {
        border-bottom: none;
    }

    .pm-unit-card:hover {
        background: #f8fafc;
    }

.pm-unit-title {
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pm-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

    .pm-status.available {
        background: #2ecc71;
    }

    .pm-status.sold {
        background: #e74c3c;
    }

.pm-unit-price {
    color: #666;
    margin-top: 6px;
}

.pm-btn {
    margin-top: 10px;
    width: 100%;
    border: none;
    border-radius: 8px;
    padding: 9px;
    background: #0da6b5;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: .25s;
}

    .pm-btn:hover {
        background: #098b98;
    }

.leaflet-popup-content-wrapper {
    border-radius: 18px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0,0,0,.18);
    animation: pmPopupShow .25s ease;
}

.leaflet-popup-content {
    margin: 0 !important;
}

.leaflet-popup-tip {
    width: 18px;
    height: 18px;
    box-shadow: 0 8px 18px rgba(0,0,0,.12);
}

@keyframes pmPopupShow {

    from {
        opacity: 0;
        transform: translateY(15px) scale(.92);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pm-popup {
    min-width: 320px;
    max-width: 360px;
    background: #fff;
}

.pm-popup-header {
    padding: 16px 18px;
    background: #0fa7b5;
    color: #fff;
}

.pm-popup-title {
    font-size: 18px;
    font-weight: bold;
}

.pm-popup-count {
    opacity: .85;
    font-size: 13px;
    margin-top: 4px;
}

.pm-popup-body {
    padding: 10px;
}

.pm-unit-card {
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    transition: .25s;
    background: #fff;
}

    .pm-unit-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(0,0,0,.08);
    }

.pm-unit-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: bold;
}

.pm-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

    .pm-status.available {
        background: #22c55e;
    }

    .pm-status.sold {
        background: #ef4444;
    }

.pm-status-text {
    margin-top: 10px;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
}

    .pm-status-text.available {
        background: #dcfce7;
        color: #15803d;
    }

    .pm-status-text.sold {
        background: #fee2e2;
        color: #b91c1c;
    }

.pm-price {
    margin-top: 8px;
    color: #444;
    font-size: 14px;
}

.pm-btn {
    width: 100%;
    height: 42px;
    margin-top: 12px;
    border: none;
    border-radius: 10px;
    background: #0fa7b5;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    transition: .25s;
}

    .pm-btn:hover {
        background: #0b8e99;
    }



/*=========================================
    TOOLBAR
=========================================*/

#propertyMapComponent {
    position: relative;
}

.pm-toolbar {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    width: 95%;
    max-width: 1450px;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(0,0,0,.15);
    padding: 15px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.pm-search-box {
    flex: 1;
    min-width: 260px;
    position: relative;
}

    .pm-search-box i {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #999;
    }

    .pm-search-box input {
        width: 100%;
        height: 46px;
        border: 1px solid #ddd;
        border-radius: 12px;
        padding: 0 15px 0 42px;
        outline: none;
        transition: .25s;
    }

        .pm-search-box input:focus {
            border-color: #11b6c8;
            box-shadow: 0 0 0 3px rgba(17,182,200,.15);
        }

.pm-toolbar select {
    height: 46px;
    min-width: 180px;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 0 12px;
    outline: none;
    background: #fff;
    transition: .25s;
}

    .pm-toolbar select:focus {
        border-color: #11b6c8;
        box-shadow: 0 0 0 3px rgba(17,182,200,.15);
    }

.pm-check {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-weight: 600;
    margin: 0;
}

    .pm-check input {
        width: 18px;
        height: 18px;
    }

/*=========================================
    MAP
=========================================*/

#map {
    width: 100%;
    height: 80vh;
}

/*=========================================
    MOBILE
=========================================*/
/*=========================================
   MOBILE
=========================================*/

/*@media (max-width: 992px) {

    .pm-toolbar {
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        width: 100%;
        border-radius: 0;
        padding: 12px;
    }

        .pm-toolbar select,
        .pm-search-box {
            width: 100%;
        }
}*/
@media (max-width: 992px) {

    .pm-toolbar {
        position: absolute;
        top: 15px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 30px);
        border-radius: 16px;
        padding: 12px;
        z-index: 9999;
    }

        .pm-toolbar select,
        .pm-search-box {
            width: 100%;
        }
}
.pm-no-results {
    position: absolute;
    z-index: 1000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.96);
    padding: 18px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    text-align: center;
    font-size: 15px;
    color: #555;
    pointer-events: none;
}

    .pm-no-results i {
        display: block;
        font-size: 28px;
        margin-bottom: 8px;
        color: #999;
    }


.pm-clear-filter {
    height: 42px;
    min-width: 92px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 12px;
    background: #15B6C8;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

    .pm-clear-filter i {
        font-size: 13px;
    }

    .pm-clear-filter:hover {
        background: #119EAF;
        color: #fff;
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(21, 182, 200, 0.25);
    }

    .pm-clear-filter:active {
        transform: translateY(0);
        box-shadow: none;
    }


/* =========================================
   FEATURED PROJECTS NEWS TICKER
========================================= */

#map {
    position: relative;
}


/* =========================================
   TICKER
========================================= */

.pm-featured-ticker {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 78px;
    z-index: 1000;
    display: flex;
    align-items: center;
    direction: rtl;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    border-top: 1px solid rgba(255, 255, 255, 0.45);
    overflow: hidden;
}
.pm-featured-ticker {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 78px;
    z-index: 1000;
    display: flex;
    align-items: center;
    /* TRANSPARENT */
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    overflow: hidden;
}


/* =========================================
   TITLE
========================================= */

.pm-ticker-label {
    flex: 0 0 175px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    direction: rtl;
    color: #16364F;
    font-size: 15px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.10);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    white-space: nowrap;
}

    .pm-ticker-label i {
        color: #15B6C8;
        font-size: 13px;
    }


/* =========================================
   WRAPPER
========================================= */

.pm-ticker-wrapper {
    position: relative;
    flex: 1;
    height: 100%;
    overflow: hidden;
}


    /* =========================================
   FADE
========================================= */

    .pm-ticker-wrapper::before,
    .pm-ticker-wrapper::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        width: 70px;
        z-index: 10;
        pointer-events: none;
    }

    .pm-ticker-wrapper::before {
        left: 0;
        background: linear-gradient( to right, rgba(255,255,255,0.18), rgba(255,255,255,0) );
    }

    .pm-ticker-wrapper::after {
        right: 0;
        background: linear-gradient( to left, rgba(255,255,255,0.18), rgba(255,255,255,0) );
    }


/* =========================================
   TRACK
========================================= */

.pm-ticker-track {
    height: 100%;
    width: max-content;
    display: flex;
    align-items: center;
    direction: ltr;
    animation: pmFeaturedTicker 32s linear infinite;
    will-change: transform;
}


/* =========================================
   LOGO ITEM
========================================= */

.pm-ticker-item {
    width: 150px;
    height: 100%;
    flex: 0 0 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity .25s ease, transform .25s ease;
}


    /* =========================================
   LOGO
========================================= */

    .pm-ticker-item img {
        display: block;
        max-width: 115px;
        max-height: 48px;
        width: auto;
        height: auto;
        object-fit: contain;
    }


    /* =========================================
   HOVER
========================================= */

    .pm-ticker-item:hover {
        opacity: 1;
        transform: scale(1.08);
    }


/* =========================================
   PAUSE
========================================= */

.pm-featured-ticker:hover
.pm-ticker-track {
    animation-play-state: paused;
}


/* =========================================
   INFINITE MOVEMENT
========================================= */

@keyframes pmFeaturedTicker {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* =====================================================
   PROPERTY MAP
===================================================== */

.pm-map-container {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}


    /* =====================================================
   MAP
===================================================== */

    .pm-map-container #map {
        position: relative;
        width: 100%;
        height: 80vh;
        min-height: 500px;
        margin: 0;
        padding: 0;
        overflow: hidden;
    }


    /* =====================================================
   TOOLBAR - DESKTOP
===================================================== */

    .pm-map-container .pm-toolbar {
        position: absolute;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 9999;
        width: 95%;
        max-width: 1450px;
    }


    /* =====================================================
   FEATURED PROJECTS
===================================================== */

    .pm-map-container .pm-featured-ticker {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
    }


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 992px) {

    /*
       IMPORTANT:
       The container must NOT have a fixed height.
       Its height is the toolbar + map naturally.
    */

    .pm-map-container {
        position: relative;
        width: 100%;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }


        /* ---------------------------------------------
       SEARCH / FILTERS
       Normal document flow on mobile
    --------------------------------------------- */

        .pm-map-container .pm-toolbar {
            position: relative !important;
            top: auto !important;
            left: auto !important;
            right: auto !important;
            transform: none !important;
            width: calc(100% - 16px) !important;
            margin: 10px auto 10px auto !important;
            padding: 10px !important;
            border-radius: 14px !important;
            z-index: 20;
            display: flex;
            flex-direction: column;
            align-items: stretch;
            box-sizing: border-box;
        }


        /* Search */

        .pm-map-container .pm-search-box {
            width: 100% !important;
            min-width: 0 !important;
            flex: none !important;
            box-sizing: border-box;
        }


        /* Selects */

        .pm-map-container .pm-toolbar select {
            width: 100% !important;
            min-width: 0 !important;
            flex: none !important;
            box-sizing: border-box;
        }


        /* Available */

        .pm-map-container .pm-check {
            width: 100%;
            margin: 0 !important;
        }


        /* Clear button */

        .pm-map-container .pm-clear-filter {
            align-self: flex-start;
        }


        /* ---------------------------------------------
       MAP
       This is the ONLY height of the map
    --------------------------------------------- */

        .pm-map-container #map {
            position: relative !important;
            width: 100% !important;
            height: 60vh !important;
            min-height: 400px !important;
            max-height: 600px !important;
            margin: 0 !important;
            padding: 0 !important;
            overflow: hidden !important;
        }


        /* ---------------------------------------------
       FEATURED TICKER
    --------------------------------------------- */

        .pm-map-container .pm-featured-ticker {
            position: absolute !important;
            left: 0 !important;
            right: 0 !important;
            bottom: 0 !important;
            width: 100%;
            height: 78px;
            z-index: 1000;
        }
}