.el-main {
    background-color: #fff;
}

.map .case {
    margin-top: 8px;
    display: flex;
    height: calc(100vh - 140px);
    border-top: 1px solid #E1E1E1;
}

.map .sidebar .house-list {
    height: calc(100% - 50px);
    overflow-y: scroll;
    background: #fff;
}

.map .sidebar .sort {
    border-bottom: 1px solid #E1E1E1;
    line-height: 42px;
    font-size: 14px;
    color: #333;
    display: flex;
    justify-content: end;
    padding-right: 28px;
}

.inputSelectDate {
    position: relative;
    width: 90px;
    display: inline-block;
    height: 24px;
    cursor: pointer;
}

.map .sidebar .sort #sort {
    outline: none;
    box-shadow: unset !important;
    border: 0;
    font-size: 14px;
    width: 105px;
    color: #333;
    height: 24px;
    cursor: pointer;
}

::placeholder {
    font-size: 14px;
    color: #333;
}

.map-container {
    width: 100%;
    height: 100%;
    border-right: 1px solid #E1E1E1;
}

.map .house-list {
    padding: 0;
}

.map .house-item {
    border-bottom: 1px solid #e1e1e1;
    padding: 20px 5px 8px 16px;
    margin-right: 1px;
    margin-bottom: 0 !important;
    cursor: pointer;
}

    .map .house-item:hover {
        background-color: #FAFAFA;
    }

    .map .house-item .house-content {
        flex: 1;
        min-width: 0;
    }

    .map .house-item .image {
        position: relative;
        margin-right: 8px;
        width: 150px;
        height: 110px;
        overflow: hidden;
        cursor: pointer;
    }

        .map .house-item .image img {
            transition: transform 0.3s ease;
        }

        .map .house-item .image:hover img {
            transform: scale(1.15);
        }

        .map .house-item .image img {
            width: 150px;
            height: 110px;
            object-fit: cover;
            border-radius: 5px;
        }

    .map .house-item:last-child {
        border-bottom: none !important;
    }

.map .pagination {
    justify-content: center;
    border-top: 1px solid #e1e1e1;
    padding: 15px 0;
    display: flex;
}

.map .map-area-label {
    background: rgba(128, 0, 255, 0.7);
    color: #fff;
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 14px;
}

.map .leaflet-div-icon.area-bubble {
    background: rgba(128, 0, 255, 0.7);
    color: #fff;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    box-shadow: 0 2px 8px rgba(128, 0, 255, 0.15);
    line-height: 1.2;
    pointer-events: auto;
}

.map .area-bubble-content {
    width: 70px;
    height: 70px;
    display: flex;
    font-size: 14px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgb(196 130 205 / 90%);
    border-radius: 50%;
    color: #fff;
}

.map .badge-tag {
    background: #156fc1;
    color: #fff;
    font-size: 10px;
    border-radius: 3px;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 6px;
    padding: 4px 6px;
    position: absolute;
    top: 0;
    left: 0;
}

.map .badge-date {
    background: #eaf3ff;
    color: #156fc1;
    font-size: 0.85rem;
    border-radius: 4px;
    padding: 2px 8px;
    margin-right: 6px;
}

.map .badge-status {
    background: #ffeaea;
    color: #e55c5c;
    font-size: 0.85rem;
    border-radius: 4px;
    padding: 2px 8px;
    margin-right: 6px;
}

.map .house-title {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: flex-start;
    cursor: pointer;
    height: 25px;
}

    .map .house-title p {
        display: inline;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 16px;
        font-weight: bold !important;
        line-height: 24px;
        color: #333;
        margin: 0;
    }

        .map .house-title p:hover {
            text-decoration: underline;
        }

    .map .house-title a {
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 16px;
        font-weight: bold;
        line-height: 24px;
        color: #333;
    }

    .map .house-title img {
        width: 25px;
        height: 25px;
    }

.map .text-muted, .map .address {
    font-size: 12px;
    line-height: 18px;
    color: #666 !important;
    margin-top: 8px;
}

    .map .address img {
        width: 12px;
        height: 12px;
        vertical-align: text-top;
    }

.map .info .badge-date {
    color: #0566B3;
    background-color: #E9EDF8;
    font-size: 12px;
    line-height: 24px;
    padding: 0 10px;
    margin-top: 8px;
    border-radius: 2px;
    font-weight: 400;
}

.map .info .badge-status {
    color: #666;
    background-color: #FFD6D6;
    font-size: 12px;
    line-height: 24px;
    padding: 0 10px;
    margin-top: 8px;
    border-radius: 2px;
    font-weight: 400;
}

