.button-like {
    display: inline-block;
    padding: 10px 20px;
    color: white;
    border-radius: 4px;
    cursor: pointer;             /* 滑鼠變成手指圖示 */
    text-align: center;
    user-select: none;           /* 避免被選取 */
    transition: background-color 0.2s ease;
}

.button-like:hover {
    background-color: rgba(0, 0, 0, 0.05);   /* 滑鼠 hover 效果 */
}

.button-like:active {
    background-color: rgba(0, 0, 0, 0.1);   /* 點擊時效果 */
}

.lm-layout {
    background-color: #f5f5f5;
    display: flex;
    padding: 20px;
    height: unset;
    width: unset;
    margin-bottom: 20px;
}

.lm-border {
    border-radius: 8px;
    border-width: 1.5px;
    border-style: solid;
    border-color: #E4E4E4;
}

/* menu */
.lm-menu {
    display: flex;
    flex-direction: column;
    margin-right: 15px;
    height: 100%;
    width: 250px;
    overflow: hidden;
}

.lm-menu-header {
    flex-shrink: 0;
    border-bottom: 1px solid #E4E4E4;
}

.lm-menu-title {
    padding: 16px 16px;
    width: unset;
    font-weight: bold;
    font-size: 16px;
}

.lm-menu-content {
    overflow-y: auto;
    min-height: 60vh;
    max-height: 60vh;
    background-color: white;
}

.lm-menu-content-item {
    flex-shrink: 0;
    display: flex;
    width: unset;
    justify-content: space-between;
    align-items: center;
    padding: 15px 15px;
    border-bottom: 1px solid #E4E4E4;
}

.lm-menu-content-item:last-child {
    border-bottom: none;
}

.lm-menu-content-item-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lm-menu-content-item-right {
    font-size: 12px;
    font-weight: bold;
    color: #333;
    width: fit-content;
    text-align: right;
}

.lm-menu-icon {
    width: 18px;
    height: 18px;
}

.lm-menu-item-text {
    height: unset;
}

.city_map_location_label {
    background-color: #E4E4E4;
    border-radius: 16px;
    font-size: 12px;
    text-align: center;
    font-weight: bold;
    width: 50px;
    padding: 5px 10px;
}


/* content */
.lm-content {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
}

.lm-button-active {
    background-color: #E4E4E4;
}

.lm-button-inactive:hover {
    background-color: rgb(242, 242, 242);
}

.lm-content-hidden {
    display: none;
}

@media only screen and (min-width:768px) {
    .lm-dropdown-toggle {
        display: none;
    }
    .lm-dropwon-label {
        display: none;
    }
}

@media only screen and (max-width:767px) {
    /* 修改 menu 與 content 的相對位置關係 */
    .lm-layout {
        flex-direction: column;
    }

    .lm-menu-header {
        display: none;
    }

    .lm-dropdown {
        position: relative;
        display: inline-block;
        width: 100%;
        margin-bottom: 15px;
        overflow: unset;
    }

    .lm-dropwon-label {
        font-size: 14px;
        font-weight: bold;
        margin-left: 5px;
        margin-bottom: 3px;
    }

    .lm-dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;

        height: unset;
        min-height: unset;
        max-height: 200px;

        overflow-y: scroll;
        margin: 0;
        padding: 0;
        list-style: none;
        background-color: white;
        display: none;

        vertical-align: middle;

        border-radius: 1px 1px 4px 4px;
        border-width: 1.5px;
        border-style: solid;
        border-color: #E4E4E4;
        box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
    }

    .lm-dropdown-menu.show {
        display: flex;
        flex-direction: column;
    }

    .lm-dropdown-toggle {
        display: flex;

        padding: 10px;
        background-color: white;
        cursor: pointer;

        border-radius: 4px;
        border-width: 1.5px;
        border-style: solid;
        border-color: #E4E4E4;
    }

    /* 微調 menu 內容緊縮*/
    .lm-menu-content-item {
        padding-top: 7px;
        padding-bottom: 7px;
        height: unset;
        width: 100%;
    }

    .city_map_location_label {
        width: 70px;
    }

    .lm-dropdown-icon {
        width: 16px;
    }
}