.align-items-center .avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.align-items-center .name {
    font-size: 14px;
    margin-left: 8px;
    color: #333;
}

.d-flex.align-items-end.mt-2 {
    display: flex !important;
    align-items: center !important;
    margin-top: 4px !important;
}

    .d-flex.align-items-end.mt-2 span:first-child {
        color: #333;
        font-size: 12px;
    }

        .d-flex.align-items-end.mt-2 span:first-child i:first-child {
            font-size: 24px;
            font-weight: bold;
            color: #EA5513;
            vertical-align: middle;
        }

        .d-flex.align-items-end.mt-2 span:first-child i:last-child {
            font-size: 16px;
            color: #EA5513;
            vertical-align: middle;
        }

    .d-flex.align-items-end.mt-2 span:last-child {
        font-size: 12px;
        color: #666;
        margin-left: 12px;
    }

.filter-header {
    padding-top: 24px;
    padding-bottom: 16px;
    display: flex;
    align-items: center;
}

    .filter-header .input-search {
        display: flex;
        align-items: center;
        margin-right: 24px;
        flex: 1;
    }

        .filter-header .input-search select {
            border: none;
            background: transparent;
            color: #333;
            font-size: 14px;
            cursor: pointer;
        }

input:-internal-autofill-selected {
    background-color: unset !important;
}

.filter-header .input-search input {
    height: 40px;
    margin-left: 50px;
    border: 1px solid #DEE2E6;
    border-radius: 3px;
    padding-left: 10px;
    border-right: 0;
    border-top-right-radius: 0px;
    font-size: 14px;
    color: #333 !important;
    border-bottom-right-radius: 0px;
    flex: 1;
}

.filter-header .search-button {
    border: none;
    width: 74px;
    height: 40px;
    background-color: #0566B3;
    color: #fff;
    font-size: 14px;
    border: 1px solid #0566B3;
    box-shadow: none;
    cursor: pointer;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
}

    .filter-header .search-button svg {
        width: 18px;
        height: 18px;
        vertical-align: sub;
        margin-right: 4px;
    }

.filter-header .map {
    cursor: pointer;
}

.filter-header .svg-icon {
    display: inline-block;
    vertical-align: middle;
}

.filter-header .map img {
    vertical-align: text-top;
}

.filter-header .map span a {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

    .filter-header .map span a:hover {
        text-decoration: none;
    }

.filter-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

    .filter-item select.form-select {
        width: 92px;
        height: 40px;
        line-height: 40px;
        outline: none !important;
        border: 1px solid #DEE2E6;
        border-radius: 3px;
        font-size: 14px;
        color: #333;
        padding: 0 10px;
        cursor: pointer;
        box-shadow: unset !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.form-select {
    background-position: right 6px center;
}

.filter-item .clear {
    cursor: pointer;
    color: #333;
    font-size: 14px;
}

    .filter-item .clear img {
        width: 14px;
        height: 14px;
        vertical-align: text-top;
    }

.filter-header .clear {
    cursor: pointer;
    color: #333;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    border-radius: 3px;
    padding: 0 10px;
    height: 40px;
    white-space: nowrap;
    transition: background-color 0.2s;
    left: 25px;
}

    .filter-header .clear:hover {
        background-color: #e9e9e9;
    }

    .filter-header .clear img {
        width: 14px;
        height: 14px;
        vertical-align: text-top;
    }


.favorite-icon {
    display: inline-block;
    width: 35px;
    height: 35px;
    vertical-align: middle;
    background: url('/Content/mywoo/image/icons/icon-favorite.svg') no-repeat center center;
    background-size: contain;
    transition: transform 0.2s;
}

.add-collect.active .favorite-icon {
    background-image: url('/Content/mywoo/image/icons/icon-favorite-added.svg');
}

.custom-marker {
    background: none;
    border: none;
}

.marker-pin {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    background: #ff4444;
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -15px 0 0 -15px;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

    .marker-pin::after {
        content: '';
        width: 14px;
        height: 14px;
        margin: 8px 0 0 8px;
        background: #fff;
        position: absolute;
        border-radius: 50%;
    }
/* maker popup*/
.marker-popup {
    padding: 5px;
}

    .marker-popup b {
        color: #333;
        font-size: 14px;
    }

    .marker-popup p {
        margin: 5px 0 0 0;
        color: #666;
        font-size: 12px;
    }
/* ÁôÂÃ popup ½bÀY */
.custom-popup .leaflet-popup-tip-container {
    display: none;
}

/* Popup ¥~®Ø */
.custom-popup .leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(0,0,0,0.4);
}

.custom-popup .leaflet-popup-content {
    margin: 0;
    width: 280px !important;
}

.popup-card {
    cursor: pointer;
    background: #fff;
}

    .popup-card:hover {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .popup-card .img {
        position: relative;
        padding: 15px;
        background: #fff;
        padding-bottom: 7px;
    }

        .popup-card .img img {
            width: 100%;
            height: 155px;
            object-fit: cover;
            border-radius: 6px;
            border: 1px solid #e0e0e0;
        }

        .popup-card .img .tag {
            position: absolute;
            top: 20px;
            right: 20px;
            background: #ff6b6b;
            color: white;
            padding: 4px 12px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: bold;
        }

    .popup-card .title {
        padding: 0 12px 8px;
        font-size: 14px;
        font-weight: 500;
        color: #333;
        line-height: 1.4;
        max-height: 40px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        white-space: nowrap;
    }

        .popup-card .title .location-icon {
            bottom: 2px;
        }

    .popup-card .info {
        padding: 0 12px 8px;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

        .popup-card .info .tag {
            font-size: 12px;
            color: #666;
            background: #f5f5f5;
            padding: 2px 8px;
            border-radius: 3px;
        }

    .popup-card .price {
        padding: 8px 12px;
        border-top: 1px solid #eee;
        display: flex;
        align-items: baseline;
        gap: 4px;
    }

        .popup-card .price .total-label {
            font-size: 12px;
            color: #666;
            margin-right: 4px;
        }

        .popup-card .price .total-main {
            font-size: 24px;
            font-weight: bold;
            color: #ff4444;
        }

        .popup-card .price .total-unit {
            font-size: 14px;
            color: #ff4444;
        }

        .popup-card .price .unit-label {
            font-size: 12px;
            color: #999;
            margin-left: 8px;
        }

        .popup-card .price .unit-main {
            font-size: 14px;
            color: #999;
        }

        .popup-card .price .unit {
            font-size: 12px;
            color: #999;
        }


.popup-btn {
    padding: 12px;
    background: #0566B3;
    color: white;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

    .popup-btn:hover {
        background: #3F84BE;
    }

.map-hint {
    position: absolute;
    top: 11%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 18px 60px;
    text-align: center;
    pointer-events: none;
    min-width: 350px;
    transition: opacity 0.3s;
}

    .map-hint .hint-title {
        font-size: 15px;
        font-weight: bold;
        color: #333;
        margin-bottom: 6px;
    }

    .map-hint .hint-desc {
        font-size: 13px;
        color: #888;
        line-height: 1.6;
    }


.user-location-marker {
    background: none !important;
    border: none !important;
}

.user-dot {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

    .user-dot::before {
        content: '';
        position: absolute;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: rgba(74, 144, 226, 0.25);
        animation: pulse 2s infinite;
    }

.user-dot-inner {
    width: 12px;
    height: 12px;
    background: #4A90E2;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.mode {
    align-self: stretch;
    display: flex;
}

.mode-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #0566B3;
    border: none;
    padding: 0px 10px;
    border-radius: 3px;
    color: white;
    text-decoration: none;
}

    .mode-btn span {
        font-size: 15px;
        font-weight: bold;
    }

    .mode-btn img {
        transition: transform 0.2s ease;
    }

    .mode-btn:hover {
        /*        background-color: #f5f5f5;*/
        opacity: 0.9;
    }

        .mode-btn:hover img {
            transform: scale(1.1);
        }

.filter-header .input-search select + select {
    margin-left: 30px;
}

.filter-header #hType {
    width: 60px;
}

.leaflet-container:focus {
    outline: none !important;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    70% {
        transform: scale(2);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.leaflet-control-container {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none;
}

    .leaflet-control-container .leaflet-top,
    .leaflet-control-container .leaflet-bottom {
        pointer-events: auto;
    }

.leaflet-locate-custom a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.leaflet-control-attribution {
    border-radius: 50px
}

.leaflet-attribution-flag {
    display: none !important;
}

@media only screen and (max-width: 767px) {

    .map {
        height: calc(100vh - 0.8rem);
    }

        .map .search {
            display: flex;
            align-items: baseline;
            margin: 0.24rem 0;
            margin-left: 0.2rem;
        }

        .map .mapForm {
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .map .filter-header {
            padding: 0;
        }

            .map .filter-header .input-search {
                margin: 0 !important;
            }

    .filter-item select.form-select,
    .filter-header .input-search select {
        height: unset;
        border: none;
        color: #333;
        padding: 0;
        line-height: unset;
        font-size: 0.24rem;
        margin-left: 0.1rem;
    }

    .filter-header .input-search select {
        margin-right: 0.2rem;
    }

        .filter-item select.form-select option,
        .filter-header .input-search select option {
            font-size: 0.3rem;
        }

    .form-select {
        background-position: right 0rem center;
        background-size: 0.16rem 0.16rem;
    }

    .map .case {
        margin-top: 0 !important;
        height: calc(100vh - 80px);
    }

    .map .sidebar .house-list {
        height: calc(100% - 47px);
    }

    /*    .map .sidebar.col-md-4 {
        position: absolute;
        bottom: 0;
        left: 0;
        z-index: 2222;
        width: 100%;
        background-color: #fff;
        display: none;
        height: 55%;
        overflow: hidden;
    }*/

    .map .sidebar .sort {
        padding-right: 8px;
        cursor: pointer;
        border: none;
        font-size: 13px;
    }

        .map .sidebar .sort #sortList {
            border: none;
            outline: none;
            box-shadow: unset !important;
            border: 0;
            color: #333;
            background: transparent;
        }

    .map-container {
        width: 100vw;
    }

    .header-bar {
        margin-bottom: 0;
    }

    .mobileListHeader {
        background-color: #fff;
        padding: 0.24rem 0.2rem;
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #E1E1E1;
        height: 35px;
    }

        .mobileListHeader img {
            width: 0.4rem;
            height: 0.4rem;
        }

        .mobileListHeader span {
            font-size: 0.32rem;
            color: #333
        }

    .map .house-item {
        margin-right: 0;
        border-right: 0;
        padding: 0.3rem 0.2rem 0.2rem 0.2rem;
    }

        .map .house-item .image img, .map .house-item .image {
            width: 115px;
            height: 80px;
            margin-right: 0.14rem;
        }

    .map .house-title a {
        font-size: 0.28rem;
        line-height: 0.36rem;
    }

    .map .text-muted, .map .address {
        line-height: 0.36rem;
        font-size: 0.24rem;
        margin-top: 0.12rem;
    }

    .house-item .info {
        display: flex;
        flex-wrap: wrap;
    }

    .map .info .badge-date, .map .info .badge-status {
        font-size: 0.21rem;
        padding: 0 0.1rem;
        line-height: 0.35rem;
        margin-top: 0.12rem;
        white-space: nowrap;
    }

    .d-flex.align-items-end.mt-2 span:first-child,
    .d-flex.align-items-end.mt-2 span:last-child,
    .d-flex.align-items-end.mt-2 span:first-child i:last-child {
        font-size: 0.22rem;
    }

        .d-flex.align-items-end.mt-2 span:first-child i:first-child {
            font-size: 0.34rem;
            font-size: 0.34rem;
            margin-top: -2px;
            display: inline-block;
        }

    .case .loadmore {
        border-top: 1px solid #e1e1e1 !important;
        font-size: 0.24rem;
        color: #0566B3;
        text-align: center;
        padding: 0.24rem 0;
    }

    .map .sidebar.col-md-4 {
        position: absolute;
        bottom: 0;
        left: 0;
        z-index: 2222;
        width: 100%;
        background-color: #fff;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
        height: 18px;
        display: block !important;
        overflow: hidden;
    }

    .bottom-sheet {
        display: flex !important;
        align-items: center;
        justify-content: center;
        height: 18px;
        cursor: grab;
        user-select: none;
        touch-action: none;
        flex-shrink: 0;
    }

        .bottom-sheet:active {
            cursor: grabbing;
        }

        .bottom-sheet .handle-bar {
            width: 40px;
            height: 3px;
            background: #ccc;
            border-radius: 2px;
        }

    .map .sidebar .house-list {
        height: calc(100% - 28px - 45px);
        overflow-y: scroll;
    }

    .map-hint {
        border-radius: 50px;
        padding: 15px 5px;
        min-width: 250px;
    }

        .map-hint .hint-title {
            font-size: 14px;
        }

        .map-hint .hint-desc {
            font-size: 12px;
        }

    .leaflet-touch .leaflet-control-attribution {
        transform: scale(0.3);
        transform-origin: bottom right;
        white-space: nowrap;
        bottom: 18px;
    }
}
